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