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.8 to 0.0.9

10

dist/index.d.ts

@@ -55,2 +55,3 @@ /// <reference types="google.maps" />

image?: string;
contentWrapper?: string;
content?: string;

@@ -82,2 +83,3 @@ openingHours?: {

hoursLabel?: string;
closedLabel?: string;
}

@@ -113,2 +115,3 @@

id: number;
externalId?: number | string;
title: string;

@@ -180,3 +183,5 @@ position: google.maps.LatLngLiteral;

}) => ReactNode;
renderDetailBackButton?: () => ReactNode;
renderDetailBackButton?: ({ onHandleClick }: {
onHandleClick: () => void;
}) => ReactNode;
renderDetailImage?: ({ location }: {

@@ -208,2 +213,5 @@ location: LocationProps;

setLocationFinderFormat: (locations: any, baseUrl: string) => LocationProps[];
renderDirections: (location: LocationProps) => {
link: string;
};
};

@@ -210,0 +218,0 @@

20

dist/react-gm-location-finder.umd.js

@@ -1,2 +0,2 @@

(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={};/**
(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,je){"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:{}},pe={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var $e;function Xr(){if($e)return fe;$e=1;var e=b,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(a,u,f){var m,g={},h=null,x=null;f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(x=u.ref);for(m in u)o.call(u,m)&&!s.hasOwnProperty(m)&&(g[m]=u[m]);if(a&&a.defaultProps)for(m in u=a.defaultProps,u)g[m]===void 0&&(g[m]=u[m]);return{$$typeof:r,type:a,key:h,ref:x,props:g,_owner:c.current}}return fe.Fragment=n,fe.jsx=i,fe.jsxs=i,fe}var pe={};/**
*/var $e;function Xr(){if($e)return pe;$e=1;var e=b,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(a,d,f){var p,m={},v=null,w=null;f!==void 0&&(v=""+f),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(w=d.ref);for(p in d)o.call(d,p)&&!s.hasOwnProperty(p)&&(m[p]=d[p]);if(a&&a.defaultProps)for(p in d=a.defaultProps,d)m[p]===void 0&&(m[p]=d[p]);return{$$typeof:r,type:a,key:v,ref:w,props:m,_owner:c.current}}return pe.Fragment=n,pe.jsx=l,pe.jsxs=l,pe}var ge={};/**
* @license React

@@ -18,12 +18,12 @@ * react-jsx-runtime.development.js

* 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 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"&&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`
*/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"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),y=Symbol.iterator,x="@@iterator";function S(t){if(t===null||typeof t!="object")return null;var u=y&&t[y]||t[x];return typeof u=="function"?u:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(t){{for(var u=arguments.length,g=new Array(u>1?u-1:0),h=1;h<u;h++)g[h-1]=arguments[h];te("error",t,g)}}function te(t,u,g){{var h=T.ReactDebugCurrentFrame,E=h.getStackAddendum();E!==""&&(u+="%s",g=g.concat([E]));var L=g.map(function(k){return String(k)});L.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,L)}}var J=!1,ne=!1,Ee=!1,Oe=!1,Te=!1,ce;ce=Symbol.for("react.module.reference");function he(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===s||Te||t===c||t===f||t===p||Oe||t===w||J||ne||Ee||typeof t=="object"&&t!==null&&(t.$$typeof===v||t.$$typeof===m||t.$$typeof===l||t.$$typeof===a||t.$$typeof===d||t.$$typeof===ce||t.getModuleId!==void 0))}function xe(t,u,g){var h=t.displayName;if(h)return h;var E=u.displayName||u.name||"";return E!==""?g+"("+E+")":g}function P(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 p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case a:var u=t;return P(u)+".Consumer";case l:var g=t;return P(g._context)+".Provider";case d:return xe(t,t.render,"ForwardRef");case m:var h=t.displayName||null;return h!==null?h:z(t.type)||"Memo";case v:{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,oe,ye,ue,X,we,Q,ae;function M(){}M.__reactDisabledLog=!0;function mo(){{if(K===0){oe=console.log,ye=console.info,ue=console.warn,X=console.error,we=console.group,Q=console.groupCollapsed,ae=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:oe}),info:G({},t,{value:ye}),warn:G({},t,{value:ue}),error:G({},t,{value:X}),group:G({},t,{value:we}),groupCollapsed:G({},t,{value:Q}),groupEnd:G({},t,{value:ae})})}K<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var He=T.ReactCurrentDispatcher,Ze;function Pe(t,u,g){{if(Ze===void 0)try{throw Error()}catch(E){var h=E.stack.trim().match(/\n( *(at )?)/);Ze=h&&h[1]||""}return`
`+Ze+t}}var Ve=!1,Le;{var ho=typeof WeakMap=="function"?WeakMap:Map;Le=new ho}function Dr(t,u){if(!t||Ve)return"";{var g=Le.get(t);if(g!==void 0)return g}var h;Ve=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=He.current,He.current=null,mo();try{if(u){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){h=V}Reflect.construct(t,[],k)}else{try{k.call()}catch(V){h=V}t.call(k.prototype)}}else{try{throw Error()}catch(V){h=V}t()}}catch(V){if(V&&h&&typeof V.stack=="string"){for(var R=V.stack.split(`
`),I=h.stack.split(`
`),A=R.length-1,_=I.length-1;A>=1&&_>=0&&R[A]!==I[_];)_--;for(;A>=1&&_>=0;A--,_--)if(R[A]!==I[_]){if(A!==1||_!==1)do if(A--,_--,_<0||R[A]!==I[_]){var W=`
`+R[A].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(A>=1&&_>=0);break}}}finally{Ve=!1,He.current=L,vo(),Error.prepareStackTrace=E}var fe=t?t.displayName||t.name:"",Kr=fe?Pe(fe):"";return typeof t=="function"&&Le.set(t,Kr),Kr}function xo(t,u,g){return Dr(t,!1)}function yo(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function Ne(t,u,g){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 p:return Pe("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case d:return xo(t.render);case m:return Ne(t.type,u,g);case v:{var h=t,E=h._payload,L=h._init;try{return Ne(L(E),u,g)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,Ir={},Fr=T.ReactDebugCurrentFrame;function _e(t){if(t){var u=t._owner,g=Ne(t.type,t._source,u?u.type:null);Fr.setExtraStackFrame(g)}else Fr.setExtraStackFrame(null)}function wo(t,u,g,h,E){{var L=Function.call.bind(Ae);for(var k in t)if(L(t,k)){var R=void 0;try{if(typeof t[k]!="function"){var I=Error((h||"React class")+": "+g+" 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](u,k,h,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){R=A}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).",h||"React class",g,k,typeof R),_e(null)),R instanceof Error&&!(R.message in Ir)&&(Ir[R.message]=!0,_e(E),O("Failed %s type: %s",g,R.message),_e(null))}}}var Co=Array.isArray;function Ye(t){return Co(t)}function jo(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,g=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return g}}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 Ce=T.ReactCurrentOwner,Ro={key:!0,ref:!0,__self:!0,__source:!0},Wr,Ur,Je;Je={};function ko(t){if(Ae.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function Eo(t){if(Ae.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function Oo(t,u){if(typeof t.ref=="string"&&Ce.current&&u&&Ce.current.stateNode!==u){var g=z(Ce.current.type);Je[g]||(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(Ce.current.type),t.ref),Je[g]=!0)}}function To(t,u){{var g=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)",u))};g.isReactWarning=!0,Object.defineProperty(t,"key",{get:g,configurable:!0})}}function Po(t,u){{var g=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)",u))};g.isReactWarning=!0,Object.defineProperty(t,"ref",{get:g,configurable:!0})}}var Lo=function(t,u,g,h,E,L,k){var R={$$typeof:r,type:t,key:u,ref:g,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:h}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function No(t,u,g,h,E){{var L,k={},R=null,I=null;g!==void 0&&(Gr(g),R=""+g),Eo(u)&&(Gr(u.key),R=""+u.key),ko(u)&&(I=u.ref,Oo(u,E));for(L in u)Ae.call(u,L)&&!Ro.hasOwnProperty(L)&&(k[L]=u[L]);if(t&&t.defaultProps){var A=t.defaultProps;for(L in A)k[L]===void 0&&(k[L]=A[L])}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,h,Ce.current,k)}}var Ke=T.ReactCurrentOwner,Br=T.ReactDebugCurrentFrame;function de(t){if(t){var u=t._owner,g=Ne(t.type,t._source,u?u.type:null);Br.setExtraStackFrame(g)}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`
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 render method of \``+t+"`."}return""}}function Ao(t){{if(t!==void 0){var u=t.fileName.replace(/^.*[\\\/]/,""),g=t.lineNumber;return`
Check your code at `+d+":"+p+"."}return""}}var Zr={};function _o(t){{var d=Hr();if(!d){var p=typeof t=="string"?t:t.displayName||t.name;p&&(d=`
Check your code at `+u+":"+g+"."}return""}}var Zr={};function _o(t){{var u=Hr();if(!u){var g=typeof t=="string"?t:t.displayName||t.name;g&&(u=`
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"})});
Check the top-level render call using <`+g+">.")}return u}}function Vr(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var g=_o(u);if(Zr[g])return;Zr[g]=!0;var h="";t&&t._owner&&t._owner!==Ke.current&&(h=" It was passed a child from "+z(t._owner.type)+"."),de(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.',g,h),de(null)}}function Yr(t,u){{if(typeof t!="object")return;if(Ye(t))for(var g=0;g<t.length;g++){var h=t[g];Qe(h)&&Vr(h,u)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var E=S(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,u)}}}function Mo(t){{var u=t.type;if(u==null||typeof u=="string")return;var g;if(typeof u=="function")g=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===d||u.$$typeof===m))g=u.propTypes;else return;if(g){var h=z(u);wo(g,t.props,"prop",h,t)}else if(u.PropTypes!==void 0&&!Xe){Xe=!0;var E=z(u);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Do(t){{for(var u=Object.keys(t.props),g=0;g<u.length;g++){var h=u[g];if(h!=="children"&&h!=="key"){de(t),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h),de(null);break}}t.ref!==null&&(de(t),O("Invalid attribute `ref` supplied to `React.Fragment`."),de(null))}}function Jr(t,u,g,h,E,L){{var k=he(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=Ao(E);I?R+=I:R+=Hr();var A;t===null?A="null":Ye(t)?A="array":t!==void 0&&t.$$typeof===r?(A="<"+(z(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):A=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",A,R)}var _=No(t,u,g,E,L);if(_==null)return _;if(k){var W=u.children;if(W!==void 0)if(h)if(Ye(W)){for(var fe=0;fe<W.length;fe++)Yr(W[fe],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,u,g){return Jr(t,u,g,!0)}function Fo(t,u,g){return Jr(t,u,g,!1)}var zo=Fo,Go=Io;ge.Fragment=o,ge.jsx=zo,ge.jsxs=Go}()),ge}process.env.NODE_ENV==="production"?Me.exports=Xr():Me.exports=Qr();var i=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,l]=b.useState([]);return i.jsx(B.Provider,{value:{selectedLocation:r,locations:s,refinedLocations:o,setSelectedLocation:n,setRefinedLocations:c,setLocations:l},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 d=a.split(De);return d[0]===""&&d.length!==1&&d.shift(),tr(d,r)||rt(a)}function l(a,d){var f=n[a]||[];return d&&c[a]?[].concat(f,c[a]):f}return{getClassGroupId:s,getConflictingClassGroupIds:l}}function tr(e,r){var l;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(l=r.validators.find(function(a){var d=a.validator;return d(s)}))==null?void 0:l.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 l=s[0],a=s[1];Ie(a,o,l,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(l){var a=l[0],d=l[1];Ie(d,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(l){return typeof l=="string"?r+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(function(a){var d=a[0],f=a[1];return[r+d,f]})):l});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,l){n.set(s,l),r++,r>e&&(r=0,o=n,n=new Map)}return{get:function(l){var a=n.get(l);if(a!==void 0)return a;if((a=o.get(l))!==void 0)return c(l,a),a},set:function(l,a){n.has(l)?n.set(l,a):c(l,a)}}}var ar="!";function st(e){var r=e.separator||":",n=r.length===1,o=r[0],c=r.length;return function(l){for(var a=[],d=0,f=0,p,m=0;m<l.length;m++){var v=l[m];if(d===0){if(v===o&&(n||l.slice(m,m+c)===r)){a.push(l.slice(f,m)),f=m+c;continue}if(v==="/"){p=m;continue}}v==="["?d++:v==="]"&&d--}var w=a.length===0?l:l.substring(f),y=w.startsWith(ar),x=y?w.substring(1):w,S=p&&p>f?p-f:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:S}}}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(l){var a=n(l),d=a.modifiers,f=a.hasImportantModifier,p=a.baseClassName,m=a.maybePostfixModifierPosition,v=o(m?p.substring(0,m):p),w=!!m;if(!v){if(!m)return{isTailwindClass:!1,originalClassName:l};if(v=o(p),!v)return{isTailwindClass:!1,originalClassName:l};w=!1}var y=it(d).join(":"),x=f?y+ar:y;return{isTailwindClass:!0,modifierId:x,classGroupId:v,originalClassName:l,hasPostfixModifier:w}}).reverse().filter(function(l){if(!l.isTailwindClass)return!0;var a=l.modifierId,d=l.classGroupId,f=l.hasPostfixModifier,p=a+d;return s.has(p)?!1:(s.add(p),c(d,f).forEach(function(m){return s.add(a+m)}),!0)}).reverse().map(function(l){return l.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,l=a;function a(f){var p=r[0],m=r.slice(1),v=m.reduce(function(w,y){return y(w)},p());return o=lt(v),c=o.cache.get,s=o.cache.set,l=d,d(f)}function d(f){var p=c(f);if(p)return p;var m=ut(f,o);return s(f,m),m}return function(){return l($r.apply(null,arguments))}}function N(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 Se(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 be(e){return lr(e)||$(e,"number",lr)}function j(e){return sr.test(e)}function me(){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=N("colors"),r=N("spacing"),n=N("blur"),o=N("brightness"),c=N("borderColor"),s=N("borderRadius"),l=N("borderSpacing"),a=N("borderWidth"),d=N("contrast"),f=N("grayscale"),p=N("hueRotate"),m=N("invert"),v=N("gap"),w=N("gradientColorStops"),y=N("gradientColorStopPositions"),x=N("inset"),S=N("margin"),T=N("opacity"),O=N("padding"),te=N("saturate"),J=N("scale"),ne=N("sepia"),Ee=N("skew"),Oe=N("space"),Te=N("translate"),ce=function(){return["auto","contain","none"]},he=function(){return["auto","hidden","clip","visible","scroll"]},xe=function(){return["auto",j,r]},P=function(){return[j,r]},z=function(){return["",U]},G=function(){return["auto",q,j]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},oe=function(){return["solid","dashed","dotted","double","none"]},ye=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ue=function(){return["start","end","center","between","around","evenly","stretch"]},X=function(){return["","0",j]},we=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Q=function(){return[q,Se]},ae=function(){return[q,j]};return{cacheSize:500,theme:{colors:[me],spacing:[U],blur:["none","",Y,j],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Y,j],borderSpacing:P(),borderWidth:z(),contrast:Q(),grayscale:X(),hueRotate:ae(),invert:X(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[yt,Fe],inset:xe(),margin:xe(),opacity:Q(),padding:P(),saturate:Q(),scale:Q(),sepia:X(),skew:ae(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"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(),[j])}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",be]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",be]}],"grid-cols":[{"grid-cols":[me]}],"col-start-end":[{col:["auto",{span:["full",be]},j]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[me]}],"row-start-end":[{row:["auto",{span:[be]},j]}],"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",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal"].concat(ue())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ue(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ue(),["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:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"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",j,r]}],"min-w":[{"min-w":["min","max","fit",j,U]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Y]},Y,j]}],h:[{h:[j,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",j,U]}],"max-h":[{"max-h":[j,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",Se]}],"font-family":[{font:[me]}],"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",j]}],"line-clamp":[{"line-clamp":["none",q,Se]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,U]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(oe(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",U]}],"underline-offset":[{"underline-offset":["auto",j,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],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",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"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:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],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":[T]}],"border-style":[{border:[].concat(oe(),["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":[T]}],"divide-style":[{divide:oe()}],"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(oe())}],"outline-offset":[{"outline-offset":[j,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":[T]}],"ring-offset-w":[{"ring-offset":[U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Y,wt]}],"shadow-color":[{shadow:[me]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":ye()}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Y,j]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[te]}],sepia:[{sepia:[ne]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[be,j]}],"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",j]}],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",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,Se]}],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,l,a,d,f;Ge(1,arguments);var p=Tt(),m=ur((n=(o=(c=(s=r==null?void 0:r.weekStartsOn)!==null&&s!==void 0?s:r==null||(l=r.locale)===null||l===void 0||(a=l.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&c!==void 0?c:p.weekStartsOn)!==null&&o!==void 0?o:(d=p.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=dr(e),w=v.getDay(),y=(w<m?7:0)+w-m;return v.setDate(v.getDate()-y),v.setHours(0,0,0,0),v}const Lt=new Map([["Sunday",0],["Monday",1],["Tuesday",2],["Wednesday",3],["Thursday",4],["Friday",5],["Saturday",6]]),Nt=(e,r="nl",n="NL")=>{const o=Pt(new Date);return Et(o,e).toLocaleString(`${r}-${n}`,{weekday:"long"})},At=e=>Object.values(e).reduce((r,n)=>n.slots.length>r?n.slots.length:r,0),Re=()=>{const e=new Date,r=e.getDay(),n=e.getHours(),o=l=>String(l).padStart(2,"0");return{getOpeningHoursSlot:l=>{const a=l?l.days&&l.days[r]:void 0,d=a!=null&&a.slots&&a.slots.length?a.slots.at(-1):void 0,f=d?`${o(d.to.hours)}:${o(d.to.minutes)}`:void 0,p=d?d.to.hours>=n:!1;return{currentOpeningHour:a,currentOpeningHourSlot:d,currentOpeningHourSlotLabel:f,openIndicator:p}},zeroPad:o,formatTime:l=>{const a=new Date(`1/01/1970 ${l}`),d=a.getHours(),f=a.getMinutes();return{hours:d,minutes:f}},dayMap:Lt,getFullDayName:Nt,getMaxSlots:At}},_t=["places","geometry"],We=8,Mt={east:7.5,north:53.7,south:50.6,west:3.1},ke={lat:52.370216,lng:4.895168},ee=b.createContext({currentPosition:ke,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(ke),[s,l]=b.useState(0),[a,d]=b.useState(!1),[f,p]=b.useState(!1);return i.jsx(ee.Provider,{value:{map:r,showDistance:a,previousZoom:s,pendingRefine:f,setMap:n,setPendingRefine:p,setPreviousZoom:l,setShowDistance:d,currentPosition:o,setPosition:c},children:e})},Ue=()=>{const{calculateDistance:e}=qe(),{formatTime:r,dayMap:n}=Re(),{setRefinedLocations:o,locations:c}=b.useContext(B),{map:s,showDistance:l}=b.useContext(ee);return{formatListLocations:()=>{const p=s==null?void 0:s.getCenter();!p||!c||c.length===0||o(l?c.map(m=>({...m,distance:e(p,m.position)})).sort((m,v)=>m.distance-v.distance):c)},setLocationFinderFormat:(p,m)=>p.map(v=>{var x,S,T;const w=(x=v.days)==null?void 0:x.filter(cr);let y=[];return w.map(O=>{var J;let te=n.get(O.day);if(typeof te<"u")return y[te]={closed:O.closed,slots:((J=O.slots)==null?void 0:J.filter(cr).map(ne=>({from:r(ne.from),to:r(ne.to)})))??[]}}),{city:v.city,id:v.id,externalId:v.externalId??"",title:v.name,street:v.street,position:{lat:parseFloat(v.geolocation.lat),lng:parseFloat(v.geolocation.lng)},phone:v.phone,email:v.email,image:(T=(S=v.image)==null?void 0:S.data)!=null&&T.attributes?[`${m}${v.image.data.attributes.url}?resize=800x400`]:void 0,openingHours:{days:y},attributes:v.attributes??{}}}),renderDirections:p=>({link:`https://www.google.com/maps/dir/${p.position.lat},${p.position.lng}`})}},fr=()=>{const{locations:e,refinedLocations:r}=b.useContext(B),{map:n,setMap:o,setPendingRefine:c,pendingRefine:s}=b.useContext(ee),{formatListLocations:l}=Ue(),a=b.useCallback(f=>{o(f)},[n]),d=b.useCallback(()=>{s&&(c(!1),l())},[s,c,e,r]);return{loadMap:a,handleOnMapIdle:d}};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 se=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,ve=se?se.toStringTag:void 0;function qt(e){var r=Xt.call(e,ve),n=e[ve];try{e[ve]=void 0;var o=!0}catch{}var c=Qt.call(e);return o&&(r?e[ve]=n:delete e[ve]),c}var $t=Object.prototype,en=$t.toString;function rn(e){return en.call(e)}var tn="[object Null]",nn="[object Undefined]",gr=se?se.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=se?se.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+",Nn="["+yr+"]",Er="["+wr+"]",Or="[^"+xr+jr+kr+yr+wr+Cr+"]",An="\\ud83c[\\udffb-\\udfff]",_n="(?:"+Ln+"|"+An+")",Mn="[^"+xr+"]",Tr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",ie="["+Cr+"]",Dn="\\u200d",Lr="(?:"+Er+"|"+Or+")",In="(?:"+ie+"|"+Or+")",Nr="(?:"+Sr+"(?:d|ll|m|re|s|t|ve))?",Ar="(?:"+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="(?:"+[Nn,Tr,Pr].join("|")+")"+Wn,Bn=RegExp([ie+"?"+Er+"+"+Nr+"(?="+[Rr,ie,"$"].join("|")+")",In+"+"+Ar+"(?="+[Rr,ie+Lr,"$"].join("|")+")",ie+"?"+Lr+"+"+Nr,ie+"+"+Ar,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,le=()=>{const{formatListLocations:e}=Ue(),{selectedLocation:r,locations:n,setSelectedLocation:o}=b.useContext(B),{setPendingRefine:c,setShowDistance:s,currentPosition:l,map:a}=b.useContext(ee),d=b.useCallback(()=>{o(void 0);const x=`${window.location.href.split("?")[0]}`;history.pushState({},"",x),w()},[r,o]),f=b.useCallback(y=>{m(y)},[a]),p=b.useCallback(y=>{a&&(a.setZoom(12),a.panTo(y))},[a,r]),m=b.useCallback(y=>{const x=new URLSearchParams(document.location.search);if(o(y),x.set("location",`${Xn(y.title)}-${y.id}`),typeof window<"u"){const T=`${window.location.href.split("?")[0]}?${x}`;history.pushState({},"",T)}p(y.position),c(!0)},[a]),v=b.useCallback(()=>{a&&(a.setCenter(l),e())},[a,l]),w=b.useCallback(()=>{a&&(a.setCenter(ke),a.setZoom(We),s(!1),n&&e())},[a,r,n,l]);return{onMarkerClick:f,handleSelectedLocation:m,unsetSelectedLocation:d,refine:v,reset:w}},Be=()=>{const{reset:e}=le(),{map:r,currentPosition:n,pendingRefine:o,setPendingRefine:c,setPosition:s,setShowDistance:l,showDistance:a}=b.useContext(ee),[d,f]=b.useState(),p=b.useCallback(x=>{f(x)},[f,r]),m=b.useCallback(x=>{x.target.value===""&&e()},[r]),v=b.useCallback(()=>{if(!d||!r)return;const S=d.getPlace().geometry;S!=null&&S.viewport&&r.fitBounds(S.viewport),S!=null&&S.location&&r.setCenter(S.location),l(!0),c(!0)},[d,r,a]),w=()=>new Promise((x,S)=>navigator.geolocation.getCurrentPosition(x,S)),y=b.useCallback(async()=>{const{coords:x}=await w();s({lat:x.latitude,lng:x.longitude}),l(!0),c(!0),r==null||r.setCenter({lat:x.latitude,lng:x.longitude}),r==null||r.setZoom(10)},[r,n,o,a]);return{loadAutocomplete:p,autocomplete:d,onInputChange:m,onPlaceChange:v,setCurrentGeoPosition:y}},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,l]=b.useState(),[a,d]=b.useState(),[f,p]=b.useState();return i.jsx(D.Provider,{value:{markerIcon:r,labels:f,mapConfig:a,renders:o,classNames:s,setRenders:c,setClassNames:l,setMapConfig:d,setLabels:p,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}=le(),{loadMap:s,handleOnMapIdle:l}=fr(),d=new URLSearchParams(document.location.search).get("location"),{defaultBounds:f=Mt,defaultCenter:p=ke,defaultZoom:m=We,maxZoom:v=16,minZoom:w=8,styles:y}=n??{};return b.useEffect(()=>{if(d&&o){const x=d.split(/[- ]+/).pop(),S=o.filter(T=>T.id.toString()===x).pop();S&&c(S)}},[s,o,d]),i.jsx(je.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:m,center:p,onIdle:l,options:{maxZoom:v,minZoom:w,restriction:{latLngBounds:f},mapTypeControl:!1,styles:y,disableDoubleClickZoom:!0},children:e})},$n=({location:e})=>{const{onMarkerClick:r}=le(),{markerIcon:n}=b.useContext(D);return i.jsx(je.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 i.jsx(qn,{children:e&&e.map(r=>i.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,l]=b.useState(!1),{autocomplete:a}=n??{},d=async()=>{o||(c(!0),await r().then(()=>{c(!1),l(!s)}))};return i.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:d,children:i.jsxs("div",{className:C("relative",{"animate-pulse":o},a==null?void 0:a.iconWrapper),children:[s&&i.jsx(i.Fragment,{children:i.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:i.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??i.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:i.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:l}=c??{},{placeholder:a="Zoek op een plaats of locatie"}=s??{};return i.jsxs("div",{className:C("flex items-stretch focus-within:z-10",l==null?void 0:l.wrapper),children:[i.jsx(je.Autocomplete,{onLoad:r,className:C("border border-r-0 p-2 rounded rounded-r-none border-gray-300 flex-grow",l==null?void 0:l.inputWrapper),onPlaceChanged:o,children:i.jsx("input",{ref:e,onChange:n,className:C("block w-full placeholder-gray-400 border-r-0",l==null?void 0:l.input),placeholder:a,type:"text"})}),i.jsx(ro,{})]})}),no=({numberOfLocations:e})=>{var l,a,d;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 i.jsxs("div",{className:C("mb-4 flex h-max items-center justify-between",(l=s==null?void 0:s.headingTop)==null?void 0:l.wrapper),children:[i.jsx("h1",{className:C("text-base font-extrabold text-dark",(a=s==null?void 0:s.headingTop)==null?void 0:a.title),children:o}),i.jsx("span",{className:C("text-xs",(d=s==null?void 0:s.headingTop)==null?void 0:d.subTitle),children:c})]})},H=({children:e})=>{const{classNames:r}=b.useContext(D),{panel:n}=r??{};return i.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:i.jsx("div",{className:C("container mx-auto invisible h-full"),children:i.jsx("div",{className:C("grid grid-cols-4 gap-x-4 md:grid-cols-12 invisible h-full"),children:i.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:i.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 i.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 i.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}=Re(),{currentOpeningHourSlotLabel:n,openIndicator:o,currentOpeningHour:c}=r(e);return c?i.jsx("div",{children:n?i.jsxs("div",{className:"mt-2 flex items-center",children:[i.jsx("span",{className:C("w-2 h-2 bg-red-400 rounded-3xl mr-1",{"bg-green-400":o})}),i.jsx("span",{children:o?`Open tot ${n}`:"Gesloten"})]}):c&&c.closed&&i.jsx("div",{className:"mt-2 flex items-center",children:i.jsx("span",{children:"Gesloten"})})}):i.jsx(i.Fragment,{})},io=({location:e,showOpeningHours:r=!0})=>{var a;const{showDistance:n}=b.useContext(ee),{classNames:o}=b.useContext(D),{handleSelectedLocation:c}=le(),{listItem:s}=o??{},l=()=>{c(e)};return i.jsx("div",{className:C("hover:bg-gray-50 hover:cursor-pointer",s==null?void 0:s.wrapper),onClick:()=>l(),children:i.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&&i.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:[i.jsx("span",{className:C("font-bold",s==null?void 0:s.distanceKm),children:(a=e.distance)==null?void 0:a.toFixed(1)}),i.jsx("span",{className:s==null?void 0:s.distanceKmLabel,children:"km"})]}),i.jsxs("div",{className:C("min-w-0 flex-1"),children:[i.jsxs("div",{className:"flex flex-col text-sm",children:[i.jsx("span",{className:C("truncate font-medium text-indigo-600 block",s==null?void 0:s.title),children:e.title}),i.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&&i.jsx(so,{openingHours:e.openingHours})]})]})})},lo=({onHandleClick:e,className:r})=>{const{labels:n}=b.useContext(D),{backButtonLabel:o="Terug"}=n??{};return i.jsx("button",{className:r,onClick:e,children:o})},co=({openingHours:e})=>{var w;if(!e||Object.keys(e).length===0)return i.jsx(i.Fragment,{});const{getFullDayName:r,zeroPad:n,getMaxSlots:o}=Re(),{classNames:c,labels:s}=b.useContext(D),{detailItem:l}=c??{},{openingHoursLabel:a="Openingstijden",dayLabel:d="Dag",timeLabel:f="Tijd",hoursLabel:p="Uur",closedLabel:m="Gesloten"}=s??{},v=o(e);return i.jsxs(i.Fragment,{children:[i.jsx("span",{className:C("font-bold text-indigo-600 block mt-4",(w=l==null?void 0:l.openingHours)==null?void 0:w.label),children:a}),i.jsxs("table",{className:"min-w-full divide-y divide-gray-300",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"sr-only",children:[i.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:i.jsx("span",{className:"sr-only",children:d})}),Array.from(Array(v).keys()).map(y=>i.jsx("th",{scope:"col",className:"py-3.5 px-3 text-left text-sm font-semibold text-gray-900",children:i.jsx("span",{className:"sr-only",children:f})},y))]})}),i.jsx("tbody",{className:"divide-y divide-gray-200",children:Object.entries(e).sort(([y],[x])=>(parseInt(y)===0?7:parseInt(y))-(parseInt(x)===0?7:parseInt(x))).map(([y,x])=>i.jsxs("tr",{children:[i.jsx("td",{className:"text-sm text-gray-500 px-2 py-2 capitalize",children:r(parseInt(y))}),Array.from(Array(v).keys()).map(S=>{const T=x.slots[S];return!T||x.closed?i.jsxs("td",{className:"px-2 py-2 text-sm text-gray-500",children:[" ",m]},S):i.jsx("td",{className:"text-sm text-gray-500 px-2 py-2",children:i.jsxs("span",{children:[i.jsxs("span",{children:[n(T.from.hours),":",n(T.from.minutes)]}),i.jsx("span",{children:" - "}),i.jsx("span",{children:`${n(T.to.hours)}:${n(T.to.minutes)} ${p}`})]})},S)})]},y))})]})]})},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?i.jsx("img",{className:C("aspect-[4/2] object-cover object-center w-full rounded",r),src:n}):i.jsx(i.Fragment,{})},fo=({location:e,className:r})=>i.jsx("div",{className:r,children:i.jsxs("div",{className:"mt-4 md:overflow-auto flex-grow",children:[i.jsx("strong",{className:"mb-4 block truncate text-lg font-extrabold leading-none text-dark",children:e.title}),i.jsxs("address",{className:"flex flex-col font-medium not-italic leading-6 text-sm",children:[i.jsxs("span",{children:[e.street,","]}),i.jsx("span",{children:e.city}),e.phone&&i.jsxs("span",{children:["Tel: ",i.jsx("a",{className:"underline",href:`tel:${e.phone}`,children:e.phone})]}),e.email&&i.jsxs("span",{children:["E-mail: ",i.jsx("a",{className:"underline",href:`mailto:${e.email}`,children:e.email})]})]})]})}),Z=()=>{var v,w;const{selectedLocation:e}=b.useContext(B),{renders:r,classNames:n}=b.useContext(D),{unsetSelectedLocation:o}=le(),{renderDetailBackButton:c,renderDetailImage:s,renderDetailContent:l,renderDetailOpeningHours:a,renderDetailDirections:d}=r??{},{detailItem:f}=n??{},p=e,m=()=>{o()};return i.jsx(i.Fragment,{children:p&&i.jsxs("div",{className:C("p-4",f==null?void 0:f.wrapper),children:[c?c({onHandleClick:m}):i.jsx(Z.Back,{onHandleClick:m,className:f==null?void 0:f.backButton}),s?s({location:p}):i.jsx(Z.Image,{location:p,className:f==null?void 0:f.image}),i.jsxs("div",{className:C(f==null?void 0:f.contentWrapper),children:[l?l({location:p}):i.jsx(Z.Content,{location:p,className:f==null?void 0:f.content}),a?a((v=p==null?void 0:p.openingHours)==null?void 0:v.days):i.jsx(Z.OpeningHours,{openingHours:(w=p==null?void 0:p.openingHours)==null?void 0:w.days})]}),d&&d({location:p})]})})};Z.Back=lo,Z.Image=uo,Z.Content=fo,Z.OpeningHours=co;const po=({locations:e})=>{var v;const{renders:r,classNames:n}=b.useContext(D),{refinedLocations:o,selectedLocation:c,setRefinedLocations:s,setLocations:l}=b.useContext(B);b.useEffect(()=>{s(e),l(e)},[]);const a=b.useRef(null),{renderPanelHeaderTop:d,renderPanelHeaderBottom:f,renderListItem:p,renderListDetail:m}=r??{};return i.jsx(H,{children:c?m?m({location:c}):i.jsx(Z,{}):i.jsxs(i.Fragment,{children:[i.jsxs(H.Heading,{children:[(d&&d({numberOfLocations:o.length}))??i.jsx(H.HeadingTop,{numberOfLocations:o.length}),i.jsx(to,{ref:a}),f&&f({numberOfLocations:o.length})]}),i.jsx(H.Body,{children:i.jsx("div",{className:C("overflow-y-auto divide-y",(v=n==null?void 0:n.list)==null?void 0:v.overview),children:o&&o.map(w=>p?i.jsx(b.Fragment,{children:p({location:w})},w.id):i.jsx(io,{location:w,showOpeningHours:!0},w.id))})})]})})},go=({classNames:e})=>{const{skeleton:r}=e??{};return i.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:i.jsx("div",{className:C(r==null?void 0:r.panel),children:i.jsxs(H,{children:[i.jsx("div",{className:C("p-4",r==null?void 0:r.panelHeading)}),i.jsx(H.Body,{children:i.jsx("div",{className:C("overflow-y-auto divide-y",r==null?void 0:r.panelBody),children:Array(16).fill({}).map((n,o)=>i.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:l,children:a})=>{const{loadingSlot:d}=o??{},{apiKey:f,locale:p,region:m}=e;if(!f)throw new Error("Google maps api key is required");if(n.length===0)throw new Error("No locations found");const{isLoaded:v}=je.useJsApiLoader({googleMapsApiKey:f,libraries:_t,language:p??"nl",region:m??"NL"});return v?i.jsx(Qn,{children:i.jsx(re.Wrapper,{mapConfig:r,renders:o,classNames:c,labels:s,markerIcon:l,children:i.jsx(Dt,{children:i.jsxs(qr,{children:[i.jsx(re.Map,{}),i.jsx(re.Panel,{locations:n}),a]})})})}):i.jsx(i.Fragment,{children:d??i.jsx(go,{classNames:c})})},bo=({mapConfig:e,renders:r,classNames:n,labels:o,markerIcon:c,children:s})=>{const{setRenders:l,setClassNames:a,setMapConfig:d,setLabels:f,setMarkerIcon:p}=b.useContext(D);return b.useEffect(()=>{r&&l(r),n&&a(n),e&&d(e),o&&f(o),c&&p(c)},[]),i.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=le,F.useOpeningHours=Re,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
{
"name": "@ef2/react-gm-location-finder",
"private": false,
"version": "0.0.8",
"version": "0.0.9",
"type": "module",

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

@@ -56,3 +56,4 @@ import { useContext } from 'react';

city: location.city,
id: location.externalId ?? location.id,
id: location.id,
externalId: location.externalId ?? '',
title: location.name,

@@ -59,0 +60,0 @@ street: location.street,

@@ -6,89 +6,78 @@ import { ChangeEvent, useCallback, useContext, useState } from 'react';

export const useOnAutocomplete = () => {
const { reset } = useOnLocationEvent();
const { reset } = useOnLocationEvent();
const {
map,
currentPosition,
pendingRefine,
setPendingRefine,
setPosition,
setShowDistance,
showDistance,
} = useContext(MapContext);
const { map, currentPosition, pendingRefine, setPendingRefine, setPosition, setShowDistance, showDistance } = useContext(MapContext);
const [autocomplete, setAutocomplete] = useState<
google.maps.places.Autocomplete | undefined
>();
const [autocomplete, setAutocomplete] = useState<google.maps.places.Autocomplete | undefined>();
const loadAutocomplete = useCallback(
(autocomplete: google.maps.places.Autocomplete) => {
setAutocomplete(autocomplete);
},
[setAutocomplete, map]
);
const loadAutocomplete = useCallback(
(autocomplete: google.maps.places.Autocomplete) => {
setAutocomplete(autocomplete);
},
[setAutocomplete, map]
);
const onInputChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
const value = event.target.value;
const onInputChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
const value = event.target.value;
if (value === '') {
reset();
}
},
[map]
);
if (value === '') {
reset();
}
},
[map]
);
const onPlaceChange = useCallback(() => {
if (!autocomplete || !map) {
return;
}
const place = autocomplete.getPlace();
const geometry = place.geometry;
const onPlaceChange = useCallback(() => {
if (!autocomplete || !map) {
return;
}
const place = autocomplete.getPlace();
const geometry = place.geometry;
if (geometry?.viewport) {
map.fitBounds(geometry.viewport);
}
if (geometry?.viewport) {
map.fitBounds(geometry.viewport);
}
if (geometry?.location) {
map.setCenter(geometry.location);
}
if (geometry?.location) {
map.setCenter(geometry.location);
}
setShowDistance(true);
setShowDistance(true);
setPendingRefine(true);
}, [autocomplete, map, showDistance]);
setPendingRefine(true);
}, [autocomplete, map, showDistance]);
const getLongAndLat = () => {
return new Promise(
(resolve: PositionCallback, reject: PositionErrorCallback) =>
navigator.geolocation.getCurrentPosition(resolve, reject)
);
};
const getLongAndLat = () => {
return new Promise((resolve: PositionCallback, reject: PositionErrorCallback) =>
navigator.geolocation.getCurrentPosition(resolve, reject)
);
};
const setCurrentGeoPosition = useCallback(async () => {
const { coords } = await getLongAndLat();
const setCurrentGeoPosition = useCallback(async () => {
const { coords } = await getLongAndLat();
setPosition({
lat: coords.latitude,
lng: coords.longitude,
});
setPosition({
lat: coords.latitude,
lng: coords.longitude
});
setShowDistance(true);
setPendingRefine(true);
setShowDistance(true);
setPendingRefine(true);
map?.setCenter({
lat: coords.latitude,
lng: coords.longitude,
});
map?.setCenter({
lat: coords.latitude,
lng: coords.longitude
});
map?.setZoom(11);
}, [map, currentPosition, pendingRefine, showDistance]);
map?.setZoom(10);
}, [map, currentPosition, pendingRefine, showDistance]);
return {
loadAutocomplete,
autocomplete,
onInputChange,
onPlaceChange,
setCurrentGeoPosition,
};
return {
loadAutocomplete,
autocomplete,
onInputChange,
onPlaceChange,
setCurrentGeoPosition
};
};

@@ -41,3 +41,3 @@ import { useCallback, useContext } from 'react';

},
[map]
[map, selectedLocation]
);

@@ -44,0 +44,0 @@

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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