Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ef2/react-gm-location-finder

Package Overview
Dependencies
Maintainers
4
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ef2/react-gm-location-finder - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

dist/index.d.ts

@@ -165,6 +165,6 @@ /// <reference types="google.maps" />

loadingSlot?: ReactNode;
panelHeaderTopSlot?: ({ numberOfLocations }: {
renderPanelHeaderTop?: ({ numberOfLocations }: {
numberOfLocations: number;
}) => ReactNode;
panelHeaderBottomSlot?: ({ numberOfLocations }: {
renderPanelHeaderBottom?: ({ numberOfLocations }: {
numberOfLocations: number;

@@ -171,0 +171,0 @@ }) => ReactNode;

@@ -17,7 +17,7 @@ (function(F,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react"),require("@react-google-maps/api")):typeof define=="function"&&define.amd?define(["exports","react","@react-google-maps/api"],b):(F=typeof globalThis<"u"?globalThis:F||self,b(F.ReactGMLocationFinder={},F.require$$0,F.api))})(this,function(F,b,Ce){"use strict";const qe=()=>({calculateDistance:(r,n)=>{var o;return((o=google.maps.geometry)==null?void 0:o.spherical.computeDistanceBetween(r,n))/1e3}});var Me={exports:{}},fe={};/**

* LICENSE file in the root directory of this source tree.
*/var er;function Qr(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){var e=b,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),j=Symbol.iterator,y="@@iterator";function w(t){if(t===null||typeof t!="object")return null;var d=j&&t[j]||t[y];return typeof d=="function"?d:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(t){{for(var d=arguments.length,p=new Array(d>1?d-1:0),v=1;v<d;v++)p[v-1]=arguments[v];te("error",t,p)}}function te(t,d,p){{var v=A.ReactDebugCurrentFrame,E=v.getStackAddendum();E!==""&&(d+="%s",p=p.concat([E]));var L=p.map(function(k){return String(k)});L.unshift("Warning: "+d),Function.prototype.apply.call(console[t],console,L)}}var J=!1,ke=!1,Ee=!1,Oe=!1,Te=!1,le;le=Symbol.for("react.module.reference");function ve(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===s||Te||t===c||t===f||t===m||Oe||t===x||J||ke||Ee||typeof t=="object"&&t!==null&&(t.$$typeof===h||t.$$typeof===g||t.$$typeof===i||t.$$typeof===a||t.$$typeof===u||t.$$typeof===le||t.getModuleId!==void 0))}function he(t,d,p){var v=t.displayName;if(v)return v;var E=d.displayName||d.name||"";return E!==""?p+"("+E+")":p}function T(t){return t.displayName||"Context"}function z(t){if(t==null)return null;if(typeof t.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case c:return"StrictMode";case f:return"Suspense";case m:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case a:var d=t;return T(d)+".Consumer";case i:var p=t;return T(p._context)+".Provider";case u:return he(t,t.render,"ForwardRef");case g:var v=t.displayName||null;return v!==null?v:z(t.type)||"Memo";case h:{var E=t,L=E._payload,k=E._init;try{return z(k(L))}catch{return null}}}return null}var G=Object.assign,K=0,ne,xe,ce,X,ye,Q,oe;function M(){}M.__reactDisabledLog=!0;function mo(){{if(K===0){ne=console.log,xe=console.info,ce=console.warn,X=console.error,ye=console.group,Q=console.groupCollapsed,oe=console.groupEnd;var t={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}K++}}function vo(){{if(K--,K===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},t,{value:ne}),info:G({},t,{value:xe}),warn:G({},t,{value:ce}),error:G({},t,{value:X}),group:G({},t,{value:ye}),groupCollapsed:G({},t,{value:Q}),groupEnd:G({},t,{value:oe})})}K<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var He=A.ReactCurrentDispatcher,Ze;function Le(t,d,p){{if(Ze===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);Ze=v&&v[1]||""}return`
`+Ze+t}}var Ve=!1,Pe;{var ho=typeof WeakMap=="function"?WeakMap:Map;Pe=new ho}function Dr(t,d){if(!t||Ve)return"";{var p=Pe.get(t);if(p!==void 0)return p}var v;Ve=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=He.current,He.current=null,mo();try{if(d){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(V){v=V}Reflect.construct(t,[],k)}else{try{k.call()}catch(V){v=V}t.call(k.prototype)}}else{try{throw Error()}catch(V){v=V}t()}}catch(V){if(V&&v&&typeof V.stack=="string"){for(var R=V.stack.split(`
*/var er;function Qr(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){var e=b,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),j=Symbol.iterator,y="@@iterator";function w(t){if(t===null||typeof t!="object")return null;var d=j&&t[j]||t[y];return typeof d=="function"?d:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(t){{for(var d=arguments.length,p=new Array(d>1?d-1:0),v=1;v<d;v++)p[v-1]=arguments[v];te("error",t,p)}}function te(t,d,p){{var v=A.ReactDebugCurrentFrame,E=v.getStackAddendum();E!==""&&(d+="%s",p=p.concat([E]));var P=p.map(function(k){return String(k)});P.unshift("Warning: "+d),Function.prototype.apply.call(console[t],console,P)}}var J=!1,ke=!1,Ee=!1,Oe=!1,Te=!1,le;le=Symbol.for("react.module.reference");function ve(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===s||Te||t===c||t===f||t===m||Oe||t===x||J||ke||Ee||typeof t=="object"&&t!==null&&(t.$$typeof===h||t.$$typeof===g||t.$$typeof===i||t.$$typeof===a||t.$$typeof===u||t.$$typeof===le||t.getModuleId!==void 0))}function he(t,d,p){var v=t.displayName;if(v)return v;var E=d.displayName||d.name||"";return E!==""?p+"("+E+")":p}function T(t){return t.displayName||"Context"}function z(t){if(t==null)return null;if(typeof t.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case c:return"StrictMode";case f:return"Suspense";case m:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case a:var d=t;return T(d)+".Consumer";case i:var p=t;return T(p._context)+".Provider";case u:return he(t,t.render,"ForwardRef");case g:var v=t.displayName||null;return v!==null?v:z(t.type)||"Memo";case h:{var E=t,P=E._payload,k=E._init;try{return z(k(P))}catch{return null}}}return null}var G=Object.assign,K=0,ne,xe,ce,X,ye,Q,oe;function M(){}M.__reactDisabledLog=!0;function mo(){{if(K===0){ne=console.log,xe=console.info,ce=console.warn,X=console.error,ye=console.group,Q=console.groupCollapsed,oe=console.groupEnd;var t={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}K++}}function vo(){{if(K--,K===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},t,{value:ne}),info:G({},t,{value:xe}),warn:G({},t,{value:ce}),error:G({},t,{value:X}),group:G({},t,{value:ye}),groupCollapsed:G({},t,{value:Q}),groupEnd:G({},t,{value:oe})})}K<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var He=A.ReactCurrentDispatcher,Ze;function Pe(t,d,p){{if(Ze===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);Ze=v&&v[1]||""}return`
`+Ze+t}}var Ve=!1,Le;{var ho=typeof WeakMap=="function"?WeakMap:Map;Le=new ho}function Dr(t,d){if(!t||Ve)return"";{var p=Le.get(t);if(p!==void 0)return p}var v;Ve=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=He.current,He.current=null,mo();try{if(d){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(V){v=V}Reflect.construct(t,[],k)}else{try{k.call()}catch(V){v=V}t.call(k.prototype)}}else{try{throw Error()}catch(V){v=V}t()}}catch(V){if(V&&v&&typeof V.stack=="string"){for(var R=V.stack.split(`
`),I=v.stack.split(`
`),N=R.length-1,_=I.length-1;N>=1&&_>=0&&R[N]!==I[_];)_--;for(;N>=1&&_>=0;N--,_--)if(R[N]!==I[_]){if(N!==1||_!==1)do if(N--,_--,_<0||R[N]!==I[_]){var W=`
`+R[N].replace(" at new "," at ");return t.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",t.displayName)),typeof t=="function"&&Pe.set(t,W),W}while(N>=1&&_>=0);break}}}finally{Ve=!1,He.current=L,vo(),Error.prepareStackTrace=E}var de=t?t.displayName||t.name:"",Kr=de?Le(de):"";return typeof t=="function"&&Pe.set(t,Kr),Kr}function xo(t,d,p){return Dr(t,!1)}function yo(t){var d=t.prototype;return!!(d&&d.isReactComponent)}function Ae(t,d,p){if(t==null)return"";if(typeof t=="function")return Dr(t,yo(t));if(typeof t=="string")return Le(t);switch(t){case f:return Le("Suspense");case m:return Le("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case u:return xo(t.render);case g:return Ae(t.type,d,p);case h:{var v=t,E=v._payload,L=v._init;try{return Ae(L(E),d,p)}catch{}}}return""}var Ne=Object.prototype.hasOwnProperty,Ir={},Fr=A.ReactDebugCurrentFrame;function _e(t){if(t){var d=t._owner,p=Ae(t.type,t._source,d?d.type:null);Fr.setExtraStackFrame(p)}else Fr.setExtraStackFrame(null)}function wo(t,d,p,v,E){{var L=Function.call.bind(Ne);for(var k in t)if(L(t,k)){var R=void 0;try{if(typeof t[k]!="function"){var I=Error((v||"React class")+": "+p+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}R=t[k](d,k,v,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){R=N}R&&!(R instanceof Error)&&(_e(E),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",p,k,typeof R),_e(null)),R instanceof Error&&!(R.message in Ir)&&(Ir[R.message]=!0,_e(E),O("Failed %s type: %s",p,R.message),_e(null))}}}var Co=Array.isArray;function Ye(t){return Co(t)}function jo(t){{var d=typeof Symbol=="function"&&Symbol.toStringTag,p=d&&t[Symbol.toStringTag]||t.constructor.name||"Object";return p}}function So(t){try{return zr(t),!1}catch{return!0}}function zr(t){return""+t}function Gr(t){if(So(t))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jo(t)),zr(t)}var we=A.ReactCurrentOwner,Ro={key:!0,ref:!0,__self:!0,__source:!0},Wr,Ur,Je;Je={};function ko(t){if(Ne.call(t,"ref")){var d=Object.getOwnPropertyDescriptor(t,"ref").get;if(d&&d.isReactWarning)return!1}return t.ref!==void 0}function Eo(t){if(Ne.call(t,"key")){var d=Object.getOwnPropertyDescriptor(t,"key").get;if(d&&d.isReactWarning)return!1}return t.key!==void 0}function Oo(t,d){if(typeof t.ref=="string"&&we.current&&d&&we.current.stateNode!==d){var p=z(we.current.type);Je[p]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',z(we.current.type),t.ref),Je[p]=!0)}}function To(t,d){{var p=function(){Wr||(Wr=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))};p.isReactWarning=!0,Object.defineProperty(t,"key",{get:p,configurable:!0})}}function Lo(t,d){{var p=function(){Ur||(Ur=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))};p.isReactWarning=!0,Object.defineProperty(t,"ref",{get:p,configurable:!0})}}var Po=function(t,d,p,v,E,L,k){var R={$$typeof:r,type:t,key:d,ref:p,props:k,_owner:L};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Ao(t,d,p,v,E){{var L,k={},R=null,I=null;p!==void 0&&(Gr(p),R=""+p),Eo(d)&&(Gr(d.key),R=""+d.key),ko(d)&&(I=d.ref,Oo(d,E));for(L in d)Ne.call(d,L)&&!Ro.hasOwnProperty(L)&&(k[L]=d[L]);if(t&&t.defaultProps){var N=t.defaultProps;for(L in N)k[L]===void 0&&(k[L]=N[L])}if(R||I){var _=typeof t=="function"?t.displayName||t.name||"Unknown":t;R&&To(k,_),I&&Lo(k,_)}return Po(t,R,I,E,v,we.current,k)}}var Ke=A.ReactCurrentOwner,Br=A.ReactDebugCurrentFrame;function ue(t){if(t){var d=t._owner,p=Ae(t.type,t._source,d?d.type:null);Br.setExtraStackFrame(p)}else Br.setExtraStackFrame(null)}var Xe;Xe=!1;function Qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function Hr(){{if(Ke.current){var t=z(Ke.current.type);if(t)return`
`+R[N].replace(" at new "," at ");return t.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",t.displayName)),typeof t=="function"&&Le.set(t,W),W}while(N>=1&&_>=0);break}}}finally{Ve=!1,He.current=P,vo(),Error.prepareStackTrace=E}var de=t?t.displayName||t.name:"",Kr=de?Pe(de):"";return typeof t=="function"&&Le.set(t,Kr),Kr}function xo(t,d,p){return Dr(t,!1)}function yo(t){var d=t.prototype;return!!(d&&d.isReactComponent)}function Ae(t,d,p){if(t==null)return"";if(typeof t=="function")return Dr(t,yo(t));if(typeof t=="string")return Pe(t);switch(t){case f:return Pe("Suspense");case m:return Pe("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case u:return xo(t.render);case g:return Ae(t.type,d,p);case h:{var v=t,E=v._payload,P=v._init;try{return Ae(P(E),d,p)}catch{}}}return""}var Ne=Object.prototype.hasOwnProperty,Ir={},Fr=A.ReactDebugCurrentFrame;function _e(t){if(t){var d=t._owner,p=Ae(t.type,t._source,d?d.type:null);Fr.setExtraStackFrame(p)}else Fr.setExtraStackFrame(null)}function wo(t,d,p,v,E){{var P=Function.call.bind(Ne);for(var k in t)if(P(t,k)){var R=void 0;try{if(typeof t[k]!="function"){var I=Error((v||"React class")+": "+p+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}R=t[k](d,k,v,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){R=N}R&&!(R instanceof Error)&&(_e(E),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",p,k,typeof R),_e(null)),R instanceof Error&&!(R.message in Ir)&&(Ir[R.message]=!0,_e(E),O("Failed %s type: %s",p,R.message),_e(null))}}}var Co=Array.isArray;function Ye(t){return Co(t)}function jo(t){{var d=typeof Symbol=="function"&&Symbol.toStringTag,p=d&&t[Symbol.toStringTag]||t.constructor.name||"Object";return p}}function So(t){try{return zr(t),!1}catch{return!0}}function zr(t){return""+t}function Gr(t){if(So(t))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jo(t)),zr(t)}var we=A.ReactCurrentOwner,Ro={key:!0,ref:!0,__self:!0,__source:!0},Wr,Ur,Je;Je={};function ko(t){if(Ne.call(t,"ref")){var d=Object.getOwnPropertyDescriptor(t,"ref").get;if(d&&d.isReactWarning)return!1}return t.ref!==void 0}function Eo(t){if(Ne.call(t,"key")){var d=Object.getOwnPropertyDescriptor(t,"key").get;if(d&&d.isReactWarning)return!1}return t.key!==void 0}function Oo(t,d){if(typeof t.ref=="string"&&we.current&&d&&we.current.stateNode!==d){var p=z(we.current.type);Je[p]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',z(we.current.type),t.ref),Je[p]=!0)}}function To(t,d){{var p=function(){Wr||(Wr=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))};p.isReactWarning=!0,Object.defineProperty(t,"key",{get:p,configurable:!0})}}function Po(t,d){{var p=function(){Ur||(Ur=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))};p.isReactWarning=!0,Object.defineProperty(t,"ref",{get:p,configurable:!0})}}var Lo=function(t,d,p,v,E,P,k){var R={$$typeof:r,type:t,key:d,ref:p,props:k,_owner:P};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Ao(t,d,p,v,E){{var P,k={},R=null,I=null;p!==void 0&&(Gr(p),R=""+p),Eo(d)&&(Gr(d.key),R=""+d.key),ko(d)&&(I=d.ref,Oo(d,E));for(P in d)Ne.call(d,P)&&!Ro.hasOwnProperty(P)&&(k[P]=d[P]);if(t&&t.defaultProps){var N=t.defaultProps;for(P in N)k[P]===void 0&&(k[P]=N[P])}if(R||I){var _=typeof t=="function"?t.displayName||t.name||"Unknown":t;R&&To(k,_),I&&Po(k,_)}return Lo(t,R,I,E,v,we.current,k)}}var Ke=A.ReactCurrentOwner,Br=A.ReactDebugCurrentFrame;function ue(t){if(t){var d=t._owner,p=Ae(t.type,t._source,d?d.type:null);Br.setExtraStackFrame(p)}else Br.setExtraStackFrame(null)}var Xe;Xe=!1;function Qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function Hr(){{if(Ke.current){var t=z(Ke.current.type);if(t)return`

@@ -28,2 +28,2 @@ Check the render method of \``+t+"`."}return""}}function No(t){{if(t!==void 0){var d=t.fileName.replace(/^.*[\\\/]/,""),p=t.lineNumber;return`

Check the top-level render call using <`+p+">.")}return d}}function Vr(t,d){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var p=_o(d);if(Zr[p])return;Zr[p]=!0;var v="";t&&t._owner&&t._owner!==Ke.current&&(v=" It was passed a child from "+z(t._owner.type)+"."),ue(t),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',p,v),ue(null)}}function Yr(t,d){{if(typeof t!="object")return;if(Ye(t))for(var p=0;p<t.length;p++){var v=t[p];Qe(v)&&Vr(v,d)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var E=w(t);if(typeof E=="function"&&E!==t.entries)for(var L=E.call(t),k;!(k=L.next()).done;)Qe(k.value)&&Vr(k.value,d)}}}function Mo(t){{var d=t.type;if(d==null||typeof d=="string")return;var p;if(typeof d=="function")p=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===u||d.$$typeof===g))p=d.propTypes;else return;if(p){var v=z(d);wo(p,t.props,"prop",v,t)}else if(d.PropTypes!==void 0&&!Xe){Xe=!0;var E=z(d);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Do(t){{for(var d=Object.keys(t.props),p=0;p<d.length;p++){var v=d[p];if(v!=="children"&&v!=="key"){ue(t),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),ue(null);break}}t.ref!==null&&(ue(t),O("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}}function Jr(t,d,p,v,E,L){{var k=ve(t);if(!k){var R="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var I=No(E);I?R+=I:R+=Hr();var N;t===null?N="null":Ye(t)?N="array":t!==void 0&&t.$$typeof===r?(N="<"+(z(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):N=typeof t,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,R)}var _=Ao(t,d,p,E,L);if(_==null)return _;if(k){var W=d.children;if(W!==void 0)if(v)if(Ye(W)){for(var de=0;de<W.length;de++)Yr(W[de],t);Object.freeze&&Object.freeze(W)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yr(W,t)}return t===o?Do(_):Mo(_),_}}function Io(t,d,p){return Jr(t,d,p,!0)}function Fo(t,d,p){return Jr(t,d,p,!1)}var zo=Fo,Go=Io;pe.Fragment=o,pe.jsx=zo,pe.jsxs=Go}()),pe}process.env.NODE_ENV==="production"?Me.exports=Xr():Me.exports=Qr();var l=Me.exports;const B=b.createContext({refinedLocations:[],locations:[],setSelectedLocation:e=>{},setRefinedLocations:e=>{},setLocations:e=>{}}),qr=({children:e})=>{const[r,n]=b.useState(),[o,c]=b.useState([]),[s,i]=b.useState([]);return l.jsx(B.Provider,{value:{selectedLocation:r,locations:s,refinedLocations:o,setSelectedLocation:n,setRefinedLocations:c,setLocations:i},children:e})};function $r(){for(var e=0,r,n,o="";e<arguments.length;)(r=arguments[e++])&&(n=rr(r))&&(o&&(o+=" "),o+=n);return o}function rr(e){if(typeof e=="string")return e;for(var r,n="",o=0;o<e.length;o++)e[o]&&(r=rr(e[o]))&&(n&&(n+=" "),n+=r);return n}var De="-";function et(e){var r=tt(e),n=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,c=o===void 0?{}:o;function s(a){var u=a.split(De);return u[0]===""&&u.length!==1&&u.shift(),tr(u,r)||rt(a)}function i(a,u){var f=n[a]||[];return u&&c[a]?[].concat(f,c[a]):f}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function tr(e,r){var i;if(e.length===0)return r.classGroupId;var n=e[0],o=r.nextPart.get(n),c=o?tr(e.slice(1),o):void 0;if(c)return c;if(r.validators.length!==0){var s=e.join(De);return(i=r.validators.find(function(a){var u=a.validator;return u(s)}))==null?void 0:i.classGroupId}}var nr=/^\[(.+)\]$/;function rt(e){if(nr.test(e)){var r=nr.exec(e)[1],n=r==null?void 0:r.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}}function tt(e){var r=e.theme,n=e.prefix,o={nextPart:new Map,validators:[]},c=ot(Object.entries(e.classGroups),n);return c.forEach(function(s){var i=s[0],a=s[1];Ie(a,o,i,r)}),o}function Ie(e,r,n,o){e.forEach(function(c){if(typeof c=="string"){var s=c===""?r:or(r,c);s.classGroupId=n;return}if(typeof c=="function"){if(nt(c)){Ie(c(o),r,n,o);return}r.validators.push({validator:c,classGroupId:n});return}Object.entries(c).forEach(function(i){var a=i[0],u=i[1];Ie(u,or(r,a),n,o)})})}function or(e,r){var n=e;return r.split(De).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function nt(e){return e.isThemeGetter}function ot(e,r){return r?e.map(function(n){var o=n[0],c=n[1],s=c.map(function(i){return typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(a){var u=a[0],f=a[1];return[r+u,f]})):i});return[o,s]}):e}function at(e){if(e<1)return{get:function(){},set:function(){}};var r=0,n=new Map,o=new Map;function c(s,i){n.set(s,i),r++,r>e&&(r=0,o=n,n=new Map)}return{get:function(i){var a=n.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return c(i,a),a},set:function(i,a){n.has(i)?n.set(i,a):c(i,a)}}}var ar="!";function st(e){var r=e.separator||":",n=r.length===1,o=r[0],c=r.length;return function(i){for(var a=[],u=0,f=0,m,g=0;g<i.length;g++){var h=i[g];if(u===0){if(h===o&&(n||i.slice(g,g+c)===r)){a.push(i.slice(f,g)),f=g+c;continue}if(h==="/"){m=g;continue}}h==="["?u++:h==="]"&&u--}var x=a.length===0?i:i.substring(f),j=x.startsWith(ar),y=j?x.substring(1):x,w=m&&m>f?m-f:void 0;return{modifiers:a,hasImportantModifier:j,baseClassName:y,maybePostfixModifierPosition:w}}}function it(e){if(e.length<=1)return e;var r=[],n=[];return e.forEach(function(o){var c=o[0]==="[";c?(r.push.apply(r,n.sort().concat([o])),n=[]):n.push(o)}),r.push.apply(r,n.sort()),r}function lt(e){return{cache:at(e.cacheSize),splitModifiers:st(e),...et(e)}}var ct=/\s+/;function ut(e,r){var n=r.splitModifiers,o=r.getClassGroupId,c=r.getConflictingClassGroupIds,s=new Set;return e.trim().split(ct).map(function(i){var a=n(i),u=a.modifiers,f=a.hasImportantModifier,m=a.baseClassName,g=a.maybePostfixModifierPosition,h=o(g?m.substring(0,g):m),x=!!g;if(!h){if(!g)return{isTailwindClass:!1,originalClassName:i};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:i};x=!1}var j=it(u).join(":"),y=f?j+ar:j;return{isTailwindClass:!0,modifierId:y,classGroupId:h,originalClassName:i,hasPostfixModifier:x}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var a=i.modifierId,u=i.classGroupId,f=i.hasPostfixModifier,m=a+u;return s.has(m)?!1:(s.add(m),c(u,f).forEach(function(g){return s.add(a+g)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function dt(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o,c,s,i=a;function a(f){var m=r[0],g=r.slice(1),h=g.reduce(function(x,j){return j(x)},m());return o=lt(h),c=o.cache.get,s=o.cache.set,i=u,u(f)}function u(f){var m=c(f);if(m)return m;var g=ut(f,o);return s(f,g),g}return function(){return i($r.apply(null,arguments))}}function P(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var sr=/^\[(?:([a-z-]+):)?(.+)\]$/i,ft=/^\d+\/\d+$/,pt=new Set(["px","full","screen"]),gt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function U(e){return q(e)||pt.has(e)||ft.test(e)||Fe(e)}function Fe(e){return $(e,"length",Ct)}function vt(e){return $(e,"size",ir)}function ht(e){return $(e,"position",ir)}function xt(e){return $(e,"url",jt)}function je(e){return $(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function yt(e){return e.endsWith("%")&&q(e.slice(0,-1))}function ge(e){return lr(e)||$(e,"number",lr)}function S(e){return sr.test(e)}function be(){return!0}function Y(e){return gt.test(e)}function wt(e){return $(e,"",St)}function $(e,r,n){var o=sr.exec(e);return o?o[1]?o[1]===r:n(o[2]):!1}function Ct(e){return bt.test(e)}function ir(){return!1}function jt(e){return e.startsWith("url(")}function lr(e){return Number.isInteger(Number(e))}function St(e){return mt.test(e)}function Rt(){var e=P("colors"),r=P("spacing"),n=P("blur"),o=P("brightness"),c=P("borderColor"),s=P("borderRadius"),i=P("borderSpacing"),a=P("borderWidth"),u=P("contrast"),f=P("grayscale"),m=P("hueRotate"),g=P("invert"),h=P("gap"),x=P("gradientColorStops"),j=P("gradientColorStopPositions"),y=P("inset"),w=P("margin"),A=P("opacity"),O=P("padding"),te=P("saturate"),J=P("scale"),ke=P("sepia"),Ee=P("skew"),Oe=P("space"),Te=P("translate"),le=function(){return["auto","contain","none"]},ve=function(){return["auto","hidden","clip","visible","scroll"]},he=function(){return["auto",S,r]},T=function(){return[S,r]},z=function(){return["",U]},G=function(){return["auto",q,S]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},ne=function(){return["solid","dashed","dotted","double","none"]},xe=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ce=function(){return["start","end","center","between","around","evenly","stretch"]},X=function(){return["","0",S]},ye=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Q=function(){return[q,je]},oe=function(){return[q,S]};return{cacheSize:500,theme:{colors:[be],spacing:[U],blur:["none","",Y,S],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Y,S],borderSpacing:T(),borderWidth:z(),contrast:Q(),grayscale:X(),hueRotate:oe(),invert:X(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[yt,Fe],inset:he(),margin:he(),opacity:Q(),padding:T(),saturate:Q(),scale:Q(),sepia:X(),skew:oe(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[S])}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ge]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",ge]}],"grid-cols":[{"grid-cols":[be]}],"col-start-end":[{col:["auto",{span:["full",ge]},S]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[be]}],"row-start-end":[{row:["auto",{span:[ge]},S]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(ce())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ce(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ce(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",S,r]}],"min-w":[{"min-w":["min","max","fit",S,U]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Y]},Y,S]}],h:[{h:[S,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",S,U]}],"max-h":[{"max-h":[S,r,"min","max","fit"]}],"font-size":[{text:["base",Y,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",je]}],"font-family":[{font:[be]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",S]}],"line-clamp":[{"line-clamp":["none",q,je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,U]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(ne(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",U]}],"underline-offset":[{"underline-offset":["auto",S,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[ht])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[].concat(ne(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:ne()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:[""].concat(ne())}],"outline-offset":[{"outline-offset":[S,U]}],"outline-w":[{outline:[U]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Y,wt]}],"shadow-color":[{shadow:[be]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":xe()}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Y,S]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[te]}],sepia:[{sepia:[ke]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[ge,S]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[Ee]}],"skew-y":[{"skew-y":[Ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,je]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var kt=dt(Rt);const C=(...e)=>e.reduce((r,n)=>{if(!n)return r;const o=typeof n=="string"?n:C(...Object.entries(n).filter(([c,s])=>s).map(([c])=>c));return o.length?r.length?kt(r,o):o:r},""),cr=e=>e!=null;function ze(e){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ze(e)}function ur(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function Ge(e,r){if(r.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+r.length+" present")}function dr(e){Ge(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||ze(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Et(e,r){Ge(2,arguments);var n=dr(e),o=ur(r);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}var Ot={};function Tt(){return Ot}function Lt(e,r){var n,o,c,s,i,a,u,f;Ge(1,arguments);var m=Tt(),g=ur((n=(o=(c=(s=r==null?void 0:r.weekStartsOn)!==null&&s!==void 0?s:r==null||(i=r.locale)===null||i===void 0||(a=i.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&c!==void 0?c:m.weekStartsOn)!==null&&o!==void 0?o:(u=m.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dr(e),x=h.getDay(),j=(x<g?7:0)+x-g;return h.setDate(h.getDate()-j),h.setHours(0,0,0,0),h}const Pt=new Map([["Sunday",0],["Monday",1],["Tuesday",2],["Wednesday",3],["Thursday",4],["Friday",5],["Saturday",6]]),At=(e,r="nl",n="NL")=>{const o=Lt(new Date);return Et(o,e).toLocaleString(`${r}-${n}`,{weekday:"long"})},Nt=e=>Object.values(e).reduce((r,n)=>n.slots.length>r?n.slots.length:r,0),Se=()=>{const e=new Date,r=e.getDay(),n=e.getHours(),o=i=>String(i).padStart(2,"0");return{getOpeningHoursSlot:i=>{const a=i?i.days&&i.days[r]:void 0,u=a!=null&&a.slots&&a.slots.length?a.slots.at(-1):void 0,f=u?`${o(u.to.hours)}:${o(u.to.minutes)}`:void 0,m=u?u.to.hours>=n:!1;return{currentOpeningHour:a,currentOpeningHourSlot:u,currentOpeningHourSlotLabel:f,openIndicator:m}},zeroPad:o,formatTime:i=>{const a=new Date(`1/01/1970 ${i}`),u=a.getHours(),f=a.getMinutes();return{hours:u,minutes:f}},dayMap:Pt,getFullDayName:At,getMaxSlots:Nt}},_t=["places","geometry"],We=8,Mt={east:7.5,north:53.7,south:50.6,west:3.1},Re={lat:52.370216,lng:4.895168},ee=b.createContext({currentPosition:Re,previousZoom:We,showDistance:!1,pendingRefine:!1,setMap:e=>{},setPosition:e=>{},setPreviousZoom:e=>{},setShowDistance:e=>{},setPendingRefine:e=>{}}),Dt=({children:e})=>{const[r,n]=b.useState(),[o,c]=b.useState(Re),[s,i]=b.useState(0),[a,u]=b.useState(!1),[f,m]=b.useState(!1);return l.jsx(ee.Provider,{value:{map:r,showDistance:a,previousZoom:s,pendingRefine:f,setMap:n,setPendingRefine:m,setPreviousZoom:i,setShowDistance:u,currentPosition:o,setPosition:c},children:e})},Ue=()=>{const{calculateDistance:e}=qe(),{formatTime:r,dayMap:n}=Se(),{setRefinedLocations:o,locations:c}=b.useContext(B),{map:s,showDistance:i}=b.useContext(ee);return{formatListLocations:()=>{const f=s==null?void 0:s.getCenter();!f||!c||c.length===0||o(i?c.map(m=>({...m,distance:e(f,m.position)})).sort((m,g)=>m.distance-g.distance):c)},setLocationFinderFormat:(f,m)=>f.map(g=>{var j,y,w;const h=(j=g.days)==null?void 0:j.filter(cr);let x=[];return h.map(A=>{var te;let O=n.get(A.day);if(typeof O<"u")return x[O]={closed:A.closed,slots:((te=A.slots)==null?void 0:te.filter(cr).map(J=>({from:r(J.from),to:r(J.to)})))??[]}}),{city:g.city,id:g.externalId??g.id,title:g.name,street:g.street,position:{lat:parseFloat(g.geolocation.lat),lng:parseFloat(g.geolocation.lng)},phone:g.phone,email:g.email,image:(w=(y=g.image)==null?void 0:y.data)!=null&&w.attributes?[`${m}${g.image.data.attributes.url}?resize=800x400`]:void 0,openingHours:{days:x},attributes:g.attributes??{}}})}},fr=()=>{const{locations:e,refinedLocations:r}=b.useContext(B),{map:n,setMap:o,setPendingRefine:c,pendingRefine:s}=b.useContext(ee),{formatListLocations:i}=Ue(),a=b.useCallback(f=>{o(f)},[n]),u=b.useCallback(()=>{s&&(c(!1),i())},[s,c,e,r]);return{loadMap:a,handleOnMapIdle:u}};function It(e,r,n,o){var c=-1,s=e==null?0:e.length;for(o&&s&&(n=e[++c]);++c<s;)n=r(n,e[c],c,e);return n}function Ft(e){return function(r){return e==null?void 0:e[r]}}var zt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Gt=Ft(zt);const Wt=Gt;var Ut=typeof global=="object"&&global&&global.Object===Object&&global;const Bt=Ut;var Ht=typeof self=="object"&&self&&self.Object===Object&&self,Zt=Bt||Ht||Function("return this")(),Vt=Zt.Symbol;const ae=Vt;function Yt(e,r){for(var n=-1,o=e==null?0:e.length,c=Array(o);++n<o;)c[n]=r(e[n],n,e);return c}var Jt=Array.isArray;const Kt=Jt;var pr=Object.prototype,Xt=pr.hasOwnProperty,Qt=pr.toString,me=ae?ae.toStringTag:void 0;function qt(e){var r=Xt.call(e,me),n=e[me];try{e[me]=void 0;var o=!0}catch{}var c=Qt.call(e);return o&&(r?e[me]=n:delete e[me]),c}var $t=Object.prototype,en=$t.toString;function rn(e){return en.call(e)}var tn="[object Null]",nn="[object Undefined]",gr=ae?ae.toStringTag:void 0;function on(e){return e==null?e===void 0?nn:tn:gr&&gr in Object(e)?qt(e):rn(e)}function an(e){return e!=null&&typeof e=="object"}var sn="[object Symbol]";function ln(e){return typeof e=="symbol"||an(e)&&on(e)==sn}var cn=1/0,br=ae?ae.prototype:void 0,mr=br?br.toString:void 0;function vr(e){if(typeof e=="string")return e;if(Kt(e))return Yt(e,vr)+"";if(ln(e))return mr?mr.call(e):"";var r=e+"";return r=="0"&&1/e==-cn?"-0":r}function hr(e){return e==null?"":vr(e)}var un=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dn="\\u0300-\\u036f",fn="\\ufe20-\\ufe2f",pn="\\u20d0-\\u20ff",gn=dn+fn+pn,bn="["+gn+"]",mn=RegExp(bn,"g");function vn(e){return e=hr(e),e&&e.replace(un,Wt).replace(mn,"")}var hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function xn(e){return e.match(hn)||[]}var yn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function wn(e){return yn.test(e)}var xr="\\ud800-\\udfff",Cn="\\u0300-\\u036f",jn="\\ufe20-\\ufe2f",Sn="\\u20d0-\\u20ff",Rn=Cn+jn+Sn,yr="\\u2700-\\u27bf",wr="a-z\\xdf-\\xf6\\xf8-\\xff",kn="\\xac\\xb1\\xd7\\xf7",En="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",On="\\u2000-\\u206f",Tn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ln="\\ufe0e\\ufe0f",jr=kn+En+On+Tn,Sr="['’]",Rr="["+jr+"]",Pn="["+Rn+"]",kr="\\d+",An="["+yr+"]",Er="["+wr+"]",Or="[^"+xr+jr+kr+yr+wr+Cr+"]",Nn="\\ud83c[\\udffb-\\udfff]",_n="(?:"+Pn+"|"+Nn+")",Mn="[^"+xr+"]",Tr="(?:\\ud83c[\\udde6-\\uddff]){2}",Lr="[\\ud800-\\udbff][\\udc00-\\udfff]",se="["+Cr+"]",Dn="\\u200d",Pr="(?:"+Er+"|"+Or+")",In="(?:"+se+"|"+Or+")",Ar="(?:"+Sr+"(?:d|ll|m|re|s|t|ve))?",Nr="(?:"+Sr+"(?:D|LL|M|RE|S|T|VE))?",_r=_n+"?",Mr="["+Ln+"]?",Fn="(?:"+Dn+"(?:"+[Mn,Tr,Lr].join("|")+")"+Mr+_r+")*",zn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wn=Mr+_r+Fn,Un="(?:"+[An,Tr,Lr].join("|")+")"+Wn,Bn=RegExp([se+"?"+Er+"+"+Ar+"(?="+[Rr,se,"$"].join("|")+")",In+"+"+Nr+"(?="+[Rr,se+Pr,"$"].join("|")+")",se+"?"+Pr+"+"+Ar,se+"+"+Nr,Gn,zn,kr,Un].join("|"),"g");function Hn(e){return e.match(Bn)||[]}function Zn(e,r,n){return e=hr(e),r=n?void 0:r,r===void 0?wn(e)?Hn(e):xn(e):e.match(r)||[]}var Vn="['’]",Yn=RegExp(Vn,"g");function Jn(e){return function(r){return It(Zn(vn(r).replace(Yn,"")),e,"")}}var Kn=Jn(function(e,r,n){return e+(n?"-":"")+r.toLowerCase()});const Xn=Kn,ie=()=>{const{formatListLocations:e}=Ue(),{selectedLocation:r,locations:n,setSelectedLocation:o}=b.useContext(B),{setPendingRefine:c,setShowDistance:s,currentPosition:i,map:a}=b.useContext(ee),u=b.useCallback(()=>{o(void 0);const y=`${window.location.href.split("?")[0]}`;history.pushState({},"",y),x()},[r,o]),f=b.useCallback(j=>{g(j)},[a]),m=b.useCallback(j=>{a&&(a.setZoom(12),a.panTo(j))},[a]),g=b.useCallback(j=>{const y=new URLSearchParams(document.location.search);if(o(j),y.set("location",`${Xn(j.title)}-${j.id}`),typeof window<"u"){const A=`${window.location.href.split("?")[0]}?${y}`;history.pushState({},"",A)}m(j.position),c(!0)},[a]),h=b.useCallback(()=>{a&&(a.setCenter(i),e())},[a,i]),x=b.useCallback(()=>{a&&(a.setCenter(Re),a.setZoom(We),s(!1),n&&e())},[a,r,n,i]);return{onMarkerClick:f,handleSelectedLocation:g,unsetSelectedLocation:u,refine:h,reset:x}},Be=()=>{const{reset:e}=ie(),{map:r,currentPosition:n,pendingRefine:o,setPendingRefine:c,setPosition:s,setShowDistance:i,showDistance:a}=b.useContext(ee),[u,f]=b.useState(),m=b.useCallback(y=>{f(y)},[f,r]),g=b.useCallback(y=>{y.target.value===""&&e()},[r]),h=b.useCallback(()=>{if(!u||!r)return;const w=u.getPlace().geometry;w!=null&&w.viewport&&r.fitBounds(w.viewport),w!=null&&w.location&&r.setCenter(w.location),i(!0),c(!0)},[u,r,a]),x=()=>new Promise((y,w)=>navigator.geolocation.getCurrentPosition(y,w)),j=b.useCallback(async()=>{const{coords:y}=await x();s({lat:y.latitude,lng:y.longitude}),i(!0),c(!0),r==null||r.setCenter({lat:y.latitude,lng:y.longitude}),r==null||r.setZoom(11)},[r,n,o,a]);return{loadAutocomplete:m,autocomplete:u,onInputChange:g,onPlaceChange:h,setCurrentGeoPosition:j}},D=b.createContext({setMarkerIcon:e=>e,setRenders:e=>e,setClassNames:e=>e,setMapConfig:e=>e,setLabels:e=>e}),Qn=({children:e})=>{const[r,n]=b.useState(),[o,c]=b.useState(),[s,i]=b.useState(),[a,u]=b.useState(),[f,m]=b.useState();return l.jsx(D.Provider,{value:{markerIcon:r,labels:f,mapConfig:a,renders:o,classNames:s,setRenders:c,setClassNames:i,setMapConfig:u,setLabels:m,setMarkerIcon:n},children:e})},qn=({children:e})=>{const{classNames:r,mapConfig:n}=b.useContext(D);b.useContext(ee);const{locations:o}=b.useContext(B),{handleSelectedLocation:c}=ie(),{loadMap:s,handleOnMapIdle:i}=fr(),u=new URLSearchParams(document.location.search).get("location"),{defaultBounds:f=Mt,defaultCenter:m=Re,defaultZoom:g=We,maxZoom:h=16,minZoom:x=8,styles:j}=n??{};return b.useEffect(()=>{if(u&&o){const y=u.split(/[- ]+/).pop(),w=o.filter(A=>A.id.toString()===y).pop();w&&c(w)}},[o]),l.jsx(Ce.GoogleMap,{onLoad:s,mapContainerClassName:C("w-full relative z-0 h-[60vh] min-h-[25rem] md:h-screen",r==null?void 0:r.map),zoom:g,center:m,onIdle:i,options:{maxZoom:h,minZoom:x,restriction:{latLngBounds:f},mapTypeControl:!1,styles:j,disableDoubleClickZoom:!0},children:e})},$n=({location:e})=>{const{onMarkerClick:r}=ie(),{markerIcon:n}=b.useContext(D);return l.jsx(Ce.Marker,{icon:n?{url:n.url,scaledSize:new google.maps.Size(n.width,n.height)}:void 0,position:e.position,onClick:o=>r(e)},e.id)},eo=()=>{const{locations:e}=b.useContext(B);return l.jsx(qn,{children:e&&e.map(r=>l.jsx($n,{location:r},`marker-${r.id}`))})},ro=({icon:e})=>{const{setCurrentGeoPosition:r}=Be(),{classNames:n}=b.useContext(D),[o,c]=b.useState(!1),[s,i]=b.useState(!1),{autocomplete:a}=n??{},u=async()=>{o||(c(!0),await r().then(()=>{c(!1),i(!s)}))};return l.jsx("button",{disabled:o,className:C("flex-none border border-gray-300 border-l-0 pr-3 pl-2 rounded-r ",a==null?void 0:a.button,{"cursor-wait":o,"cursor-pointer":!o}),onClick:u,children:l.jsxs("div",{className:C("relative",{"animate-pulse":o},a==null?void 0:a.iconWrapper),children:[s&&l.jsx(l.Fragment,{children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960",className:C("fill-green-500 w-4 h-4 absolute -top-1 -right-2",a==null?void 0:a.iconVerified),children:l.jsx("path",{d:"m419.87-403.696-87.261-87.261q-11.261-11.261-27.715-11.261t-29.155 12.261q-11.261 11.827-11.261 28.218t11.826 27.652L391.521-317.87q12.083 11.827 28.194 11.827 16.111 0 28.503-11.827l232.217-232.782q12.826-12.261 12.826-28.432 0-16.172-12.826-28.873-12.261-11.261-29.216-10.761-16.954.5-28.654 11.761L419.87-403.696Zm60.208 337.827q-85.469 0-161.006-32.395-75.536-32.395-131.975-88.833-56.438-56.439-88.833-131.897-32.395-75.459-32.395-160.928 0-86.469 32.395-162.006 32.395-75.536 88.745-131.504 56.349-55.968 131.849-88.616 75.5-32.648 161.017-32.648 86.516 0 162.12 32.604 75.603 32.604 131.529 88.497t88.549 131.452Q894.696-566.584 894.696-480q0 85.547-32.648 161.075-32.648 75.527-88.616 131.896-55.968 56.37-131.426 88.765-75.459 32.395-161.928 32.395Z"})})}),e??l.jsx("svg",{className:C("fill-current w-6 h-6",a==null?void 0:a.icon),xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960",children:l.jsx("path",{d:"M443.782-64.652v-38.782q-138.13-14.565-232.239-108.674-94.109-94.109-108.109-231.674H64.652q-15.393 0-25.805-10.429-10.413-10.429-10.413-25.845 0-15.417 10.413-25.789 10.412-10.373 25.805-10.373h38.782q14.565-138.13 108.674-232.239 94.109-94.109 231.674-108.109v-38.782q0-15.393 10.429-25.805 10.429-10.413 25.845-10.413 15.417 0 25.789 10.413 10.373 10.412 10.373 25.805v38.782q137.565 14 231.674 108.109 94.109 94.109 108.674 232.239h38.782q15.393 0 25.805 10.429 10.413 10.429 10.413 25.845 0 15.417-10.413 25.789-10.412 10.373-25.805 10.373h-38.782q-14 137.565-108.109 231.674-94.109 94.109-232.239 108.674v38.782q0 15.393-10.429 25.805-10.429 10.413-25.845 10.413-15.417 0-25.789-10.413-10.373-10.412-10.373-25.805Zm36.121-116.435q123.401 0 211.206-87.707 87.804-87.708 87.804-211.109 0-123.401-87.707-211.206-87.708-87.804-211.109-87.804-123.401 0-211.206 87.707-87.804 87.708-87.804 211.109 0 123.401 87.707 211.206 87.708 87.804 211.109 87.804ZM480-330q-63 0-106.5-43.5T330-480q0-63 43.5-106.5T480-630q63 0 106.5 43.5T630-480q0 63-43.5 106.5T480-330Zm-.205-73.001q32.553 0 54.878-22.12 22.326-22.121 22.326-54.674t-22.12-54.878q-22.121-22.326-54.674-22.326t-54.878 22.12q-22.326 22.121-22.326 54.674t22.12 54.878q22.121 22.326 54.674 22.326ZM480-480Z"})})]})})},to=b.forwardRef(({},e)=>{const{loadAutocomplete:r,onInputChange:n,onPlaceChange:o}=Be(),{classNames:c,labels:s}=b.useContext(D),{autocomplete:i}=c??{},{placeholder:a="Zoek op een plaats of locatie"}=s??{};return l.jsxs("div",{className:C("flex items-stretch focus-within:z-10",i==null?void 0:i.wrapper),children:[l.jsx(Ce.Autocomplete,{onLoad:r,className:C("border border-r-0 p-2 rounded rounded-r-none border-gray-300 flex-grow",i==null?void 0:i.inputWrapper),onPlaceChanged:o,children:l.jsx("input",{ref:e,onChange:n,className:C("block w-full placeholder-gray-400 border-r-0",i==null?void 0:i.input),placeholder:a,type:"text"})}),l.jsx(ro,{})]})}),no=({numberOfLocations:e})=>{var i,a,u;const{labels:r,classNames:n}=b.useContext(D),{findDealerNearby:o="Vind een locatie in de buurt",dealers:c=`${e} locaties`}=r??{},{panel:s}=n??{};return l.jsxs("div",{className:C("mb-4 flex h-max items-center justify-between",(i=s==null?void 0:s.headingTop)==null?void 0:i.wrapper),children:[l.jsx("h1",{className:C("text-base font-extrabold text-dark",(a=s==null?void 0:s.headingTop)==null?void 0:a.title),children:o}),l.jsx("span",{className:C("text-xs",(u=s==null?void 0:s.headingTop)==null?void 0:u.subTitle),children:c})]})},H=({children:e})=>{const{classNames:r}=b.useContext(D),{panel:n}=r??{};return l.jsx("div",{className:C(n==null?void 0:n.section,"md:absolute -mt-12 md:mt-0 relative top-0 w-full left-0 h-full invisible z-20"),children:l.jsx("div",{className:C("container mx-auto invisible h-full"),children:l.jsx("div",{className:C("grid grid-cols-4 gap-x-4 md:grid-cols-12 invisible h-full"),children:l.jsx("div",{className:C("md:my-12 col-span-4 md:col-span-7 lg:col-span-5 xl:col-span-4",n==null?void 0:n.wrapper),children:l.jsx("div",{className:C(n==null?void 0:n.content,"bg-white pb-4 rounded visible h-full flex flex-col max-h-[40rem] overflow-auto z-20 relative shadow-lg"),children:e})})})})})},oo=({children:e})=>{const{classNames:r}=b.useContext(D),{panel:n}=r??{};return l.jsx("div",{className:C("p-4",n==null?void 0:n.heading),children:e})},ao=({children:e})=>{const{selectedLocation:r}=b.useContext(B),{classNames:n}=b.useContext(D),{panel:o}=n??{};return l.jsx("div",{className:C("bg-white",{"overflow-y-auto divide-y":!r},o==null?void 0:o.body),children:e})};H.Heading=oo,H.HeadingTop=no,H.Body=ao;const so=({openingHours:e})=>{const{getOpeningHoursSlot:r}=Se(),{currentOpeningHourSlotLabel:n,openIndicator:o,currentOpeningHour:c}=r(e);return c?l.jsx("div",{children:n?l.jsxs("div",{className:"mt-2 flex items-center",children:[l.jsx("span",{className:C("w-2 h-2 bg-red-400 rounded-3xl mr-1",{"bg-green-400":o})}),l.jsx("span",{children:o?`Open tot ${n}`:"Gesloten"})]}):c&&c.closed&&l.jsx("div",{className:"mt-2 flex items-center",children:l.jsx("span",{children:"Gesloten"})})}):l.jsx(l.Fragment,{})},io=({location:e,showOpeningHours:r=!0})=>{var a;const{showDistance:n}=b.useContext(ee),{classNames:o}=b.useContext(D),{handleSelectedLocation:c}=ie(),{listItem:s}=o??{},i=()=>{c(e)};return l.jsx("div",{className:C("hover:bg-gray-50 hover:cursor-pointer",s==null?void 0:s.wrapper),onClick:()=>i(),children:l.jsxs("div",{className:C("flex items-center text-sm text-gray-500 px-4 py-4 overflow-hidden",s==null?void 0:s.item),children:[n&&l.jsxs("span",{className:C("bg-indigo-50 rounded-full inline-flex w-12 h-12 items-center justify-center flex-col leading-[1.2] text-xs text-indigo-600 mr-4",s==null?void 0:s.distance),children:[l.jsx("span",{className:C("font-bold",s==null?void 0:s.distanceKm),children:(a=e.distance)==null?void 0:a.toFixed(1)}),l.jsx("span",{className:s==null?void 0:s.distanceKmLabel,children:"km"})]}),l.jsxs("div",{className:C("min-w-0 flex-1"),children:[l.jsxs("div",{className:"flex flex-col text-sm",children:[l.jsx("span",{className:C("truncate font-medium text-indigo-600 block",s==null?void 0:s.title),children:e.title}),l.jsxs("address",{className:C("font-normal text-gray-500 not-italic",s==null?void 0:s.street),children:[e.street,", ",e.city]})]}),r&&e.openingHours&&l.jsx(so,{openingHours:e.openingHours})]})]})})},lo=({className:e})=>{const{unsetSelectedLocation:r}=ie(),{labels:n}=b.useContext(D),{backButtonLabel:o="Terug"}=n??{};return l.jsx("button",{className:e,onClick:r,children:o})},co=({openingHours:e})=>{var h;if(!e||Object.keys(e).length===0)return l.jsx(l.Fragment,{});const{getFullDayName:r,zeroPad:n,getMaxSlots:o}=Se(),{classNames:c,labels:s}=b.useContext(D),{detailItem:i}=c??{},{openingHoursLabel:a="Openingstijden",dayLabel:u="Dag",timeLabel:f="Tijd",hoursLabel:m="Uur"}=s??{},g=o(e);return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:C("font-bold text-indigo-600 block mt-4",(h=i==null?void 0:i.openingHours)==null?void 0:h.label),children:a}),l.jsxs("table",{className:"min-w-full divide-y divide-gray-300",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0",children:l.jsx("span",{className:"sr-only",children:u})}),Array.from(Array(g).keys()).map(x=>l.jsx("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900",children:l.jsx("span",{className:"sr-only",children:f})},x))]})}),l.jsx("tbody",{className:"divide-y divide-gray-200",children:Object.entries(e).sort(([x],[j])=>parseInt(x)-parseInt(j)).map(([x,j])=>l.jsxs("tr",{children:[l.jsx("td",{className:"text-sm text-gray-500 px-2 py-2 capitalize",children:r(parseInt(x))}),Array.from(Array(g).keys()).map(y=>{const w=j.slots[y];return w?l.jsx("td",{className:"text-sm text-gray-500 px-2 py-2",children:l.jsxs("span",{children:[l.jsxs("span",{children:[n(w.from.hours),":",n(w.from.minutes)]}),l.jsx("span",{children:" - "}),l.jsx("span",{children:`${n(w.to.hours)}:${n(w.to.minutes)} ${m}`})]})},y):l.jsx("td",{className:"text-sm text-gray-500 px-2 py-2"},y)})]},x))})]})]})},uo=({location:e,className:r})=>{const n=e!=null&&e.image&&e.image.length?e==null?void 0:e.image[0]:void 0;return n?l.jsx("img",{className:C("aspect-[4/2] object-cover object-center w-full rounded",r),src:n}):l.jsx(l.Fragment,{})},fo=({location:e,className:r})=>l.jsx("div",{className:r,children:l.jsxs("div",{className:"mt-4 md:overflow-auto flex-grow",children:[l.jsx("strong",{className:"mb-4 block truncate text-lg font-extrabold leading-none text-dark",children:e.title}),l.jsxs("address",{className:"flex flex-col font-medium not-italic leading-6 text-sm",children:[l.jsxs("span",{children:[e.street,","]}),l.jsx("span",{children:e.city}),e.phone&&l.jsxs("span",{children:["Tel: ",l.jsx("a",{className:"underline",href:`tel:${e.phone}`,children:e.phone})]}),e.email&&l.jsxs("span",{children:["E-mail: ",l.jsx("a",{className:"underline",href:`mailto:${e.email}`,children:e.email})]})]})]})}),Z=()=>{var m,g;const{selectedLocation:e}=b.useContext(B),{renders:r,classNames:n}=b.useContext(D),{renderDetailBackButton:o,renderDetailImage:c,renderDetailContent:s,renderDetailOpeningHours:i,renderDetailDirections:a}=r??{},{detailItem:u}=n??{},f=e;return l.jsx(l.Fragment,{children:f&&l.jsxs("div",{className:C("p-4",u==null?void 0:u.wrapper),children:[o?o():l.jsx(Z.Back,{className:u==null?void 0:u.backButton}),c?c({location:f}):l.jsx(Z.Image,{location:f,className:u==null?void 0:u.image}),s?s({location:f}):l.jsx(Z.Content,{location:f,className:u==null?void 0:u.content}),i?i((m=f==null?void 0:f.openingHours)==null?void 0:m.days):l.jsx(Z.OpeningHours,{openingHours:(g=f==null?void 0:f.openingHours)==null?void 0:g.days}),a&&a({location:f})]})})};Z.Back=lo,Z.Image=uo,Z.Content=fo,Z.OpeningHours=co;const po=({locations:e})=>{var h;const{renders:r,classNames:n}=b.useContext(D),{refinedLocations:o,selectedLocation:c,setRefinedLocations:s,setLocations:i}=b.useContext(B);b.useEffect(()=>{s(e),i(e)},[]);const a=b.useRef(null),{panelHeaderTopSlot:u,panelHeaderBottomSlot:f,renderListItem:m,renderListDetail:g}=r??{};return l.jsx(H,{children:c?g?g({location:c}):l.jsx(Z,{}):l.jsxs(l.Fragment,{children:[l.jsxs(H.Heading,{children:[(u&&u({numberOfLocations:o.length}))??l.jsx(H.HeadingTop,{numberOfLocations:o.length}),l.jsx(to,{ref:a}),f&&f({numberOfLocations:o.length})]}),l.jsx(H.Body,{children:l.jsx("div",{className:C("overflow-y-auto divide-y",(h=n==null?void 0:n.list)==null?void 0:h.overview),children:o&&o.map(x=>m?l.jsx(b.Fragment,{children:m({location:x})},x.id):l.jsx(io,{location:x,showOpeningHours:!0},x.id))})})]})})},go=({classNames:e})=>{const{skeleton:r}=e??{};return l.jsx("div",{className:C("w-full relative z-0 h-[60vh] min-h-[25rem] md:h-screen bg-black/10 animate-pulse",r==null?void 0:r.map),children:l.jsx("div",{className:C(r==null?void 0:r.panel),children:l.jsxs(H,{children:[l.jsx("div",{className:C("p-4",r==null?void 0:r.panelHeading)}),l.jsx(H.Body,{children:l.jsx("div",{className:C("overflow-y-auto divide-y",r==null?void 0:r.panelBody),children:Array(16).fill({}).map((n,o)=>l.jsx("div",{className:C("p-4 mb-4",r==null?void 0:r.listItem)},o))})})]})})})},re=({config:e,mapConfig:r,locations:n,renders:o,classNames:c,labels:s,markerIcon:i,children:a})=>{const{loadingSlot:u}=o??{},{apiKey:f,locale:m,region:g}=e;if(!f)throw new Error("Google maps api key is required");if(n.length===0)throw new Error("No locations found");const{isLoaded:h}=Ce.useJsApiLoader({googleMapsApiKey:f,libraries:_t,language:m??"nl",region:g??"NL"});return h?l.jsx(Qn,{children:l.jsx(re.Wrapper,{mapConfig:r,renders:o,classNames:c,labels:s,markerIcon:i,children:l.jsx(Dt,{children:l.jsxs(qr,{children:[l.jsx(re.Panel,{locations:n}),l.jsx(re.Map,{}),a]})})})}):l.jsx(l.Fragment,{children:u??l.jsx(go,{classNames:c})})},bo=({mapConfig:e,renders:r,classNames:n,labels:o,markerIcon:c,children:s})=>{const{setRenders:i,setClassNames:a,setMapConfig:u,setLabels:f,setMarkerIcon:m}=b.useContext(D);return b.useEffect(()=>{r&&i(r),n&&a(n),e&&u(e),o&&f(o),c&&m(c)},[]),l.jsx("div",{className:C("w-full relative",n==null?void 0:n.wrapper),children:s})};re.Map=eo,re.Panel=po,re.Wrapper=bo,F.LocationFinder=re,F.useDistances=qe,F.useGoogleMapApi=fr,F.useLocations=Ue,F.useOnAutocomplete=Be,F.useOnLocationEvent=ie,F.useOpeningHours=Se,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
Check the top-level render call using <`+p+">.")}return d}}function Vr(t,d){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var p=_o(d);if(Zr[p])return;Zr[p]=!0;var v="";t&&t._owner&&t._owner!==Ke.current&&(v=" It was passed a child from "+z(t._owner.type)+"."),ue(t),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',p,v),ue(null)}}function Yr(t,d){{if(typeof t!="object")return;if(Ye(t))for(var p=0;p<t.length;p++){var v=t[p];Qe(v)&&Vr(v,d)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var E=w(t);if(typeof E=="function"&&E!==t.entries)for(var P=E.call(t),k;!(k=P.next()).done;)Qe(k.value)&&Vr(k.value,d)}}}function Mo(t){{var d=t.type;if(d==null||typeof d=="string")return;var p;if(typeof d=="function")p=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===u||d.$$typeof===g))p=d.propTypes;else return;if(p){var v=z(d);wo(p,t.props,"prop",v,t)}else if(d.PropTypes!==void 0&&!Xe){Xe=!0;var E=z(d);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Do(t){{for(var d=Object.keys(t.props),p=0;p<d.length;p++){var v=d[p];if(v!=="children"&&v!=="key"){ue(t),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),ue(null);break}}t.ref!==null&&(ue(t),O("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}}function Jr(t,d,p,v,E,P){{var k=ve(t);if(!k){var R="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var I=No(E);I?R+=I:R+=Hr();var N;t===null?N="null":Ye(t)?N="array":t!==void 0&&t.$$typeof===r?(N="<"+(z(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):N=typeof t,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,R)}var _=Ao(t,d,p,E,P);if(_==null)return _;if(k){var W=d.children;if(W!==void 0)if(v)if(Ye(W)){for(var de=0;de<W.length;de++)Yr(W[de],t);Object.freeze&&Object.freeze(W)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yr(W,t)}return t===o?Do(_):Mo(_),_}}function Io(t,d,p){return Jr(t,d,p,!0)}function Fo(t,d,p){return Jr(t,d,p,!1)}var zo=Fo,Go=Io;pe.Fragment=o,pe.jsx=zo,pe.jsxs=Go}()),pe}process.env.NODE_ENV==="production"?Me.exports=Xr():Me.exports=Qr();var l=Me.exports;const B=b.createContext({refinedLocations:[],locations:[],setSelectedLocation:e=>{},setRefinedLocations:e=>{},setLocations:e=>{}}),qr=({children:e})=>{const[r,n]=b.useState(),[o,c]=b.useState([]),[s,i]=b.useState([]);return l.jsx(B.Provider,{value:{selectedLocation:r,locations:s,refinedLocations:o,setSelectedLocation:n,setRefinedLocations:c,setLocations:i},children:e})};function $r(){for(var e=0,r,n,o="";e<arguments.length;)(r=arguments[e++])&&(n=rr(r))&&(o&&(o+=" "),o+=n);return o}function rr(e){if(typeof e=="string")return e;for(var r,n="",o=0;o<e.length;o++)e[o]&&(r=rr(e[o]))&&(n&&(n+=" "),n+=r);return n}var De="-";function et(e){var r=tt(e),n=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,c=o===void 0?{}:o;function s(a){var u=a.split(De);return u[0]===""&&u.length!==1&&u.shift(),tr(u,r)||rt(a)}function i(a,u){var f=n[a]||[];return u&&c[a]?[].concat(f,c[a]):f}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function tr(e,r){var i;if(e.length===0)return r.classGroupId;var n=e[0],o=r.nextPart.get(n),c=o?tr(e.slice(1),o):void 0;if(c)return c;if(r.validators.length!==0){var s=e.join(De);return(i=r.validators.find(function(a){var u=a.validator;return u(s)}))==null?void 0:i.classGroupId}}var nr=/^\[(.+)\]$/;function rt(e){if(nr.test(e)){var r=nr.exec(e)[1],n=r==null?void 0:r.substring(0,r.indexOf(":"));if(n)return"arbitrary.."+n}}function tt(e){var r=e.theme,n=e.prefix,o={nextPart:new Map,validators:[]},c=ot(Object.entries(e.classGroups),n);return c.forEach(function(s){var i=s[0],a=s[1];Ie(a,o,i,r)}),o}function Ie(e,r,n,o){e.forEach(function(c){if(typeof c=="string"){var s=c===""?r:or(r,c);s.classGroupId=n;return}if(typeof c=="function"){if(nt(c)){Ie(c(o),r,n,o);return}r.validators.push({validator:c,classGroupId:n});return}Object.entries(c).forEach(function(i){var a=i[0],u=i[1];Ie(u,or(r,a),n,o)})})}function or(e,r){var n=e;return r.split(De).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function nt(e){return e.isThemeGetter}function ot(e,r){return r?e.map(function(n){var o=n[0],c=n[1],s=c.map(function(i){return typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(a){var u=a[0],f=a[1];return[r+u,f]})):i});return[o,s]}):e}function at(e){if(e<1)return{get:function(){},set:function(){}};var r=0,n=new Map,o=new Map;function c(s,i){n.set(s,i),r++,r>e&&(r=0,o=n,n=new Map)}return{get:function(i){var a=n.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return c(i,a),a},set:function(i,a){n.has(i)?n.set(i,a):c(i,a)}}}var ar="!";function st(e){var r=e.separator||":",n=r.length===1,o=r[0],c=r.length;return function(i){for(var a=[],u=0,f=0,m,g=0;g<i.length;g++){var h=i[g];if(u===0){if(h===o&&(n||i.slice(g,g+c)===r)){a.push(i.slice(f,g)),f=g+c;continue}if(h==="/"){m=g;continue}}h==="["?u++:h==="]"&&u--}var x=a.length===0?i:i.substring(f),j=x.startsWith(ar),y=j?x.substring(1):x,w=m&&m>f?m-f:void 0;return{modifiers:a,hasImportantModifier:j,baseClassName:y,maybePostfixModifierPosition:w}}}function it(e){if(e.length<=1)return e;var r=[],n=[];return e.forEach(function(o){var c=o[0]==="[";c?(r.push.apply(r,n.sort().concat([o])),n=[]):n.push(o)}),r.push.apply(r,n.sort()),r}function lt(e){return{cache:at(e.cacheSize),splitModifiers:st(e),...et(e)}}var ct=/\s+/;function ut(e,r){var n=r.splitModifiers,o=r.getClassGroupId,c=r.getConflictingClassGroupIds,s=new Set;return e.trim().split(ct).map(function(i){var a=n(i),u=a.modifiers,f=a.hasImportantModifier,m=a.baseClassName,g=a.maybePostfixModifierPosition,h=o(g?m.substring(0,g):m),x=!!g;if(!h){if(!g)return{isTailwindClass:!1,originalClassName:i};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:i};x=!1}var j=it(u).join(":"),y=f?j+ar:j;return{isTailwindClass:!0,modifierId:y,classGroupId:h,originalClassName:i,hasPostfixModifier:x}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var a=i.modifierId,u=i.classGroupId,f=i.hasPostfixModifier,m=a+u;return s.has(m)?!1:(s.add(m),c(u,f).forEach(function(g){return s.add(a+g)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function dt(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o,c,s,i=a;function a(f){var m=r[0],g=r.slice(1),h=g.reduce(function(x,j){return j(x)},m());return o=lt(h),c=o.cache.get,s=o.cache.set,i=u,u(f)}function u(f){var m=c(f);if(m)return m;var g=ut(f,o);return s(f,g),g}return function(){return i($r.apply(null,arguments))}}function L(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var sr=/^\[(?:([a-z-]+):)?(.+)\]$/i,ft=/^\d+\/\d+$/,pt=new Set(["px","full","screen"]),gt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function U(e){return q(e)||pt.has(e)||ft.test(e)||Fe(e)}function Fe(e){return $(e,"length",Ct)}function vt(e){return $(e,"size",ir)}function ht(e){return $(e,"position",ir)}function xt(e){return $(e,"url",jt)}function je(e){return $(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function yt(e){return e.endsWith("%")&&q(e.slice(0,-1))}function ge(e){return lr(e)||$(e,"number",lr)}function S(e){return sr.test(e)}function be(){return!0}function Y(e){return gt.test(e)}function wt(e){return $(e,"",St)}function $(e,r,n){var o=sr.exec(e);return o?o[1]?o[1]===r:n(o[2]):!1}function Ct(e){return bt.test(e)}function ir(){return!1}function jt(e){return e.startsWith("url(")}function lr(e){return Number.isInteger(Number(e))}function St(e){return mt.test(e)}function Rt(){var e=L("colors"),r=L("spacing"),n=L("blur"),o=L("brightness"),c=L("borderColor"),s=L("borderRadius"),i=L("borderSpacing"),a=L("borderWidth"),u=L("contrast"),f=L("grayscale"),m=L("hueRotate"),g=L("invert"),h=L("gap"),x=L("gradientColorStops"),j=L("gradientColorStopPositions"),y=L("inset"),w=L("margin"),A=L("opacity"),O=L("padding"),te=L("saturate"),J=L("scale"),ke=L("sepia"),Ee=L("skew"),Oe=L("space"),Te=L("translate"),le=function(){return["auto","contain","none"]},ve=function(){return["auto","hidden","clip","visible","scroll"]},he=function(){return["auto",S,r]},T=function(){return[S,r]},z=function(){return["",U]},G=function(){return["auto",q,S]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},ne=function(){return["solid","dashed","dotted","double","none"]},xe=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ce=function(){return["start","end","center","between","around","evenly","stretch"]},X=function(){return["","0",S]},ye=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Q=function(){return[q,je]},oe=function(){return[q,S]};return{cacheSize:500,theme:{colors:[be],spacing:[U],blur:["none","",Y,S],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Y,S],borderSpacing:T(),borderWidth:z(),contrast:Q(),grayscale:X(),hueRotate:oe(),invert:X(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[yt,Fe],inset:he(),margin:he(),opacity:Q(),padding:T(),saturate:Q(),scale:Q(),sepia:X(),skew:oe(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[S])}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ge]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",ge]}],"grid-cols":[{"grid-cols":[be]}],"col-start-end":[{col:["auto",{span:["full",ge]},S]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[be]}],"row-start-end":[{row:["auto",{span:[ge]},S]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(ce())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ce(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ce(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",S,r]}],"min-w":[{"min-w":["min","max","fit",S,U]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Y]},Y,S]}],h:[{h:[S,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",S,U]}],"max-h":[{"max-h":[S,r,"min","max","fit"]}],"font-size":[{text:["base",Y,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",je]}],"font-family":[{font:[be]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",S]}],"line-clamp":[{"line-clamp":["none",q,je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,U]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(ne(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",U]}],"underline-offset":[{"underline-offset":["auto",S,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[ht])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[].concat(ne(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:ne()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:[""].concat(ne())}],"outline-offset":[{"outline-offset":[S,U]}],"outline-w":[{outline:[U]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Y,wt]}],"shadow-color":[{shadow:[be]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":xe()}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Y,S]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[te]}],sepia:[{sepia:[ke]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[ge,S]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[Ee]}],"skew-y":[{"skew-y":[Ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,je]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var kt=dt(Rt);const C=(...e)=>e.reduce((r,n)=>{if(!n)return r;const o=typeof n=="string"?n:C(...Object.entries(n).filter(([c,s])=>s).map(([c])=>c));return o.length?r.length?kt(r,o):o:r},""),cr=e=>e!=null;function ze(e){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ze(e)}function ur(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function Ge(e,r){if(r.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+r.length+" present")}function dr(e){Ge(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||ze(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Et(e,r){Ge(2,arguments);var n=dr(e),o=ur(r);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}var Ot={};function Tt(){return Ot}function Pt(e,r){var n,o,c,s,i,a,u,f;Ge(1,arguments);var m=Tt(),g=ur((n=(o=(c=(s=r==null?void 0:r.weekStartsOn)!==null&&s!==void 0?s:r==null||(i=r.locale)===null||i===void 0||(a=i.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&c!==void 0?c:m.weekStartsOn)!==null&&o!==void 0?o:(u=m.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dr(e),x=h.getDay(),j=(x<g?7:0)+x-g;return h.setDate(h.getDate()-j),h.setHours(0,0,0,0),h}const Lt=new Map([["Sunday",0],["Monday",1],["Tuesday",2],["Wednesday",3],["Thursday",4],["Friday",5],["Saturday",6]]),At=(e,r="nl",n="NL")=>{const o=Pt(new Date);return Et(o,e).toLocaleString(`${r}-${n}`,{weekday:"long"})},Nt=e=>Object.values(e).reduce((r,n)=>n.slots.length>r?n.slots.length:r,0),Se=()=>{const e=new Date,r=e.getDay(),n=e.getHours(),o=i=>String(i).padStart(2,"0");return{getOpeningHoursSlot:i=>{const a=i?i.days&&i.days[r]:void 0,u=a!=null&&a.slots&&a.slots.length?a.slots.at(-1):void 0,f=u?`${o(u.to.hours)}:${o(u.to.minutes)}`:void 0,m=u?u.to.hours>=n:!1;return{currentOpeningHour:a,currentOpeningHourSlot:u,currentOpeningHourSlotLabel:f,openIndicator:m}},zeroPad:o,formatTime:i=>{const a=new Date(`1/01/1970 ${i}`),u=a.getHours(),f=a.getMinutes();return{hours:u,minutes:f}},dayMap:Lt,getFullDayName:At,getMaxSlots:Nt}},_t=["places","geometry"],We=8,Mt={east:7.5,north:53.7,south:50.6,west:3.1},Re={lat:52.370216,lng:4.895168},ee=b.createContext({currentPosition:Re,previousZoom:We,showDistance:!1,pendingRefine:!1,setMap:e=>{},setPosition:e=>{},setPreviousZoom:e=>{},setShowDistance:e=>{},setPendingRefine:e=>{}}),Dt=({children:e})=>{const[r,n]=b.useState(),[o,c]=b.useState(Re),[s,i]=b.useState(0),[a,u]=b.useState(!1),[f,m]=b.useState(!1);return l.jsx(ee.Provider,{value:{map:r,showDistance:a,previousZoom:s,pendingRefine:f,setMap:n,setPendingRefine:m,setPreviousZoom:i,setShowDistance:u,currentPosition:o,setPosition:c},children:e})},Ue=()=>{const{calculateDistance:e}=qe(),{formatTime:r,dayMap:n}=Se(),{setRefinedLocations:o,locations:c}=b.useContext(B),{map:s,showDistance:i}=b.useContext(ee);return{formatListLocations:()=>{const f=s==null?void 0:s.getCenter();!f||!c||c.length===0||o(i?c.map(m=>({...m,distance:e(f,m.position)})).sort((m,g)=>m.distance-g.distance):c)},setLocationFinderFormat:(f,m)=>f.map(g=>{var j,y,w;const h=(j=g.days)==null?void 0:j.filter(cr);let x=[];return h.map(A=>{var te;let O=n.get(A.day);if(typeof O<"u")return x[O]={closed:A.closed,slots:((te=A.slots)==null?void 0:te.filter(cr).map(J=>({from:r(J.from),to:r(J.to)})))??[]}}),{city:g.city,id:g.externalId??g.id,title:g.name,street:g.street,position:{lat:parseFloat(g.geolocation.lat),lng:parseFloat(g.geolocation.lng)},phone:g.phone,email:g.email,image:(w=(y=g.image)==null?void 0:y.data)!=null&&w.attributes?[`${m}${g.image.data.attributes.url}?resize=800x400`]:void 0,openingHours:{days:x},attributes:g.attributes??{}}})}},fr=()=>{const{locations:e,refinedLocations:r}=b.useContext(B),{map:n,setMap:o,setPendingRefine:c,pendingRefine:s}=b.useContext(ee),{formatListLocations:i}=Ue(),a=b.useCallback(f=>{o(f)},[n]),u=b.useCallback(()=>{s&&(c(!1),i())},[s,c,e,r]);return{loadMap:a,handleOnMapIdle:u}};function It(e,r,n,o){var c=-1,s=e==null?0:e.length;for(o&&s&&(n=e[++c]);++c<s;)n=r(n,e[c],c,e);return n}function Ft(e){return function(r){return e==null?void 0:e[r]}}var zt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Gt=Ft(zt);const Wt=Gt;var Ut=typeof global=="object"&&global&&global.Object===Object&&global;const Bt=Ut;var Ht=typeof self=="object"&&self&&self.Object===Object&&self,Zt=Bt||Ht||Function("return this")(),Vt=Zt.Symbol;const ae=Vt;function Yt(e,r){for(var n=-1,o=e==null?0:e.length,c=Array(o);++n<o;)c[n]=r(e[n],n,e);return c}var Jt=Array.isArray;const Kt=Jt;var pr=Object.prototype,Xt=pr.hasOwnProperty,Qt=pr.toString,me=ae?ae.toStringTag:void 0;function qt(e){var r=Xt.call(e,me),n=e[me];try{e[me]=void 0;var o=!0}catch{}var c=Qt.call(e);return o&&(r?e[me]=n:delete e[me]),c}var $t=Object.prototype,en=$t.toString;function rn(e){return en.call(e)}var tn="[object Null]",nn="[object Undefined]",gr=ae?ae.toStringTag:void 0;function on(e){return e==null?e===void 0?nn:tn:gr&&gr in Object(e)?qt(e):rn(e)}function an(e){return e!=null&&typeof e=="object"}var sn="[object Symbol]";function ln(e){return typeof e=="symbol"||an(e)&&on(e)==sn}var cn=1/0,br=ae?ae.prototype:void 0,mr=br?br.toString:void 0;function vr(e){if(typeof e=="string")return e;if(Kt(e))return Yt(e,vr)+"";if(ln(e))return mr?mr.call(e):"";var r=e+"";return r=="0"&&1/e==-cn?"-0":r}function hr(e){return e==null?"":vr(e)}var un=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dn="\\u0300-\\u036f",fn="\\ufe20-\\ufe2f",pn="\\u20d0-\\u20ff",gn=dn+fn+pn,bn="["+gn+"]",mn=RegExp(bn,"g");function vn(e){return e=hr(e),e&&e.replace(un,Wt).replace(mn,"")}var hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function xn(e){return e.match(hn)||[]}var yn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function wn(e){return yn.test(e)}var xr="\\ud800-\\udfff",Cn="\\u0300-\\u036f",jn="\\ufe20-\\ufe2f",Sn="\\u20d0-\\u20ff",Rn=Cn+jn+Sn,yr="\\u2700-\\u27bf",wr="a-z\\xdf-\\xf6\\xf8-\\xff",kn="\\xac\\xb1\\xd7\\xf7",En="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",On="\\u2000-\\u206f",Tn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cr="A-Z\\xc0-\\xd6\\xd8-\\xde",Pn="\\ufe0e\\ufe0f",jr=kn+En+On+Tn,Sr="['’]",Rr="["+jr+"]",Ln="["+Rn+"]",kr="\\d+",An="["+yr+"]",Er="["+wr+"]",Or="[^"+xr+jr+kr+yr+wr+Cr+"]",Nn="\\ud83c[\\udffb-\\udfff]",_n="(?:"+Ln+"|"+Nn+")",Mn="[^"+xr+"]",Tr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",se="["+Cr+"]",Dn="\\u200d",Lr="(?:"+Er+"|"+Or+")",In="(?:"+se+"|"+Or+")",Ar="(?:"+Sr+"(?:d|ll|m|re|s|t|ve))?",Nr="(?:"+Sr+"(?:D|LL|M|RE|S|T|VE))?",_r=_n+"?",Mr="["+Pn+"]?",Fn="(?:"+Dn+"(?:"+[Mn,Tr,Pr].join("|")+")"+Mr+_r+")*",zn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wn=Mr+_r+Fn,Un="(?:"+[An,Tr,Pr].join("|")+")"+Wn,Bn=RegExp([se+"?"+Er+"+"+Ar+"(?="+[Rr,se,"$"].join("|")+")",In+"+"+Nr+"(?="+[Rr,se+Lr,"$"].join("|")+")",se+"?"+Lr+"+"+Ar,se+"+"+Nr,Gn,zn,kr,Un].join("|"),"g");function Hn(e){return e.match(Bn)||[]}function Zn(e,r,n){return e=hr(e),r=n?void 0:r,r===void 0?wn(e)?Hn(e):xn(e):e.match(r)||[]}var Vn="['’]",Yn=RegExp(Vn,"g");function Jn(e){return function(r){return It(Zn(vn(r).replace(Yn,"")),e,"")}}var Kn=Jn(function(e,r,n){return e+(n?"-":"")+r.toLowerCase()});const Xn=Kn,ie=()=>{const{formatListLocations:e}=Ue(),{selectedLocation:r,locations:n,setSelectedLocation:o}=b.useContext(B),{setPendingRefine:c,setShowDistance:s,currentPosition:i,map:a}=b.useContext(ee),u=b.useCallback(()=>{o(void 0);const y=`${window.location.href.split("?")[0]}`;history.pushState({},"",y),x()},[r,o]),f=b.useCallback(j=>{g(j)},[a]),m=b.useCallback(j=>{a&&(a.setZoom(12),a.panTo(j))},[a]),g=b.useCallback(j=>{const y=new URLSearchParams(document.location.search);if(o(j),y.set("location",`${Xn(j.title)}-${j.id}`),typeof window<"u"){const A=`${window.location.href.split("?")[0]}?${y}`;history.pushState({},"",A)}m(j.position),c(!0)},[a]),h=b.useCallback(()=>{a&&(a.setCenter(i),e())},[a,i]),x=b.useCallback(()=>{a&&(a.setCenter(Re),a.setZoom(We),s(!1),n&&e())},[a,r,n,i]);return{onMarkerClick:f,handleSelectedLocation:g,unsetSelectedLocation:u,refine:h,reset:x}},Be=()=>{const{reset:e}=ie(),{map:r,currentPosition:n,pendingRefine:o,setPendingRefine:c,setPosition:s,setShowDistance:i,showDistance:a}=b.useContext(ee),[u,f]=b.useState(),m=b.useCallback(y=>{f(y)},[f,r]),g=b.useCallback(y=>{y.target.value===""&&e()},[r]),h=b.useCallback(()=>{if(!u||!r)return;const w=u.getPlace().geometry;w!=null&&w.viewport&&r.fitBounds(w.viewport),w!=null&&w.location&&r.setCenter(w.location),i(!0),c(!0)},[u,r,a]),x=()=>new Promise((y,w)=>navigator.geolocation.getCurrentPosition(y,w)),j=b.useCallback(async()=>{const{coords:y}=await x();s({lat:y.latitude,lng:y.longitude}),i(!0),c(!0),r==null||r.setCenter({lat:y.latitude,lng:y.longitude}),r==null||r.setZoom(11)},[r,n,o,a]);return{loadAutocomplete:m,autocomplete:u,onInputChange:g,onPlaceChange:h,setCurrentGeoPosition:j}},D=b.createContext({setMarkerIcon:e=>e,setRenders:e=>e,setClassNames:e=>e,setMapConfig:e=>e,setLabels:e=>e}),Qn=({children:e})=>{const[r,n]=b.useState(),[o,c]=b.useState(),[s,i]=b.useState(),[a,u]=b.useState(),[f,m]=b.useState();return l.jsx(D.Provider,{value:{markerIcon:r,labels:f,mapConfig:a,renders:o,classNames:s,setRenders:c,setClassNames:i,setMapConfig:u,setLabels:m,setMarkerIcon:n},children:e})},qn=({children:e})=>{const{classNames:r,mapConfig:n}=b.useContext(D);b.useContext(ee);const{locations:o}=b.useContext(B),{handleSelectedLocation:c}=ie(),{loadMap:s,handleOnMapIdle:i}=fr(),u=new URLSearchParams(document.location.search).get("location"),{defaultBounds:f=Mt,defaultCenter:m=Re,defaultZoom:g=We,maxZoom:h=16,minZoom:x=8,styles:j}=n??{};return b.useEffect(()=>{if(u&&o){const y=u.split(/[- ]+/).pop(),w=o.filter(A=>A.id.toString()===y).pop();w&&c(w)}},[o]),l.jsx(Ce.GoogleMap,{onLoad:s,mapContainerClassName:C("w-full relative z-0 h-[60vh] min-h-[25rem] md:h-screen",r==null?void 0:r.map),zoom:g,center:m,onIdle:i,options:{maxZoom:h,minZoom:x,restriction:{latLngBounds:f},mapTypeControl:!1,styles:j,disableDoubleClickZoom:!0},children:e})},$n=({location:e})=>{const{onMarkerClick:r}=ie(),{markerIcon:n}=b.useContext(D);return l.jsx(Ce.Marker,{icon:n?{url:n.url,scaledSize:new google.maps.Size(n.width,n.height)}:void 0,position:e.position,onClick:o=>r(e)},e.id)},eo=()=>{const{locations:e}=b.useContext(B);return l.jsx(qn,{children:e&&e.map(r=>l.jsx($n,{location:r},`marker-${r.id}`))})},ro=({icon:e})=>{const{setCurrentGeoPosition:r}=Be(),{classNames:n}=b.useContext(D),[o,c]=b.useState(!1),[s,i]=b.useState(!1),{autocomplete:a}=n??{},u=async()=>{o||(c(!0),await r().then(()=>{c(!1),i(!s)}))};return l.jsx("button",{disabled:o,className:C("flex-none border border-gray-300 border-l-0 pr-3 pl-2 rounded-r ",a==null?void 0:a.button,{"cursor-wait":o,"cursor-pointer":!o}),onClick:u,children:l.jsxs("div",{className:C("relative",{"animate-pulse":o},a==null?void 0:a.iconWrapper),children:[s&&l.jsx(l.Fragment,{children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960",className:C("fill-green-500 w-4 h-4 absolute -top-1 -right-2",a==null?void 0:a.iconVerified),children:l.jsx("path",{d:"m419.87-403.696-87.261-87.261q-11.261-11.261-27.715-11.261t-29.155 12.261q-11.261 11.827-11.261 28.218t11.826 27.652L391.521-317.87q12.083 11.827 28.194 11.827 16.111 0 28.503-11.827l232.217-232.782q12.826-12.261 12.826-28.432 0-16.172-12.826-28.873-12.261-11.261-29.216-10.761-16.954.5-28.654 11.761L419.87-403.696Zm60.208 337.827q-85.469 0-161.006-32.395-75.536-32.395-131.975-88.833-56.438-56.439-88.833-131.897-32.395-75.459-32.395-160.928 0-86.469 32.395-162.006 32.395-75.536 88.745-131.504 56.349-55.968 131.849-88.616 75.5-32.648 161.017-32.648 86.516 0 162.12 32.604 75.603 32.604 131.529 88.497t88.549 131.452Q894.696-566.584 894.696-480q0 85.547-32.648 161.075-32.648 75.527-88.616 131.896-55.968 56.37-131.426 88.765-75.459 32.395-161.928 32.395Z"})})}),e??l.jsx("svg",{className:C("fill-current w-6 h-6",a==null?void 0:a.icon),xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 -960 960 960",children:l.jsx("path",{d:"M443.782-64.652v-38.782q-138.13-14.565-232.239-108.674-94.109-94.109-108.109-231.674H64.652q-15.393 0-25.805-10.429-10.413-10.429-10.413-25.845 0-15.417 10.413-25.789 10.412-10.373 25.805-10.373h38.782q14.565-138.13 108.674-232.239 94.109-94.109 231.674-108.109v-38.782q0-15.393 10.429-25.805 10.429-10.413 25.845-10.413 15.417 0 25.789 10.413 10.373 10.412 10.373 25.805v38.782q137.565 14 231.674 108.109 94.109 94.109 108.674 232.239h38.782q15.393 0 25.805 10.429 10.413 10.429 10.413 25.845 0 15.417-10.413 25.789-10.412 10.373-25.805 10.373h-38.782q-14 137.565-108.109 231.674-94.109 94.109-232.239 108.674v38.782q0 15.393-10.429 25.805-10.429 10.413-25.845 10.413-15.417 0-25.789-10.413-10.373-10.412-10.373-25.805Zm36.121-116.435q123.401 0 211.206-87.707 87.804-87.708 87.804-211.109 0-123.401-87.707-211.206-87.708-87.804-211.109-87.804-123.401 0-211.206 87.707-87.804 87.708-87.804 211.109 0 123.401 87.707 211.206 87.708 87.804 211.109 87.804ZM480-330q-63 0-106.5-43.5T330-480q0-63 43.5-106.5T480-630q63 0 106.5 43.5T630-480q0 63-43.5 106.5T480-330Zm-.205-73.001q32.553 0 54.878-22.12 22.326-22.121 22.326-54.674t-22.12-54.878q-22.121-22.326-54.674-22.326t-54.878 22.12q-22.326 22.121-22.326 54.674t22.12 54.878q22.121 22.326 54.674 22.326ZM480-480Z"})})]})})},to=b.forwardRef(({},e)=>{const{loadAutocomplete:r,onInputChange:n,onPlaceChange:o}=Be(),{classNames:c,labels:s}=b.useContext(D),{autocomplete:i}=c??{},{placeholder:a="Zoek op een plaats of locatie"}=s??{};return l.jsxs("div",{className:C("flex items-stretch focus-within:z-10",i==null?void 0:i.wrapper),children:[l.jsx(Ce.Autocomplete,{onLoad:r,className:C("border border-r-0 p-2 rounded rounded-r-none border-gray-300 flex-grow",i==null?void 0:i.inputWrapper),onPlaceChanged:o,children:l.jsx("input",{ref:e,onChange:n,className:C("block w-full placeholder-gray-400 border-r-0",i==null?void 0:i.input),placeholder:a,type:"text"})}),l.jsx(ro,{})]})}),no=({numberOfLocations:e})=>{var i,a,u;const{labels:r,classNames:n}=b.useContext(D),{findDealerNearby:o="Vind een locatie in de buurt",dealers:c=`${e} locaties`}=r??{},{panel:s}=n??{};return l.jsxs("div",{className:C("mb-4 flex h-max items-center justify-between",(i=s==null?void 0:s.headingTop)==null?void 0:i.wrapper),children:[l.jsx("h1",{className:C("text-base font-extrabold text-dark",(a=s==null?void 0:s.headingTop)==null?void 0:a.title),children:o}),l.jsx("span",{className:C("text-xs",(u=s==null?void 0:s.headingTop)==null?void 0:u.subTitle),children:c})]})},H=({children:e})=>{const{classNames:r}=b.useContext(D),{panel:n}=r??{};return l.jsx("div",{className:C(n==null?void 0:n.section,"md:absolute -mt-12 md:mt-0 relative top-0 w-full left-0 h-full invisible z-20"),children:l.jsx("div",{className:C("container mx-auto invisible h-full"),children:l.jsx("div",{className:C("grid grid-cols-4 gap-x-4 md:grid-cols-12 invisible h-full"),children:l.jsx("div",{className:C("md:my-12 col-span-4 md:col-span-7 lg:col-span-5 xl:col-span-4",n==null?void 0:n.wrapper),children:l.jsx("div",{className:C(n==null?void 0:n.content,"bg-white pb-4 rounded visible h-full flex flex-col max-h-[40rem] overflow-auto z-20 relative shadow-lg"),children:e})})})})})},oo=({children:e})=>{const{classNames:r}=b.useContext(D),{panel:n}=r??{};return l.jsx("div",{className:C("p-4",n==null?void 0:n.heading),children:e})},ao=({children:e})=>{const{selectedLocation:r}=b.useContext(B),{classNames:n}=b.useContext(D),{panel:o}=n??{};return l.jsx("div",{className:C("bg-white",{"overflow-y-auto divide-y":!r},o==null?void 0:o.body),children:e})};H.Heading=oo,H.HeadingTop=no,H.Body=ao;const so=({openingHours:e})=>{const{getOpeningHoursSlot:r}=Se(),{currentOpeningHourSlotLabel:n,openIndicator:o,currentOpeningHour:c}=r(e);return c?l.jsx("div",{children:n?l.jsxs("div",{className:"mt-2 flex items-center",children:[l.jsx("span",{className:C("w-2 h-2 bg-red-400 rounded-3xl mr-1",{"bg-green-400":o})}),l.jsx("span",{children:o?`Open tot ${n}`:"Gesloten"})]}):c&&c.closed&&l.jsx("div",{className:"mt-2 flex items-center",children:l.jsx("span",{children:"Gesloten"})})}):l.jsx(l.Fragment,{})},io=({location:e,showOpeningHours:r=!0})=>{var a;const{showDistance:n}=b.useContext(ee),{classNames:o}=b.useContext(D),{handleSelectedLocation:c}=ie(),{listItem:s}=o??{},i=()=>{c(e)};return l.jsx("div",{className:C("hover:bg-gray-50 hover:cursor-pointer",s==null?void 0:s.wrapper),onClick:()=>i(),children:l.jsxs("div",{className:C("flex items-center text-sm text-gray-500 px-4 py-4 overflow-hidden",s==null?void 0:s.item),children:[n&&l.jsxs("span",{className:C("bg-indigo-50 rounded-full inline-flex w-12 h-12 items-center justify-center flex-col leading-[1.2] text-xs text-indigo-600 mr-4",s==null?void 0:s.distance),children:[l.jsx("span",{className:C("font-bold",s==null?void 0:s.distanceKm),children:(a=e.distance)==null?void 0:a.toFixed(1)}),l.jsx("span",{className:s==null?void 0:s.distanceKmLabel,children:"km"})]}),l.jsxs("div",{className:C("min-w-0 flex-1"),children:[l.jsxs("div",{className:"flex flex-col text-sm",children:[l.jsx("span",{className:C("truncate font-medium text-indigo-600 block",s==null?void 0:s.title),children:e.title}),l.jsxs("address",{className:C("font-normal text-gray-500 not-italic",s==null?void 0:s.street),children:[e.street,", ",e.city]})]}),r&&e.openingHours&&l.jsx(so,{openingHours:e.openingHours})]})]})})},lo=({className:e})=>{const{unsetSelectedLocation:r}=ie(),{labels:n}=b.useContext(D),{backButtonLabel:o="Terug"}=n??{};return l.jsx("button",{className:e,onClick:r,children:o})},co=({openingHours:e})=>{var h;if(!e||Object.keys(e).length===0)return l.jsx(l.Fragment,{});const{getFullDayName:r,zeroPad:n,getMaxSlots:o}=Se(),{classNames:c,labels:s}=b.useContext(D),{detailItem:i}=c??{},{openingHoursLabel:a="Openingstijden",dayLabel:u="Dag",timeLabel:f="Tijd",hoursLabel:m="Uur"}=s??{},g=o(e);return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:C("font-bold text-indigo-600 block mt-4",(h=i==null?void 0:i.openingHours)==null?void 0:h.label),children:a}),l.jsxs("table",{className:"min-w-full divide-y divide-gray-300",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0",children:l.jsx("span",{className:"sr-only",children:u})}),Array.from(Array(g).keys()).map(x=>l.jsx("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900",children:l.jsx("span",{className:"sr-only",children:f})},x))]})}),l.jsx("tbody",{className:"divide-y divide-gray-200",children:Object.entries(e).sort(([x],[j])=>parseInt(x)-parseInt(j)).map(([x,j])=>l.jsxs("tr",{children:[l.jsx("td",{className:"text-sm text-gray-500 px-2 py-2 capitalize",children:r(parseInt(x))}),Array.from(Array(g).keys()).map(y=>{const w=j.slots[y];return w?l.jsx("td",{className:"text-sm text-gray-500 px-2 py-2",children:l.jsxs("span",{children:[l.jsxs("span",{children:[n(w.from.hours),":",n(w.from.minutes)]}),l.jsx("span",{children:" - "}),l.jsx("span",{children:`${n(w.to.hours)}:${n(w.to.minutes)} ${m}`})]})},y):l.jsx("td",{className:"text-sm text-gray-500 px-2 py-2"},y)})]},x))})]})]})},uo=({location:e,className:r})=>{const n=e!=null&&e.image&&e.image.length?e==null?void 0:e.image[0]:void 0;return n?l.jsx("img",{className:C("aspect-[4/2] object-cover object-center w-full rounded",r),src:n}):l.jsx(l.Fragment,{})},fo=({location:e,className:r})=>l.jsx("div",{className:r,children:l.jsxs("div",{className:"mt-4 md:overflow-auto flex-grow",children:[l.jsx("strong",{className:"mb-4 block truncate text-lg font-extrabold leading-none text-dark",children:e.title}),l.jsxs("address",{className:"flex flex-col font-medium not-italic leading-6 text-sm",children:[l.jsxs("span",{children:[e.street,","]}),l.jsx("span",{children:e.city}),e.phone&&l.jsxs("span",{children:["Tel: ",l.jsx("a",{className:"underline",href:`tel:${e.phone}`,children:e.phone})]}),e.email&&l.jsxs("span",{children:["E-mail: ",l.jsx("a",{className:"underline",href:`mailto:${e.email}`,children:e.email})]})]})]})}),Z=()=>{var m,g;const{selectedLocation:e}=b.useContext(B),{renders:r,classNames:n}=b.useContext(D),{renderDetailBackButton:o,renderDetailImage:c,renderDetailContent:s,renderDetailOpeningHours:i,renderDetailDirections:a}=r??{},{detailItem:u}=n??{},f=e;return l.jsx(l.Fragment,{children:f&&l.jsxs("div",{className:C("p-4",u==null?void 0:u.wrapper),children:[o?o():l.jsx(Z.Back,{className:u==null?void 0:u.backButton}),c?c({location:f}):l.jsx(Z.Image,{location:f,className:u==null?void 0:u.image}),s?s({location:f}):l.jsx(Z.Content,{location:f,className:u==null?void 0:u.content}),i?i((m=f==null?void 0:f.openingHours)==null?void 0:m.days):l.jsx(Z.OpeningHours,{openingHours:(g=f==null?void 0:f.openingHours)==null?void 0:g.days}),a&&a({location:f})]})})};Z.Back=lo,Z.Image=uo,Z.Content=fo,Z.OpeningHours=co;const po=({locations:e})=>{var h;const{renders:r,classNames:n}=b.useContext(D),{refinedLocations:o,selectedLocation:c,setRefinedLocations:s,setLocations:i}=b.useContext(B);b.useEffect(()=>{s(e),i(e)},[]);const a=b.useRef(null),{renderPanelHeaderTop:u,renderPanelHeaderBottom:f,renderListItem:m,renderListDetail:g}=r??{};return l.jsx(H,{children:c?g?g({location:c}):l.jsx(Z,{}):l.jsxs(l.Fragment,{children:[l.jsxs(H.Heading,{children:[(u&&u({numberOfLocations:o.length}))??l.jsx(H.HeadingTop,{numberOfLocations:o.length}),l.jsx(to,{ref:a}),f&&f({numberOfLocations:o.length})]}),l.jsx(H.Body,{children:l.jsx("div",{className:C("overflow-y-auto divide-y",(h=n==null?void 0:n.list)==null?void 0:h.overview),children:o&&o.map(x=>m?l.jsx(b.Fragment,{children:m({location:x})},x.id):l.jsx(io,{location:x,showOpeningHours:!0},x.id))})})]})})},go=({classNames:e})=>{const{skeleton:r}=e??{};return l.jsx("div",{className:C("w-full relative z-0 h-[60vh] min-h-[25rem] md:h-screen bg-black/10 animate-pulse",r==null?void 0:r.map),children:l.jsx("div",{className:C(r==null?void 0:r.panel),children:l.jsxs(H,{children:[l.jsx("div",{className:C("p-4",r==null?void 0:r.panelHeading)}),l.jsx(H.Body,{children:l.jsx("div",{className:C("overflow-y-auto divide-y",r==null?void 0:r.panelBody),children:Array(16).fill({}).map((n,o)=>l.jsx("div",{className:C("p-4 mb-4",r==null?void 0:r.listItem)},o))})})]})})})},re=({config:e,mapConfig:r,locations:n,renders:o,classNames:c,labels:s,markerIcon:i,children:a})=>{const{loadingSlot:u}=o??{},{apiKey:f,locale:m,region:g}=e;if(!f)throw new Error("Google maps api key is required");if(n.length===0)throw new Error("No locations found");const{isLoaded:h}=Ce.useJsApiLoader({googleMapsApiKey:f,libraries:_t,language:m??"nl",region:g??"NL"});return h?l.jsx(Qn,{children:l.jsx(re.Wrapper,{mapConfig:r,renders:o,classNames:c,labels:s,markerIcon:i,children:l.jsx(Dt,{children:l.jsxs(qr,{children:[l.jsx(re.Panel,{locations:n}),l.jsx(re.Map,{}),a]})})})}):l.jsx(l.Fragment,{children:u??l.jsx(go,{classNames:c})})},bo=({mapConfig:e,renders:r,classNames:n,labels:o,markerIcon:c,children:s})=>{const{setRenders:i,setClassNames:a,setMapConfig:u,setLabels:f,setMarkerIcon:m}=b.useContext(D);return b.useEffect(()=>{r&&i(r),n&&a(n),e&&u(e),o&&f(o),c&&m(c)},[]),l.jsx("div",{className:C("w-full relative",n==null?void 0:n.wrapper),children:s})};re.Map=eo,re.Panel=po,re.Wrapper=bo,F.LocationFinder=re,F.useDistances=qe,F.useGoogleMapApi=fr,F.useLocations=Ue,F.useOnAutocomplete=Be,F.useOnLocationEvent=ie,F.useOpeningHours=Se,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
{
"name": "@ef2/react-gm-location-finder",
"private": false,
"version": "0.0.6",
"version": "0.0.7",
"type": "module",

@@ -6,0 +6,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc