@mappedin/react-ui 6.17.0-beta.0 → 6.17.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
- import{a as i,b as R,c}from"./chunk-CDDMBWBN.js";var f="mappedin__",l="".concat(f,"keyboard-focus"),u="mappedin";var r=c((...s)=>s.filter(t=>t!=null).filter(t=>t!=="").map(t=>t.trim()).map(t=>t.startsWith(f)?t:"".concat(f).concat(t)).join(" "),"classNames");var T=c((...s)=>t=>{s.filter(e=>e!=null).forEach(e=>{typeof e=="function"?e(t):e&&(e.current=t)})},"combineRefs");var N=c((s,t)=>{if(!t&&!s)return{};let e=R(i({},s),{className:r(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]=T(e[n],o):typeof e[n]=="object"&&typeof o=="object"?e[n]=i(i({},e[n]),o):typeof e[n]=="function"&&typeof o=="function"?e[n]=(...m)=>{s[n](...m),o(...m)}:e[n]=o}),e},"componentProps");export{l as a,u as b,r as c,T as d,N as e};
1
+ import{a as i,b as R,c}from"./chunk-QBYV32KA.js";var f="mappedin__",l="".concat(f,"keyboard-focus"),u="mappedin";var r=c((...s)=>s.filter(t=>t!=null).filter(t=>t!=="").map(t=>t.trim()).map(t=>t.startsWith(f)?t:"".concat(f).concat(t)).join(" "),"classNames");var T=c((...s)=>t=>{s.filter(e=>e!=null).forEach(e=>{typeof e=="function"?e(t):e&&(e.current=t)})},"combineRefs");var N=c((s,t)=>{if(!t&&!s)return{};let e=R(i({},s),{className:r(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]=T(e[n],o):typeof e[n]=="object"&&typeof o=="object"?e[n]=i(i({},e[n]),o):typeof e[n]=="function"&&typeof o=="function"?e[n]=(...m)=>{s[n](...m),o(...m)}:e[n]=o}),e},"componentProps");export{l as a,u as b,r as c,T as d,N as e};
@@ -1 +1 @@
1
- import{c as m,e as r}from"./chunk-URJNJOSC.js";import{a as t,b as n,c as e}from"./chunk-CDDMBWBN.js";import{jsx as c,jsxs as z}from"react/jsx-runtime";var u=e(()=>z("svg",n(t({},r({className:"icon--minus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c("path",{d:"M5 12l14 0"})]})),"Minus");import{jsx as l,jsxs as b}from"react/jsx-runtime";var a=e(()=>b("svg",n(t({},r({className:"icon--plus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l("path",{d:"M12 5l0 14"}),l("path",{d:"M5 12l14 0"})]})),"Plus");import{jsx as s,jsxs as f}from"react/jsx-runtime";var O=e(({onZoomIn:d,onZoomOut:v,props:o})=>f("div",n(t({},r({className:"zoom-controls-wrapper"},o==null?void 0:o.wrapper)),{children:[s("button",n(t({},r({className:m("zoom-controls-button","zoom-controls-zoom-in"),onClick:d,tabIndex:0},o==null?void 0:o.zoomIn)),{children:s(a,{})})),s("button",n(t({},r({className:m("zoom-controls-button","zoom-controls-zoom-out"),onClick:v,tabIndex:0},o==null?void 0:o.zoomOut)),{children:s(u,{})}))]})),"ZoomControls");export{O as a};
1
+ import{c as m,e as r}from"./chunk-2DQ6S5BX.js";import{a as t,b as n,c as e}from"./chunk-QBYV32KA.js";import{jsx as c,jsxs as z}from"react/jsx-runtime";var u=e(()=>z("svg",n(t({},r({className:"icon--minus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),c("path",{d:"M5 12l14 0"})]})),"Minus");import{jsx as l,jsxs as b}from"react/jsx-runtime";var a=e(()=>b("svg",n(t({},r({className:"icon--plus",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l("path",{d:"M12 5l0 14"}),l("path",{d:"M5 12l14 0"})]})),"Plus");import{jsx as s,jsxs as f}from"react/jsx-runtime";var O=e(({onZoomIn:d,onZoomOut:v,props:o})=>f("div",n(t({},r({className:"zoom-controls-wrapper"},o==null?void 0:o.wrapper)),{children:[s("button",n(t({},r({className:m("zoom-controls-button","zoom-controls-zoom-in"),onClick:d,tabIndex:0},o==null?void 0:o.zoomIn)),{children:s(a,{})})),s("button",n(t({},r({className:m("zoom-controls-button","zoom-controls-zoom-out"),onClick:v,tabIndex:0},o==null?void 0:o.zoomOut)),{children:s(u,{})}))]})),"ZoomControls");export{O as a};
@@ -1 +1 @@
1
- import{a as te}from"./chunk-URJNJOSC.js";import{c as a,e as L,f as E}from"./chunk-CDDMBWBN.js";import{useState as B,useEffect as N,useCallback as ie}from"react";var q=class q{constructor(){L(this,"_subscribers",{});L(this,"_abortController",new AbortController);L(this,"_cleanupFunctions",[])}get signal(){return this._abortController.signal}publish(e,r){!this._subscribers||!this._subscribers[e]||this.signal.aborted||this._subscribers[e].forEach(function(n){typeof n=="function"&&n(r)})}onAbort(e){this.signal.addEventListener("abort",()=>e(),{once:!0})}on(e,r,n){let i=n==null?void 0:n.signal;if(i!=null&&i.aborted||this._abortController&&this._abortController.signal.aborted)return()=>{};this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(r);let u=a(()=>this.off(e,r),"cleanup");return i&&i.addEventListener("abort",u,{once:!0}),this._cleanupFunctions.push(u),u}off(e,r){if(!this._subscribers||this._subscribers[e]==null||this.signal.aborted)return;let n=this._subscribers[e].indexOf(r);n!==-1&&this._subscribers[e].splice(n,1)}destroy(){if(!this.signal.aborted){for(let e of this._cleanupFunctions)e();this._cleanupFunctions=[],this._subscribers={},this._abortController.abort()}}};a(q,"PubSub");var z=q;import{useState as Le,useCallback as G,useEffect as Re,useRef as _e,useMemo as re}from"react";var D=class D{static getInstance(){return this.instance==null&&(this.instance=new z),this.instance}static reset(){var e;(e=this.instance)==null||e.destroy(),this.instance=new z}};a(D,"AccessibleListPubSubSingleton"),L(D,"instance",null);var C=D,ne=a((t="vertical")=>{let e=re(()=>{let n=[];return(t==="horizontal"||t==="both")&&n.push("ArrowRight"),(t==="vertical"||t==="both")&&n.push("ArrowDown"),n},[t]),r=re(()=>{let n=[];return(t==="horizontal"||t==="both")&&n.push("ArrowLeft"),(t==="vertical"||t==="both")&&n.push("ArrowUp"),n},[t]);return{incrementKeys:e,decrementKeys:r}},"useNavigationKeys"),oe=a(t=>{let[e,r]=Le(null),n=_e(null),i=G(h=>{n.current=typeof h=="function"?h(n.current):h,r(h)},[r]),u=G(()=>{i(h=>{if(h==null)return 0;let p=h+1;return t!=null&&t>0&&(p=p%t),p})},[t]),l=G(()=>{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:n,increment:u,decrement:l,reset:d}},"useListIndex");var ut=a((t,e)=>{let[r,n]=B(null),{activeItemIndex:i,activeItemIndexRef:u,increment:l,decrement:d,reset:h}=oe(e==null?void 0:e.itemCount),{incrementKeys:p,decrementKeys:m}=ne(e==null?void 0:e.direction),S=t!=null&&t!=="",[x,w]=B(!1);N(()=>{if(r==null)return;let f=a(()=>{w(!0)},"handleFocus"),v=a(()=>{w(!1)},"handleBlur");return r.addEventListener("focus",f),r.addEventListener("blur",v),()=>{r.removeEventListener("focus",f),r.removeEventListener("blur",v)}},[r]);let I=ie(f=>{var v;S&&(p.includes(f.key)?l():m.includes(f.key)?d():f.key==="Enter"&&u.current!=null&&C.getInstance().publish("selectListItem",{listId:t,index:u.current,blur:(v=e==null?void 0:e.blurOnItemSelect)!=null?v:!0}))},[l,d,p,m,t,S,e==null?void 0:e.blurOnItemSelect]);N(()=>{if(r!=null)return r.addEventListener("keyup",I),()=>{r.removeEventListener("keyup",I)}},[r,I]),N(()=>{S&&(x?C.getInstance().publish("focusListItem",{listId:t,index:i}):(C.getInstance().publish("focusListItem",{listId:t,index:null}),e!=null&&e.resetActiveItemOnBlur&&h()))},[x,t,i,S,e==null?void 0:e.resetActiveItemOnBlur]);let[o,s]=B(null),c=ie(f=>{t==null||t===""||t!==f.listId||(s(f.id),r==null||r.setAttribute("aria-activedescendant",f.id))},[t,r]);return N(()=>(C.getInstance().on("listItemFocused",c),()=>{C.getInstance().off("listItemFocused",c)}),[c]),N(()=>{i==null&&(s(null),r==null||r.setAttribute("aria-activedescendant",""))},[i,r]),{ref:n,activeItemId:o,activeItemIndex:i}},"useKeyboardListController");import{useRef as se,useState as We,useEffect as P,useCallback as le}from"react";var Ae="[MappedinJS]";function ze(t="",{prefix:e=Ae}={}){let r="".concat(e).concat(t?"-".concat(t):""),n=a((i,u)=>{if(typeof window<"u"&&window.rnDebug){let l=u.map(d=>d instanceof Error&&d.stack?"".concat(d.message,"\n").concat(d.stack):d);window.rnDebug("".concat(t," ").concat(i,": ").concat(l.join(" ")))}},"rnDebug");return{logState:E.env.NODE_ENV==="test"?3:0,log(...i){this.logState<=0&&(console.log(r,...i),n("log",i))},warn(...i){this.logState<=1&&(console.warn(r,...i),n("warn",i))},error(...i){this.logState<=2&&(console.error(r,...i),n("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,r,n)=>{let i=se(null),u=se(r);P(()=>{u.current=r},[r]);let[l,d]=We(!1),h=le(m=>{var S,x,w,I,o;t==null||t===""||t!==m.listId||((S=i.current)==null?void 0:S.id)==null||(d(m.index===e),(w=i.current)==null||w.classList.toggle((x=n==null?void 0:n.activeClassName)!=null?x:te,m.index===e),(I=i.current)==null||I.setAttribute("aria-selected",m.index===e?"true":"false"),m.index===e&&C.getInstance().publish("listItemFocused",{listId:t,id:(o=i.current)==null?void 0:o.id}))},[t,e,n==null?void 0:n.activeClassName]),p=le(m=>{var S;t==null||t===""||t!==m.listId||m.index!==e||((S=u.current)==null||S.call(u),m.blur&&document.activeElement instanceof HTMLElement&&document.activeElement.blur())},[t,e]);return P(()=>{t==null||t===""||C.getInstance().publish("listItemMounted",{listId:t,index:e})},[t,e]),P(()=>{if(!(t==null||t===""))return C.getInstance().on("focusListItem",h),C.getInstance().on("selectListItem",p),()=>{C.getInstance().off("focusListItem",h),C.getInstance().off("selectListItem",p)}},[t,h,p]),P(()=>{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="".concat(t,"-").concat(e))},[t,i]),{isActive:l,ref:i}},"useKeyboardListItem");import{useRef as we,useEffect as Je}from"react";function V(){return V=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},V.apply(null,arguments)}a(V,"_extends");function Y(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(Y,"_assertThisInitialized");function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},k(t,e)}a(k,"_setPrototypeOf");function ue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,k(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 r=0;r<t.length;r++)if(!Fe(t[r],e[r]))return!1;return!0}a(De,"areInputsEqual");function Pe(t,e){e===void 0&&(e=De);var r,n=[],i,u=!1;function l(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return u&&r===this&&e(d,n)||(i=t.apply(this,d),u=!0,r=this,n=d),i}return a(l,"memoized"),l}a(Pe,"memoizeOne");var H=Pe;import{createElement as j,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 r=de();function n(){de()-r>=e?t.call(null):i.id=requestAnimationFrame(n)}a(n,"tick");var i={id:requestAnimationFrame(n)};return i}a(He,"requestTimeout");var Z=-1;function he(t){if(t===void 0&&(t=!1),Z===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),Z=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Z}a(he,"getScrollbarSize");var R=null;function me(t){if(t===void 0&&(t=!1),R===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}a(me,"getRTLOffsetType");var Ue=null,$e=null,Ke=null;E.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,r){return e},"defaultItemKey"),U=null,$=null;E.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(U=new WeakSet,$=new WeakSet);function ve(t){var e,r=t.getItemOffset,n=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(S){ue(x,S);function x(I){var o;return o=S.call(this,I)||this,o._instanceProps=h(o.props,Y(o)),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:Y(o),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof o.props.initialScrollOffset=="number"?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=H(function(s,c,f,v){return o.props.onItemsRendered({overscanStartIndex:s,overscanStopIndex:c,visibleStartIndex:f,visibleStopIndex:v})}),o._callOnScroll=void 0,o._callOnScroll=H(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),b;if(g.hasOwnProperty(s))b=g[s];else{var y=r(o.props,s,o._instanceProps),T=i(o.props,s,o._instanceProps),O=f==="horizontal"||M==="horizontal",W=f==="rtl",F=O?y:0;g[s]=b={position:"absolute",left:W?void 0:F,right:W?F:void 0,top:O?0:y,height:O?"100%":T,width:O?T:"100%"}}return b},o._getItemStyleCache=void 0,o._getItemStyleCache=H(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 b=o.props.direction,y=v;if(b==="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 b=Math.max(0,Math.min(M,v-f));return{isScrolling:!0,scrollDirection:g.scrollOffset<b?"forward":"backward",scrollOffset:b,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(x,"List"),x.getDerivedStateFromProps=a(function(o,s){return Be(o,s),m(o),null},"getDerivedStateFromProps");var w=x.prototype;return w.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"),w.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 b=this._outerRef;v==="vertical"?g=b.scrollWidth>b.clientWidth?he():0:g=b.scrollHeight>b.clientHeight?he():0}this.scrollTo(u(this.props,o,s,M,this._instanceProps,g))},"scrollToItem"),w.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"),w.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 b=g.clientWidth,y=g.scrollWidth;g.scrollLeft=y-b-v;break}else g.scrollLeft=v;else g.scrollTop=v}this._callPropsCallbacks()},"componentDidUpdate"),w.componentWillUnmount=a(function(){this._resetIsScrollingTimeoutId!==null&&fe(this._resetIsScrollingTimeoutId)},"componentWillUnmount"),w.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,b=o.innerTagName,y=o.itemCount,T=o.itemData,O=o.itemKey,W=O===void 0?Ge:O,F=o.layout,be=o.outerElementType,xe=o.outerTagName,Ce=o.style,Ee=o.useIsScrolling,Me=o.width,J=this.state.isScrolling,K=f==="horizontal"||F==="horizontal",ye=K?this._onScrollHorizontal:this._onScrollVertical,Q=this._getRangeToRender(),Te=Q[0],Oe=Q[1],X=[];if(y>0)for(var A=Te;A<=Oe;A++)X.push(j(s,{data:T,key:W(A,T),index:A,isScrolling:Ee?J:void 0,style:this._getItemStyle(A)}));var ee=n(this.props,this._instanceProps);return j(be||xe||"div",{className:c,onScroll:ye,ref:this._outerRefSetter,style:V({position:"relative",height:v,width:Me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:f},Ce)},j(g||b||"div",{children:X,ref:M,style:{height:K?"100%":ee,pointerEvents:J?"none":void 0,width:K?ee:"100%"}}))},"render"),w._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,b=g.scrollDirection,y=g.scrollOffset,T=g.scrollUpdateWasRequested;this._callOnScroll(b,y,T)}},"_callPropsCallbacks"),w._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 b=l(this.props,g,this._instanceProps),y=d(this.props,b,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,b-T),Math.max(0,Math.min(s-1,y+O)),b,y]},"_getRangeToRender"),x})(Ve),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}a(ve,"createListComponent");var Be=a(function(e,r){var n=e.children,i=e.direction,u=e.height,l=e.layout,d=e.innerTagName,h=e.outerTagName,p=e.width,m=r.instance;if(E.env.NODE_ENV!=="production"){(d!=null||h!=null)&&$&&!$.has(m)&&($.add(m),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var S=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":U&&!U.has(m)&&(U.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(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(S&&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(!S&&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,_=a(function(e,r,n){var i=e,u=i.itemSize,l=n.itemMetadataMap,d=n.lastMeasuredIndex;if(r>d){var h=0;if(d>=0){var p=l[d];h=p.offset+p.size}for(var m=d+1;m<=r;m++){var S=u(m);l[m]={offset:h,size:S},h+=S}n.lastMeasuredIndex=r}return l[r]},"getItemMetadata"),je=a(function(e,r,n){var i=r.itemMetadataMap,u=r.lastMeasuredIndex,l=u>0?i[u].offset:0;return l>=n?ge(e,r,u,0,n):Ze(e,r,Math.max(0,u),n)},"findNearestItem"),ge=a(function(e,r,n,i,u){for(;i<=n;){var l=i+Math.floor((n-i)/2),d=_(e,l,r).offset;if(d===u)return l;d<u?i=l+1:d>u&&(n=l-1)}return i>0?i-1:0},"findNearestItemBinarySearch"),Ze=a(function(e,r,n,i){for(var u=e.itemCount,l=1;n<u&&_(e,n,r).offset<i;)n+=l,l*=2;return ge(e,r,Math.min(n,u-1),Math.floor(n/2),i)},"findNearestItemExponentialSearch"),pe=a(function(e,r){var n=e.itemCount,i=r.itemMetadataMap,u=r.estimatedItemSize,l=r.lastMeasuredIndex,d=0;if(l>=n&&(l=n-1),l>=0){var h=i[l];d=h.offset+h.size}var p=n-l-1,m=p*u;return d+m},"getEstimatedTotalSize"),Ie=ve({getItemOffset:a(function(e,r,n){return _(e,r,n).offset},"getItemOffset"),getItemSize:a(function(e,r,n){return n.itemMetadataMap[r].size},"getItemSize"),getEstimatedTotalSize:pe,getOffsetForIndexAndAlignment:a(function(e,r,n,i,u,l){var d=e.direction,h=e.height,p=e.layout,m=e.width,S=d==="horizontal"||p==="horizontal",x=S?m:h,w=_(e,r,u),I=pe(e,u),o=Math.max(0,Math.min(I-x,w.offset)),s=Math.max(0,w.offset-x+w.size+l);switch(n==="smart"&&(i>=s-x&&i<=o+x?n="auto":n="center"),n){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,r,n){return je(e,n,r)},"getStartIndexForOffset"),getStopIndexForStartIndex:a(function(e,r,n,i){for(var u=e.direction,l=e.height,d=e.itemCount,h=e.layout,p=e.width,m=u==="horizontal"||h==="horizontal",S=m?p:l,x=_(e,r,i),w=n+S,I=x.offset+x.size,o=r;o<d-1&&I<w;)o++,I+=_(e,o,i).size;return o},"getStopIndexForStartIndex"),initInstanceProps:a(function(e,r){var n=e,i=n.estimatedItemSize,u={itemMetadataMap:{},estimatedItemSize:i||Ye,lastMeasuredIndex:-1};return r.resetAfterIndex=function(l,d){d===void 0&&(d=!0),u.lastMeasuredIndex=Math.min(u.lastMeasuredIndex,l-1),r._getItemStyleCache(-1),d&&r.forceUpdate()},u},"initInstanceProps"),shouldResetStyleCacheOnItemSizeChange:!1,validateProps:a(function(e){var r=e.itemSize;if(E.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))},"validateProps")});var Se=ve({getItemOffset:a(function(e,r){var n=e.itemSize;return r*n},"getItemOffset"),getItemSize:a(function(e,r){var n=e.itemSize;return n},"getItemSize"),getEstimatedTotalSize:a(function(e){var r=e.itemCount,n=e.itemSize;return n*r},"getEstimatedTotalSize"),getOffsetForIndexAndAlignment:a(function(e,r,n,i,u,l){var d=e.direction,h=e.height,p=e.itemCount,m=e.itemSize,S=e.layout,x=e.width,w=d==="horizontal"||S==="horizontal",I=w?x:h,o=Math.max(0,p*m-I),s=Math.min(o,r*m),c=Math.max(0,r*m-I+m+l);switch(n==="smart"&&(i>=c-I&&i<=s+I?n="auto":n="center"),n){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,r){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},"getStartIndexForOffset"),getStopIndexForStartIndex:a(function(e,r,n){var i=e.direction,u=e.height,l=e.itemCount,d=e.itemSize,h=e.layout,p=e.width,m=i==="horizontal"||h==="horizontal",S=r*d,x=m?p:u,w=Math.ceil((x+n-S)/d);return Math.max(0,Math.min(l-1,r+w-1))},"getStopIndexForStartIndex"),initInstanceProps:a(function(e){},"initInstanceProps"),shouldResetStyleCacheOnItemSizeChange:!0,validateProps:a(function(e){var r=e.itemSize;if(E.env.NODE_ENV!=="production"&&typeof r!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(r===null?"null":typeof r)+'" was specified.'))},"validateProps")});var rr=a((t,e)=>{let r=we(null),n=we(null),i=a(l=>{t==null||t===""||t!==l.listId||(n.current=l.index,!(r.current==null||l.index==null)&&(e!=null&&e.scrollFn?e.scrollFn(l.index):(r.current instanceof Ie||r.current instanceof Se)&&r.current.scrollToItem(l.index)))},"handleFocusListitem"),u=a(l=>{t==null||t===""||t!==l.listId||n.current!=null&&l.index===n.current&&C.getInstance().publish("focusListItem",{listId:t,index:l.index})},"handleListItemMounted");return Je(()=>{if(!(t==null||t===""))return C.getInstance().on("focusListItem",i),C.getInstance().on("listItemMounted",u),()=>{C.getInstance().off("focusListItem",i),C.getInstance().off("listItemMounted",u)}},[t,e==null?void 0:e.scrollFn]),{ref:r}},"useKeyboardVirtualList");export{Se as a,ut as b,wt as c,rr as d};
1
+ import{a as te}from"./chunk-2DQ6S5BX.js";import{c as a,e as L,f as E}from"./chunk-QBYV32KA.js";import{useState as B,useEffect as N,useCallback as ie}from"react";var q=class q{constructor(){L(this,"_subscribers",{});L(this,"_abortController",new AbortController);L(this,"_cleanupFunctions",[])}get signal(){return this._abortController.signal}publish(e,r){!this._subscribers||!this._subscribers[e]||this.signal.aborted||this._subscribers[e].forEach(function(n){typeof n=="function"&&n(r)})}onAbort(e){this.signal.addEventListener("abort",()=>e(),{once:!0})}on(e,r,n){let i=n==null?void 0:n.signal;if(i!=null&&i.aborted||this._abortController&&this._abortController.signal.aborted)return()=>{};this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(r);let u=a(()=>this.off(e,r),"cleanup");return i&&i.addEventListener("abort",u,{once:!0}),this._cleanupFunctions.push(u),u}off(e,r){if(!this._subscribers||this._subscribers[e]==null||this.signal.aborted)return;let n=this._subscribers[e].indexOf(r);n!==-1&&this._subscribers[e].splice(n,1)}destroy(){if(!this.signal.aborted){for(let e of this._cleanupFunctions)e();this._cleanupFunctions=[],this._subscribers={},this._abortController.abort()}}};a(q,"PubSub");var z=q;import{useState as Le,useCallback as G,useEffect as Re,useRef as _e,useMemo as re}from"react";var D=class D{static getInstance(){return this.instance==null&&(this.instance=new z),this.instance}static reset(){var e;(e=this.instance)==null||e.destroy(),this.instance=new z}};a(D,"AccessibleListPubSubSingleton"),L(D,"instance",null);var C=D,ne=a((t="vertical")=>{let e=re(()=>{let n=[];return(t==="horizontal"||t==="both")&&n.push("ArrowRight"),(t==="vertical"||t==="both")&&n.push("ArrowDown"),n},[t]),r=re(()=>{let n=[];return(t==="horizontal"||t==="both")&&n.push("ArrowLeft"),(t==="vertical"||t==="both")&&n.push("ArrowUp"),n},[t]);return{incrementKeys:e,decrementKeys:r}},"useNavigationKeys"),oe=a(t=>{let[e,r]=Le(null),n=_e(null),i=G(h=>{n.current=typeof h=="function"?h(n.current):h,r(h)},[r]),u=G(()=>{i(h=>{if(h==null)return 0;let p=h+1;return t!=null&&t>0&&(p=p%t),p})},[t]),l=G(()=>{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:n,increment:u,decrement:l,reset:d}},"useListIndex");var ut=a((t,e)=>{let[r,n]=B(null),{activeItemIndex:i,activeItemIndexRef:u,increment:l,decrement:d,reset:h}=oe(e==null?void 0:e.itemCount),{incrementKeys:p,decrementKeys:m}=ne(e==null?void 0:e.direction),S=t!=null&&t!=="",[x,w]=B(!1);N(()=>{if(r==null)return;let f=a(()=>{w(!0)},"handleFocus"),v=a(()=>{w(!1)},"handleBlur");return r.addEventListener("focus",f),r.addEventListener("blur",v),()=>{r.removeEventListener("focus",f),r.removeEventListener("blur",v)}},[r]);let I=ie(f=>{var v;S&&(p.includes(f.key)?l():m.includes(f.key)?d():f.key==="Enter"&&u.current!=null&&C.getInstance().publish("selectListItem",{listId:t,index:u.current,blur:(v=e==null?void 0:e.blurOnItemSelect)!=null?v:!0}))},[l,d,p,m,t,S,e==null?void 0:e.blurOnItemSelect]);N(()=>{if(r!=null)return r.addEventListener("keyup",I),()=>{r.removeEventListener("keyup",I)}},[r,I]),N(()=>{S&&(x?C.getInstance().publish("focusListItem",{listId:t,index:i}):(C.getInstance().publish("focusListItem",{listId:t,index:null}),e!=null&&e.resetActiveItemOnBlur&&h()))},[x,t,i,S,e==null?void 0:e.resetActiveItemOnBlur]);let[o,s]=B(null),c=ie(f=>{t==null||t===""||t!==f.listId||(s(f.id),r==null||r.setAttribute("aria-activedescendant",f.id))},[t,r]);return N(()=>(C.getInstance().on("listItemFocused",c),()=>{C.getInstance().off("listItemFocused",c)}),[c]),N(()=>{i==null&&(s(null),r==null||r.setAttribute("aria-activedescendant",""))},[i,r]),{ref:n,activeItemId:o,activeItemIndex:i}},"useKeyboardListController");import{useRef as se,useState as We,useEffect as P,useCallback as le}from"react";var Ae="[MappedinJS]";function ze(t="",{prefix:e=Ae}={}){let r="".concat(e).concat(t?"-".concat(t):""),n=a((i,u)=>{if(typeof window<"u"&&window.rnDebug){let l=u.map(d=>d instanceof Error&&d.stack?"".concat(d.message,"\n").concat(d.stack):d);window.rnDebug("".concat(t," ").concat(i,": ").concat(l.join(" ")))}},"rnDebug");return{logState:E.env.NODE_ENV==="test"?3:0,log(...i){this.logState<=0&&(console.log(r,...i),n("log",i))},warn(...i){this.logState<=1&&(console.warn(r,...i),n("warn",i))},error(...i){this.logState<=2&&(console.error(r,...i),n("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,r,n)=>{let i=se(null),u=se(r);P(()=>{u.current=r},[r]);let[l,d]=We(!1),h=le(m=>{var S,x,w,I,o;t==null||t===""||t!==m.listId||((S=i.current)==null?void 0:S.id)==null||(d(m.index===e),(w=i.current)==null||w.classList.toggle((x=n==null?void 0:n.activeClassName)!=null?x:te,m.index===e),(I=i.current)==null||I.setAttribute("aria-selected",m.index===e?"true":"false"),m.index===e&&C.getInstance().publish("listItemFocused",{listId:t,id:(o=i.current)==null?void 0:o.id}))},[t,e,n==null?void 0:n.activeClassName]),p=le(m=>{var S;t==null||t===""||t!==m.listId||m.index!==e||((S=u.current)==null||S.call(u),m.blur&&document.activeElement instanceof HTMLElement&&document.activeElement.blur())},[t,e]);return P(()=>{t==null||t===""||C.getInstance().publish("listItemMounted",{listId:t,index:e})},[t,e]),P(()=>{if(!(t==null||t===""))return C.getInstance().on("focusListItem",h),C.getInstance().on("selectListItem",p),()=>{C.getInstance().off("focusListItem",h),C.getInstance().off("selectListItem",p)}},[t,h,p]),P(()=>{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="".concat(t,"-").concat(e))},[t,i]),{isActive:l,ref:i}},"useKeyboardListItem");import{useRef as we,useEffect as Je}from"react";function V(){return V=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},V.apply(null,arguments)}a(V,"_extends");function Y(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}a(Y,"_assertThisInitialized");function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},k(t,e)}a(k,"_setPrototypeOf");function ue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,k(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 r=0;r<t.length;r++)if(!Fe(t[r],e[r]))return!1;return!0}a(De,"areInputsEqual");function Pe(t,e){e===void 0&&(e=De);var r,n=[],i,u=!1;function l(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return u&&r===this&&e(d,n)||(i=t.apply(this,d),u=!0,r=this,n=d),i}return a(l,"memoized"),l}a(Pe,"memoizeOne");var H=Pe;import{createElement as j,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 r=de();function n(){de()-r>=e?t.call(null):i.id=requestAnimationFrame(n)}a(n,"tick");var i={id:requestAnimationFrame(n)};return i}a(He,"requestTimeout");var Z=-1;function he(t){if(t===void 0&&(t=!1),Z===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),Z=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Z}a(he,"getScrollbarSize");var R=null;function me(t){if(t===void 0&&(t=!1),R===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}a(me,"getRTLOffsetType");var Ue=null,$e=null,Ke=null;E.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,r){return e},"defaultItemKey"),U=null,$=null;E.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(U=new WeakSet,$=new WeakSet);function ve(t){var e,r=t.getItemOffset,n=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(S){ue(x,S);function x(I){var o;return o=S.call(this,I)||this,o._instanceProps=h(o.props,Y(o)),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:Y(o),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof o.props.initialScrollOffset=="number"?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=H(function(s,c,f,v){return o.props.onItemsRendered({overscanStartIndex:s,overscanStopIndex:c,visibleStartIndex:f,visibleStopIndex:v})}),o._callOnScroll=void 0,o._callOnScroll=H(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),b;if(g.hasOwnProperty(s))b=g[s];else{var y=r(o.props,s,o._instanceProps),T=i(o.props,s,o._instanceProps),O=f==="horizontal"||M==="horizontal",W=f==="rtl",F=O?y:0;g[s]=b={position:"absolute",left:W?void 0:F,right:W?F:void 0,top:O?0:y,height:O?"100%":T,width:O?T:"100%"}}return b},o._getItemStyleCache=void 0,o._getItemStyleCache=H(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 b=o.props.direction,y=v;if(b==="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 b=Math.max(0,Math.min(M,v-f));return{isScrolling:!0,scrollDirection:g.scrollOffset<b?"forward":"backward",scrollOffset:b,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(x,"List"),x.getDerivedStateFromProps=a(function(o,s){return Be(o,s),m(o),null},"getDerivedStateFromProps");var w=x.prototype;return w.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"),w.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 b=this._outerRef;v==="vertical"?g=b.scrollWidth>b.clientWidth?he():0:g=b.scrollHeight>b.clientHeight?he():0}this.scrollTo(u(this.props,o,s,M,this._instanceProps,g))},"scrollToItem"),w.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"),w.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 b=g.clientWidth,y=g.scrollWidth;g.scrollLeft=y-b-v;break}else g.scrollLeft=v;else g.scrollTop=v}this._callPropsCallbacks()},"componentDidUpdate"),w.componentWillUnmount=a(function(){this._resetIsScrollingTimeoutId!==null&&fe(this._resetIsScrollingTimeoutId)},"componentWillUnmount"),w.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,b=o.innerTagName,y=o.itemCount,T=o.itemData,O=o.itemKey,W=O===void 0?Ge:O,F=o.layout,be=o.outerElementType,xe=o.outerTagName,Ce=o.style,Ee=o.useIsScrolling,Me=o.width,J=this.state.isScrolling,K=f==="horizontal"||F==="horizontal",ye=K?this._onScrollHorizontal:this._onScrollVertical,Q=this._getRangeToRender(),Te=Q[0],Oe=Q[1],X=[];if(y>0)for(var A=Te;A<=Oe;A++)X.push(j(s,{data:T,key:W(A,T),index:A,isScrolling:Ee?J:void 0,style:this._getItemStyle(A)}));var ee=n(this.props,this._instanceProps);return j(be||xe||"div",{className:c,onScroll:ye,ref:this._outerRefSetter,style:V({position:"relative",height:v,width:Me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:f},Ce)},j(g||b||"div",{children:X,ref:M,style:{height:K?"100%":ee,pointerEvents:J?"none":void 0,width:K?ee:"100%"}}))},"render"),w._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,b=g.scrollDirection,y=g.scrollOffset,T=g.scrollUpdateWasRequested;this._callOnScroll(b,y,T)}},"_callPropsCallbacks"),w._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 b=l(this.props,g,this._instanceProps),y=d(this.props,b,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,b-T),Math.max(0,Math.min(s-1,y+O)),b,y]},"_getRangeToRender"),x})(Ve),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}a(ve,"createListComponent");var Be=a(function(e,r){var n=e.children,i=e.direction,u=e.height,l=e.layout,d=e.innerTagName,h=e.outerTagName,p=e.width,m=r.instance;if(E.env.NODE_ENV!=="production"){(d!=null||h!=null)&&$&&!$.has(m)&&($.add(m),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var S=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":U&&!U.has(m)&&(U.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(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(S&&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(!S&&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,_=a(function(e,r,n){var i=e,u=i.itemSize,l=n.itemMetadataMap,d=n.lastMeasuredIndex;if(r>d){var h=0;if(d>=0){var p=l[d];h=p.offset+p.size}for(var m=d+1;m<=r;m++){var S=u(m);l[m]={offset:h,size:S},h+=S}n.lastMeasuredIndex=r}return l[r]},"getItemMetadata"),je=a(function(e,r,n){var i=r.itemMetadataMap,u=r.lastMeasuredIndex,l=u>0?i[u].offset:0;return l>=n?ge(e,r,u,0,n):Ze(e,r,Math.max(0,u),n)},"findNearestItem"),ge=a(function(e,r,n,i,u){for(;i<=n;){var l=i+Math.floor((n-i)/2),d=_(e,l,r).offset;if(d===u)return l;d<u?i=l+1:d>u&&(n=l-1)}return i>0?i-1:0},"findNearestItemBinarySearch"),Ze=a(function(e,r,n,i){for(var u=e.itemCount,l=1;n<u&&_(e,n,r).offset<i;)n+=l,l*=2;return ge(e,r,Math.min(n,u-1),Math.floor(n/2),i)},"findNearestItemExponentialSearch"),pe=a(function(e,r){var n=e.itemCount,i=r.itemMetadataMap,u=r.estimatedItemSize,l=r.lastMeasuredIndex,d=0;if(l>=n&&(l=n-1),l>=0){var h=i[l];d=h.offset+h.size}var p=n-l-1,m=p*u;return d+m},"getEstimatedTotalSize"),Ie=ve({getItemOffset:a(function(e,r,n){return _(e,r,n).offset},"getItemOffset"),getItemSize:a(function(e,r,n){return n.itemMetadataMap[r].size},"getItemSize"),getEstimatedTotalSize:pe,getOffsetForIndexAndAlignment:a(function(e,r,n,i,u,l){var d=e.direction,h=e.height,p=e.layout,m=e.width,S=d==="horizontal"||p==="horizontal",x=S?m:h,w=_(e,r,u),I=pe(e,u),o=Math.max(0,Math.min(I-x,w.offset)),s=Math.max(0,w.offset-x+w.size+l);switch(n==="smart"&&(i>=s-x&&i<=o+x?n="auto":n="center"),n){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,r,n){return je(e,n,r)},"getStartIndexForOffset"),getStopIndexForStartIndex:a(function(e,r,n,i){for(var u=e.direction,l=e.height,d=e.itemCount,h=e.layout,p=e.width,m=u==="horizontal"||h==="horizontal",S=m?p:l,x=_(e,r,i),w=n+S,I=x.offset+x.size,o=r;o<d-1&&I<w;)o++,I+=_(e,o,i).size;return o},"getStopIndexForStartIndex"),initInstanceProps:a(function(e,r){var n=e,i=n.estimatedItemSize,u={itemMetadataMap:{},estimatedItemSize:i||Ye,lastMeasuredIndex:-1};return r.resetAfterIndex=function(l,d){d===void 0&&(d=!0),u.lastMeasuredIndex=Math.min(u.lastMeasuredIndex,l-1),r._getItemStyleCache(-1),d&&r.forceUpdate()},u},"initInstanceProps"),shouldResetStyleCacheOnItemSizeChange:!1,validateProps:a(function(e){var r=e.itemSize;if(E.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))},"validateProps")});var Se=ve({getItemOffset:a(function(e,r){var n=e.itemSize;return r*n},"getItemOffset"),getItemSize:a(function(e,r){var n=e.itemSize;return n},"getItemSize"),getEstimatedTotalSize:a(function(e){var r=e.itemCount,n=e.itemSize;return n*r},"getEstimatedTotalSize"),getOffsetForIndexAndAlignment:a(function(e,r,n,i,u,l){var d=e.direction,h=e.height,p=e.itemCount,m=e.itemSize,S=e.layout,x=e.width,w=d==="horizontal"||S==="horizontal",I=w?x:h,o=Math.max(0,p*m-I),s=Math.min(o,r*m),c=Math.max(0,r*m-I+m+l);switch(n==="smart"&&(i>=c-I&&i<=s+I?n="auto":n="center"),n){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,r){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},"getStartIndexForOffset"),getStopIndexForStartIndex:a(function(e,r,n){var i=e.direction,u=e.height,l=e.itemCount,d=e.itemSize,h=e.layout,p=e.width,m=i==="horizontal"||h==="horizontal",S=r*d,x=m?p:u,w=Math.ceil((x+n-S)/d);return Math.max(0,Math.min(l-1,r+w-1))},"getStopIndexForStartIndex"),initInstanceProps:a(function(e){},"initInstanceProps"),shouldResetStyleCacheOnItemSizeChange:!0,validateProps:a(function(e){var r=e.itemSize;if(E.env.NODE_ENV!=="production"&&typeof r!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(r===null?"null":typeof r)+'" was specified.'))},"validateProps")});var rr=a((t,e)=>{let r=we(null),n=we(null),i=a(l=>{t==null||t===""||t!==l.listId||(n.current=l.index,!(r.current==null||l.index==null)&&(e!=null&&e.scrollFn?e.scrollFn(l.index):(r.current instanceof Ie||r.current instanceof Se)&&r.current.scrollToItem(l.index)))},"handleFocusListitem"),u=a(l=>{t==null||t===""||t!==l.listId||n.current!=null&&l.index===n.current&&C.getInstance().publish("focusListItem",{listId:t,index:l.index})},"handleListItemMounted");return Je(()=>{if(!(t==null||t===""))return C.getInstance().on("focusListItem",i),C.getInstance().on("listItemMounted",u),()=>{C.getInstance().off("focusListItem",i),C.getInstance().off("listItemMounted",u)}},[t,e==null?void 0:e.scrollFn]),{ref:r}},"useKeyboardVirtualList");export{Se as a,ut as b,wt as c,rr as d};
@@ -1 +1 @@
1
- import{b as x,c as H}from"./chunk-62BOMYLL.js";import{a as y,b as w}from"./chunk-R7WXL3MD.js";import{a as v}from"./chunk-CRQWZXHX.js";import{c as C,d as N,e as l}from"./chunk-URJNJOSC.js";import{a as r,b as n,c as f}from"./chunk-CDDMBWBN.js";import{jsx as M,jsxs as G}from"react/jsx-runtime";var S=f(()=>G("svg",n(r({},l({className:"icon--chevron-down",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:"M6 9l6 6l6 -6"})]})),"ChevronDown");import{useMemo as E,useRef as D,useState as Q}from"react";import{forwardRef as J}from"react";import{jsx as A}from"react/jsx-runtime";var O=f(({floor:t,index:m,current:e,props:o,onClick:s})=>{let{ref:a}=H("mappedin__floor-selector",m,()=>s==null?void 0:s());return A("li",n(r({},l({role:"button",className:C("floor-selector-floor-item",e?"floor-selector-current-floor-in-list":""),ref:a},o==null?void 0:o.listItem)),{onClick:s,id:"mappedin__floor-selector-".concat(t.id),children:A("span",n(r({},l({className:"floor-selector-floor-item-name"},o==null?void 0:o.listItemName)),{children:t.name}))}))},"FloorSelectorListItem");import{jsx as T}from"react/jsx-runtime";var k=J(({floors:t,currentFloor:m,props:e,onFloorSelected:o},s)=>T("ul",n(r({},l({className:"floor-selector-floors-list"},e==null?void 0:e.list)),{ref:s,children:t==null?void 0:t.map((a,c)=>T(O,{index:c,floor:a,current:a===m,onClick:()=>o==null?void 0:o(a),props:e},a.id))})));import{jsx as d,jsxs as B}from"react/jsx-runtime";var Ce=f(({currentFloor:t,floors:m=[],props:e,onFloorSelected:o,isOpen:s,onOpen:a})=>{var b,R,g,F;let{value:c,onChange:p}=y({value:s,defaultValue:s!=null?s:!1,onChange:a}),{ref:U}=v("isOpen",c),u=D(null);w(u,()=>{var i;c&&(p(!1),(i=u.current)==null||i.blur())});let I=D(null),{ref:W,activeItemId:P}=x("mappedin__floor-selector",{itemCount:m.length,resetActiveItemOnBlur:!0}),{ref:K}=v("currentFloorId",(b=t==null?void 0:t.id)!=null?b:"none"),{ref:z}=v("highlightedFloorId",P!=null?P:"none"),V=E(()=>[...m].sort((i,q)=>q.elevation-i.elevation),[m]),[h,_]=Q(null),$=E(()=>h==null?0:c?h.clientHeight:0,[h,c]);return B("div",n(r({},l({className:"floor-selector-wrapper",ref:N(u,W,U,K,z),tabIndex:0,onFocus:f(i=>{i.target===u.current&&i.relatedTarget!==I.current&&p(!0)},"onFocus")},e==null?void 0:e.wrapper)),{children:[B("button",n(r({},l({className:"floor-selector-button",ref:I,onClick:f(()=>{var i;p(!c),(i=u.current)==null||i.focus()},"onClick"),tabIndex:-1},e==null?void 0:e.button)),{children:[d("span",n(r({},l({className:"floor-selector-current-floor"},e==null?void 0:e.currentName)),{children:(F=(g=t==null?void 0:t.name)!=null?g:(R=m[0])==null?void 0:R.name)!=null?F:""})),d("div",n(r({},l({className:"floor-selector-chevron"},e==null?void 0:e.chevron)),{children:d(S,{})}))]})),d("div",n(r({},l({className:"floor-selector-list-wrapper",style:{height:"100vh",maxHeight:$}},e==null?void 0:e.listWrapper)),{children:c&&d(k,{ref:_,floors:V,currentFloor:t,props:e,onFloorSelected:i=>{p(!1),o==null||o(i)}})}))]}))},"FloorSelector");export{Ce as a};
1
+ import{b as x,c as H}from"./chunk-APJ745KC.js";import{a as y,b as w}from"./chunk-UBGODYYH.js";import{a as v}from"./chunk-MJNL6V2O.js";import{c as C,d as N,e as l}from"./chunk-2DQ6S5BX.js";import{a as r,b as n,c as f}from"./chunk-QBYV32KA.js";import{jsx as M,jsxs as G}from"react/jsx-runtime";var S=f(()=>G("svg",n(r({},l({className:"icon--chevron-down",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:"M6 9l6 6l6 -6"})]})),"ChevronDown");import{useMemo as E,useRef as D,useState as Q}from"react";import{forwardRef as J}from"react";import{jsx as A}from"react/jsx-runtime";var O=f(({floor:t,index:m,current:e,props:o,onClick:s})=>{let{ref:a}=H("mappedin__floor-selector",m,()=>s==null?void 0:s());return A("li",n(r({},l({role:"button",className:C("floor-selector-floor-item",e?"floor-selector-current-floor-in-list":""),ref:a},o==null?void 0:o.listItem)),{onClick:s,id:"mappedin__floor-selector-".concat(t.id),children:A("span",n(r({},l({className:"floor-selector-floor-item-name"},o==null?void 0:o.listItemName)),{children:t.name}))}))},"FloorSelectorListItem");import{jsx as T}from"react/jsx-runtime";var k=J(({floors:t,currentFloor:m,props:e,onFloorSelected:o},s)=>T("ul",n(r({},l({className:"floor-selector-floors-list"},e==null?void 0:e.list)),{ref:s,children:t==null?void 0:t.map((a,c)=>T(O,{index:c,floor:a,current:a===m,onClick:()=>o==null?void 0:o(a),props:e},a.id))})));import{jsx as d,jsxs as B}from"react/jsx-runtime";var Ce=f(({currentFloor:t,floors:m=[],props:e,onFloorSelected:o,isOpen:s,onOpen:a})=>{var b,R,g,F;let{value:c,onChange:p}=y({value:s,defaultValue:s!=null?s:!1,onChange:a}),{ref:U}=v("isOpen",c),u=D(null);w(u,()=>{var i;c&&(p(!1),(i=u.current)==null||i.blur())});let I=D(null),{ref:W,activeItemId:P}=x("mappedin__floor-selector",{itemCount:m.length,resetActiveItemOnBlur:!0}),{ref:K}=v("currentFloorId",(b=t==null?void 0:t.id)!=null?b:"none"),{ref:z}=v("highlightedFloorId",P!=null?P:"none"),V=E(()=>[...m].sort((i,q)=>q.elevation-i.elevation),[m]),[h,_]=Q(null),$=E(()=>h==null?0:c?h.clientHeight:0,[h,c]);return B("div",n(r({},l({className:"floor-selector-wrapper",ref:N(u,W,U,K,z),tabIndex:0,onFocus:f(i=>{i.target===u.current&&i.relatedTarget!==I.current&&p(!0)},"onFocus")},e==null?void 0:e.wrapper)),{children:[B("button",n(r({},l({className:"floor-selector-button",ref:I,onClick:f(()=>{var i;p(!c),(i=u.current)==null||i.focus()},"onClick"),tabIndex:-1},e==null?void 0:e.button)),{children:[d("span",n(r({},l({className:"floor-selector-current-floor"},e==null?void 0:e.currentName)),{children:(F=(g=t==null?void 0:t.name)!=null?g:(R=m[0])==null?void 0:R.name)!=null?F:""})),d("div",n(r({},l({className:"floor-selector-chevron"},e==null?void 0:e.chevron)),{children:d(S,{})}))]})),d("div",n(r({},l({className:"floor-selector-list-wrapper",style:{height:"100vh",maxHeight:$}},e==null?void 0:e.listWrapper)),{children:c&&d(k,{ref:_,floors:V,currentFloor:t,props:e,onFloorSelected:i=>{p(!1),o==null||o(i)}})}))]}))},"FloorSelector");export{Ce as a};
@@ -1 +1 @@
1
- import{a as b,b as C}from"./chunk-R7WXL3MD.js";import{a as k}from"./chunk-CRQWZXHX.js";import{c as s,d as p,e as r}from"./chunk-URJNJOSC.js";import{a as t,b as o,c as a}from"./chunk-CDDMBWBN.js";import{jsx as u,jsxs as H}from"react/jsx-runtime";var I=a(()=>H("svg",o(t({},r({className:"icon--magnifying-glass",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[u("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),u("path",{d:"M21 21l-6 -6"})]})),"MagnifyingGlass");import{useRef as R}from"react";import{jsx as h,jsxs as y}from"react/jsx-runtime";var M=a(()=>y("svg",o(t({},r({className:"icon--close",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[h("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),h("path",{d:"M18 6l-12 12"}),h("path",{d:"M6 6l12 12"})]})),"Close");import{jsx as c,jsxs as E}from"react/jsx-runtime";var $=a(({props:e,value:N,onChange:P,placeholder:L,searchIcon:f,closeIcon:d})=>{let i=R(null),g=R(null),x=f===void 0?c(I,{}):f,B=d===void 0?c(M,{}):d,{value:l,onChange:v}=b({value:N,onChange:P,defaultValue:""});C(g,()=>{var n;(n=i.current)==null||n.blur()});let{ref:w}=k("searchBarValue",l);return E("div",o(t({},r({className:"search-bar-wrapper",ref:p(g,w)},e==null?void 0:e.wrapper)),{children:[c("input",o(t({},r({name:"mappedin-search-bar",className:"search-bar-input",ref:i,onChange:a(n=>v(n.target.value),"onChange"),type:"search",role:"searchbox",placeholder:L},e==null?void 0:e.input)),{value:l})),c("button",o(t({},r({className:s("search-bar-icon","search-icon"),onClick:a(()=>{var n;(n=i.current)==null||n.focus()},"onClick"),tabIndex:-1},e==null?void 0:e.searchIcon)),{children:x})),c("button",o(t({},r({className:s("search-bar-icon","clear-icon"),onClick:a(()=>{var n;v(""),(n=i.current)==null||n.focus()},"onClick"),tabIndex:l.length>0?0:-1},e==null?void 0:e.clearIcon)),{children:B}))]}))},"SearchBar");export{$ as a};
1
+ import{a as b,b as C}from"./chunk-UBGODYYH.js";import{a as k}from"./chunk-MJNL6V2O.js";import{c as s,d as p,e as r}from"./chunk-2DQ6S5BX.js";import{a as t,b as o,c as a}from"./chunk-QBYV32KA.js";import{jsx as u,jsxs as H}from"react/jsx-runtime";var I=a(()=>H("svg",o(t({},r({className:"icon--magnifying-glass",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[u("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),u("path",{d:"M21 21l-6 -6"})]})),"MagnifyingGlass");import{useRef as R}from"react";import{jsx as h,jsxs as y}from"react/jsx-runtime";var M=a(()=>y("svg",o(t({},r({className:"icon--close",viewBox:"0 0 24 24",height:"100%",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),{children:[h("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),h("path",{d:"M18 6l-12 12"}),h("path",{d:"M6 6l12 12"})]})),"Close");import{jsx as c,jsxs as E}from"react/jsx-runtime";var $=a(({props:e,value:N,onChange:P,placeholder:L,searchIcon:f,closeIcon:d})=>{let i=R(null),g=R(null),x=f===void 0?c(I,{}):f,B=d===void 0?c(M,{}):d,{value:l,onChange:v}=b({value:N,onChange:P,defaultValue:""});C(g,()=>{var n;(n=i.current)==null||n.blur()});let{ref:w}=k("searchBarValue",l);return E("div",o(t({},r({className:"search-bar-wrapper",ref:p(g,w)},e==null?void 0:e.wrapper)),{children:[c("input",o(t({},r({name:"mappedin-search-bar",className:"search-bar-input",ref:i,onChange:a(n=>v(n.target.value),"onChange"),type:"search",role:"searchbox",placeholder:L},e==null?void 0:e.input)),{value:l})),c("button",o(t({},r({className:s("search-bar-icon","search-icon"),onClick:a(()=>{var n;(n=i.current)==null||n.focus()},"onClick"),tabIndex:-1},e==null?void 0:e.searchIcon)),{children:x})),c("button",o(t({},r({className:s("search-bar-icon","clear-icon"),onClick:a(()=>{var n;v(""),(n=i.current)==null||n.focus()},"onClick"),tabIndex:l.length>0?0:-1},e==null?void 0:e.clearIcon)),{children:B}))]}))},"SearchBar");export{$ as a};
@@ -1 +1 @@
1
- import{b as o}from"./chunk-URJNJOSC.js";import{c as s}from"./chunk-CDDMBWBN.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"".concat(o).concat(r).concat(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-2DQ6S5BX.js";import{c as s}from"./chunk-QBYV32KA.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"".concat(o).concat(r).concat(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 J,c as Q,d as ee}from"./chunk-62BOMYLL.js";import{a as Z}from"./chunk-CRQWZXHX.js";import{c as L,d as K,e as E}from"./chunk-URJNJOSC.js";import{a as h,b as v,c as l,d as j,f as b}from"./chunk-CDDMBWBN.js";import{useEffect as We,useMemo as Xe,useRef as Ye}from"react";import Ie,{cloneElement as De,isValidElement as Re,useCallback as I,useEffect as D,useReducer as Ne,useRef as q,useState as Ce}from"react";import*as re from"react";var ve=l(t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{let[n,i]=r.split(/ ?: ?/).map((c,a)=>a===0?c.replace(/\s+/g,""):c.trim());if(n&&i){let c=n.replace(/(\w)-(\w)/g,(u,s,o)=>"".concat(s).concat(o.toUpperCase())),a=i.trim();Number.isNaN(Number(i))||(a=Number(i)),e[n.startsWith("-")?n:c]=a}return e},{}),"styleToObject");function ke(t=6){let e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}l(ke,"randomString");var we=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],te={"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 xe(t,e){var a,u;let c=e,{key:r,level:n}=c,i=j(c,["key","level"]);switch(t.nodeType){case 1:return re.createElement(Le(t.nodeName),be(t,r),ne(t.childNodes,n,i));case 3:{let s=(u=(a=t.nodeValue)==null?void 0:a.toString())!=null?u:"";if(!i.allowWhiteSpaces&&/^\s+$/.test(s)&&!/[\u00A0\u202F]/.test(s))return null;if(!t.parentNode)return s;let o=t.parentNode.nodeName.toLowerCase();return we.includes(o)?(/\S/.test(s)&&console.warn("A textNode is not allowed inside '".concat(o,"'. Your text \"").concat(s,'" will be ignored')),null):s}case 8:return null;case 11:return ne(t.childNodes,n,e);default:return null}}l(xe,"getReactNode");function be(t,e){let r={key:e};if(t instanceof Element){let n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(i=>{switch(i.name){case"class":break;case"style":r[i.name]=ve(i.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":r[te[i.name]||i.name]=!0;break;default:r[te[i.name]||i.name]=i.value}})}return r}l(be,"parseAttributes");function ne(t,e,r){let n=[...t].map((i,c)=>M(i,v(h({},r),{index:c,level:e+1}))).filter(Boolean);return n.length?n:null}l(ne,"parseChildren");function Le(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}l(Le,"parseName");function H(t,e={}){return typeof t=="string"?Ee(t,e):t instanceof Node?M(t,e):null}l(H,"convert");function M(t,e={}){if(!t||!(t instanceof Node))return null;let{actions:r=[],index:n=0,level:i=0,randomKey:c}=e,a=t,u="".concat(i,"-").concat(n),s=[];return c&&i===0&&(u="".concat(ke(),"-").concat(u)),Array.isArray(r)&&r.forEach(o=>{o.condition(a,u,i)&&(typeof o.pre=="function"&&(a=o.pre(a,u,i),a instanceof Node||(a=t,b.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 o.post=="function"&&s.push(o.post(a,u,i)))}),s.length?s:xe(a,h({key:u,level:i},e))}l(M,"convertFromNode");function Ee(t,e={}){if(!t||typeof t!="string")return null;let{includeAllNodes:r=!1,nodeOnly:n=!1,selector:i="body > *",type:c="text/html"}=e;try{let u=new DOMParser().parseFromString(t,c);if(r){let{childNodes:o}=u.body;return n?o:[...o].map(g=>M(g,e))}let s=u.querySelector(i)||u.body.childNodes[0];if(!(s instanceof Node))throw new TypeError("Error parsing input");return n?s:M(s,e)}catch(a){b.env.NODE_ENV!=="production"&&console.error(a)}return null}l(Ee,"convertFromString");import{useEffect as Ve,useRef as qe}from"react";var Se=Object.defineProperty,Ae=l((t,e,r)=>e in t?Se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,"__defNormalProp"),z=l((t,e,r)=>Ae(t,typeof e!="symbol"?e+"":e,r),"__publicField"),ie="react-inlinesvg",Pe=10,d={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Te(t){return t[Math.floor(Math.random()*t.length)]}l(Te,"randomCharacter");function O(){var t;return!!(typeof window<"u"&&((t=window.document)!=null&&t.createElement))}l(O,"canUseDOM");function Oe(){return Ue()&&typeof window<"u"&&window!==null}l(Oe,"isSupportedEnvironment");function Me(t,...e){let r={};for(let n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}l(Me,"omit");function He(t){let e="abcdefghijklmnopqrstuvwxyz",n="".concat(e).concat(e.toUpperCase()).concat("1234567890"),i="";for(let c=0;c<t;c++)i+=Te(n);return i}l(He,"randomString");async function ae(t,e){let r=await fetch(t,e),n=r.headers.get("content-type"),[i]=(n!=null?n:"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(c=>i.includes(c)))throw new Error("Content type isn't valid: ".concat(i));return r.text()}l(ae,"request");function ze(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}l(ze,"sleep");function Ue(){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"}l(Ue,"supportsInlineSVG");var N,Fe=(N=class{constructor(){var n;z(this,"cacheApi"),z(this,"cacheStore"),z(this,"subscribers",[]),z(this,"isReady",!1),this.cacheStore=new Map;let e=ie,r=!1;O()&&(e=(n=window.REACT_INLINESVG_CACHE_NAME)!=null?n:ie,r=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),r?caches.open(e).then(i=>{this.cacheApi=i}).catch(i=>{console.error("Failed to open cache: ".concat(i.message)),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;let i=[...this.subscribers];this.subscribers.length=0,i.forEach(c=>{try{c()}catch(a){console.error("Error in CacheStore subscriber callback: ".concat(a.message))}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,r){var n,i;return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,r):this.fetchAndAddToInternalCache(e,r)),(i=(n=this.cacheStore.get(e))==null?void 0:n.content)!=null?i:""}set(e,r){this.cacheStore.set(e,r)}isCached(e){var r;return((r=this.cacheStore.get(e))==null?void 0:r.status)===d.LOADED}async fetchAndAddToInternalCache(e,r){let n=this.cacheStore.get(e);if((n==null?void 0:n.status)===d.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:d.IDLE}),await this.fetchAndAddToInternalCache(e,r)});return}if(!(n!=null&&n.content)){this.cacheStore.set(e,{content:"",status:d.LOADING});try{let i=await ae(e,r);this.cacheStore.set(e,{content:i,status:d.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:d.FAILED}),i}}}async fetchAndAddToPersistentCache(e,r){var c,a,u,s;let n=this.cacheStore.get(e);if((n==null?void 0:n.status)===d.LOADED)return;if((n==null?void 0:n.status)===d.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:d.IDLE}),await this.fetchAndAddToPersistentCache(e,r)});return}this.cacheStore.set(e,{content:"",status:d.LOADING});let i=await((c=this.cacheApi)==null?void 0:c.match(e));if(i){let o=await i.text();this.cacheStore.set(e,{content:o,status:d.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(e,r)));let o=await((u=this.cacheApi)==null?void 0:u.match(e)),g=(s=await(o==null?void 0:o.text()))!=null?s:"";this.cacheStore.set(e,{content:g,status:d.LOADED})}catch(o){throw this.cacheStore.set(e,{content:"",status:d.FAILED}),o}}async handleLoading(e,r){var n;for(let i=0;i<Pe;i++){if(((n=this.cacheStore.get(e))==null?void 0:n.status)!==d.LOADING)return;await ze(.1)}await r()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,r])=>({[e]:r}))}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(r=>this.cacheApi.delete(r)))}this.cacheStore.clear()}},l(N,"CacheStore"),N);function oe(t){let e=qe(void 0);return Ve(()=>{e.current=t}),e.current}l(oe,"usePrevious");function Ge(t){let{baseURL:e,content:r,description:n,handleError:i,hash:c,preProcessor:a,title:u,uniquifyIDs:s=!1}=t;try{let o=$e(r,a),g=H(o,{nodeOnly:!0});if(!g||!(g instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");let f=se(g,{baseURL:e,hash:c,uniquifyIDs:s});if(n){let m=f.querySelector("desc");m!=null&&m.parentNode&&m.parentNode.removeChild(m);let y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,f.prepend(y)}if(typeof u<"u"){let m=f.querySelector("title");if(m!=null&&m.parentNode&&m.parentNode.removeChild(m),u){let y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=u,f.prepend(y)}}return f}catch(o){return i(o)}}l(Ge,"getNode");function $e(t,e){return e?e(t):t}l($e,"processSVG");function se(t,e){let{baseURL:r="",hash:n,uniquifyIDs:i}=e,c=["id","href","xlink:href","xlink:role","xlink:arcrole"],a=["href","xlink:href"],u=l((s,o)=>a.includes(s)&&(o?!o.includes("#"):!1),"isDataValue");return i&&[...t.children].forEach(s=>{var o;if((o=s.attributes)!=null&&o.length){let g=Object.values(s.attributes).map(f=>{let m=f,y=/url\((.*?)\)/.exec(f.value);return y!=null&&y[1]&&(m.value=f.value.replace(y[0],"url(".concat(r).concat(y[1],"__").concat(n,")"))),m});c.forEach(f=>{let m=g.find(y=>y.name===f);m&&!u(f,m.value)&&(m.value="".concat(m.value,"__").concat(n))})}return s.children.length?se(s,e):s}),t}l(se,"updateSVGAttributes");var R;function _e(t){let{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:i,innerRef:c,loader:a=null,onError:u,onLoad:s,src:o,title:g,uniqueHash:f}=t,[m,y]=Ne((p,k)=>h(h({},p),k),{content:"",element:null,isCached:e&&R.isCached(t.src),status:d.IDLE}),{content:$,element:_,isCached:B,status:S}=m,w=oe(t),C=oe(m),ge=q(f!=null?f:He(8)),P=q(!1),W=q(!1),x=I(p=>{P.current&&(y({status:p.message==="Browser does not support SVG"?d.UNSUPPORTED:d.FAILED}),u==null||u(p))},[u]),T=I((p,k=!1)=>{P.current&&y({content:p,isCached:k,status:d.LOADED})},[]),X=I(async()=>{let p=await ae(o,i);T(p)},[i,T,o]),A=I(()=>{try{let p=Ge(v(h({},t),{handleError:x,hash:ge.current,content:$})),k=H(p);if(!k||!Re(k))throw new Error("Could not convert the src to a React element");y({element:k,status:d.READY})}catch(p){x(p)}},[$,x,t]),Y=I(async()=>{let p=new RegExp("^data:image\\/svg[^,]*?(;base64)?,(.*)","u").exec(o),k;if(p?k=p[1]?window.atob(p[2]):decodeURIComponent(p[2]):o.includes("<svg")&&(k=o),k){T(k);return}try{if(e){let V=await R.get(o,i);T(V,!0)}else await X()}catch(V){x(V)}},[e,X,i,x,T,o]),F=I(async()=>{P.current&&y({content:"",element:null,isCached:!1,status:d.LOADING})},[]);D(()=>{if(P.current=!0,!(!O()||W.current)){try{if(S===d.IDLE){if(!Oe())throw new Error("Browser does not support SVG");if(!o)throw new Error("Missing src");F()}}catch(p){x(p)}return W.current=!0,()=>{P.current=!1}}},[]),D(()=>{if(!(!O()||!w)&&w.src!==o){if(!o){x(new Error("Missing src"));return}F()}},[x,F,w,o]),D(()=>{S===d.LOADED&&A()},[S,A]),D(()=>{!O()||!w||w.src!==o||(w.title!==g||w.description!==n)&&A()},[n,A,w,o,g]),D(()=>{if(C)switch(S){case d.LOADING:{C.status!==d.LOADING&&Y();break}case d.LOADED:{C.status!==d.LOADED&&A();break}case d.READY:{C.status!==d.READY&&(s==null||s(o,B));break}}},[Y,A,B,s,C,o,S]);let ye=Me(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return O()?_?De(_,h({ref:c},ye)):[d.UNSUPPORTED,d.FAILED].includes(S)?r:a:a}l(_e,"ReactInlineSVG");function ce(t){R||(R=new Fe);let{loader:e}=t,[r,n]=Ce(R.isReady);return D(()=>{r||R.onReady(()=>{n(!0)})},[r]),r?Ie.createElement(_e,h({},t)):e}l(ce,"InlineSVG");import{createElement as Be}from"react";import{jsx as U,jsxs as le}from"react/jsx-runtime";var ue=l(({listId:t,index:e,locations:r,props:n,onClick:i,item:c})=>{var g;let{ref:a}=Q(t,e,()=>i==null?void 0:i(r[e])),{ref:u}=Z("locationId",r[e].id),s=r[e].logo,o=(g=r[e].categories[0])==null?void 0:g.icon;return U("li",v(h({},E({className:"location-list-item-wrapper",role:"button",onClick:l(()=>i==null?void 0:i(r[e]),"onClick"),ref:K(a,u)},n==null?void 0:n.listItemWrapper)),{id:"".concat(t!=null?t:"location-list","-").concat(r[e].id),children:c?Be(c,{location:r[e]}):le("div",v(h({},E({className:"location-list-item-content"},n==null?void 0:n.listItemContent)),{children:[(s||o)&&le("div",v(h({},E({className:"location-list-item-image"},n==null?void 0:n.listItemImage)),{children:[s&&U("img",{className:L("location-list-item-image-img"),src:s,alt:r[e].name}),o&&!s&&U(ce,{className:L("location-list-item-image-svg"),src:o})]})),U("span",v(h({},E({className:"location-list-item-name"},n==null?void 0:n.listItemName)),{children:r[e].name}))]}))}))},"LocationListItem");import{forwardRef as de}from"react";import{jsx as G}from"react/jsx-runtime";var he=l(({index:t,style:e,data:r})=>{var n,i,c;return G(ue,v(h({index:t},r),{props:v(h({},r.props),{listItemWrapper:h({style:h(h({},e),(i=(n=r.props)==null?void 0:n.listItemWrapper)==null?void 0:i.style)},(c=r.props)==null?void 0:c.listItemWrapper)})}))},"LocationListItemRenderer"),me=de((t,e)=>G("div",h({ref:e,tabIndex:-1},t))),fe=de((t,e)=>G("ul",v(h({ref:e,className:L("location-list-inner")},t),{style:h({display:"block"},t.style)})));import{jsx as pe}from"react/jsx-runtime";var Rt=l(({id:t,locations:e=[],onLocationSelected:r,maxHeight:n,item:i,itemSize:c=40,props:a})=>{var g,f;let{ref:u}=ee(t),s=Xe(()=>{let m=e.length*c;return n==null?Math.min(m,window.innerHeight*.8):Math.min(m,n)},[n,e,c]),o=Ye(e);return We(()=>{o.current=e},[e]),pe("div",v(h({},E({className:"location-list-wrapper",style:{height:"100vh",maxHeight:"".concat(s,"px")}},a==null?void 0:a.wrapper)),{role:"listbox",id:t,children:pe(J,v(h({ref:u,className:L("location-list",(g=a==null?void 0:a.list)==null?void 0:g.className),height:s,width:"100%",layout:"vertical",itemSize:c,itemCount:e.length,outerElementType:me,itemData:{locations:e,props:a,onClick:r,listId:t,item:i},innerElementType:fe},(f=a==null?void 0:a.list)!=null?f:{}),{children:he}))}))},"LocationList");export{Rt as a};
1
+ import{a as J,c as Q,d as ee}from"./chunk-APJ745KC.js";import{a as Z}from"./chunk-MJNL6V2O.js";import{c as L,d as K,e as E}from"./chunk-2DQ6S5BX.js";import{a as h,b as v,c as l,d as j,f as b}from"./chunk-QBYV32KA.js";import{useEffect as We,useMemo as Xe,useRef as Ye}from"react";import Ie,{cloneElement as De,isValidElement as Re,useCallback as I,useEffect as D,useReducer as Ne,useRef as q,useState as Ce}from"react";import*as re from"react";var ve=l(t=>typeof t!="string"?{}:t.split(/ ?; ?/).reduce((e,r)=>{let[n,i]=r.split(/ ?: ?/).map((c,a)=>a===0?c.replace(/\s+/g,""):c.trim());if(n&&i){let c=n.replace(/(\w)-(\w)/g,(u,s,o)=>"".concat(s).concat(o.toUpperCase())),a=i.trim();Number.isNaN(Number(i))||(a=Number(i)),e[n.startsWith("-")?n:c]=a}return e},{}),"styleToObject");function ke(t=6){let e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="";for(let n=t;n>0;--n)r+=e[Math.round(Math.random()*(e.length-1))];return r}l(ke,"randomString");var we=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],te={"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 xe(t,e){var a,u;let c=e,{key:r,level:n}=c,i=j(c,["key","level"]);switch(t.nodeType){case 1:return re.createElement(Le(t.nodeName),be(t,r),ne(t.childNodes,n,i));case 3:{let s=(u=(a=t.nodeValue)==null?void 0:a.toString())!=null?u:"";if(!i.allowWhiteSpaces&&/^\s+$/.test(s)&&!/[\u00A0\u202F]/.test(s))return null;if(!t.parentNode)return s;let o=t.parentNode.nodeName.toLowerCase();return we.includes(o)?(/\S/.test(s)&&console.warn("A textNode is not allowed inside '".concat(o,"'. Your text \"").concat(s,'" will be ignored')),null):s}case 8:return null;case 11:return ne(t.childNodes,n,e);default:return null}}l(xe,"getReactNode");function be(t,e){let r={key:e};if(t instanceof Element){let n=t.getAttribute("class");n&&(r.className=n),[...t.attributes].forEach(i=>{switch(i.name){case"class":break;case"style":r[i.name]=ve(i.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":r[te[i.name]||i.name]=!0;break;default:r[te[i.name]||i.name]=i.value}})}return r}l(be,"parseAttributes");function ne(t,e,r){let n=[...t].map((i,c)=>M(i,v(h({},r),{index:c,level:e+1}))).filter(Boolean);return n.length?n:null}l(ne,"parseChildren");function Le(t){return/[a-z]+[A-Z]+[a-z]+/.test(t)?t:t.toLowerCase()}l(Le,"parseName");function H(t,e={}){return typeof t=="string"?Ee(t,e):t instanceof Node?M(t,e):null}l(H,"convert");function M(t,e={}){if(!t||!(t instanceof Node))return null;let{actions:r=[],index:n=0,level:i=0,randomKey:c}=e,a=t,u="".concat(i,"-").concat(n),s=[];return c&&i===0&&(u="".concat(ke(),"-").concat(u)),Array.isArray(r)&&r.forEach(o=>{o.condition(a,u,i)&&(typeof o.pre=="function"&&(a=o.pre(a,u,i),a instanceof Node||(a=t,b.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 o.post=="function"&&s.push(o.post(a,u,i)))}),s.length?s:xe(a,h({key:u,level:i},e))}l(M,"convertFromNode");function Ee(t,e={}){if(!t||typeof t!="string")return null;let{includeAllNodes:r=!1,nodeOnly:n=!1,selector:i="body > *",type:c="text/html"}=e;try{let u=new DOMParser().parseFromString(t,c);if(r){let{childNodes:o}=u.body;return n?o:[...o].map(g=>M(g,e))}let s=u.querySelector(i)||u.body.childNodes[0];if(!(s instanceof Node))throw new TypeError("Error parsing input");return n?s:M(s,e)}catch(a){b.env.NODE_ENV!=="production"&&console.error(a)}return null}l(Ee,"convertFromString");import{useEffect as Ve,useRef as qe}from"react";var Se=Object.defineProperty,Ae=l((t,e,r)=>e in t?Se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,"__defNormalProp"),z=l((t,e,r)=>Ae(t,typeof e!="symbol"?e+"":e,r),"__publicField"),ie="react-inlinesvg",Pe=10,d={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function Te(t){return t[Math.floor(Math.random()*t.length)]}l(Te,"randomCharacter");function O(){var t;return!!(typeof window<"u"&&((t=window.document)!=null&&t.createElement))}l(O,"canUseDOM");function Oe(){return Ue()&&typeof window<"u"&&window!==null}l(Oe,"isSupportedEnvironment");function Me(t,...e){let r={};for(let n in t)({}).hasOwnProperty.call(t,n)&&(e.includes(n)||(r[n]=t[n]));return r}l(Me,"omit");function He(t){let e="abcdefghijklmnopqrstuvwxyz",n="".concat(e).concat(e.toUpperCase()).concat("1234567890"),i="";for(let c=0;c<t;c++)i+=Te(n);return i}l(He,"randomString");async function ae(t,e){let r=await fetch(t,e),n=r.headers.get("content-type"),[i]=(n!=null?n:"").split(/ ?; ?/);if(r.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(c=>i.includes(c)))throw new Error("Content type isn't valid: ".concat(i));return r.text()}l(ae,"request");function ze(t=1){return new Promise(e=>{setTimeout(e,t*1e3)})}l(ze,"sleep");function Ue(){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"}l(Ue,"supportsInlineSVG");var N,Fe=(N=class{constructor(){var n;z(this,"cacheApi"),z(this,"cacheStore"),z(this,"subscribers",[]),z(this,"isReady",!1),this.cacheStore=new Map;let e=ie,r=!1;O()&&(e=(n=window.REACT_INLINESVG_CACHE_NAME)!=null?n:ie,r=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),r?caches.open(e).then(i=>{this.cacheApi=i}).catch(i=>{console.error("Failed to open cache: ".concat(i.message)),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;let i=[...this.subscribers];this.subscribers.length=0,i.forEach(c=>{try{c()}catch(a){console.error("Error in CacheStore subscriber callback: ".concat(a.message))}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,r){var n,i;return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,r):this.fetchAndAddToInternalCache(e,r)),(i=(n=this.cacheStore.get(e))==null?void 0:n.content)!=null?i:""}set(e,r){this.cacheStore.set(e,r)}isCached(e){var r;return((r=this.cacheStore.get(e))==null?void 0:r.status)===d.LOADED}async fetchAndAddToInternalCache(e,r){let n=this.cacheStore.get(e);if((n==null?void 0:n.status)===d.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:d.IDLE}),await this.fetchAndAddToInternalCache(e,r)});return}if(!(n!=null&&n.content)){this.cacheStore.set(e,{content:"",status:d.LOADING});try{let i=await ae(e,r);this.cacheStore.set(e,{content:i,status:d.LOADED})}catch(i){throw this.cacheStore.set(e,{content:"",status:d.FAILED}),i}}}async fetchAndAddToPersistentCache(e,r){var c,a,u,s;let n=this.cacheStore.get(e);if((n==null?void 0:n.status)===d.LOADED)return;if((n==null?void 0:n.status)===d.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:d.IDLE}),await this.fetchAndAddToPersistentCache(e,r)});return}this.cacheStore.set(e,{content:"",status:d.LOADING});let i=await((c=this.cacheApi)==null?void 0:c.match(e));if(i){let o=await i.text();this.cacheStore.set(e,{content:o,status:d.LOADED});return}try{await((a=this.cacheApi)==null?void 0:a.add(new Request(e,r)));let o=await((u=this.cacheApi)==null?void 0:u.match(e)),g=(s=await(o==null?void 0:o.text()))!=null?s:"";this.cacheStore.set(e,{content:g,status:d.LOADED})}catch(o){throw this.cacheStore.set(e,{content:"",status:d.FAILED}),o}}async handleLoading(e,r){var n;for(let i=0;i<Pe;i++){if(((n=this.cacheStore.get(e))==null?void 0:n.status)!==d.LOADING)return;await ze(.1)}await r()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,r])=>({[e]:r}))}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(r=>this.cacheApi.delete(r)))}this.cacheStore.clear()}},l(N,"CacheStore"),N);function oe(t){let e=qe(void 0);return Ve(()=>{e.current=t}),e.current}l(oe,"usePrevious");function Ge(t){let{baseURL:e,content:r,description:n,handleError:i,hash:c,preProcessor:a,title:u,uniquifyIDs:s=!1}=t;try{let o=$e(r,a),g=H(o,{nodeOnly:!0});if(!g||!(g instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");let f=se(g,{baseURL:e,hash:c,uniquifyIDs:s});if(n){let m=f.querySelector("desc");m!=null&&m.parentNode&&m.parentNode.removeChild(m);let y=document.createElementNS("http://www.w3.org/2000/svg","desc");y.innerHTML=n,f.prepend(y)}if(typeof u<"u"){let m=f.querySelector("title");if(m!=null&&m.parentNode&&m.parentNode.removeChild(m),u){let y=document.createElementNS("http://www.w3.org/2000/svg","title");y.innerHTML=u,f.prepend(y)}}return f}catch(o){return i(o)}}l(Ge,"getNode");function $e(t,e){return e?e(t):t}l($e,"processSVG");function se(t,e){let{baseURL:r="",hash:n,uniquifyIDs:i}=e,c=["id","href","xlink:href","xlink:role","xlink:arcrole"],a=["href","xlink:href"],u=l((s,o)=>a.includes(s)&&(o?!o.includes("#"):!1),"isDataValue");return i&&[...t.children].forEach(s=>{var o;if((o=s.attributes)!=null&&o.length){let g=Object.values(s.attributes).map(f=>{let m=f,y=/url\((.*?)\)/.exec(f.value);return y!=null&&y[1]&&(m.value=f.value.replace(y[0],"url(".concat(r).concat(y[1],"__").concat(n,")"))),m});c.forEach(f=>{let m=g.find(y=>y.name===f);m&&!u(f,m.value)&&(m.value="".concat(m.value,"__").concat(n))})}return s.children.length?se(s,e):s}),t}l(se,"updateSVGAttributes");var R;function _e(t){let{cacheRequests:e=!0,children:r=null,description:n,fetchOptions:i,innerRef:c,loader:a=null,onError:u,onLoad:s,src:o,title:g,uniqueHash:f}=t,[m,y]=Ne((p,k)=>h(h({},p),k),{content:"",element:null,isCached:e&&R.isCached(t.src),status:d.IDLE}),{content:$,element:_,isCached:B,status:S}=m,w=oe(t),C=oe(m),ge=q(f!=null?f:He(8)),P=q(!1),W=q(!1),x=I(p=>{P.current&&(y({status:p.message==="Browser does not support SVG"?d.UNSUPPORTED:d.FAILED}),u==null||u(p))},[u]),T=I((p,k=!1)=>{P.current&&y({content:p,isCached:k,status:d.LOADED})},[]),X=I(async()=>{let p=await ae(o,i);T(p)},[i,T,o]),A=I(()=>{try{let p=Ge(v(h({},t),{handleError:x,hash:ge.current,content:$})),k=H(p);if(!k||!Re(k))throw new Error("Could not convert the src to a React element");y({element:k,status:d.READY})}catch(p){x(p)}},[$,x,t]),Y=I(async()=>{let p=new RegExp("^data:image\\/svg[^,]*?(;base64)?,(.*)","u").exec(o),k;if(p?k=p[1]?window.atob(p[2]):decodeURIComponent(p[2]):o.includes("<svg")&&(k=o),k){T(k);return}try{if(e){let V=await R.get(o,i);T(V,!0)}else await X()}catch(V){x(V)}},[e,X,i,x,T,o]),F=I(async()=>{P.current&&y({content:"",element:null,isCached:!1,status:d.LOADING})},[]);D(()=>{if(P.current=!0,!(!O()||W.current)){try{if(S===d.IDLE){if(!Oe())throw new Error("Browser does not support SVG");if(!o)throw new Error("Missing src");F()}}catch(p){x(p)}return W.current=!0,()=>{P.current=!1}}},[]),D(()=>{if(!(!O()||!w)&&w.src!==o){if(!o){x(new Error("Missing src"));return}F()}},[x,F,w,o]),D(()=>{S===d.LOADED&&A()},[S,A]),D(()=>{!O()||!w||w.src!==o||(w.title!==g||w.description!==n)&&A()},[n,A,w,o,g]),D(()=>{if(C)switch(S){case d.LOADING:{C.status!==d.LOADING&&Y();break}case d.LOADED:{C.status!==d.LOADED&&A();break}case d.READY:{C.status!==d.READY&&(s==null||s(o,B));break}}},[Y,A,B,s,C,o,S]);let ye=Me(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return O()?_?De(_,h({ref:c},ye)):[d.UNSUPPORTED,d.FAILED].includes(S)?r:a:a}l(_e,"ReactInlineSVG");function ce(t){R||(R=new Fe);let{loader:e}=t,[r,n]=Ce(R.isReady);return D(()=>{r||R.onReady(()=>{n(!0)})},[r]),r?Ie.createElement(_e,h({},t)):e}l(ce,"InlineSVG");import{createElement as Be}from"react";import{jsx as U,jsxs as le}from"react/jsx-runtime";var ue=l(({listId:t,index:e,locations:r,props:n,onClick:i,item:c})=>{var g;let{ref:a}=Q(t,e,()=>i==null?void 0:i(r[e])),{ref:u}=Z("locationId",r[e].id),s=r[e].logo,o=(g=r[e].categories[0])==null?void 0:g.icon;return U("li",v(h({},E({className:"location-list-item-wrapper",role:"button",onClick:l(()=>i==null?void 0:i(r[e]),"onClick"),ref:K(a,u)},n==null?void 0:n.listItemWrapper)),{id:"".concat(t!=null?t:"location-list","-").concat(r[e].id),children:c?Be(c,{location:r[e]}):le("div",v(h({},E({className:"location-list-item-content"},n==null?void 0:n.listItemContent)),{children:[(s||o)&&le("div",v(h({},E({className:"location-list-item-image"},n==null?void 0:n.listItemImage)),{children:[s&&U("img",{className:L("location-list-item-image-img"),src:s,alt:r[e].name}),o&&!s&&U(ce,{className:L("location-list-item-image-svg"),src:o})]})),U("span",v(h({},E({className:"location-list-item-name"},n==null?void 0:n.listItemName)),{children:r[e].name}))]}))}))},"LocationListItem");import{forwardRef as de}from"react";import{jsx as G}from"react/jsx-runtime";var he=l(({index:t,style:e,data:r})=>{var n,i,c;return G(ue,v(h({index:t},r),{props:v(h({},r.props),{listItemWrapper:h({style:h(h({},e),(i=(n=r.props)==null?void 0:n.listItemWrapper)==null?void 0:i.style)},(c=r.props)==null?void 0:c.listItemWrapper)})}))},"LocationListItemRenderer"),me=de((t,e)=>G("div",h({ref:e,tabIndex:-1},t))),fe=de((t,e)=>G("ul",v(h({ref:e,className:L("location-list-inner")},t),{style:h({display:"block"},t.style)})));import{jsx as pe}from"react/jsx-runtime";var Rt=l(({id:t,locations:e=[],onLocationSelected:r,maxHeight:n,item:i,itemSize:c=40,props:a})=>{var g,f;let{ref:u}=ee(t),s=Xe(()=>{let m=e.length*c;return n==null?Math.min(m,window.innerHeight*.8):Math.min(m,n)},[n,e,c]),o=Ye(e);return We(()=>{o.current=e},[e]),pe("div",v(h({},E({className:"location-list-wrapper",style:{height:"100vh",maxHeight:"".concat(s,"px")}},a==null?void 0:a.wrapper)),{role:"listbox",id:t,children:pe(J,v(h({ref:u,className:L("location-list",(g=a==null?void 0:a.list)==null?void 0:g.className),height:s,width:"100%",layout:"vertical",itemSize:c,itemCount:e.length,outerElementType:me,itemData:{locations:e,props:a,onClick:r,listId:t,item:i},innerElementType:fe},(f=a==null?void 0:a.list)!=null?f:{}),{children:he}))}))},"LocationList");export{Rt as a};
@@ -1 +1 @@
1
- var c=Object.defineProperty,t=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;var _=(e,n,a)=>n in e?c(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,N=(e,n)=>{for(var a in n||(n={}))i.call(n,a)&&_(e,a,n[a]);if(p)for(var a of p(n))r.call(n,a)&&_(e,a,n[a]);return e},b=(e,n)=>t(e,v(n)),d=(e,n)=>c(e,"name",{value:n,configurable:!0});var g=(e,n)=>{var a={};for(var o in e)i.call(e,o)&&n.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&p)for(var o of p(e))n.indexOf(o)<0&&r.call(e,o)&&(a[o]=e[o]);return a};var k=(e,n,a)=>_(e,typeof n!="symbol"?n+"":n,a);var u={env:{NODE_ENV:"production",npm_package_version:"6.17.0-beta.0"}};export{N as a,b,d as c,g as d,k as e,u as f};
1
+ var c=Object.defineProperty,t=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;var _=(e,n,a)=>n in e?c(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,N=(e,n)=>{for(var a in n||(n={}))i.call(n,a)&&_(e,a,n[a]);if(p)for(var a of p(n))r.call(n,a)&&_(e,a,n[a]);return e},b=(e,n)=>t(e,v(n)),d=(e,n)=>c(e,"name",{value:n,configurable:!0});var g=(e,n)=>{var a={};for(var o in e)i.call(e,o)&&n.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&p)for(var o of p(e))n.indexOf(o)<0&&r.call(e,o)&&(a[o]=e[o]);return a};var k=(e,n,a)=>_(e,typeof n!="symbol"?n+"":n,a);var u={env:{NODE_ENV:"production",npm_package_version:"6.17.1-beta.0"}};export{N as a,b,d as c,g as d,k as e,u as f};
@@ -1 +1 @@
1
- import{c as o}from"./chunk-CDDMBWBN.js";import{useCallback as i,useState as a}from"react";var m=o(({value:e,defaultValue:l,onChange:t})=>{let[c,s]=a(l),n=e!==void 0,u=i(r=>{s(r),t==null||t(r)},[n,t]);return{value:n?e:c,onChange:u,isControlled:n}},"useUncontrolled");import{useEffect as T}from"react";var k=o((e,l)=>{T(()=>{let t=o(c=>{let s=e==null?void 0:e.current,n=c.target;!s||s.contains(n)||l(c)},"listener");return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[e,l])},"useOutsideClick");export{m as a,k as b};
1
+ import{c as o}from"./chunk-QBYV32KA.js";import{useCallback as i,useState as a}from"react";var m=o(({value:e,defaultValue:l,onChange:t})=>{let[c,s]=a(l),n=e!==void 0,u=i(r=>{s(r),t==null||t(r)},[n,t]);return{value:n?e:c,onChange:u,isControlled:n}},"useUncontrolled");import{useEffect as T}from"react";var k=o((e,l)=>{T(()=>{let t=o(c=>{let s=e==null?void 0:e.current,n=c.target;!s||s.contains(n)||l(c)},"listener");return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[e,l])},"useOutsideClick");export{m as a,k as b};
@@ -1 +1 @@
1
- import{a as F}from"./chunk-KH6VMLIG.js";import{b as z}from"./chunk-62BOMYLL.js";import{a as k}from"./chunk-IZ3UPPKV.js";import{a as I}from"./chunk-R7WXL3MD.js";import{a as C}from"./chunk-CRQWZXHX.js";import{c as y,d as w,e as x}from"./chunk-URJNJOSC.js";import{a as h,b as d,c as i}from"./chunk-CDDMBWBN.js";import{useRef as re,useState as oe}from"react";function M(n,c,t=!1){let o=null,r=0,a=i(function(...l){r++,r===1&&t===!0&&n(...l);let u=i(()=>{(!t||r>1)&&n(...l),o=null,r=0},"later");clearTimeout(o),o=setTimeout(u,c)},"debounced");return a.cancel=function(){o&&(clearTimeout(o),o=null),r=0},a}i(M,"debounce");import{useState as A,useRef as V,useCallback as J,useMemo as ee,useEffect as te}from"react";var O=i((n,c,t={})=>{var g,p;let[o,r]=A(!1),[a,l]=A([]),u=V((g=t.defaultResults)!=null?g:[]),f=J(e=>{u.current=e,l(e)},[l]),v=ee(()=>{var e;return n.length===0?(e=t.defaultResults)!=null?e:[]:o?u.current:a},[a,t.defaultResults,n,o]),s=J(M(e=>c(e).then(f).catch(()=>f([])).finally(()=>r(!1)),(p=t.searchDebounce)!=null?p:0),[c,t.searchDebounce,f,r]);return te(()=>(n.length>0&&(r(!0),s(n)),()=>{s.cancel()}),[n,s]),{results:v,isSearching:o}},"useSearch");import{useEffect as ne,useState as W}from"react";var j=i(()=>{let[n,c]=W(null),[t,o]=W(null);return ne(()=>{if(n===null)return;let r=new ResizeObserver(a=>{a.forEach(l=>{o({width:l.contentRect.width,height:l.contentRect.height})})});return r.observe(n),()=>{r.unobserve(n),r.disconnect()}},[n]),{ref:c,width:t==null?void 0:t.width,height:t==null?void 0:t.height}},"useSize");import{jsx as D,jsxs as U}from"react/jsx-runtime";var K="mappedin__search-location-list",De=i(({value:n,onChange:c,onLocationSelected:t,placeholder:o="Search...",maxHeight:r,defaultContent:a,defaultResults:l=[],noResultsContent:u,searchFn:f,searchDebounce:v=50,resultsVisible:s,item:g,itemSize:p,props:e})=>{var E,N,H;let{value:P,onChange:G}=I({value:n,defaultValue:n!=null?n:"",onChange:c}),S=re(null),[Q,b]=oe(!1),R=s!=null?s:Q,{ref:X,height:B}=j(),{results:m,isSearching:Y}=O(P,f,{defaultResults:a!=null?[]:l,searchDebounce:v}),{ref:Z,activeItemId:L}=z(K,{itemCount:m.length,resetActiveItemOnBlur:!0}),{ref:$}=C("open",R),{ref:_}=C("highlightedLocationId",L!=null?L:"none");return U("div",d(h({},x({className:y("search-wrapper",R&&m.length>0?"results-visible":"results-hidden",m.length===0?"no-results":""),ref:w($,_),onFocus:i(()=>{S.current&&clearTimeout(S.current),b(!0)},"onFocus"),onBlur:i(()=>{S.current=setTimeout(()=>b(!1),250)},"onBlur")},e==null?void 0:e.wrapper)),{children:[D(k,{value:P,placeholder:o,onChange:G,props:d(h({},e==null?void 0:e.searchBar),{input:d(h({},(E=e==null?void 0:e.searchBar)==null?void 0:E.input),{ref:w(Z,(H=(N=e==null?void 0:e.searchBar)==null?void 0:N.input)==null?void 0:H.ref)})})}),D("div",d(h({},x({className:"search-content-wrapper",style:{height:B!=null?"100vh":"auto",maxHeight:B}},e==null?void 0:e.contentWrapper)),{children:U("div",{className:y("content-sizer"),ref:X,children:[D(F,{id:K,locations:R?m:[],onLocationSelected:q=>{t==null||t(q),b(!1)},maxHeight:r,props:e==null?void 0:e.locationList,item:g,itemSize:p}),P.length===0&&R&&a,P.length>0&&m.length===0&&!Y&&u]})}))]}))},"Search");export{De as a};
1
+ import{a as F}from"./chunk-PJTW4EIO.js";import{b as z}from"./chunk-APJ745KC.js";import{a as k}from"./chunk-KWSDRGQ4.js";import{a as I}from"./chunk-UBGODYYH.js";import{a as C}from"./chunk-MJNL6V2O.js";import{c as y,d as w,e as x}from"./chunk-2DQ6S5BX.js";import{a as h,b as d,c as i}from"./chunk-QBYV32KA.js";import{useRef as re,useState as oe}from"react";function M(n,c,t=!1){let o=null,r=0,a=i(function(...l){r++,r===1&&t===!0&&n(...l);let u=i(()=>{(!t||r>1)&&n(...l),o=null,r=0},"later");clearTimeout(o),o=setTimeout(u,c)},"debounced");return a.cancel=function(){o&&(clearTimeout(o),o=null),r=0},a}i(M,"debounce");import{useState as A,useRef as V,useCallback as J,useMemo as ee,useEffect as te}from"react";var O=i((n,c,t={})=>{var g,p;let[o,r]=A(!1),[a,l]=A([]),u=V((g=t.defaultResults)!=null?g:[]),f=J(e=>{u.current=e,l(e)},[l]),v=ee(()=>{var e;return n.length===0?(e=t.defaultResults)!=null?e:[]:o?u.current:a},[a,t.defaultResults,n,o]),s=J(M(e=>c(e).then(f).catch(()=>f([])).finally(()=>r(!1)),(p=t.searchDebounce)!=null?p:0),[c,t.searchDebounce,f,r]);return te(()=>(n.length>0&&(r(!0),s(n)),()=>{s.cancel()}),[n,s]),{results:v,isSearching:o}},"useSearch");import{useEffect as ne,useState as W}from"react";var j=i(()=>{let[n,c]=W(null),[t,o]=W(null);return ne(()=>{if(n===null)return;let r=new ResizeObserver(a=>{a.forEach(l=>{o({width:l.contentRect.width,height:l.contentRect.height})})});return r.observe(n),()=>{r.unobserve(n),r.disconnect()}},[n]),{ref:c,width:t==null?void 0:t.width,height:t==null?void 0:t.height}},"useSize");import{jsx as D,jsxs as U}from"react/jsx-runtime";var K="mappedin__search-location-list",De=i(({value:n,onChange:c,onLocationSelected:t,placeholder:o="Search...",maxHeight:r,defaultContent:a,defaultResults:l=[],noResultsContent:u,searchFn:f,searchDebounce:v=50,resultsVisible:s,item:g,itemSize:p,props:e})=>{var E,N,H;let{value:P,onChange:G}=I({value:n,defaultValue:n!=null?n:"",onChange:c}),S=re(null),[Q,b]=oe(!1),R=s!=null?s:Q,{ref:X,height:B}=j(),{results:m,isSearching:Y}=O(P,f,{defaultResults:a!=null?[]:l,searchDebounce:v}),{ref:Z,activeItemId:L}=z(K,{itemCount:m.length,resetActiveItemOnBlur:!0}),{ref:$}=C("open",R),{ref:_}=C("highlightedLocationId",L!=null?L:"none");return U("div",d(h({},x({className:y("search-wrapper",R&&m.length>0?"results-visible":"results-hidden",m.length===0?"no-results":""),ref:w($,_),onFocus:i(()=>{S.current&&clearTimeout(S.current),b(!0)},"onFocus"),onBlur:i(()=>{S.current=setTimeout(()=>b(!1),250)},"onBlur")},e==null?void 0:e.wrapper)),{children:[D(k,{value:P,placeholder:o,onChange:G,props:d(h({},e==null?void 0:e.searchBar),{input:d(h({},(E=e==null?void 0:e.searchBar)==null?void 0:E.input),{ref:w(Z,(H=(N=e==null?void 0:e.searchBar)==null?void 0:N.input)==null?void 0:H.ref)})})}),D("div",d(h({},x({className:"search-content-wrapper",style:{height:B!=null?"100vh":"auto",maxHeight:B}},e==null?void 0:e.contentWrapper)),{children:U("div",{className:y("content-sizer"),ref:X,children:[D(F,{id:K,locations:R?m:[],onLocationSelected:q=>{t==null||t(q),b(!1)},maxHeight:r,props:e==null?void 0:e.locationList,item:g,itemSize:p}),P.length===0&&R&&a,P.length>0&&m.length===0&&!Y&&u]})}))]}))},"Search");export{De as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-26FGZHQT.js";import"../../chunk-62BOMYLL.js";import"../../chunk-R7WXL3MD.js";import"../../chunk-CRQWZXHX.js";import"../../chunk-URJNJOSC.js";import"../../chunk-CDDMBWBN.js";export{a as FloorSelector};
1
+ import{a}from"../../chunk-DRJQKNCD.js";import"../../chunk-APJ745KC.js";import"../../chunk-UBGODYYH.js";import"../../chunk-MJNL6V2O.js";import"../../chunk-2DQ6S5BX.js";import"../../chunk-QBYV32KA.js";export{a as FloorSelector};
@@ -1 +1 @@
1
- import{a}from"../../chunk-KH6VMLIG.js";import"../../chunk-62BOMYLL.js";import"../../chunk-CRQWZXHX.js";import"../../chunk-URJNJOSC.js";import"../../chunk-CDDMBWBN.js";export{a as LocationList};
1
+ import{a}from"../../chunk-PJTW4EIO.js";import"../../chunk-APJ745KC.js";import"../../chunk-MJNL6V2O.js";import"../../chunk-2DQ6S5BX.js";import"../../chunk-QBYV32KA.js";export{a as LocationList};
@@ -1 +1 @@
1
- import{a}from"../../chunk-QDQNTWFJ.js";import"../../chunk-KH6VMLIG.js";import"../../chunk-62BOMYLL.js";import"../../chunk-IZ3UPPKV.js";import"../../chunk-R7WXL3MD.js";import"../../chunk-CRQWZXHX.js";import"../../chunk-URJNJOSC.js";import"../../chunk-CDDMBWBN.js";export{a as Search};
1
+ import{a}from"../../chunk-UTPUKL5W.js";import"../../chunk-PJTW4EIO.js";import"../../chunk-APJ745KC.js";import"../../chunk-KWSDRGQ4.js";import"../../chunk-UBGODYYH.js";import"../../chunk-MJNL6V2O.js";import"../../chunk-2DQ6S5BX.js";import"../../chunk-QBYV32KA.js";export{a as Search};
@@ -1 +1 @@
1
- import{a}from"../../chunk-IZ3UPPKV.js";import"../../chunk-R7WXL3MD.js";import"../../chunk-CRQWZXHX.js";import"../../chunk-URJNJOSC.js";import"../../chunk-CDDMBWBN.js";export{a as SearchBar};
1
+ import{a}from"../../chunk-KWSDRGQ4.js";import"../../chunk-UBGODYYH.js";import"../../chunk-MJNL6V2O.js";import"../../chunk-2DQ6S5BX.js";import"../../chunk-QBYV32KA.js";export{a as SearchBar};
@@ -1 +1 @@
1
- import{a}from"../../chunk-L2HR4H2L.js";import"../../chunk-URJNJOSC.js";import"../../chunk-CDDMBWBN.js";export{a as ZoomControls};
1
+ import{a}from"../../chunk-6RUAENQ6.js";import"../../chunk-2DQ6S5BX.js";import"../../chunk-QBYV32KA.js";export{a as ZoomControls};
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import{a as x}from"./chunk-L2HR4H2L.js";import{a as t}from"./chunk-26FGZHQT.js";import{a as p}from"./chunk-QDQNTWFJ.js";import{a as m}from"./chunk-KH6VMLIG.js";import{b as r,c as e,d as f}from"./chunk-62BOMYLL.js";import{a as o}from"./chunk-IZ3UPPKV.js";import"./chunk-R7WXL3MD.js";import"./chunk-CRQWZXHX.js";import"./chunk-URJNJOSC.js";import"./chunk-CDDMBWBN.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-6RUAENQ6.js";import{a as t}from"./chunk-DRJQKNCD.js";import{a as p}from"./chunk-UTPUKL5W.js";import{a as m}from"./chunk-PJTW4EIO.js";import{b as r,c as e,d as f}from"./chunk-APJ745KC.js";import{a as o}from"./chunk-KWSDRGQ4.js";import"./chunk-UBGODYYH.js";import"./chunk-MJNL6V2O.js";import"./chunk-2DQ6S5BX.js";import"./chunk-QBYV32KA.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-CDDMBWBN.js";
1
+ import"../chunk-IIQHZPWU.js";import"../chunk-QBYV32KA.js";
@@ -1 +1 @@
1
- import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-CDDMBWBN.js";
1
+ import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-QBYV32KA.js";
@@ -1 +1 @@
1
- import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-CDDMBWBN.js";
1
+ import"../chunk-OU6YBVSW.js";import"../chunk-IIQHZPWU.js";import"../chunk-QBYV32KA.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/react-ui",
3
- "version": "6.17.0-beta.0",
3
+ "version": "6.17.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.17.0"
57
+ "@mappedin/mappedin-js": "^6.17.1"
58
58
  },
59
59
  "devDependencies": {},
60
60
  "volta": {