@ukpc-lib/react 0.13.7-sandbox.saas-8492.patch-1 → 0.13.7-sandbox.saas-8419-8492.patch-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-BH9gRN7i.cjs"),N=require("@mui/material");require("@r2wc/react-to-web-component");require("react-query");const gn=require("react-router-dom");require("axios");require("react-dom");const se=require("moment");function No(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const A=No(C),Ro=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-CCVnVHX2.cjs"),N=require("@mui/material");require("@r2wc/react-to-web-component");require("react-query");const gn=require("react-router-dom");require("axios");require("react-dom");const se=require("moment");function No(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const A=No(C),Ro=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
2
2
  .tab-title {
3
3
  min-width: 90px;
4
4
  padding: 5px 16px;
@@ -29,7 +29,7 @@
29
29
  .tab-content {
30
30
  padding: 16px 0;
31
31
  }
32
- `}),l.jsxs("div",{className:"tab-container",children:[l.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${m.color.grey200}`},className:"tab-container__title",children:t.map((i,s)=>l.jsx("button",{id:i.id,disabled:e.currentTab===`${i.id}`,onClick:n,className:`tab-title ${e.currentTab===`${i.id}`?"is-active":""}`,children:i.tabTitle},s))}),l.jsx("div",{className:"tab-content",children:t.map((i,s)=>l.jsx("div",{children:e.currentTab===`${i.id}`&&l.jsx("div",{children:i.children})},s))})]})]})},Tr=({baseUrl:e,notiPath:t,setNotiData:n})=>async(o=1,i=20,s="all")=>{const u=e+(t||"/notification-management/api/v1/notifications"),f=(await m.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(f==null?void 0:f.total)??0}}):h=>({...h,unread:{total:(f==null?void 0:f.total)??0}})),f};var $n=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zo(e,t){return!!(e===t||$n(e)&&$n(t))}function Lo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!zo(e[n],t[n]))return!1;return!0}function Vt(e,t){t===void 0&&(t=Lo);var n,r=[],o,i=!1;function s(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return i&&n===this&&t(c,r)||(o=e.apply(this,c),i=!0,n=this,r=c),o}return s}var Fo=typeof performance=="object"&&typeof performance.now=="function",Nn=Fo?function(){return performance.now()}:function(){return Date.now()};function Rn(e){cancelAnimationFrame(e.id)}function Do(e,t){var n=Nn();function r(){Nn()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Wt=-1;function zn(e){if(e===void 0&&(e=!1),Wt===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Wt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Wt}var Ne=null;function Ln(e){if(e===void 0&&(e=!1),Ne===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ne="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ne="negative":Ne="positive-ascending"),document.body.removeChild(t),Ne}return Ne}process.env.NODE_ENV;var Ho=150,Bo=function(t,n){return t},pt=null,mt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(pt=new WeakSet,mt=new WeakSet);function Vo(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){m._inheritsLoose(p,h);function p(g){var a;return a=h.call(this,g)||this,a._instanceProps=u(a.props,m._assertThisInitialized(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:m._assertThisInitialized(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=Vt(function(y,v,w,_){return a.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:v,visibleStartIndex:w,visibleStopIndex:_})}),a._callOnScroll=void 0,a._callOnScroll=Vt(function(y,v,w){return a.props.onScroll({scrollDirection:y,scrollOffset:v,scrollUpdateWasRequested:w})}),a._getItemStyle=void 0,a._getItemStyle=function(y){var v=a.props,w=v.direction,_=v.itemSize,T=v.layout,b=a._getItemStyleCache(d&&_,d&&T,d&&w),S;if(b.hasOwnProperty(y))S=b[y];else{var E=n(a.props,y,a._instanceProps),M=o(a.props,y,a._instanceProps),j=w==="horizontal"||T==="horizontal",L=w==="rtl",I=j?E:0;b[y]=S={position:"absolute",left:L?void 0:I,right:L?I:void 0,top:j?0:E,height:j?"100%":M,width:j?M:"100%"}}return S},a._getItemStyleCache=void 0,a._getItemStyleCache=Vt(function(y,v,w){return{}}),a._onScrollHorizontal=function(y){var v=y.currentTarget,w=v.clientWidth,_=v.scrollLeft,T=v.scrollWidth;a.setState(function(b){if(b.scrollOffset===_)return null;var S=a.props.direction,E=_;if(S==="rtl")switch(Ln()){case"negative":E=-_;break;case"positive-descending":E=T-w-_;break}return E=Math.max(0,Math.min(E,T-w)),{isScrolling:!0,scrollDirection:b.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(y){var v=y.currentTarget,w=v.clientHeight,_=v.scrollHeight,T=v.scrollTop;a.setState(function(b){if(b.scrollOffset===T)return null;var S=Math.max(0,Math.min(T,_-w));return{isScrolling:!0,scrollDirection:b.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(y){var v=a.props.outerRef;a._outerRef=y,typeof v=="function"?v(y):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=y)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&Rn(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=Do(a._resetIsScrolling,Ho)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}p.getDerivedStateFromProps=function(a,y){return Wo(a,y),f(a),null};var x=p.prototype;return x.scrollTo=function(a){a=Math.max(0,a),this.setState(function(y){return y.scrollOffset===a?null:{scrollDirection:y.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},x.scrollToItem=function(a,y){y===void 0&&(y="auto");var v=this.props,w=v.itemCount,_=v.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,w-1));var b=0;if(this._outerRef){var S=this._outerRef;_==="vertical"?b=S.scrollWidth>S.clientWidth?zn():0:b=S.scrollHeight>S.clientHeight?zn():0}this.scrollTo(i(this.props,a,y,T,this._instanceProps,b))},x.componentDidMount=function(){var a=this.props,y=a.direction,v=a.initialScrollOffset,w=a.layout;if(typeof v=="number"&&this._outerRef!=null){var _=this._outerRef;y==="horizontal"||w==="horizontal"?_.scrollLeft=v:_.scrollTop=v}this._callPropsCallbacks()},x.componentDidUpdate=function(){var a=this.props,y=a.direction,v=a.layout,w=this.state,_=w.scrollOffset,T=w.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var b=this._outerRef;if(y==="horizontal"||v==="horizontal")if(y==="rtl")switch(Ln()){case"negative":b.scrollLeft=-_;break;case"positive-ascending":b.scrollLeft=_;break;default:var S=b.clientWidth,E=b.scrollWidth;b.scrollLeft=E-S-_;break}else b.scrollLeft=_;else b.scrollTop=_}this._callPropsCallbacks()},x.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},x.render=function(){var a=this.props,y=a.children,v=a.className,w=a.direction,_=a.height,T=a.innerRef,b=a.innerElementType,S=a.innerTagName,E=a.itemCount,M=a.itemData,j=a.itemKey,L=j===void 0?Bo:j,I=a.layout,P=a.outerElementType,R=a.outerTagName,K=a.style,re=a.useIsScrolling,ce=a.width,_e=this.state.isScrolling,$=w==="horizontal"||I==="horizontal",z=$?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),le=W[0],oe=W[1],te=[];if(E>0)for(var Q=le;Q<=oe;Q++)te.push(C.createElement(y,{data:M,key:L(Q,M),index:Q,isScrolling:re?_e:void 0,style:this._getItemStyle(Q)}));var ye=r(this.props,this._instanceProps);return C.createElement(P||R||"div",{className:v,onScroll:z,ref:this._outerRefSetter,style:m._extends({position:"relative",height:_,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},K)},C.createElement(b||S||"div",{children:te,ref:T,style:{height:$?"100%":ye,pointerEvents:_e?"none":void 0,width:$?ye:"100%"}}))},x._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var y=this._getRangeToRender(),v=y[0],w=y[1],_=y[2],T=y[3];this._callOnItemsRendered(v,w,_,T)}}if(typeof this.props.onScroll=="function"){var b=this.state,S=b.scrollDirection,E=b.scrollOffset,M=b.scrollUpdateWasRequested;this._callOnScroll(S,E,M)}},x._getRangeToRender=function(){var a=this.props,y=a.itemCount,v=a.overscanCount,w=this.state,_=w.isScrolling,T=w.scrollDirection,b=w.scrollOffset;if(y===0)return[0,0,0,0];var S=s(this.props,b,this._instanceProps),E=c(this.props,S,b,this._instanceProps),M=!_||T==="backward"?Math.max(1,v):1,j=!_||T==="forward"?Math.max(1,v):1;return[Math.max(0,S-M),Math.max(0,Math.min(y-1,E+j)),S,E]},p}(C.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Wo=function(t,n){var r=t.children,o=t.direction,i=t.height,s=t.layout,c=t.innerTagName,u=t.outerTagName,d=t.width,f=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(f)&&(mt.add(f),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":pt&&!pt.has(f)&&(pt.add(f),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+o+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof d!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(d===null?"null":typeof d)+'" was specified.'));if(!h&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},Uo=50,He=function(t,n,r){var o=t,i=o.itemSize,s=r.itemMetadataMap,c=r.lastMeasuredIndex;if(n>c){var u=0;if(c>=0){var d=s[c];u=d.offset+d.size}for(var f=c+1;f<=n;f++){var h=i(f);s[f]={offset:u,size:h},u+=h}r.lastMeasuredIndex=n}return s[n]},Go=function(t,n,r){var o=n.itemMetadataMap,i=n.lastMeasuredIndex,s=i>0?o[i].offset:0;return s>=r?Ir(t,n,i,0,r):Ko(t,n,Math.max(0,i),r)},Ir=function(t,n,r,o,i){for(;o<=r;){var s=o+Math.floor((r-o)/2),c=He(t,s,n).offset;if(c===i)return s;c<i?o=s+1:c>i&&(r=s-1)}return o>0?o-1:0},Ko=function(t,n,r,o){for(var i=t.itemCount,s=1;r<i&&He(t,r,n).offset<o;)r+=s,s*=2;return Ir(t,n,Math.min(r,i-1),Math.floor(r/2),o)},Fn=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,i=n.estimatedItemSize,s=n.lastMeasuredIndex,c=0;if(s>=r&&(s=r-1),s>=0){var u=o[s];c=u.offset+u.size}var d=r-s-1,f=d*i;return c+f},kr=Vo({getItemOffset:function(t,n,r){return He(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Fn,getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var c=t.direction,u=t.height,d=t.layout,f=t.width,h=c==="horizontal"||d==="horizontal",p=h?f:u,x=He(t,n,i),g=Fn(t,i),a=Math.max(0,Math.min(g-p,x.offset)),y=Math.max(0,x.offset-p+x.size+s);switch(r==="smart"&&(o>=y-p&&o<=a+p?r="auto":r="center"),r){case"start":return a;case"end":return y;case"center":return Math.round(y+(a-y)/2);case"auto":default:return o>=y&&o<=a?o:o<y?y:a}},getStartIndexForOffset:function(t,n,r){return Go(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var i=t.direction,s=t.height,c=t.itemCount,u=t.layout,d=t.width,f=i==="horizontal"||u==="horizontal",h=f?d:s,p=He(t,n,o),x=r+h,g=p.offset+p.size,a=n;a<c-1&&g<x;)a++,g+=He(t,a,o).size;return a},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:o||Uo,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,c){c===void 0&&(c=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),c&&n.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});const Ut=20,Dn=({baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:r,tabType:o,popupRef:i})=>{const[s,c]=C.useState(!1),[u,d]=C.useState(0);C.useEffect(()=>{const $=()=>{i&&i.current&&d(i.current.offsetHeight-200)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]);const[f,h]=C.useState([]),[p,x]=C.useState(!0),[g,a]=C.useState(!1),[y,v]=C.useState(1),[w,_]=C.useState({}),T=C.useRef(null),{setNotiData:b}=C.useContext(m.CustomOpenList),S=Tr({baseUrl:e,notiPath:t,setNotiData:b}),E=C.useRef(null),M=C.useCallback(async()=>{if(!(g||!p)){a(!0);try{const $=f.length===0?1:y+1,z=await S($,Ut,o),W=(z==null?void 0:z.rows)||[];E.current=(z==null?void 0:z.count)||(z==null?void 0:z.total)||null,h(le=>[...le,...W]),v($),(W.length<Ut||E.current&&f.length+W.length>=E.current)&&x(!1)}catch{x(!1)}finally{a(!1)}}},[g,p,y,S,f.length,o]),j=p?f.length+1:f.length,L=$=>!p||$<f.length,I=async()=>{try{const W=e+(t||"/notification-management/api/v1/notifications");await m.axiosInstance.put(W)}catch(z){console.log(z)}const $=await S(1,Ut,o);h(($==null?void 0:$.rows)||[]),b(z=>({...z,unread:{total:0}})),v(1),x(!0),c(!1)},P=()=>{c(!0),I()},R=({style:$})=>l.jsxs(N.Box,{style:$,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,className:"notification-loading-item",children:[l.jsx(N.CircularProgress,{style:{color:n==null?void 0:n.primary500}}),l.jsx(N.Typography,{color:"text.first",variant:"body2",children:"Loading..."})]}),K=async($,z,W)=>{h(o==="unread"&&z?te=>te.filter(Q=>Q.id!==$):te=>te.map(Q=>Q.id===$?{...Q,isRead:z}:Q)),b(te=>{let Q=0;const ye=f.find(qe=>qe.id===$);return ye&&(!ye.isRead&&z&&(Q=-1),ye.isRead&&!z&&(Q=1)),{...te,unread:{...te.unread,total:Math.max(0,(te.unread.total||0)+Q)}}});const le=W||`/notification-management/api/v1/notifications/${$}`,oe=e+le;await m.axiosInstance.put(oe,{isRead:z})},re=$=>{var te;const oe=f[$];return oe&&oe.notificationType==="deleteMultiple"&&w[oe.id]?90+38*(((te=oe.data)==null?void 0:te.length)??0)+8:90},ce=($,z)=>{_(W=>{const le={...W,[$]:!W[$]};return setTimeout(()=>{var oe;(oe=T.current)==null||oe.resetAfterIndex(z)},0),le})},_e=({index:$,style:z})=>{if(!L($))return l.jsx(R,{style:z});const W=f[$];return l.jsx("div",{style:z,children:l.jsx(m.NotitficationItem,{notification:W,notiPath:t,markAllAsReadState:s,brandColors:n,onMark:K,showDetail:!!w[W.id],onToggleDetail:()=>ce(W.id,$)},W.id||$)})};return l.jsxs("div",{children:[l.jsx("div",{className:"mark-all-read",children:l.jsx("button",{onClick:P,style:{visibility:r===0?"hidden":"visible"},children:"Mark all as read"})}),l.jsx("div",{className:"notification-items__wrapper",style:{height:"100%"},children:l.jsx("div",{className:"notification-items__content",style:{height:"100%"},children:l.jsx(m.InfiniteLoader,{isItemLoaded:L,itemCount:j,loadMoreItems:M,threshold:10,children:({onItemsRendered:$,ref:z})=>l.jsx(kr,{height:u,itemCount:j,itemSize:re,width:"100%",onItemsRendered:$,ref:W=>{T.current=W,typeof z=="function"&&z(W)},children:_e})})})})]})},Yo=({baseUrl:e,notiPath:t,brandColors:n})=>{var d,f;const r=C.useRef(null),{setShowModalFalse:o}=C.useContext(m.CustomOpenList),{notidata:i}=C.useContext(m.CustomOpenList);console.log(i),C.useEffect(()=>{const h=x=>{!(!!x.composedPath?x.composedPath():[x.target]).some(v=>{var w;return v===r.current||((w=v==null?void 0:v.classList)==null?void 0:w.contains("noti-container"))})&&o()},p=setTimeout(()=>{document.addEventListener("mousedown",h)},100);return()=>{clearTimeout(p),document.removeEventListener("mousedown",h)}},[o]);const[s,c]=C.useState("all"),u=[{id:"all",tabTitle:`All (${((d=i==null?void 0:i.all)==null?void 0:d.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`Unread (${((f=i==null?void 0:i.unread)==null?void 0:f.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"unread",popupRef:r})}];return l.jsx(l.Fragment,{children:l.jsx("div",{ref:r,style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden",zIndex:"100"},children:l.jsxs("div",{className:"list-content",children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("h3",{style:{fontSize:"24px",fontWeight:"500",color:m.color.textPrimary},className:"list-title",children:"Notifications"}),l.jsx("button",{onClick:o,children:l.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),l.jsx(Ro,{tabs:u,setCurrentTab:c,currentTab:s,brandColors:n})]})})})};function qo({iconColor:e="#fff",baseUrl:t,notiPath:n,brandColors:r}){var f,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=C.useContext(m.CustomOpenList),{notidata:c,setNotiData:u}=C.useContext(m.CustomOpenList),d=Tr({baseUrl:t,notiPath:n,setNotiData:u});return C.useEffect(()=>{(async()=>{var x,g;try{const[a]=await Promise.all([d(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){m.pushError(((g=(x=a.response)==null?void 0:x.data)==null?void 0:g.errorMessage)||"Have error when get notification list")}})()},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[l.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:p=>{p.stopPropagation(),i()},style:{cursor:"pointer",color:e},children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&l.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:m.color.danger},className:"notification-badge",children:((f=c==null?void 0:c.unread)==null?void 0:f.total)>9?"9+":`${(h=c==null?void 0:c.unread)==null?void 0:h.total}`})]}),l.jsx("div",{className:"noti-list-container",children:o&&l.jsx(Yo,{baseUrl:t,notiPath:n,brandColors:r})})]})}const Zo=".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}",Xo=".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}",Jo=':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}',Qo="._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}",Mr='.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';function ei(e){return l.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),l.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),l.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16865_28134",children:l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}const ti=C.createContext({}),jr=!0;function ni({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=jr,customHighlightBackground:d}){const f={};return s==="rtl"&&(f["--animation-direction"]="reverse"),typeof c=="number"&&(f["--animation-duration"]=`${c}s`),u||(f["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(f.width=n),(typeof r=="string"||typeof r=="number")&&(f.height=r),(typeof o=="string"||typeof o=="number")&&(f.borderRadius=o),i&&(f.borderRadius="50%"),typeof e<"u"&&(f["--base-color"]=e),typeof t<"u"&&(f["--highlight-color"]=t),typeof d=="string"&&(f["--custom-highlight-background"]=d),f}function Pr({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,d,f;const h=C.useContext(ti),p={...c};for(const[_,T]of Object.entries(c))typeof T>"u"&&delete p[_];const x={...h,...p,circle:i},g={...s,...ni(x)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const y=(u=x.inline)!==null&&u!==void 0?u:!1,v=[],w=Math.ceil(e);for(let _=0;_<w;_++){let T=g;if(w>e&&_===w-1){const S=(d=T.width)!==null&&d!==void 0?d:"100%",E=e%1,M=typeof S=="number"?S*E:`calc(${S} * ${E})`;T={...T,width:M}}const b=C.createElement("span",{className:a,style:T,key:_},"‌");y?v.push(b):v.push(C.createElement(C.Fragment,{key:_},b,C.createElement("br",null)))}return C.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(f=x.enableAnimation)!==null&&f!==void 0?f:jr},t?v.map((_,T)=>C.createElement(t,{key:T},_)):v)}const ri='@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}',oi=({baseUrl:e,searchPath:t})=>{const[n,r]=C.useState(!1);console.log("hasPermission state",n);const o=async()=>{const s=e+(t||"/user-management/api/v1/users/my-account/access-stella-search");try{const c=await m.axiosInstance.get(s);console.log("hasPermission data",c.data),r(c.data)}catch(c){console.log(c)}};return C.useEffect(()=>{o()},[e,t]),{hasPermission:n}};function Or({childrenClass:e,action:t,childrenOpenClass:n}){const r=document.querySelector("#topbar-wrapper"),o=r==null?void 0:r.shadowRoot,i=o==null?void 0:o.querySelector(`.${e}`),s=o==null?void 0:o.querySelector(`.${n}`),c=o==null?void 0:o.querySelector("nav"),u=d=>{c==null||c.addEventListener("click",function(f){if(n&&s&&s.contains(f.target)){if(i&&!i.contains(f.target))return}else i&&!i.contains(f.target)&&t()}),r&&!r.contains(d.target)&&t()};document.addEventListener("click",u,!0)}function ii(e){return l.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16886_62505",children:l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}const si=".languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}";function Ee(e){return Array.isArray?Array.isArray(e):Nr(e)==="[object Array]"}function ai(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ci(e){return e==null?"":ai(e)}function ve(e){return typeof e=="string"}function Ar(e){return typeof e=="number"}function li(e){return e===!0||e===!1||ui(e)&&Nr(e)=="[object Boolean]"}function $r(e){return typeof e=="object"}function ui(e){return $r(e)&&e!==null}function ue(e){return e!=null}function Gt(e){return!e.trim().length}function Nr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const di="Incorrect 'index' type",fi=e=>`Invalid value for key ${e}`,hi=e=>`Pattern length exceeds max of ${e}.`,pi=e=>`Missing ${e} property in key`,mi=e=>`Property 'weight' in key '${e}' must be a positive integer`,Hn=Object.prototype.hasOwnProperty;class gi{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Rr(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Rr(e){let t=null,n=null,r=null,o=1,i=null;if(ve(e)||Ee(e))r=e,t=Bn(e),n=Xt(e);else{if(!Hn.call(e,"name"))throw new Error(pi("name"));const s=e.name;if(r=s,Hn.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(mi(s));t=Bn(s),n=Xt(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Bn(e){return Ee(e)?e:e.split(".")}function Xt(e){return Ee(e)?e.join("."):e}function yi(e,t){let n=[],r=!1;const o=(i,s,c)=>{if(ue(i))if(!s[c])n.push(i);else{let u=s[c];const d=i[u];if(!ue(d))return;if(c===s.length-1&&(ve(d)||Ar(d)||li(d)))n.push(ci(d));else if(Ee(d)){r=!0;for(let f=0,h=d.length;f<h;f+=1)o(d[f],s,c+1)}else s.length&&o(d,s,c+1)}};return o(e,ve(t)?t.split("."):t,0),r?n:n[0]}const xi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},bi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vi={location:0,threshold:.6,distance:100},Si={useExtendedSearch:!1,getFn:yi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var O={...bi,...xi,...vi,...Si};const wi=/[^ ]+/g;function _i(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const i=o.match(wi).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*e),c=parseFloat(Math.round(s*r)/r);return n.set(i,c),c},clear(){n.clear()}}}class yn{constructor({getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){this.norm=_i(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ve(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ve(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!ue(t)||Gt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(ue(s)){if(Ee(s)){let c=[];const u=[{nestedArrIndex:-1,value:s}];for(;u.length;){const{nestedArrIndex:d,value:f}=u.pop();if(ue(f))if(ve(f)&&!Gt(f)){let h={v:f,i:d,n:this.norm.get(f)};c.push(h)}else Ee(f)&&f.forEach((h,p)=>{u.push({nestedArrIndex:p,value:h})})}r.$[i]=c}else if(ve(s)&&!Gt(s)){let c={v:s,n:this.norm.get(s)};r.$[i]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function zr(e,t,{getFn:n=O.getFn,fieldNormWeight:r=O.fieldNormWeight}={}){const o=new yn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Rr)),o.setSources(t),o.create(),o}function Ei(e,{getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new yn({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function dt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=O.distance,ignoreLocation:i=O.ignoreLocation}={}){const s=t/e.length;if(i)return s;const c=Math.abs(r-n);return o?s+c/o:c?1:s}function Ci(e=[],t=O.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let c=e[i];c&&r===-1?r=i:!c&&r!==-1&&(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const Oe=32;function Ti(e,t,n,{location:r=O.location,distance:o=O.distance,threshold:i=O.threshold,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,includeMatches:u=O.includeMatches,ignoreLocation:d=O.ignoreLocation}={}){if(t.length>Oe)throw new Error(hi(Oe));const f=t.length,h=e.length,p=Math.max(0,Math.min(r,h));let x=i,g=p;const a=c>1||u,y=a?Array(h):[];let v;for(;(v=e.indexOf(t,g))>-1;){let E=dt(t,{currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:d});if(x=Math.min(E,x),g=v+f,a){let M=0;for(;M<f;)y[v+M]=1,M+=1}}g=-1;let w=[],_=1,T=f+h;const b=1<<f-1;for(let E=0;E<f;E+=1){let M=0,j=T;for(;M<j;)dt(t,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:d})<=x?M=j:T=j,j=Math.floor((T-M)/2+M);T=j;let L=Math.max(1,p-j+1),I=s?h:Math.min(p+j,h)+f,P=Array(I+2);P[I+1]=(1<<E)-1;for(let K=I;K>=L;K-=1){let re=K-1,ce=n[e.charAt(re)];if(a&&(y[re]=+!!ce),P[K]=(P[K+1]<<1|1)&ce,E&&(P[K]|=(w[K+1]|w[K])<<1|1|w[K+1]),P[K]&b&&(_=dt(t,{errors:E,currentLocation:re,expectedLocation:p,distance:o,ignoreLocation:d}),_<=x)){if(x=_,g=re,g<=p)break;L=Math.max(1,2*p-g)}}if(dt(t,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:d})>x)break;w=P}const S={isMatch:g>=0,score:Math.max(.001,_)};if(a){const E=Ci(y,c);E.length?u&&(S.indices=E):S.isMatch=!1}return S}function Ii(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Lr{constructor(t,{location:n=O.location,threshold:r=O.threshold,distance:o=O.distance,includeMatches:i=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreLocation:d=O.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const f=(p,x)=>{this.chunks.push({pattern:p,alphabet:Ii(p),startIndex:x})},h=this.pattern.length;if(h>Oe){let p=0;const x=h%Oe,g=h-x;for(;p<g;)f(this.pattern.substr(p,Oe),p),p+=Oe;if(x){const a=h-Oe;f(this.pattern.substr(a),a)}}else f(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let g={isMatch:!0,score:0};return r&&(g.indices=[[0,t.length-1]]),g}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:d}=this.options;let f=[],h=0,p=!1;this.chunks.forEach(({pattern:g,alphabet:a,startIndex:y})=>{const{isMatch:v,score:w,indices:_}=Ti(t,g,a,{location:o+y,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:d});v&&(p=!0),h+=w,v&&_&&(f=[...f,..._])});let x={isMatch:p,score:p?h/this.chunks.length:1};return p&&r&&(x.indices=f),x}}class Me{constructor(t){this.pattern=t}static isMultiMatch(t){return Vn(t,this.multiRegex)}static isSingleMatch(t){return Vn(t,this.singleRegex)}search(){}}function Vn(e,t){const n=e.match(t);return n?n[1]:null}class ki extends Me{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mi extends Me{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class ji extends Me{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Pi extends Me{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Oi extends Me{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ai extends Me{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Fr extends Me{constructor(t,{location:n=O.location,threshold:r=O.threshold,distance:o=O.distance,includeMatches:i=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreLocation:d=O.ignoreLocation}={}){super(t),this._bitapSearch=new Lr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Dr extends Me{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const Jt=[ki,Dr,ji,Pi,Ai,Oi,Mi,Fr],Wn=Jt.length,$i=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ni="|";function Ri(e,t={}){return e.split(Ni).map(n=>{let r=n.trim().split($i).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const c=r[i];let u=!1,d=-1;for(;!u&&++d<Wn;){const f=Jt[d];let h=f.isMultiMatch(c);h&&(o.push(new f(h,t)),u=!0)}if(!u)for(d=-1;++d<Wn;){const f=Jt[d];let h=f.isSingleMatch(c);if(h){o.push(new f(h,t));break}}}return o})}const zi=new Set([Fr.type,Dr.type]);class Li{constructor(t,{isCaseSensitive:n=O.isCaseSensitive,includeMatches:r=O.includeMatches,minMatchCharLength:o=O.minMatchCharLength,ignoreLocation:i=O.ignoreLocation,findAllMatches:s=O.findAllMatches,location:c=O.location,threshold:u=O.threshold,distance:d=O.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:d},this.pattern=n?t:t.toLowerCase(),this.query=Ri(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,s=[],c=0;for(let u=0,d=n.length;u<d;u+=1){const f=n[u];s.length=0,i=0;for(let h=0,p=f.length;h<p;h+=1){const x=f[h],{isMatch:g,indices:a,score:y}=x.search(t);if(g){if(i+=1,c+=y,r){const v=x.constructor.type;zi.has(v)?s=[...s,...a]:s.push(a)}}else{c=0,i=0,s.length=0;break}}if(i){let h={isMatch:!0,score:c/i};return r&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const Qt=[];function Fi(...e){Qt.push(...e)}function en(e,t){for(let n=0,r=Qt.length;n<r;n+=1){let o=Qt[n];if(o.condition(e,t))return new o(e,t)}return new Lr(e,t)}const St={AND:"$and",OR:"$or"},tn={PATH:"$path",PATTERN:"$val"},nn=e=>!!(e[St.AND]||e[St.OR]),Di=e=>!!e[tn.PATH],Hi=e=>!Ee(e)&&$r(e)&&!nn(e),Un=e=>({[St.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Hr(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=Di(o);if(!s&&i.length>1&&!nn(o))return r(Un(o));if(Hi(o)){const u=s?o[tn.PATH]:i[0],d=s?o[tn.PATTERN]:o[u];if(!ve(d))throw new Error(fi(u));const f={keyId:Xt(u),pattern:d};return n&&(f.searcher=en(d,t)),f}let c={children:[],operator:i[0]};return i.forEach(u=>{const d=o[u];Ee(d)&&d.forEach(f=>{c.children.push(r(f))})}),c};return nn(e)||(e=Un(e)),r(e)}function Bi(e,{ignoreFieldNorm:t=O.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const c=o?o.weight:null;r*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(t?1:i))}),n.score=r})}function Vi(e,t){const n=e.matches;t.matches=[],ue(n)&&n.forEach(r=>{if(!ue(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),t.matches.push(s)})}function Wi(e,t){t.score=e.score}function Ui(e,t,{includeMatches:n=O.includeMatches,includeScore:r=O.includeScore}={}){const o=[];return n&&o.push(Vi),r&&o.push(Wi),e.map(i=>{const{idx:s}=i,c={item:t[s],refIndex:s};return o.length&&o.forEach(u=>{u(i,c)}),c})}class Ue{constructor(t,n={},r){this.options={...O,...n},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof yn))throw new Error(di);this._myIndex=n||zr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ue(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:c}=this.options;let u=ve(t)?ve(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Bi(u,{ignoreFieldNorm:c}),i&&u.sort(s),Ar(n)&&n>-1&&(u=u.slice(0,n)),Ui(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=en(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:d,indices:f}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:d,value:i,norm:c,indices:f}]})}),o}_searchLogical(t){const n=Hr(t,this.options),r=(c,u,d)=>{if(!c.children){const{keyId:h,searcher:p}=c,x=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:p});return x&&x.length?[{idx:d,item:u,matches:x}]:[]}const f=[];for(let h=0,p=c.children.length;h<p;h+=1){const x=c.children[h],g=r(x,u,d);if(g.length)f.push(...g);else if(c.operator===St.AND)return[]}return f},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let d=r(n,c,u);d.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),d.forEach(({matches:f})=>{i[u].matches.push(...f)}))}}),s}_searchObjectList(t){const n=en(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:c})=>{if(!ue(s))return;let u=[];r.forEach((d,f)=>{u.push(...this._findMatches({key:d,value:s[f],searcher:n}))}),u.length&&i.push({idx:c,item:s,matches:u})}),i}_findMatches({key:t,value:n,searcher:r}){if(!ue(n))return[];let o=[];if(Ee(n))n.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:d,indices:f}=r.searchIn(i);u&&o.push({score:d,key:t,value:i,idx:s,norm:c,indices:f})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:d}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:d})}return o}}Ue.version="6.6.2";Ue.createIndex=zr;Ue.parseIndex=Ei;Ue.config=O;Ue.parseQuery=Hr;Fi(Li);const Gn={shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["name"]};function Gi(e,t,n){let r;return function(){const o=this,i=arguments,s=function(){r=null,e.apply(o,i)};r&&clearTimeout(r),r=setTimeout(s,t)}}const Ki="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.89222'%20cy='8.34901'%20r='5.59901'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.6428%2013.1855L14.4568%2014.9995'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",rn=({showIcon:e})=>e?l.jsx("img",{id:"icon",className:"StyledSearchIcon search-icon",width:20,height:20,src:Ki,alt:"icon"}):null;function Yi({results:e=[],onClick:t,setSearchString:n,showIcon:r,maxResults:o,resultStringKeyName:i="name",highlightedItem:s,setHighlightedItem:c,formatResult:u,showNoResultsFlag:d=!0,showNoResultsText:f="No results"}){const h=u||(g=>g[i]),p=g=>{t(g),n(g[i])},x=({event:g,result:a})=>{g.button===0&&(g.preventDefault(),p(a))};return d?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:f})]})}):(e==null?void 0:e.length)<=0&&!d?null:l.jsx(Kn,{children:e.slice(0,o).map((g,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:y=>x({event:y,result:g}),onClick:()=>p(g),children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(g)})]},`rsa-result-${g.entityId}`))})}const Kn=({children:e})=>l.jsxs("div",{className:"StyledResults",children:[l.jsx("div",{className:"line"}),l.jsx("ul",{id:"autocomplete-results",children:e})]}),qi=({showClear:e,setSearchString:t,searchString:n,setFocus:r,onClear:o})=>{const i=()=>{t({target:{value:""}}),r(),o()};return!e||!n||(n==null?void 0:n.length)<=0?null:l.jsx("div",{className:"StyledClearIcon clear-icon",onClick:i,children:l.jsx("svg",{width:20,height:20,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})};function Zi({searchString:e,setSearchString:t,setHighlightedItem:n,eraseResults:r,autoFocus:o,onFocus:i,onClear:s,placeholder:c,showIcon:u=!0,showClear:d=!0,maxLength:f,baseUrl:h}){const p=C.useRef(null);let x=!0;const g=()=>{x=!1,p!=null&&p.current&&p.current.focus(),x=!0},a=v=>{x&&i(v)},y=f?{maxLength:f}:{};return C.useEffect(()=>{document.querySelector("global-topbar");const v=w=>{const _=document.getElementById("AddTagButton"),T=document.getElementsByClassName("btn-edit");["a","e","t"].includes(w.key.toLowerCase())&&((T==null?void 0:T.length)>0&&T[0].addEventListener("click",S=>{const E=document.querySelector("global-topbar"),M=E!=null?E.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(S.preventDefault(),S.stopPropagation(),console.log("Shadow DOM keydown:",S.key)):S.click()},!0),_!=null&&_.addEventListener("click",S=>{const E=document.querySelector("global-topbar"),M=E!=null?E.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(S.preventDefault(),S.stopPropagation(),console.log("Shadow DOM keydown:",S.key)):S.click()},!0))};return document.addEventListener("keydown",v,!0),()=>document.removeEventListener("keydown",v,!0)},[]),l.jsxs("div",{className:"StyledSearchInput",children:[l.jsx(rn,{showIcon:u}),l.jsx("input",{type:"text",name:"topbar-search",className:"topbar-search-input",id:"GlobalSearchInput",ref:p,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:a,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:v=>{if(v.key==="Enter"){const w=document.querySelector("global-topbar");if((w!=null?w.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",v);const T=v.currentTarget.value;window.location.href=`${h}/stella/page/Search/Index?Term=${T}`;return}}n({event:v})},"data-test":"search-input",...y}),l.jsx(qi,{showClear:d,setSearchString:t,searchString:e,onClear:s,setFocus:g})]})}const Xi=200,Ji=10;function Qi({items:e=[],fuseOptions:t=Gn,inputDebounce:n=Xi,onSearch:r=()=>{},onHover:o=()=>{},onSelect:i=()=>{},onFocus:s=()=>{},onClear:c=()=>{},searchOnFocus:u=!0,showIcon:d=!0,showClear:f=!0,maxResults:h=Ji,placeholder:p="",autoFocus:x=!1,styling:g={},resultStringKeyName:a="name",inputSearchString:y="",formatResult:v,showNoResults:w=!0,showNoResultsText:_="No results",showItemsOnFocus:T=!1,maxLength:b=0,baseUrl:S=""}){({...g});const E={...Gn,...t},M=new Ue(e,E);M.setCollection(e);const[j,L]=C.useState(y),[I,P]=C.useState([]),[R,K]=C.useState(-1),[re,ce]=C.useState(!1),[_e,$]=C.useState(!1),[z,W]=C.useState(!1),[le,oe]=C.useState(!1);C.useEffect(()=>{L(y);const F=setTimeout(()=>P(lt(y)),0);return()=>clearTimeout(F)},[y]),C.useEffect(()=>{(j==null?void 0:j.length)>=3?e&&(e==null?void 0:e.length)>0&&P(e):P([])},[e]),C.useEffect(()=>{const F=()=>{Ae(),oe(!1)};return document.addEventListener("click",F),()=>document.removeEventListener("click",F)},[]),C.useEffect(()=>{(()=>{w&&j.length>0&&!_e&&I.length===0&&!re?W(!0):W(!1),T&&I.length===0&&j.length===0&&le&&P(e.slice(0,h))})()},[_e,w,re,j,I,T,le]);const te=F=>{u&&s(F),oe(!0)},Q=F=>{let k=[];(F==null?void 0:F.length)>0&&(k=lt(F)),P(k),r(F,k),$(!1)},ye=C.useCallback(n>0?Gi(F=>Q(F),n):F=>Q(F),[e]),qe=F=>{Ae(),i(F),L(F[a]),K(0)},lt=F=>M.search(F,{limit:h}).map(k=>({...k.item})).slice(0,h),Bt=({target:F})=>{const k=F.value;L(k),ye(k),$(!0),re&&ce(!1)},Ae=()=>{P([]),ce(!0)},ut=({index:F,event:k})=>{let Te=-1;const Pe=$e=>{K($e),I!=null&&I[$e]&&o(I[$e])};if(F!==void 0)K(F),I!=null&&I[F]&&o(I[F]);else if(k)switch(k.key){case"Enter":I.length>0&&I[R]?(k.preventDefault(),i(I[R])):r(j,I),K(-1),Ae();break;case"ArrowUp":k.preventDefault(),Te=R>-1?R-1:I.length-1,Pe(Te);break;case"ArrowDown":k.preventDefault(),Te=R<I.length-1?R+1:-1,Pe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Zi,{searchString:j,setSearchString:Bt,eraseResults:Ae,autoFocus:x,onFocus:te,onClear:c,placeholder:p,showIcon:!0,showClear:f,setHighlightedItem:ut,maxLength:b,baseUrl:S})}),l.jsx(Yi,{results:I,onClick:qe,setSearchString:L,showIcon:d,maxResults:h,resultStringKeyName:a,formatResult:v,highlightedItem:R,setHighlightedItem:ut,showNoResultsFlag:z,showNoResultsText:_})]})})}function es({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:d,logout:f,disabledLogoClick:h=!1}=t,p={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[x,g]=C.useState(!1),{Term:a}=gn.useParams();console.log("term",a);const[y,v]=C.useState([]),[w,_]=C.useState([]),T=oi({baseUrl:o});console.log("searchPermission",T.hasPermission),C.useEffect(()=>{y.length>=3?b(y):_([])},[y]);const b=async I=>{await fetch(`${o}/stella/page/Search/Suggestions?term=${I}`).then(P=>P.json()).then(P=>{_(P),console.log(P)}).catch(P=>{console.error(P)})},S=I=>{console.log(I)},E=(I,P)=>{v(I),console.log(I,P)},M=I=>{const P=I.entityType,R=I.entityId;switch(P){case"Zone":document.location.href=o+"/stella/page/SiteManagement/Zone/Details/"+R;return;case"Location":document.location.href=o+"/stella/page/SiteManagement/Location/Details/"+R;return;case"Company":document.location.href=o+"/stella/page/SiteManagement/Company/Details/"+R;return;default:console.log(`Unsure how to navigate to ${P} ${R}`);return}},j=()=>{const I=document.querySelector("global-topbar"),R=(I!=null?I.shadowRoot:document).getElementById("GlobalSearchInput");R&&R.value.length>=3&&(setTimeout(()=>{},1e3),b(R.value))},L=I=>I.entityType==="Location"?l.jsxs(l.Fragment,{children:[l.jsx("div",{dangerouslySetInnerHTML:{__html:I.name}})," ",l.jsxs("div",{style:{fontSize:"0.6em"},children:["Status: ",I.entityStatus]})]}):l.jsx(l.Fragment,{children:l.jsx("div",{dangerouslySetInnerHTML:{__html:I.name}})});return l.jsxs(m.StyleWrapper,{styles:[Zo,Jo,Mr,Qo,ri,Xo],style:{zIndex:1202},id:"topbar-wrapper",children:[l.jsx("nav",{className:`navbar-wrapper ${e}`,style:c?p:s,children:l.jsxs("div",{className:"navbar-container",children:[h?l.jsx("div",{className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}):l.jsx("a",{href:"/home",className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}),l.jsxs("div",{className:"right-side-container",children:[d&&T.hasPermission?l.jsx("span",{children:l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",children:l.jsx("div",{id:"autocomplete",style:{width:223},children:l.jsx(Qi,{items:w,onSearch:E,onHover:S,onSelect:M,onFocus:j,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):"",t.customElement,l.jsx("span",{children:l.jsxs(m.CustomOpenListProvider,{children:[l.jsx(Ao,{baseUrl:u.baseUrl,path:u.path,apiKey:u.apiKey,authDomain:u.authDomain,projectId:u.projectId,storageBucket:u.storageBucket,messagingSenderId:u.messagingSenderId,appId:u.appId,measurementId:u.measurementId,vapidKey:u.vapidKey}),l.jsx(qo,{iconColor:c==null?void 0:c.headerTextColor,baseUrl:o,notiPath:i,brandColors:c})]})}),l.jsx(Br,{}),l.jsxs("div",{className:"userContainer",children:[l.jsx(ts,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,userName:r==null?void 0:r.firstName,setShowConfirmModal:g}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Pr,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})}),l.jsx(m.LogoutConfirmModal,{isOpen:x,onClose:()=>g(!1),onConfirm:f})]})}function Br(){var u;const e=[{value:m.Language.en,element:l.jsx(ei,{})},{value:m.Language.de,element:l.jsx(ii,{})}],[t,n]=C.useState(!1),[r,o]=C.useState(new Array(e.length).fill(!1)),{language:i,setLanguage:s}=m.useCustomTranslation();C.useEffect(()=>{Or({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(d=>d.value==i))==null?void 0:u.element;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:si}),l.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:l.jsx("div",{className:"languageDropdown",onClick:()=>{n(!t)},children:c})})]})}function ts({avatarUrl:e,userName:t}){const[n,r]=C.useState(!1),o=C.useRef(null);C.useRef(null);const[i,s]=C.useState(!1),[c,u]=C.useState(!1);return C.useEffect(()=>{Or({childrenClass:"userAvatar",action(){r(!1)}})},[]),l.jsx(l.Fragment,{children:l.jsx("div",{style:{position:"relative"},children:e?l.jsx("img",{onClick:()=>r(!n),ref:o,alt:"user avatar",className:"userAvatar",src:e}):l.jsx("div",{onClick:()=>r(!n),ref:o,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""})})})}function ns(e){const{user:t,logout:n,isFetching:r}=m.useAuth();return l.jsx(es,{...e,isFetching:r,user:t,logout:n})}const rs=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),os=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e}),is=({children:e})=>l.jsxs(N.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[l.jsx(ss,{}),e]});function ss(){return l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[l.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),l.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),l.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),l.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),l.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),l.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),l.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),l.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),l.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),l.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),l.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),l.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),l.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),l.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),l.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),l.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),l.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),l.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),l.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),l.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),l.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),l.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),l.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),l.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),l.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),l.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),l.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),l.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var as=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal,cs=typeof self=="object"&&self&&self.Object===Object&&self;as||cs||Function("return this")();function ls(e){const[t,n]=C.useState(!!e),r=C.useCallback(()=>{n(!0)},[]),o=C.useCallback(()=>{n(!1)},[]),i=C.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:o,toggle:i}}function us(e){var t;return l.jsxs(N.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&l.jsxs(N.DialogTitle,{component:N.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?l.jsx(N.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?l.jsx(N.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),l.jsx(N.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&l.jsx(N.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:l.jsxs(l.Fragment,{children:[!e.hideClose&&l.jsx(N.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&l.jsx(N.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function ds(e){const t=ls(typeof e=="boolean"?e:void 0);return{setTrue:t.setTrue,open:t.value,onClose:t.setFalse,onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}function fs({rootPath:e}){return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center"},children:[l.jsx("h1",{children:"404 - Not Found"}),l.jsx("p",{children:"Sorry, the page you are looking for does not exist."}),l.jsx(N.Box,{height:"16px"}),l.jsx(gn.Link,{to:e,children:l.jsx(N.Button,{variant:"contained",color:"primary",children:"Go to Home"})})]})}function hs(){const{colors:e}=m.useTheme();return l.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100vh - 144px)",alignItems:"center",justifyContent:"center",zIndex:100},children:l.jsx("h1",{style:{color:`${e==null?void 0:e.primary300}`,fontSize:"82px",fontWeight:700,textTransform:"uppercase",marginTop:0,marginBottom:0,textAlign:"center"},children:"Welcome to the Intelli-Verse"})})}const ps=()=>{const{t:e}=m.useTranslation();return l.jsx("div",{className:"unauth__container "+m.styles["page-container"],children:l.jsxs("div",{className:"unauth__main-content "+m.styles["page-main-content"],children:[l.jsx(ms,{}),l.jsxs("div",{className:"unauth__main-text",children:[l.jsx("h2",{className:"unauth__main-text__title "+m.styles["page-title"],children:e("components.unauthorizedPage.title")}),l.jsxs("p",{className:"unauth__main-text__desc "+m.styles["text-base"],children:[e("components.unauthorizedPage.description1")," ",l.jsx("br",{})," ",e("components.unauthorizedPage.description2")]})]})]})})},ms=()=>l.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[l.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),l.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),l.jsx("defs",{children:l.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.jsx("feOffset",{dy:"1"}),l.jsx("feGaussianBlur",{stdDeviation:"1"}),l.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),l.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function Ie(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vr(e){if(A.isValidElement(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vr(e[n])}),t}function Se(e,t,n={clone:!0}){const r=n.clone?m._extends({},e):e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])?r[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?r[o]=Se(e[o],t[o],n):n.clone?r[o]=Ie(t[o])?Vr(t[o]):t[o]:r[o]=t[o]}),r}const gs=Object.freeze(Object.defineProperty({__proto__:null,default:Se,isPlainObject:Ie},Symbol.toStringTag,{value:"Module"}));function Qe(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ys=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));var on={exports:{}},U={};/**
32
+ `}),l.jsxs("div",{className:"tab-container",children:[l.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${m.color.grey200}`},className:"tab-container__title",children:t.map((i,s)=>l.jsx("button",{id:i.id,disabled:e.currentTab===`${i.id}`,onClick:n,className:`tab-title ${e.currentTab===`${i.id}`?"is-active":""}`,children:i.tabTitle},s))}),l.jsx("div",{className:"tab-content",children:t.map((i,s)=>l.jsx("div",{children:e.currentTab===`${i.id}`&&l.jsx("div",{children:i.children})},s))})]})]})},Tr=({baseUrl:e,notiPath:t,setNotiData:n})=>async(o=1,i=20,s="all")=>{const u=e+(t||"/notification-management/api/v1/notifications"),f=(await m.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(f==null?void 0:f.total)??0}}):h=>({...h,unread:{total:(f==null?void 0:f.total)??0}})),f};var $n=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zo(e,t){return!!(e===t||$n(e)&&$n(t))}function Lo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!zo(e[n],t[n]))return!1;return!0}function Vt(e,t){t===void 0&&(t=Lo);var n,r=[],o,i=!1;function s(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return i&&n===this&&t(c,r)||(o=e.apply(this,c),i=!0,n=this,r=c),o}return s}var Fo=typeof performance=="object"&&typeof performance.now=="function",Nn=Fo?function(){return performance.now()}:function(){return Date.now()};function Rn(e){cancelAnimationFrame(e.id)}function Do(e,t){var n=Nn();function r(){Nn()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Wt=-1;function zn(e){if(e===void 0&&(e=!1),Wt===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Wt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Wt}var Ne=null;function Ln(e){if(e===void 0&&(e=!1),Ne===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ne="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ne="negative":Ne="positive-ascending"),document.body.removeChild(t),Ne}return Ne}process.env.NODE_ENV;var Ho=150,Bo=function(t,n){return t},pt=null,mt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(pt=new WeakSet,mt=new WeakSet);function Vo(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){m._inheritsLoose(p,h);function p(g){var a;return a=h.call(this,g)||this,a._instanceProps=u(a.props,m._assertThisInitialized(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:m._assertThisInitialized(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=Vt(function(y,v,w,_){return a.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:v,visibleStartIndex:w,visibleStopIndex:_})}),a._callOnScroll=void 0,a._callOnScroll=Vt(function(y,v,w){return a.props.onScroll({scrollDirection:y,scrollOffset:v,scrollUpdateWasRequested:w})}),a._getItemStyle=void 0,a._getItemStyle=function(y){var v=a.props,w=v.direction,_=v.itemSize,T=v.layout,b=a._getItemStyleCache(d&&_,d&&T,d&&w),S;if(b.hasOwnProperty(y))S=b[y];else{var E=n(a.props,y,a._instanceProps),M=o(a.props,y,a._instanceProps),j=w==="horizontal"||T==="horizontal",L=w==="rtl",I=j?E:0;b[y]=S={position:"absolute",left:L?void 0:I,right:L?I:void 0,top:j?0:E,height:j?"100%":M,width:j?M:"100%"}}return S},a._getItemStyleCache=void 0,a._getItemStyleCache=Vt(function(y,v,w){return{}}),a._onScrollHorizontal=function(y){var v=y.currentTarget,w=v.clientWidth,_=v.scrollLeft,T=v.scrollWidth;a.setState(function(b){if(b.scrollOffset===_)return null;var S=a.props.direction,E=_;if(S==="rtl")switch(Ln()){case"negative":E=-_;break;case"positive-descending":E=T-w-_;break}return E=Math.max(0,Math.min(E,T-w)),{isScrolling:!0,scrollDirection:b.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(y){var v=y.currentTarget,w=v.clientHeight,_=v.scrollHeight,T=v.scrollTop;a.setState(function(b){if(b.scrollOffset===T)return null;var S=Math.max(0,Math.min(T,_-w));return{isScrolling:!0,scrollDirection:b.scrollOffset<S?"forward":"backward",scrollOffset:S,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(y){var v=a.props.outerRef;a._outerRef=y,typeof v=="function"?v(y):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=y)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&Rn(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=Do(a._resetIsScrolling,Ho)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}p.getDerivedStateFromProps=function(a,y){return Wo(a,y),f(a),null};var x=p.prototype;return x.scrollTo=function(a){a=Math.max(0,a),this.setState(function(y){return y.scrollOffset===a?null:{scrollDirection:y.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},x.scrollToItem=function(a,y){y===void 0&&(y="auto");var v=this.props,w=v.itemCount,_=v.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,w-1));var b=0;if(this._outerRef){var S=this._outerRef;_==="vertical"?b=S.scrollWidth>S.clientWidth?zn():0:b=S.scrollHeight>S.clientHeight?zn():0}this.scrollTo(i(this.props,a,y,T,this._instanceProps,b))},x.componentDidMount=function(){var a=this.props,y=a.direction,v=a.initialScrollOffset,w=a.layout;if(typeof v=="number"&&this._outerRef!=null){var _=this._outerRef;y==="horizontal"||w==="horizontal"?_.scrollLeft=v:_.scrollTop=v}this._callPropsCallbacks()},x.componentDidUpdate=function(){var a=this.props,y=a.direction,v=a.layout,w=this.state,_=w.scrollOffset,T=w.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var b=this._outerRef;if(y==="horizontal"||v==="horizontal")if(y==="rtl")switch(Ln()){case"negative":b.scrollLeft=-_;break;case"positive-ascending":b.scrollLeft=_;break;default:var S=b.clientWidth,E=b.scrollWidth;b.scrollLeft=E-S-_;break}else b.scrollLeft=_;else b.scrollTop=_}this._callPropsCallbacks()},x.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},x.render=function(){var a=this.props,y=a.children,v=a.className,w=a.direction,_=a.height,T=a.innerRef,b=a.innerElementType,S=a.innerTagName,E=a.itemCount,M=a.itemData,j=a.itemKey,L=j===void 0?Bo:j,I=a.layout,P=a.outerElementType,R=a.outerTagName,K=a.style,re=a.useIsScrolling,ce=a.width,_e=this.state.isScrolling,$=w==="horizontal"||I==="horizontal",z=$?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),le=W[0],oe=W[1],te=[];if(E>0)for(var Q=le;Q<=oe;Q++)te.push(C.createElement(y,{data:M,key:L(Q,M),index:Q,isScrolling:re?_e:void 0,style:this._getItemStyle(Q)}));var ye=r(this.props,this._instanceProps);return C.createElement(P||R||"div",{className:v,onScroll:z,ref:this._outerRefSetter,style:m._extends({position:"relative",height:_,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},K)},C.createElement(b||S||"div",{children:te,ref:T,style:{height:$?"100%":ye,pointerEvents:_e?"none":void 0,width:$?ye:"100%"}}))},x._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var y=this._getRangeToRender(),v=y[0],w=y[1],_=y[2],T=y[3];this._callOnItemsRendered(v,w,_,T)}}if(typeof this.props.onScroll=="function"){var b=this.state,S=b.scrollDirection,E=b.scrollOffset,M=b.scrollUpdateWasRequested;this._callOnScroll(S,E,M)}},x._getRangeToRender=function(){var a=this.props,y=a.itemCount,v=a.overscanCount,w=this.state,_=w.isScrolling,T=w.scrollDirection,b=w.scrollOffset;if(y===0)return[0,0,0,0];var S=s(this.props,b,this._instanceProps),E=c(this.props,S,b,this._instanceProps),M=!_||T==="backward"?Math.max(1,v):1,j=!_||T==="forward"?Math.max(1,v):1;return[Math.max(0,S-M),Math.max(0,Math.min(y-1,E+j)),S,E]},p}(C.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Wo=function(t,n){var r=t.children,o=t.direction,i=t.height,s=t.layout,c=t.innerTagName,u=t.outerTagName,d=t.width,f=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(f)&&(mt.add(f),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":pt&&!pt.has(f)&&(pt.add(f),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+o+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof d!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(d===null?"null":typeof d)+'" was specified.'));if(!h&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},Uo=50,He=function(t,n,r){var o=t,i=o.itemSize,s=r.itemMetadataMap,c=r.lastMeasuredIndex;if(n>c){var u=0;if(c>=0){var d=s[c];u=d.offset+d.size}for(var f=c+1;f<=n;f++){var h=i(f);s[f]={offset:u,size:h},u+=h}r.lastMeasuredIndex=n}return s[n]},Go=function(t,n,r){var o=n.itemMetadataMap,i=n.lastMeasuredIndex,s=i>0?o[i].offset:0;return s>=r?Ir(t,n,i,0,r):Ko(t,n,Math.max(0,i),r)},Ir=function(t,n,r,o,i){for(;o<=r;){var s=o+Math.floor((r-o)/2),c=He(t,s,n).offset;if(c===i)return s;c<i?o=s+1:c>i&&(r=s-1)}return o>0?o-1:0},Ko=function(t,n,r,o){for(var i=t.itemCount,s=1;r<i&&He(t,r,n).offset<o;)r+=s,s*=2;return Ir(t,n,Math.min(r,i-1),Math.floor(r/2),o)},Fn=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,i=n.estimatedItemSize,s=n.lastMeasuredIndex,c=0;if(s>=r&&(s=r-1),s>=0){var u=o[s];c=u.offset+u.size}var d=r-s-1,f=d*i;return c+f},kr=Vo({getItemOffset:function(t,n,r){return He(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Fn,getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var c=t.direction,u=t.height,d=t.layout,f=t.width,h=c==="horizontal"||d==="horizontal",p=h?f:u,x=He(t,n,i),g=Fn(t,i),a=Math.max(0,Math.min(g-p,x.offset)),y=Math.max(0,x.offset-p+x.size+s);switch(r==="smart"&&(o>=y-p&&o<=a+p?r="auto":r="center"),r){case"start":return a;case"end":return y;case"center":return Math.round(y+(a-y)/2);case"auto":default:return o>=y&&o<=a?o:o<y?y:a}},getStartIndexForOffset:function(t,n,r){return Go(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var i=t.direction,s=t.height,c=t.itemCount,u=t.layout,d=t.width,f=i==="horizontal"||u==="horizontal",h=f?d:s,p=He(t,n,o),x=r+h,g=p.offset+p.size,a=n;a<c-1&&g<x;)a++,g+=He(t,a,o).size;return a},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:o||Uo,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,c){c===void 0&&(c=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),c&&n.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});const Ut=20,Dn=({baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:r,tabType:o,popupRef:i})=>{const[s,c]=C.useState(!1),[u,d]=C.useState(0);C.useEffect(()=>{const $=()=>{i&&i.current&&d(i.current.offsetHeight-200)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]);const[f,h]=C.useState([]),[p,x]=C.useState(!0),[g,a]=C.useState(!1),[y,v]=C.useState(1),[w,_]=C.useState({}),T=C.useRef(null),{setNotiData:b}=C.useContext(m.CustomOpenList),S=Tr({baseUrl:e,notiPath:t,setNotiData:b}),E=C.useRef(null),M=C.useCallback(async()=>{if(!(g||!p)){a(!0);try{const $=f.length===0?1:y+1,z=await S($,Ut,o),W=(z==null?void 0:z.rows)||[];E.current=(z==null?void 0:z.count)||(z==null?void 0:z.total)||null,h(le=>[...le,...W]),v($),(W.length<Ut||E.current&&f.length+W.length>=E.current)&&x(!1)}catch{x(!1)}finally{a(!1)}}},[g,p,y,S,f.length,o]),j=p?f.length+1:f.length,L=$=>!p||$<f.length,I=async()=>{try{const W=e+(t||"/notification-management/api/v1/notifications");await m.axiosInstance.put(W)}catch(z){console.log(z)}const $=await S(1,Ut,o);h(($==null?void 0:$.rows)||[]),b(z=>({...z,unread:{total:0}})),v(1),x(!0),c(!1)},P=()=>{c(!0),I()},R=({style:$})=>l.jsxs(N.Box,{style:$,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,className:"notification-loading-item",children:[l.jsx(N.CircularProgress,{style:{color:n==null?void 0:n.primary500}}),l.jsx(N.Typography,{color:"text.first",variant:"body2",children:"Loading..."})]}),K=async($,z,W)=>{h(o==="unread"&&z?te=>te.filter(Q=>Q.id!==$):te=>te.map(Q=>Q.id===$?{...Q,isRead:z}:Q)),b(te=>{let Q=0;const ye=f.find(qe=>qe.id===$);return ye&&(!ye.isRead&&z&&(Q=-1),ye.isRead&&!z&&(Q=1)),{...te,unread:{...te.unread,total:Math.max(0,(te.unread.total||0)+Q)}}});const le=W||`/notification-management/api/v1/notifications/${$}`,oe=e+le;await m.axiosInstance.put(oe,{isRead:z})},re=$=>{var te;const oe=f[$];return oe&&oe.notificationType==="deleteMultiple"&&w[oe.id]?90+38*(((te=oe.data)==null?void 0:te.length)??0)+8:90},ce=($,z)=>{_(W=>{const le={...W,[$]:!W[$]};return setTimeout(()=>{var oe;(oe=T.current)==null||oe.resetAfterIndex(z)},0),le})},_e=({index:$,style:z})=>{if(!L($))return l.jsx(R,{style:z});const W=f[$];return l.jsx("div",{style:z,children:l.jsx(m.NotitficationItem,{notification:W,notiPath:t,markAllAsReadState:s,brandColors:n,onMark:K,showDetail:!!w[W.id],onToggleDetail:()=>ce(W.id,$)},W.id||$)})};return l.jsxs("div",{children:[l.jsx("div",{className:"mark-all-read",children:l.jsx("button",{onClick:P,style:{visibility:r===0?"hidden":"visible"},children:"Mark all as read"})}),l.jsx("div",{className:"notification-items__wrapper",style:{height:"100%"},children:l.jsx("div",{className:"notification-items__content",style:{height:"100%"},children:l.jsx(m.InfiniteLoader,{isItemLoaded:L,itemCount:j,loadMoreItems:M,threshold:10,children:({onItemsRendered:$,ref:z})=>l.jsx(kr,{height:u,itemCount:j,itemSize:re,width:"100%",onItemsRendered:$,ref:W=>{T.current=W,typeof z=="function"&&z(W)},children:_e})})})})]})},Yo=({baseUrl:e,notiPath:t,brandColors:n})=>{var d,f;const r=C.useRef(null),{setShowModalFalse:o}=C.useContext(m.CustomOpenList),{notidata:i}=C.useContext(m.CustomOpenList);console.log(i),C.useEffect(()=>{const h=x=>{!(!!x.composedPath?x.composedPath():[x.target]).some(v=>{var w;return v===r.current||((w=v==null?void 0:v.classList)==null?void 0:w.contains("noti-container"))})&&o()},p=setTimeout(()=>{document.addEventListener("mousedown",h)},100);return()=>{clearTimeout(p),document.removeEventListener("mousedown",h)}},[o]);const[s,c]=C.useState("all"),u=[{id:"all",tabTitle:`All (${((d=i==null?void 0:i.all)==null?void 0:d.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`Unread (${((f=i==null?void 0:i.unread)==null?void 0:f.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"unread",popupRef:r})}];return l.jsx(l.Fragment,{children:l.jsx("div",{ref:r,style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden",zIndex:"100"},children:l.jsxs("div",{className:"list-content",children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("h3",{style:{fontSize:"24px",fontWeight:"500",color:m.color.textPrimary},className:"list-title",children:"Notifications"}),l.jsx("button",{onClick:o,children:l.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),l.jsx(Ro,{tabs:u,setCurrentTab:c,currentTab:s,brandColors:n})]})})})};function qo({iconColor:e="#fff",baseUrl:t,notiPath:n,brandColors:r}){var f,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=C.useContext(m.CustomOpenList),{notidata:c,setNotiData:u}=C.useContext(m.CustomOpenList),d=Tr({baseUrl:t,notiPath:n,setNotiData:u});return C.useEffect(()=>{(async()=>{var x,g;try{const[a]=await Promise.all([d(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){m.pushError(((g=(x=a.response)==null?void 0:x.data)==null?void 0:g.errorMessage)||"Have error when get notification list")}})()},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[l.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:p=>{p.stopPropagation(),i()},style:{cursor:"pointer",color:e},children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&l.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:m.color.danger},className:"notification-badge",children:((f=c==null?void 0:c.unread)==null?void 0:f.total)>9?"9+":`${(h=c==null?void 0:c.unread)==null?void 0:h.total}`})]}),l.jsx("div",{className:"noti-list-container",children:o&&l.jsx(Yo,{baseUrl:t,notiPath:n,brandColors:r})})]})}const Zo=".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}",Xo=".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}",Jo=':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}',Qo="._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}",Mr='.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';function ei(e){return l.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),l.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),l.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16865_28134",children:l.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}const ti=C.createContext({}),jr=!0;function ni({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=jr,customHighlightBackground:d}){const f={};return s==="rtl"&&(f["--animation-direction"]="reverse"),typeof c=="number"&&(f["--animation-duration"]=`${c}s`),u||(f["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(f.width=n),(typeof r=="string"||typeof r=="number")&&(f.height=r),(typeof o=="string"||typeof o=="number")&&(f.borderRadius=o),i&&(f.borderRadius="50%"),typeof e<"u"&&(f["--base-color"]=e),typeof t<"u"&&(f["--highlight-color"]=t),typeof d=="string"&&(f["--custom-highlight-background"]=d),f}function Pr({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,d,f;const h=C.useContext(ti),p={...c};for(const[_,T]of Object.entries(c))typeof T>"u"&&delete p[_];const x={...h,...p,circle:i},g={...s,...ni(x)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const y=(u=x.inline)!==null&&u!==void 0?u:!1,v=[],w=Math.ceil(e);for(let _=0;_<w;_++){let T=g;if(w>e&&_===w-1){const S=(d=T.width)!==null&&d!==void 0?d:"100%",E=e%1,M=typeof S=="number"?S*E:`calc(${S} * ${E})`;T={...T,width:M}}const b=C.createElement("span",{className:a,style:T,key:_},"‌");y?v.push(b):v.push(C.createElement(C.Fragment,{key:_},b,C.createElement("br",null)))}return C.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(f=x.enableAnimation)!==null&&f!==void 0?f:jr},t?v.map((_,T)=>C.createElement(t,{key:T},_)):v)}const ri='@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}',oi=({baseUrl:e,searchPath:t})=>{const[n,r]=C.useState(!1);console.log("hasPermission state",n);const o=async()=>{const s=e+(t||"/user-management/api/v1/users/my-account/access-stella-search");try{const c=await m.axiosInstance.get(s);console.log("hasPermission data",c.data),r(c.data)}catch(c){console.log(c)}};return C.useEffect(()=>{o()},[e,t]),{hasPermission:n}};function Or({childrenClass:e,action:t,childrenOpenClass:n}){const r=document.querySelector("#topbar-wrapper"),o=r==null?void 0:r.shadowRoot,i=o==null?void 0:o.querySelector(`.${e}`),s=o==null?void 0:o.querySelector(`.${n}`),c=o==null?void 0:o.querySelector("nav"),u=d=>{c==null||c.addEventListener("click",function(f){if(n&&s&&s.contains(f.target)){if(i&&!i.contains(f.target))return}else i&&!i.contains(f.target)&&t()}),r&&!r.contains(d.target)&&t()};document.addEventListener("click",u,!0)}function ii(e){return l.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_16886_62505",children:l.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}const si=".languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}";function Ee(e){return Array.isArray?Array.isArray(e):Nr(e)==="[object Array]"}function ai(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ci(e){return e==null?"":ai(e)}function ve(e){return typeof e=="string"}function Ar(e){return typeof e=="number"}function li(e){return e===!0||e===!1||ui(e)&&Nr(e)=="[object Boolean]"}function $r(e){return typeof e=="object"}function ui(e){return $r(e)&&e!==null}function ue(e){return e!=null}function Gt(e){return!e.trim().length}function Nr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const di="Incorrect 'index' type",fi=e=>`Invalid value for key ${e}`,hi=e=>`Pattern length exceeds max of ${e}.`,pi=e=>`Missing ${e} property in key`,mi=e=>`Property 'weight' in key '${e}' must be a positive integer`,Hn=Object.prototype.hasOwnProperty;class gi{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Rr(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Rr(e){let t=null,n=null,r=null,o=1,i=null;if(ve(e)||Ee(e))r=e,t=Bn(e),n=Xt(e);else{if(!Hn.call(e,"name"))throw new Error(pi("name"));const s=e.name;if(r=s,Hn.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(mi(s));t=Bn(s),n=Xt(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Bn(e){return Ee(e)?e:e.split(".")}function Xt(e){return Ee(e)?e.join("."):e}function yi(e,t){let n=[],r=!1;const o=(i,s,c)=>{if(ue(i))if(!s[c])n.push(i);else{let u=s[c];const d=i[u];if(!ue(d))return;if(c===s.length-1&&(ve(d)||Ar(d)||li(d)))n.push(ci(d));else if(Ee(d)){r=!0;for(let f=0,h=d.length;f<h;f+=1)o(d[f],s,c+1)}else s.length&&o(d,s,c+1)}};return o(e,ve(t)?t.split("."):t,0),r?n:n[0]}const xi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},bi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vi={location:0,threshold:.6,distance:100},Si={useExtendedSearch:!1,getFn:yi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var O={...bi,...xi,...vi,...Si};const wi=/[^ ]+/g;function _i(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const i=o.match(wi).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*e),c=parseFloat(Math.round(s*r)/r);return n.set(i,c),c},clear(){n.clear()}}}class yn{constructor({getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){this.norm=_i(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ve(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ve(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!ue(t)||Gt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(ue(s)){if(Ee(s)){let c=[];const u=[{nestedArrIndex:-1,value:s}];for(;u.length;){const{nestedArrIndex:d,value:f}=u.pop();if(ue(f))if(ve(f)&&!Gt(f)){let h={v:f,i:d,n:this.norm.get(f)};c.push(h)}else Ee(f)&&f.forEach((h,p)=>{u.push({nestedArrIndex:p,value:h})})}r.$[i]=c}else if(ve(s)&&!Gt(s)){let c={v:s,n:this.norm.get(s)};r.$[i]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function zr(e,t,{getFn:n=O.getFn,fieldNormWeight:r=O.fieldNormWeight}={}){const o=new yn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Rr)),o.setSources(t),o.create(),o}function Ei(e,{getFn:t=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new yn({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function dt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=O.distance,ignoreLocation:i=O.ignoreLocation}={}){const s=t/e.length;if(i)return s;const c=Math.abs(r-n);return o?s+c/o:c?1:s}function Ci(e=[],t=O.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let c=e[i];c&&r===-1?r=i:!c&&r!==-1&&(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const Oe=32;function Ti(e,t,n,{location:r=O.location,distance:o=O.distance,threshold:i=O.threshold,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,includeMatches:u=O.includeMatches,ignoreLocation:d=O.ignoreLocation}={}){if(t.length>Oe)throw new Error(hi(Oe));const f=t.length,h=e.length,p=Math.max(0,Math.min(r,h));let x=i,g=p;const a=c>1||u,y=a?Array(h):[];let v;for(;(v=e.indexOf(t,g))>-1;){let E=dt(t,{currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:d});if(x=Math.min(E,x),g=v+f,a){let M=0;for(;M<f;)y[v+M]=1,M+=1}}g=-1;let w=[],_=1,T=f+h;const b=1<<f-1;for(let E=0;E<f;E+=1){let M=0,j=T;for(;M<j;)dt(t,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:d})<=x?M=j:T=j,j=Math.floor((T-M)/2+M);T=j;let L=Math.max(1,p-j+1),I=s?h:Math.min(p+j,h)+f,P=Array(I+2);P[I+1]=(1<<E)-1;for(let K=I;K>=L;K-=1){let re=K-1,ce=n[e.charAt(re)];if(a&&(y[re]=+!!ce),P[K]=(P[K+1]<<1|1)&ce,E&&(P[K]|=(w[K+1]|w[K])<<1|1|w[K+1]),P[K]&b&&(_=dt(t,{errors:E,currentLocation:re,expectedLocation:p,distance:o,ignoreLocation:d}),_<=x)){if(x=_,g=re,g<=p)break;L=Math.max(1,2*p-g)}}if(dt(t,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:d})>x)break;w=P}const S={isMatch:g>=0,score:Math.max(.001,_)};if(a){const E=Ci(y,c);E.length?u&&(S.indices=E):S.isMatch=!1}return S}function Ii(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Lr{constructor(t,{location:n=O.location,threshold:r=O.threshold,distance:o=O.distance,includeMatches:i=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreLocation:d=O.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const f=(p,x)=>{this.chunks.push({pattern:p,alphabet:Ii(p),startIndex:x})},h=this.pattern.length;if(h>Oe){let p=0;const x=h%Oe,g=h-x;for(;p<g;)f(this.pattern.substr(p,Oe),p),p+=Oe;if(x){const a=h-Oe;f(this.pattern.substr(a),a)}}else f(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let g={isMatch:!0,score:0};return r&&(g.indices=[[0,t.length-1]]),g}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:d}=this.options;let f=[],h=0,p=!1;this.chunks.forEach(({pattern:g,alphabet:a,startIndex:y})=>{const{isMatch:v,score:w,indices:_}=Ti(t,g,a,{location:o+y,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:d});v&&(p=!0),h+=w,v&&_&&(f=[...f,..._])});let x={isMatch:p,score:p?h/this.chunks.length:1};return p&&r&&(x.indices=f),x}}class Me{constructor(t){this.pattern=t}static isMultiMatch(t){return Vn(t,this.multiRegex)}static isSingleMatch(t){return Vn(t,this.singleRegex)}search(){}}function Vn(e,t){const n=e.match(t);return n?n[1]:null}class ki extends Me{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mi extends Me{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class ji extends Me{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Pi extends Me{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Oi extends Me{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ai extends Me{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Fr extends Me{constructor(t,{location:n=O.location,threshold:r=O.threshold,distance:o=O.distance,includeMatches:i=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:c=O.minMatchCharLength,isCaseSensitive:u=O.isCaseSensitive,ignoreLocation:d=O.ignoreLocation}={}){super(t),this._bitapSearch=new Lr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Dr extends Me{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const Jt=[ki,Dr,ji,Pi,Ai,Oi,Mi,Fr],Wn=Jt.length,$i=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ni="|";function Ri(e,t={}){return e.split(Ni).map(n=>{let r=n.trim().split($i).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const c=r[i];let u=!1,d=-1;for(;!u&&++d<Wn;){const f=Jt[d];let h=f.isMultiMatch(c);h&&(o.push(new f(h,t)),u=!0)}if(!u)for(d=-1;++d<Wn;){const f=Jt[d];let h=f.isSingleMatch(c);if(h){o.push(new f(h,t));break}}}return o})}const zi=new Set([Fr.type,Dr.type]);class Li{constructor(t,{isCaseSensitive:n=O.isCaseSensitive,includeMatches:r=O.includeMatches,minMatchCharLength:o=O.minMatchCharLength,ignoreLocation:i=O.ignoreLocation,findAllMatches:s=O.findAllMatches,location:c=O.location,threshold:u=O.threshold,distance:d=O.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:d},this.pattern=n?t:t.toLowerCase(),this.query=Ri(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,s=[],c=0;for(let u=0,d=n.length;u<d;u+=1){const f=n[u];s.length=0,i=0;for(let h=0,p=f.length;h<p;h+=1){const x=f[h],{isMatch:g,indices:a,score:y}=x.search(t);if(g){if(i+=1,c+=y,r){const v=x.constructor.type;zi.has(v)?s=[...s,...a]:s.push(a)}}else{c=0,i=0,s.length=0;break}}if(i){let h={isMatch:!0,score:c/i};return r&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const Qt=[];function Fi(...e){Qt.push(...e)}function en(e,t){for(let n=0,r=Qt.length;n<r;n+=1){let o=Qt[n];if(o.condition(e,t))return new o(e,t)}return new Lr(e,t)}const St={AND:"$and",OR:"$or"},tn={PATH:"$path",PATTERN:"$val"},nn=e=>!!(e[St.AND]||e[St.OR]),Di=e=>!!e[tn.PATH],Hi=e=>!Ee(e)&&$r(e)&&!nn(e),Un=e=>({[St.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Hr(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=Di(o);if(!s&&i.length>1&&!nn(o))return r(Un(o));if(Hi(o)){const u=s?o[tn.PATH]:i[0],d=s?o[tn.PATTERN]:o[u];if(!ve(d))throw new Error(fi(u));const f={keyId:Xt(u),pattern:d};return n&&(f.searcher=en(d,t)),f}let c={children:[],operator:i[0]};return i.forEach(u=>{const d=o[u];Ee(d)&&d.forEach(f=>{c.children.push(r(f))})}),c};return nn(e)||(e=Un(e)),r(e)}function Bi(e,{ignoreFieldNorm:t=O.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const c=o?o.weight:null;r*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(t?1:i))}),n.score=r})}function Vi(e,t){const n=e.matches;t.matches=[],ue(n)&&n.forEach(r=>{if(!ue(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),t.matches.push(s)})}function Wi(e,t){t.score=e.score}function Ui(e,t,{includeMatches:n=O.includeMatches,includeScore:r=O.includeScore}={}){const o=[];return n&&o.push(Vi),r&&o.push(Wi),e.map(i=>{const{idx:s}=i,c={item:t[s],refIndex:s};return o.length&&o.forEach(u=>{u(i,c)}),c})}class Ue{constructor(t,n={},r){this.options={...O,...n},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof yn))throw new Error(di);this._myIndex=n||zr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ue(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:c}=this.options;let u=ve(t)?ve(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Bi(u,{ignoreFieldNorm:c}),i&&u.sort(s),Ar(n)&&n>-1&&(u=u.slice(0,n)),Ui(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=en(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:d,indices:f}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:d,value:i,norm:c,indices:f}]})}),o}_searchLogical(t){const n=Hr(t,this.options),r=(c,u,d)=>{if(!c.children){const{keyId:h,searcher:p}=c,x=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:p});return x&&x.length?[{idx:d,item:u,matches:x}]:[]}const f=[];for(let h=0,p=c.children.length;h<p;h+=1){const x=c.children[h],g=r(x,u,d);if(g.length)f.push(...g);else if(c.operator===St.AND)return[]}return f},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let d=r(n,c,u);d.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),d.forEach(({matches:f})=>{i[u].matches.push(...f)}))}}),s}_searchObjectList(t){const n=en(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:c})=>{if(!ue(s))return;let u=[];r.forEach((d,f)=>{u.push(...this._findMatches({key:d,value:s[f],searcher:n}))}),u.length&&i.push({idx:c,item:s,matches:u})}),i}_findMatches({key:t,value:n,searcher:r}){if(!ue(n))return[];let o=[];if(Ee(n))n.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:d,indices:f}=r.searchIn(i);u&&o.push({score:d,key:t,value:i,idx:s,norm:c,indices:f})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:d}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:d})}return o}}Ue.version="6.6.2";Ue.createIndex=zr;Ue.parseIndex=Ei;Ue.config=O;Ue.parseQuery=Hr;Fi(Li);const Gn={shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["name"]};function Gi(e,t,n){let r;return function(){const o=this,i=arguments,s=function(){r=null,e.apply(o,i)};r&&clearTimeout(r),r=setTimeout(s,t)}}const Ki="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.89222'%20cy='8.34901'%20r='5.59901'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.6428%2013.1855L14.4568%2014.9995'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",rn=({showIcon:e})=>e?l.jsx("img",{id:"icon",className:"StyledSearchIcon search-icon",width:20,height:20,src:Ki,alt:"icon"}):null;function Yi({results:e=[],onClick:t,setSearchString:n,showIcon:r,maxResults:o,resultStringKeyName:i="name",highlightedItem:s,setHighlightedItem:c,formatResult:u,showNoResultsFlag:d=!0,showNoResultsText:f="No results"}){const h=u||(g=>g[i]),p=g=>{t(g),n(g[i])},x=({event:g,result:a})=>{g.button===0&&(g.preventDefault(),p(a))};return d?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:f})]})}):(e==null?void 0:e.length)<=0&&!d?null:l.jsx(Kn,{children:e.slice(0,o).map((g,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:y=>x({event:y,result:g}),onClick:()=>p(g),children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(g)})]},`rsa-result-${g.entityId}`))})}const Kn=({children:e})=>l.jsxs("div",{className:"StyledResults",children:[l.jsx("div",{className:"line"}),l.jsx("ul",{id:"autocomplete-results",children:e})]}),qi=({showClear:e,setSearchString:t,searchString:n,setFocus:r,onClear:o})=>{const i=()=>{t({target:{value:""}}),r(),o()};return!e||!n||(n==null?void 0:n.length)<=0?null:l.jsx("div",{className:"StyledClearIcon clear-icon",onClick:i,children:l.jsx("svg",{width:20,height:20,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})};function Zi({searchString:e,setSearchString:t,setHighlightedItem:n,eraseResults:r,autoFocus:o,onFocus:i,onClear:s,placeholder:c,showIcon:u=!0,showClear:d=!0,maxLength:f,baseUrl:h}){const p=C.useRef(null);let x=!0;const g=()=>{x=!1,p!=null&&p.current&&p.current.focus(),x=!0},a=v=>{x&&i(v)},y=f?{maxLength:f}:{};return C.useEffect(()=>{document.querySelector("global-topbar");const v=w=>{const _=document.getElementById("AddTagButton"),T=document.getElementsByClassName("btn-edit");["a","e","t"].includes(w.key.toLowerCase())&&((T==null?void 0:T.length)>0&&T[0].addEventListener("click",S=>{const E=document.querySelector("global-topbar"),M=E!=null?E.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(S.preventDefault(),S.stopPropagation(),console.log("Shadow DOM keydown:",S.key)):S.click()},!0),_!=null&&_.addEventListener("click",S=>{const E=document.querySelector("global-topbar"),M=E!=null?E.shadowRoot:document,j=M.getElementById("GlobalSearchInput");M.activeElement===j?(S.preventDefault(),S.stopPropagation(),console.log("Shadow DOM keydown:",S.key)):S.click()},!0))};return document.addEventListener("keydown",v,!0),()=>document.removeEventListener("keydown",v,!0)},[]),l.jsxs("div",{className:"StyledSearchInput",children:[l.jsx(rn,{showIcon:u}),l.jsx("input",{type:"text",name:"topbar-search",className:"topbar-search-input",id:"GlobalSearchInput",ref:p,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:a,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:v=>{if(v.key==="Enter"){const w=document.querySelector("global-topbar");if((w!=null?w.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",v);const T=v.currentTarget.value;window.location.href=`${h}/stella/page/Search/Index?Term=${T}`;return}}n({event:v})},"data-test":"search-input",...y}),l.jsx(qi,{showClear:d,setSearchString:t,searchString:e,onClear:s,setFocus:g})]})}const Xi=200,Ji=10;function Qi({items:e=[],fuseOptions:t=Gn,inputDebounce:n=Xi,onSearch:r=()=>{},onHover:o=()=>{},onSelect:i=()=>{},onFocus:s=()=>{},onClear:c=()=>{},searchOnFocus:u=!0,showIcon:d=!0,showClear:f=!0,maxResults:h=Ji,placeholder:p="",autoFocus:x=!1,styling:g={},resultStringKeyName:a="name",inputSearchString:y="",formatResult:v,showNoResults:w=!0,showNoResultsText:_="No results",showItemsOnFocus:T=!1,maxLength:b=0,baseUrl:S=""}){({...g});const E={...Gn,...t},M=new Ue(e,E);M.setCollection(e);const[j,L]=C.useState(y),[I,P]=C.useState([]),[R,K]=C.useState(-1),[re,ce]=C.useState(!1),[_e,$]=C.useState(!1),[z,W]=C.useState(!1),[le,oe]=C.useState(!1);C.useEffect(()=>{L(y);const F=setTimeout(()=>P(lt(y)),0);return()=>clearTimeout(F)},[y]),C.useEffect(()=>{(j==null?void 0:j.length)>=3?e&&(e==null?void 0:e.length)>0&&P(e):P([])},[e]),C.useEffect(()=>{const F=()=>{Ae(),oe(!1)};return document.addEventListener("click",F),()=>document.removeEventListener("click",F)},[]),C.useEffect(()=>{(()=>{w&&j.length>0&&!_e&&I.length===0&&!re?W(!0):W(!1),T&&I.length===0&&j.length===0&&le&&P(e.slice(0,h))})()},[_e,w,re,j,I,T,le]);const te=F=>{u&&s(F),oe(!0)},Q=F=>{let k=[];(F==null?void 0:F.length)>0&&(k=lt(F)),P(k),r(F,k),$(!1)},ye=C.useCallback(n>0?Gi(F=>Q(F),n):F=>Q(F),[e]),qe=F=>{Ae(),i(F),L(F[a]),K(0)},lt=F=>M.search(F,{limit:h}).map(k=>({...k.item})).slice(0,h),Bt=({target:F})=>{const k=F.value;L(k),ye(k),$(!0),re&&ce(!1)},Ae=()=>{P([]),ce(!0)},ut=({index:F,event:k})=>{let Te=-1;const Pe=$e=>{K($e),I!=null&&I[$e]&&o(I[$e])};if(F!==void 0)K(F),I!=null&&I[F]&&o(I[F]);else if(k)switch(k.key){case"Enter":I.length>0&&I[R]?(k.preventDefault(),i(I[R])):r(j,I),K(-1),Ae();break;case"ArrowUp":k.preventDefault(),Te=R>-1?R-1:I.length-1,Pe(Te);break;case"ArrowDown":k.preventDefault(),Te=R<I.length-1?R+1:-1,Pe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Zi,{searchString:j,setSearchString:Bt,eraseResults:Ae,autoFocus:x,onFocus:te,onClear:c,placeholder:p,showIcon:!0,showClear:f,setHighlightedItem:ut,maxLength:b,baseUrl:S})}),l.jsx(Yi,{results:I,onClick:qe,setSearchString:L,showIcon:d,maxResults:h,resultStringKeyName:a,formatResult:v,highlightedItem:R,setHighlightedItem:ut,showNoResultsFlag:z,showNoResultsText:_})]})})}function es({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:d,logout:f,disabledLogoClick:h=!1}=t,p={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[x,g]=C.useState(!1),{Term:a}=gn.useParams();console.log("term",a);const[y,v]=C.useState([]),[w,_]=C.useState([]),T=oi({baseUrl:o});console.log("searchPermission",T.hasPermission),C.useEffect(()=>{y.length>=3?b(y):_([])},[y]);const b=async I=>{await fetch(`${o}/stella/page/Search/Suggestions?term=${I}`).then(P=>P.json()).then(P=>{_(P),console.log(P)}).catch(P=>{console.error(P)})},S=I=>{console.log(I)},E=(I,P)=>{v(I),console.log(I,P)},M=I=>{const P=I.entityType,R=I.entityId;switch(P){case"Zone":document.location.href=o+"/stella/page/SiteManagement/Zone/Details/"+R;return;case"Location":document.location.href=o+"/stella/page/SiteManagement/Location/Details/"+R;return;case"Company":document.location.href=o+"/stella/page/SiteManagement/Company/Details/"+R;return;default:console.log(`Unsure how to navigate to ${P} ${R}`);return}},j=()=>{const I=document.querySelector("global-topbar"),R=(I!=null?I.shadowRoot:document).getElementById("GlobalSearchInput");R&&R.value.length>=3&&(setTimeout(()=>{},1e3),b(R.value))},L=I=>I.entityType==="Location"?l.jsxs(l.Fragment,{children:[l.jsx("div",{dangerouslySetInnerHTML:{__html:I.name}})," ",l.jsxs("div",{style:{fontSize:"0.6em"},children:["Status: ",I.entityStatus]})]}):l.jsx(l.Fragment,{children:l.jsx("div",{dangerouslySetInnerHTML:{__html:I.name}})});return l.jsxs(m.StyleWrapper,{styles:[Zo,Jo,Mr,Qo,ri,Xo],style:{zIndex:1202},id:"topbar-wrapper",children:[l.jsx("nav",{className:`navbar-wrapper ${e}`,style:c?p:s,children:l.jsxs("div",{className:"navbar-container",children:[h?l.jsx("div",{className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}):l.jsx("a",{href:"/home",className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}),l.jsxs("div",{className:"right-side-container",children:[d&&T.hasPermission?l.jsx("span",{children:l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",children:l.jsx("div",{id:"autocomplete",style:{width:223},children:l.jsx(Qi,{items:w,onSearch:E,onHover:S,onSelect:M,onFocus:j,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):"",t.customElement,l.jsx("span",{children:l.jsxs(m.CustomOpenListProvider,{children:[l.jsx(Ao,{baseUrl:u.baseUrl,path:u.path,apiKey:u.apiKey,authDomain:u.authDomain,projectId:u.projectId,storageBucket:u.storageBucket,messagingSenderId:u.messagingSenderId,appId:u.appId,measurementId:u.measurementId,vapidKey:u.vapidKey}),l.jsx(qo,{iconColor:c==null?void 0:c.headerTextColor,baseUrl:o,notiPath:i,brandColors:c})]})}),l.jsx(Br,{}),l.jsxs("div",{className:"userContainer",children:[l.jsx(ts,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,userName:r==null?void 0:r.firstName,setShowConfirmModal:g}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Pr,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})}),l.jsx(m.LogoutConfirmModal,{isOpen:x,onClose:()=>g(!1),onConfirm:f})]})}function Br(){var u;const e=[{value:m.Language.en,element:l.jsx(ei,{})},{value:m.Language.de,element:l.jsx(ii,{})}],[t,n]=C.useState(!1),[r,o]=C.useState(new Array(e.length).fill(!1)),{language:i,setLanguage:s}=m.useCustomTranslation();C.useEffect(()=>{Or({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(d=>d.value==i))==null?void 0:u.element;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:si}),l.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:l.jsx("div",{className:"languageDropdown",onClick:()=>{n(!t)},children:c})})]})}function ts({avatarUrl:e,userName:t}){const[n,r]=C.useState(!1),o=C.useRef(null);C.useRef(null);const[i,s]=C.useState(!1),[c,u]=C.useState(!1);return C.useEffect(()=>{Or({childrenClass:"userAvatar",action(){r(!1)}})},[]),l.jsx(l.Fragment,{children:l.jsx("div",{style:{position:"relative"},children:e?l.jsx("img",{onClick:()=>r(!n),ref:o,alt:"user avatar",className:"userAvatar",src:e}):l.jsx("div",{onClick:()=>r(!n),ref:o,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""})})})}function ns(e){const{user:t,logout:n,isFetching:r}=m.useAuth();return l.jsx(es,{...e,isFetching:r,user:t,logout:n})}const rs=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),os=e=>l.jsx(m.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e}),is=({children:e})=>l.jsxs(N.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[l.jsx(ss,{}),e]});function ss(){return l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[l.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),l.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),l.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),l.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),l.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),l.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),l.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),l.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),l.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),l.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),l.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),l.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),l.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),l.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),l.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),l.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),l.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),l.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),l.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),l.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),l.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),l.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),l.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),l.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),l.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),l.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),l.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),l.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var as=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal,cs=typeof self=="object"&&self&&self.Object===Object&&self;as||cs||Function("return this")();function ls(e){const[t,n]=C.useState(!!e),r=C.useCallback(()=>{n(!0)},[]),o=C.useCallback(()=>{n(!1)},[]),i=C.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:o,toggle:i}}function us(e){var t;return l.jsxs(N.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&l.jsxs(N.DialogTitle,{component:N.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?l.jsx(N.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?l.jsx(N.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),l.jsx(N.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&l.jsx(N.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:l.jsxs(l.Fragment,{children:[!e.hideClose&&l.jsx(N.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&l.jsx(N.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function ds(e){const t=ls(typeof e=="boolean"?e:void 0);return{setTrue:t.setTrue,open:t.value,onClose:t.setFalse,onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}function fs({rootPath:e}){return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center"},children:[l.jsx("h1",{children:"404 - Not Found"}),l.jsx("p",{children:"Sorry, the page you are looking for does not exist."}),l.jsx(N.Box,{height:"16px"}),l.jsx(gn.Link,{to:e,children:l.jsx(N.Button,{variant:"contained",color:"primary",children:"Go to Home"})})]})}function hs(){const{colors:e}=m.useTheme();return l.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100vh - 144px)",alignItems:"center",justifyContent:"center",zIndex:100},children:l.jsx("h1",{style:{color:`${e==null?void 0:e.primary300}`,fontSize:"82px",fontWeight:700,textTransform:"uppercase",marginTop:0,marginBottom:0,textAlign:"center"},children:"Welcome to the Intelli-Verse"})})}const ps=()=>{const{t:e}=m.useTranslation();return l.jsx("div",{className:"unauth__container "+m.styles["page-container"],children:l.jsxs("div",{className:"unauth__main-content "+m.styles["page-main-content"],children:[l.jsx(ms,{}),l.jsxs("div",{className:"unauth__main-text",children:[l.jsx("h2",{className:"unauth__main-text__title "+m.styles["page-title"],children:e("components.unauthorizedPage.title")}),l.jsxs("p",{className:"unauth__main-text__desc "+m.styles["text-base"],children:[e("components.unauthorizedPage.description1")," ",l.jsx("br",{})," ",e("components.unauthorizedPage.description2")]})]})]})})},ms=()=>l.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[l.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),l.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),l.jsx("defs",{children:l.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.jsx("feOffset",{dy:"1"}),l.jsx("feGaussianBlur",{stdDeviation:"1"}),l.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),l.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function Ie(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vr(e){if(A.isValidElement(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vr(e[n])}),t}function Se(e,t,n={clone:!0}){const r=n.clone?m._extends({},e):e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])?r[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?r[o]=Se(e[o],t[o],n):n.clone?r[o]=Ie(t[o])?Vr(t[o]):t[o]:r[o]=t[o]}),r}const gs=Object.freeze(Object.defineProperty({__proto__:null,default:Se,isPlainObject:Ie},Symbol.toStringTag,{value:"Module"}));function Qe(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ys=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));var on={exports:{}},U={};/**
33
33
  * @license React
34
34
  * react-is.production.js
35
35
  *
@@ -1,8 +1,8 @@
1
1
  import ui, { jsxs as k, Fragment as ve, jsx as u } from "react/jsx-runtime";
2
2
  import * as $ from "react";
3
3
  import Ee, { createElement as cn, PureComponent as di, useState as D, useEffect as J, useRef as ye, useContext as Ve, useCallback as ut, forwardRef as fi } from "react";
4
- import { c as Ie, a as ft, _ as hi, b as Jn, d as W, C as tt, I as qr, N as mi, p as pi, L as Qn, u as gi, e as yi, S as Zr, f as vi, g as bi, Q as Xr, h as Ct, i as Jr, j as xi, s as Tt, P, k as we, l as Si, o as wi, m as De, n as _i, q as At, r as er, t as Ei, v as tr, D as Ci, w as Qr, x as eo, y as Ti, z as Ii, A as Mi, B as It } from "../index.esm2017-CXUWB61_.js";
5
- import { H as su, G as cu, K as lu, E as uu, F as du, J as fu } from "../index.esm2017-CXUWB61_.js";
4
+ import { c as Ie, a as ft, _ as hi, b as Jn, d as W, C as tt, I as qr, N as mi, p as pi, L as Qn, u as gi, e as yi, S as Zr, f as vi, g as bi, Q as Xr, h as Ct, i as Jr, j as xi, s as Tt, P, k as we, l as Si, o as wi, m as De, n as _i, q as At, r as er, t as Ei, v as tr, D as Ci, w as Qr, x as eo, y as Ti, z as Ii, A as Mi, B as It } from "../index.esm2017-81ft1FRl.js";
5
+ import { H as su, G as cu, K as lu, E as uu, F as du, J as fu } from "../index.esm2017-81ft1FRl.js";
6
6
  import { Box as to, CircularProgress as no, Typography as Me, Stack as Se, Dialog as ki, DialogTitle as Oi, DialogContent as Ai, DialogActions as $i, Button as yn, ClickAwayListener as Ni, TextField as ro, IconButton as Pi, Fade as Ri, Paper as zi, Checkbox as Li, Breadcrumbs as Di } from "@mui/material";
7
7
  import "@r2wc/react-to-web-component";
8
8
  import "react-query";
@@ -867,7 +867,7 @@ function Qi({
867
867
  ) })
868
868
  ] });
869
869
  }
870
- const ea = ".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}", ta = ".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}", na = ':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}', ra = "._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}", co = '.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';
870
+ const ea = ".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}", ta = ".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}", na = ':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}', ra = "._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}", co = '.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';
871
871
  function oa(e) {
872
872
  return /* @__PURE__ */ k(
873
873
  "svg",
@@ -19830,7 +19830,7 @@ function G4(t) {
19830
19830
  )
19831
19831
  ] });
19832
19832
  }
19833
- const q4 = '.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';
19833
+ const q4 = '.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';
19834
19834
  var gc = {};
19835
19835
  /**
19836
19836
  * @license React
@@ -29834,7 +29834,7 @@ function c6() {
29834
29834
  } });
29835
29835
  }
29836
29836
  var QD = c6();
29837
- const f6 = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", d6 = ".favorite-bar{z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";
29837
+ const f6 = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", d6 = ".favorite-bar{position:sticky;top:64px;z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";
29838
29838
  var I1;
29839
29839
  (function(t) {
29840
29840
  t.DragStart = "dragStart", t.DragMove = "dragMove", t.DragEnd = "dragEnd", t.DragCancel = "dragCancel", t.DragOver = "dragOver", t.RegisterDroppable = "registerDroppable", t.SetDroppableDisabled = "setDroppableDisabled", t.UnregisterDroppable = "unregisterDroppable";
@@ -30059,9 +30059,9 @@ function m6(t) {
30059
30059
  style: {
30060
30060
  marginTop: 4,
30061
30061
  flex: 1,
30062
- overflow: "auto",
30063
- height: "100%",
30064
- overflowY: "hidden"
30062
+ // overflow: 'auto',
30063
+ height: "100%"
30064
+ // overflowY: 'hidden',
30065
30065
  },
30066
30066
  children: /* @__PURE__ */ Me(QE, { backend: cC, children: /* @__PURE__ */ Fn("div", { style: { display: "inline-flex" }, children: [
30067
30067
  n.map((q, re) => /* @__PURE__ */ Me(H, { item: q, index: re }, q.id)),
@@ -28,7 +28,7 @@ object-assign
28
28
  (c) Sindre Sorhus
29
29
  @license MIT
30
30
  */var fm,g1;function C4(){if(g1)return fm;g1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(a).map(function(y){return a[y]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(y){p[y]=y}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fm=i()?Object.assign:function(o,a){for(var c,f=r(o),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var g in c)e.call(c,g)&&(f[g]=c[g]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(f[p[T]]=c[p[T]])}}return f},fm}var dm,m1;function rb(){if(m1)return dm;m1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dm=t,dm}var hm,v1;function jD(){return v1||(v1=1,hm=Function.call.bind(Object.prototype.hasOwnProperty)),hm}var pm,y1;function E4(){if(y1)return pm;y1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=rb(),n={},r=jD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,f,p){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var g;try{if(typeof o[y]!="function"){var T=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}g=o[y](a,y,f,c,null,e)}catch(A){g=A}if(g&&!(g instanceof Error)&&t((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+g.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},pm=i,pm}var gm,b1;function k4(){if(b1)return gm;b1=1;var t=ND(),e=C4(),n=rb(),r=jD(),i=E4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function a(){return null}return gm=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(ve){var Se=ve&&(p&&ve[p]||ve[y]);if(typeof Se=="function")return Se}var T="<<anonymous>>",E={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:U(),arrayOf:H,element:ne(),elementType:q(),instanceOf:ie,node:Ve(),objectOf:le,oneOf:x,oneOfType:ae,shape:et,exact:Pe};function A(ve,Se){return ve===Se?ve!==0||1/ve===1/Se:ve!==ve&&Se!==Se}function I(ve,Se){this.message=ve,this.data=Se&&typeof Se=="object"?Se:{},this.stack=""}I.prototype=Error.prototype;function j(ve){if(process.env.NODE_ENV!=="production")var Se={},je=0;function Qe(Ke,qe,ot,ct,pt,ft,yt){if(ct=ct||T,ft=ft||ot,yt!==n){if(f){var Je=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Je.name="Invariant Violation",Je}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ct+":"+ot;!Se[At]&&je<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+ct+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Se[At]=!0,je++)}}return qe[ot]==null?Ke?qe[ot]===null?new I("The "+pt+" `"+ft+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new I("The "+pt+" `"+ft+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:ve(qe,ot,ct,pt,ft)}var Ye=Qe.bind(null,!1);return Ye.isRequired=Qe.bind(null,!0),Ye}function R(ve){function Se(je,Qe,Ye,Ke,qe,ot){var ct=je[Qe],pt=me(ct);if(pt!==ve){var ft=Oe(ct);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ft+"` supplied to `"+Ye+"`, expected ")+("`"+ve+"`."),{expectedType:ve})}return null}return j(Se)}function U(){return j(a)}function H(ve){function Se(je,Qe,Ye,Ke,qe){if(typeof ve!="function")return new I("Property `"+qe+"` of component `"+Ye+"` has invalid PropType notation inside arrayOf.");var ot=je[Qe];if(!Array.isArray(ot)){var ct=me(ot);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected an array."))}for(var pt=0;pt<ot.length;pt++){var ft=ve(ot,pt,Ye,Ke,qe+"["+pt+"]",n);if(ft instanceof Error)return ft}return null}return j(Se)}function ne(){function ve(Se,je,Qe,Ye,Ke){var qe=Se[je];if(!c(qe)){var ot=me(qe);return new I("Invalid "+Ye+" `"+Ke+"` of type "+("`"+ot+"` supplied to `"+Qe+"`, expected a single ReactElement."))}return null}return j(ve)}function q(){function ve(Se,je,Qe,Ye,Ke){var qe=Se[je];if(!t.isValidElementType(qe)){var ot=me(qe);return new I("Invalid "+Ye+" `"+Ke+"` of type "+("`"+ot+"` supplied to `"+Qe+"`, expected a single ReactElement type."))}return null}return j(ve)}function ie(ve){function Se(je,Qe,Ye,Ke,qe){if(!(je[Qe]instanceof ve)){var ot=ve.name||T,ct=Ze(je[Qe]);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected ")+("instance of `"+ot+"`."))}return null}return j(Se)}function x(ve){if(!Array.isArray(ve))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function Se(je,Qe,Ye,Ke,qe){for(var ot=je[Qe],ct=0;ct<ve.length;ct++)if(A(ot,ve[ct]))return null;var pt=JSON.stringify(ve,function(yt,Je){var At=Oe(Je);return At==="symbol"?String(Je):Je});return new I("Invalid "+Ke+" `"+qe+"` of value `"+String(ot)+"` "+("supplied to `"+Ye+"`, expected one of "+pt+"."))}return j(Se)}function le(ve){function Se(je,Qe,Ye,Ke,qe){if(typeof ve!="function")return new I("Property `"+qe+"` of component `"+Ye+"` has invalid PropType notation inside objectOf.");var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected an object."));for(var pt in ot)if(r(ot,pt)){var ft=ve(ot,pt,Ye,Ke,qe+"."+pt,n);if(ft instanceof Error)return ft}return null}return j(Se)}function ae(ve){if(!Array.isArray(ve))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Se=0;Se<ve.length;Se++){var je=ve[Se];if(typeof je!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Be(je)+" at index "+Se+"."),a}function Qe(Ye,Ke,qe,ot,ct){for(var pt=[],ft=0;ft<ve.length;ft++){var yt=ve[ft],Je=yt(Ye,Ke,qe,ot,ct,n);if(Je==null)return null;Je.data&&r(Je.data,"expectedType")&&pt.push(Je.data.expectedType)}var At=pt.length>0?", expected one of type ["+pt.join(", ")+"]":"";return new I("Invalid "+ot+" `"+ct+"` supplied to "+("`"+qe+"`"+At+"."))}return j(Qe)}function Ve(){function ve(Se,je,Qe,Ye,Ke){return Le(Se[je])?null:new I("Invalid "+Ye+" `"+Ke+"` supplied to "+("`"+Qe+"`, expected a ReactNode."))}return j(ve)}function tt(ve,Se,je,Qe,Ye){return new I((ve||"React class")+": "+Se+" type `"+je+"."+Qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ye+"`.")}function et(ve){function Se(je,Qe,Ye,Ke,qe){var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type `"+ct+"` "+("supplied to `"+Ye+"`, expected `object`."));for(var pt in ve){var ft=ve[pt];if(typeof ft!="function")return tt(Ye,Ke,qe,pt,Oe(ft));var yt=ft(ot,pt,Ye,Ke,qe+"."+pt,n);if(yt)return yt}return null}return j(Se)}function Pe(ve){function Se(je,Qe,Ye,Ke,qe){var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type `"+ct+"` "+("supplied to `"+Ye+"`, expected `object`."));var pt=e({},je[Qe],ve);for(var ft in pt){var yt=ve[ft];if(r(ve,ft)&&typeof yt!="function")return tt(Ye,Ke,qe,ft,Oe(yt));if(!yt)return new I("Invalid "+Ke+" `"+qe+"` key `"+ft+"` supplied to `"+Ye+"`.\nBad object: "+JSON.stringify(je[Qe],null," ")+`
31
- Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,qe+"."+ft,n);if(Je)return Je}return null}return j(Se)}function Le(ve){switch(typeof ve){case"number":case"string":case"undefined":return!0;case"boolean":return!ve;case"object":if(Array.isArray(ve))return ve.every(Le);if(ve===null||c(ve))return!0;var Se=g(ve);if(Se){var je=Se.call(ve),Qe;if(Se!==ve.entries){for(;!(Qe=je.next()).done;)if(!Le(Qe.value))return!1}else for(;!(Qe=je.next()).done;){var Ye=Qe.value;if(Ye&&!Le(Ye[1]))return!1}}else return!1;return!0;default:return!1}}function fe(ve,Se){return ve==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function me(ve){var Se=typeof ve;return Array.isArray(ve)?"array":ve instanceof RegExp?"object":fe(Se,ve)?"symbol":Se}function Oe(ve){if(typeof ve>"u"||ve===null)return""+ve;var Se=me(ve);if(Se==="object"){if(ve instanceof Date)return"date";if(ve instanceof RegExp)return"regexp"}return Se}function Be(ve){var Se=Oe(ve);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function Ze(ve){return!ve.constructor||!ve.constructor.name?T:ve.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},gm}var mm,w1;function D4(){if(w1)return mm;w1=1;var t=rb();function e(){}function n(){}return n.resetWarningCache=e,mm=function(){function r(a,c,f,p,y,g){if(g!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},mm}if(process.env.NODE_ENV!=="production"){var P4=ND(),O4=!0;kv.exports=k4()(P4.isElement,O4)}else kv.exports=D4()();var Er=kv.exports;const _s=Cu(Er);var _4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},R4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},A4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ih="http://www.w3.org/2000/svg",x1="http://www.w3.org/1999/xlink",qp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}IT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof _4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,R,U;j==="svg"?(R=document.createElementNS(Ih,j),R.setAttribute("xmlns",Ih),R.setAttribute("xmlns:xlink",x1),U=document.createElementNS(Ih,j)):(R=document.createElement(j),U=document.createElement(j)),R.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var H=function(x){if(i.removeSVG(),!i._isMounted){E(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(x)})},ne=function(x,le){if(x){H(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ae){H(ae)}})},q=function(x){if(x.setAttribute("role","img"),a){var le=x.querySelector(":scope > desc");le&&x.removeChild(le);var ae=document.createElement("desc");ae.innerHTML=a,x.prepend(ae)}if(g){var Ve=x.querySelector(":scope > title");Ve&&x.removeChild(Ve);var tt=document.createElement("title");tt.innerHTML=g,x.prepend(tt)}try{A(x)}catch(et){H(et)}};x4(U,{afterEach:ne,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;R4(kf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=Vv(i,A4),p=c;return kn.createElement(p,kf({},f,{ref:this.refCallback},c==="svg"?{xmlns:Ih,xmlnsXlink:x1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);qp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};qp.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const Af=new Map;Af.set("text",t=>{var e,n;return ke.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Af.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return ke.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ke.jsx(e,{svgString:t.icon})});Af.set("svgHttp",t=>ke.jsx(qp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Af.set("img",t=>ke.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function I4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function BD({item:t}){return(Af.get(I4(t))||Af.get("text"))(t)}function M4(t){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:ke.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function L4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[f,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const A=g.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!A&&(T=y.top-g.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):jv.createPortal(ke.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const If=new Map;If.set("text",t=>{var e,n;return ke.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return ke.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ke.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>ke.jsx(qp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>ke.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function F4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function N4({item:t}){return(If.get(F4(t))||If.get("text"))(t)}function $D({...t}){var Ve,tt,et;const e=t.item,n=t.level||0,r=!!((Ve=t.item.children)!=null&&Ve.length),i=`level-${n}`,o=(Pe,Le=i)=>`${Pe} ${Le} `,[a,c]=X.useState(!1),[f,p]=X.useState(e.isFavorite||!1),y=X.useRef(),g=X.useRef();g!=null&&g.current&&((tt=g==null?void 0:g.current)==null?void 0:tt.scrollWidth)>((et=g==null?void 0:g.current)==null?void 0:et.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,R=r||n===0?"div":j?"a":Tp.Link,U=e.redirectUrl||e.path||"#",H=n+1,ne=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},ie=()=>{c(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite",le=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ae=Object.entries(t.brandColors||{}).reduce((Pe,[Le,fe])=>(fe&&(Pe[`--${Le}`]=fe),Pe),{});return ke.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ae},onMouseOver:q,onMouseOut:ie,onDragStart:Pe=>{n>1&&Pe.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[ke.jsxs(R,{target:le,to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Pe=>{console.log("onDragStart component",Pe.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[ke.jsx(j4,{cls:o,item:e}),ke.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),ke.jsx(B4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Pe=>{const Le={menuConfigId:e.id,isFavorite:Pe},fe=t.baseUrl+x;As.post(fe,Le).then(me=>{var Oe;p(Pe),qv("Set favorite menu item successfully"),(Oe=t.onSetFavoriteSuccess)==null||Oe.call(t,t.item.id,Pe)}).catch(me=>{var Oe,Be;console.log(" MenuItem.tsx ~ error:",me),zd(((Be=(Oe=me.response)==null?void 0:Oe.data)==null?void 0:Be.errorMessage)||me.message||"Have error when set favorite menu item")})}}),r&&ke.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:ke.jsx(M4,{className:o("menu-item__icon-arrow__icon")})})]}),ne&&ke.jsx(L4,{parentRef:y,onlyChild:H<2,dropdownLevel:n,renderChildren:({maxHeight:Pe})=>{var Le;return ke.jsx(AD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${H}`),style:nb({maxHeight:Pe,overflowY:"auto",paddingRight:3},Pe!=="auto"&&!!H),children:(Le=e.children)==null?void 0:Le.map(fe=>X.createElement($D,{...t,key:fe.id,item:fe,level:H}))})}})]})}function j4({item:t,cls:e}){return ke.jsx("div",{className:e("menu-item__icon"),children:ke.jsx(N4,{item:t})})}function B4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16};if(t.menuLevel!==0)return ke.jsxs(ke.Fragment,{children:[t.isHovered&&!t.isFavorite&&ke.jsx(sa.Tooltip,{title:"Add to favorites",children:ke.jsx(ID,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&ke.jsx(sa.Tooltip,{title:"Remove from favorites",children:ke.jsx(MD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const $4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';var lc={};/**
31
+ Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,qe+"."+ft,n);if(Je)return Je}return null}return j(Se)}function Le(ve){switch(typeof ve){case"number":case"string":case"undefined":return!0;case"boolean":return!ve;case"object":if(Array.isArray(ve))return ve.every(Le);if(ve===null||c(ve))return!0;var Se=g(ve);if(Se){var je=Se.call(ve),Qe;if(Se!==ve.entries){for(;!(Qe=je.next()).done;)if(!Le(Qe.value))return!1}else for(;!(Qe=je.next()).done;){var Ye=Qe.value;if(Ye&&!Le(Ye[1]))return!1}}else return!1;return!0;default:return!1}}function fe(ve,Se){return ve==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function me(ve){var Se=typeof ve;return Array.isArray(ve)?"array":ve instanceof RegExp?"object":fe(Se,ve)?"symbol":Se}function Oe(ve){if(typeof ve>"u"||ve===null)return""+ve;var Se=me(ve);if(Se==="object"){if(ve instanceof Date)return"date";if(ve instanceof RegExp)return"regexp"}return Se}function Be(ve){var Se=Oe(ve);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function Ze(ve){return!ve.constructor||!ve.constructor.name?T:ve.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},gm}var mm,w1;function D4(){if(w1)return mm;w1=1;var t=rb();function e(){}function n(){}return n.resetWarningCache=e,mm=function(){function r(a,c,f,p,y,g){if(g!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},mm}if(process.env.NODE_ENV!=="production"){var P4=ND(),O4=!0;kv.exports=k4()(P4.isElement,O4)}else kv.exports=D4()();var Er=kv.exports;const _s=Cu(Er);var _4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},R4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},A4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ih="http://www.w3.org/2000/svg",x1="http://www.w3.org/1999/xlink",qp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}IT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof _4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,R,U;j==="svg"?(R=document.createElementNS(Ih,j),R.setAttribute("xmlns",Ih),R.setAttribute("xmlns:xlink",x1),U=document.createElementNS(Ih,j)):(R=document.createElement(j),U=document.createElement(j)),R.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var H=function(x){if(i.removeSVG(),!i._isMounted){E(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(x)})},ne=function(x,le){if(x){H(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ae){H(ae)}})},q=function(x){if(x.setAttribute("role","img"),a){var le=x.querySelector(":scope > desc");le&&x.removeChild(le);var ae=document.createElement("desc");ae.innerHTML=a,x.prepend(ae)}if(g){var Ve=x.querySelector(":scope > title");Ve&&x.removeChild(Ve);var tt=document.createElement("title");tt.innerHTML=g,x.prepend(tt)}try{A(x)}catch(et){H(et)}};x4(U,{afterEach:ne,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;R4(kf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=Vv(i,A4),p=c;return kn.createElement(p,kf({},f,{ref:this.refCallback},c==="svg"?{xmlns:Ih,xmlnsXlink:x1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);qp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};qp.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const Af=new Map;Af.set("text",t=>{var e,n;return ke.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Af.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return ke.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ke.jsx(e,{svgString:t.icon})});Af.set("svgHttp",t=>ke.jsx(qp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Af.set("img",t=>ke.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function I4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function BD({item:t}){return(Af.get(I4(t))||Af.get("text"))(t)}function M4(t){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:ke.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function L4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[f,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const A=g.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!A&&(T=y.top-g.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):jv.createPortal(ke.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const If=new Map;If.set("text",t=>{var e,n;return ke.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return ke.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ke.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>ke.jsx(qp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>ke.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function F4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function N4({item:t}){return(If.get(F4(t))||If.get("text"))(t)}function $D({...t}){var Ve,tt,et;const e=t.item,n=t.level||0,r=!!((Ve=t.item.children)!=null&&Ve.length),i=`level-${n}`,o=(Pe,Le=i)=>`${Pe} ${Le} `,[a,c]=X.useState(!1),[f,p]=X.useState(e.isFavorite||!1),y=X.useRef(),g=X.useRef();g!=null&&g.current&&((tt=g==null?void 0:g.current)==null?void 0:tt.scrollWidth)>((et=g==null?void 0:g.current)==null?void 0:et.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,R=r||n===0?"div":j?"a":Tp.Link,U=e.redirectUrl||e.path||"#",H=n+1,ne=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},ie=()=>{c(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite",le=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ae=Object.entries(t.brandColors||{}).reduce((Pe,[Le,fe])=>(fe&&(Pe[`--${Le}`]=fe),Pe),{});return ke.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ae},onMouseOver:q,onMouseOut:ie,onDragStart:Pe=>{n>1&&Pe.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[ke.jsxs(R,{target:le,to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Pe=>{console.log("onDragStart component",Pe.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[ke.jsx(j4,{cls:o,item:e}),ke.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),ke.jsx(B4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Pe=>{const Le={menuConfigId:e.id,isFavorite:Pe},fe=t.baseUrl+x;As.post(fe,Le).then(me=>{var Oe;p(Pe),qv("Set favorite menu item successfully"),(Oe=t.onSetFavoriteSuccess)==null||Oe.call(t,t.item.id,Pe)}).catch(me=>{var Oe,Be;console.log(" MenuItem.tsx ~ error:",me),zd(((Be=(Oe=me.response)==null?void 0:Oe.data)==null?void 0:Be.errorMessage)||me.message||"Have error when set favorite menu item")})}}),r&&ke.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:ke.jsx(M4,{className:o("menu-item__icon-arrow__icon")})})]}),ne&&ke.jsx(L4,{parentRef:y,onlyChild:H<2,dropdownLevel:n,renderChildren:({maxHeight:Pe})=>{var Le;return ke.jsx(AD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${H}`),style:nb({maxHeight:Pe,overflowY:"auto",paddingRight:3},Pe!=="auto"&&!!H),children:(Le=e.children)==null?void 0:Le.map(fe=>X.createElement($D,{...t,key:fe.id,item:fe,level:H}))})}})]})}function j4({item:t,cls:e}){return ke.jsx("div",{className:e("menu-item__icon"),children:ke.jsx(N4,{item:t})})}function B4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16};if(t.menuLevel!==0)return ke.jsxs(ke.Fragment,{children:[t.isHovered&&!t.isFavorite&&ke.jsx(sa.Tooltip,{title:"Add to favorites",children:ke.jsx(ID,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&ke.jsx(sa.Tooltip,{title:"Remove from favorites",children:ke.jsx(MD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const $4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';var lc={};/**
32
32
  * @license React
33
33
  * react-dom-server-legacy.browser.production.min.js
34
34
  *
@@ -133,7 +133,7 @@ Previous: %s
133
133
  Incoming: %s`,Ki,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<v.length;d++)if(!qt(v[d],l[d]))return!1;return!0}function $u(){if(So>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Si(){return Zt===null?Ws===null?(hs=!1,Ws=Zt=$u()):(hs=!0,Zt=Ws):Zt.next===null?(hs=!1,Zt=Zt.next=$u()):(hs=!0,Zt=Zt.next),Zt}function Vu(v,l){wi=l,Sa=v,Vr=!1,ni=0}function Ys(v,l,d,m){for(;tl;)tl=!1,ni=0,So+=1,Zt=null,d=v(l,m);return Hu(),d}function Hr(){var v=ni!==0;return v}function Hu(){Vr=!1,wi=null,Sa=null,tl=!1,Ws=null,So=0,xi=null,Zt=null}function Uu(v){return Vr&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),xa(v)}function Wu(v){return Ki="useContext",zs(),xa(v)}function Gs(v,l){return typeof l=="function"?l(v):l}function ps(v){return Ki="useState",zu(Gs,v)}function zu(v,l,d){if(v!==Gs&&(Ki="useReducer"),wi=zs(),Zt=Si(),hs){var m=Zt.queue,S=m.dispatch;if(xi!==null){var _=xi.get(m);if(_!==void 0){xi.delete(m);var B=Zt.memoizedState,Y=_;do{var re=Y.action;Vr=!0,B=v(B,re),Vr=!1,Y=Y.next}while(Y!==null);return Zt.memoizedState=B,[B,S]}}return[Zt.memoizedState,S]}else{Vr=!0;var xe;v===Gs?xe=typeof l=="function"?l():l:xe=d!==void 0?d(l):l,Vr=!1,Zt.memoizedState=xe;var Ne=Zt.queue={last:null,dispatch:null},ze=Ne.dispatch=Vc.bind(null,wi,Ne);return[Zt.memoizedState,ze]}}function $c(v,l){wi=zs(),Zt=Si();var d=l===void 0?null:l;if(Zt!==null){var m=Zt.memoizedState;if(m!==null&&d!==null){var S=m[1];if(Bc(d,S))return m[0]}}Vr=!0;var _=v();return Vr=!1,Zt.memoizedState=[_,d],_}function $l(v){wi=zs(),Zt=Si();var l=Zt.memoizedState;if(l===null){var d={current:v};return Object.seal(d),Zt.memoizedState=d,d}else return l}function Gf(v,l){Ki="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Vc(v,l,d){if(So>=Bu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===wi){tl=!0;var m={action:d,next:null};xi===null&&(xi=new Map);var S=xi.get(l);if(S===void 0)xi.set(l,m);else{for(var _=S;_.next!==null;)_=_.next;_.next=m}}}function fr(v,l){return $c(function(){return v},l)}function Yu(v,l,d){return zs(),l(v._source)}function Hc(v,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Ti(v){return zs(),v}function Vl(){throw new Error("startTransition cannot be called during server rendering.")}function Ta(){return zs(),[!1,Vl]}function gs(){var v=Sa,l=Ho(v.treeContext),d=qs;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var m=ni++;return jn(d,l,m)}function nl(){}var rr={readContext:Uu,useContext:Wu,useMemo:$c,useReducer:zu,useRef:$l,useState:ps,useInsertionEffect:nl,useLayoutEffect:Gf,useCallback:fr,useImperativeHandle:nl,useEffect:nl,useDebugValue:nl,useDeferredValue:Ti,useTransition:Ta,useId:gs,useMutableSource:Yu,useSyncExternalStore:Hc},qs=null;function Hl(v){qs=v}function Ca(v){try{var l="",d=v;do{switch(d.tag){case 0:l+=Xi(d.type,null,null);break;case 1:l+=ma(d.type,null,null);break;case 2:l+=Ic(d.type,null,null);break}d=d.parent}while(d);return l}catch(m){return`
134
134
  Error generating stack: `+m.message+`
135
135
  `+m.stack}}var Ul=n.ReactCurrentDispatcher,Ea=n.ReactDebugCurrentFrame,Wl=0,To=1,zl=2,Xs=3,Uc=4,rl=0,ka=1,Da=2,Gu=12800;function Wc(v){return console.error(v),null}function Ks(){}function Yl(v,l,d,m,S,_,B,Y,re){var xe=[],Ne=new Set,ze={destination:null,responseState:l,progressiveChunkSize:m===void 0?Gu:m,status:rl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ne,pingedTasks:xe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?Wc:S,onAllReady:_===void 0?Ks:_,onShellReady:B===void 0?Ks:B,onShellError:Y===void 0?Ks:Y,onFatalError:re===void 0?Ks:re},nt=il(ze,0,null,d,!1,!1);nt.parentFlushed=!0;var xt=Wo(ze,v,null,nt,Ne,Gn,Ll,Uf);return xe.push(xt),ze}function Uo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return ec(v)})}function Gl(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,d,m,S,_,B,Y){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Uo(v,re)},blockedBoundary:d,blockedSegment:m,abortSet:S,legacyContext:_,context:B,treeContext:Y};return re.componentStack=null,S.add(re),re}function il(v,l,d,m,S,_){return{status:Wl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:m,boundary:d,lastPushedText:S,textEmbedded:_}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ca(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function ol(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ms(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function Qi(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Pa=null;function ql(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var m=Pa||Ji();Pa=null,v.errorMessage=d,v.errorComponentStack=m}}function sl(v,l){var d=v.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function Oa(v,l){var d=v.onShellError;d(l);var m=v.onFatalError;m(l),v.destination!==null?(v.status=Da,U(v.destination,l)):(v.status=ka,v.fatalError=l)}function zc(v,l,d){Co(l,"Suspense");var m=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,B=d.children,Y=new Set,re=Gl(v,Y),xe=S.chunks.length,Ne=il(v,xe,re,S.formatContext,!1,!1);S.children.push(Ne),S.lastPushedText=!1;var ze=il(v,0,null,S.formatContext,!1,!1);ze.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=ze;try{if(Ci(v,l,B),_n(ze.chunks,v.responseState,ze.lastPushedText,ze.textEmbedded),ze.status=To,bs(re,ze),re.pendingTasks===0){Qi(l);return}}catch(xt){ze.status=Uc,re.forceClientRender=!0,re.errorDigest=sl(v,xt),ql(re,xt)}finally{l.blockedBoundary=m,l.blockedSegment=S}var nt=Wo(v,_,m,Ne,Y,l.legacyContext,l.context,l.treeContext);nt.componentStack=l.componentStack,v.pingedTasks.push(nt),Qi(l)}function qu(v,l,d,m){Co(l,d);var S=l.blockedSegment,_=co(S.chunks,d,m,v.responseState,S.formatContext);S.lastPushedText=!1;var B=S.formatContext;S.formatContext=gi(B,d,m),Ci(v,l,_),S.formatContext=B,Mo(S.chunks,d),S.lastPushedText=!1,Qi(l)}function Xu(v){return v.prototype&&v.prototype.isReactComponent}function Zs(v,l,d,m,S){var _={};Vu(l,_);var B=d(m,S);return Ys(d,m,B,S)}function Ku(v,l,d,m,S){var _=d.render();d.props!==S&&(Kl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(m)||"a component"),Kl=!0);{var B=m.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Iu(d,m,Y,B);l.legacyContext=re,dr(v,l,_),l.legacyContext=Y;return}}dr(v,l,_)}function Xl(v,l,d,m){ms(l,d);var S=ls(d,l.legacyContext),_=xo(d,m,S);el(_,d,m,S),Ku(v,l,_,d,m),Qi(l)}var Bt={},al={},Zu={},Js={},Kl=!1,Yc={},Gc=!1,ri=!1,qc=!1;function Zl(v,l,d,m){var S;if(S=ls(d,l.legacyContext),ol(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=pn(d)||"Unknown";Bt[_]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),Bt[_]=!0)}var B=Zs(v,l,d,m,S),Y=Hr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=pn(d)||"Unknown";al[re]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),al[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var xe=pn(d)||"Unknown";al[xe]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",xe,xe,xe),al[xe]=!0)}el(B,d,m,S),Ku(v,l,B,d,m)}else if(Ju(d),Y){var Ne=l.treeContext,ze=1,nt=0;l.treeContext=Nu(Ne,ze,nt);try{dr(v,l,B)}finally{l.treeContext=Ne}}else dr(v,l,B);Qi(l)}function Ju(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Yc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Yc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Js[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Js[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var m=pn(v)||"Unknown";Zu[m]||(i("%s: Function components do not support contextType.",m),Zu[m]=!0)}}}function Qu(v,l){if(v&&v.defaultProps){var d=J({},l),m=v.defaultProps;for(var S in m)d[S]===void 0&&(d[S]=m[S]);return d}return l}function Xc(v,l,d,m,S){ol(l,d.render);var _=Zs(v,l,d.render,m,S),B=Hr();if(B){var Y=l.treeContext,re=1,xe=0;l.treeContext=Nu(Y,re,xe);try{dr(v,l,_)}finally{l.treeContext=Y}}else dr(v,l,_);Qi(l)}function Ur(v,l,d,m,S){var _=d.type,B=Qu(_,m);Qs(v,l,_,B,S)}function vs(v,l,d,m){d._context===void 0?d!==d.Consumer&&(qc||(qc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=m.children;typeof S!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=xa(d),B=S(_);dr(v,l,B)}function Wr(v,l,d,m){var S=d._context,_=m.value,B=m.children,Y;Y=l.context,l.context=Mu(S,_),dr(v,l,B),l.context=Bf(S),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(v,l,d,m,S){Co(l,"Lazy");var _=d._payload,B=d._init,Y=B(_),re=Qu(Y,m);Qs(v,l,Y,re,S),Qi(l)}function Qs(v,l,d,m,S){if(typeof d=="function")if(Xu(d)){Xl(v,l,d,m);return}else{Zl(v,l,d,m);return}if(typeof d=="string"){qu(v,l,d,m);return}switch(d){case Yn:case Vt:case Z:case ce:case De:{dr(v,l,m.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,m.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{zc(v,l,m);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Fe:{Xc(v,l,d,m,S);return}case rt:{Ur(v,l,d,m,S);return}case ue:{Wr(v,l,d,m);return}case Ie:{vs(v,l,d,m);return}case It:{Kc(v,l,d,m);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function Zc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(Gc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Gc=!0),v.entries===l&&(ri||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ri=!0)}function dr(v,l,d){try{return Jc(v,l,d)}catch(m){throw typeof m=="object"&&m!==null&&typeof m.then=="function"||(Pa=Pa!==null?Pa:Ji()),m}}function Jc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case de:{var m=d,S=m.type,_=m.props,B=m.ref;Qs(v,l,S,_,B);return}case Ce:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var Y=d,re=Y._payload,xe=Y._init,Ne;try{Ne=xe(re)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,Ne);return}}if(er(d)){Jl(v,l,d);return}var ze=Br(d);if(ze){Zc(d,ze);var nt=ze.call(d);if(nt){var xt=nt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=nt.next();while(!xt.done);Jl(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,d,v.responseState,Eo.lastPushedText);return}if(typeof d=="number"){var ws=l.blockedSegment;ws.lastPushedText=On(l.blockedSegment.chunks,""+d,v.responseState,ws.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Jl(v,l,d){for(var m=d.length,S=0;S<m;S++){var _=l.treeContext;l.treeContext=Nu(_,m,S);try{Ci(v,l,d[S])}finally{l.treeContext=_}}}function Ql(v,l,d){var m=l.blockedSegment,S=m.chunks.length,_=il(v,S,null,m.formatContext,m.lastPushedText,!0);m.children.push(_),m.lastPushedText=!1;var B=Wo(v,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ci(v,l,d){var m=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(Y){if(Hu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){Ql(v,l,Y),l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,fs(_),l.componentStack=B;return}else throw l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,fs(_),l.componentStack=B,Y}}function Qc(v,l,d,m){var S=sl(v,m);if(l===null?Oa(v,m):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,ql(l,m),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function ys(v){var l=this,d=v.blockedBoundary,m=v.blockedSegment;m.status=Xs,ea(l,d,m)}function eu(v,l,d){var m=v.blockedBoundary,S=v.blockedSegment;if(S.status=Xs,m===null)l.allPendingTasks--,l.status!==Da&&(l.status=Da,l.destination!==null&&A(l.destination));else{if(m.pendingTasks--,!m.forceClientRender){m.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;m.errorDigest=l.onError(_);{var B="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=B+_.message:_=B+String(_);var Y=Zi;Zi=v;try{ql(m,_)}finally{Zi=Y}}m.parentFlushed&&l.clientRenderedBoundaries.push(m)}if(m.fallbackAbortableTasks.forEach(function(xe){return eu(xe,l,d)}),m.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}function bs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===To&&bs(v,d)}else{var m=v.completedSegments;m.push(l)}}function ea(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Ks;var m=v.onShellReady;m()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===To&&bs(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ys,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===To){bs(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function qf(v,l){var d=l.blockedSegment;if(d.status===Wl){fs(l.context);var m=null;m=Zi,Zi=l;try{dr(v,l,l.node),_n(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=To,ea(v,l.blockedBoundary,d)}catch(_){if(Hu(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=Uc,Qc(v,l.blockedBoundary,d,_)}finally{Zi=m}}}function ec(v){if(v.status!==Da){var l=Lc(),d=Ul.current;Ul.current=rr;var m;m=Ea.getCurrentStack,Ea.getCurrentStack=Ji;var S=qs;Hl(v.responseState);try{var _=v.pingedTasks,B;for(B=0;B<_.length;B++){var Y=_[B];qf(v,Y)}_.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(re){sl(v,re),Oa(v,re)}finally{Hl(S),Ul.current=d,Ea.getCurrentStack=m,d===rr&&fs(l)}}}function ll(v,l,d){switch(d.parentFlushed=!0,d.status){case Wl:{var m=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,m)}case To:{d.status=zl;for(var S=!0,_=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var xe=Y[re];B<xe.index;B++)g(l,_[B]);S=ul(v,l,xe)}for(;B<_.length-1;B++)g(l,_[B]);return B<_.length&&(S=T(l,_[B])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ul(v,l,d){var m=d.boundary;if(m===null)return ll(v,l,d);if(m.parentFlushed=!0,m.forceClientRender)return $e(l,v.responseState,m.errorDigest,m.errorMessage,m.errorComponentStack),ll(v,l,d),Et(l,v.responseState);if(m.pendingTasks>0){m.rootSegmentID=v.nextSegmentId++,m.completedSegments.length>0&&v.partialBoundaries.push(m);var S=m.id=nn(v.responseState);return Te(l,v.responseState,S),ll(v,l,d),Tt(l,v.responseState)}else{if(m.byteSize>v.progressiveChunkSize)return m.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(m),Te(l,v.responseState,m.id),ll(v,l,d),Tt(l,v.responseState);Ae(l,v.responseState);var _=m.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=_[0];return ul(v,l,B),it(l,v.responseState)}}function tc(v,l,d){return Rl(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function tu(v,l,d){return St(l,v.responseState,d.formatContext,d.id),ul(v,l,d),vt(l,d.formatContext)}function nc(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];zr(v,l,d,_)}return m.length=0,mo(l,v.responseState,d.id,d.rootSegmentID)}function ef(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];if(!zr(v,l,d,_))return S++,m.splice(0,S),!1}return m.splice(0,S),!0}function zr(v,l,d,m){if(m.status===zl)return!0;var S=m.id;if(S===-1){var _=m.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return tu(v,l,m)}else return tu(v,l,m),za(l,v.responseState,S)}function Ii(v,l){y();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(ul(v,l,d),v.completedRootSegment=null,bi(l,v.responseState));var m=v.clientRenderedBoundaries,S;for(S=0;S<m.length;S++){var _=m[S];tc(v,l,_)}m.splice(0,S);var B=v.completedBoundaries;for(S=0;S<B.length;S++){var Y=B[S];nc(v,l,Y)}B.splice(0,S),E(l),y(l);var re=v.partialBoundaries;for(S=0;S<re.length;S++){var xe=re[S];if(!ef(v,l,xe)){v.destination=null,S++,re.splice(0,S);return}}re.splice(0,S);var Ne=v.completedBoundaries;for(S=0;S<Ne.length;S++){var ze=Ne[S];nc(v,l,ze)}Ne.splice(0,S)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function tf(v){a(function(){return ec(v)})}function Xf(v,l){if(v.status===ka){v.status=Da,U(l,v.fatalError);return}if(v.status!==Da&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(d){sl(v,d),Oa(v,d)}}}function cl(v,l){try{var d=v.abortableTasks;d.forEach(function(m){return eu(m,v,l)}),d.clear(),v.destination!==null&&Ii(v,v.destination)}catch(m){sl(v,m),Oa(v,m)}}function _a(v,l){return new Promise(function(d,m){var S,_,B=new Promise(function(nt,xt){_=nt,S=xt});function Y(){var nt=new ReadableStream({type:"bytes",pull:function(xt){Xf(xe,xt)},cancel:function(xt){cl(xe)}},{highWaterMark:0});nt.allReady=B,d(nt)}function re(nt){B.catch(function(){}),m(nt)}var xe=Yl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,_,Y,re,S);if(l&&l.signal){var Ne=l.signal,ze=function(){cl(xe,Ne.reason),Ne.removeEventListener("abort",ze)};Ne.addEventListener("abort",ze)}tf(xe)})}Lh.renderToReadableStream=_a,Lh.version=e}()),Lh}var kc,Dv;process.env.NODE_ENV==="production"?(kc=V4(),Dv=H4()):(kc=U4(),Dv=W4());kc.version;var z4=kc.renderToString;kc.renderToStaticMarkup;kc.renderToNodeStream;kc.renderToStaticNodeStream;Dv.renderToReadableStream;var Y4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VD(t,e){return t(e={exports:{}},e.exports),e.exports}var G4=VD(function(t){(function(e){var n=function(j,R,U){if(!f(R)||y(R)||g(R)||T(R)||c(R))return R;var H,ne=0,q=0;if(p(R))for(H=[],q=R.length;ne<q;ne++)H.push(n(j,R[ne],U));else for(var ie in H={},R)Object.prototype.hasOwnProperty.call(R,ie)&&(H[j(ie,U)]=n(j,R[ie],U));return H},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(R,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var R=r(j);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(j,R){return function(U,H){var ne=(H=H||{}).separator||"_",q=H.split||/(?=[A-Z])/;return U.split(q).join(ne)}(j,R).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},f=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},y=function(j){return a.call(j)=="[object Date]"},g=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,R){var U=R&&"process"in R?R.process:R;return typeof U!="function"?j:function(H,ne){return U(H,j,ne)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,R){return n(A(r,R),j)},decamelizeKeys:function(j,R){return n(A(o,R),j,R)},pascalizeKeys:function(j,R){return n(A(i,R),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(Y4)}).decamelize,q4=function(t){if(Array.isArray(t))return t},X4=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},k1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},K4=function(t,e){if(t){if(typeof t=="string")return k1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k1(t,e):void 0}},Z4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},J4=function(t,e){return q4(t)||X4(t,e)||K4(t,e)||Z4()},HD=VD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),Q4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},UD=function(t,e){if(t==null)return{};var n,r,i=Q4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},e6=X.createContext(null);function WD(t){var e=t.children,n=e===void 0?"":e,r=UD(t,["children"]);return typeof n!="string"&&(n=z4(n)),X.createElement("template",HD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function zD(t){var e=t.root,n=t.children;return jv.createPortal(n===void 0?null:n,e)}function t6(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,A=n.children,I=UD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),U=J4(R,2),H=U[0],ne=U[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var ie=j.current.shadowRoot;return void ne(ie)}var x=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(x.adoptedStyleSheets=g),ne(x)}catch(le){(function(ae){var Ve=ae.error,tt=ae.styleSheets,et=ae.root;switch(Ve.name){case"NotSupportedError":tt.length>0&&(et.adoptedStyleSheets=tt);break;default:throw Ve}})({error:le,styleSheets:g,root:H})}},[r,j,g]),X.createElement(X.Fragment,null,X.createElement(t.tag,HD({key:q,ref:j},I),(H||E)&&X.createElement(e6.Provider,{value:H},E?X.createElement(WD,{shadowroot:c,shadowrootmode:c},t.render({root:H,ssr:E,children:A})):X.createElement(zD,{root:H},t.render({root:H,ssr:E,children:A})))))});return e.propTypes={mode:_s.oneOf(["open","closed"]),delegatesFocus:_s.bool,styleSheets:_s.arrayOf(_s.instanceOf(globalThis.CSSStyleSheet)),ssr:_s.bool,children:_s.node},e}WD.propTypes={children:_s.oneOfType([_s.string,_s.node])},zD.propTypes={root:_s.object.isRequired,children:_s.node};var vm=new Map;function n6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=G4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return vm.has(a)||vm.set(a,t6({tag:o,render:n})),vm.get(a)}})}var YD=n6();const r6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",i6=".favorite-bar{z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var D1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(D1||(D1={}));const o6=Object.freeze({x:0,y:0});var Tf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Tf||(Tf={}));var P1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(P1||(P1={}));var Rs;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Rs||(Rs={}));Rs.Space,Rs.Enter,Rs.Esc,Rs.Space,Rs.Enter,Rs.Tab;var O1;(function(t){t[t.RightClick=2]="RightClick"})(O1||(O1={}));var _1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(_1||(_1={}));var R1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(R1||(R1={}));Tf.Backward+"",Tf.Forward+"",Tf.Backward+"",Tf.Forward+"";var Pv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Pv||(Pv={}));var Ov;(function(t){t.Optimized="optimized"})(Ov||(Ov={}));Pv.WhileDragging,Ov.Optimized;({...o6});var A1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(A1||(A1={}));function s6(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Rs.Down,Rs.Right,Rs.Up,Rs.Left;function a6(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const ym="MENU_ITEM";function l6(t){const e=Tp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const f=X.useRef(null),[p,y]=X.useState(window.location.href);X.useEffect(()=>{y(window.location.href)},[e]);const g=q=>`${q}`;function T(q,ie){for(const x of q){if(x.id===ie)return x;if(x.children){const le=T(x.children,ie);if(le)return le}}return null}function E(q,ie){const x=T(n,q);x?(x.isFavorite=ie,a6(x),ib(q,ie)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const ie=q.detail.favoriteMenus||[];r(ie)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=ie=>{j(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const R=(q,ie)=>{n[q];const x=s6(n,q,ie);r(x),c(!0);const le={menuItemIds:x.map(ae=>ae.id)};As.post("global-menu-config/api/v1/menu-items/user/order-favorites",le,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:x.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const U=Object.entries(t.brandColors||{}).reduce((q,[ie,x])=>(x&&(q[`--${ie}`]=x),q),{}),H=({item:q,index:ie})=>{const x=X.useRef(null),[{isDragging:le},ae]=JE({type:ym,item:()=>({id:q.id,index:ie}),collect:Le=>({isDragging:Le.isDragging()})}),[{isOver:Ve,isOverCurrent:tt},et]=cp(()=>({accept:ym,collect:Le=>({isOver:Le.isOver(),isOverCurrent:Le.isOver({shallow:!0})}),drop:Le=>{Le.index!==ie&&(Le.index<ie?(R(Le.index,ie-1),Le.index=ie-1):(R(Le.index,ie),Le.index=ie))}}),[]);let Pe="hover-off";return(tt||Ve)&&(Pe="hover-on"),ae(et(x)),ke.jsx("div",{ref:x,style:{opacity:le?.7:1,boxShadow:le?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...U},className:`item ${Pe}`,children:ke.jsx($D,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a})})},ne=()=>{const q=X.useRef(null),[{isOver:ie,canDrop:x},le]=cp(()=>({accept:ym,drop:ae=>{R(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return le(q),ke.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&x?"2px solid var(--primary300)":"transparent",...U}})};return console.log("isLoading fav",I),ke.jsx(ke.Fragment,{children:I?ke.jsx(ke.Fragment,{}):n.length?ke.jsx("div",{className:g("favorite-menu"),children:ke.jsx(Yv,{ref:f,className:g("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:ke.jsx(YE,{backend:rC,children:ke.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,ie)=>ke.jsx(H,{item:q,index:ie},q.id)),ke.jsx(ne,{})]})})})}):""})}function u6(t=32){const[e,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function c6(t){const{isFavoriteBarVisible:e}=u6();return ke.jsxs(ke.Fragment,{children:[ke.jsx("style",{children:i6}),ke.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:ke.jsx(YD.div,{children:ke.jsx(Uv,{styles:[WT,$4,r6],children:ke.jsx(l6,{...t})})})})]})}function ib(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function GD({...t}){var Se,je,Qe;const e=t.item,n=t.level||0,r=!!((Se=t.item.children)!=null&&Se.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",g=t.isInternalApp?"isInternalApp":"",T=(Ye,Ke=a)=>`${Ye} ${Ke} ${c} ${f} ${p} ${y} ${g}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const R=X.useRef(),U=X.useRef();U!=null&&U.current&&((je=U==null?void 0:U.current)==null?void 0:je.scrollWidth)>((Qe=U==null?void 0:U.current)==null?void 0:Qe.clientWidth);const H=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],ie=ne.pathname.split("/")[1],x=t.item.redirectUrl||t.ssr||!H.includes("local")&&H!==ne.origin||ie!==q,le=r?"div":!t.isInternalApp&&x?"a":Tp.Link,ae=e.redirectUrl||e.path||"#",Ve=n+1,tt=r&&o&&E,et=o||n===0?void 0:`${n+.25}rem`,Pe=()=>{A(!0)},Le=()=>{A(!1)},fe="/global-menu-config/api/v1/menu-items/user/set-favorite",me=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,jH(e.id,t.params.isOpen,t.params.onToggle);const Be=me||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ze=Object.entries(t.brandColors||{}).reduce((Ye,[Ke,qe])=>(qe&&(Ye[`--${Ke}`]=qe),Ye),{}),ve=H!==ne.origin||t.item.redirectUrl?"_blank":"_self";return ke.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ze},onMouseOver:Pe,onMouseOut:Le,onDragStart:Ye=>{o&&n>1&&Ye.preventDefault()},children:[ke.jsx(sa.Tooltip,{placement:"top",title:Be,disableInteractive:!0,children:ke.jsxs(le,{target:ve,to:ae,href:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:et},onClick:Ye=>{le==="a"&&ve==="_blank"||(!r&&e.path&&localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),!o&&t.toggleExpand(Ye))},children:[ke.jsx(f6,{cls:T,item:e}),ke.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),ke.jsx(d6,{tooltipPosition:Be?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:Ye=>{const Ke={menuConfigId:e.id,isFavorite:Ye},qe=t.baseUrl+fe;As.post(qe,Ke).then(ot=>{var ct;j(Ye),qv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,Ye),ib(t.item.id,Ye)}).catch(ot=>{var ct,pt;zd(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&ke.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:ke.jsx(a4,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),tt&&ke.jsx(l4,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:Ye})=>{var Ke;return ke.jsx(AD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Ve}`),style:nb({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!Ve),children:(Ke=e.children)==null?void 0:Ke.map(qe=>X.createElement(GD,{...t,key:qe.id,item:qe,level:Ve}))})}})]})}function f6({item:t,cls:e}){return ke.jsx("div",{className:e("menu-item__icon"),children:ke.jsx(BD,{item:t})})}function d6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning};return ke.jsxs(ke.Fragment,{children:[t.isHovered&&!t.isFavorite&&ke.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:ke.jsx("div",{children:ke.jsx(ID,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&ke.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:ke.jsx("div",{children:ke.jsx(MD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function h6(){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:ke.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function p6(){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:ke.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function g6(t){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:ke.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const m6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",v6=t=>{const e=t.isCollapsed?0:t.depth*16;return ke.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},y6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",b6=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function qD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const qh=localStorage.getItem("isCollapsed");qD(qh);function w6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function x6(t){const e=Tp.useLocation(),[n,r]=X.useState([]),i=n.map(Pe=>Pe.data),[o,a]=X.useState(!1),[c,f]=X.useState([]),[p,y]=X.useState(qh===null?!0:qh==="true"),[g,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var Pe;(Pe=t.handleCallback)==null||Pe.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href)},[e]);const A=T6(i,g),[I,j]=b6({initOpenIds:t.initOpenIds}),R=()=>{var Pe,Le;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),qD(p),p)I&&((Pe=E.current)==null||Pe.open(I));else{const fe=n.filter(me=>me.parent===0).map(me=>me.id);console.log("closeIds:",fe),(Le=E.current)==null||Le.close(fe)}},[U,H]=X.useState(!1),ne=p?"collapsed":"expanded",q=Pe=>`${Pe} ${ne}`,ie=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var Le,fe;try{const me=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Oe=t.baseUrl+me,{data:Be}=await As.get(Oe);let Ze=Be.map(Se=>({...Se,parentKey:Se.parentKey||0}));Ze=KD(Ze),t.replacePath&&(Ze=XD(Ze,t.replacePath));const ve=Ze.map(Se=>({id:Se.id,parent:Se.parentKey,text:Se.name,data:Se}));r(ve)}catch(me){console.error("Global menu",me),zd(((fe=(Le=me.response)==null?void 0:Le.data)==null?void 0:fe.errorMessage)||me.message||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[x,le]=X.useState(!1),ae=async()=>{le(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const Pe=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Pe.ok)throw new Error("Failed to fetch favorite items");const Le=await Pe.json();f(Le)}catch(Pe){console.error("Error fetching favorite items:",Pe)}finally{le(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const Pe=Le=>{f(Le.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",Pe),()=>{window.removeEventListener("favoriteOrderUpdated",Pe)}},[]),console.log("favoriteMenuId",c),X.useEffect(()=>{let Pe=[];c.forEach(me=>{const Oe=i.find(Be=>Be.id===me&&Be.isFavorite===!0);Oe&&(Pe=[...Pe,Oe])}),console.log(Pe);function Le(me){return i.every(Oe=>Oe.parentKey!==me.id)?me:{...me,children:i.filter(Oe=>Oe.parentKey===me.id).map(Oe=>Le(Oe))}}const fe=Pe.map(me=>Le(me));w6(fe)},[i]);function Ve(Pe){const Le=Pe.detail.menuItem;r(fe=>fe.map(me=>me.id!==Le.id?me:{...me,data:Le})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Ve),()=>{window.removeEventListener("updateFavoriteMenu",Ve)}),[]),X.useLayoutEffect(()=>{var me;const Pe=localStorage.getItem("scrollPos");Pe&&ie.current&&setTimeout(()=>{const Oe=ie.current.getScrollElement();Oe.scrollTop=parseInt(Pe)},0);const Le=()=>{if(ie.current){const Oe=ie.current.getScrollElement();localStorage.setItem("scrollPos",Oe.scrollTop.toString())}},fe=(me=ie.current)==null?void 0:me.getScrollElement();return fe==null||fe.addEventListener("scroll",Le),()=>{fe==null||fe.removeEventListener("scroll",Le)}},[i]);function tt(Pe){a(!0);const Le=[...n];r(Pe);const fe=Pe.map((me,Oe)=>({menuItemId:me.id,order:Oe}));As.post("/global-menu-config/api/v1/menu-items/user",fe,{baseURL:t.baseUrl}).then(()=>{}).catch(me=>{console.error(me),r(Le)}).finally(()=>{a(!1)})}const et=X.useMemo(()=>qh==="false"?I:[],[]);return console.log("nodesglobal menu",n),ke.jsxs("div",{className:q("side-bar"),children:[ke.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:ke.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?ke.jsx(p6,{}):ke.jsx(h6,{})})}),ke.jsx(Yv,{ref:ie,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:ke.jsx(YE,{backend:lH,options:IH(),children:ke.jsx(KH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:Pe=>{var Le;return((Le=Pe.data)==null?void 0:Le.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:tt,render:(Pe,Le)=>{function fe(Ze){return n.every(ve=>ve.parent!==Ze.id)?Ze:{...Ze,children:n.filter(ve=>ve.parent===Ze.id).map(ve=>fe(ve.data))}}const me=fe(Pe.data),Oe=Ze=>A.some(ve=>ve.id===Ze);function Be(Ze,ve){r(Se=>Se.map(je=>je.id===Ze?{...je,data:{...je.data,isFavorite:ve}}:je)),ae()}return ke.jsx(GD,{isInternalApp:t.isInternalApp,isActive:Oe,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:Pe,params:Le,nodes:n,item:me,expanded:()=>!1,toggleExpand:Ze=>{var ve;if(Ze.stopPropagation(),Le.isOpen)console.log("open toggleExpand"),Le.onToggle();else{console.log("close toggleExpand");const Se=n.filter(je=>je.parent===Pe.parent&&je.id!==Pe.id).map(je=>je.id);console.log(" closeIds:",Se),(ve=E.current)==null||ve.open(Pe.id),setTimeout(()=>{var je;(je=E.current)==null||je.close(Se)},0)}},level:Le.depth,onSetFavoriteSuccess:Be})},placeholderRender:(Pe,{depth:Le})=>{var fe;return ke.jsx(v6,{node:Pe,depth:Le,color:(fe=t.brandColors)==null?void 0:fe.primary300,isCollapsed:p})},canDrag:()=>!o,canDrop:(Pe,{dragSource:Le,dropTargetId:fe})=>(Le==null?void 0:Le.parent)===fe,onDragStart:Pe=>{console.log("onDragStart",Pe)},onChangeOpen:Pe=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Pe),j(Pe))},initialOpen:et})})}),ke.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[ke.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>H(!0),children:[ke.jsx(g6,{className:q("side-bar__icon-logout")}),ke.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),ke.jsx(Z1,{isOpen:U,onClose:()=>H(!1),onConfirm:()=>t.logout?t.logout():hT(t.baseUrl)})]})]})}const I1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function S6(t,e){const r=t.replace(window.origin,""),i=new URL(r,window.location.origin),o=new URL(e,window.origin),a=localStorage.getItem("latestClickMenuPath");return r&&I1[r]&&I1[r].some(c=>e.includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function T6(t,e){const n=t.map(a=>({item:a,priority:a.path?S6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function XD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=XD(n.children,e)):n.path=e(n.path),n})}function KD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=KD(n.children)),n))}function C6(t){return ke.jsx(YD.div,{children:ke.jsx(Uv,{styles:[WT,m6,y6],style:{position:"sticky",zIndex:1300},children:ke.jsx(x6,{...t})})})}const E6={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var wp={exports:{}};/**
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},J4=function(t,e){return q4(t)||X4(t,e)||K4(t,e)||Z4()},HD=VD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),Q4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},UD=function(t,e){if(t==null)return{};var n,r,i=Q4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},e6=X.createContext(null);function WD(t){var e=t.children,n=e===void 0?"":e,r=UD(t,["children"]);return typeof n!="string"&&(n=z4(n)),X.createElement("template",HD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function zD(t){var e=t.root,n=t.children;return jv.createPortal(n===void 0?null:n,e)}function t6(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,A=n.children,I=UD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),U=J4(R,2),H=U[0],ne=U[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var ie=j.current.shadowRoot;return void ne(ie)}var x=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(x.adoptedStyleSheets=g),ne(x)}catch(le){(function(ae){var Ve=ae.error,tt=ae.styleSheets,et=ae.root;switch(Ve.name){case"NotSupportedError":tt.length>0&&(et.adoptedStyleSheets=tt);break;default:throw Ve}})({error:le,styleSheets:g,root:H})}},[r,j,g]),X.createElement(X.Fragment,null,X.createElement(t.tag,HD({key:q,ref:j},I),(H||E)&&X.createElement(e6.Provider,{value:H},E?X.createElement(WD,{shadowroot:c,shadowrootmode:c},t.render({root:H,ssr:E,children:A})):X.createElement(zD,{root:H},t.render({root:H,ssr:E,children:A})))))});return e.propTypes={mode:_s.oneOf(["open","closed"]),delegatesFocus:_s.bool,styleSheets:_s.arrayOf(_s.instanceOf(globalThis.CSSStyleSheet)),ssr:_s.bool,children:_s.node},e}WD.propTypes={children:_s.oneOfType([_s.string,_s.node])},zD.propTypes={root:_s.object.isRequired,children:_s.node};var vm=new Map;function n6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=G4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return vm.has(a)||vm.set(a,t6({tag:o,render:n})),vm.get(a)}})}var YD=n6();const r6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",i6=".favorite-bar{position:sticky;top:64px;z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var D1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(D1||(D1={}));const o6=Object.freeze({x:0,y:0});var Tf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Tf||(Tf={}));var P1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(P1||(P1={}));var Rs;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Rs||(Rs={}));Rs.Space,Rs.Enter,Rs.Esc,Rs.Space,Rs.Enter,Rs.Tab;var O1;(function(t){t[t.RightClick=2]="RightClick"})(O1||(O1={}));var _1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(_1||(_1={}));var R1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(R1||(R1={}));Tf.Backward+"",Tf.Forward+"",Tf.Backward+"",Tf.Forward+"";var Pv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Pv||(Pv={}));var Ov;(function(t){t.Optimized="optimized"})(Ov||(Ov={}));Pv.WhileDragging,Ov.Optimized;({...o6});var A1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(A1||(A1={}));function s6(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Rs.Down,Rs.Right,Rs.Up,Rs.Left;function a6(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const ym="MENU_ITEM";function l6(t){const e=Tp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const f=X.useRef(null),[p,y]=X.useState(window.location.href);X.useEffect(()=>{y(window.location.href)},[e]);const g=q=>`${q}`;function T(q,ie){for(const x of q){if(x.id===ie)return x;if(x.children){const le=T(x.children,ie);if(le)return le}}return null}function E(q,ie){const x=T(n,q);x?(x.isFavorite=ie,a6(x),ib(q,ie)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const ie=q.detail.favoriteMenus||[];r(ie)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=ie=>{j(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const R=(q,ie)=>{n[q];const x=s6(n,q,ie);r(x),c(!0);const le={menuItemIds:x.map(ae=>ae.id)};As.post("global-menu-config/api/v1/menu-items/user/order-favorites",le,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:x.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const U=Object.entries(t.brandColors||{}).reduce((q,[ie,x])=>(x&&(q[`--${ie}`]=x),q),{}),H=({item:q,index:ie})=>{const x=X.useRef(null),[{isDragging:le},ae]=JE({type:ym,item:()=>({id:q.id,index:ie}),collect:Le=>({isDragging:Le.isDragging()})}),[{isOver:Ve,isOverCurrent:tt},et]=cp(()=>({accept:ym,collect:Le=>({isOver:Le.isOver(),isOverCurrent:Le.isOver({shallow:!0})}),drop:Le=>{Le.index!==ie&&(Le.index<ie?(R(Le.index,ie-1),Le.index=ie-1):(R(Le.index,ie),Le.index=ie))}}),[]);let Pe="hover-off";return(tt||Ve)&&(Pe="hover-on"),ae(et(x)),ke.jsx("div",{ref:x,style:{opacity:le?.7:1,boxShadow:le?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...U},className:`item ${Pe}`,children:ke.jsx($D,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a})})},ne=()=>{const q=X.useRef(null),[{isOver:ie,canDrop:x},le]=cp(()=>({accept:ym,drop:ae=>{R(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return le(q),ke.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&x?"2px solid var(--primary300)":"transparent",...U}})};return console.log("isLoading fav",I),ke.jsx(ke.Fragment,{children:I?ke.jsx(ke.Fragment,{}):n.length?ke.jsx("div",{className:g("favorite-menu"),children:ke.jsx(Yv,{ref:f,className:g("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:ke.jsx(YE,{backend:rC,children:ke.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,ie)=>ke.jsx(H,{item:q,index:ie},q.id)),ke.jsx(ne,{})]})})})}):""})}function u6(t=32){const[e,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function c6(t){const{isFavoriteBarVisible:e}=u6();return ke.jsxs(ke.Fragment,{children:[ke.jsx("style",{children:i6}),ke.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:ke.jsx(YD.div,{children:ke.jsx(Uv,{styles:[WT,$4,r6],children:ke.jsx(l6,{...t})})})})]})}function ib(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function GD({...t}){var Se,je,Qe;const e=t.item,n=t.level||0,r=!!((Se=t.item.children)!=null&&Se.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",g=t.isInternalApp?"isInternalApp":"",T=(Ye,Ke=a)=>`${Ye} ${Ke} ${c} ${f} ${p} ${y} ${g}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const R=X.useRef(),U=X.useRef();U!=null&&U.current&&((je=U==null?void 0:U.current)==null?void 0:je.scrollWidth)>((Qe=U==null?void 0:U.current)==null?void 0:Qe.clientWidth);const H=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],ie=ne.pathname.split("/")[1],x=t.item.redirectUrl||t.ssr||!H.includes("local")&&H!==ne.origin||ie!==q,le=r?"div":!t.isInternalApp&&x?"a":Tp.Link,ae=e.redirectUrl||e.path||"#",Ve=n+1,tt=r&&o&&E,et=o||n===0?void 0:`${n+.25}rem`,Pe=()=>{A(!0)},Le=()=>{A(!1)},fe="/global-menu-config/api/v1/menu-items/user/set-favorite",me=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,jH(e.id,t.params.isOpen,t.params.onToggle);const Be=me||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ze=Object.entries(t.brandColors||{}).reduce((Ye,[Ke,qe])=>(qe&&(Ye[`--${Ke}`]=qe),Ye),{}),ve=H!==ne.origin||t.item.redirectUrl?"_blank":"_self";return ke.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ze},onMouseOver:Pe,onMouseOut:Le,onDragStart:Ye=>{o&&n>1&&Ye.preventDefault()},children:[ke.jsx(sa.Tooltip,{placement:"top",title:Be,disableInteractive:!0,children:ke.jsxs(le,{target:ve,to:ae,href:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:et},onClick:Ye=>{le==="a"&&ve==="_blank"||(!r&&e.path&&localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),!o&&t.toggleExpand(Ye))},children:[ke.jsx(f6,{cls:T,item:e}),ke.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),ke.jsx(d6,{tooltipPosition:Be?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:Ye=>{const Ke={menuConfigId:e.id,isFavorite:Ye},qe=t.baseUrl+fe;As.post(qe,Ke).then(ot=>{var ct;j(Ye),qv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,Ye),ib(t.item.id,Ye)}).catch(ot=>{var ct,pt;zd(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&ke.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:ke.jsx(a4,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),tt&&ke.jsx(l4,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:Ye})=>{var Ke;return ke.jsx(AD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Ve}`),style:nb({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!Ve),children:(Ke=e.children)==null?void 0:Ke.map(qe=>X.createElement(GD,{...t,key:qe.id,item:qe,level:Ve}))})}})]})}function f6({item:t,cls:e}){return ke.jsx("div",{className:e("menu-item__icon"),children:ke.jsx(BD,{item:t})})}function d6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning};return ke.jsxs(ke.Fragment,{children:[t.isHovered&&!t.isFavorite&&ke.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:ke.jsx("div",{children:ke.jsx(ID,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&ke.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:ke.jsx("div",{children:ke.jsx(MD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function h6(){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:ke.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function p6(){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:ke.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function g6(t){return ke.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:ke.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const m6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",v6=t=>{const e=t.isCollapsed?0:t.depth*16;return ke.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},y6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",b6=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function qD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const qh=localStorage.getItem("isCollapsed");qD(qh);function w6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function x6(t){const e=Tp.useLocation(),[n,r]=X.useState([]),i=n.map(Pe=>Pe.data),[o,a]=X.useState(!1),[c,f]=X.useState([]),[p,y]=X.useState(qh===null?!0:qh==="true"),[g,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var Pe;(Pe=t.handleCallback)==null||Pe.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href)},[e]);const A=T6(i,g),[I,j]=b6({initOpenIds:t.initOpenIds}),R=()=>{var Pe,Le;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),qD(p),p)I&&((Pe=E.current)==null||Pe.open(I));else{const fe=n.filter(me=>me.parent===0).map(me=>me.id);console.log("closeIds:",fe),(Le=E.current)==null||Le.close(fe)}},[U,H]=X.useState(!1),ne=p?"collapsed":"expanded",q=Pe=>`${Pe} ${ne}`,ie=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var Le,fe;try{const me=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Oe=t.baseUrl+me,{data:Be}=await As.get(Oe);let Ze=Be.map(Se=>({...Se,parentKey:Se.parentKey||0}));Ze=KD(Ze),t.replacePath&&(Ze=XD(Ze,t.replacePath));const ve=Ze.map(Se=>({id:Se.id,parent:Se.parentKey,text:Se.name,data:Se}));r(ve)}catch(me){console.error("Global menu",me),zd(((fe=(Le=me.response)==null?void 0:Le.data)==null?void 0:fe.errorMessage)||me.message||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[x,le]=X.useState(!1),ae=async()=>{le(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const Pe=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Pe.ok)throw new Error("Failed to fetch favorite items");const Le=await Pe.json();f(Le)}catch(Pe){console.error("Error fetching favorite items:",Pe)}finally{le(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const Pe=Le=>{f(Le.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",Pe),()=>{window.removeEventListener("favoriteOrderUpdated",Pe)}},[]),console.log("favoriteMenuId",c),X.useEffect(()=>{let Pe=[];c.forEach(me=>{const Oe=i.find(Be=>Be.id===me&&Be.isFavorite===!0);Oe&&(Pe=[...Pe,Oe])}),console.log(Pe);function Le(me){return i.every(Oe=>Oe.parentKey!==me.id)?me:{...me,children:i.filter(Oe=>Oe.parentKey===me.id).map(Oe=>Le(Oe))}}const fe=Pe.map(me=>Le(me));w6(fe)},[i]);function Ve(Pe){const Le=Pe.detail.menuItem;r(fe=>fe.map(me=>me.id!==Le.id?me:{...me,data:Le})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Ve),()=>{window.removeEventListener("updateFavoriteMenu",Ve)}),[]),X.useLayoutEffect(()=>{var me;const Pe=localStorage.getItem("scrollPos");Pe&&ie.current&&setTimeout(()=>{const Oe=ie.current.getScrollElement();Oe.scrollTop=parseInt(Pe)},0);const Le=()=>{if(ie.current){const Oe=ie.current.getScrollElement();localStorage.setItem("scrollPos",Oe.scrollTop.toString())}},fe=(me=ie.current)==null?void 0:me.getScrollElement();return fe==null||fe.addEventListener("scroll",Le),()=>{fe==null||fe.removeEventListener("scroll",Le)}},[i]);function tt(Pe){a(!0);const Le=[...n];r(Pe);const fe=Pe.map((me,Oe)=>({menuItemId:me.id,order:Oe}));As.post("/global-menu-config/api/v1/menu-items/user",fe,{baseURL:t.baseUrl}).then(()=>{}).catch(me=>{console.error(me),r(Le)}).finally(()=>{a(!1)})}const et=X.useMemo(()=>qh==="false"?I:[],[]);return console.log("nodesglobal menu",n),ke.jsxs("div",{className:q("side-bar"),children:[ke.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:ke.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?ke.jsx(p6,{}):ke.jsx(h6,{})})}),ke.jsx(Yv,{ref:ie,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:ke.jsx(YE,{backend:lH,options:IH(),children:ke.jsx(KH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:Pe=>{var Le;return((Le=Pe.data)==null?void 0:Le.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:tt,render:(Pe,Le)=>{function fe(Ze){return n.every(ve=>ve.parent!==Ze.id)?Ze:{...Ze,children:n.filter(ve=>ve.parent===Ze.id).map(ve=>fe(ve.data))}}const me=fe(Pe.data),Oe=Ze=>A.some(ve=>ve.id===Ze);function Be(Ze,ve){r(Se=>Se.map(je=>je.id===Ze?{...je,data:{...je.data,isFavorite:ve}}:je)),ae()}return ke.jsx(GD,{isInternalApp:t.isInternalApp,isActive:Oe,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:Pe,params:Le,nodes:n,item:me,expanded:()=>!1,toggleExpand:Ze=>{var ve;if(Ze.stopPropagation(),Le.isOpen)console.log("open toggleExpand"),Le.onToggle();else{console.log("close toggleExpand");const Se=n.filter(je=>je.parent===Pe.parent&&je.id!==Pe.id).map(je=>je.id);console.log(" closeIds:",Se),(ve=E.current)==null||ve.open(Pe.id),setTimeout(()=>{var je;(je=E.current)==null||je.close(Se)},0)}},level:Le.depth,onSetFavoriteSuccess:Be})},placeholderRender:(Pe,{depth:Le})=>{var fe;return ke.jsx(v6,{node:Pe,depth:Le,color:(fe=t.brandColors)==null?void 0:fe.primary300,isCollapsed:p})},canDrag:()=>!o,canDrop:(Pe,{dragSource:Le,dropTargetId:fe})=>(Le==null?void 0:Le.parent)===fe,onDragStart:Pe=>{console.log("onDragStart",Pe)},onChangeOpen:Pe=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Pe),j(Pe))},initialOpen:et})})}),ke.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[ke.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>H(!0),children:[ke.jsx(g6,{className:q("side-bar__icon-logout")}),ke.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),ke.jsx(Z1,{isOpen:U,onClose:()=>H(!1),onConfirm:()=>t.logout?t.logout():hT(t.baseUrl)})]})]})}const I1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function S6(t,e){const r=t.replace(window.origin,""),i=new URL(r,window.location.origin),o=new URL(e,window.origin),a=localStorage.getItem("latestClickMenuPath");return r&&I1[r]&&I1[r].some(c=>e.includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function T6(t,e){const n=t.map(a=>({item:a,priority:a.path?S6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function XD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=XD(n.children,e)):n.path=e(n.path),n})}function KD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=KD(n.children)),n))}function C6(t){return ke.jsx(YD.div,{children:ke.jsx(Uv,{styles:[WT,m6,y6],style:{position:"sticky",zIndex:1300},children:ke.jsx(x6,{...t})})})}const E6={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var wp={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-BH9gRN7i.cjs"),m=require("axios"),u=require("react"),i=require("react/jsx-runtime");require("@r2wc/react-to-web-component");const l=require("react-router-dom");require("@mui/material");const c=s=>{const[t,o]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(r=>o(r.data)).catch(r=>{console.error("Getting user permission error:",r)})},[s]),t},a=s=>(t,o)=>{const r=c(s);return o?t.every(n=>r==null?void 0:r.includes(n)):t.some(n=>r==null?void 0:r.includes(n))},h=({baseUrl:s,accessWith:t,requireAll:o,children:r})=>a(s)(t,o)?i.jsx(i.Fragment,{children:r}):null,P=({accessWith:s,requireAll:t,baseUrl:o,unAuthorizedPath:r,children:n})=>a(o)(s,t)?i.jsx(i.Fragment,{children:n}):i.jsx(l.Navigate,{to:r,replace:!0});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation$1;exports.HasPermission=h;exports.PermissionRoute=P;exports.getUseHasPermission=a;exports.useGetPermission=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-CCVnVHX2.cjs"),m=require("axios"),u=require("react"),i=require("react/jsx-runtime");require("@r2wc/react-to-web-component");const l=require("react-router-dom");require("@mui/material");const c=s=>{const[t,o]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(r=>o(r.data)).catch(r=>{console.error("Getting user permission error:",r)})},[s]),t},a=s=>(t,o)=>{const r=c(s);return o?t.every(n=>r==null?void 0:r.includes(n)):t.some(n=>r==null?void 0:r.includes(n))},h=({baseUrl:s,accessWith:t,requireAll:o,children:r})=>a(s)(t,o)?i.jsx(i.Fragment,{children:r}):null,P=({accessWith:s,requireAll:t,baseUrl:o,unAuthorizedPath:r,children:n})=>a(o)(s,t)?i.jsx(i.Fragment,{children:n}):i.jsx(l.Navigate,{to:r,replace:!0});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation$1;exports.HasPermission=h;exports.PermissionRoute=P;exports.getUseHasPermission=a;exports.useGetPermission=c;
@@ -1,4 +1,4 @@
1
- import { M as R, O as S, R as G, a1 as y, Z as F, a as H, c as I, $ as M, V as O, T as $, U as j, W as w, t as B, a0 as N, B as U, X as V, e as X, u as Y, i as Z, Y as _ } from "../index.esm2017-CXUWB61_.js";
1
+ import { M as R, O as S, R as G, a1 as y, Z as F, a as H, c as I, $ as M, V as O, T as $, U as j, W as w, t as B, a0 as N, B as U, X as V, e as X, u as Y, i as Z, Y as _ } from "../index.esm2017-81ft1FRl.js";
2
2
  import u from "axios";
3
3
  import { useState as m, useEffect as c } from "react";
4
4
  import { jsx as a, Fragment as n } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.13.7-sandbox.saas-8492.patch-1",
4
+ "version": "0.13.7-sandbox.saas-8419-8492.patch-3",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { F as i, u as m } from "../index-DLTHwamY.js";
2
+ import { F as i, u as m } from "../index-DLtxOeNO.js";
3
3
  import "../index-BSe1av43.js";
4
4
  import "../index-CxiIFyUv.js";
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { G as i } from "../index-DLTHwamY.js";
2
+ import { G as i } from "../index-DLtxOeNO.js";
3
3
  import "../index-BSe1av43.js";
4
4
  import "../index-CxiIFyUv.js";
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { L as n, T as s } from "../index-DLTHwamY.js";
2
+ import { L as n, T as s } from "../index-DLtxOeNO.js";
3
3
  import "../index-BSe1av43.js";
4
4
  import "../index-9o5rZMWx.js";
5
5
  import "../index-CxiIFyUv.js";
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { H as e, g as m } from "../index-DLTHwamY.js";
2
+ import { H as e, g as m } from "../index-DLtxOeNO.js";
3
3
  import "../index-CxiIFyUv.js";
4
4
  export {
5
5
  e as HasPermission,
@@ -10524,7 +10524,7 @@ function tq({
10524
10524
  ) })
10525
10525
  ] });
10526
10526
  }
10527
- const nq = ".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}", rq = ".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}", iq = ':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}', sq = "._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}", dP = '.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';
10527
+ const nq = ".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1000;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}", rq = ".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}", iq = ':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}', sq = "._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}", dP = '.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}';
10528
10528
  function oq(e) {
10529
10529
  return /* @__PURE__ */ L.jsxs(
10530
10530
  "svg",
@@ -17279,7 +17279,7 @@ function HX(e) {
17279
17279
  )
17280
17280
  ] });
17281
17281
  }
17282
- const UX = '.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';
17282
+ const UX = '.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';
17283
17283
  var Eu = {};
17284
17284
  /**
17285
17285
  * @license React
@@ -20172,7 +20172,7 @@ function cJ() {
20172
20172
  } });
20173
20173
  }
20174
20174
  var tI = cJ();
20175
- const fJ = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", dJ = ".favorite-bar{z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";
20175
+ const fJ = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", dJ = ".favorite-bar{position:sticky;top:64px;z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";
20176
20176
  var R_;
20177
20177
  (function(e) {
20178
20178
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
@@ -22673,9 +22673,9 @@ function Ste(e) {
22673
22673
  style: {
22674
22674
  marginTop: 4,
22675
22675
  flex: 1,
22676
- overflow: "auto",
22677
- height: "100%",
22678
- overflowY: "hidden"
22676
+ // overflow: 'auto',
22677
+ height: "100%"
22678
+ // overflowY: 'hidden',
22679
22679
  },
22680
22680
  children: /* @__PURE__ */ L.jsx(uI, { backend: TI, children: /* @__PURE__ */ L.jsxs("div", { style: { display: "inline-flex" }, children: [
22681
22681
  n.map(($, j) => /* @__PURE__ */ L.jsx(P, { item: $, index: j }, $.id)),