ba-js-common-header 1.0.1 → 1.0.2
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.
|
@@ -14198,10 +14198,10 @@ function UserLanguage(props) {
|
|
|
14198
14198
|
e2.preventDefault();
|
|
14199
14199
|
e2.stopPropagation();
|
|
14200
14200
|
if (code !== selectedLanguage) {
|
|
14201
|
-
dispatch(setUserLanguage(code));
|
|
14202
14201
|
if (typeof handleLanguageChange === "function") {
|
|
14203
14202
|
handleLanguageChange(code);
|
|
14204
14203
|
}
|
|
14204
|
+
dispatch(setUserLanguage(code));
|
|
14205
14205
|
}
|
|
14206
14206
|
dispatch(removeSubMenu(label));
|
|
14207
14207
|
},
|
|
@@ -106,4 +106,4 @@ Expecting `+j.join(", ")+", got '"+this.terminals_[q]+"'":z="Parse error on line
|
|
|
106
106
|
*
|
|
107
107
|
* This source code is licensed under the MIT license found in the
|
|
108
108
|
* LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/var fi=60103,di=60106,Kr=60107,Gr=60108,kr=60114,Qr=60109,qr=60110,Xr=60112,Yr=60113,rs=60120,Jr=60115,Zr=60116,Jf=60121,Zf=60122,ed=60117,td=60129,rd=60131;if(typeof Symbol=="function"&&Symbol.for){var Se=Symbol.for;fi=Se("react.element"),di=Se("react.portal"),Kr=Se("react.fragment"),Gr=Se("react.strict_mode"),kr=Se("react.profiler"),Qr=Se("react.provider"),qr=Se("react.context"),Xr=Se("react.forward_ref"),Yr=Se("react.suspense"),rs=Se("react.suspense_list"),Jr=Se("react.memo"),Zr=Se("react.lazy"),Jf=Se("react.block"),Zf=Se("react.server.block"),ed=Se("react.fundamental"),td=Se("react.debug_trace_mode"),rd=Se("react.legacy_hidden")}function Qe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fi:switch(e=e.type,e){case Kr:case kr:case Gr:case Yr:case rs:return e;default:switch(e=e&&e.$$typeof,e){case qr:case Xr:case Zr:case Jr:case Qr:return e;default:return t}}case di:return t}}}var e4=Qr,t4=fi,r4=Xr,n4=Kr,i4=Zr,a4=Jr,o4=di,s4=kr,u4=Gr,c4=Yr;pe.ContextConsumer=qr,pe.ContextProvider=e4,pe.Element=t4,pe.ForwardRef=r4,pe.Fragment=n4,pe.Lazy=i4,pe.Memo=a4,pe.Portal=o4,pe.Profiler=s4,pe.StrictMode=u4,pe.Suspense=c4,pe.isAsyncMode=function(){return!1},pe.isConcurrentMode=function(){return!1},pe.isContextConsumer=function(e){return Qe(e)===qr},pe.isContextProvider=function(e){return Qe(e)===Qr},pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi},pe.isForwardRef=function(e){return Qe(e)===Xr},pe.isFragment=function(e){return Qe(e)===Kr},pe.isLazy=function(e){return Qe(e)===Zr},pe.isMemo=function(e){return Qe(e)===Jr},pe.isPortal=function(e){return Qe(e)===di},pe.isProfiler=function(e){return Qe(e)===kr},pe.isStrictMode=function(e){return Qe(e)===Gr},pe.isSuspense=function(e){return Qe(e)===Yr},pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kr||e===kr||e===td||e===Gr||e===Yr||e===rs||e===rd||typeof e=="object"&&e!==null&&(e.$$typeof===Zr||e.$$typeof===Jr||e.$$typeof===Qr||e.$$typeof===qr||e.$$typeof===Xr||e.$$typeof===ed||e.$$typeof===Jf||e[0]===Zf)},pe.typeOf=Qe;function nd(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function id(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ns(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return id(r.overflowY,t)||id(r.overflowX,t)||function(n){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)}(e)}return!1}function hi(e,t,r,n,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=r||o>=t&&s>=r?a-e-n:o>t&&s<r||a<e&&s>r?o-t+i:0}function l4(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l=typeof o=="function"?o:function(W){return W!==o};if(!nd(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,h=[],g=e;nd(g)&&l(g);){if((g=g.parentElement)===u){h.push(g);break}g!=null&&g===document.body&&ns(g)&&!ns(document.documentElement)||g!=null&&ns(g,s)&&h.push(g)}for(var y=r.visualViewport?r.visualViewport.width:innerWidth,w=r.visualViewport?r.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,P=window.scrollY||pageYOffset,p=e.getBoundingClientRect(),m=p.height,c=p.width,f=p.top,v=p.right,b=p.bottom,I=p.left,R=i==="start"||i==="nearest"?f:i==="end"?b:f+m/2,_=a==="center"?I+c/2:a==="end"?v:I,L=[],A=0;A<h.length;A++){var B=h[A],d=B.getBoundingClientRect(),U=d.height,H=d.width,V=d.top,ae=d.right,oe=d.bottom,q=d.left;if(n==="if-needed"&&f>=0&&I>=0&&b<=w&&v<=y&&f>=V&&b<=oe&&I>=q&&v<=ae)return L;var ce=getComputedStyle(B),ee=parseInt(ce.borderLeftWidth,10),x=parseInt(ce.borderTopWidth,10),C=parseInt(ce.borderRightWidth,10),E=parseInt(ce.borderBottomWidth,10),T=0,D=0,k="offsetWidth"in B?B.offsetWidth-B.clientWidth-ee-C:0,j="offsetHeight"in B?B.offsetHeight-B.clientHeight-x-E:0;if(u===B)T=i==="start"?R:i==="end"?R-w:i==="nearest"?hi(P,P+w,w,x,E,P+R,P+R+m,m):R-w/2,D=a==="start"?_:a==="center"?_-y/2:a==="end"?_-y:hi(O,O+y,y,ee,C,O+_,O+_+c,c),T=Math.max(0,T+P),D=Math.max(0,D+O);else{T=i==="start"?R-V-x:i==="end"?R-oe+E+j:i==="nearest"?hi(V,oe,U,x,E+j,R,R+m,m):R-(V+U/2)+j/2,D=a==="start"?_-q-ee:a==="center"?_-(q+H/2)+k/2:a==="end"?_-ae+C+k:hi(q,ae,H,ee,C+k,_,_+c,c);var z=B.scrollLeft,F=B.scrollTop;R+=F-(T=Math.max(0,Math.min(F+T,B.scrollHeight-U+j))),_+=z-(D=Math.max(0,Math.min(z+D,B.scrollWidth-H+k)))}L.push({el:B,top:T,left:D})}return L}var f4=0;function ad(){}function d4(e,t){if(!!e){var r=l4(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});r.forEach(function(n){var i=n.el,a=n.top,o=n.left;i.scrollTop=a,i.scrollLeft=o})}}function od(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function sd(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];n(),r=setTimeout(function(){r=null,e.apply(void 0,o)},t)}return i.cancel=n,i}function At(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return s&&s.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function en(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function h4(){return String(f4++)}function p4(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function is(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ud(t,n)?t[n]:e[n],r},{})}function ud(e,t){return e[t]!==void 0}function g4(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function as(e,t,r,n,i){if(i===void 0&&(i=!0),r===0)return-1;var a=r-1;(typeof t!="number"||t<0||t>=r)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=tn(e,o,r,n,i);return s===-1?t>=r?-1:t:s}function tn(e,t,r,n,i){var a=n(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<r;o++)if(!n(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!n(s).hasAttribute("disabled"))return s;return i?e>0?tn(1,0,r,n,!1):tn(-1,r-1,r,n,!1):-1}function cd(e,t,r,n){return n===void 0&&(n=!0),t.some(function(i){return i&&(od(i,e,r)||n&&od(i,r.document.activeElement,r))})}var v4=sd(function(e){ld(e).textContent=""},500);function m4(e,t){var r=ld(t);!e||(r.textContent=e,v4(t))}function ld(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var y4=["isInitialMount","highlightedIndex","items","environment"],fd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function b4(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){w4(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(ve({type:i},a))}function w4(e,t,r,n){var i=t.props,a=t.type,o="on"+os(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](ve({type:a},n))}function _4(e,t){return t.changes}function O4(e){var t=e.selectedItem,r=e.itemToString;return t?r(t)+" has been selected.":""}var P4=sd(function(e,t){m4(e(),t)},200),x4=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?S.useLayoutEffect:S.useEffect;function I4(e){var t=e.id,r=t===void 0?"downshift-"+h4():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,l=S.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(u){return r+"-item-"+u},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"});return l.current}function S4(e,t,r){return e!==void 0?e:r.length===0?-1:r.indexOf(t)}function E4(e){return e?String(e):""}function os(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function dd(e){var t=S.useRef(e);return t.current=e,t}function C4(e,t,r){var n=S.useRef(),i=S.useRef(),a=S.useCallback(function(y,w){i.current=w,y=is(y,w.props);var O=e(y,w),P=w.props.stateReducer(y,ve({},w,{changes:O}));return P},[e]),o=S.useReducer(a,t),s=o[0],l=o[1],u=dd(r),h=S.useCallback(function(y){return l(ve({props:u.current},y))},[u]),g=i.current;return S.useEffect(function(){g&&n.current&&n.current!==s&&b4(g,is(n.current,g.props),s),n.current=s},[s,r,g]),[s,h]}var rn={itemToString:E4,stateReducer:_4,getA11ySelectionMessage:O4,scrollIntoView:d4,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};function tt(e,t,r){r===void 0&&(r=fd);var n="default"+os(t);return n in e?e[n]:r[t]}function pi(e,t,r){if(r===void 0&&(r=fd),t in e)return e[t];var n="initial"+os(t);return n in e?e[n]:tt(e,t,r)}function M4(e){var t=pi(e,"selectedItem"),r=pi(e,"isOpen"),n=pi(e,"highlightedIndex"),i=pi(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.indexOf(t):n,isOpen:r,selectedItem:t,inputValue:i}}function gi(e,t,r,n){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return i.length===0?-1:a!==void 0&&l===a?a:o!==void 0?o:s?r===0?i.indexOf(s):as(r,i.indexOf(s),i.length,n,!1):r===0?-1:r<0?i.length-1:0}function R4(e,t,r,n){var i=S.useRef({isMouseDown:!1,isTouchMove:!1});return S.useEffect(function(){var a=function(){i.current.isMouseDown=!0},o=function(g){i.current.isMouseDown=!1,e&&!cd(g.target,t.map(function(y){return y.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},u=function(g){e&&!i.current.isTouchMove&&!cd(g.target,t.map(function(y){return y.current}),r,!1)&&n()};return r.addEventListener("mousedown",a),r.addEventListener("mouseup",o),r.addEventListener("touchstart",s),r.addEventListener("touchmove",l),r.addEventListener("touchend",u),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseup",o),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",l),r.removeEventListener("touchend",u)}},[e,r]),i}var A4=function(){return ad};function hd(e,t,r){var n=r.isInitialMount,i=r.highlightedIndex,a=r.items,o=r.environment,s=Nt(r,y4);S.useEffect(function(){n||P4(function(){return e(ve({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function T4(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=S.useRef(!0);return x4(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var $4=ad;function N4(e,t,r){var n=t.type,i=t.props,a;switch(n){case r.ItemMouseMove:a={highlightedIndex:t.index};break;case r.MenuMouseLeave:a={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:gi(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:gi(i,e,0)};break;case r.FunctionCloseMenu:a={isOpen:!1};break;case r.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case r.FunctionSetInputValue:a={inputValue:t.inputValue};break;case r.FunctionReset:a={highlightedIndex:tt(i,"highlightedIndex"),isOpen:tt(i,"isOpen"),selectedItem:tt(i,"selectedItem"),inputValue:tt(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ve({},e,a)}N.array.isRequired,N.func,N.func,N.func,N.bool,N.number,N.number,N.number,N.bool,N.bool,N.bool,N.any,N.any,N.any,N.string,N.string,N.string,N.func,N.string,N.func,N.func,N.func,N.func,N.func,N.shape({addEventListener:N.func,removeEventListener:N.func,document:N.shape({getElementById:N.func,activeElement:N.any,body:N.any})});function D4(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}bn(bn({},rn),{getA11yStatusMessage:D4});var ss=0,us=1,cs=2,ls=3,fs=4,ds=5,hs=6,vi=7,pd=8,gd=9,ps=10,vd=11,md=12,yd=13,bd=14,wd=15,gs=16,_d=17,Od=18,vs=19,Pd=Object.freeze({__proto__:null,InputKeyDownArrowDown:ss,InputKeyDownArrowUp:us,InputKeyDownEscape:cs,InputKeyDownHome:ls,InputKeyDownEnd:fs,InputKeyDownEnter:ds,InputChange:hs,InputBlur:vi,MenuMouseLeave:pd,ItemMouseMove:gd,ItemClick:ps,ToggleButtonClick:vd,FunctionToggleMenu:md,FunctionOpenMenu:yd,FunctionCloseMenu:bd,FunctionSetHighlightedIndex:wd,FunctionSelectItem:gs,FunctionSetInputValue:_d,FunctionReset:Od,ControlledPropUpdatedSelectedItem:vs});function F4(e){var t=M4(e),r=t.selectedItem,n=t.inputValue;return n===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(n=e.itemToString(r)),ve({},t,{inputValue:n})}N.array.isRequired,N.func,N.func,N.func,N.bool,N.number,N.number,N.number,N.bool,N.bool,N.bool,N.any,N.any,N.any,N.string,N.string,N.string,N.string,N.string,N.string,N.func,N.string,N.string,N.func,N.func,N.func,N.func,N.func,N.func,N.shape({addEventListener:N.func,removeEventListener:N.func,document:N.shape({getElementById:N.func,activeElement:N.any,body:N.any})});function L4(e,t,r){var n=S.useRef(),i=C4(e,t,r),a=i[0],o=i[1];return S.useEffect(function(){ud(r,"selectedItem")&&(n.current!==r.selectedItem&&o({type:vs,inputValue:r.itemToString(r.selectedItem)}),n.current=a.selectedItem===n.current?r.selectedItem:a.selectedItem)}),[is(a,r),o]}var j4=ve({},rn,{getA11yStatusMessage:p4,circularNavigation:!0});function W4(e,t){var r=t.type,n=t.props,i=t.shiftKey,a;switch(r){case ps:a={isOpen:tt(n,"isOpen"),highlightedIndex:tt(n,"highlightedIndex"),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case ss:e.isOpen?a={highlightedIndex:as(i?5:1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:gi(n,e,1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case us:e.isOpen?a={highlightedIndex:as(i?-5:-1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:gi(n,e,-1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case ds:a=ve({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:n.items[e.highlightedIndex],isOpen:tt(n,"isOpen"),highlightedIndex:tt(n,"highlightedIndex"),inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case cs:a=ve({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case ls:a={highlightedIndex:tn(1,0,n.items.length,t.getItemNodeFromIndex,!1)};break;case fs:a={highlightedIndex:tn(-1,n.items.length-1,n.items.length,t.getItemNodeFromIndex,!1)};break;case vi:a=ve({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case hs:a={isOpen:!0,highlightedIndex:tt(n,"highlightedIndex"),inputValue:t.inputValue};break;case gs:a={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case vs:a={inputValue:t.inputValue};break;default:return N4(e,t,Pd)}return ve({},e,a)}var H4=["onMouseLeave","refKey","ref"],V4=["item","index","refKey","ref","onMouseMove","onClick","onPress"],z4=["onClick","onPress","refKey","ref"],U4=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],B4=["refKey","ref"];xd.stateChangeTypes=Pd;function xd(e){e===void 0&&(e={});var t=ve({},j4,e),r=t.initialIsOpen,n=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,l=t.getA11ySelectionMessage,u=t.itemToString,h=F4(t),g=L4(W4,h,t),y=g[0],w=g[1],O=y.isOpen,P=y.highlightedIndex,p=y.selectedItem,m=y.inputValue,c=S.useRef(null),f=S.useRef({}),v=S.useRef(null),b=S.useRef(null),I=S.useRef(null),R=S.useRef(!0),_=I4(t),L=S.useRef(),A=dd({state:y,props:t}),B=S.useCallback(function(F){return f.current[_.getItemId(F)]},[_]);hd(s,[O,P,m,i],ve({isInitialMount:R.current,previousResultCount:L.current,items:i,environment:o,itemToString:u},y)),hd(l,[p],ve({isInitialMount:R.current,previousResultCount:L.current,items:i,environment:o,itemToString:u},y));var d=T4({menuElement:c.current,highlightedIndex:P,isOpen:O,itemRefs:f,scrollIntoView:a,getItemNodeFromIndex:B});$4({isInitialMount:R.current,props:t,state:y}),S.useEffect(function(){var F=r||n||O;F&&v.current&&v.current.focus()},[]),S.useEffect(function(){R.current||(L.current=i.length)});var U=R4(O,[I,c,b],o,function(){w({type:vi,selectItem:!1})}),H=A4();S.useEffect(function(){R.current=!1},[]),S.useEffect(function(){O||(f.current={})},[O]);var V=S.useMemo(function(){return{ArrowDown:function(W){W.preventDefault(),w({type:ss,shiftKey:W.shiftKey,getItemNodeFromIndex:B})},ArrowUp:function(W){W.preventDefault(),w({type:us,shiftKey:W.shiftKey,getItemNodeFromIndex:B})},Home:function(W){!A.current.state.isOpen||(W.preventDefault(),w({type:ls,getItemNodeFromIndex:B}))},End:function(W){!A.current.state.isOpen||(W.preventDefault(),w({type:fs,getItemNodeFromIndex:B}))},Escape:function(){var W=A.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&w({type:cs})},Enter:function(W){var G=A.current.state;!G.isOpen||G.highlightedIndex<0||W.which===229||(W.preventDefault(),w({type:ds,getItemNodeFromIndex:B}))}}},[w,A,B]),ae=S.useCallback(function(F){return ve({id:_.labelId,htmlFor:_.inputId},F)},[_]),oe=S.useCallback(function(F,W){var G,Q=F===void 0?{}:F,re=Q.onMouseLeave,K=Q.refKey,de=K===void 0?"ref":K,se=Q.ref,te=Nt(Q,H4),ye=W===void 0?{}:W;return ye.suppressRefError,ve((G={},G[de]=en(se,function(xe){c.current=xe}),G.id=_.menuId,G.role="listbox",G["aria-labelledby"]=_.labelId,G.onMouseLeave=At(re,function(){w({type:pd})}),G),te)},[w,H,_]),q=S.useCallback(function(F){var W,G,Q=F===void 0?{}:F,re=Q.item,K=Q.index,de=Q.refKey,se=de===void 0?"ref":de,te=Q.ref,ye=Q.onMouseMove,xe=Q.onClick;Q.onPress;var Ee=Nt(Q,V4),Fe=A.current,we=Fe.props,Tt=Fe.state,bt=S4(K,re,we.items);if(bt<0)throw new Error("Pass either item or item index in getItemProps!");var an="onClick",st=xe,rt=function(){K!==Tt.highlightedIndex&&(d.current=!1,w({type:gd,index:K}))},qe=function(){w({type:ps,index:K}),v.current&&v.current.focus()};return ve((W={},W[se]=en(te,function(We){We&&(f.current[_.getItemId(bt)]=We)}),W.role="option",W["aria-selected"]=""+(bt===Tt.highlightedIndex),W.id=_.getItemId(bt),W),!Ee.disabled&&(G={onMouseMove:At(ye,rt)},G[an]=At(st,qe),G),Ee)},[w,A,d,_]),ce=S.useCallback(function(F){var W,G=F===void 0?{}:F,Q=G.onClick;G.onPress;var re=G.refKey,K=re===void 0?"ref":re,de=G.ref,se=Nt(G,z4),te=function(){w({type:vd}),!A.current.state.isOpen&&v.current&&v.current.focus()};return ve((W={},W[K]=en(de,function(ye){b.current=ye}),W.id=_.toggleButtonId,W.tabIndex=-1,W),!se.disabled&&ve({},{onClick:At(Q,te)}),se)},[w,A,_]),ee=S.useCallback(function(F,W){var G,Q=F===void 0?{}:F,re=Q.onKeyDown,K=Q.onChange,de=Q.onInput,se=Q.onBlur;Q.onChangeText;var te=Q.refKey,ye=te===void 0?"ref":te,xe=Q.ref,Ee=Nt(Q,U4),Fe=W===void 0?{}:W;Fe.suppressRefError;var we=A.current.state,Tt=function(wt){var $t=g4(wt);$t&&V[$t]&&V[$t](wt)},bt=function(wt){w({type:hs,inputValue:wt.target.value})},an=function(){we.isOpen&&!U.current.isMouseDown&&w({type:vi,selectItem:!0})},st="onChange",rt={};if(!Ee.disabled){var qe;rt=(qe={},qe[st]=At(K,de,bt),qe.onKeyDown=At(re,Tt),qe.onBlur=At(se,an),qe)}return ve((G={},G[ye]=en(xe,function(We){v.current=We}),G.id=_.inputId,G["aria-autocomplete"]="list",G["aria-controls"]=_.menuId,G),we.isOpen&&we.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(we.highlightedIndex)},{"aria-labelledby":_.labelId,autoComplete:"off",value:we.inputValue},rt,Ee)},[w,V,A,U,H,_]),x=S.useCallback(function(F,W){var G,Q=F===void 0?{}:F,re=Q.refKey,K=re===void 0?"ref":re,de=Q.ref,se=Nt(Q,B4),te=W===void 0?{}:W;return te.suppressRefError,ve((G={},G[K]=en(de,function(ye){I.current=ye}),G.role="combobox",G["aria-haspopup"]="listbox",G["aria-owns"]=_.menuId,G["aria-expanded"]=A.current.state.isOpen,G),se)},[A,H,_]),C=S.useCallback(function(){w({type:md})},[w]),E=S.useCallback(function(){w({type:bd})},[w]),T=S.useCallback(function(){w({type:yd})},[w]),D=S.useCallback(function(F){w({type:wd,highlightedIndex:F})},[w]),k=S.useCallback(function(F){w({type:gs,selectedItem:F})},[w]),j=S.useCallback(function(F){w({type:_d,inputValue:F})},[w]),z=S.useCallback(function(){w({type:Od})},[w]);return{getItemProps:q,getLabelProps:ae,getMenuProps:oe,getInputProps:ee,getComboboxProps:x,getToggleButtonProps:ce,toggleMenu:C,openMenu:T,closeMenu:E,setHighlightedIndex:D,setInputValue:j,selectItem:k,reset:z,highlightedIndex:P,isOpen:O,selectedItem:p,inputValue:m}}function K4(e){var t=e.removedSelectedItem,r=e.itemToString;return r(t)+" has been removed."}N.array,N.array,N.array,N.func,N.func,N.func,N.number,N.number,N.number,N.func,N.func,N.string,N.string,N.shape({addEventListener:N.func,removeEventListener:N.func,document:N.shape({getElementById:N.func,activeElement:N.any,body:N.any})}),rn.itemToString,rn.stateReducer,rn.environment;function ms(e){let t,r,n;try{t=e[0],[r,n]=e[1].split("_").map(i=>+i)}catch{}return{name:t,hotelId:r,guideId:n}}const nn=["0_0"];function ys(e){const{hotels:t,defaultHotel:r,selectedHotel:n,handleHotelChange:i,subMenuItem:a}=e,{i18n:o}=yt();o&&nn.length===1&&nn.unshift(o.translate("header.no_matches_please_try_again").fetch());const[s,l]=S.useState([]),[u,h]=S.useState(r&&r[0]||""),{subMenus:g}=ie(I=>I.headerInfo),y=Be(),w=g.find(I=>I===a),O=I=>I?I[0]:"",{isOpen:P,getMenuProps:p,getInputProps:m,getComboboxProps:c,highlightedIndex:f,getItemProps:v,closeMenu:b}=xd({items:s,itemToString:O,initialSelectedItem:r,selectedItem:n,initialInputValue:r&&r[0]||"",onSelectedItemChange:({selectedItem:I})=>{Ce.unstable_batchedUpdates(()=>{I&&I!==nn&&y(Ou(I)),y(Wi(a))}),typeof i=="function"&&I&&I!==nn&&i(ms(I)),document.querySelector("#hd-property-input").blur()},onInputValueChange:({inputValue:I})=>{const R=I.toLowerCase(),_=t.filter(L=>R?O(L).toLowerCase().trim().match(`(^|\\s)${R}`):!1);_.length>0?l(_):R?l([nn]):(l([]),b()),h(I)}});return M("ul",{className:He("col-12","col-lg","py-3","px-lg-0","py-lg-0","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":w}),children:M("li",{children:Z("div",{id:"hd-property-search",children:[M("label",{htmlFor:"hd-property-input",className:"form-label d-lg-none visually-hidden",children:"Select property"}),Z("div",fe(ne({id:"hd-property-input-container"},c()),{children:[M("input",fe(ne({},m({onChange:I=>{const R=I.target.selectionStart;setTimeout(()=>{I.target.setSelectionRange(R,R)},0)},onFocus:I=>{document.querySelector("#hd-property-search").classList.add("hd-active")},onBlur:I=>{document.querySelector("#hd-property-search").classList.remove("hd-active");const{name:R}=ms(n);I.target.value!==R&&h(R)}})),{type:"text",className:"form-control",placeholder:o&&o.translate("header.type_property_name").fetch(),id:"hd-property-input",value:u})),M("ul",fe(ne({className:"mb-0 list-unstyled shadow"},p()),{children:P&&s.map((I,R)=>Z("li",fe(ne({className:He("px-3","py-3","py-lg-2",{"hd-active":f===R})},v({hotel:I,index:R})),{children:[I[0],I===n&&M(Pe.Tick,{className:"hd-icon hd-icon-tick float-end"})]}),I[1]))})),M(Pe.Search,{className:"hd-icon hd-icon-search"}),M(Pe.Close,{className:"hd-icon hd-icon-close",onClick:()=>{h(""),b()},onMouseDown:I=>{I.preventDefault()}})]}))]})})})}ys.propTypes={hotels:X.exports.arrayOf(X.exports.arrayOf(X.exports.string)).isRequired,defaultHotel:X.exports.arrayOf(X.exports.string),selectedHotel:X.exports.arrayOf(X.exports.string),handleHotelChange:X.exports.func,subMenuItem:X.exports.oneOfType([X.exports.string,X.exports.number]).isRequired},ys.defaultProps={defaultHotel:void 0,selectedHotel:void 0,handleHotelChange:void 0};function G4(e){const{handleHotelChange:t}=e,[r,n]=S.useState(""),i=ie(c=>c.userInfo),{isOpen:a,isMobileOrTablet:o}=ie(c=>c.headerInfo),{propertySelector:s}=ie(c=>c.titleBar),{items:l,defaultHotel:u,selectedHotel:h}=ie(c=>c.hotels),[g,{height:y}]=Oi(),w=Lr(!o||a,{from:{height:0},enter:{height:y},leave:{height:0},update:{height:y},config:fe(ne({},Kt.stiff),{clamp:!0})}),{i18n:O}=yt(),P=Be();S.useEffect(()=>{(async()=>{if(s){let{type:c,items:f=[]}=s;if(c==="fetch")try{f=await(await fetch(f)).json()}catch(b){console.error(b)}const v=f.find(b=>{const[I,R]=b[1].split("_").map(_=>+_);return i.hotelId===I&&i.guideId===R});Ce.unstable_batchedUpdates(()=>{P(wp(f)),v&&(P(_p(v)),P(Ou(v)))})}})()},[s]),S.useEffect(()=>{if(i.group)n(i.group);else if(h){const{name:c}=ms(h);n(c)}},[i,h]);const{label:p}=s||{},m=i.group&&l.length>1;return w((c,f)=>f&&M(kt.div,{className:"col-12 col-lg me-lg-auto px-0 order-lg-3",id:"hd-property",style:o?fe(ne({},c),{display:"block"}):{},children:M("ul",{ref:g,className:"row list-unstyled mx-0 mb-0 hd-nav-first-level",children:M("li",{className:"col-lg-auto align-items-center",onClick:()=>{m&&P(xt(p))},children:Z("div",{className:"row py-lg-0 align-items-center",children:[Z("div",{className:"col col-lg-auto py-2 py-lg-0",id:i.group?"hd-group-property-name":"hd-hotel-property-name",children:[M("span",{className:"ps-lg-3 py-3 py-lg-0 d-block",id:i.group?"hd-group-name":"hd-hotel-name",children:r}),m&&Z("div",{className:"row me-0 d-lg-none align-items-center",children:[Z("div",{className:"col",children:[M("small",{className:"pt-2",children:O&&O.translate(p).fetch()}),M("span",{className:"d-block",id:"hd-property-name",children:h&&h[0]||u&&u[0]})]}),M("div",{className:"col-auto p-2 d-block",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]})]}),m&&M(ys,{hotels:l,defaultHotel:u,selectedHotel:h,handleHotelChange:t,subMenuItem:p})]})})})}))}function k4(){const{i18n:e}=yt(),{subMenus:t}=ie(s=>s.headerInfo),{help:r}=ie(s=>s.titleBar),n=Be();if(!r)return null;const{label:i,children:a}=r,o=t.find(s=>s===i);return Z("li",{className:"col-lg-auto p-0",onClick:()=>{n(xt(i))},children:[Z("div",{className:"row m-0 py-lg-0 align-items-center",children:[M("div",{className:"col py-2 py-lg-0 px-0",children:Z("span",{className:"ps-lg-3 pe-3 py-2 d-block",children:[M("span",{className:"ps-lg-2",children:e&&e.translate(i).fetch()}),M("span",{className:"d-none d-lg-inline ms-2",children:M(Pe.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})}),M("div",{className:"col-auto p-2 d-block d-lg-none",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),M("ul",{className:He("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":o}),children:a.map(({href:s,label:l})=>M("li",{children:M("div",{className:"row m-0 py-lg-0 align-items-center",children:M("div",{className:"col py-2 py-lg-0 px-0",children:M("a",fe(ne({className:"px-lg-4 py-2 d-block",href:s},Zt(s)&&{target:"_blank"}),{children:e&&e.translate(l).fetch()}))})})},Wr()))})]})}function Q4(){const{i18n:e}=yt(),{subMenus:t}=ie(l=>l.headerInfo),{user:r}=ie(l=>l.titleBar),{username:n}=ie(l=>l.userInfo),i=Be();if(!r)return null;const{label:a,children:o}=r,s=t.find(l=>l===a);return Z("li",{className:"col-lg-auto p-0",onClick:()=>{i(xt(a))},children:[Z("div",{className:"row m-0 py-lg-0 align-items-center",children:[Z("div",{className:"col py-2 py-lg-0 px-0",children:[M("small",{className:"pt-2 d-lg-none",children:e&&e.translate(a).fetch()}),Z("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[M("span",{className:"d-none d-lg-inline",children:M(Pe.User,{className:"hd-icon hd-icon-user"})}),M("span",{className:"ps-lg-2",children:n}),M("span",{className:"d-none d-lg-inline ms-2",children:M(Pe.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),M("div",{className:"col-auto p-2 d-block d-lg-none",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),M("ul",{className:He("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":s}),children:o.map(({href:l,label:u})=>M("li",{children:M("div",{className:"row m-0 py-lg-0 align-items-center",children:M("div",{className:"col py-2 py-lg-0 px-0",children:M("a",fe(ne({className:"px-lg-4 py-2 d-block",href:l},Zt(l)&&{target:"_blank"}),{children:e&&e.translate(u).fetch()}))})})},Wr()))})]})}function bs(e){const{handleLanguageChange:t}=e,[r,n]=S.useState(),[i,a]=S.useState([]),o=ie(w=>w.userLanguage),{languageSelector:s}=ie(w=>w.titleBar),{subMenus:l}=ie(w=>w.headerInfo),u=Be(),{i18n:h}=yt();if(S.useEffect(()=>{if(s){const{children:w}=s;if(Array.isArray(w)){const O=w.map(({code:P,label:p})=>{const m=new Intl.DisplayNames([P],{type:"language"});return{code:P,name:p||m.of(P)}});O.length>0&&a(O)}}},[s]),S.useEffect(()=>{var w;if(o){const O=(w=i.find(({code:P})=>P===o))==null?void 0:w.name;O&&n(O)}},[o,i]),!s)return null;const{label:g}=s,y=l.find(w=>w===g);return Z("li",{className:"col-lg-auto p-0",onClick:()=>{u(xt(g))},children:[Z("div",{className:"row m-0 py-lg-0 align-items-center",children:[Z("div",{className:"col py-2 py-lg-0 px-0",children:[M("small",{className:"pt-2 d-lg-none",children:h&&h.translate(g).fetch()}),Z("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[r,M("span",{className:"d-none d-lg-inline ms-2",children:M(Pe.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),M("div",{className:"col-auto p-2 d-block d-lg-none",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),M("ul",{className:He("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":y}),children:i.map(({code:w,name:O})=>M("li",{children:M("div",{className:"row m-0 py-lg-0 align-items-center",children:M("div",{className:"col py-2 py-lg-0 px-0",children:M("a",{className:"px-lg-4 py-2 d-block",href:"#",onClick:P=>{P.preventDefault(),P.stopPropagation(),w!==o&&(u(mu(w)),typeof t=="function"&&t(w)),u(Wi(g))},children:O},w)})})},Wr()))})]})}bs.propTypes={handleLanguageChange:X.exports.func},bs.defaultProps={handleLanguageChange:void 0};function q4(){const[e,t]=S.useState(),{isOpen:r,subMenus:n,isMobileOrTablet:i}=ie(u=>u.headerInfo),{items:a}=ie(u=>u.menuItems),o=Lr(n.length>0,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:Kt.stiff}),s=Be(),{i18n:l}=yt();return S.useEffect(()=>{var h;const u=((h=a.find(g=>g.id===n[n.length-1]))==null?void 0:h.label)||n[n.length-1];u&&t(u)},[a,n]),!i||!r?null:o((u,h)=>h&&Z(kt.div,{className:"col py-2 py-lg-0",id:"hd-submenu-title-container",style:u,children:[M("span",{id:"hd-submenu-back",onClick:()=>{s(Wi(n[n.length-1]))},children:M(Pe.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"})}),M("span",{className:"ms-3",id:"hd-submenu-title",children:e&&l&&l.translate(e).fetch()})]}))}function ws(e){const{handleHotelChange:t,handleLanguageChange:r}=e,{isOpen:n,isMobileOrTablet:i}=ie(l=>l.headerInfo),[a,{height:o}]=Oi(),s=Lr(!i||n,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:fe(ne({},Kt.stiff),{clamp:!0})});return M("div",{className:"container-xxl",id:"hd-top-container",children:Z("div",{className:"row align-items-center pb-lg-2",id:"hd-header-container",children:[M(q4,{}),M(yg,{}),M(Y3,{}),M(Z3,{}),M(G4,{handleHotelChange:t}),s((l,u)=>u&&M(kt.div,{className:"col-12 col-lg-auto ps-lg-0 align-middle order-lg-5",id:"hd-nav-container-top",style:i?fe(ne({},l),{display:"block"}):{},children:M("nav",{ref:a,id:"hd-top-nav",children:Z("ul",{className:"row list-unstyled mb-0 hd-nav-first-level",children:[M(k4,{}),M(bs,{handleLanguageChange:r}),M(Q4,{})]})})}))]})})}ws.propTypes={handleHotelChange:X.exports.func,handleLanguageChange:X.exports.func},ws.defaultProps={handleHotelChange:void 0,handleLanguageChange:void 0};function X4(){const[e,t]=S.useState([]),{items:r,selectedItem:n}=ie(a=>a.menuItems),{i18n:i}=yt();return S.useEffect(()=>{if(n){const a=[];let o=r.find(s=>s.id===n);do a.push(o),o=r.find(s=>s.id===o.parentId);while(o);t(a.reverse())}},[n]),e.length===0?null:M("div",{className:"container-xxl mb-3",children:M("nav",{"aria-label":"breadcrumb",id:"hd-breadcrumb",children:Z("ol",{className:"breadcrumb mb-0",children:[M("li",{className:"breadcrumb-item active",children:i&&i.translate(e[0].label).fetch()}),e.length>=2&&M("li",{className:"breadcrumb-item active",children:i&&i.translate(e[1].label).fetch()}),e.length===3&&M("li",{className:"breadcrumb-item active",children:i&&i.translate(e[2].label).fetch()})]})})})}function _s(e){const{config:t,userInfo:r,userLanguage:n,i18nFeed:i}=e,{isOpen:a,subMenus:o,isMobileOrTablet:s}=ie(p=>p.headerInfo),{showNotifications:l}=ie(p=>p.notifications),u=S.useRef(null),h=Be();S.useEffect(()=>{n&&h(mu(n)),r&&h(lp(r)),i&&h(gp(i))},[]);const{width:g}=Eh();S.useEffect(()=>{g&&h(hp(g))},[g]);const{headerConfig:y={},error:w}=Zp(t),{titleBar:O,menuBar:P}=y;return S.useEffect(()=>{O&&h(up(O))},[O]),S.useEffect(()=>{P&&h(op(P))},[P]),S.useEffect(()=>{u&&o.length>0&&(u.current.scrollTop=0)},[o.length]),w?(console.error(w),null):Z("div",{children:[Z("div",{ref:u,id:"hd-container",className:He("container-fluid","px-0 fixed-top",{"hd-menu-opened":a,"hd-overflow-hidden":o.length>0}),style:fe(ne(ne({},s&&!a&&{overflow:"hidden"}),l&&{overflow:"visible"}),{maxWidth:"none"}),children:[M(ws,ne({},e)),M(X3,{})]}),M(X4,{})]})}_s.propTypes={userInfo:X.exports.shape({username:X.exports.string,hotelId:X.exports.number,guideId:X.exports.number}),userLanguage:X.exports.string,config:X.exports.string.isRequired,i18nFeed:X.exports.string},_s.defaultProps={userInfo:void 0,userLanguage:"en",i18nFeed:void 0};const Id=Ip(_s);function Y4(e,t){Ce.render(M(Id,ne({},t)),e)}_e.Header=Id,_e.renderHeader=Y4,Object.defineProperties(_e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
109
|
+
*/var fi=60103,di=60106,Kr=60107,Gr=60108,kr=60114,Qr=60109,qr=60110,Xr=60112,Yr=60113,rs=60120,Jr=60115,Zr=60116,Jf=60121,Zf=60122,ed=60117,td=60129,rd=60131;if(typeof Symbol=="function"&&Symbol.for){var Se=Symbol.for;fi=Se("react.element"),di=Se("react.portal"),Kr=Se("react.fragment"),Gr=Se("react.strict_mode"),kr=Se("react.profiler"),Qr=Se("react.provider"),qr=Se("react.context"),Xr=Se("react.forward_ref"),Yr=Se("react.suspense"),rs=Se("react.suspense_list"),Jr=Se("react.memo"),Zr=Se("react.lazy"),Jf=Se("react.block"),Zf=Se("react.server.block"),ed=Se("react.fundamental"),td=Se("react.debug_trace_mode"),rd=Se("react.legacy_hidden")}function Qe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fi:switch(e=e.type,e){case Kr:case kr:case Gr:case Yr:case rs:return e;default:switch(e=e&&e.$$typeof,e){case qr:case Xr:case Zr:case Jr:case Qr:return e;default:return t}}case di:return t}}}var e4=Qr,t4=fi,r4=Xr,n4=Kr,i4=Zr,a4=Jr,o4=di,s4=kr,u4=Gr,c4=Yr;pe.ContextConsumer=qr,pe.ContextProvider=e4,pe.Element=t4,pe.ForwardRef=r4,pe.Fragment=n4,pe.Lazy=i4,pe.Memo=a4,pe.Portal=o4,pe.Profiler=s4,pe.StrictMode=u4,pe.Suspense=c4,pe.isAsyncMode=function(){return!1},pe.isConcurrentMode=function(){return!1},pe.isContextConsumer=function(e){return Qe(e)===qr},pe.isContextProvider=function(e){return Qe(e)===Qr},pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi},pe.isForwardRef=function(e){return Qe(e)===Xr},pe.isFragment=function(e){return Qe(e)===Kr},pe.isLazy=function(e){return Qe(e)===Zr},pe.isMemo=function(e){return Qe(e)===Jr},pe.isPortal=function(e){return Qe(e)===di},pe.isProfiler=function(e){return Qe(e)===kr},pe.isStrictMode=function(e){return Qe(e)===Gr},pe.isSuspense=function(e){return Qe(e)===Yr},pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kr||e===kr||e===td||e===Gr||e===Yr||e===rs||e===rd||typeof e=="object"&&e!==null&&(e.$$typeof===Zr||e.$$typeof===Jr||e.$$typeof===Qr||e.$$typeof===qr||e.$$typeof===Xr||e.$$typeof===ed||e.$$typeof===Jf||e[0]===Zf)},pe.typeOf=Qe;function nd(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function id(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ns(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return id(r.overflowY,t)||id(r.overflowX,t)||function(n){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)}(e)}return!1}function hi(e,t,r,n,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=r||o>=t&&s>=r?a-e-n:o>t&&s<r||a<e&&s>r?o-t+i:0}function l4(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l=typeof o=="function"?o:function(W){return W!==o};if(!nd(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,h=[],g=e;nd(g)&&l(g);){if((g=g.parentElement)===u){h.push(g);break}g!=null&&g===document.body&&ns(g)&&!ns(document.documentElement)||g!=null&&ns(g,s)&&h.push(g)}for(var y=r.visualViewport?r.visualViewport.width:innerWidth,w=r.visualViewport?r.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,P=window.scrollY||pageYOffset,p=e.getBoundingClientRect(),m=p.height,c=p.width,f=p.top,v=p.right,b=p.bottom,I=p.left,R=i==="start"||i==="nearest"?f:i==="end"?b:f+m/2,_=a==="center"?I+c/2:a==="end"?v:I,L=[],A=0;A<h.length;A++){var B=h[A],d=B.getBoundingClientRect(),U=d.height,H=d.width,V=d.top,ae=d.right,oe=d.bottom,q=d.left;if(n==="if-needed"&&f>=0&&I>=0&&b<=w&&v<=y&&f>=V&&b<=oe&&I>=q&&v<=ae)return L;var ce=getComputedStyle(B),ee=parseInt(ce.borderLeftWidth,10),x=parseInt(ce.borderTopWidth,10),C=parseInt(ce.borderRightWidth,10),E=parseInt(ce.borderBottomWidth,10),T=0,D=0,k="offsetWidth"in B?B.offsetWidth-B.clientWidth-ee-C:0,j="offsetHeight"in B?B.offsetHeight-B.clientHeight-x-E:0;if(u===B)T=i==="start"?R:i==="end"?R-w:i==="nearest"?hi(P,P+w,w,x,E,P+R,P+R+m,m):R-w/2,D=a==="start"?_:a==="center"?_-y/2:a==="end"?_-y:hi(O,O+y,y,ee,C,O+_,O+_+c,c),T=Math.max(0,T+P),D=Math.max(0,D+O);else{T=i==="start"?R-V-x:i==="end"?R-oe+E+j:i==="nearest"?hi(V,oe,U,x,E+j,R,R+m,m):R-(V+U/2)+j/2,D=a==="start"?_-q-ee:a==="center"?_-(q+H/2)+k/2:a==="end"?_-ae+C+k:hi(q,ae,H,ee,C+k,_,_+c,c);var z=B.scrollLeft,F=B.scrollTop;R+=F-(T=Math.max(0,Math.min(F+T,B.scrollHeight-U+j))),_+=z-(D=Math.max(0,Math.min(z+D,B.scrollWidth-H+k)))}L.push({el:B,top:T,left:D})}return L}var f4=0;function ad(){}function d4(e,t){if(!!e){var r=l4(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});r.forEach(function(n){var i=n.el,a=n.top,o=n.left;i.scrollTop=a,i.scrollLeft=o})}}function od(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function sd(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];n(),r=setTimeout(function(){r=null,e.apply(void 0,o)},t)}return i.cancel=n,i}function At(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return s&&s.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function en(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function h4(){return String(f4++)}function p4(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function is(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ud(t,n)?t[n]:e[n],r},{})}function ud(e,t){return e[t]!==void 0}function g4(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function as(e,t,r,n,i){if(i===void 0&&(i=!0),r===0)return-1;var a=r-1;(typeof t!="number"||t<0||t>=r)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=tn(e,o,r,n,i);return s===-1?t>=r?-1:t:s}function tn(e,t,r,n,i){var a=n(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<r;o++)if(!n(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!n(s).hasAttribute("disabled"))return s;return i?e>0?tn(1,0,r,n,!1):tn(-1,r-1,r,n,!1):-1}function cd(e,t,r,n){return n===void 0&&(n=!0),t.some(function(i){return i&&(od(i,e,r)||n&&od(i,r.document.activeElement,r))})}var v4=sd(function(e){ld(e).textContent=""},500);function m4(e,t){var r=ld(t);!e||(r.textContent=e,v4(t))}function ld(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var y4=["isInitialMount","highlightedIndex","items","environment"],fd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function b4(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){w4(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(ve({type:i},a))}function w4(e,t,r,n){var i=t.props,a=t.type,o="on"+os(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](ve({type:a},n))}function _4(e,t){return t.changes}function O4(e){var t=e.selectedItem,r=e.itemToString;return t?r(t)+" has been selected.":""}var P4=sd(function(e,t){m4(e(),t)},200),x4=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?S.useLayoutEffect:S.useEffect;function I4(e){var t=e.id,r=t===void 0?"downshift-"+h4():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,l=S.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(u){return r+"-item-"+u},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"});return l.current}function S4(e,t,r){return e!==void 0?e:r.length===0?-1:r.indexOf(t)}function E4(e){return e?String(e):""}function os(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function dd(e){var t=S.useRef(e);return t.current=e,t}function C4(e,t,r){var n=S.useRef(),i=S.useRef(),a=S.useCallback(function(y,w){i.current=w,y=is(y,w.props);var O=e(y,w),P=w.props.stateReducer(y,ve({},w,{changes:O}));return P},[e]),o=S.useReducer(a,t),s=o[0],l=o[1],u=dd(r),h=S.useCallback(function(y){return l(ve({props:u.current},y))},[u]),g=i.current;return S.useEffect(function(){g&&n.current&&n.current!==s&&b4(g,is(n.current,g.props),s),n.current=s},[s,r,g]),[s,h]}var rn={itemToString:E4,stateReducer:_4,getA11ySelectionMessage:O4,scrollIntoView:d4,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};function tt(e,t,r){r===void 0&&(r=fd);var n="default"+os(t);return n in e?e[n]:r[t]}function pi(e,t,r){if(r===void 0&&(r=fd),t in e)return e[t];var n="initial"+os(t);return n in e?e[n]:tt(e,t,r)}function M4(e){var t=pi(e,"selectedItem"),r=pi(e,"isOpen"),n=pi(e,"highlightedIndex"),i=pi(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.indexOf(t):n,isOpen:r,selectedItem:t,inputValue:i}}function gi(e,t,r,n){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return i.length===0?-1:a!==void 0&&l===a?a:o!==void 0?o:s?r===0?i.indexOf(s):as(r,i.indexOf(s),i.length,n,!1):r===0?-1:r<0?i.length-1:0}function R4(e,t,r,n){var i=S.useRef({isMouseDown:!1,isTouchMove:!1});return S.useEffect(function(){var a=function(){i.current.isMouseDown=!0},o=function(g){i.current.isMouseDown=!1,e&&!cd(g.target,t.map(function(y){return y.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},u=function(g){e&&!i.current.isTouchMove&&!cd(g.target,t.map(function(y){return y.current}),r,!1)&&n()};return r.addEventListener("mousedown",a),r.addEventListener("mouseup",o),r.addEventListener("touchstart",s),r.addEventListener("touchmove",l),r.addEventListener("touchend",u),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseup",o),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",l),r.removeEventListener("touchend",u)}},[e,r]),i}var A4=function(){return ad};function hd(e,t,r){var n=r.isInitialMount,i=r.highlightedIndex,a=r.items,o=r.environment,s=Nt(r,y4);S.useEffect(function(){n||P4(function(){return e(ve({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function T4(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=S.useRef(!0);return x4(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var $4=ad;function N4(e,t,r){var n=t.type,i=t.props,a;switch(n){case r.ItemMouseMove:a={highlightedIndex:t.index};break;case r.MenuMouseLeave:a={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:gi(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:gi(i,e,0)};break;case r.FunctionCloseMenu:a={isOpen:!1};break;case r.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case r.FunctionSetInputValue:a={inputValue:t.inputValue};break;case r.FunctionReset:a={highlightedIndex:tt(i,"highlightedIndex"),isOpen:tt(i,"isOpen"),selectedItem:tt(i,"selectedItem"),inputValue:tt(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ve({},e,a)}N.array.isRequired,N.func,N.func,N.func,N.bool,N.number,N.number,N.number,N.bool,N.bool,N.bool,N.any,N.any,N.any,N.string,N.string,N.string,N.func,N.string,N.func,N.func,N.func,N.func,N.func,N.shape({addEventListener:N.func,removeEventListener:N.func,document:N.shape({getElementById:N.func,activeElement:N.any,body:N.any})});function D4(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}bn(bn({},rn),{getA11yStatusMessage:D4});var ss=0,us=1,cs=2,ls=3,fs=4,ds=5,hs=6,vi=7,pd=8,gd=9,ps=10,vd=11,md=12,yd=13,bd=14,wd=15,gs=16,_d=17,Od=18,vs=19,Pd=Object.freeze({__proto__:null,InputKeyDownArrowDown:ss,InputKeyDownArrowUp:us,InputKeyDownEscape:cs,InputKeyDownHome:ls,InputKeyDownEnd:fs,InputKeyDownEnter:ds,InputChange:hs,InputBlur:vi,MenuMouseLeave:pd,ItemMouseMove:gd,ItemClick:ps,ToggleButtonClick:vd,FunctionToggleMenu:md,FunctionOpenMenu:yd,FunctionCloseMenu:bd,FunctionSetHighlightedIndex:wd,FunctionSelectItem:gs,FunctionSetInputValue:_d,FunctionReset:Od,ControlledPropUpdatedSelectedItem:vs});function F4(e){var t=M4(e),r=t.selectedItem,n=t.inputValue;return n===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(n=e.itemToString(r)),ve({},t,{inputValue:n})}N.array.isRequired,N.func,N.func,N.func,N.bool,N.number,N.number,N.number,N.bool,N.bool,N.bool,N.any,N.any,N.any,N.string,N.string,N.string,N.string,N.string,N.string,N.func,N.string,N.string,N.func,N.func,N.func,N.func,N.func,N.func,N.shape({addEventListener:N.func,removeEventListener:N.func,document:N.shape({getElementById:N.func,activeElement:N.any,body:N.any})});function L4(e,t,r){var n=S.useRef(),i=C4(e,t,r),a=i[0],o=i[1];return S.useEffect(function(){ud(r,"selectedItem")&&(n.current!==r.selectedItem&&o({type:vs,inputValue:r.itemToString(r.selectedItem)}),n.current=a.selectedItem===n.current?r.selectedItem:a.selectedItem)}),[is(a,r),o]}var j4=ve({},rn,{getA11yStatusMessage:p4,circularNavigation:!0});function W4(e,t){var r=t.type,n=t.props,i=t.shiftKey,a;switch(r){case ps:a={isOpen:tt(n,"isOpen"),highlightedIndex:tt(n,"highlightedIndex"),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case ss:e.isOpen?a={highlightedIndex:as(i?5:1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:gi(n,e,1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case us:e.isOpen?a={highlightedIndex:as(i?-5:-1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:gi(n,e,-1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case ds:a=ve({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:n.items[e.highlightedIndex],isOpen:tt(n,"isOpen"),highlightedIndex:tt(n,"highlightedIndex"),inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case cs:a=ve({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case ls:a={highlightedIndex:tn(1,0,n.items.length,t.getItemNodeFromIndex,!1)};break;case fs:a={highlightedIndex:tn(-1,n.items.length-1,n.items.length,t.getItemNodeFromIndex,!1)};break;case vi:a=ve({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case hs:a={isOpen:!0,highlightedIndex:tt(n,"highlightedIndex"),inputValue:t.inputValue};break;case gs:a={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case vs:a={inputValue:t.inputValue};break;default:return N4(e,t,Pd)}return ve({},e,a)}var H4=["onMouseLeave","refKey","ref"],V4=["item","index","refKey","ref","onMouseMove","onClick","onPress"],z4=["onClick","onPress","refKey","ref"],U4=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],B4=["refKey","ref"];xd.stateChangeTypes=Pd;function xd(e){e===void 0&&(e={});var t=ve({},j4,e),r=t.initialIsOpen,n=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,l=t.getA11ySelectionMessage,u=t.itemToString,h=F4(t),g=L4(W4,h,t),y=g[0],w=g[1],O=y.isOpen,P=y.highlightedIndex,p=y.selectedItem,m=y.inputValue,c=S.useRef(null),f=S.useRef({}),v=S.useRef(null),b=S.useRef(null),I=S.useRef(null),R=S.useRef(!0),_=I4(t),L=S.useRef(),A=dd({state:y,props:t}),B=S.useCallback(function(F){return f.current[_.getItemId(F)]},[_]);hd(s,[O,P,m,i],ve({isInitialMount:R.current,previousResultCount:L.current,items:i,environment:o,itemToString:u},y)),hd(l,[p],ve({isInitialMount:R.current,previousResultCount:L.current,items:i,environment:o,itemToString:u},y));var d=T4({menuElement:c.current,highlightedIndex:P,isOpen:O,itemRefs:f,scrollIntoView:a,getItemNodeFromIndex:B});$4({isInitialMount:R.current,props:t,state:y}),S.useEffect(function(){var F=r||n||O;F&&v.current&&v.current.focus()},[]),S.useEffect(function(){R.current||(L.current=i.length)});var U=R4(O,[I,c,b],o,function(){w({type:vi,selectItem:!1})}),H=A4();S.useEffect(function(){R.current=!1},[]),S.useEffect(function(){O||(f.current={})},[O]);var V=S.useMemo(function(){return{ArrowDown:function(W){W.preventDefault(),w({type:ss,shiftKey:W.shiftKey,getItemNodeFromIndex:B})},ArrowUp:function(W){W.preventDefault(),w({type:us,shiftKey:W.shiftKey,getItemNodeFromIndex:B})},Home:function(W){!A.current.state.isOpen||(W.preventDefault(),w({type:ls,getItemNodeFromIndex:B}))},End:function(W){!A.current.state.isOpen||(W.preventDefault(),w({type:fs,getItemNodeFromIndex:B}))},Escape:function(){var W=A.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&w({type:cs})},Enter:function(W){var G=A.current.state;!G.isOpen||G.highlightedIndex<0||W.which===229||(W.preventDefault(),w({type:ds,getItemNodeFromIndex:B}))}}},[w,A,B]),ae=S.useCallback(function(F){return ve({id:_.labelId,htmlFor:_.inputId},F)},[_]),oe=S.useCallback(function(F,W){var G,Q=F===void 0?{}:F,re=Q.onMouseLeave,K=Q.refKey,de=K===void 0?"ref":K,se=Q.ref,te=Nt(Q,H4),ye=W===void 0?{}:W;return ye.suppressRefError,ve((G={},G[de]=en(se,function(xe){c.current=xe}),G.id=_.menuId,G.role="listbox",G["aria-labelledby"]=_.labelId,G.onMouseLeave=At(re,function(){w({type:pd})}),G),te)},[w,H,_]),q=S.useCallback(function(F){var W,G,Q=F===void 0?{}:F,re=Q.item,K=Q.index,de=Q.refKey,se=de===void 0?"ref":de,te=Q.ref,ye=Q.onMouseMove,xe=Q.onClick;Q.onPress;var Ee=Nt(Q,V4),Fe=A.current,we=Fe.props,Tt=Fe.state,bt=S4(K,re,we.items);if(bt<0)throw new Error("Pass either item or item index in getItemProps!");var an="onClick",st=xe,rt=function(){K!==Tt.highlightedIndex&&(d.current=!1,w({type:gd,index:K}))},qe=function(){w({type:ps,index:K}),v.current&&v.current.focus()};return ve((W={},W[se]=en(te,function(We){We&&(f.current[_.getItemId(bt)]=We)}),W.role="option",W["aria-selected"]=""+(bt===Tt.highlightedIndex),W.id=_.getItemId(bt),W),!Ee.disabled&&(G={onMouseMove:At(ye,rt)},G[an]=At(st,qe),G),Ee)},[w,A,d,_]),ce=S.useCallback(function(F){var W,G=F===void 0?{}:F,Q=G.onClick;G.onPress;var re=G.refKey,K=re===void 0?"ref":re,de=G.ref,se=Nt(G,z4),te=function(){w({type:vd}),!A.current.state.isOpen&&v.current&&v.current.focus()};return ve((W={},W[K]=en(de,function(ye){b.current=ye}),W.id=_.toggleButtonId,W.tabIndex=-1,W),!se.disabled&&ve({},{onClick:At(Q,te)}),se)},[w,A,_]),ee=S.useCallback(function(F,W){var G,Q=F===void 0?{}:F,re=Q.onKeyDown,K=Q.onChange,de=Q.onInput,se=Q.onBlur;Q.onChangeText;var te=Q.refKey,ye=te===void 0?"ref":te,xe=Q.ref,Ee=Nt(Q,U4),Fe=W===void 0?{}:W;Fe.suppressRefError;var we=A.current.state,Tt=function(wt){var $t=g4(wt);$t&&V[$t]&&V[$t](wt)},bt=function(wt){w({type:hs,inputValue:wt.target.value})},an=function(){we.isOpen&&!U.current.isMouseDown&&w({type:vi,selectItem:!0})},st="onChange",rt={};if(!Ee.disabled){var qe;rt=(qe={},qe[st]=At(K,de,bt),qe.onKeyDown=At(re,Tt),qe.onBlur=At(se,an),qe)}return ve((G={},G[ye]=en(xe,function(We){v.current=We}),G.id=_.inputId,G["aria-autocomplete"]="list",G["aria-controls"]=_.menuId,G),we.isOpen&&we.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(we.highlightedIndex)},{"aria-labelledby":_.labelId,autoComplete:"off",value:we.inputValue},rt,Ee)},[w,V,A,U,H,_]),x=S.useCallback(function(F,W){var G,Q=F===void 0?{}:F,re=Q.refKey,K=re===void 0?"ref":re,de=Q.ref,se=Nt(Q,B4),te=W===void 0?{}:W;return te.suppressRefError,ve((G={},G[K]=en(de,function(ye){I.current=ye}),G.role="combobox",G["aria-haspopup"]="listbox",G["aria-owns"]=_.menuId,G["aria-expanded"]=A.current.state.isOpen,G),se)},[A,H,_]),C=S.useCallback(function(){w({type:md})},[w]),E=S.useCallback(function(){w({type:bd})},[w]),T=S.useCallback(function(){w({type:yd})},[w]),D=S.useCallback(function(F){w({type:wd,highlightedIndex:F})},[w]),k=S.useCallback(function(F){w({type:gs,selectedItem:F})},[w]),j=S.useCallback(function(F){w({type:_d,inputValue:F})},[w]),z=S.useCallback(function(){w({type:Od})},[w]);return{getItemProps:q,getLabelProps:ae,getMenuProps:oe,getInputProps:ee,getComboboxProps:x,getToggleButtonProps:ce,toggleMenu:C,openMenu:T,closeMenu:E,setHighlightedIndex:D,setInputValue:j,selectItem:k,reset:z,highlightedIndex:P,isOpen:O,selectedItem:p,inputValue:m}}function K4(e){var t=e.removedSelectedItem,r=e.itemToString;return r(t)+" has been removed."}N.array,N.array,N.array,N.func,N.func,N.func,N.number,N.number,N.number,N.func,N.func,N.string,N.string,N.shape({addEventListener:N.func,removeEventListener:N.func,document:N.shape({getElementById:N.func,activeElement:N.any,body:N.any})}),rn.itemToString,rn.stateReducer,rn.environment;function ms(e){let t,r,n;try{t=e[0],[r,n]=e[1].split("_").map(i=>+i)}catch{}return{name:t,hotelId:r,guideId:n}}const nn=["0_0"];function ys(e){const{hotels:t,defaultHotel:r,selectedHotel:n,handleHotelChange:i,subMenuItem:a}=e,{i18n:o}=yt();o&&nn.length===1&&nn.unshift(o.translate("header.no_matches_please_try_again").fetch());const[s,l]=S.useState([]),[u,h]=S.useState(r&&r[0]||""),{subMenus:g}=ie(I=>I.headerInfo),y=Be(),w=g.find(I=>I===a),O=I=>I?I[0]:"",{isOpen:P,getMenuProps:p,getInputProps:m,getComboboxProps:c,highlightedIndex:f,getItemProps:v,closeMenu:b}=xd({items:s,itemToString:O,initialSelectedItem:r,selectedItem:n,initialInputValue:r&&r[0]||"",onSelectedItemChange:({selectedItem:I})=>{Ce.unstable_batchedUpdates(()=>{I&&I!==nn&&y(Ou(I)),y(Wi(a))}),typeof i=="function"&&I&&I!==nn&&i(ms(I)),document.querySelector("#hd-property-input").blur()},onInputValueChange:({inputValue:I})=>{const R=I.toLowerCase(),_=t.filter(L=>R?O(L).toLowerCase().trim().match(`(^|\\s)${R}`):!1);_.length>0?l(_):R?l([nn]):(l([]),b()),h(I)}});return M("ul",{className:He("col-12","col-lg","py-3","px-lg-0","py-lg-0","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":w}),children:M("li",{children:Z("div",{id:"hd-property-search",children:[M("label",{htmlFor:"hd-property-input",className:"form-label d-lg-none visually-hidden",children:"Select property"}),Z("div",fe(ne({id:"hd-property-input-container"},c()),{children:[M("input",fe(ne({},m({onChange:I=>{const R=I.target.selectionStart;setTimeout(()=>{I.target.setSelectionRange(R,R)},0)},onFocus:I=>{document.querySelector("#hd-property-search").classList.add("hd-active")},onBlur:I=>{document.querySelector("#hd-property-search").classList.remove("hd-active");const{name:R}=ms(n);I.target.value!==R&&h(R)}})),{type:"text",className:"form-control",placeholder:o&&o.translate("header.type_property_name").fetch(),id:"hd-property-input",value:u})),M("ul",fe(ne({className:"mb-0 list-unstyled shadow"},p()),{children:P&&s.map((I,R)=>Z("li",fe(ne({className:He("px-3","py-3","py-lg-2",{"hd-active":f===R})},v({hotel:I,index:R})),{children:[I[0],I===n&&M(Pe.Tick,{className:"hd-icon hd-icon-tick float-end"})]}),I[1]))})),M(Pe.Search,{className:"hd-icon hd-icon-search"}),M(Pe.Close,{className:"hd-icon hd-icon-close",onClick:()=>{h(""),b()},onMouseDown:I=>{I.preventDefault()}})]}))]})})})}ys.propTypes={hotels:X.exports.arrayOf(X.exports.arrayOf(X.exports.string)).isRequired,defaultHotel:X.exports.arrayOf(X.exports.string),selectedHotel:X.exports.arrayOf(X.exports.string),handleHotelChange:X.exports.func,subMenuItem:X.exports.oneOfType([X.exports.string,X.exports.number]).isRequired},ys.defaultProps={defaultHotel:void 0,selectedHotel:void 0,handleHotelChange:void 0};function G4(e){const{handleHotelChange:t}=e,[r,n]=S.useState(""),i=ie(c=>c.userInfo),{isOpen:a,isMobileOrTablet:o}=ie(c=>c.headerInfo),{propertySelector:s}=ie(c=>c.titleBar),{items:l,defaultHotel:u,selectedHotel:h}=ie(c=>c.hotels),[g,{height:y}]=Oi(),w=Lr(!o||a,{from:{height:0},enter:{height:y},leave:{height:0},update:{height:y},config:fe(ne({},Kt.stiff),{clamp:!0})}),{i18n:O}=yt(),P=Be();S.useEffect(()=>{(async()=>{if(s){let{type:c,items:f=[]}=s;if(c==="fetch")try{f=await(await fetch(f)).json()}catch(b){console.error(b)}const v=f.find(b=>{const[I,R]=b[1].split("_").map(_=>+_);return i.hotelId===I&&i.guideId===R});Ce.unstable_batchedUpdates(()=>{P(wp(f)),v&&(P(_p(v)),P(Ou(v)))})}})()},[s]),S.useEffect(()=>{if(i.group)n(i.group);else if(h){const{name:c}=ms(h);n(c)}},[i,h]);const{label:p}=s||{},m=i.group&&l.length>1;return w((c,f)=>f&&M(kt.div,{className:"col-12 col-lg me-lg-auto px-0 order-lg-3",id:"hd-property",style:o?fe(ne({},c),{display:"block"}):{},children:M("ul",{ref:g,className:"row list-unstyled mx-0 mb-0 hd-nav-first-level",children:M("li",{className:"col-lg-auto align-items-center",onClick:()=>{m&&P(xt(p))},children:Z("div",{className:"row py-lg-0 align-items-center",children:[Z("div",{className:"col col-lg-auto py-2 py-lg-0",id:i.group?"hd-group-property-name":"hd-hotel-property-name",children:[M("span",{className:"ps-lg-3 py-3 py-lg-0 d-block",id:i.group?"hd-group-name":"hd-hotel-name",children:r}),m&&Z("div",{className:"row me-0 d-lg-none align-items-center",children:[Z("div",{className:"col",children:[M("small",{className:"pt-2",children:O&&O.translate(p).fetch()}),M("span",{className:"d-block",id:"hd-property-name",children:h&&h[0]||u&&u[0]})]}),M("div",{className:"col-auto p-2 d-block",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]})]}),m&&M(ys,{hotels:l,defaultHotel:u,selectedHotel:h,handleHotelChange:t,subMenuItem:p})]})})})}))}function k4(){const{i18n:e}=yt(),{subMenus:t}=ie(s=>s.headerInfo),{help:r}=ie(s=>s.titleBar),n=Be();if(!r)return null;const{label:i,children:a}=r,o=t.find(s=>s===i);return Z("li",{className:"col-lg-auto p-0",onClick:()=>{n(xt(i))},children:[Z("div",{className:"row m-0 py-lg-0 align-items-center",children:[M("div",{className:"col py-2 py-lg-0 px-0",children:Z("span",{className:"ps-lg-3 pe-3 py-2 d-block",children:[M("span",{className:"ps-lg-2",children:e&&e.translate(i).fetch()}),M("span",{className:"d-none d-lg-inline ms-2",children:M(Pe.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})}),M("div",{className:"col-auto p-2 d-block d-lg-none",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),M("ul",{className:He("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":o}),children:a.map(({href:s,label:l})=>M("li",{children:M("div",{className:"row m-0 py-lg-0 align-items-center",children:M("div",{className:"col py-2 py-lg-0 px-0",children:M("a",fe(ne({className:"px-lg-4 py-2 d-block",href:s},Zt(s)&&{target:"_blank"}),{children:e&&e.translate(l).fetch()}))})})},Wr()))})]})}function Q4(){const{i18n:e}=yt(),{subMenus:t}=ie(l=>l.headerInfo),{user:r}=ie(l=>l.titleBar),{username:n}=ie(l=>l.userInfo),i=Be();if(!r)return null;const{label:a,children:o}=r,s=t.find(l=>l===a);return Z("li",{className:"col-lg-auto p-0",onClick:()=>{i(xt(a))},children:[Z("div",{className:"row m-0 py-lg-0 align-items-center",children:[Z("div",{className:"col py-2 py-lg-0 px-0",children:[M("small",{className:"pt-2 d-lg-none",children:e&&e.translate(a).fetch()}),Z("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[M("span",{className:"d-none d-lg-inline",children:M(Pe.User,{className:"hd-icon hd-icon-user"})}),M("span",{className:"ps-lg-2",children:n}),M("span",{className:"d-none d-lg-inline ms-2",children:M(Pe.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),M("div",{className:"col-auto p-2 d-block d-lg-none",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),M("ul",{className:He("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":s}),children:o.map(({href:l,label:u})=>M("li",{children:M("div",{className:"row m-0 py-lg-0 align-items-center",children:M("div",{className:"col py-2 py-lg-0 px-0",children:M("a",fe(ne({className:"px-lg-4 py-2 d-block",href:l},Zt(l)&&{target:"_blank"}),{children:e&&e.translate(u).fetch()}))})})},Wr()))})]})}function bs(e){const{handleLanguageChange:t}=e,[r,n]=S.useState(),[i,a]=S.useState([]),o=ie(w=>w.userLanguage),{languageSelector:s}=ie(w=>w.titleBar),{subMenus:l}=ie(w=>w.headerInfo),u=Be(),{i18n:h}=yt();if(S.useEffect(()=>{if(s){const{children:w}=s;if(Array.isArray(w)){const O=w.map(({code:P,label:p})=>{const m=new Intl.DisplayNames([P],{type:"language"});return{code:P,name:p||m.of(P)}});O.length>0&&a(O)}}},[s]),S.useEffect(()=>{var w;if(o){const O=(w=i.find(({code:P})=>P===o))==null?void 0:w.name;O&&n(O)}},[o,i]),!s)return null;const{label:g}=s,y=l.find(w=>w===g);return Z("li",{className:"col-lg-auto p-0",onClick:()=>{u(xt(g))},children:[Z("div",{className:"row m-0 py-lg-0 align-items-center",children:[Z("div",{className:"col py-2 py-lg-0 px-0",children:[M("small",{className:"pt-2 d-lg-none",children:h&&h.translate(g).fetch()}),Z("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[r,M("span",{className:"d-none d-lg-inline ms-2",children:M(Pe.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),M("div",{className:"col-auto p-2 d-block d-lg-none",children:M(Pe.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),M("ul",{className:He("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":y}),children:i.map(({code:w,name:O})=>M("li",{children:M("div",{className:"row m-0 py-lg-0 align-items-center",children:M("div",{className:"col py-2 py-lg-0 px-0",children:M("a",{className:"px-lg-4 py-2 d-block",href:"#",onClick:P=>{P.preventDefault(),P.stopPropagation(),w!==o&&(typeof t=="function"&&t(w),u(mu(w))),u(Wi(g))},children:O},w)})})},Wr()))})]})}bs.propTypes={handleLanguageChange:X.exports.func},bs.defaultProps={handleLanguageChange:void 0};function q4(){const[e,t]=S.useState(),{isOpen:r,subMenus:n,isMobileOrTablet:i}=ie(u=>u.headerInfo),{items:a}=ie(u=>u.menuItems),o=Lr(n.length>0,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:Kt.stiff}),s=Be(),{i18n:l}=yt();return S.useEffect(()=>{var h;const u=((h=a.find(g=>g.id===n[n.length-1]))==null?void 0:h.label)||n[n.length-1];u&&t(u)},[a,n]),!i||!r?null:o((u,h)=>h&&Z(kt.div,{className:"col py-2 py-lg-0",id:"hd-submenu-title-container",style:u,children:[M("span",{id:"hd-submenu-back",onClick:()=>{s(Wi(n[n.length-1]))},children:M(Pe.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"})}),M("span",{className:"ms-3",id:"hd-submenu-title",children:e&&l&&l.translate(e).fetch()})]}))}function ws(e){const{handleHotelChange:t,handleLanguageChange:r}=e,{isOpen:n,isMobileOrTablet:i}=ie(l=>l.headerInfo),[a,{height:o}]=Oi(),s=Lr(!i||n,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:fe(ne({},Kt.stiff),{clamp:!0})});return M("div",{className:"container-xxl",id:"hd-top-container",children:Z("div",{className:"row align-items-center pb-lg-2",id:"hd-header-container",children:[M(q4,{}),M(yg,{}),M(Y3,{}),M(Z3,{}),M(G4,{handleHotelChange:t}),s((l,u)=>u&&M(kt.div,{className:"col-12 col-lg-auto ps-lg-0 align-middle order-lg-5",id:"hd-nav-container-top",style:i?fe(ne({},l),{display:"block"}):{},children:M("nav",{ref:a,id:"hd-top-nav",children:Z("ul",{className:"row list-unstyled mb-0 hd-nav-first-level",children:[M(k4,{}),M(bs,{handleLanguageChange:r}),M(Q4,{})]})})}))]})})}ws.propTypes={handleHotelChange:X.exports.func,handleLanguageChange:X.exports.func},ws.defaultProps={handleHotelChange:void 0,handleLanguageChange:void 0};function X4(){const[e,t]=S.useState([]),{items:r,selectedItem:n}=ie(a=>a.menuItems),{i18n:i}=yt();return S.useEffect(()=>{if(n){const a=[];let o=r.find(s=>s.id===n);do a.push(o),o=r.find(s=>s.id===o.parentId);while(o);t(a.reverse())}},[n]),e.length===0?null:M("div",{className:"container-xxl mb-3",children:M("nav",{"aria-label":"breadcrumb",id:"hd-breadcrumb",children:Z("ol",{className:"breadcrumb mb-0",children:[M("li",{className:"breadcrumb-item active",children:i&&i.translate(e[0].label).fetch()}),e.length>=2&&M("li",{className:"breadcrumb-item active",children:i&&i.translate(e[1].label).fetch()}),e.length===3&&M("li",{className:"breadcrumb-item active",children:i&&i.translate(e[2].label).fetch()})]})})})}function _s(e){const{config:t,userInfo:r,userLanguage:n,i18nFeed:i}=e,{isOpen:a,subMenus:o,isMobileOrTablet:s}=ie(p=>p.headerInfo),{showNotifications:l}=ie(p=>p.notifications),u=S.useRef(null),h=Be();S.useEffect(()=>{n&&h(mu(n)),r&&h(lp(r)),i&&h(gp(i))},[]);const{width:g}=Eh();S.useEffect(()=>{g&&h(hp(g))},[g]);const{headerConfig:y={},error:w}=Zp(t),{titleBar:O,menuBar:P}=y;return S.useEffect(()=>{O&&h(up(O))},[O]),S.useEffect(()=>{P&&h(op(P))},[P]),S.useEffect(()=>{u&&o.length>0&&(u.current.scrollTop=0)},[o.length]),w?(console.error(w),null):Z("div",{children:[Z("div",{ref:u,id:"hd-container",className:He("container-fluid","px-0 fixed-top",{"hd-menu-opened":a,"hd-overflow-hidden":o.length>0}),style:fe(ne(ne({},s&&!a&&{overflow:"hidden"}),l&&{overflow:"visible"}),{maxWidth:"none"}),children:[M(ws,ne({},e)),M(X3,{})]}),M(X4,{})]})}_s.propTypes={userInfo:X.exports.shape({username:X.exports.string,hotelId:X.exports.number,guideId:X.exports.number}),userLanguage:X.exports.string,config:X.exports.string.isRequired,i18nFeed:X.exports.string},_s.defaultProps={userInfo:void 0,userLanguage:"en",i18nFeed:void 0};const Id=Ip(_s);function Y4(e,t){Ce.render(M(Id,ne({},t)),e)}_e.Header=Id,_e.renderHeader=Y4,Object.defineProperties(_e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|