ba-js-common-header 0.0.10 → 0.0.13
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.
|
@@ -25965,6 +25965,9 @@ function HotelFinder(props) {
|
|
|
25965
25965
|
className: cn("col-12", "col-lg", "py-3", "px-lg-0", "py-lg-0", "list-unstyled", "hd-nav-second-level", {
|
|
25966
25966
|
"hd-submenu-opened": subMenuOpen
|
|
25967
25967
|
}),
|
|
25968
|
+
style: {
|
|
25969
|
+
top: 50
|
|
25970
|
+
},
|
|
25968
25971
|
children: /* @__PURE__ */ jsx("li", {
|
|
25969
25972
|
children: /* @__PURE__ */ jsxs("div", {
|
|
25970
25973
|
id: "hd-property-search",
|
|
@@ -26217,6 +26220,9 @@ function UserManager() {
|
|
|
26217
26220
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
26218
26221
|
"hd-submenu-opened": subMenuOpen
|
|
26219
26222
|
}),
|
|
26223
|
+
style: {
|
|
26224
|
+
top: 50
|
|
26225
|
+
},
|
|
26220
26226
|
children: children.map(({
|
|
26221
26227
|
href,
|
|
26222
26228
|
label: label2
|
|
@@ -26324,6 +26330,9 @@ function UserLanguage(props) {
|
|
|
26324
26330
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
26325
26331
|
"hd-submenu-opened": subMenuOpen
|
|
26326
26332
|
}),
|
|
26333
|
+
style: {
|
|
26334
|
+
top: 50
|
|
26335
|
+
},
|
|
26327
26336
|
children: languageObjs.map(({
|
|
26328
26337
|
code,
|
|
26329
26338
|
name
|
|
@@ -26581,6 +26590,9 @@ function Row(props) {
|
|
|
26581
26590
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
26582
26591
|
"hd-submenu-opened": subMenuOpen
|
|
26583
26592
|
}),
|
|
26593
|
+
style: {
|
|
26594
|
+
top: 50
|
|
26595
|
+
},
|
|
26584
26596
|
children
|
|
26585
26597
|
})]
|
|
26586
26598
|
});
|
|
@@ -131,4 +131,4 @@ Expecting `+fe.join(", ")+", got '"+this.terminals_[Oe]+"'":H="Parse error on li
|
|
|
131
131
|
*
|
|
132
132
|
* This source code is licensed under the MIT license found in the
|
|
133
133
|
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var vu=60103,bu=60106,ho=60107,po=60108,go=60114,yo=60109,mo=60110,vo=60112,bo=60113,sd=60120,_o=60115,wo=60116,mv=60121,vv=60122,bv=60117,_v=60129,wv=60131;if(typeof Symbol=="function"&&Symbol.for){var Or=Symbol.for;vu=Or("react.element"),bu=Or("react.portal"),ho=Or("react.fragment"),po=Or("react.strict_mode"),go=Or("react.profiler"),yo=Or("react.provider"),mo=Or("react.context"),vo=Or("react.forward_ref"),bo=Or("react.suspense"),sd=Or("react.suspense_list"),_o=Or("react.memo"),wo=Or("react.lazy"),mv=Or("react.block"),vv=Or("react.server.block"),bv=Or("react.fundamental"),_v=Or("react.debug_trace_mode"),wv=Or("react.legacy_hidden")}function $n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vu:switch(e=e.type,e){case ho:case go:case po:case bo:case sd:return e;default:switch(e=e&&e.$$typeof,e){case mo:case vo:case wo:case _o:case yo:return e;default:return t}}case bu:return t}}}var MC=yo,FC=vu,$C=vo,NC=ho,DC=wo,jC=_o,LC=bu,zC=go,HC=po,UC=bo;At.ContextConsumer=mo,At.ContextProvider=MC,At.Element=FC,At.ForwardRef=$C,At.Fragment=NC,At.Lazy=DC,At.Memo=jC,At.Portal=LC,At.Profiler=zC,At.StrictMode=HC,At.Suspense=UC,At.isAsyncMode=function(){return!1},At.isConcurrentMode=function(){return!1},At.isContextConsumer=function(e){return $n(e)===mo},At.isContextProvider=function(e){return $n(e)===yo},At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vu},At.isForwardRef=function(e){return $n(e)===vo},At.isFragment=function(e){return $n(e)===ho},At.isLazy=function(e){return $n(e)===wo},At.isMemo=function(e){return $n(e)===_o},At.isPortal=function(e){return $n(e)===bu},At.isProfiler=function(e){return $n(e)===go},At.isStrictMode=function(e){return $n(e)===po},At.isSuspense=function(e){return $n(e)===bo},At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ho||e===go||e===_v||e===po||e===bo||e===sd||e===wv||typeof e=="object"&&e!==null&&(e.$$typeof===wo||e.$$typeof===_o||e.$$typeof===yo||e.$$typeof===mo||e.$$typeof===vo||e.$$typeof===bv||e.$$typeof===mv||e[0]===vv)},At.typeOf=$n;function Ov(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Sv(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ud(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return Sv(r.overflowY,t)||Sv(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 _u(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 BC(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(ue){return ue!==o};if(!Ov(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],d=e;Ov(d)&&u(d);){if((d=d.parentElement)===f){p.push(d);break}d!=null&&d===document.body&&ud(d)&&!ud(document.documentElement)||d!=null&&ud(d,s)&&p.push(d)}for(var y=r.visualViewport?r.visualViewport.width:innerWidth,A=r.visualViewport?r.visualViewport.height:innerHeight,P=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),I=v.height,T=v.width,M=v.top,L=v.right,K=v.bottom,ie=v.left,J=i==="start"||i==="nearest"?M:i==="end"?K:M+I/2,j=a==="center"?ie+T/2:a==="end"?L:ie,ce=[],q=0;q<p.length;q++){var ge=p[q],O=ge.getBoundingClientRect(),he=O.height,le=O.width,de=O.top,Me=O.right,Ne=O.bottom,Oe=O.left;if(n==="if-needed"&&M>=0&&ie>=0&&K<=A&&L<=y&&M>=de&&K<=Ne&&ie>=Oe&&L<=Me)return ce;var De=getComputedStyle(ge),pe=parseInt(De.borderLeftWidth,10),$=parseInt(De.borderTopWidth,10),U=parseInt(De.borderRightWidth,10),N=parseInt(De.borderBottomWidth,10),Q=0,V=0,be="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-pe-U:0,fe="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-$-N:0;if(f===ge)Q=i==="start"?J:i==="end"?J-A:i==="nearest"?_u(C,C+A,A,$,N,C+J,C+J+I,I):J-A/2,V=a==="start"?j:a==="center"?j-y/2:a==="end"?j-y:_u(P,P+y,y,pe,U,P+j,P+j+T,T),Q=Math.max(0,Q+C),V=Math.max(0,V+P);else{Q=i==="start"?J-de-$:i==="end"?J-Ne+N+fe:i==="nearest"?_u(de,Ne,he,$,N+fe,J,J+I,I):J-(de+he/2)+fe/2,V=a==="start"?j-Oe-pe:a==="center"?j-(Oe+le/2)+be/2:a==="end"?j-Me+U+be:_u(Oe,Me,le,pe,U+be,j,j+T,T);var H=ge.scrollLeft,ee=ge.scrollTop;J+=ee-(Q=Math.max(0,Math.min(ee+Q,ge.scrollHeight-he+fe))),j+=H-(V=Math.max(0,Math.min(H+V,ge.scrollWidth-le+be)))}ce.push({el:ge,top:Q,left:V})}return ce}var kC=0;function Av(){}function WC(e,t){if(!!e){var r=BC(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 Pv(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Iv(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 Ui(){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 Oo(){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 KC(){return String(kC++)}function qC(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 cd(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=xv(t,n)?t[n]:e[n],r},{})}function xv(e,t){return e[t]!==void 0}function GC(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function ld(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=So(e,o,r,n,i);return s===-1?t>=r?-1:t:s}function So(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?So(1,0,r,n,!1):So(-1,r-1,r,n,!1):-1}function Ev(e,t,r,n){return n===void 0&&(n=!0),t.some(function(i){return i&&(Pv(i,e,r)||n&&Pv(i,r.document.activeElement,r))})}var VC=Iv(function(e){Cv(e).textContent=""},500);function YC(e,t){var r=Cv(t);!e||(r.textContent=e,VC(t))}function Cv(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 QC=["isInitialMount","highlightedIndex","items","environment"],Rv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function JC(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){XC(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(Ct({type:i},a))}function XC(e,t,r,n){var i=t.props,a=t.type,o="on"+fd(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](Ct({type:a},n))}function ZC(e,t){return t.changes}function e3(e){var t=e.selectedItem,r=e.itemToString;return t?r(t)+" has been selected.":""}var t3=Iv(function(e,t){YC(e(),t)},200),r3=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?z.useLayoutEffect:z.useEffect;function n3(e){var t=e.id,r=t===void 0?"downshift-"+KC():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=z.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(f){return r+"-item-"+f},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"});return u.current}function i3(e,t,r){return e!==void 0?e:r.length===0?-1:r.indexOf(t)}function a3(e){return e?String(e):""}function fd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Tv(e){var t=z.useRef(e);return t.current=e,t}function o3(e,t,r){var n=z.useRef(),i=z.useRef(),a=z.useCallback(function(y,A){i.current=A,y=cd(y,A.props);var P=e(y,A),C=A.props.stateReducer(y,Ct({},A,{changes:P}));return C},[e]),o=z.useReducer(a,t),s=o[0],u=o[1],f=Tv(r),p=z.useCallback(function(y){return u(Ct({props:f.current},y))},[f]),d=i.current;return z.useEffect(function(){d&&n.current&&n.current!==s&&JC(d,cd(n.current,d.props),s),n.current=s},[s,r,d]),[s,p]}var Ao={itemToString:a3,stateReducer:ZC,getA11ySelectionMessage:e3,scrollIntoView:WC,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};function ri(e,t,r){r===void 0&&(r=Rv);var n="default"+fd(t);return n in e?e[n]:r[t]}function wu(e,t,r){if(r===void 0&&(r=Rv),t in e)return e[t];var n="initial"+fd(t);return n in e?e[n]:ri(e,t,r)}function s3(e){var t=wu(e,"selectedItem"),r=wu(e,"isOpen"),n=wu(e,"highlightedIndex"),i=wu(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.indexOf(t):n,isOpen:r,selectedItem:t,inputValue:i}}function Ou(e,t,r,n){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return i.length===0?-1:a!==void 0&&u===a?a:o!==void 0?o:s?r===0?i.indexOf(s):ld(r,i.indexOf(s),i.length,n,!1):r===0?-1:r<0?i.length-1:0}function u3(e,t,r,n){var i=z.useRef({isMouseDown:!1,isTouchMove:!1});return z.useEffect(function(){var a=function(){i.current.isMouseDown=!0},o=function(d){i.current.isMouseDown=!1,e&&!Ev(d.target,t.map(function(y){return y.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},f=function(d){e&&!i.current.isTouchMove&&!Ev(d.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",u),r.addEventListener("touchend",f),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseup",o),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",u),r.removeEventListener("touchend",f)}},[e,r]),i}var c3=function(){return Av};function Mv(e,t,r){var n=r.isInitialMount,i=r.highlightedIndex,a=r.items,o=r.environment,s=Xi(r,QC);z.useEffect(function(){n||t3(function(){return e(Ct({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function l3(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=z.useRef(!0);return r3(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var f3=Av;function d3(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:Ou(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Ou(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:ri(i,"highlightedIndex"),isOpen:ri(i,"isOpen"),selectedItem:ri(i,"selectedItem"),inputValue:ri(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ct({},e,a)}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.func,se.string,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function h3(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.":""}hs(hs({},Ao),{getA11yStatusMessage:h3});var dd=0,hd=1,pd=2,gd=3,yd=4,md=5,vd=6,Su=7,Fv=8,$v=9,bd=10,Nv=11,Dv=12,jv=13,Lv=14,zv=15,_d=16,Hv=17,Uv=18,wd=19,Bv=Object.freeze({__proto__:null,InputKeyDownArrowDown:dd,InputKeyDownArrowUp:hd,InputKeyDownEscape:pd,InputKeyDownHome:gd,InputKeyDownEnd:yd,InputKeyDownEnter:md,InputChange:vd,InputBlur:Su,MenuMouseLeave:Fv,ItemMouseMove:$v,ItemClick:bd,ToggleButtonClick:Nv,FunctionToggleMenu:Dv,FunctionOpenMenu:jv,FunctionCloseMenu:Lv,FunctionSetHighlightedIndex:zv,FunctionSelectItem:_d,FunctionSetInputValue:Hv,FunctionReset:Uv,ControlledPropUpdatedSelectedItem:wd});function p3(e){var t=s3(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)),Ct({},t,{inputValue:n})}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.string,se.string,se.string,se.func,se.string,se.string,se.func,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function g3(e,t,r){var n=z.useRef(),i=o3(e,t,r),a=i[0],o=i[1];return z.useEffect(function(){xv(r,"selectedItem")&&(n.current!==r.selectedItem&&o({type:wd,inputValue:r.itemToString(r.selectedItem)}),n.current=a.selectedItem===n.current?r.selectedItem:a.selectedItem)}),[cd(a,r),o]}var y3=Ct({},Ao,{getA11yStatusMessage:qC,circularNavigation:!0});function m3(e,t){var r=t.type,n=t.props,i=t.shiftKey,a;switch(r){case bd:a={isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case dd:e.isOpen?a={highlightedIndex:ld(i?5:1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case hd:e.isOpen?a={highlightedIndex:ld(i?-5:-1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,-1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case md:a=Ct({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:n.items[e.highlightedIndex],isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case pd:a=Ct({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case gd:a={highlightedIndex:So(1,0,n.items.length,t.getItemNodeFromIndex,!1)};break;case yd:a={highlightedIndex:So(-1,n.items.length-1,n.items.length,t.getItemNodeFromIndex,!1)};break;case Su:a=Ct({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case vd:a={isOpen:!0,highlightedIndex:ri(n,"highlightedIndex"),inputValue:t.inputValue};break;case _d:a={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case wd:a={inputValue:t.inputValue};break;default:return d3(e,t,Bv)}return Ct({},e,a)}var v3=["onMouseLeave","refKey","ref"],b3=["item","index","refKey","ref","onMouseMove","onClick","onPress"],_3=["onClick","onPress","refKey","ref"],w3=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],O3=["refKey","ref"];kv.stateChangeTypes=Bv;function kv(e){e===void 0&&(e={});var t=Ct({},y3,e),r=t.initialIsOpen,n=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,f=t.itemToString,p=p3(t),d=g3(m3,p,t),y=d[0],A=d[1],P=y.isOpen,C=y.highlightedIndex,v=y.selectedItem,I=y.inputValue,T=z.useRef(null),M=z.useRef({}),L=z.useRef(null),K=z.useRef(null),ie=z.useRef(null),J=z.useRef(!0),j=n3(t),ce=z.useRef(),q=Tv({state:y,props:t}),ge=z.useCallback(function(ee){return M.current[j.getItemId(ee)]},[j]);Mv(s,[P,C,I,i],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},y)),Mv(u,[v],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},y));var O=l3({menuElement:T.current,highlightedIndex:C,isOpen:P,itemRefs:M,scrollIntoView:a,getItemNodeFromIndex:ge});f3({isInitialMount:J.current,props:t,state:y}),z.useEffect(function(){var ee=r||n||P;ee&&L.current&&L.current.focus()},[]),z.useEffect(function(){J.current||(ce.current=i.length)});var he=u3(P,[ie,T,K],o,function(){A({type:Su,selectItem:!1})}),le=c3();z.useEffect(function(){J.current=!1},[]),z.useEffect(function(){P||(M.current={})},[P]);var de=z.useMemo(function(){return{ArrowDown:function(ue){ue.preventDefault(),A({type:dd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},ArrowUp:function(ue){ue.preventDefault(),A({type:hd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},Home:function(ue){!q.current.state.isOpen||(ue.preventDefault(),A({type:gd,getItemNodeFromIndex:ge}))},End:function(ue){!q.current.state.isOpen||(ue.preventDefault(),A({type:yd,getItemNodeFromIndex:ge}))},Escape:function(){var ue=q.current.state;(ue.isOpen||ue.inputValue||ue.selectedItem||ue.highlightedIndex>-1)&&A({type:pd})},Enter:function(ue){var oe=q.current.state;!oe.isOpen||oe.highlightedIndex<0||ue.which===229||(ue.preventDefault(),A({type:md,getItemNodeFromIndex:ge}))}}},[A,q,ge]),Me=z.useCallback(function(ee){return Ct({id:j.labelId,htmlFor:j.inputId},ee)},[j]),Ne=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onMouseLeave,te=ve.refKey,Le=te===void 0?"ref":te,Ie=ve.ref,Ee=Xi(ve,v3),He=ue===void 0?{}:ue;return He.suppressRefError,Ct((oe={},oe[Le]=Oo(Ie,function(qe){T.current=qe}),oe.id=j.menuId,oe.role="listbox",oe["aria-labelledby"]=j.labelId,oe.onMouseLeave=Ui(Pe,function(){A({type:Fv})}),oe),Ee)},[A,le,j]),Oe=z.useCallback(function(ee){var ue,oe,ve=ee===void 0?{}:ee,Pe=ve.item,te=ve.index,Le=ve.refKey,Ie=Le===void 0?"ref":Le,Ee=ve.ref,He=ve.onMouseMove,qe=ve.onClick;ve.onPress;var Ke=Xi(ve,b3),nt=q.current,ke=nt.props,Pt=nt.state,Je=i3(te,Pe,ke.items);if(Je<0)throw new Error("Pass either item or item index in getItemProps!");var Nt="onClick",Dt=qe,ht=function(){te!==Pt.highlightedIndex&&(O.current=!1,A({type:$v,index:te}))},Z=function(){A({type:bd,index:te}),L.current&&L.current.focus()};return Ct((ue={},ue[Ie]=Oo(Ee,function(Ae){Ae&&(M.current[j.getItemId(Je)]=Ae)}),ue.role="option",ue["aria-selected"]=""+(Je===Pt.highlightedIndex),ue.id=j.getItemId(Je),ue),!Ke.disabled&&(oe={onMouseMove:Ui(He,ht)},oe[Nt]=Ui(Dt,Z),oe),Ke)},[A,q,O,j]),De=z.useCallback(function(ee){var ue,oe=ee===void 0?{}:ee,ve=oe.onClick;oe.onPress;var Pe=oe.refKey,te=Pe===void 0?"ref":Pe,Le=oe.ref,Ie=Xi(oe,_3),Ee=function(){A({type:Nv}),!q.current.state.isOpen&&L.current&&L.current.focus()};return Ct((ue={},ue[te]=Oo(Le,function(He){K.current=He}),ue.id=j.toggleButtonId,ue.tabIndex=-1,ue),!Ie.disabled&&Ct({},{onClick:Ui(ve,Ee)}),Ie)},[A,q,j]),pe=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onKeyDown,te=ve.onChange,Le=ve.onInput,Ie=ve.onBlur;ve.onChangeText;var Ee=ve.refKey,He=Ee===void 0?"ref":Ee,qe=ve.ref,Ke=Xi(ve,w3),nt=ue===void 0?{}:ue;nt.suppressRefError;var ke=q.current.state,Pt=function(Fe){var pt=GC(Fe);pt&&de[pt]&&de[pt](Fe)},Je=function(Fe){A({type:vd,inputValue:Fe.target.value})},Nt=function(){ke.isOpen&&!he.current.isMouseDown&&A({type:Su,selectItem:!0})},Dt="onChange",ht={};if(!Ke.disabled){var Z;ht=(Z={},Z[Dt]=Ui(te,Le,Je),Z.onKeyDown=Ui(Pe,Pt),Z.onBlur=Ui(Ie,Nt),Z)}return Ct((oe={},oe[He]=Oo(qe,function(Ae){L.current=Ae}),oe.id=j.inputId,oe["aria-autocomplete"]="list",oe["aria-controls"]=j.menuId,oe),ke.isOpen&&ke.highlightedIndex>-1&&{"aria-activedescendant":j.getItemId(ke.highlightedIndex)},{"aria-labelledby":j.labelId,autoComplete:"off",value:ke.inputValue},ht,Ke)},[A,de,q,he,le,j]),$=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.refKey,te=Pe===void 0?"ref":Pe,Le=ve.ref,Ie=Xi(ve,O3),Ee=ue===void 0?{}:ue;return Ee.suppressRefError,Ct((oe={},oe[te]=Oo(Le,function(He){ie.current=He}),oe.role="combobox",oe["aria-haspopup"]="listbox",oe["aria-owns"]=j.menuId,oe["aria-expanded"]=q.current.state.isOpen,oe),Ie)},[q,le,j]),U=z.useCallback(function(){A({type:Dv})},[A]),N=z.useCallback(function(){A({type:Lv})},[A]),Q=z.useCallback(function(){A({type:jv})},[A]),V=z.useCallback(function(ee){A({type:zv,highlightedIndex:ee})},[A]),be=z.useCallback(function(ee){A({type:_d,selectedItem:ee})},[A]),fe=z.useCallback(function(ee){A({type:Hv,inputValue:ee})},[A]),H=z.useCallback(function(){A({type:Uv})},[A]);return{getItemProps:Oe,getLabelProps:Me,getMenuProps:Ne,getInputProps:pe,getComboboxProps:$,getToggleButtonProps:De,toggleMenu:U,openMenu:Q,closeMenu:N,setHighlightedIndex:V,setInputValue:fe,selectItem:be,reset:H,highlightedIndex:C,isOpen:P,selectedItem:v,inputValue:I}}function S3(e){var t=e.removedSelectedItem,r=e.itemToString;return r(t)+" has been removed."}se.array,se.array,se.array,se.func,se.func,se.func,se.number,se.number,se.number,se.func,se.func,se.string,se.string,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})}),Ao.itemToString,Ao.stateReducer,Ao.environment;function A3(e){const{hotels:t,defaultHotel:r,selectedHotel:n,handleHotelChange:i,subMenuItem:a}=e,[o,s]=z.useState([]),{subMenus:u}=rt(T=>T.headerInfo),f=ii(),p=u.find(T=>T===a),d=T=>T?T[0]:"",{isOpen:y,getMenuProps:A,getInputProps:P,getComboboxProps:C,highlightedIndex:v,getItemProps:I}=kv({items:o,itemToString:d,initialSelectedItem:r,selectedItem:n,initialInputValue:r&&r[0],onSelectedItemChange:({selectedItem:T})=>{const M=T[0],[L,K]=T[1].split("_").map(J=>+J),ie={hotelId:L,guideId:K,name:M};Fr.unstable_batchedUpdates(()=>{f(ry(T)),f(Qg(ie)),f(ll(a))}),typeof i=="function"&&i(ie)},onInputValueChange:({inputValue:T})=>{s(t.filter(M=>d(M).toLowerCase().startsWith(T.toLowerCase())))}});return G("ul",{className:Qn("col-12","col-lg","py-3","px-lg-0","py-lg-0","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":p}),children:G("li",{children:We("div",{id:"hd-property-search",children:[G("label",{htmlFor:"hd-property-input",className:"form-label d-lg-none visually-hidden",children:"Select property"}),We("div",dr($t({id:"hd-property-input-container"},C()),{children:[G("input",$t({type:"text",className:"form-control",id:"hd-property-input",placeholder:"hotel name"},P())),G("ul",dr($t({style:{listStyle:"none",marginBottom:0}},A()),{children:y&&o.map((T,M)=>G("li",dr($t({style:v===M?{backgroundColor:"#bde4ff"}:{}},I({hotel:T,index:M})),{children:T[0]}),T[1]))})),G(Dr.Search,{className:"hd-icon hd-icon-search"}),G(Dr.Close,{className:"hd-icon hd-icon-close",onClick:()=>{console.log("clicked")}})]}))]})})})}function P3(e){const{handleHotelChange:t}=e,[r,n]=z.useState("Select property"),i=rt(v=>v.hotelInfo),a=rt(v=>v.userInfo),{isOpen:o,isMobileOrTablet:s}=rt(v=>v.headerInfo),{propertySelector:u}=rt(v=>v.titleBar),{items:f,defaultHotel:p,selectedHotel:d}=rt(v=>v.hotels),[y,{height:A}]=ps(),P=fa(!s||o,{from:{height:0},enter:{height:A},leave:{height:0},update:{height:A},config:dr($t({},Di.stiff),{clamp:!0})}),C=ii();return z.useEffect(()=>{(async()=>{if(u){let{type:v,hotels:I}=u;v==="fetch"&&(I=await(await fetch(I)).json());const T=I.find(M=>{const[L,K]=M[1].split("_").map(ie=>+ie);return i.hotelId===L&&i.guideId===K||a.hotelId===L&&a.guideId===K});Fr.unstable_batchedUpdates(()=>{C(EI(I)),C(CI(T)),C(ry(T))})}})()},[u]),P((v,I)=>I&&G(Li.div,{className:"col-12 col-lg me-lg-auto px-0 order-lg-3",id:"hd-property",style:s?dr($t({},v),{display:"block"}):{},children:G("ul",{ref:y,className:"row list-unstyled mx-0 mb-0 hd-nav-first-level",children:G("li",{className:"col-lg-auto align-items-center",onClick:()=>{C(ra(r))},children:We("div",{className:"row py-lg-0 align-items-center",children:[We("div",{className:"col col-lg-auto py-2 py-lg-0",id:"hd-group-property-name",children:[G("span",{className:"ps-lg-3 py-3 py-lg-0 d-block",id:"hd-group-name",children:"TESTING Hotels"}),We("div",{className:"row me-0 d-lg-none align-items-center",children:[We("div",{className:"col",children:[G("small",{className:"pt-2",children:r}),G("span",{className:"d-block",id:"hd-property-name",children:i.name||p&&p[0]})]}),G("div",{className:"col-auto p-2 d-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]})]}),f.length>0&&G(A3,{hotels:f,defaultHotel:p,selectedHotel:d,handleHotelChange:t,subMenuItem:r})]})})})}))}function I3(){const{i18n:e}=fo(),{help:t}=rt(i=>i.titleBar);if(!t)return null;const{label:r,href:n}=t;return G("li",{className:"col-lg-auto p-0",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"ps-lg-3 pe-3 py-2 d-block",title:"Help",href:n,target:"_blank",rel:"noreferrer",children:e.translate(r).fetch()})})})})}function x3(){const{i18n:e}=fo(),{subMenus:t}=rt(u=>u.headerInfo),{user:r}=rt(u=>u.titleBar),{username:n}=rt(u=>u.userInfo),i=ii();if(!r)return null;const{label:a,children:o}=r,s=t.find(u=>u===a);return We("li",{className:"col-lg-auto p-0",onClick:()=>{i(ra(a))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:a}),We("span",{className:"ps-lg-3 pe-3 py-2 d-block",children:[G("span",{className:"d-none d-lg-inline",children:G(Dr.User,{className:"hd-icon hd-icon-user"})}),G("span",{className:"ps-lg-2",children:n}),G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":s}),children:o.map(({href:u,label:f})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:u,target:"_blank",rel:"noreferrer",children:e.translate(f).fetch()})})})}))})]})}function E3(e){const{handleLanguageChange:t}=e,[r,n]=z.useState(),[i,a]=z.useState([]),o=rt(y=>y.userLanguage),{languageSelector:s}=rt(y=>y.titleBar),{subMenus:u}=rt(y=>y.headerInfo),f=ii();if(z.useEffect(()=>{if(s){const{children:y}=s;if(Array.isArray(y)){const A=y.map(({code:P,label:C})=>{const v=new Intl.DisplayNames([P],{type:"language"});return{code:P,name:C||v.of(P)}});A.length>0&&a(A)}}},[s]),z.useEffect(()=>{var y;if(o){const A=(y=i.find(({code:P})=>P===o))==null?void 0:y.name;A&&n(A)}},[o,i]),!s)return null;const{label:p}=s,d=u.find(y=>y===p);return We("li",{className:"col-lg-auto p-0",onClick:()=>{f(ra(p))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:p}),We("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[r,G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":d}),children:i.map(({code:y,name:A})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:"#",onClick:P=>{P.preventDefault(),P.stopPropagation(),f(ey(y)),typeof t=="function"&&t(y),f(ll(p))},children:A},y)})})}))})]})}function C3(){const[e,t]=z.useState(),{isOpen:r,subMenus:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),{items:a}=rt(u=>u.menuItems),o=fa(n.length>0,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:Di.stiff}),s=ii();return z.useEffect(()=>{var f;const u=((f=a.find(p=>p.id===n[n.length-1]))==null?void 0:f.label)||n[n.length-1];u&&t(u)},[a,n]),!i||!r?null:o((u,f)=>f&&We(Li.div,{className:"col py-2 py-lg-0",id:"hd-submenu-title-container",style:u,children:[G("span",{id:"hd-submenu-back",onClick:()=>{s(ll(n[n.length-1]))},children:G(Dr.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"})}),G("span",{className:"ms-3",id:"hd-submenu-title",children:e})]}))}function R3(e){const{handleHotelChange:t,handleLanguageChange:r}=e,{isOpen:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),[a,{height:o}]=ps(),s=fa(!i||n,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return G("div",{className:"container-xxl",children:We("div",{className:"row align-items-center pb-lg-2",id:"hd-header-container",children:[G(C3,{}),G(Xx,{}),G(ZE,{}),G(tC,{}),G(TC,{}),G(P3,{handleHotelChange:t}),s((u,f)=>f&&G(Li.div,{className:"col-12 col-lg-auto ps-lg-0 align-middle order-lg-5",id:"hd-nav-container-top",style:i?dr($t({},u),{display:"block"}):{},children:G("nav",{ref:a,id:"hd-top-nav",children:We("ul",{className:"row list-unstyled mb-0 hd-nav-first-level",children:[G(I3,{}),G(E3,{handleLanguageChange:r}),G(x3,{})]})})}))]})})}let T3=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function M3(e){var M;const{item:t,level:r,hasChildren:n,children:i}=e,{href:a,label:o,id:s,group:u,premium:f={}}=t,{value:p=!1,locked:d=!1}=f,{i18n:y}=fo(),{isOpen:A,subMenus:P}=rt(L=>L.headerInfo),{items:C}=rt(L=>L.menuItems),v=A&&P.find(L=>L===s),I=!!u&&((M=C.find(L=>L.group===u))==null?void 0:M.id)===s,T=ii();if(p&&d)return We("li",{className:"hd-nav-has-children",onClick:()=>{T(ra(s))},children:[G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:We("span",{className:"px-lg-3 py-2 d-block",children:[y.translate("label").fetch(),G("span",{className:"float-end",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})})]})})}),G("ul",{className:Qn("py-3","list-unstyled",{"hd-nav-second-level":r===1,"hd-nav-third-level":r===2,"hd-submenu-opened":v}),children:G("li",{className:"hd-premium",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:We("div",{className:"col p-lg-3",children:[G("span",{className:"d-lg-none mb-3",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})}),We("p",{children:["This premium functionality has not been activated.",G("br",{}),"Please contact us to activate this feature."]}),G("a",{className:"btn btn-sm btn-outline-primary",href:"#",target:"_blank",children:"Learn more"})]})})})})]});if(r===1)return We("li",{className:"col-lg-auto p-0",onClick:()=>{n&&T(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:G("span",{className:"ps-lg-3 pe-3 py-2",children:y.translate(o).fetch()})}),n&&G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),n&&G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":v}),children:i})]});if(r===2)return We(es,{children:[I&&G("div",{className:"row m-0 pt-3 hd-nav-section",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("div",{className:"px-lg-3 d-block text-uppercase",children:y.translate(u).fetch()})})}),We("li",{onClick:()=>{n&&T(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:a?G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{T(cl(s))},children:y.translate(o).fetch()}):G("span",{className:"px-lg-3 py-2 d-block",children:y.translate(o).fetch()})}),n&&G("div",{className:"col-auto px-0",children:G("span",{className:"p-2 d-lg-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})})]}),n&&G("ul",{className:Qn("ps-3","ps-lg-0","list-unstyled","hd-nav-third-level",{"hd-submenu-opened":v}),children:i})]})]});if(r===3)return G("li",{children:G("div",{className:"row m-0 py-1 py-lg-0 align-items-center",children:G("div",{className:"col p-lg-0",children:G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{T(cl(s))},children:y.translate(o).fetch()})})})})}const Wv=T3();function Kv(e){const{menuItems:t,parentId:r=Wv,level:n=1}=e,i=t.filter(a=>(a.parentId||Wv)===r);return i.length?i.map(a=>{const o=!!t.find(p=>p.parentId===a.id),{premium:s={}}=a,{value:u=!1,locked:f=!1}=s;return G(M3,{item:a,level:n,hasChildren:o,premium:u,locked:f,children:G(Kv,{menuItems:t,parentId:a.id,level:n+1})},a.id)}):null}function F3(){const{items:e}=rt(f=>f.menuItems),{isOpen:t,isMobileOrTablet:r,subMenus:n}=rt(f=>f.headerInfo),i=ii(),[a,{height:o}]=ps(),s=z.useRef(null),u=fa(!r||t,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return z.useEffect(()=>{if(e.length>0){const f=new URL(window.location.href),{hash:p}=f,d=e.find(y=>y.href===p);d&&i(cl(d.id))}},[e]),z.useEffect(()=>{s&&n.length>0&&(s.current.scrollTop=0)},[n.length]),u((f,p)=>p&&G(Li.div,{className:"container-xxl",id:"hd-nav-container",style:r?dr($t({},f),{display:"block"}):{},children:G("nav",{className:"hd-nav",ref:a,children:G("ul",{ref:s,className:"row list-unstyled mb-0 hd-nav-first-level",children:G(Kv,{menuItems:e})})})}))}function $3(){const[e,t]=z.useState([]),{items:r,selectedItem:n}=rt(a=>a.menuItems),{i18n:i}=fo();return z.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:G("div",{className:"container-xxl mt-3 mt-lg-5",children:G("nav",{"aria-label":"breadcrumb",id:"hd-breadcrumb",children:We("ol",{className:"breadcrumb mb-0",children:[G("li",{className:"breadcrumb-item active",children:i.translate(e[0].label).fetch()}),e.length>=2&&G("li",{className:"breadcrumb-item active",children:i.translate(e[1].label).fetch()}),e.length===3&&G("li",{className:"breadcrumb-item active",children:i.translate(e[2].label).fetch()})]})})})}function N3(e){const{hotelInfo:t,userInfo:r,userLanguage:n}=e,{isOpen:i,subMenus:a,isMobileOrTablet:o}=rt(p=>p.headerInfo),s=z.useRef(null),{width:u}=$P(),f=ii();return z.useEffect(()=>{n&&f(ey(n))},[]),z.useEffect(()=>{u&&f(SI(u))},[u]),z.useEffect(()=>{fetch("/hotel_admin/json/title_bar.jsp").then(p=>p.json()).then(p=>{f(gI(p))})},[]),z.useEffect(()=>{fetch("/api/menu").then(p=>p.json()).then(p=>{f(hI(p))})},[]),z.useEffect(()=>{fetch("/api/notifications").then(p=>p.json()).then(p=>{f(mI(p))})},[]),z.useEffect(()=>{t&&f(Qg(t))},[]),z.useEffect(()=>{r&&f(_I(r))},[]),z.useEffect(()=>{s&&a.length>0&&(s.current.scrollTop=0)},[a.length]),We(es,{children:[We("div",{ref:s,id:"hd-container",className:Qn("container-fluid","px-0 fixed-top",{"hd-menu-opened":i,"hd-overflow-hidden":a.length>0}),style:$t({},o&&!i&&{overflow:"hidden"}),children:[G(R3,$t({},e)),G(F3,{})]}),G($3,{})]})}const qv=FI(N3);function D3(e,t){Fr.render(G(qv,$t({},t)),e)}DA(),rr.Header=qv,rr.renderHeader=D3,Object.defineProperties(rr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
134
|
+
*/var vu=60103,bu=60106,ho=60107,po=60108,go=60114,yo=60109,mo=60110,vo=60112,bo=60113,sd=60120,_o=60115,wo=60116,mv=60121,vv=60122,bv=60117,_v=60129,wv=60131;if(typeof Symbol=="function"&&Symbol.for){var Or=Symbol.for;vu=Or("react.element"),bu=Or("react.portal"),ho=Or("react.fragment"),po=Or("react.strict_mode"),go=Or("react.profiler"),yo=Or("react.provider"),mo=Or("react.context"),vo=Or("react.forward_ref"),bo=Or("react.suspense"),sd=Or("react.suspense_list"),_o=Or("react.memo"),wo=Or("react.lazy"),mv=Or("react.block"),vv=Or("react.server.block"),bv=Or("react.fundamental"),_v=Or("react.debug_trace_mode"),wv=Or("react.legacy_hidden")}function $n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vu:switch(e=e.type,e){case ho:case go:case po:case bo:case sd:return e;default:switch(e=e&&e.$$typeof,e){case mo:case vo:case wo:case _o:case yo:return e;default:return t}}case bu:return t}}}var MC=yo,FC=vu,$C=vo,NC=ho,DC=wo,jC=_o,LC=bu,zC=go,HC=po,UC=bo;At.ContextConsumer=mo,At.ContextProvider=MC,At.Element=FC,At.ForwardRef=$C,At.Fragment=NC,At.Lazy=DC,At.Memo=jC,At.Portal=LC,At.Profiler=zC,At.StrictMode=HC,At.Suspense=UC,At.isAsyncMode=function(){return!1},At.isConcurrentMode=function(){return!1},At.isContextConsumer=function(e){return $n(e)===mo},At.isContextProvider=function(e){return $n(e)===yo},At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vu},At.isForwardRef=function(e){return $n(e)===vo},At.isFragment=function(e){return $n(e)===ho},At.isLazy=function(e){return $n(e)===wo},At.isMemo=function(e){return $n(e)===_o},At.isPortal=function(e){return $n(e)===bu},At.isProfiler=function(e){return $n(e)===go},At.isStrictMode=function(e){return $n(e)===po},At.isSuspense=function(e){return $n(e)===bo},At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ho||e===go||e===_v||e===po||e===bo||e===sd||e===wv||typeof e=="object"&&e!==null&&(e.$$typeof===wo||e.$$typeof===_o||e.$$typeof===yo||e.$$typeof===mo||e.$$typeof===vo||e.$$typeof===bv||e.$$typeof===mv||e[0]===vv)},At.typeOf=$n;function Ov(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Sv(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ud(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return Sv(r.overflowY,t)||Sv(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 _u(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 BC(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(ue){return ue!==o};if(!Ov(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],d=e;Ov(d)&&u(d);){if((d=d.parentElement)===f){p.push(d);break}d!=null&&d===document.body&&ud(d)&&!ud(document.documentElement)||d!=null&&ud(d,s)&&p.push(d)}for(var y=r.visualViewport?r.visualViewport.width:innerWidth,A=r.visualViewport?r.visualViewport.height:innerHeight,P=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),I=v.height,T=v.width,M=v.top,L=v.right,K=v.bottom,ie=v.left,J=i==="start"||i==="nearest"?M:i==="end"?K:M+I/2,j=a==="center"?ie+T/2:a==="end"?L:ie,ce=[],q=0;q<p.length;q++){var ge=p[q],O=ge.getBoundingClientRect(),he=O.height,le=O.width,de=O.top,Me=O.right,Ne=O.bottom,Oe=O.left;if(n==="if-needed"&&M>=0&&ie>=0&&K<=A&&L<=y&&M>=de&&K<=Ne&&ie>=Oe&&L<=Me)return ce;var De=getComputedStyle(ge),pe=parseInt(De.borderLeftWidth,10),$=parseInt(De.borderTopWidth,10),U=parseInt(De.borderRightWidth,10),N=parseInt(De.borderBottomWidth,10),Q=0,V=0,be="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-pe-U:0,fe="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-$-N:0;if(f===ge)Q=i==="start"?J:i==="end"?J-A:i==="nearest"?_u(C,C+A,A,$,N,C+J,C+J+I,I):J-A/2,V=a==="start"?j:a==="center"?j-y/2:a==="end"?j-y:_u(P,P+y,y,pe,U,P+j,P+j+T,T),Q=Math.max(0,Q+C),V=Math.max(0,V+P);else{Q=i==="start"?J-de-$:i==="end"?J-Ne+N+fe:i==="nearest"?_u(de,Ne,he,$,N+fe,J,J+I,I):J-(de+he/2)+fe/2,V=a==="start"?j-Oe-pe:a==="center"?j-(Oe+le/2)+be/2:a==="end"?j-Me+U+be:_u(Oe,Me,le,pe,U+be,j,j+T,T);var H=ge.scrollLeft,ee=ge.scrollTop;J+=ee-(Q=Math.max(0,Math.min(ee+Q,ge.scrollHeight-he+fe))),j+=H-(V=Math.max(0,Math.min(H+V,ge.scrollWidth-le+be)))}ce.push({el:ge,top:Q,left:V})}return ce}var kC=0;function Av(){}function WC(e,t){if(!!e){var r=BC(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 Pv(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Iv(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 Ui(){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 Oo(){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 KC(){return String(kC++)}function qC(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 cd(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=xv(t,n)?t[n]:e[n],r},{})}function xv(e,t){return e[t]!==void 0}function GC(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function ld(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=So(e,o,r,n,i);return s===-1?t>=r?-1:t:s}function So(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?So(1,0,r,n,!1):So(-1,r-1,r,n,!1):-1}function Ev(e,t,r,n){return n===void 0&&(n=!0),t.some(function(i){return i&&(Pv(i,e,r)||n&&Pv(i,r.document.activeElement,r))})}var VC=Iv(function(e){Cv(e).textContent=""},500);function YC(e,t){var r=Cv(t);!e||(r.textContent=e,VC(t))}function Cv(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 QC=["isInitialMount","highlightedIndex","items","environment"],Rv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function JC(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){XC(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(Ct({type:i},a))}function XC(e,t,r,n){var i=t.props,a=t.type,o="on"+fd(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](Ct({type:a},n))}function ZC(e,t){return t.changes}function e3(e){var t=e.selectedItem,r=e.itemToString;return t?r(t)+" has been selected.":""}var t3=Iv(function(e,t){YC(e(),t)},200),r3=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?z.useLayoutEffect:z.useEffect;function n3(e){var t=e.id,r=t===void 0?"downshift-"+KC():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=z.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(f){return r+"-item-"+f},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"});return u.current}function i3(e,t,r){return e!==void 0?e:r.length===0?-1:r.indexOf(t)}function a3(e){return e?String(e):""}function fd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Tv(e){var t=z.useRef(e);return t.current=e,t}function o3(e,t,r){var n=z.useRef(),i=z.useRef(),a=z.useCallback(function(y,A){i.current=A,y=cd(y,A.props);var P=e(y,A),C=A.props.stateReducer(y,Ct({},A,{changes:P}));return C},[e]),o=z.useReducer(a,t),s=o[0],u=o[1],f=Tv(r),p=z.useCallback(function(y){return u(Ct({props:f.current},y))},[f]),d=i.current;return z.useEffect(function(){d&&n.current&&n.current!==s&&JC(d,cd(n.current,d.props),s),n.current=s},[s,r,d]),[s,p]}var Ao={itemToString:a3,stateReducer:ZC,getA11ySelectionMessage:e3,scrollIntoView:WC,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};function ri(e,t,r){r===void 0&&(r=Rv);var n="default"+fd(t);return n in e?e[n]:r[t]}function wu(e,t,r){if(r===void 0&&(r=Rv),t in e)return e[t];var n="initial"+fd(t);return n in e?e[n]:ri(e,t,r)}function s3(e){var t=wu(e,"selectedItem"),r=wu(e,"isOpen"),n=wu(e,"highlightedIndex"),i=wu(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.indexOf(t):n,isOpen:r,selectedItem:t,inputValue:i}}function Ou(e,t,r,n){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return i.length===0?-1:a!==void 0&&u===a?a:o!==void 0?o:s?r===0?i.indexOf(s):ld(r,i.indexOf(s),i.length,n,!1):r===0?-1:r<0?i.length-1:0}function u3(e,t,r,n){var i=z.useRef({isMouseDown:!1,isTouchMove:!1});return z.useEffect(function(){var a=function(){i.current.isMouseDown=!0},o=function(d){i.current.isMouseDown=!1,e&&!Ev(d.target,t.map(function(y){return y.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},f=function(d){e&&!i.current.isTouchMove&&!Ev(d.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",u),r.addEventListener("touchend",f),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseup",o),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",u),r.removeEventListener("touchend",f)}},[e,r]),i}var c3=function(){return Av};function Mv(e,t,r){var n=r.isInitialMount,i=r.highlightedIndex,a=r.items,o=r.environment,s=Xi(r,QC);z.useEffect(function(){n||t3(function(){return e(Ct({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function l3(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=z.useRef(!0);return r3(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var f3=Av;function d3(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:Ou(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Ou(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:ri(i,"highlightedIndex"),isOpen:ri(i,"isOpen"),selectedItem:ri(i,"selectedItem"),inputValue:ri(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ct({},e,a)}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.func,se.string,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function h3(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.":""}hs(hs({},Ao),{getA11yStatusMessage:h3});var dd=0,hd=1,pd=2,gd=3,yd=4,md=5,vd=6,Su=7,Fv=8,$v=9,bd=10,Nv=11,Dv=12,jv=13,Lv=14,zv=15,_d=16,Hv=17,Uv=18,wd=19,Bv=Object.freeze({__proto__:null,InputKeyDownArrowDown:dd,InputKeyDownArrowUp:hd,InputKeyDownEscape:pd,InputKeyDownHome:gd,InputKeyDownEnd:yd,InputKeyDownEnter:md,InputChange:vd,InputBlur:Su,MenuMouseLeave:Fv,ItemMouseMove:$v,ItemClick:bd,ToggleButtonClick:Nv,FunctionToggleMenu:Dv,FunctionOpenMenu:jv,FunctionCloseMenu:Lv,FunctionSetHighlightedIndex:zv,FunctionSelectItem:_d,FunctionSetInputValue:Hv,FunctionReset:Uv,ControlledPropUpdatedSelectedItem:wd});function p3(e){var t=s3(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)),Ct({},t,{inputValue:n})}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.string,se.string,se.string,se.func,se.string,se.string,se.func,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function g3(e,t,r){var n=z.useRef(),i=o3(e,t,r),a=i[0],o=i[1];return z.useEffect(function(){xv(r,"selectedItem")&&(n.current!==r.selectedItem&&o({type:wd,inputValue:r.itemToString(r.selectedItem)}),n.current=a.selectedItem===n.current?r.selectedItem:a.selectedItem)}),[cd(a,r),o]}var y3=Ct({},Ao,{getA11yStatusMessage:qC,circularNavigation:!0});function m3(e,t){var r=t.type,n=t.props,i=t.shiftKey,a;switch(r){case bd:a={isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case dd:e.isOpen?a={highlightedIndex:ld(i?5:1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case hd:e.isOpen?a={highlightedIndex:ld(i?-5:-1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,-1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case md:a=Ct({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:n.items[e.highlightedIndex],isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case pd:a=Ct({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case gd:a={highlightedIndex:So(1,0,n.items.length,t.getItemNodeFromIndex,!1)};break;case yd:a={highlightedIndex:So(-1,n.items.length-1,n.items.length,t.getItemNodeFromIndex,!1)};break;case Su:a=Ct({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case vd:a={isOpen:!0,highlightedIndex:ri(n,"highlightedIndex"),inputValue:t.inputValue};break;case _d:a={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case wd:a={inputValue:t.inputValue};break;default:return d3(e,t,Bv)}return Ct({},e,a)}var v3=["onMouseLeave","refKey","ref"],b3=["item","index","refKey","ref","onMouseMove","onClick","onPress"],_3=["onClick","onPress","refKey","ref"],w3=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],O3=["refKey","ref"];kv.stateChangeTypes=Bv;function kv(e){e===void 0&&(e={});var t=Ct({},y3,e),r=t.initialIsOpen,n=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,f=t.itemToString,p=p3(t),d=g3(m3,p,t),y=d[0],A=d[1],P=y.isOpen,C=y.highlightedIndex,v=y.selectedItem,I=y.inputValue,T=z.useRef(null),M=z.useRef({}),L=z.useRef(null),K=z.useRef(null),ie=z.useRef(null),J=z.useRef(!0),j=n3(t),ce=z.useRef(),q=Tv({state:y,props:t}),ge=z.useCallback(function(ee){return M.current[j.getItemId(ee)]},[j]);Mv(s,[P,C,I,i],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},y)),Mv(u,[v],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},y));var O=l3({menuElement:T.current,highlightedIndex:C,isOpen:P,itemRefs:M,scrollIntoView:a,getItemNodeFromIndex:ge});f3({isInitialMount:J.current,props:t,state:y}),z.useEffect(function(){var ee=r||n||P;ee&&L.current&&L.current.focus()},[]),z.useEffect(function(){J.current||(ce.current=i.length)});var he=u3(P,[ie,T,K],o,function(){A({type:Su,selectItem:!1})}),le=c3();z.useEffect(function(){J.current=!1},[]),z.useEffect(function(){P||(M.current={})},[P]);var de=z.useMemo(function(){return{ArrowDown:function(ue){ue.preventDefault(),A({type:dd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},ArrowUp:function(ue){ue.preventDefault(),A({type:hd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},Home:function(ue){!q.current.state.isOpen||(ue.preventDefault(),A({type:gd,getItemNodeFromIndex:ge}))},End:function(ue){!q.current.state.isOpen||(ue.preventDefault(),A({type:yd,getItemNodeFromIndex:ge}))},Escape:function(){var ue=q.current.state;(ue.isOpen||ue.inputValue||ue.selectedItem||ue.highlightedIndex>-1)&&A({type:pd})},Enter:function(ue){var oe=q.current.state;!oe.isOpen||oe.highlightedIndex<0||ue.which===229||(ue.preventDefault(),A({type:md,getItemNodeFromIndex:ge}))}}},[A,q,ge]),Me=z.useCallback(function(ee){return Ct({id:j.labelId,htmlFor:j.inputId},ee)},[j]),Ne=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onMouseLeave,te=ve.refKey,Le=te===void 0?"ref":te,Ie=ve.ref,Ee=Xi(ve,v3),He=ue===void 0?{}:ue;return He.suppressRefError,Ct((oe={},oe[Le]=Oo(Ie,function(qe){T.current=qe}),oe.id=j.menuId,oe.role="listbox",oe["aria-labelledby"]=j.labelId,oe.onMouseLeave=Ui(Pe,function(){A({type:Fv})}),oe),Ee)},[A,le,j]),Oe=z.useCallback(function(ee){var ue,oe,ve=ee===void 0?{}:ee,Pe=ve.item,te=ve.index,Le=ve.refKey,Ie=Le===void 0?"ref":Le,Ee=ve.ref,He=ve.onMouseMove,qe=ve.onClick;ve.onPress;var Ke=Xi(ve,b3),nt=q.current,ke=nt.props,Pt=nt.state,Je=i3(te,Pe,ke.items);if(Je<0)throw new Error("Pass either item or item index in getItemProps!");var Nt="onClick",Dt=qe,ht=function(){te!==Pt.highlightedIndex&&(O.current=!1,A({type:$v,index:te}))},Z=function(){A({type:bd,index:te}),L.current&&L.current.focus()};return Ct((ue={},ue[Ie]=Oo(Ee,function(Ae){Ae&&(M.current[j.getItemId(Je)]=Ae)}),ue.role="option",ue["aria-selected"]=""+(Je===Pt.highlightedIndex),ue.id=j.getItemId(Je),ue),!Ke.disabled&&(oe={onMouseMove:Ui(He,ht)},oe[Nt]=Ui(Dt,Z),oe),Ke)},[A,q,O,j]),De=z.useCallback(function(ee){var ue,oe=ee===void 0?{}:ee,ve=oe.onClick;oe.onPress;var Pe=oe.refKey,te=Pe===void 0?"ref":Pe,Le=oe.ref,Ie=Xi(oe,_3),Ee=function(){A({type:Nv}),!q.current.state.isOpen&&L.current&&L.current.focus()};return Ct((ue={},ue[te]=Oo(Le,function(He){K.current=He}),ue.id=j.toggleButtonId,ue.tabIndex=-1,ue),!Ie.disabled&&Ct({},{onClick:Ui(ve,Ee)}),Ie)},[A,q,j]),pe=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onKeyDown,te=ve.onChange,Le=ve.onInput,Ie=ve.onBlur;ve.onChangeText;var Ee=ve.refKey,He=Ee===void 0?"ref":Ee,qe=ve.ref,Ke=Xi(ve,w3),nt=ue===void 0?{}:ue;nt.suppressRefError;var ke=q.current.state,Pt=function(Fe){var pt=GC(Fe);pt&&de[pt]&&de[pt](Fe)},Je=function(Fe){A({type:vd,inputValue:Fe.target.value})},Nt=function(){ke.isOpen&&!he.current.isMouseDown&&A({type:Su,selectItem:!0})},Dt="onChange",ht={};if(!Ke.disabled){var Z;ht=(Z={},Z[Dt]=Ui(te,Le,Je),Z.onKeyDown=Ui(Pe,Pt),Z.onBlur=Ui(Ie,Nt),Z)}return Ct((oe={},oe[He]=Oo(qe,function(Ae){L.current=Ae}),oe.id=j.inputId,oe["aria-autocomplete"]="list",oe["aria-controls"]=j.menuId,oe),ke.isOpen&&ke.highlightedIndex>-1&&{"aria-activedescendant":j.getItemId(ke.highlightedIndex)},{"aria-labelledby":j.labelId,autoComplete:"off",value:ke.inputValue},ht,Ke)},[A,de,q,he,le,j]),$=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.refKey,te=Pe===void 0?"ref":Pe,Le=ve.ref,Ie=Xi(ve,O3),Ee=ue===void 0?{}:ue;return Ee.suppressRefError,Ct((oe={},oe[te]=Oo(Le,function(He){ie.current=He}),oe.role="combobox",oe["aria-haspopup"]="listbox",oe["aria-owns"]=j.menuId,oe["aria-expanded"]=q.current.state.isOpen,oe),Ie)},[q,le,j]),U=z.useCallback(function(){A({type:Dv})},[A]),N=z.useCallback(function(){A({type:Lv})},[A]),Q=z.useCallback(function(){A({type:jv})},[A]),V=z.useCallback(function(ee){A({type:zv,highlightedIndex:ee})},[A]),be=z.useCallback(function(ee){A({type:_d,selectedItem:ee})},[A]),fe=z.useCallback(function(ee){A({type:Hv,inputValue:ee})},[A]),H=z.useCallback(function(){A({type:Uv})},[A]);return{getItemProps:Oe,getLabelProps:Me,getMenuProps:Ne,getInputProps:pe,getComboboxProps:$,getToggleButtonProps:De,toggleMenu:U,openMenu:Q,closeMenu:N,setHighlightedIndex:V,setInputValue:fe,selectItem:be,reset:H,highlightedIndex:C,isOpen:P,selectedItem:v,inputValue:I}}function S3(e){var t=e.removedSelectedItem,r=e.itemToString;return r(t)+" has been removed."}se.array,se.array,se.array,se.func,se.func,se.func,se.number,se.number,se.number,se.func,se.func,se.string,se.string,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})}),Ao.itemToString,Ao.stateReducer,Ao.environment;function A3(e){const{hotels:t,defaultHotel:r,selectedHotel:n,handleHotelChange:i,subMenuItem:a}=e,[o,s]=z.useState([]),{subMenus:u}=rt(T=>T.headerInfo),f=ii(),p=u.find(T=>T===a),d=T=>T?T[0]:"",{isOpen:y,getMenuProps:A,getInputProps:P,getComboboxProps:C,highlightedIndex:v,getItemProps:I}=kv({items:o,itemToString:d,initialSelectedItem:r,selectedItem:n,initialInputValue:r&&r[0],onSelectedItemChange:({selectedItem:T})=>{const M=T[0],[L,K]=T[1].split("_").map(J=>+J),ie={hotelId:L,guideId:K,name:M};Fr.unstable_batchedUpdates(()=>{f(ry(T)),f(Qg(ie)),f(ll(a))}),typeof i=="function"&&i(ie)},onInputValueChange:({inputValue:T})=>{s(t.filter(M=>d(M).toLowerCase().startsWith(T.toLowerCase())))}});return G("ul",{className:Qn("col-12","col-lg","py-3","px-lg-0","py-lg-0","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":p}),style:{top:50},children:G("li",{children:We("div",{id:"hd-property-search",children:[G("label",{htmlFor:"hd-property-input",className:"form-label d-lg-none visually-hidden",children:"Select property"}),We("div",dr($t({id:"hd-property-input-container"},C()),{children:[G("input",$t({type:"text",className:"form-control",id:"hd-property-input",placeholder:"hotel name"},P())),G("ul",dr($t({style:{listStyle:"none",marginBottom:0}},A()),{children:y&&o.map((T,M)=>G("li",dr($t({style:v===M?{backgroundColor:"#bde4ff"}:{}},I({hotel:T,index:M})),{children:T[0]}),T[1]))})),G(Dr.Search,{className:"hd-icon hd-icon-search"}),G(Dr.Close,{className:"hd-icon hd-icon-close",onClick:()=>{console.log("clicked")}})]}))]})})})}function P3(e){const{handleHotelChange:t}=e,[r,n]=z.useState("Select property"),i=rt(v=>v.hotelInfo),a=rt(v=>v.userInfo),{isOpen:o,isMobileOrTablet:s}=rt(v=>v.headerInfo),{propertySelector:u}=rt(v=>v.titleBar),{items:f,defaultHotel:p,selectedHotel:d}=rt(v=>v.hotels),[y,{height:A}]=ps(),P=fa(!s||o,{from:{height:0},enter:{height:A},leave:{height:0},update:{height:A},config:dr($t({},Di.stiff),{clamp:!0})}),C=ii();return z.useEffect(()=>{(async()=>{if(u){let{type:v,hotels:I}=u;v==="fetch"&&(I=await(await fetch(I)).json());const T=I.find(M=>{const[L,K]=M[1].split("_").map(ie=>+ie);return i.hotelId===L&&i.guideId===K||a.hotelId===L&&a.guideId===K});Fr.unstable_batchedUpdates(()=>{C(EI(I)),C(CI(T)),C(ry(T))})}})()},[u]),P((v,I)=>I&&G(Li.div,{className:"col-12 col-lg me-lg-auto px-0 order-lg-3",id:"hd-property",style:s?dr($t({},v),{display:"block"}):{},children:G("ul",{ref:y,className:"row list-unstyled mx-0 mb-0 hd-nav-first-level",children:G("li",{className:"col-lg-auto align-items-center",onClick:()=>{C(ra(r))},children:We("div",{className:"row py-lg-0 align-items-center",children:[We("div",{className:"col col-lg-auto py-2 py-lg-0",id:"hd-group-property-name",children:[G("span",{className:"ps-lg-3 py-3 py-lg-0 d-block",id:"hd-group-name",children:"TESTING Hotels"}),We("div",{className:"row me-0 d-lg-none align-items-center",children:[We("div",{className:"col",children:[G("small",{className:"pt-2",children:r}),G("span",{className:"d-block",id:"hd-property-name",children:i.name||p&&p[0]})]}),G("div",{className:"col-auto p-2 d-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]})]}),f.length>0&&G(A3,{hotels:f,defaultHotel:p,selectedHotel:d,handleHotelChange:t,subMenuItem:r})]})})})}))}function I3(){const{i18n:e}=fo(),{help:t}=rt(i=>i.titleBar);if(!t)return null;const{label:r,href:n}=t;return G("li",{className:"col-lg-auto p-0",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"ps-lg-3 pe-3 py-2 d-block",title:"Help",href:n,target:"_blank",rel:"noreferrer",children:e.translate(r).fetch()})})})})}function x3(){const{i18n:e}=fo(),{subMenus:t}=rt(u=>u.headerInfo),{user:r}=rt(u=>u.titleBar),{username:n}=rt(u=>u.userInfo),i=ii();if(!r)return null;const{label:a,children:o}=r,s=t.find(u=>u===a);return We("li",{className:"col-lg-auto p-0",onClick:()=>{i(ra(a))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:a}),We("span",{className:"ps-lg-3 pe-3 py-2 d-block",children:[G("span",{className:"d-none d-lg-inline",children:G(Dr.User,{className:"hd-icon hd-icon-user"})}),G("span",{className:"ps-lg-2",children:n}),G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":s}),style:{top:50},children:o.map(({href:u,label:f})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:u,target:"_blank",rel:"noreferrer",children:e.translate(f).fetch()})})})}))})]})}function E3(e){const{handleLanguageChange:t}=e,[r,n]=z.useState(),[i,a]=z.useState([]),o=rt(y=>y.userLanguage),{languageSelector:s}=rt(y=>y.titleBar),{subMenus:u}=rt(y=>y.headerInfo),f=ii();if(z.useEffect(()=>{if(s){const{children:y}=s;if(Array.isArray(y)){const A=y.map(({code:P,label:C})=>{const v=new Intl.DisplayNames([P],{type:"language"});return{code:P,name:C||v.of(P)}});A.length>0&&a(A)}}},[s]),z.useEffect(()=>{var y;if(o){const A=(y=i.find(({code:P})=>P===o))==null?void 0:y.name;A&&n(A)}},[o,i]),!s)return null;const{label:p}=s,d=u.find(y=>y===p);return We("li",{className:"col-lg-auto p-0",onClick:()=>{f(ra(p))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:p}),We("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[r,G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":d}),style:{top:50},children:i.map(({code:y,name:A})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:"#",onClick:P=>{P.preventDefault(),P.stopPropagation(),f(ey(y)),typeof t=="function"&&t(y),f(ll(p))},children:A},y)})})}))})]})}function C3(){const[e,t]=z.useState(),{isOpen:r,subMenus:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),{items:a}=rt(u=>u.menuItems),o=fa(n.length>0,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:Di.stiff}),s=ii();return z.useEffect(()=>{var f;const u=((f=a.find(p=>p.id===n[n.length-1]))==null?void 0:f.label)||n[n.length-1];u&&t(u)},[a,n]),!i||!r?null:o((u,f)=>f&&We(Li.div,{className:"col py-2 py-lg-0",id:"hd-submenu-title-container",style:u,children:[G("span",{id:"hd-submenu-back",onClick:()=>{s(ll(n[n.length-1]))},children:G(Dr.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"})}),G("span",{className:"ms-3",id:"hd-submenu-title",children:e})]}))}function R3(e){const{handleHotelChange:t,handleLanguageChange:r}=e,{isOpen:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),[a,{height:o}]=ps(),s=fa(!i||n,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return G("div",{className:"container-xxl",children:We("div",{className:"row align-items-center pb-lg-2",id:"hd-header-container",children:[G(C3,{}),G(Xx,{}),G(ZE,{}),G(tC,{}),G(TC,{}),G(P3,{handleHotelChange:t}),s((u,f)=>f&&G(Li.div,{className:"col-12 col-lg-auto ps-lg-0 align-middle order-lg-5",id:"hd-nav-container-top",style:i?dr($t({},u),{display:"block"}):{},children:G("nav",{ref:a,id:"hd-top-nav",children:We("ul",{className:"row list-unstyled mb-0 hd-nav-first-level",children:[G(I3,{}),G(E3,{handleLanguageChange:r}),G(x3,{})]})})}))]})})}let T3=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function M3(e){var M;const{item:t,level:r,hasChildren:n,children:i}=e,{href:a,label:o,id:s,group:u,premium:f={}}=t,{value:p=!1,locked:d=!1}=f,{i18n:y}=fo(),{isOpen:A,subMenus:P}=rt(L=>L.headerInfo),{items:C}=rt(L=>L.menuItems),v=A&&P.find(L=>L===s),I=!!u&&((M=C.find(L=>L.group===u))==null?void 0:M.id)===s,T=ii();if(p&&d)return We("li",{className:"hd-nav-has-children",onClick:()=>{T(ra(s))},children:[G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:We("span",{className:"px-lg-3 py-2 d-block",children:[y.translate("label").fetch(),G("span",{className:"float-end",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})})]})})}),G("ul",{className:Qn("py-3","list-unstyled",{"hd-nav-second-level":r===1,"hd-nav-third-level":r===2,"hd-submenu-opened":v}),children:G("li",{className:"hd-premium",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:We("div",{className:"col p-lg-3",children:[G("span",{className:"d-lg-none mb-3",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})}),We("p",{children:["This premium functionality has not been activated.",G("br",{}),"Please contact us to activate this feature."]}),G("a",{className:"btn btn-sm btn-outline-primary",href:"#",target:"_blank",children:"Learn more"})]})})})})]});if(r===1)return We("li",{className:"col-lg-auto p-0",onClick:()=>{n&&T(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:G("span",{className:"ps-lg-3 pe-3 py-2",children:y.translate(o).fetch()})}),n&&G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),n&&G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":v}),style:{top:50},children:i})]});if(r===2)return We(es,{children:[I&&G("div",{className:"row m-0 pt-3 hd-nav-section",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("div",{className:"px-lg-3 d-block text-uppercase",children:y.translate(u).fetch()})})}),We("li",{onClick:()=>{n&&T(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:a?G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{T(cl(s))},children:y.translate(o).fetch()}):G("span",{className:"px-lg-3 py-2 d-block",children:y.translate(o).fetch()})}),n&&G("div",{className:"col-auto px-0",children:G("span",{className:"p-2 d-lg-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})})]}),n&&G("ul",{className:Qn("ps-3","ps-lg-0","list-unstyled","hd-nav-third-level",{"hd-submenu-opened":v}),children:i})]})]});if(r===3)return G("li",{children:G("div",{className:"row m-0 py-1 py-lg-0 align-items-center",children:G("div",{className:"col p-lg-0",children:G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{T(cl(s))},children:y.translate(o).fetch()})})})})}const Wv=T3();function Kv(e){const{menuItems:t,parentId:r=Wv,level:n=1}=e,i=t.filter(a=>(a.parentId||Wv)===r);return i.length?i.map(a=>{const o=!!t.find(p=>p.parentId===a.id),{premium:s={}}=a,{value:u=!1,locked:f=!1}=s;return G(M3,{item:a,level:n,hasChildren:o,premium:u,locked:f,children:G(Kv,{menuItems:t,parentId:a.id,level:n+1})},a.id)}):null}function F3(){const{items:e}=rt(f=>f.menuItems),{isOpen:t,isMobileOrTablet:r,subMenus:n}=rt(f=>f.headerInfo),i=ii(),[a,{height:o}]=ps(),s=z.useRef(null),u=fa(!r||t,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return z.useEffect(()=>{if(e.length>0){const f=new URL(window.location.href),{hash:p}=f,d=e.find(y=>y.href===p);d&&i(cl(d.id))}},[e]),z.useEffect(()=>{s&&n.length>0&&(s.current.scrollTop=0)},[n.length]),u((f,p)=>p&&G(Li.div,{className:"container-xxl",id:"hd-nav-container",style:r?dr($t({},f),{display:"block"}):{},children:G("nav",{className:"hd-nav",ref:a,children:G("ul",{ref:s,className:"row list-unstyled mb-0 hd-nav-first-level",children:G(Kv,{menuItems:e})})})}))}function $3(){const[e,t]=z.useState([]),{items:r,selectedItem:n}=rt(a=>a.menuItems),{i18n:i}=fo();return z.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:G("div",{className:"container-xxl mt-3 mt-lg-5",children:G("nav",{"aria-label":"breadcrumb",id:"hd-breadcrumb",children:We("ol",{className:"breadcrumb mb-0",children:[G("li",{className:"breadcrumb-item active",children:i.translate(e[0].label).fetch()}),e.length>=2&&G("li",{className:"breadcrumb-item active",children:i.translate(e[1].label).fetch()}),e.length===3&&G("li",{className:"breadcrumb-item active",children:i.translate(e[2].label).fetch()})]})})})}function N3(e){const{hotelInfo:t,userInfo:r,userLanguage:n}=e,{isOpen:i,subMenus:a,isMobileOrTablet:o}=rt(p=>p.headerInfo),s=z.useRef(null),{width:u}=$P(),f=ii();return z.useEffect(()=>{n&&f(ey(n))},[]),z.useEffect(()=>{u&&f(SI(u))},[u]),z.useEffect(()=>{fetch("/hotel_admin/json/title_bar.jsp").then(p=>p.json()).then(p=>{f(gI(p))})},[]),z.useEffect(()=>{fetch("/api/menu").then(p=>p.json()).then(p=>{f(hI(p))})},[]),z.useEffect(()=>{fetch("/api/notifications").then(p=>p.json()).then(p=>{f(mI(p))})},[]),z.useEffect(()=>{t&&f(Qg(t))},[]),z.useEffect(()=>{r&&f(_I(r))},[]),z.useEffect(()=>{s&&a.length>0&&(s.current.scrollTop=0)},[a.length]),We(es,{children:[We("div",{ref:s,id:"hd-container",className:Qn("container-fluid","px-0 fixed-top",{"hd-menu-opened":i,"hd-overflow-hidden":a.length>0}),style:$t({},o&&!i&&{overflow:"hidden"}),children:[G(R3,$t({},e)),G(F3,{})]}),G($3,{})]})}const qv=FI(N3);function D3(e,t){Fr.render(G(qv,$t({},t)),e)}DA(),rr.Header=qv,rr.renderHeader=D3,Object.defineProperties(rr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|