@mappedin/react-ui 6.20.0-beta.0 → 6.21.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var o=Object.defineProperty;var p=(n,e,a)=>e in n?o(n,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[e]=a;var c=(n,e)=>o(n,"name",{value:e,configurable:!0});var i=(n,e,a)=>p(n,typeof e!="symbol"?e+"":e,a);var v={env:{NODE_ENV:"production",npm_package_version:"6.20.0-beta.0"}};export{c as a,i as b,v as c};
1
+ var o=Object.defineProperty;var p=(n,e,a)=>e in n?o(n,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[e]=a;var c=(n,e)=>o(n,"name",{value:e,configurable:!0});var i=(n,e,a)=>p(n,typeof e!="symbol"?e+"":e,a);var v={env:{NODE_ENV:"production",npm_package_version:"6.21.1-beta.0"}};export{c as a,i as b,v as c};
@@ -1 +1 @@
1
- import{a as B}from"./chunk-KENJWNVT.js";import{b as D}from"./chunk-IEYZX75Q.js";import{a as C}from"./chunk-KUJLMD6U.js";import{a as x}from"./chunk-LGZ25RFZ.js";import{a as L}from"./chunk-4SKZ3QEL.js";import{c as S,d as T,e as b}from"./chunk-YDVB7ZX2.js";import{a as r}from"./chunk-X43YWC4J.js";import{useRef as $,useState as q}from"react";function E(e,a,o=!1){let n=null,t=0,i=r(function(...s){t++,t===1&&o===!0&&e(...s);let l=r(()=>{(!o||t>1)&&e(...s),n=null,t=0},"later");clearTimeout(n),n=setTimeout(l,a)},"debounced");return i.cancel=function(){n&&(clearTimeout(n),n=null),t=0},i}r(E,"debounce");import{useState as I,useRef as Q,useCallback as z,useMemo as X,useEffect as Y}from"react";var N=r((e,a,o={})=>{let[n,t]=I(!1),[i,s]=I([]),l=Q(o.defaultResults??[]),f=z(c=>{l.current=c,s(c)},[s]),P=X(()=>e.length===0?o.defaultResults??[]:n?l.current:i,[i,o.defaultResults,e,n]),m=z(E(c=>a(c).then(f).catch(()=>f([])).finally(()=>t(!1)),o.searchDebounce??0),[a,o.searchDebounce,f,t]);return Y(()=>(e.length>0&&(t(!0),m(e)),()=>{m.cancel()}),[e,m]),{results:P,isSearching:n}},"useSearch");import{useEffect as Z,useState as H}from"react";var k=r(()=>{let[e,a]=H(null),[o,n]=H(null);return Z(()=>{if(e===null)return;let t=new ResizeObserver(i=>{i.forEach(s=>{n({width:s.contentRect.width,height:s.contentRect.height})})});return t.observe(e),()=>{t.unobserve(e),t.disconnect()}},[e]),{ref:a,width:o?.width,height:o?.height}},"useSize");import{jsx as y,jsxs as M}from"react/jsx-runtime";var F="mappedin__search-location-list",Le=r(({value:e,onChange:a,onLocationSelected:o,placeholder:n="Search...",maxHeight:t,defaultContent:i,defaultResults:s=[],noResultsContent:l,searchFn:f,searchDebounce:P=50,resultsVisible:m,item:c,itemSize:A,props:u})=>{let{value:h,onChange:J}=x({value:e,defaultValue:e??"",onChange:a}),v=$(null),[O,R]=q(!1),d=m??O,{ref:W,height:w}=k(),{results:p,isSearching:_}=N(h,f,{defaultResults:i!=null?[]:s,searchDebounce:P}),{ref:V,activeItemId:j}=D(F,{itemCount:p.length,resetActiveItemOnBlur:!0}),{ref:K}=L("open",d),{ref:U}=L("highlightedLocationId",j??"none");return M("div",{...b({className:S("search-wrapper",d&&p.length>0?"results-visible":"results-hidden",p.length===0?"no-results":""),ref:T(K,U),onFocus:r(()=>{v.current&&clearTimeout(v.current),R(!0)},"onFocus"),onBlur:r(()=>{v.current=setTimeout(()=>R(!1),250)},"onBlur")},u?.wrapper),children:[y(C,{value:h,placeholder:n,onChange:J,props:{...u?.searchBar,input:{...u?.searchBar?.input,ref:T(V,u?.searchBar?.input?.ref)}}}),y("div",{...b({className:"search-content-wrapper",style:{height:w!=null?"100vh":"auto",maxHeight:w}},u?.contentWrapper),children:M("div",{className:S("content-sizer"),ref:W,children:[y(B,{id:F,locations:d?p:[],onLocationSelected:G=>{o?.(G),R(!1)},maxHeight:t,props:u?.locationList,item:c,itemSize:A}),h.length===0&&d&&i,h.length>0&&p.length===0&&!_&&l]})})]})},"Search");export{Le as a};
1
+ import{a as B}from"./chunk-PWFHM65F.js";import{b as D}from"./chunk-PJOR2TMA.js";import{a as C}from"./chunk-YYDAKPSD.js";import{a as x}from"./chunk-MP52FEJM.js";import{a as L}from"./chunk-WRVS2PT7.js";import{c as S,d as T,e as b}from"./chunk-OPQPD6WC.js";import{a as r}from"./chunk-3KWUAHRM.js";import{useRef as $,useState as q}from"react";function E(e,a,o=!1){let n=null,t=0,i=r(function(...s){t++,t===1&&o===!0&&e(...s);let l=r(()=>{(!o||t>1)&&e(...s),n=null,t=0},"later");clearTimeout(n),n=setTimeout(l,a)},"debounced");return i.cancel=function(){n&&(clearTimeout(n),n=null),t=0},i}r(E,"debounce");import{useState as I,useRef as Q,useCallback as z,useMemo as X,useEffect as Y}from"react";var N=r((e,a,o={})=>{let[n,t]=I(!1),[i,s]=I([]),l=Q(o.defaultResults??[]),f=z(c=>{l.current=c,s(c)},[s]),P=X(()=>e.length===0?o.defaultResults??[]:n?l.current:i,[i,o.defaultResults,e,n]),m=z(E(c=>a(c).then(f).catch(()=>f([])).finally(()=>t(!1)),o.searchDebounce??0),[a,o.searchDebounce,f,t]);return Y(()=>(e.length>0&&(t(!0),m(e)),()=>{m.cancel()}),[e,m]),{results:P,isSearching:n}},"useSearch");import{useEffect as Z,useState as H}from"react";var k=r(()=>{let[e,a]=H(null),[o,n]=H(null);return Z(()=>{if(e===null)return;let t=new ResizeObserver(i=>{i.forEach(s=>{n({width:s.contentRect.width,height:s.contentRect.height})})});return t.observe(e),()=>{t.unobserve(e),t.disconnect()}},[e]),{ref:a,width:o?.width,height:o?.height}},"useSize");import{jsx as y,jsxs as M}from"react/jsx-runtime";var F="mappedin__search-location-list",Le=r(({value:e,onChange:a,onLocationSelected:o,placeholder:n="Search...",maxHeight:t,defaultContent:i,defaultResults:s=[],noResultsContent:l,searchFn:f,searchDebounce:P=50,resultsVisible:m,item:c,itemSize:A,props:u})=>{let{value:h,onChange:J}=x({value:e,defaultValue:e??"",onChange:a}),v=$(null),[O,R]=q(!1),d=m??O,{ref:W,height:w}=k(),{results:p,isSearching:_}=N(h,f,{defaultResults:i!=null?[]:s,searchDebounce:P}),{ref:V,activeItemId:j}=D(F,{itemCount:p.length,resetActiveItemOnBlur:!0}),{ref:K}=L("open",d),{ref:U}=L("highlightedLocationId",j??"none");return M("div",{...b({className:S("search-wrapper",d&&p.length>0?"results-visible":"results-hidden",p.length===0?"no-results":""),ref:T(K,U),onFocus:r(()=>{v.current&&clearTimeout(v.current),R(!0)},"onFocus"),onBlur:r(()=>{v.current=setTimeout(()=>R(!1),250)},"onBlur")},u?.wrapper),children:[y(C,{value:h,placeholder:n,onChange:J,props:{...u?.searchBar,input:{...u?.searchBar?.input,ref:T(V,u?.searchBar?.input?.ref)}}}),y("div",{...b({className:"search-content-wrapper",style:{height:w!=null?"100vh":"auto",maxHeight:w}},u?.contentWrapper),children:M("div",{className:S("content-sizer"),ref:W,children:[y(B,{id:F,locations:d?p:[],onLocationSelected:G=>{o?.(G),R(!1)},maxHeight:t,props:u?.locationList,item:c,itemSize:A}),h.length===0&&d&&i,h.length>0&&p.length===0&&!_&&l]})})]})},"Search");export{Le as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-X43YWC4J.js";import{useCallback as a,useState as i}from"react";var f=o(({value:e,defaultValue:l,onChange:t})=>{let[c,r]=i(l),n=e!==void 0,u=a(s=>{r(s),t?.(s)},[n,t]);return{value:n?e:c,onChange:u,isControlled:n}},"useUncontrolled");import{useEffect as T}from"react";var C=o((e,l)=>{T(()=>{let t=o(c=>{let r=e?.current,n=c.target;!r||r.contains(n)||l(c)},"listener");return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[e,l])},"useOutsideClick");export{f as a,C as b};
1
+ import{a as o}from"./chunk-3KWUAHRM.js";import{useCallback as a,useState as i}from"react";var f=o(({value:e,defaultValue:l,onChange:t})=>{let[c,r]=i(l),n=e!==void 0,u=a(s=>{r(s),t?.(s)},[n,t]);return{value:n?e:c,onChange:u,isControlled:n}},"useUncontrolled");import{useEffect as T}from"react";var C=o((e,l)=>{T(()=>{let t=o(c=>{let r=e?.current,n=c.target;!r||r.contains(n)||l(c)},"listener");return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[e,l])},"useOutsideClick");export{f as a,C as b};
@@ -1 +1 @@
1
- import{c as s,e as o}from"./chunk-YDVB7ZX2.js";import{a as t}from"./chunk-X43YWC4J.js";import{jsx as p,jsxs as a}from"react/jsx-runtime";var i=t(()=>a("svg",{...o({className:"icon--minus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[p("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),p("path",{d:"M5 12l14 0"})]}),"Minus");import{jsx as m,jsxs as d}from"react/jsx-runtime";var l=t(()=>d("svg",{...o({className:"icon--plus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[m("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m("path",{d:"M12 5l0 14"}),m("path",{d:"M5 12l14 0"})]}),"Plus");import{jsx as n,jsxs as v}from"react/jsx-runtime";var L=t(({onZoomIn:c,onZoomOut:u,props:r})=>v("div",{...o({className:"zoom-controls-wrapper"},r?.wrapper),children:[n("button",{...o({className:s("zoom-controls-button","zoom-controls-zoom-in"),onClick:c,tabIndex:0},r?.zoomIn),children:n(l,{})}),n("button",{...o({className:s("zoom-controls-button","zoom-controls-zoom-out"),onClick:u,tabIndex:0},r?.zoomOut),children:n(i,{})})]}),"ZoomControls");export{L as a};
1
+ import{c as s,e as o}from"./chunk-OPQPD6WC.js";import{a as t}from"./chunk-3KWUAHRM.js";import{jsx as p,jsxs as a}from"react/jsx-runtime";var i=t(()=>a("svg",{...o({className:"icon--minus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[p("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),p("path",{d:"M5 12l14 0"})]}),"Minus");import{jsx as m,jsxs as d}from"react/jsx-runtime";var l=t(()=>d("svg",{...o({className:"icon--plus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[m("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m("path",{d:"M12 5l0 14"}),m("path",{d:"M5 12l14 0"})]}),"Plus");import{jsx as n,jsxs as v}from"react/jsx-runtime";var L=t(({onZoomIn:c,onZoomOut:u,props:r})=>v("div",{...o({className:"zoom-controls-wrapper"},r?.wrapper),children:[n("button",{...o({className:s("zoom-controls-button","zoom-controls-zoom-in"),onClick:c,tabIndex:0},r?.zoomIn),children:n(l,{})}),n("button",{...o({className:s("zoom-controls-button","zoom-controls-zoom-out"),onClick:u,tabIndex:0},r?.zoomOut),children:n(i,{})})]}),"ZoomControls");export{L as a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-X43YWC4J.js";var i="mappedin__",r=`${i}keyboard-focus`,T="mappedin";var m=c((...s)=>s.filter(t=>t!=null).filter(t=>t!=="").map(t=>t.trim()).map(t=>t.startsWith(i)?t:`${i}${t}`).join(" "),"classNames");var R=c((...s)=>t=>{s.filter(e=>e!=null).forEach(e=>{typeof e=="function"?e(t):e&&(e.current=t)})},"combineRefs");var b=c((s,t)=>{if(!t&&!s)return{};let e={...s,className:m(s.className)};return t&&Object.entries(t).forEach(([n,o])=>{e[n]==null?e[n]=o:n==="className"?e[n]=e[n]+" "+o:n==="ref"?e[n]=R(e[n],o):typeof e[n]=="object"&&typeof o=="object"?e[n]={...e[n],...o}:typeof e[n]=="function"&&typeof o=="function"?e[n]=(...a)=>{s[n](...a),o(...a)}:e[n]=o}),e},"componentProps");export{r as a,T as b,m as c,R as d,b as e};
1
+ import{a as c}from"./chunk-3KWUAHRM.js";var i="mappedin__",r=`${i}keyboard-focus`,T="mappedin";var m=c((...s)=>s.filter(t=>t!=null).filter(t=>t!=="").map(t=>t.trim()).map(t=>t.startsWith(i)?t:`${i}${t}`).join(" "),"classNames");var R=c((...s)=>t=>{s.filter(e=>e!=null).forEach(e=>{typeof e=="function"?e(t):e&&(e.current=t)})},"combineRefs");var b=c((s,t)=>{if(!t&&!s)return{};let e={...s,className:m(s.className)};return t&&Object.entries(t).forEach(([n,o])=>{e[n]==null?e[n]=o:n==="className"?e[n]=e[n]+" "+o:n==="ref"?e[n]=R(e[n],o):typeof e[n]=="object"&&typeof o=="object"?e[n]={...e[n],...o}:typeof e[n]=="function"&&typeof o=="function"?e[n]=(...a)=>{s[n](...a),o(...a)}:e[n]=o}),e},"componentProps");export{r as a,T as b,m as c,R as d,b as e};
@@ -1,2 +1,2 @@
1
- import{a as te}from"./chunk-YDVB7ZX2.js";import{a,b as ee,c as C}from"./chunk-X43YWC4J.js";import{useState as G,useEffect as z,useCallback as ie}from"react";var K=class K{_subscribers={};_abortController=new AbortController;get signal(){return this._abortController.signal}publish(e,n){!this._subscribers||!this._subscribers[e]||this.signal.aborted||this._subscribers[e].forEach(function(r){typeof r=="function"&&r(n)})}onAbort(e){this.signal.addEventListener("abort",()=>e(),{once:!0})}on(e,n,r){let i=r?.signal;if(i?.aborted||this._abortController&&this._abortController.signal.aborted)return()=>{};this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(n);let u=a(()=>{this.off(e,n)},"cleanup");return i&&i.addEventListener("abort",u,{once:!0}),u}off(e,n){if(!this._subscribers||this._subscribers[e]==null||this.signal.aborted)return;let r=this._subscribers[e].indexOf(n);r!==-1&&this._subscribers[e].splice(r,1)}destroy(){this.signal.aborted||(this._subscribers={},this._abortController.abort())}};a(K,"PubSub");var A=K;import{useState as Le,useCallback as q,useEffect as Re,useRef as _e,useMemo as ne}from"react";var F=class F{static getInstance(){return this.instance==null&&(this.instance=new A),this.instance}static reset(){this.instance?.destroy(),this.instance=new A}};a(F,"AccessibleListPubSubSingleton"),ee(F,"instance",null);var x=F,re=a((t="vertical")=>{let e=ne(()=>{let r=[];return(t==="horizontal"||t==="both")&&r.push("ArrowRight"),(t==="vertical"||t==="both")&&r.push("ArrowDown"),r},[t]),n=ne(()=>{let r=[];return(t==="horizontal"||t==="both")&&r.push("ArrowLeft"),(t==="vertical"||t==="both")&&r.push("ArrowUp"),r},[t]);return{incrementKeys:e,decrementKeys:n}},"useNavigationKeys"),oe=a(t=>{let[e,n]=Le(null),r=_e(null),i=q(h=>{r.current=typeof h=="function"?h(r.current):h,n(h)},[n]),u=q(()=>{i(h=>{if(h==null)return 0;let p=h+1;return t!=null&&t>0&&(p=p%t),p})},[t]),l=q(()=>{i(h=>{if(h==null)return t==null?0:t-1;let p=h-1;return t!=null&&t>0&&(p=(p+t)%t),p})},[t]),d=a(()=>{i(null)},"reset");return Re(()=>{d()},[t]),{activeItemIndex:e,activeItemIndexRef:r,increment:u,decrement:l,reset:d}},"useListIndex");var ut=a((t,e)=>{let[n,r]=G(null),{activeItemIndex:i,activeItemIndexRef:u,increment:l,decrement:d,reset:h}=oe(e?.itemCount),{incrementKeys:p,decrementKeys:m}=re(e?.direction),w=t!=null&&t!=="",[E,b]=G(!1);z(()=>{if(n==null)return;let f=a(()=>{b(!0)},"handleFocus"),v=a(()=>{b(!1)},"handleBlur");return n.addEventListener("focus",f),n.addEventListener("blur",v),()=>{n.removeEventListener("focus",f),n.removeEventListener("blur",v)}},[n]);let I=ie(f=>{w&&(p.includes(f.key)?l():m.includes(f.key)?d():f.key==="Enter"&&u.current!=null&&x.getInstance().publish("selectListItem",{listId:t,index:u.current,blur:e?.blurOnItemSelect??!0}))},[l,d,p,m,t,w,e?.blurOnItemSelect]);z(()=>{if(n!=null)return n.addEventListener("keyup",I),()=>{n.removeEventListener("keyup",I)}},[n,I]),z(()=>{w&&(E?x.getInstance().publish("focusListItem",{listId:t,index:i}):(x.getInstance().publish("focusListItem",{listId:t,index:null}),e?.resetActiveItemOnBlur&&h()))},[E,t,i,w,e?.resetActiveItemOnBlur]);let[o,s]=G(null),c=ie(f=>{t==null||t===""||t!==f.listId||(s(f.id),n?.setAttribute("aria-activedescendant",f.id))},[t,n]);return z(()=>(x.getInstance().on("listItemFocused",c),()=>{x.getInstance().off("listItemFocused",c)}),[c]),z(()=>{i==null&&(s(null),n?.setAttribute("aria-activedescendant",""))},[i,n]),{ref:r,activeItemId:o,activeItemIndex:i}},"useKeyboardListController");import{useRef as se,useState as We,useEffect as D,useCallback as le}from"react";var Ae="[MappedinJS]";function ze(t="",{prefix:e=Ae}={}){let n=`${e}${t?`-${t}`:""}`,r=a((i,u)=>{if(typeof window<"u"&&window.rnDebug){let l=u.map(d=>d instanceof Error&&d.stack?`${d.message}
1
+ import{a as te}from"./chunk-OPQPD6WC.js";import{a,b as ee,c as C}from"./chunk-3KWUAHRM.js";import{useState as G,useEffect as z,useCallback as ie}from"react";var K=class K{_subscribers={};_abortController=new AbortController;get signal(){return this._abortController.signal}publish(e,n){!this._subscribers||!this._subscribers[e]||this.signal.aborted||this._subscribers[e].forEach(function(r){typeof r=="function"&&r(n)})}onAbort(e){this.signal.addEventListener("abort",()=>e(),{once:!0})}on(e,n,r){let i=r?.signal;if(i?.aborted||this._abortController&&this._abortController.signal.aborted)return()=>{};this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(n);let u=a(()=>{this.off(e,n)},"cleanup");return i&&i.addEventListener("abort",u,{once:!0}),u}off(e,n){if(!this._subscribers||this._subscribers[e]==null||this.signal.aborted)return;let r=this._subscribers[e].indexOf(n);r!==-1&&this._subscribers[e].splice(r,1)}destroy(){this.signal.aborted||(this._subscribers={},this._abortController.abort())}};a(K,"PubSub");var A=K;import{useState as Le,useCallback as q,useEffect as Re,useRef as _e,useMemo as ne}from"react";var F=class F{static getInstance(){return this.instance==null&&(this.instance=new A),this.instance}static reset(){this.instance?.destroy(),this.instance=new A}};a(F,"AccessibleListPubSubSingleton"),ee(F,"instance",null);var x=F,re=a((t="vertical")=>{let e=ne(()=>{let r=[];return(t==="horizontal"||t==="both")&&r.push("ArrowRight"),(t==="vertical"||t==="both")&&r.push("ArrowDown"),r},[t]),n=ne(()=>{let r=[];return(t==="horizontal"||t==="both")&&r.push("ArrowLeft"),(t==="vertical"||t==="both")&&r.push("ArrowUp"),r},[t]);return{incrementKeys:e,decrementKeys:n}},"useNavigationKeys"),oe=a(t=>{let[e,n]=Le(null),r=_e(null),i=q(h=>{r.current=typeof h=="function"?h(r.current):h,n(h)},[n]),u=q(()=>{i(h=>{if(h==null)return 0;let p=h+1;return t!=null&&t>0&&(p=p%t),p})},[t]),l=q(()=>{i(h=>{if(h==null)return t==null?0:t-1;let p=h-1;return t!=null&&t>0&&(p=(p+t)%t),p})},[t]),d=a(()=>{i(null)},"reset");return Re(()=>{d()},[t]),{activeItemIndex:e,activeItemIndexRef:r,increment:u,decrement:l,reset:d}},"useListIndex");var ut=a((t,e)=>{let[n,r]=G(null),{activeItemIndex:i,activeItemIndexRef:u,increment:l,decrement:d,reset:h}=oe(e?.itemCount),{incrementKeys:p,decrementKeys:m}=re(e?.direction),w=t!=null&&t!=="",[E,b]=G(!1);z(()=>{if(n==null)return;let f=a(()=>{b(!0)},"handleFocus"),v=a(()=>{b(!1)},"handleBlur");return n.addEventListener("focus",f),n.addEventListener("blur",v),()=>{n.removeEventListener("focus",f),n.removeEventListener("blur",v)}},[n]);let I=ie(f=>{w&&(p.includes(f.key)?l():m.includes(f.key)?d():f.key==="Enter"&&u.current!=null&&x.getInstance().publish("selectListItem",{listId:t,index:u.current,blur:e?.blurOnItemSelect??!0}))},[l,d,p,m,t,w,e?.blurOnItemSelect]);z(()=>{if(n!=null)return n.addEventListener("keyup",I),()=>{n.removeEventListener("keyup",I)}},[n,I]),z(()=>{w&&(E?x.getInstance().publish("focusListItem",{listId:t,index:i}):(x.getInstance().publish("focusListItem",{listId:t,index:null}),e?.resetActiveItemOnBlur&&h()))},[E,t,i,w,e?.resetActiveItemOnBlur]);let[o,s]=G(null),c=ie(f=>{t==null||t===""||t!==f.listId||(s(f.id),n?.setAttribute("aria-activedescendant",f.id))},[t,n]);return z(()=>(x.getInstance().on("listItemFocused",c),()=>{x.getInstance().off("listItemFocused",c)}),[c]),z(()=>{i==null&&(s(null),n?.setAttribute("aria-activedescendant",""))},[i,n]),{ref:r,activeItemId:o,activeItemIndex:i}},"useKeyboardListController");import{useRef as se,useState as We,useEffect as D,useCallback as le}from"react";var Ae="[MappedinJS]";function ze(t="",{prefix:e=Ae}={}){let n=`${e}${t?`-${t}`:""}`,r=a((i,u)=>{if(typeof window<"u"&&window.rnDebug){let l=u.map(d=>d instanceof Error&&d.stack?`${d.message}
2
2
  ${d.stack}`:d);window.rnDebug(`${t} ${i}: ${l.join(" ")}`)}},"rnDebug");return{logState:C.env.NODE_ENV==="test"?3:0,log(...i){this.logState<=0&&(console.log(n,...i),r("log",i))},warn(...i){this.logState<=1&&(console.warn(n,...i),r("warn",i))},error(...i){this.logState<=2&&(console.error(n,...i),r("error",i))},assert(...i){console.assert(...i)},time(i){console.time(i)},timeEnd(i){console.timeEnd(i)},setLevel(i){0<=i&&i<=3&&(this.logState=i)}}}a(ze,"createLogger");var Ne=ze();var ae=Ne;var wt=a((t,e,n,r)=>{let i=se(null),u=se(n);D(()=>{u.current=n},[n]);let[l,d]=We(!1),h=le(m=>{t==null||t===""||t!==m.listId||i.current?.id==null||(d(m.index===e),i.current?.classList.toggle(r?.activeClassName??te,m.index===e),i.current?.setAttribute("aria-selected",m.index===e?"true":"false"),m.index===e&&x.getInstance().publish("listItemFocused",{listId:t,id:i.current?.id}))},[t,e,r?.activeClassName]),p=le(m=>{t==null||t===""||t!==m.listId||m.index!==e||(u.current?.(),m.blur&&document.activeElement instanceof HTMLElement&&document.activeElement.blur())},[t,e]);return D(()=>{t==null||t===""||x.getInstance().publish("listItemMounted",{listId:t,index:e})},[t,e]),D(()=>{if(!(t==null||t===""))return x.getInstance().on("focusListItem",h),x.getInstance().on("selectListItem",p),()=>{x.getInstance().off("focusListItem",h),x.getInstance().off("selectListItem",p)}},[t,h,p]),D(()=>{i.current!=null&&(i.current.id===""||i.current.id==null)&&(ae.warn("useKeyboardListItem - List item has no id attribute, setting to listId-<index>"),i.current.id=`${t}-${e}`)},[t,i]),{isActive:l,ref:i}},"useKeyboardListItem");import{useRef as we,useEffect as Je}from"react";function P(){return P=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},P.apply(null,arguments)}a(P,"_extends");function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(B,"_assertThisInitialized");function V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},V(t,e)}a(V,"_setPrototypeOf");function ue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,V(t,e)}a(ue,"_inheritsLoose");var ce=Number.isNaN||a(function(e){return typeof e=="number"&&e!==e},"ponyfill");function Fe(t,e){return!!(t===e||ce(t)&&ce(e))}a(Fe,"isEqual");function De(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Fe(t[n],e[n]))return!1;return!0}a(De,"areInputsEqual");function Pe(t,e){e===void 0&&(e=De);var n,r=[],i,u=!1;function l(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return u&&n===this&&e(d,r)||(i=t.apply(this,d),u=!0,n=this,r=d),i}return a(l,"memoized"),l}a(Pe,"memoizeOne");var k=Pe;import{createElement as Y,PureComponent as Ve}from"react";var ke=typeof performance=="object"&&typeof performance.now=="function",de=ke?function(){return performance.now()}:function(){return Date.now()};function fe(t){cancelAnimationFrame(t.id)}a(fe,"cancelTimeout");function He(t,e){var n=de();function r(){de()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}a(r,"tick");var i={id:requestAnimationFrame(r)};return i}a(He,"requestTimeout");var j=-1;function he(t){if(t===void 0&&(t=!1),j===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),j=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return j}a(he,"getScrollbarSize");var L=null;function me(t){if(t===void 0&&(t=!1),L===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?L="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?L="negative":L="positive-ascending"),document.body.removeChild(e),L}return L}a(me,"getRTLOffsetType");var Ue=null,$e=null,Ke=null;C.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ue=new WeakSet,$e=new WeakSet,Ke=new WeakSet);var qe=150,Ge=a(function(e,n){return e},"defaultItemKey"),H=null,U=null;C.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(H=new WeakSet,U=new WeakSet);function ve(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,u=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,d=t.getStopIndexForStartIndex,h=t.initInstanceProps,p=t.shouldResetStyleCacheOnItemSizeChange,m=t.validateProps;return e=(function(w){ue(E,w);function E(I){var o;return o=w.call(this,I)||this,o._instanceProps=h(o.props,B(o)),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:B(o),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof o.props.initialScrollOffset=="number"?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=k(function(s,c,f,v){return o.props.onItemsRendered({overscanStartIndex:s,overscanStopIndex:c,visibleStartIndex:f,visibleStopIndex:v})}),o._callOnScroll=void 0,o._callOnScroll=k(function(s,c,f){return o.props.onScroll({scrollDirection:s,scrollOffset:c,scrollUpdateWasRequested:f})}),o._getItemStyle=void 0,o._getItemStyle=function(s){var c=o.props,f=c.direction,v=c.itemSize,M=c.layout,g=o._getItemStyleCache(p&&v,p&&M,p&&f),S;if(g.hasOwnProperty(s))S=g[s];else{var y=n(o.props,s,o._instanceProps),T=i(o.props,s,o._instanceProps),O=f==="horizontal"||M==="horizontal",N=f==="rtl",W=O?y:0;g[s]=S={position:"absolute",left:N?void 0:W,right:N?W:void 0,top:O?0:y,height:O?"100%":T,width:O?T:"100%"}}return S},o._getItemStyleCache=void 0,o._getItemStyleCache=k(function(s,c,f){return{}}),o._onScrollHorizontal=function(s){var c=s.currentTarget,f=c.clientWidth,v=c.scrollLeft,M=c.scrollWidth;o.setState(function(g){if(g.scrollOffset===v)return null;var S=o.props.direction,y=v;if(S==="rtl")switch(me()){case"negative":y=-v;break;case"positive-descending":y=M-f-v;break}return y=Math.max(0,Math.min(y,M-f)),{isScrolling:!0,scrollDirection:g.scrollOffset<y?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._onScrollVertical=function(s){var c=s.currentTarget,f=c.clientHeight,v=c.scrollHeight,M=c.scrollTop;o.setState(function(g){if(g.scrollOffset===M)return null;var S=Math.max(0,Math.min(M,v-f));return{isScrolling:!0,scrollDirection:g.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._outerRefSetter=function(s){var c=o.props.outerRef;o._outerRef=s,typeof c=="function"?c(s):c!=null&&typeof c=="object"&&c.hasOwnProperty("current")&&(c.current=s)},o._resetIsScrollingDebounced=function(){o._resetIsScrollingTimeoutId!==null&&fe(o._resetIsScrollingTimeoutId),o._resetIsScrollingTimeoutId=He(o._resetIsScrolling,qe)},o._resetIsScrolling=function(){o._resetIsScrollingTimeoutId=null,o.setState({isScrolling:!1},function(){o._getItemStyleCache(-1,null)})},o}a(E,"List"),E.getDerivedStateFromProps=a(function(o,s){return Be(o,s),m(o),null},"getDerivedStateFromProps");var b=E.prototype;return b.scrollTo=a(function(o){o=Math.max(0,o),this.setState(function(s){return s.scrollOffset===o?null:{scrollDirection:s.scrollOffset<o?"forward":"backward",scrollOffset:o,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},"scrollTo"),b.scrollToItem=a(function(o,s){s===void 0&&(s="auto");var c=this.props,f=c.itemCount,v=c.layout,M=this.state.scrollOffset;o=Math.max(0,Math.min(o,f-1));var g=0;if(this._outerRef){var S=this._outerRef;v==="vertical"?g=S.scrollWidth>S.clientWidth?he():0:g=S.scrollHeight>S.clientHeight?he():0}this.scrollTo(u(this.props,o,s,M,this._instanceProps,g))},"scrollToItem"),b.componentDidMount=a(function(){var o=this.props,s=o.direction,c=o.initialScrollOffset,f=o.layout;if(typeof c=="number"&&this._outerRef!=null){var v=this._outerRef;s==="horizontal"||f==="horizontal"?v.scrollLeft=c:v.scrollTop=c}this._callPropsCallbacks()},"componentDidMount"),b.componentDidUpdate=a(function(){var o=this.props,s=o.direction,c=o.layout,f=this.state,v=f.scrollOffset,M=f.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var g=this._outerRef;if(s==="horizontal"||c==="horizontal")if(s==="rtl")switch(me()){case"negative":g.scrollLeft=-v;break;case"positive-ascending":g.scrollLeft=v;break;default:var S=g.clientWidth,y=g.scrollWidth;g.scrollLeft=y-S-v;break}else g.scrollLeft=v;else g.scrollTop=v}this._callPropsCallbacks()},"componentDidUpdate"),b.componentWillUnmount=a(function(){this._resetIsScrollingTimeoutId!==null&&fe(this._resetIsScrollingTimeoutId)},"componentWillUnmount"),b.render=a(function(){var o=this.props,s=o.children,c=o.className,f=o.direction,v=o.height,M=o.innerRef,g=o.innerElementType,S=o.innerTagName,y=o.itemCount,T=o.itemData,O=o.itemKey,N=O===void 0?Ge:O,W=o.layout,be=o.outerElementType,xe=o.outerTagName,Ce=o.style,Ee=o.useIsScrolling,Me=o.width,Z=this.state.isScrolling,$=f==="horizontal"||W==="horizontal",ye=$?this._onScrollHorizontal:this._onScrollVertical,J=this._getRangeToRender(),Te=J[0],Oe=J[1],Q=[];if(y>0)for(var _=Te;_<=Oe;_++)Q.push(Y(s,{data:T,key:N(_,T),index:_,isScrolling:Ee?Z:void 0,style:this._getItemStyle(_)}));var X=r(this.props,this._instanceProps);return Y(be||xe||"div",{className:c,onScroll:ye,ref:this._outerRefSetter,style:P({position:"relative",height:v,width:Me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:f},Ce)},Y(g||S||"div",{children:Q,ref:M,style:{height:$?"100%":X,pointerEvents:Z?"none":void 0,width:$?X:"100%"}}))},"render"),b._callPropsCallbacks=a(function(){if(typeof this.props.onItemsRendered=="function"){var o=this.props.itemCount;if(o>0){var s=this._getRangeToRender(),c=s[0],f=s[1],v=s[2],M=s[3];this._callOnItemsRendered(c,f,v,M)}}if(typeof this.props.onScroll=="function"){var g=this.state,S=g.scrollDirection,y=g.scrollOffset,T=g.scrollUpdateWasRequested;this._callOnScroll(S,y,T)}},"_callPropsCallbacks"),b._getRangeToRender=a(function(){var o=this.props,s=o.itemCount,c=o.overscanCount,f=this.state,v=f.isScrolling,M=f.scrollDirection,g=f.scrollOffset;if(s===0)return[0,0,0,0];var S=l(this.props,g,this._instanceProps),y=d(this.props,S,g,this._instanceProps),T=!v||M==="backward"?Math.max(1,c):1,O=!v||M==="forward"?Math.max(1,c):1;return[Math.max(0,S-T),Math.max(0,Math.min(s-1,y+O)),S,y]},"_getRangeToRender"),E})(Ve),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}a(ve,"createListComponent");var Be=a(function(e,n){var r=e.children,i=e.direction,u=e.height,l=e.layout,d=e.innerTagName,h=e.outerTagName,p=e.width,m=n.instance;if(C.env.NODE_ENV!=="production"){(d!=null||h!=null)&&U&&!U.has(m)&&(U.add(m),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var w=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":H&&!H.has(m)&&(H.add(m),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(w&&typeof p!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(p===null?"null":typeof p)+'" was specified.'));if(!w&&typeof u!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(u===null?"null":typeof u)+'" was specified.'))}},"validateSharedProps"),Ye=50,R=a(function(e,n,r){var i=e,u=i.itemSize,l=r.itemMetadataMap,d=r.lastMeasuredIndex;if(n>d){var h=0;if(d>=0){var p=l[d];h=p.offset+p.size}for(var m=d+1;m<=n;m++){var w=u(m);l[m]={offset:h,size:w},h+=w}r.lastMeasuredIndex=n}return l[n]},"getItemMetadata"),je=a(function(e,n,r){var i=n.itemMetadataMap,u=n.lastMeasuredIndex,l=u>0?i[u].offset:0;return l>=r?ge(e,n,u,0,r):Ze(e,n,Math.max(0,u),r)},"findNearestItem"),ge=a(function(e,n,r,i,u){for(;i<=r;){var l=i+Math.floor((r-i)/2),d=R(e,l,n).offset;if(d===u)return l;d<u?i=l+1:d>u&&(r=l-1)}return i>0?i-1:0},"findNearestItemBinarySearch"),Ze=a(function(e,n,r,i){for(var u=e.itemCount,l=1;r<u&&R(e,r,n).offset<i;)r+=l,l*=2;return ge(e,n,Math.min(r,u-1),Math.floor(r/2),i)},"findNearestItemExponentialSearch"),pe=a(function(e,n){var r=e.itemCount,i=n.itemMetadataMap,u=n.estimatedItemSize,l=n.lastMeasuredIndex,d=0;if(l>=r&&(l=r-1),l>=0){var h=i[l];d=h.offset+h.size}var p=r-l-1,m=p*u;return d+m},"getEstimatedTotalSize"),Ie=ve({getItemOffset:a(function(e,n,r){return R(e,n,r).offset},"getItemOffset"),getItemSize:a(function(e,n,r){return r.itemMetadataMap[n].size},"getItemSize"),getEstimatedTotalSize:pe,getOffsetForIndexAndAlignment:a(function(e,n,r,i,u,l){var d=e.direction,h=e.height,p=e.layout,m=e.width,w=d==="horizontal"||p==="horizontal",E=w?m:h,b=R(e,n,u),I=pe(e,u),o=Math.max(0,Math.min(I-E,b.offset)),s=Math.max(0,b.offset-E+b.size+l);switch(r==="smart"&&(i>=s-E&&i<=o+E?r="auto":r="center"),r){case"start":return o;case"end":return s;case"center":return Math.round(s+(o-s)/2);case"auto":default:return i>=s&&i<=o?i:i<s?s:o}},"getOffsetForIndexAndAlignment"),getStartIndexForOffset:a(function(e,n,r){return je(e,r,n)},"getStartIndexForOffset"),getStopIndexForStartIndex:a(function(e,n,r,i){for(var u=e.direction,l=e.height,d=e.itemCount,h=e.layout,p=e.width,m=u==="horizontal"||h==="horizontal",w=m?p:l,E=R(e,n,i),b=r+w,I=E.offset+E.size,o=n;o<d-1&&I<b;)o++,I+=R(e,o,i).size;return o},"getStopIndexForStartIndex"),initInstanceProps:a(function(e,n){var r=e,i=r.estimatedItemSize,u={itemMetadataMap:{},estimatedItemSize:i||Ye,lastMeasuredIndex:-1};return n.resetAfterIndex=function(l,d){d===void 0&&(d=!0),u.lastMeasuredIndex=Math.min(u.lastMeasuredIndex,l-1),n._getItemStyleCache(-1),d&&n.forceUpdate()},u},"initInstanceProps"),shouldResetStyleCacheOnItemSizeChange:!1,validateProps:a(function(e){var n=e.itemSize;if(C.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))},"validateProps")});var Se=ve({getItemOffset:a(function(e,n){var r=e.itemSize;return n*r},"getItemOffset"),getItemSize:a(function(e,n){var r=e.itemSize;return r},"getItemSize"),getEstimatedTotalSize:a(function(e){var n=e.itemCount,r=e.itemSize;return r*n},"getEstimatedTotalSize"),getOffsetForIndexAndAlignment:a(function(e,n,r,i,u,l){var d=e.direction,h=e.height,p=e.itemCount,m=e.itemSize,w=e.layout,E=e.width,b=d==="horizontal"||w==="horizontal",I=b?E:h,o=Math.max(0,p*m-I),s=Math.min(o,n*m),c=Math.max(0,n*m-I+m+l);switch(r==="smart"&&(i>=c-I&&i<=s+I?r="auto":r="center"),r){case"start":return s;case"end":return c;case"center":{var f=Math.round(c+(s-c)/2);return f<Math.ceil(I/2)?0:f>o+Math.floor(I/2)?o:f}case"auto":default:return i>=c&&i<=s?i:i<c?c:s}},"getOffsetForIndexAndAlignment"),getStartIndexForOffset:a(function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},"getStartIndexForOffset"),getStopIndexForStartIndex:a(function(e,n,r){var i=e.direction,u=e.height,l=e.itemCount,d=e.itemSize,h=e.layout,p=e.width,m=i==="horizontal"||h==="horizontal",w=n*d,E=m?p:u,b=Math.ceil((E+r-w)/d);return Math.max(0,Math.min(l-1,n+b-1))},"getStopIndexForStartIndex"),initInstanceProps:a(function(e){},"initInstanceProps"),shouldResetStyleCacheOnItemSizeChange:!0,validateProps:a(function(e){var n=e.itemSize;if(C.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))},"validateProps")});var nn=a((t,e)=>{let n=we(null),r=we(null),i=a(l=>{t==null||t===""||t!==l.listId||(r.current=l.index,!(n.current==null||l.index==null)&&(e?.scrollFn?e.scrollFn(l.index):(n.current instanceof Ie||n.current instanceof Se)&&n.current.scrollToItem(l.index)))},"handleFocusListitem"),u=a(l=>{t==null||t===""||t!==l.listId||r.current!=null&&l.index===r.current&&x.getInstance().publish("focusListItem",{listId:t,index:l.index})},"handleListItemMounted");return Je(()=>{if(!(t==null||t===""))return x.getInstance().on("focusListItem",i),x.getInstance().on("listItemMounted",u),()=>{x.getInstance().off("focusListItem",i),x.getInstance().off("listItemMounted",u)}},[t,e?.scrollFn]),{ref:n}},"useKeyboardVirtualList");export{Se as a,ut as b,wt as c,nn as d};
@@ -1 +1 @@
1
- import{a as j,c as K,d as Z}from"./chunk-IEYZX75Q.js";import{a as Y}from"./chunk-4SKZ3QEL.js";import{c as x,d as X,e as b}from"./chunk-YDVB7ZX2.js";import{a as s,c as w}from"./chunk-X43YWC4J.js";import{useEffect as $e,useMemo as _e,useRef as Be}from"react";import Ee,{cloneElement as Se,isValidElement as Ae,useCallback as S,useEffect as A,useReducer as Ie,useRef as q,useState as De}from"react";import*as ee from"react";var fe=s(t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,n)=>{let[r,o]=n.split(/ ?: ?/).map((i,c)=>c===0?i.replace(/\s+/g,""):i.trim());if(r&&o){let i=r.replace(/(\w)-(\w)/g,(p,l,a)=>`${l}${a.toUpperCase()}`),c=o.trim();Number.isNaN(Number(o))||(c=Number(o)),e[r.startsWith("-")?r:i]=c}return e},{}),"styleToObject");function ge(t=6){let e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n="";for(let r=t;r>0;--r)n+=e[Math.round(Math.random()*(e.length-1))];return n}s(ge,"randomString");var ye=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],J={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function ve(t,e){let{key:n,level:r,...o}=e;switch(t.nodeType){case 1:return ee.createElement(we(t.nodeName),ke(t,n),Q(t.childNodes,r,o));case 3:{let i=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;let c=t.parentNode.nodeName.toLowerCase();return ye.includes(c)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${c}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return Q(t.childNodes,r,e);default:return null}}s(ve,"getReactNode");function ke(t,e){let n={key:e};if(t instanceof Element){let r=t.getAttribute("class");r&&(n.className=r),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":n[o.name]=fe(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[J[o.name]||o.name]=!0;break;default:n[J[o.name]||o.name]=o.value}})}return n}s(ke,"parseAttributes");function Q(t,e,n){let r=[...t].map((o,i)=>T(o,{...n,index:i,level:e+1})).filter(Boolean);return r.length?r:null}s(Q,"parseChildren");function we(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}s(we,"parseName");function O(t,e={}){return typeof t=="string"?xe(t,e):t instanceof Node?T(t,e):null}s(O,"convert");function T(t,e={}){if(!t||!(t instanceof Node))return null;let{actions:n=[],index:r=0,level:o=0,randomKey:i}=e,c=t,p=`${o}-${r}`,l=[];return i&&o===0&&(p=`${ge()}-${p}`),Array.isArray(n)&&n.forEach(a=>{a.condition(c,p,o)&&(typeof a.pre=="function"&&(c=a.pre(c,p,o),c instanceof Node||(c=t,w.env.NODE_ENV!=="production"&&console.warn("The `pre` method always must return a valid DomNode (instanceof Node) - your modification will be ignored (Hint: if you want to render a React-component, use the `post` method instead)"))),typeof a.post=="function"&&l.push(a.post(c,p,o)))}),l.length?l:ve(c,{key:p,level:o,...e})}s(T,"convertFromNode");function xe(t,e={}){if(!t||typeof t!="string")return null;let{includeAllNodes:n=!1,nodeOnly:r=!1,selector:o="body > *",type:i="text/html"}=e;try{let p=new DOMParser().parseFromString(t,i);if(n){let{childNodes:a}=p.body;return r?a:[...a].map(h=>T(h,e))}let l=p.querySelector(o)||p.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return r?l:T(l,e)}catch(c){w.env.NODE_ENV!=="production"&&console.error(c)}return null}s(xe,"convertFromString");import{useEffect as ze,useRef as Ue}from"react";var be=Object.defineProperty,Le=s((t,e,n)=>e in t?be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),M=s((t,e,n)=>Le(t,typeof e!="symbol"?e+"":e,n),"__publicField"),te="react-inlinesvg",Ce=10,u={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Re(t){return t[Math.floor(Math.random()*t.length)]}s(Re,"randomCharacter");function P(){return!!(typeof window<"u"&&window.document?.createElement)}s(P,"canUseDOM");function Ne(){return Me()&&typeof window<"u"&&window!==null}s(Ne,"isSupportedEnvironment");function Pe(t,...e){let n={};for(let r in t)({}).hasOwnProperty.call(t,r)&&(e.includes(r)||(n[r]=t[r]));return n}s(Pe,"omit");function Te(t){let e="abcdefghijklmnopqrstuvwxyz",r=`${e}${e.toUpperCase()}1234567890`,o="";for(let i=0;i<t;i++)o+=Re(r);return o}s(Te,"randomString");async function re(t,e){let n=await fetch(t,e),r=n.headers.get("content-type"),[o]=(r??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(i=>o.includes(i)))throw new Error(`Content type isn't valid: ${o}`);return n.text()}s(re,"request");function Oe(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}s(Oe,"sleep");function Me(){if(!document)return!1;let t=document.createElement("div");t.innerHTML="<svg />";let e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}s(Me,"supportsInlineSVG");var D,He=(D=class{constructor(){M(this,"cacheApi"),M(this,"cacheStore"),M(this,"subscribers",[]),M(this,"isReady",!1),this.cacheStore=new Map;let e=te,n=!1;P()&&(e=window.REACT_INLINESVG_CACHE_NAME??te,n=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),n?caches.open(e).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;let r=[...this.subscribers];this.subscribers.length=0,r.forEach(o=>{try{o()}catch(i){console.error(`Error in CacheStore subscriber callback: ${i.message}`)}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,n){return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,n):this.fetchAndAddToInternalCache(e,n)),this.cacheStore.get(e)?.content??""}set(e,n){this.cacheStore.set(e,n)}isCached(e){return this.cacheStore.get(e)?.status===u.LOADED}async fetchAndAddToInternalCache(e,n){let r=this.cacheStore.get(e);if(r?.status===u.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:u.IDLE}),await this.fetchAndAddToInternalCache(e,n)});return}if(!r?.content){this.cacheStore.set(e,{content:"",status:u.LOADING});try{let o=await re(e,n);this.cacheStore.set(e,{content:o,status:u.LOADED})}catch(o){throw this.cacheStore.set(e,{content:"",status:u.FAILED}),o}}}async fetchAndAddToPersistentCache(e,n){let r=this.cacheStore.get(e);if(r?.status===u.LOADED)return;if(r?.status===u.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:u.IDLE}),await this.fetchAndAddToPersistentCache(e,n)});return}this.cacheStore.set(e,{content:"",status:u.LOADING});let o=await this.cacheApi?.match(e);if(o){let i=await o.text();this.cacheStore.set(e,{content:i,status:u.LOADED});return}try{await this.cacheApi?.add(new Request(e,n));let c=await(await this.cacheApi?.match(e))?.text()??"";this.cacheStore.set(e,{content:c,status:u.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:u.FAILED}),i}}async handleLoading(e,n){for(let r=0;r<Ce;r++){if(this.cacheStore.get(e)?.status!==u.LOADING)return;await Oe(.1)}await n()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,n])=>({[e]:n}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){let e=await this.cacheApi.keys();await Promise.allSettled(e.map(n=>this.cacheApi.delete(n)))}this.cacheStore.clear()}},s(D,"CacheStore"),D);function ne(t){let e=Ue(void 0);return ze(()=>{e.current=t}),e.current}s(ne,"usePrevious");function qe(t){let{baseURL:e,content:n,description:r,handleError:o,hash:i,preProcessor:c,title:p,uniquifyIDs:l=!1}=t;try{let a=Fe(n,c),h=O(a,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");let f=oe(h,{baseURL:e,hash:i,uniquifyIDs:l});if(r){let m=f.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);let y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=r,f.prepend(y)}if(typeof p<"u"){let m=f.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),p){let y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=p,f.prepend(y)}}return f}catch(a){return o(a)}}s(qe,"getNode");function Fe(t,e){return e?e(t):t}s(Fe,"processSVG");function oe(t,e){let{baseURL:n="",hash:r,uniquifyIDs:o}=e,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],c=["href","xlink:href"],p=s((l,a)=>c.includes(l)&&(a?!a.includes("#"):!1),"isDataValue");return o&&[...t.children].forEach(l=>{if(l.attributes?.length){let a=Object.values(l.attributes).map(h=>{let f=h,m=/url\((.*?)\)/.exec(h.value);return m?.[1]&&(f.value=h.value.replace(m[0],`url(${n}${m[1]}__${r})`)),f});i.forEach(h=>{let f=a.find(m=>m.name===h);f&&!p(h,f.value)&&(f.value=`${f.value}__${r}`)})}return l.children.length?oe(l,e):l}),t}s(oe,"updateSVGAttributes");var I;function Ve(t){let{cacheRequests:e=!0,children:n=null,description:r,fetchOptions:o,innerRef:i,loader:c=null,onError:p,onLoad:l,src:a,title:h,uniqueHash:f}=t,[m,y]=Ie((d,g)=>({...d,...g}),{content:"",element:null,isCached:e&&I.isCached(t.src),status:u.IDLE}),{content:V,element:G,isCached:$,status:L}=m,v=ne(t),C=ne(m),he=q(f??Te(8)),R=q(!1),_=q(!1),k=S(d=>{R.current&&(y({status:d.message==="Browser does not support SVG"?u.UNSUPPORTED:u.FAILED}),p?.(d))},[p]),N=S((d,g=!1)=>{R.current&&y({content:d,isCached:g,status:u.LOADED})},[]),B=S(async()=>{let d=await re(a,o);N(d)},[o,N,a]),E=S(()=>{try{let d=qe({...t,handleError:k,hash:he.current,content:V}),g=O(d);if(!g||!Ae(g))throw new Error("Could not convert the src to a React element");y({element:g,status:u.READY})}catch(d){k(d)}},[V,k,t]),W=S(async()=>{let d=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(a),g;if(d?g=d[1]?window.atob(d[2]):decodeURIComponent(d[2]):a.includes("<svg")&&(g=a),g){N(g);return}try{if(e){let U=await I.get(a,o);N(U,!0)}else await B()}catch(U){k(U)}},[e,B,o,k,N,a]),z=S(async()=>{R.current&&y({content:"",element:null,isCached:!1,status:u.LOADING})},[]);A(()=>{if(R.current=!0,!(!P()||_.current)){try{if(L===u.IDLE){if(!Ne())throw new Error("Browser does not support SVG");if(!a)throw new Error("Missing src");z()}}catch(d){k(d)}return _.current=!0,()=>{R.current=!1}}},[]),A(()=>{if(!(!P()||!v)&&v.src!==a){if(!a){k(new Error("Missing src"));return}z()}},[k,z,v,a]),A(()=>{L===u.LOADED&&E()},[L,E]),A(()=>{!P()||!v||v.src!==a||(v.title!==h||v.description!==r)&&E()},[r,E,v,a,h]),A(()=>{if(C)switch(L){case u.LOADING:{C.status!==u.LOADING&&W();break}case u.LOADED:{C.status!==u.LOADED&&E();break}case u.READY:{C.status!==u.READY&&l?.(a,$);break}}},[W,E,$,l,C,a,L]);let me=Pe(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return P()?G?Se(G,{ref:i,...me}):[u.UNSUPPORTED,u.FAILED].includes(L)?n:c:c}s(Ve,"ReactInlineSVG");function ie(t){I||(I=new He);let{loader:e}=t,[n,r]=De(I.isReady);return A(()=>{n||I.onReady(()=>{r(!0)})},[n]),n?Ee.createElement(Ve,{...t}):e}s(ie,"InlineSVG");import{createElement as Ge}from"react";import{jsx as H,jsxs as ae}from"react/jsx-runtime";var se=s(({listId:t,index:e,locations:n,props:r,onClick:o,item:i})=>{let{ref:c}=K(t,e,()=>o?.(n[e])),{ref:p}=Y("locationId",n[e].id),l=n[e].logo,a=n[e].categories[0]?.icon;return H("li",{...b({className:"location-list-item-wrapper",role:"button",onClick:s(()=>o?.(n[e]),"onClick"),ref:X(c,p)},r?.listItemWrapper),id:`${t??"location-list"}-${n[e].id}`,children:i?Ge(i,{location:n[e]}):ae("div",{...b({className:"location-list-item-content"},r?.listItemContent),children:[(l||a)&&ae("div",{...b({className:"location-list-item-image"},r?.listItemImage),children:[l&&H("img",{className:x("location-list-item-image-img"),src:l,alt:n[e].name}),a&&!l&&H(ie,{className:x("location-list-item-image-svg"),src:a})]}),H("span",{...b({className:"location-list-item-name"},r?.listItemName),children:n[e].name})]})})},"LocationListItem");import{forwardRef as ce}from"react";import{jsx as F}from"react/jsx-runtime";var le=s(({index:t,style:e,data:n})=>F(se,{index:t,...n,props:{...n.props,listItemWrapper:{style:{...e,...n.props?.listItemWrapper?.style},...n.props?.listItemWrapper}}}),"LocationListItemRenderer"),ue=ce((t,e)=>F("div",{ref:e,tabIndex:-1,...t})),pe=ce((t,e)=>F("ul",{ref:e,className:x("location-list-inner"),...t,style:{display:"block",...t.style}}));import{jsx as de}from"react/jsx-runtime";var At=s(({id:t,locations:e=[],onLocationSelected:n,maxHeight:r,item:o,itemSize:i=40,props:c})=>{let{ref:p}=Z(t),l=_e(()=>{let h=e.length*i;return r==null?Math.min(h,window.innerHeight*.8):Math.min(h,r)},[r,e,i]),a=Be(e);return $e(()=>{a.current=e},[e]),de("div",{...b({className:"location-list-wrapper",style:{height:"100vh",maxHeight:`${l}px`}},c?.wrapper),role:"listbox",id:t,children:de(j,{ref:p,className:x("location-list",c?.list?.className),height:l,width:"100%",layout:"vertical",itemSize:i,itemCount:e.length,outerElementType:ue,itemData:{locations:e,props:c,onClick:n,listId:t,item:o},innerElementType:pe,...c?.list??{},children:le})})},"LocationList");export{At as a};
1
+ import{a as j,c as K,d as Z}from"./chunk-PJOR2TMA.js";import{a as Y}from"./chunk-WRVS2PT7.js";import{c as x,d as X,e as b}from"./chunk-OPQPD6WC.js";import{a as s,c as w}from"./chunk-3KWUAHRM.js";import{useEffect as $e,useMemo as _e,useRef as Be}from"react";import Ee,{cloneElement as Se,isValidElement as Ae,useCallback as S,useEffect as A,useReducer as Ie,useRef as q,useState as De}from"react";import*as ee from"react";var fe=s(t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,n)=>{let[r,o]=n.split(/ ?: ?/).map((i,c)=>c===0?i.replace(/\s+/g,""):i.trim());if(r&&o){let i=r.replace(/(\w)-(\w)/g,(p,l,a)=>`${l}${a.toUpperCase()}`),c=o.trim();Number.isNaN(Number(o))||(c=Number(o)),e[r.startsWith("-")?r:i]=c}return e},{}),"styleToObject");function ge(t=6){let e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n="";for(let r=t;r>0;--r)n+=e[Math.round(Math.random()*(e.length-1))];return n}s(ge,"randomString");var ye=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],J={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function ve(t,e){let{key:n,level:r,...o}=e;switch(t.nodeType){case 1:return ee.createElement(we(t.nodeName),ke(t,n),Q(t.childNodes,r,o));case 3:{let i=t.nodeValue?.toString()??"";if(!o.allowWhiteSpaces&&/^\s+$/.test(i)&&!/[\u00A0\u202F]/.test(i))return null;if(!t.parentNode)return i;let c=t.parentNode.nodeName.toLowerCase();return ye.includes(c)?(/\S/.test(i)&&console.warn(`A textNode is not allowed inside '${c}'. Your text "${i}" will be ignored`),null):i}case 8:return null;case 11:return Q(t.childNodes,r,e);default:return null}}s(ve,"getReactNode");function ke(t,e){let n={key:e};if(t instanceof Element){let r=t.getAttribute("class");r&&(n.className=r),[...t.attributes].forEach(o=>{switch(o.name){case"class":break;case"style":n[o.name]=fe(o.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[J[o.name]||o.name]=!0;break;default:n[J[o.name]||o.name]=o.value}})}return n}s(ke,"parseAttributes");function Q(t,e,n){let r=[...t].map((o,i)=>T(o,{...n,index:i,level:e+1})).filter(Boolean);return r.length?r:null}s(Q,"parseChildren");function we(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}s(we,"parseName");function O(t,e={}){return typeof t=="string"?xe(t,e):t instanceof Node?T(t,e):null}s(O,"convert");function T(t,e={}){if(!t||!(t instanceof Node))return null;let{actions:n=[],index:r=0,level:o=0,randomKey:i}=e,c=t,p=`${o}-${r}`,l=[];return i&&o===0&&(p=`${ge()}-${p}`),Array.isArray(n)&&n.forEach(a=>{a.condition(c,p,o)&&(typeof a.pre=="function"&&(c=a.pre(c,p,o),c instanceof Node||(c=t,w.env.NODE_ENV!=="production"&&console.warn("The `pre` method always must return a valid DomNode (instanceof Node) - your modification will be ignored (Hint: if you want to render a React-component, use the `post` method instead)"))),typeof a.post=="function"&&l.push(a.post(c,p,o)))}),l.length?l:ve(c,{key:p,level:o,...e})}s(T,"convertFromNode");function xe(t,e={}){if(!t||typeof t!="string")return null;let{includeAllNodes:n=!1,nodeOnly:r=!1,selector:o="body > *",type:i="text/html"}=e;try{let p=new DOMParser().parseFromString(t,i);if(n){let{childNodes:a}=p.body;return r?a:[...a].map(h=>T(h,e))}let l=p.querySelector(o)||p.body.childNodes[0];if(!(l instanceof Node))throw new TypeError("Error parsing input");return r?l:T(l,e)}catch(c){w.env.NODE_ENV!=="production"&&console.error(c)}return null}s(xe,"convertFromString");import{useEffect as ze,useRef as Ue}from"react";var be=Object.defineProperty,Le=s((t,e,n)=>e in t?be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"__defNormalProp"),M=s((t,e,n)=>Le(t,typeof e!="symbol"?e+"":e,n),"__publicField"),te="react-inlinesvg",Ce=10,u={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Re(t){return t[Math.floor(Math.random()*t.length)]}s(Re,"randomCharacter");function P(){return!!(typeof window<"u"&&window.document?.createElement)}s(P,"canUseDOM");function Ne(){return Me()&&typeof window<"u"&&window!==null}s(Ne,"isSupportedEnvironment");function Pe(t,...e){let n={};for(let r in t)({}).hasOwnProperty.call(t,r)&&(e.includes(r)||(n[r]=t[r]));return n}s(Pe,"omit");function Te(t){let e="abcdefghijklmnopqrstuvwxyz",r=`${e}${e.toUpperCase()}1234567890`,o="";for(let i=0;i<t;i++)o+=Re(r);return o}s(Te,"randomString");async function re(t,e){let n=await fetch(t,e),r=n.headers.get("content-type"),[o]=(r??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(i=>o.includes(i)))throw new Error(`Content type isn't valid: ${o}`);return n.text()}s(re,"request");function Oe(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}s(Oe,"sleep");function Me(){if(!document)return!1;let t=document.createElement("div");t.innerHTML="<svg />";let e=t.firstChild;return!!e&&e.namespaceURI==="http://www.w3.org/2000/svg"}s(Me,"supportsInlineSVG");var D,He=(D=class{constructor(){M(this,"cacheApi"),M(this,"cacheStore"),M(this,"subscribers",[]),M(this,"isReady",!1),this.cacheStore=new Map;let e=te,n=!1;P()&&(e=window.REACT_INLINESVG_CACHE_NAME??te,n=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),n?caches.open(e).then(r=>{this.cacheApi=r}).catch(r=>{console.error(`Failed to open cache: ${r.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;let r=[...this.subscribers];this.subscribers.length=0,r.forEach(o=>{try{o()}catch(i){console.error(`Error in CacheStore subscriber callback: ${i.message}`)}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,n){return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,n):this.fetchAndAddToInternalCache(e,n)),this.cacheStore.get(e)?.content??""}set(e,n){this.cacheStore.set(e,n)}isCached(e){return this.cacheStore.get(e)?.status===u.LOADED}async fetchAndAddToInternalCache(e,n){let r=this.cacheStore.get(e);if(r?.status===u.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:u.IDLE}),await this.fetchAndAddToInternalCache(e,n)});return}if(!r?.content){this.cacheStore.set(e,{content:"",status:u.LOADING});try{let o=await re(e,n);this.cacheStore.set(e,{content:o,status:u.LOADED})}catch(o){throw this.cacheStore.set(e,{content:"",status:u.FAILED}),o}}}async fetchAndAddToPersistentCache(e,n){let r=this.cacheStore.get(e);if(r?.status===u.LOADED)return;if(r?.status===u.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:u.IDLE}),await this.fetchAndAddToPersistentCache(e,n)});return}this.cacheStore.set(e,{content:"",status:u.LOADING});let o=await this.cacheApi?.match(e);if(o){let i=await o.text();this.cacheStore.set(e,{content:i,status:u.LOADED});return}try{await this.cacheApi?.add(new Request(e,n));let c=await(await this.cacheApi?.match(e))?.text()??"";this.cacheStore.set(e,{content:c,status:u.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:u.FAILED}),i}}async handleLoading(e,n){for(let r=0;r<Ce;r++){if(this.cacheStore.get(e)?.status!==u.LOADING)return;await Oe(.1)}await n()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,n])=>({[e]:n}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){let e=await this.cacheApi.keys();await Promise.allSettled(e.map(n=>this.cacheApi.delete(n)))}this.cacheStore.clear()}},s(D,"CacheStore"),D);function ne(t){let e=Ue(void 0);return ze(()=>{e.current=t}),e.current}s(ne,"usePrevious");function qe(t){let{baseURL:e,content:n,description:r,handleError:o,hash:i,preProcessor:c,title:p,uniquifyIDs:l=!1}=t;try{let a=Fe(n,c),h=O(a,{nodeOnly:!0});if(!h||!(h instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");let f=oe(h,{baseURL:e,hash:i,uniquifyIDs:l});if(r){let m=f.querySelector("desc");m?.parentNode&&m.parentNode.removeChild(m);let y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=r,f.prepend(y)}if(typeof p<"u"){let m=f.querySelector("title");if(m?.parentNode&&m.parentNode.removeChild(m),p){let y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=p,f.prepend(y)}}return f}catch(a){return o(a)}}s(qe,"getNode");function Fe(t,e){return e?e(t):t}s(Fe,"processSVG");function oe(t,e){let{baseURL:n="",hash:r,uniquifyIDs:o}=e,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],c=["href","xlink:href"],p=s((l,a)=>c.includes(l)&&(a?!a.includes("#"):!1),"isDataValue");return o&&[...t.children].forEach(l=>{if(l.attributes?.length){let a=Object.values(l.attributes).map(h=>{let f=h,m=/url\((.*?)\)/.exec(h.value);return m?.[1]&&(f.value=h.value.replace(m[0],`url(${n}${m[1]}__${r})`)),f});i.forEach(h=>{let f=a.find(m=>m.name===h);f&&!p(h,f.value)&&(f.value=`${f.value}__${r}`)})}return l.children.length?oe(l,e):l}),t}s(oe,"updateSVGAttributes");var I;function Ve(t){let{cacheRequests:e=!0,children:n=null,description:r,fetchOptions:o,innerRef:i,loader:c=null,onError:p,onLoad:l,src:a,title:h,uniqueHash:f}=t,[m,y]=Ie((d,g)=>({...d,...g}),{content:"",element:null,isCached:e&&I.isCached(t.src),status:u.IDLE}),{content:V,element:G,isCached:$,status:L}=m,v=ne(t),C=ne(m),he=q(f??Te(8)),R=q(!1),_=q(!1),k=S(d=>{R.current&&(y({status:d.message==="Browser does not support SVG"?u.UNSUPPORTED:u.FAILED}),p?.(d))},[p]),N=S((d,g=!1)=>{R.current&&y({content:d,isCached:g,status:u.LOADED})},[]),B=S(async()=>{let d=await re(a,o);N(d)},[o,N,a]),E=S(()=>{try{let d=qe({...t,handleError:k,hash:he.current,content:V}),g=O(d);if(!g||!Ae(g))throw new Error("Could not convert the src to a React element");y({element:g,status:u.READY})}catch(d){k(d)}},[V,k,t]),W=S(async()=>{let d=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(a),g;if(d?g=d[1]?window.atob(d[2]):decodeURIComponent(d[2]):a.includes("<svg")&&(g=a),g){N(g);return}try{if(e){let U=await I.get(a,o);N(U,!0)}else await B()}catch(U){k(U)}},[e,B,o,k,N,a]),z=S(async()=>{R.current&&y({content:"",element:null,isCached:!1,status:u.LOADING})},[]);A(()=>{if(R.current=!0,!(!P()||_.current)){try{if(L===u.IDLE){if(!Ne())throw new Error("Browser does not support SVG");if(!a)throw new Error("Missing src");z()}}catch(d){k(d)}return _.current=!0,()=>{R.current=!1}}},[]),A(()=>{if(!(!P()||!v)&&v.src!==a){if(!a){k(new Error("Missing src"));return}z()}},[k,z,v,a]),A(()=>{L===u.LOADED&&E()},[L,E]),A(()=>{!P()||!v||v.src!==a||(v.title!==h||v.description!==r)&&E()},[r,E,v,a,h]),A(()=>{if(C)switch(L){case u.LOADING:{C.status!==u.LOADING&&W();break}case u.LOADED:{C.status!==u.LOADED&&E();break}case u.READY:{C.status!==u.READY&&l?.(a,$);break}}},[W,E,$,l,C,a,L]);let me=Pe(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return P()?G?Se(G,{ref:i,...me}):[u.UNSUPPORTED,u.FAILED].includes(L)?n:c:c}s(Ve,"ReactInlineSVG");function ie(t){I||(I=new He);let{loader:e}=t,[n,r]=De(I.isReady);return A(()=>{n||I.onReady(()=>{r(!0)})},[n]),n?Ee.createElement(Ve,{...t}):e}s(ie,"InlineSVG");import{createElement as Ge}from"react";import{jsx as H,jsxs as ae}from"react/jsx-runtime";var se=s(({listId:t,index:e,locations:n,props:r,onClick:o,item:i})=>{let{ref:c}=K(t,e,()=>o?.(n[e])),{ref:p}=Y("locationId",n[e].id),l=n[e].logo,a=n[e].categories[0]?.icon;return H("li",{...b({className:"location-list-item-wrapper",role:"button",onClick:s(()=>o?.(n[e]),"onClick"),ref:X(c,p)},r?.listItemWrapper),id:`${t??"location-list"}-${n[e].id}`,children:i?Ge(i,{location:n[e]}):ae("div",{...b({className:"location-list-item-content"},r?.listItemContent),children:[(l||a)&&ae("div",{...b({className:"location-list-item-image"},r?.listItemImage),children:[l&&H("img",{className:x("location-list-item-image-img"),src:l,alt:n[e].name}),a&&!l&&H(ie,{className:x("location-list-item-image-svg"),src:a})]}),H("span",{...b({className:"location-list-item-name"},r?.listItemName),children:n[e].name})]})})},"LocationListItem");import{forwardRef as ce}from"react";import{jsx as F}from"react/jsx-runtime";var le=s(({index:t,style:e,data:n})=>F(se,{index:t,...n,props:{...n.props,listItemWrapper:{style:{...e,...n.props?.listItemWrapper?.style},...n.props?.listItemWrapper}}}),"LocationListItemRenderer"),ue=ce((t,e)=>F("div",{ref:e,tabIndex:-1,...t})),pe=ce((t,e)=>F("ul",{ref:e,className:x("location-list-inner"),...t,style:{display:"block",...t.style}}));import{jsx as de}from"react/jsx-runtime";var At=s(({id:t,locations:e=[],onLocationSelected:n,maxHeight:r,item:o,itemSize:i=40,props:c})=>{let{ref:p}=Z(t),l=_e(()=>{let h=e.length*i;return r==null?Math.min(h,window.innerHeight*.8):Math.min(h,r)},[r,e,i]),a=Be(e);return $e(()=>{a.current=e},[e]),de("div",{...b({className:"location-list-wrapper",style:{height:"100vh",maxHeight:`${l}px`}},c?.wrapper),role:"listbox",id:t,children:de(j,{ref:p,className:x("location-list",c?.list?.className),height:l,width:"100%",layout:"vertical",itemSize:i,itemCount:e.length,outerElementType:ue,itemData:{locations:e,props:c,onClick:n,listId:t,item:o},innerElementType:pe,...c?.list??{},children:le})})},"LocationList");export{At as a};
@@ -1 +1 @@
1
- import{b,c as C}from"./chunk-IEYZX75Q.js";import{a as P,b as h}from"./chunk-LGZ25RFZ.js";import{a as u}from"./chunk-4SKZ3QEL.js";import{c as I,d as L,e as o}from"./chunk-YDVB7ZX2.js";import{a as s}from"./chunk-X43YWC4J.js";import{jsx as R,jsxs as W}from"react/jsx-runtime";var S=s(()=>W("svg",{...o({className:"icon--chevron-down",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[R("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),R("path",{d:"M6 9l6 6l6 -6"})]}),"ChevronDown");import{useMemo as O,useRef as k,useState as z}from"react";import{forwardRef as K}from"react";import{jsx as g}from"react/jsx-runtime";var N=s(({floor:r,index:t,current:e,props:p,onClick:i})=>{let{ref:l}=C("mappedin__floor-selector",t,()=>i?.());return g("li",{...o({role:"button",className:I("floor-selector-floor-item",e?"floor-selector-current-floor-in-list":""),ref:l},p?.listItem),onClick:i,id:`mappedin__floor-selector-${r.id}`,children:g("span",{...o({className:"floor-selector-floor-item-name"},p?.listItemName),children:r.name})})},"FloorSelectorListItem");import{jsx as y}from"react/jsx-runtime";var w=K(({floors:r,currentFloor:t,props:e,onFloorSelected:p},i)=>y("ul",{...o({className:"floor-selector-floors-list"},e?.list),ref:i,children:r?.map((l,n)=>y(N,{index:n,floor:l,current:l===t,onClick:()=>p?.(l),props:e},l.id))}));import{jsx as a,jsxs as x}from"react/jsx-runtime";var Lo=s(({currentFloor:r,floors:t=[],props:e,onFloorSelected:p,isOpen:i,onOpen:l})=>{let{value:n,onChange:f}=P({value:i,defaultValue:i??!1,onChange:l}),{ref:H}=u("isOpen",n),m=k(null);h(m,()=>{n&&(f(!1),m.current?.blur())});let F=k(null),{ref:M,activeItemId:A}=b("mappedin__floor-selector",{itemCount:t.length,resetActiveItemOnBlur:!0}),{ref:T}=u("currentFloorId",r?.id??"none"),{ref:E}=u("highlightedFloorId",A??"none"),D=O(()=>[...t].sort((c,U)=>U.elevation-c.elevation),[t]),[v,_]=z(null),B=O(()=>v==null?0:n?v.clientHeight:0,[v,n]);return x("div",{...o({className:"floor-selector-wrapper",ref:L(m,M,H,T,E),tabIndex:0,onFocus:s(c=>{c.target===m.current&&c.relatedTarget!==F.current&&f(!0)},"onFocus")},e?.wrapper),children:[x("button",{...o({className:"floor-selector-button",ref:F,onClick:s(()=>{f(!n),m.current?.focus()},"onClick"),tabIndex:-1},e?.button),children:[a("span",{...o({className:"floor-selector-current-floor"},e?.currentName),children:r?.name??t[0]?.name??""}),a("div",{...o({className:"floor-selector-chevron"},e?.chevron),children:a(S,{})})]}),a("div",{...o({className:"floor-selector-list-wrapper",style:{height:"100vh",maxHeight:B}},e?.listWrapper),children:n&&a(w,{ref:_,floors:D,currentFloor:r,props:e,onFloorSelected:c=>{f(!1),p?.(c)}})})]})},"FloorSelector");export{Lo as a};
1
+ import{b,c as C}from"./chunk-PJOR2TMA.js";import{a as P,b as h}from"./chunk-MP52FEJM.js";import{a as u}from"./chunk-WRVS2PT7.js";import{c as I,d as L,e as o}from"./chunk-OPQPD6WC.js";import{a as s}from"./chunk-3KWUAHRM.js";import{jsx as R,jsxs as W}from"react/jsx-runtime";var S=s(()=>W("svg",{...o({className:"icon--chevron-down",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[R("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),R("path",{d:"M6 9l6 6l6 -6"})]}),"ChevronDown");import{useMemo as O,useRef as k,useState as z}from"react";import{forwardRef as K}from"react";import{jsx as g}from"react/jsx-runtime";var N=s(({floor:r,index:t,current:e,props:p,onClick:i})=>{let{ref:l}=C("mappedin__floor-selector",t,()=>i?.());return g("li",{...o({role:"button",className:I("floor-selector-floor-item",e?"floor-selector-current-floor-in-list":""),ref:l},p?.listItem),onClick:i,id:`mappedin__floor-selector-${r.id}`,children:g("span",{...o({className:"floor-selector-floor-item-name"},p?.listItemName),children:r.name})})},"FloorSelectorListItem");import{jsx as y}from"react/jsx-runtime";var w=K(({floors:r,currentFloor:t,props:e,onFloorSelected:p},i)=>y("ul",{...o({className:"floor-selector-floors-list"},e?.list),ref:i,children:r?.map((l,n)=>y(N,{index:n,floor:l,current:l===t,onClick:()=>p?.(l),props:e},l.id))}));import{jsx as a,jsxs as x}from"react/jsx-runtime";var Lo=s(({currentFloor:r,floors:t=[],props:e,onFloorSelected:p,isOpen:i,onOpen:l})=>{let{value:n,onChange:f}=P({value:i,defaultValue:i??!1,onChange:l}),{ref:H}=u("isOpen",n),m=k(null);h(m,()=>{n&&(f(!1),m.current?.blur())});let F=k(null),{ref:M,activeItemId:A}=b("mappedin__floor-selector",{itemCount:t.length,resetActiveItemOnBlur:!0}),{ref:T}=u("currentFloorId",r?.id??"none"),{ref:E}=u("highlightedFloorId",A??"none"),D=O(()=>[...t].sort((c,U)=>U.elevation-c.elevation),[t]),[v,_]=z(null),B=O(()=>v==null?0:n?v.clientHeight:0,[v,n]);return x("div",{...o({className:"floor-selector-wrapper",ref:L(m,M,H,T,E),tabIndex:0,onFocus:s(c=>{c.target===m.current&&c.relatedTarget!==F.current&&f(!0)},"onFocus")},e?.wrapper),children:[x("button",{...o({className:"floor-selector-button",ref:F,onClick:s(()=>{f(!n),m.current?.focus()},"onClick"),tabIndex:-1},e?.button),children:[a("span",{...o({className:"floor-selector-current-floor"},e?.currentName),children:r?.name??t[0]?.name??""}),a("div",{...o({className:"floor-selector-chevron"},e?.chevron),children:a(S,{})})]}),a("div",{...o({className:"floor-selector-list-wrapper",style:{height:"100vh",maxHeight:B}},e?.listWrapper),children:n&&a(w,{ref:_,floors:D,currentFloor:r,props:e,onFloorSelected:c=>{f(!1),p?.(c)}})})]})},"FloorSelector");export{Lo as a};
@@ -1 +1 @@
1
- import{b as o}from"./chunk-YDVB7ZX2.js";import{a as s}from"./chunk-X43YWC4J.js";import{useEffect as u,useState as f}from"react";var n=s(e=>{let r=e.charAt(0).toUpperCase(),t=e.slice(1);return`${o}${r}${t}`},"dataAttribute");var T=s((e,r)=>{let[t,i]=f(null);return u(()=>(t!=null&&(t.dataset[n(e)]=r.toString()),()=>{t!=null&&delete t.dataset[n(e)]}),[t,r]),{ref:i}},"useDataAttribute");export{T as a};
1
+ import{b as o}from"./chunk-OPQPD6WC.js";import{a as s}from"./chunk-3KWUAHRM.js";import{useEffect as u,useState as f}from"react";var n=s(e=>{let r=e.charAt(0).toUpperCase(),t=e.slice(1);return`${o}${r}${t}`},"dataAttribute");var T=s((e,r)=>{let[t,i]=f(null);return u(()=>(t!=null&&(t.dataset[n(e)]=r.toString()),()=>{t!=null&&delete t.dataset[n(e)]}),[t,r]),{ref:i}},"useDataAttribute");export{T as a};
@@ -1 +1 @@
1
- import{a as d,b as g}from"./chunk-LGZ25RFZ.js";import{a as v}from"./chunk-4SKZ3QEL.js";import{c as s,d as f,e as o}from"./chunk-YDVB7ZX2.js";import{a as e}from"./chunk-X43YWC4J.js";import{jsx as c,jsxs as B}from"react/jsx-runtime";var b=e(()=>B("svg",{...o({className:"icon--magnifying-glass",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),c("path",{d:"M21 21l-6 -6"})]}),"MagnifyingGlass");import{useRef as k}from"react";import{jsx as l,jsxs as w}from"react/jsx-runtime";var C=e(()=>w("svg",{...o({className:"icon--close",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l("path",{d:"M18 6l-12 12"}),l("path",{d:"M6 6l12 12"})]}),"Close");import{jsx as n,jsxs as H}from"react/jsx-runtime";var Y=e(({props:r,value:I,onChange:M,placeholder:R,searchIcon:p,closeIcon:u})=>{let t=k(null),m=k(null),N=p===void 0?n(b,{}):p,P=u===void 0?n(C,{}):u,{value:a,onChange:h}=d({value:I,onChange:M,defaultValue:""});g(m,()=>{t.current?.blur()});let{ref:L}=v("searchBarValue",a);return H("div",{...o({className:"search-bar-wrapper",ref:f(m,L)},r?.wrapper),children:[n("input",{...o({name:"mappedin-search-bar",className:"search-bar-input",ref:t,onChange:e(x=>h(x.target.value),"onChange"),type:"search",role:"searchbox",placeholder:R},r?.input),value:a}),n("button",{...o({className:s("search-bar-icon","search-icon"),onClick:e(()=>{t.current?.focus()},"onClick"),tabIndex:-1},r?.searchIcon),children:N}),n("button",{...o({className:s("search-bar-icon","clear-icon"),onClick:e(()=>{h(""),t.current?.focus()},"onClick"),tabIndex:a.length>0?0:-1},r?.clearIcon),children:P})]})},"SearchBar");export{Y as a};
1
+ import{a as d,b as g}from"./chunk-MP52FEJM.js";import{a as v}from"./chunk-WRVS2PT7.js";import{c as s,d as f,e as o}from"./chunk-OPQPD6WC.js";import{a as e}from"./chunk-3KWUAHRM.js";import{jsx as c,jsxs as B}from"react/jsx-runtime";var b=e(()=>B("svg",{...o({className:"icon--magnifying-glass",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),c("path",{d:"M21 21l-6 -6"})]}),"MagnifyingGlass");import{useRef as k}from"react";import{jsx as l,jsxs as w}from"react/jsx-runtime";var C=e(()=>w("svg",{...o({className:"icon--close",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),children:[l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l("path",{d:"M18 6l-12 12"}),l("path",{d:"M6 6l12 12"})]}),"Close");import{jsx as n,jsxs as H}from"react/jsx-runtime";var Y=e(({props:r,value:I,onChange:M,placeholder:R,searchIcon:p,closeIcon:u})=>{let t=k(null),m=k(null),N=p===void 0?n(b,{}):p,P=u===void 0?n(C,{}):u,{value:a,onChange:h}=d({value:I,onChange:M,defaultValue:""});g(m,()=>{t.current?.blur()});let{ref:L}=v("searchBarValue",a);return H("div",{...o({className:"search-bar-wrapper",ref:f(m,L)},r?.wrapper),children:[n("input",{...o({name:"mappedin-search-bar",className:"search-bar-input",ref:t,onChange:e(x=>h(x.target.value),"onChange"),type:"search",role:"searchbox",placeholder:R},r?.input),value:a}),n("button",{...o({className:s("search-bar-icon","search-icon"),onClick:e(()=>{t.current?.focus()},"onClick"),tabIndex:-1},r?.searchIcon),children:N}),n("button",{...o({className:s("search-bar-icon","clear-icon"),onClick:e(()=>{h(""),t.current?.focus()},"onClick"),tabIndex:a.length>0?0:-1},r?.clearIcon),children:P})]})},"SearchBar");export{Y as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-EPAEPOEX.js";import"../../chunk-IEYZX75Q.js";import"../../chunk-LGZ25RFZ.js";import"../../chunk-4SKZ3QEL.js";import"../../chunk-YDVB7ZX2.js";import"../../chunk-X43YWC4J.js";export{a as FloorSelector};
1
+ import{a}from"../../chunk-WRKEU3KE.js";import"../../chunk-PJOR2TMA.js";import"../../chunk-MP52FEJM.js";import"../../chunk-WRVS2PT7.js";import"../../chunk-OPQPD6WC.js";import"../../chunk-3KWUAHRM.js";export{a as FloorSelector};
@@ -1 +1 @@
1
- import{a}from"../../chunk-KENJWNVT.js";import"../../chunk-IEYZX75Q.js";import"../../chunk-4SKZ3QEL.js";import"../../chunk-YDVB7ZX2.js";import"../../chunk-X43YWC4J.js";export{a as LocationList};
1
+ import{a}from"../../chunk-PWFHM65F.js";import"../../chunk-PJOR2TMA.js";import"../../chunk-WRVS2PT7.js";import"../../chunk-OPQPD6WC.js";import"../../chunk-3KWUAHRM.js";export{a as LocationList};
@@ -1 +1 @@
1
- import{a}from"../../chunk-NP4LRN77.js";import"../../chunk-KENJWNVT.js";import"../../chunk-IEYZX75Q.js";import"../../chunk-KUJLMD6U.js";import"../../chunk-LGZ25RFZ.js";import"../../chunk-4SKZ3QEL.js";import"../../chunk-YDVB7ZX2.js";import"../../chunk-X43YWC4J.js";export{a as Search};
1
+ import{a}from"../../chunk-KYMDB4FC.js";import"../../chunk-PWFHM65F.js";import"../../chunk-PJOR2TMA.js";import"../../chunk-YYDAKPSD.js";import"../../chunk-MP52FEJM.js";import"../../chunk-WRVS2PT7.js";import"../../chunk-OPQPD6WC.js";import"../../chunk-3KWUAHRM.js";export{a as Search};
@@ -1 +1 @@
1
- import{a}from"../../chunk-KUJLMD6U.js";import"../../chunk-LGZ25RFZ.js";import"../../chunk-4SKZ3QEL.js";import"../../chunk-YDVB7ZX2.js";import"../../chunk-X43YWC4J.js";export{a as SearchBar};
1
+ import{a}from"../../chunk-YYDAKPSD.js";import"../../chunk-MP52FEJM.js";import"../../chunk-WRVS2PT7.js";import"../../chunk-OPQPD6WC.js";import"../../chunk-3KWUAHRM.js";export{a as SearchBar};
@@ -1 +1 @@
1
- import{a}from"../../chunk-VI24V4MH.js";import"../../chunk-YDVB7ZX2.js";import"../../chunk-X43YWC4J.js";export{a as ZoomControls};
1
+ import{a}from"../../chunk-NJFHEX7P.js";import"../../chunk-OPQPD6WC.js";import"../../chunk-3KWUAHRM.js";export{a as ZoomControls};
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import{a as x}from"./chunk-VI24V4MH.js";import{a as t}from"./chunk-EPAEPOEX.js";import{a as p}from"./chunk-NP4LRN77.js";import{a as m}from"./chunk-KENJWNVT.js";import{b as r,c as e,d as f}from"./chunk-IEYZX75Q.js";import{a as o}from"./chunk-KUJLMD6U.js";import"./chunk-LGZ25RFZ.js";import"./chunk-4SKZ3QEL.js";import"./chunk-YDVB7ZX2.js";import"./chunk-X43YWC4J.js";export{t as FloorSelector,m as LocationList,p as Search,o as SearchBar,x as ZoomControls,r as useKeyboardListController,e as useKeyboardListItem,f as useKeyboardVirtualList};
1
+ import{a as x}from"./chunk-NJFHEX7P.js";import{a as t}from"./chunk-WRKEU3KE.js";import{a as p}from"./chunk-KYMDB4FC.js";import{a as m}from"./chunk-PWFHM65F.js";import{b as r,c as e,d as f}from"./chunk-PJOR2TMA.js";import{a as o}from"./chunk-YYDAKPSD.js";import"./chunk-MP52FEJM.js";import"./chunk-WRVS2PT7.js";import"./chunk-OPQPD6WC.js";import"./chunk-3KWUAHRM.js";export{t as FloorSelector,m as LocationList,p as Search,o as SearchBar,x as ZoomControls,r as useKeyboardListController,e as useKeyboardListItem,f as useKeyboardVirtualList};
@@ -1 +1 @@
1
- import"../chunk-IIQHZPWU.js";import"../chunk-X43YWC4J.js";
1
+ import"../chunk-IIQHZPWU.js";import"../chunk-3KWUAHRM.js";
@@ -1 +1 @@
1
- import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-X43YWC4J.js";
1
+ import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-3KWUAHRM.js";
@@ -1 +1 @@
1
- import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-X43YWC4J.js";
1
+ import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-3KWUAHRM.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/react-ui",
3
- "version": "6.20.0-beta.0",
3
+ "version": "6.21.1-beta.0",
4
4
  "homepage": "https://developer.mappedin.com/",
5
5
  "private": false,
6
6
  "main": "lib/esm/index.js",
@@ -54,7 +54,7 @@
54
54
  "peerDependencies": {
55
55
  "react": ">=16.8.0",
56
56
  "react-dom": ">=16.8.0",
57
- "@mappedin/mappedin-js": "^6.20.0"
57
+ "@mappedin/mappedin-js": "^6.21.1"
58
58
  },
59
59
  "devDependencies": {},
60
60
  "volta": {