@ukpc-lib/react 0.16.5 → 0.16.7-sandbox.saas-9710.patch-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +2 -2
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/GlobalMenu/helpers/index.d.ts +3 -1
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +269 -269
- package/dist/{index.esm2017-B5CLzdVt.cjs → index.esm2017-BWPYyOYY.cjs} +101 -101
- package/dist/{index.esm2017-DedBSRLV.js → index.esm2017-CxUJuamS.js} +3263 -3256
- package/dist/share/hooks/useSyncRouter.d.ts +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +64 -82
- package/package.json +1 -1
- package/web-components-bundle/{SaasThemeProvider-DUpoV8xb.js → SaasThemeProvider-A_eMJWqw.js} +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +3 -3
- package/web-components-bundle/favorite-menu/index.js +7 -7
- package/web-components-bundle/global-menu/index.js +6 -6
- package/web-components-bundle/global-topbar/index.js +7 -7
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-BBl8HzU3.js → index-760z9lEs.js} +565 -565
- package/web-components-bundle/{index-N6zjI_u_.js → index-BwEhsh9S.js} +2 -2
- package/web-components-bundle/{index-Ch-015PG.js → index-CiYHK3Rq.js} +1 -1
- package/web-components-bundle/{index-CZ1XQeht.js → index-DDLiktFf.js} +713 -706
- package/web-components-bundle/page-not-found/index.js +3 -3
- package/web-components-bundle/{react-to-web-component-w5r1Fs9q.js → react-to-web-component-BOygDorD.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-H_Xdunfj.js → react-toastify.esm-DnABvuky.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
|
@@ -7,6 +7,7 @@ export type OwnMenuItemProps = {
|
|
|
7
7
|
replacePath?(path: string): string;
|
|
8
8
|
ssr?: boolean;
|
|
9
9
|
brandColors?: ColorsType;
|
|
10
|
+
onClickItem?(item: MenuItemDto): void;
|
|
10
11
|
};
|
|
11
12
|
type MenuItemProps = {
|
|
12
13
|
baseUrl: string;
|
|
@@ -18,9 +19,8 @@ type MenuItemProps = {
|
|
|
18
19
|
params?: RenderParams;
|
|
19
20
|
nodes?: NodeModel<MenuItemDto>[];
|
|
20
21
|
isDrop?: boolean;
|
|
21
|
-
onClick?: (item: MenuItemDto) => void;
|
|
22
22
|
} & OwnMenuItemProps;
|
|
23
|
-
export default function
|
|
23
|
+
export default function FavMenuItem({ ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export type FavoriteIconProps = {
|
|
25
25
|
onClick?(_isFavorite: boolean): void;
|
|
26
26
|
menuLevel?: number;
|
|
@@ -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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-BWPYyOYY.cjs"),N=require("@mui/material");require("axios");const gn=require("react-router-dom");require("@r2wc/react-to-web-component");require("react-query");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 j=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"),d=(await m.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(d==null?void 0:d.total)??0}}):h=>({...h,unread:{total:(d==null?void 0:d.total)??0}})),d};var $n=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Lo(e,t){return!!(e===t||$n(e)&&$n(t))}function zo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Lo(e[n],t[n]))return!1;return!0}function Vt(e,t){t===void 0&&(t=zo);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 Ln(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 zn(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,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(h){m._inheritsLoose(p,h);function p(y){var a;return a=h.call(this,y)||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(g,v,w,S){return a.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:v,visibleStartIndex:w,visibleStopIndex:S})}),a._callOnScroll=void 0,a._callOnScroll=Vt(function(g,v,w){return a.props.onScroll({scrollDirection:g,scrollOffset:v,scrollUpdateWasRequested:w})}),a._getItemStyle=void 0,a._getItemStyle=function(g){var v=a.props,w=v.direction,S=v.itemSize,T=v.layout,x=a._getItemStyleCache(f&&S,f&&T,f&&w),_;if(x.hasOwnProperty(g))_=x[g];else{var E=n(a.props,g,a._instanceProps),M=o(a.props,g,a._instanceProps),P=w==="horizontal"||T==="horizontal",z=w==="rtl",I=P?E:0;x[g]=_={position:"absolute",left:z?void 0:I,right:z?I:void 0,top:P?0:E,height:P?"100%":M,width:P?M:"100%"}}return _},a._getItemStyleCache=void 0,a._getItemStyleCache=Vt(function(g,v,w){return{}}),a._onScrollHorizontal=function(g){var v=g.currentTarget,w=v.clientWidth,S=v.scrollLeft,T=v.scrollWidth;a.setState(function(x){if(x.scrollOffset===S)return null;var _=a.props.direction,E=S;if(_==="rtl")switch(zn()){case"negative":E=-S;break;case"positive-descending":E=T-w-S;break}return E=Math.max(0,Math.min(E,T-w)),{isScrolling:!0,scrollDirection:x.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(g){var v=g.currentTarget,w=v.clientHeight,S=v.scrollHeight,T=v.scrollTop;a.setState(function(x){if(x.scrollOffset===T)return null;var _=Math.max(0,Math.min(T,S-w));return{isScrolling:!0,scrollDirection:x.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(g){var v=a.props.outerRef;a._outerRef=g,typeof v=="function"?v(g):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=g)},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,g){return Wo(a,g),d(a),null};var b=p.prototype;return b.scrollTo=function(a){a=Math.max(0,a),this.setState(function(g){return g.scrollOffset===a?null:{scrollDirection:g.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},b.scrollToItem=function(a,g){g===void 0&&(g="auto");var v=this.props,w=v.itemCount,S=v.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,w-1));var x=0;if(this._outerRef){var _=this._outerRef;S==="vertical"?x=_.scrollWidth>_.clientWidth?Ln():0:x=_.scrollHeight>_.clientHeight?Ln():0}this.scrollTo(i(this.props,a,g,T,this._instanceProps,x))},b.componentDidMount=function(){var a=this.props,g=a.direction,v=a.initialScrollOffset,w=a.layout;if(typeof v=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||w==="horizontal"?S.scrollLeft=v:S.scrollTop=v}this._callPropsCallbacks()},b.componentDidUpdate=function(){var a=this.props,g=a.direction,v=a.layout,w=this.state,S=w.scrollOffset,T=w.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var x=this._outerRef;if(g==="horizontal"||v==="horizontal")if(g==="rtl")switch(zn()){case"negative":x.scrollLeft=-S;break;case"positive-ascending":x.scrollLeft=S;break;default:var _=x.clientWidth,E=x.scrollWidth;x.scrollLeft=E-_-S;break}else x.scrollLeft=S;else x.scrollTop=S}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},b.render=function(){var a=this.props,g=a.children,v=a.className,w=a.direction,S=a.height,T=a.innerRef,x=a.innerElementType,_=a.innerTagName,E=a.itemCount,M=a.itemData,P=a.itemKey,z=P===void 0?Bo:P,I=a.layout,O=a.outerElementType,R=a.outerTagName,K=a.style,re=a.useIsScrolling,ce=a.width,_e=this.state.isScrolling,$=w==="horizontal"||I==="horizontal",L=$?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(g,{data:M,key:z(Q,M),index:Q,isScrolling:re?_e:void 0,style:this._getItemStyle(Q)}));var ye=r(this.props,this._instanceProps);return C.createElement(O||R||"div",{className:v,onScroll:L,ref:this._outerRefSetter,style:m._extends({position:"relative",height:S,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},K)},C.createElement(x||_||"div",{children:te,ref:T,style:{height:$?"100%":ye,pointerEvents:_e?"none":void 0,width:$?ye:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var g=this._getRangeToRender(),v=g[0],w=g[1],S=g[2],T=g[3];this._callOnItemsRendered(v,w,S,T)}}if(typeof this.props.onScroll=="function"){var x=this.state,_=x.scrollDirection,E=x.scrollOffset,M=x.scrollUpdateWasRequested;this._callOnScroll(_,E,M)}},b._getRangeToRender=function(){var a=this.props,g=a.itemCount,v=a.overscanCount,w=this.state,S=w.isScrolling,T=w.scrollDirection,x=w.scrollOffset;if(g===0)return[0,0,0,0];var _=s(this.props,x,this._instanceProps),E=c(this.props,_,x,this._instanceProps),M=!S||T==="backward"?Math.max(1,v):1,P=!S||T==="forward"?Math.max(1,v):1;return[Math.max(0,_-M),Math.max(0,Math.min(g-1,E+P)),_,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,f=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(d)&&(mt.add(d),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(d)&&(pt.add(d),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 f!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(f===null?"null":typeof f)+'" 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 f=s[c];u=f.offset+f.size}for(var d=c+1;d<=n;d++){var h=i(d);s[d]={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 f=r-s-1,d=f*i;return c+d},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,f=t.layout,d=t.width,h=c==="horizontal"||f==="horizontal",p=h?d:u,b=He(t,n,i),y=Fn(t,i),a=Math.max(0,Math.min(y-p,b.offset)),g=Math.max(0,b.offset-p+b.size+s);switch(r==="smart"&&(o>=g-p&&o<=a+p?r="auto":r="center"),r){case"start":return a;case"end":return g;case"center":return Math.round(g+(a-g)/2);case"auto":default:return o>=g&&o<=a?o:o<g?g: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,f=t.width,d=i==="horizontal"||u==="horizontal",h=d?f:s,p=He(t,n,o),b=r+h,y=p.offset+p.size,a=n;a<c-1&&y<b;)a++,y+=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,f]=C.useState(0);C.useEffect(()=>{const $=()=>{i&&i.current&&f(i.current.offsetHeight-200)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]);const[d,h]=C.useState([]),[p,b]=C.useState(!0),[y,a]=C.useState(!1),[g,v]=C.useState(1),[w,S]=C.useState({}),T=C.useRef(null),{setNotiData:x}=C.useContext(m.CustomOpenList),_=Tr({baseUrl:e,notiPath:t,setNotiData:x}),E=C.useRef(null),M=C.useCallback(async()=>{if(!(y||!p)){a(!0);try{const $=d.length===0?1:g+1,L=await _($,Ut,o),W=(L==null?void 0:L.rows)||[];E.current=(L==null?void 0:L.count)||(L==null?void 0:L.total)||null,h(le=>[...le,...W]),v($),(W.length<Ut||E.current&&d.length+W.length>=E.current)&&b(!1)}catch{b(!1)}finally{a(!1)}}},[y,p,g,_,d.length,o]),P=p?d.length+1:d.length,z=$=>!p||$<d.length,I=async()=>{try{const W=e+(t||"/notification-management/api/v1/notifications");await m.axiosInstance.put(W)}catch(L){console.log(L)}const $=await _(1,Ut,o);h(($==null?void 0:$.rows)||[]),x(L=>({...L,unread:{total:0}})),v(1),b(!0),c(!1)},O=()=>{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($,L,W)=>{h(o==="unread"&&L?te=>te.filter(Q=>Q.id!==$):te=>te.map(Q=>Q.id===$?{...Q,isRead:L}:Q)),x(te=>{let Q=0;const ye=d.find(qe=>qe.id===$);return ye&&(!ye.isRead&&L&&(Q=-1),ye.isRead&&!L&&(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:L})},re=$=>{var te;const oe=d[$];return oe&&oe.notificationType==="deleteMultiple"&&w[oe.id]?90+38*(((te=oe.data)==null?void 0:te.length)??0)+8:90},ce=($,L)=>{S(W=>{const le={...W,[$]:!W[$]};return setTimeout(()=>{var oe;(oe=T.current)==null||oe.resetAfterIndex(L)},0),le})},_e=({index:$,style:L})=>{if(!z($))return l.jsx(R,{style:L});const W=d[$];return l.jsx("div",{style:L,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:O,style:{visibility:r===0?"hidden":"visible"},children:m.translate("notificationAdmin.notify.markedRead",{defaultValue:"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:z,itemCount:P,loadMoreItems:M,threshold:10,children:({onItemsRendered:$,ref:L})=>l.jsx(kr,{height:u,itemCount:P,itemSize:re,width:"100%",onItemsRendered:$,ref:W=>{T.current=W,typeof L=="function"&&L(W)},children:_e})})})})]})},Yo=({baseUrl:e,notiPath:t,brandColors:n})=>{var f,d;const r=C.useRef(null),{setShowModalFalse:o}=C.useContext(m.CustomOpenList),{notidata:i}=C.useContext(m.CustomOpenList);console.log(i),C.useEffect(()=>{const h=b=>{!(!!b.composedPath?b.composedPath():[b.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:`${m.translate("notificationAdmin.notify.allNotification",{defaultValue:"All"})} (${((f=i==null?void 0:i.all)==null?void 0:f.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`${m.translate("notificationAdmin.notify.unreadNotification",{defaultValue:"Unread"})} (${((d=i==null?void 0:i.unread)==null?void 0:d.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:m.translate("notificationAdmin.notify.title",{defaultValue:"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 d,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=C.useContext(m.CustomOpenList),{notidata:c,setNotiData:u}=C.useContext(m.CustomOpenList),f=Tr({baseUrl:t,notiPath:n,setNotiData:u});return C.useEffect(()=>{(async()=>{var b,y;try{const[a]=await Promise.all([f(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){m.pushError(((y=(b=a.response)==null?void 0:b.data)==null?void 0:y.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:((d=c==null?void 0:c.unread)==null?void 0:d.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:1100;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({}),Pr=!0;function ni({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=Pr,customHighlightBackground:f}){const d={};return s==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}s`),u||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof r=="string"||typeof r=="number")&&(d.height=r),(typeof o=="string"||typeof o=="number")&&(d.borderRadius=o),i&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof f=="string"&&(d["--custom-highlight-background"]=f),d}function Or({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,f,d;const h=C.useContext(ti),p={...c};for(const[S,T]of Object.entries(c))typeof T>"u"&&delete p[S];const b={...h,...p,circle:i},y={...s,...ni(b)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const g=(u=b.inline)!==null&&u!==void 0?u:!1,v=[],w=Math.ceil(e);for(let S=0;S<w;S++){let T=y;if(w>e&&S===w-1){const _=(f=T.width)!==null&&f!==void 0?f:"100%",E=e%1,M=typeof _=="number"?_*E:`calc(${_} * ${E})`;T={...T,width:M}}const x=C.createElement("span",{className:a,style:T,key:S},"");g?v.push(x):v.push(C.createElement(C.Fragment,{key:S},x,C.createElement("br",null)))}return C.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(d=b.enableAnimation)!==null&&d!==void 0?d:Pr},t?v.map((S,T)=>C.createElement(t,{key:T},S)):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 Ar({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=f=>{c==null||c.addEventListener("click",function(d){if(n&&s&&s.contains(d.target)){if(i&&!i.contains(d.target))return}else i&&!i.contains(d.target)&&t()}),r&&!r.contains(f.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 jr(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 f=i[u];if(!ue(f))return;if(c===s.length-1&&(ve(f)||jr(f)||li(f)))n.push(ci(f));else if(Ee(f)){r=!0;for(let d=0,h=f.length;d<h;d+=1)o(f[d],s,c+1)}else s.length&&o(f,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 A={...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=A.getFn,fieldNormWeight:n=A.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:f,value:d}=u.pop();if(ue(d))if(ve(d)&&!Gt(d)){let h={v:d,i:f,n:this.norm.get(d)};c.push(h)}else Ee(d)&&d.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 Lr(e,t,{getFn:n=A.getFn,fieldNormWeight:r=A.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=A.getFn,fieldNormWeight:n=A.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=A.distance,ignoreLocation:i=A.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=A.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 Ae=32;function Ti(e,t,n,{location:r=A.location,distance:o=A.distance,threshold:i=A.threshold,findAllMatches:s=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,includeMatches:u=A.includeMatches,ignoreLocation:f=A.ignoreLocation}={}){if(t.length>Ae)throw new Error(hi(Ae));const d=t.length,h=e.length,p=Math.max(0,Math.min(r,h));let b=i,y=p;const a=c>1||u,g=a?Array(h):[];let v;for(;(v=e.indexOf(t,y))>-1;){let E=dt(t,{currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:f});if(b=Math.min(E,b),y=v+d,a){let M=0;for(;M<d;)g[v+M]=1,M+=1}}y=-1;let w=[],S=1,T=d+h;const x=1<<d-1;for(let E=0;E<d;E+=1){let M=0,P=T;for(;M<P;)dt(t,{errors:E,currentLocation:p+P,expectedLocation:p,distance:o,ignoreLocation:f})<=b?M=P:T=P,P=Math.floor((T-M)/2+M);T=P;let z=Math.max(1,p-P+1),I=s?h:Math.min(p+P,h)+d,O=Array(I+2);O[I+1]=(1<<E)-1;for(let K=I;K>=z;K-=1){let re=K-1,ce=n[e.charAt(re)];if(a&&(g[re]=+!!ce),O[K]=(O[K+1]<<1|1)&ce,E&&(O[K]|=(w[K+1]|w[K])<<1|1|w[K+1]),O[K]&x&&(S=dt(t,{errors:E,currentLocation:re,expectedLocation:p,distance:o,ignoreLocation:f}),S<=b)){if(b=S,y=re,y<=p)break;z=Math.max(1,2*p-y)}}if(dt(t,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:f})>b)break;w=O}const _={isMatch:y>=0,score:Math.max(.001,S)};if(a){const E=Ci(g,c);E.length?u&&(_.indices=E):_.isMatch=!1}return _}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 zr{constructor(t,{location:n=A.location,threshold:r=A.threshold,distance:o=A.distance,includeMatches:i=A.includeMatches,findAllMatches:s=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,isCaseSensitive:u=A.isCaseSensitive,ignoreLocation:f=A.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,b)=>{this.chunks.push({pattern:p,alphabet:Ii(p),startIndex:b})},h=this.pattern.length;if(h>Ae){let p=0;const b=h%Ae,y=h-b;for(;p<y;)d(this.pattern.substr(p,Ae),p),p+=Ae;if(b){const a=h-Ae;d(this.pattern.substr(a),a)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let y={isMatch:!0,score:0};return r&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:f}=this.options;let d=[],h=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:a,startIndex:g})=>{const{isMatch:v,score:w,indices:S}=Ti(t,y,a,{location:o+g,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:f});v&&(p=!0),h+=w,v&&S&&(d=[...d,...S])});let b={isMatch:p,score:p?h/this.chunks.length:1};return p&&r&&(b.indices=d),b}}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 Pi 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 Oi 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 Ai 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 ji 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=A.location,threshold:r=A.threshold,distance:o=A.distance,includeMatches:i=A.includeMatches,findAllMatches:s=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,isCaseSensitive:u=A.isCaseSensitive,ignoreLocation:f=A.ignoreLocation}={}){super(t),this._bitapSearch=new zr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f})}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,Pi,Oi,ji,Ai,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,f=-1;for(;!u&&++f<Wn;){const d=Jt[f];let h=d.isMultiMatch(c);h&&(o.push(new d(h,t)),u=!0)}if(!u)for(f=-1;++f<Wn;){const d=Jt[f];let h=d.isSingleMatch(c);if(h){o.push(new d(h,t));break}}}return o})}const Li=new Set([Fr.type,Dr.type]);class zi{constructor(t,{isCaseSensitive:n=A.isCaseSensitive,includeMatches:r=A.includeMatches,minMatchCharLength:o=A.minMatchCharLength,ignoreLocation:i=A.ignoreLocation,findAllMatches:s=A.findAllMatches,location:c=A.location,threshold:u=A.threshold,distance:f=A.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:f},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,f=n.length;u<f;u+=1){const d=n[u];s.length=0,i=0;for(let h=0,p=d.length;h<p;h+=1){const b=d[h],{isMatch:y,indices:a,score:g}=b.search(t);if(y){if(i+=1,c+=g,r){const v=b.constructor.type;Li.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 zr(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],f=s?o[tn.PATTERN]:o[u];if(!ve(f))throw new Error(fi(u));const d={keyId:Xt(u),pattern:f};return n&&(d.searcher=en(f,t)),d}let c={children:[],operator:i[0]};return i.forEach(u=>{const f=o[u];Ee(f)&&f.forEach(d=>{c.children.push(r(d))})}),c};return nn(e)||(e=Un(e)),r(e)}function Bi(e,{ignoreFieldNorm:t=A.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=A.includeMatches,includeScore:r=A.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={...A,...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||Lr(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),jr(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:f,indices:d}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:f,value:i,norm:c,indices:d}]})}),o}_searchLogical(t){const n=Hr(t,this.options),r=(c,u,f)=>{if(!c.children){const{keyId:h,searcher:p}=c,b=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:p});return b&&b.length?[{idx:f,item:u,matches:b}]:[]}const d=[];for(let h=0,p=c.children.length;h<p;h+=1){const b=c.children[h],y=r(b,u,f);if(y.length)d.push(...y);else if(c.operator===St.AND)return[]}return d},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let f=r(n,c,u);f.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),f.forEach(({matches:d})=>{i[u].matches.push(...d)}))}}),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((f,d)=>{u.push(...this._findMatches({key:f,value:s[d],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:f,indices:d}=r.searchIn(i);u&&o.push({score:f,key:t,value:i,idx:s,norm:c,indices:d})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:f}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:f})}return o}}Ue.version="6.6.2";Ue.createIndex=Lr;Ue.parseIndex=Ei;Ue.config=A;Ue.parseQuery=Hr;Fi(zi);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:f=!0,showNoResultsText:d="No results"}){const h=u||(y=>y[i]),p=y=>{t(y),n(y[i])},b=({event:y,result:a})=>{y.button===0&&(y.preventDefault(),p(a))};return f?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:d})]})}):(e==null?void 0:e.length)<=0&&!f?null:l.jsx(Kn,{children:e.slice(0,o).map((y,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:g=>b({event:g,result:y}),onClick:()=>p(y),children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(y)})]},`rsa-result-${y.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:f=!0,maxLength:d}){const h=C.useRef(null);let p=!0;const b=()=>{p=!1,h!=null&&h.current&&h.current.focus(),p=!0},y=g=>{p&&i(g)},a=d?{maxLength:d}:{};return C.useEffect(()=>{document.querySelector("global-topbar");const g=v=>{const w=document.getElementById("AddTagButton"),S=document.getElementsByClassName("btn-edit");["a","e","t"].includes(v.key.toLowerCase())&&((S==null?void 0:S.length)>0&&S[0].addEventListener("click",x=>{const _=document.querySelector("global-topbar"),E=_!=null?_.shadowRoot:document,M=E.getElementById("GlobalSearchInput");E.activeElement===M?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0),w!=null&&w.addEventListener("click",x=>{const _=document.querySelector("global-topbar"),E=_!=null?_.shadowRoot:document,M=E.getElementById("GlobalSearchInput");E.activeElement===M?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0))};return document.addEventListener("keydown",g,!0),()=>document.removeEventListener("keydown",g,!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:h,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:y,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:g=>{var v,w;if(g.key==="Enter"){const S=document.querySelector("global-topbar");if((S!=null?S.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",g);const x=g.currentTarget.value;(w=(v=window.top)==null?void 0:v.HostBridge)==null||w.childRouteChange(`/stella/page/Search/Index?Term=${x}`);return}}n({event:g})},"data-test":"search-input",...a}),l.jsx(qi,{showClear:f,setSearchString:t,searchString:e,onClear:s,setFocus:b})]})}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:f=!0,showClear:d=!0,maxResults:h=Ji,placeholder:p="",autoFocus:b=!1,styling:y={},resultStringKeyName:a="name",inputSearchString:g="",formatResult:v,showNoResults:w=!0,showNoResultsText:S="No results",showItemsOnFocus:T=!1,maxLength:x=0,baseUrl:_=""}){({...y});const E={...Gn,...t},M=new Ue(e,E);M.setCollection(e);const[P,z]=C.useState(g),[I,O]=C.useState([]),[R,K]=C.useState(-1),[re,ce]=C.useState(!1),[_e,$]=C.useState(!1),[L,W]=C.useState(!1),[le,oe]=C.useState(!1);C.useEffect(()=>{z(g);const F=setTimeout(()=>O(lt(g)),0);return()=>clearTimeout(F)},[g]),C.useEffect(()=>{(P==null?void 0:P.length)>=3?e&&(e==null?void 0:e.length)>0&&O(e):O([])},[e]),C.useEffect(()=>{const F=()=>{je(),oe(!1)};return document.addEventListener("click",F),()=>document.removeEventListener("click",F)},[]),C.useEffect(()=>{(()=>{w&&P.length>0&&!_e&&I.length===0&&!re?W(!0):W(!1),T&&I.length===0&&P.length===0&&le&&O(e.slice(0,h))})()},[_e,w,re,P,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)),O(k),r(F,k),$(!1)},ye=C.useCallback(n>0?Gi(F=>Q(F),n):F=>Q(F),[e]),qe=F=>{je(),i(F),z(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;z(k),ye(k),$(!0),re&&ce(!1)},je=()=>{O([]),ce(!0)},ut=({index:F,event:k})=>{let Te=-1;const Oe=$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(P,I),K(-1),je();break;case"ArrowUp":k.preventDefault(),Te=R>-1?R-1:I.length-1,Oe(Te);break;case"ArrowDown":k.preventDefault(),Te=R<I.length-1?R+1:-1,Oe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Zi,{searchString:P,setSearchString:Bt,eraseResults:je,autoFocus:b,onFocus:te,onClear:c,placeholder:p,showIcon:!0,showClear:d,setHighlightedItem:ut,maxLength:x,baseUrl:_})}),l.jsx(Yi,{results:I,onClick:qe,setSearchString:z,showIcon:f,maxResults:h,resultStringKeyName:a,formatResult:v,highlightedItem:R,setHighlightedItem:ut,showNoResultsFlag:L,showNoResultsText:S})]})})}function es({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:f,logout:d,disabledLogoClick:h=!1}=t,p={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[b,y]=C.useState(!1),{Term:a}=gn.useParams();console.log("term",a);const[g,v]=C.useState([]),[w,S]=C.useState([]),T=oi({baseUrl:o});console.log("searchPermission",T.hasPermission),C.useEffect(()=>{g.length>=3?x(g):S([])},[g]);const x=async I=>{await fetch(`/stella/page/Search/Suggestions?term=${I}`).then(O=>O.json()).then(O=>{S(O),console.log(O)}).catch(O=>{console.error(O)})},_=I=>{console.log(I)},E=(I,O)=>{v(I),console.log(I,O)},M=I=>{const O=I.entityType,R=I.entityId;switch(O){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 ${O} ${R}`);return}},P=()=>{const I=document.querySelector("global-topbar"),R=(I!=null?I.shadowRoot:document).getElementById("GlobalSearchInput");R&&R.value.length>=3&&(setTimeout(()=>{},1e3),x(R.value))},z=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:"calc(var(--menu-z-index) + 1)"},className:"backdrop-delay-transition",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:[f&&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:_,onSelect:M,onFocus:P,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:z,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):"",t.customElement,l.jsx("span",{children:l.jsxs(m.CustomOpenListProvider,{children:[l.jsx(jo,{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:y}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Or,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})}),l.jsx(m.LogoutConfirmModal,{isOpen:b,onClose:()=>y(!1),onConfirm:d})]})}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(()=>{Ar({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(f=>f.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(()=>{Ar({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:"top-right",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(),m.setShellBackdrop(!0)},open:t.value,onClose:()=>{t.setFalse(),m.setShellBackdrop(!1)},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"})})}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(j.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=>{j.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 ps=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 ms=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"),d=(await m.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(d==null?void 0:d.total)??0}}):h=>({...h,unread:{total:(d==null?void 0:d.total)??0}})),d};var $n=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Lo(e,t){return!!(e===t||$n(e)&&$n(t))}function zo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Lo(e[n],t[n]))return!1;return!0}function Vt(e,t){t===void 0&&(t=zo);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 Ln(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 zn(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,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(h){m._inheritsLoose(p,h);function p(y){var a;return a=h.call(this,y)||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(g,v,w,S){return a.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:v,visibleStartIndex:w,visibleStopIndex:S})}),a._callOnScroll=void 0,a._callOnScroll=Vt(function(g,v,w){return a.props.onScroll({scrollDirection:g,scrollOffset:v,scrollUpdateWasRequested:w})}),a._getItemStyle=void 0,a._getItemStyle=function(g){var v=a.props,w=v.direction,S=v.itemSize,T=v.layout,x=a._getItemStyleCache(f&&S,f&&T,f&&w),_;if(x.hasOwnProperty(g))_=x[g];else{var E=n(a.props,g,a._instanceProps),M=o(a.props,g,a._instanceProps),P=w==="horizontal"||T==="horizontal",z=w==="rtl",I=P?E:0;x[g]=_={position:"absolute",left:z?void 0:I,right:z?I:void 0,top:P?0:E,height:P?"100%":M,width:P?M:"100%"}}return _},a._getItemStyleCache=void 0,a._getItemStyleCache=Vt(function(g,v,w){return{}}),a._onScrollHorizontal=function(g){var v=g.currentTarget,w=v.clientWidth,S=v.scrollLeft,T=v.scrollWidth;a.setState(function(x){if(x.scrollOffset===S)return null;var _=a.props.direction,E=S;if(_==="rtl")switch(zn()){case"negative":E=-S;break;case"positive-descending":E=T-w-S;break}return E=Math.max(0,Math.min(E,T-w)),{isScrolling:!0,scrollDirection:x.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(g){var v=g.currentTarget,w=v.clientHeight,S=v.scrollHeight,T=v.scrollTop;a.setState(function(x){if(x.scrollOffset===T)return null;var _=Math.max(0,Math.min(T,S-w));return{isScrolling:!0,scrollDirection:x.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(g){var v=a.props.outerRef;a._outerRef=g,typeof v=="function"?v(g):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=g)},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,g){return Wo(a,g),d(a),null};var b=p.prototype;return b.scrollTo=function(a){a=Math.max(0,a),this.setState(function(g){return g.scrollOffset===a?null:{scrollDirection:g.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},b.scrollToItem=function(a,g){g===void 0&&(g="auto");var v=this.props,w=v.itemCount,S=v.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,w-1));var x=0;if(this._outerRef){var _=this._outerRef;S==="vertical"?x=_.scrollWidth>_.clientWidth?Ln():0:x=_.scrollHeight>_.clientHeight?Ln():0}this.scrollTo(i(this.props,a,g,T,this._instanceProps,x))},b.componentDidMount=function(){var a=this.props,g=a.direction,v=a.initialScrollOffset,w=a.layout;if(typeof v=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||w==="horizontal"?S.scrollLeft=v:S.scrollTop=v}this._callPropsCallbacks()},b.componentDidUpdate=function(){var a=this.props,g=a.direction,v=a.layout,w=this.state,S=w.scrollOffset,T=w.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var x=this._outerRef;if(g==="horizontal"||v==="horizontal")if(g==="rtl")switch(zn()){case"negative":x.scrollLeft=-S;break;case"positive-ascending":x.scrollLeft=S;break;default:var _=x.clientWidth,E=x.scrollWidth;x.scrollLeft=E-_-S;break}else x.scrollLeft=S;else x.scrollTop=S}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},b.render=function(){var a=this.props,g=a.children,v=a.className,w=a.direction,S=a.height,T=a.innerRef,x=a.innerElementType,_=a.innerTagName,E=a.itemCount,M=a.itemData,P=a.itemKey,z=P===void 0?Bo:P,I=a.layout,O=a.outerElementType,R=a.outerTagName,K=a.style,re=a.useIsScrolling,ce=a.width,_e=this.state.isScrolling,$=w==="horizontal"||I==="horizontal",L=$?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(g,{data:M,key:z(Q,M),index:Q,isScrolling:re?_e:void 0,style:this._getItemStyle(Q)}));var ye=r(this.props,this._instanceProps);return C.createElement(O||R||"div",{className:v,onScroll:L,ref:this._outerRefSetter,style:m._extends({position:"relative",height:S,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},K)},C.createElement(x||_||"div",{children:te,ref:T,style:{height:$?"100%":ye,pointerEvents:_e?"none":void 0,width:$?ye:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var g=this._getRangeToRender(),v=g[0],w=g[1],S=g[2],T=g[3];this._callOnItemsRendered(v,w,S,T)}}if(typeof this.props.onScroll=="function"){var x=this.state,_=x.scrollDirection,E=x.scrollOffset,M=x.scrollUpdateWasRequested;this._callOnScroll(_,E,M)}},b._getRangeToRender=function(){var a=this.props,g=a.itemCount,v=a.overscanCount,w=this.state,S=w.isScrolling,T=w.scrollDirection,x=w.scrollOffset;if(g===0)return[0,0,0,0];var _=s(this.props,x,this._instanceProps),E=c(this.props,_,x,this._instanceProps),M=!S||T==="backward"?Math.max(1,v):1,P=!S||T==="forward"?Math.max(1,v):1;return[Math.max(0,_-M),Math.max(0,Math.min(g-1,E+P)),_,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,f=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(d)&&(mt.add(d),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(d)&&(pt.add(d),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 f!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(f===null?"null":typeof f)+'" 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 f=s[c];u=f.offset+f.size}for(var d=c+1;d<=n;d++){var h=i(d);s[d]={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 f=r-s-1,d=f*i;return c+d},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,f=t.layout,d=t.width,h=c==="horizontal"||f==="horizontal",p=h?d:u,b=He(t,n,i),y=Fn(t,i),a=Math.max(0,Math.min(y-p,b.offset)),g=Math.max(0,b.offset-p+b.size+s);switch(r==="smart"&&(o>=g-p&&o<=a+p?r="auto":r="center"),r){case"start":return a;case"end":return g;case"center":return Math.round(g+(a-g)/2);case"auto":default:return o>=g&&o<=a?o:o<g?g: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,f=t.width,d=i==="horizontal"||u==="horizontal",h=d?f:s,p=He(t,n,o),b=r+h,y=p.offset+p.size,a=n;a<c-1&&y<b;)a++,y+=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,f]=C.useState(0);C.useEffect(()=>{const $=()=>{i&&i.current&&f(i.current.offsetHeight-200)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]);const[d,h]=C.useState([]),[p,b]=C.useState(!0),[y,a]=C.useState(!1),[g,v]=C.useState(1),[w,S]=C.useState({}),T=C.useRef(null),{setNotiData:x}=C.useContext(m.CustomOpenList),_=Tr({baseUrl:e,notiPath:t,setNotiData:x}),E=C.useRef(null),M=C.useCallback(async()=>{if(!(y||!p)){a(!0);try{const $=d.length===0?1:g+1,L=await _($,Ut,o),W=(L==null?void 0:L.rows)||[];E.current=(L==null?void 0:L.count)||(L==null?void 0:L.total)||null,h(le=>[...le,...W]),v($),(W.length<Ut||E.current&&d.length+W.length>=E.current)&&b(!1)}catch{b(!1)}finally{a(!1)}}},[y,p,g,_,d.length,o]),P=p?d.length+1:d.length,z=$=>!p||$<d.length,I=async()=>{try{const W=e+(t||"/notification-management/api/v1/notifications");await m.axiosInstance.put(W)}catch(L){console.log(L)}const $=await _(1,Ut,o);h(($==null?void 0:$.rows)||[]),x(L=>({...L,unread:{total:0}})),v(1),b(!0),c(!1)},O=()=>{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($,L,W)=>{h(o==="unread"&&L?te=>te.filter(Q=>Q.id!==$):te=>te.map(Q=>Q.id===$?{...Q,isRead:L}:Q)),x(te=>{let Q=0;const ye=d.find(qe=>qe.id===$);return ye&&(!ye.isRead&&L&&(Q=-1),ye.isRead&&!L&&(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:L})},re=$=>{var te;const oe=d[$];return oe&&oe.notificationType==="deleteMultiple"&&w[oe.id]?90+38*(((te=oe.data)==null?void 0:te.length)??0)+8:90},ce=($,L)=>{S(W=>{const le={...W,[$]:!W[$]};return setTimeout(()=>{var oe;(oe=T.current)==null||oe.resetAfterIndex(L)},0),le})},_e=({index:$,style:L})=>{if(!z($))return l.jsx(R,{style:L});const W=d[$];return l.jsx("div",{style:L,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:O,style:{visibility:r===0?"hidden":"visible"},children:m.translate("notificationAdmin.notify.markedRead",{defaultValue:"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:z,itemCount:P,loadMoreItems:M,threshold:10,children:({onItemsRendered:$,ref:L})=>l.jsx(kr,{height:u,itemCount:P,itemSize:re,width:"100%",onItemsRendered:$,ref:W=>{T.current=W,typeof L=="function"&&L(W)},children:_e})})})})]})},Yo=({baseUrl:e,notiPath:t,brandColors:n})=>{var f,d;const r=C.useRef(null),{setShowModalFalse:o}=C.useContext(m.CustomOpenList),{notidata:i}=C.useContext(m.CustomOpenList);console.log(i),C.useEffect(()=>{const h=b=>{!(!!b.composedPath?b.composedPath():[b.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:`${m.translate("notificationAdmin.notify.allNotification",{defaultValue:"All"})} (${((f=i==null?void 0:i.all)==null?void 0:f.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`${m.translate("notificationAdmin.notify.unreadNotification",{defaultValue:"Unread"})} (${((d=i==null?void 0:i.unread)==null?void 0:d.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:m.translate("notificationAdmin.notify.title",{defaultValue:"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 d,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=C.useContext(m.CustomOpenList),{notidata:c,setNotiData:u}=C.useContext(m.CustomOpenList),f=Tr({baseUrl:t,notiPath:n,setNotiData:u});return C.useEffect(()=>{(async()=>{var b,y;try{const[a]=await Promise.all([f(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){m.pushError(((y=(b=a.response)==null?void 0:b.data)==null?void 0:y.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:((d=c==null?void 0:c.unread)==null?void 0:d.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:1100;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({}),Pr=!0;function ni({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=Pr,customHighlightBackground:f}){const d={};return s==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}s`),u||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof r=="string"||typeof r=="number")&&(d.height=r),(typeof o=="string"||typeof o=="number")&&(d.borderRadius=o),i&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof f=="string"&&(d["--custom-highlight-background"]=f),d}function Or({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,f,d;const h=C.useContext(ti),p={...c};for(const[S,T]of Object.entries(c))typeof T>"u"&&delete p[S];const b={...h,...p,circle:i},y={...s,...ni(b)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const g=(u=b.inline)!==null&&u!==void 0?u:!1,v=[],w=Math.ceil(e);for(let S=0;S<w;S++){let T=y;if(w>e&&S===w-1){const _=(f=T.width)!==null&&f!==void 0?f:"100%",E=e%1,M=typeof _=="number"?_*E:`calc(${_} * ${E})`;T={...T,width:M}}const x=C.createElement("span",{className:a,style:T,key:S},"");g?v.push(x):v.push(C.createElement(C.Fragment,{key:S},x,C.createElement("br",null)))}return C.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(d=b.enableAnimation)!==null&&d!==void 0?d:Pr},t?v.map((S,T)=>C.createElement(t,{key:T},S)):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 Ar({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=f=>{c==null||c.addEventListener("click",function(d){if(n&&s&&s.contains(d.target)){if(i&&!i.contains(d.target))return}else i&&!i.contains(d.target)&&t()}),r&&!r.contains(f.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 jr(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 f=i[u];if(!ue(f))return;if(c===s.length-1&&(ve(f)||jr(f)||li(f)))n.push(ci(f));else if(Ee(f)){r=!0;for(let d=0,h=f.length;d<h;d+=1)o(f[d],s,c+1)}else s.length&&o(f,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 A={...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=A.getFn,fieldNormWeight:n=A.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:f,value:d}=u.pop();if(ue(d))if(ve(d)&&!Gt(d)){let h={v:d,i:f,n:this.norm.get(d)};c.push(h)}else Ee(d)&&d.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 Lr(e,t,{getFn:n=A.getFn,fieldNormWeight:r=A.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=A.getFn,fieldNormWeight:n=A.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=A.distance,ignoreLocation:i=A.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=A.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 Ae=32;function Ti(e,t,n,{location:r=A.location,distance:o=A.distance,threshold:i=A.threshold,findAllMatches:s=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,includeMatches:u=A.includeMatches,ignoreLocation:f=A.ignoreLocation}={}){if(t.length>Ae)throw new Error(hi(Ae));const d=t.length,h=e.length,p=Math.max(0,Math.min(r,h));let b=i,y=p;const a=c>1||u,g=a?Array(h):[];let v;for(;(v=e.indexOf(t,y))>-1;){let E=dt(t,{currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:f});if(b=Math.min(E,b),y=v+d,a){let M=0;for(;M<d;)g[v+M]=1,M+=1}}y=-1;let w=[],S=1,T=d+h;const x=1<<d-1;for(let E=0;E<d;E+=1){let M=0,P=T;for(;M<P;)dt(t,{errors:E,currentLocation:p+P,expectedLocation:p,distance:o,ignoreLocation:f})<=b?M=P:T=P,P=Math.floor((T-M)/2+M);T=P;let z=Math.max(1,p-P+1),I=s?h:Math.min(p+P,h)+d,O=Array(I+2);O[I+1]=(1<<E)-1;for(let K=I;K>=z;K-=1){let re=K-1,ce=n[e.charAt(re)];if(a&&(g[re]=+!!ce),O[K]=(O[K+1]<<1|1)&ce,E&&(O[K]|=(w[K+1]|w[K])<<1|1|w[K+1]),O[K]&x&&(S=dt(t,{errors:E,currentLocation:re,expectedLocation:p,distance:o,ignoreLocation:f}),S<=b)){if(b=S,y=re,y<=p)break;z=Math.max(1,2*p-y)}}if(dt(t,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:f})>b)break;w=O}const _={isMatch:y>=0,score:Math.max(.001,S)};if(a){const E=Ci(g,c);E.length?u&&(_.indices=E):_.isMatch=!1}return _}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 zr{constructor(t,{location:n=A.location,threshold:r=A.threshold,distance:o=A.distance,includeMatches:i=A.includeMatches,findAllMatches:s=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,isCaseSensitive:u=A.isCaseSensitive,ignoreLocation:f=A.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,b)=>{this.chunks.push({pattern:p,alphabet:Ii(p),startIndex:b})},h=this.pattern.length;if(h>Ae){let p=0;const b=h%Ae,y=h-b;for(;p<y;)d(this.pattern.substr(p,Ae),p),p+=Ae;if(b){const a=h-Ae;d(this.pattern.substr(a),a)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let y={isMatch:!0,score:0};return r&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:f}=this.options;let d=[],h=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:a,startIndex:g})=>{const{isMatch:v,score:w,indices:S}=Ti(t,y,a,{location:o+g,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:f});v&&(p=!0),h+=w,v&&S&&(d=[...d,...S])});let b={isMatch:p,score:p?h/this.chunks.length:1};return p&&r&&(b.indices=d),b}}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 Pi 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 Oi 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 Ai 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 ji 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=A.location,threshold:r=A.threshold,distance:o=A.distance,includeMatches:i=A.includeMatches,findAllMatches:s=A.findAllMatches,minMatchCharLength:c=A.minMatchCharLength,isCaseSensitive:u=A.isCaseSensitive,ignoreLocation:f=A.ignoreLocation}={}){super(t),this._bitapSearch=new zr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f})}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,Pi,Oi,ji,Ai,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,f=-1;for(;!u&&++f<Wn;){const d=Jt[f];let h=d.isMultiMatch(c);h&&(o.push(new d(h,t)),u=!0)}if(!u)for(f=-1;++f<Wn;){const d=Jt[f];let h=d.isSingleMatch(c);if(h){o.push(new d(h,t));break}}}return o})}const Li=new Set([Fr.type,Dr.type]);class zi{constructor(t,{isCaseSensitive:n=A.isCaseSensitive,includeMatches:r=A.includeMatches,minMatchCharLength:o=A.minMatchCharLength,ignoreLocation:i=A.ignoreLocation,findAllMatches:s=A.findAllMatches,location:c=A.location,threshold:u=A.threshold,distance:f=A.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:f},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,f=n.length;u<f;u+=1){const d=n[u];s.length=0,i=0;for(let h=0,p=d.length;h<p;h+=1){const b=d[h],{isMatch:y,indices:a,score:g}=b.search(t);if(y){if(i+=1,c+=g,r){const v=b.constructor.type;Li.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 zr(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],f=s?o[tn.PATTERN]:o[u];if(!ve(f))throw new Error(fi(u));const d={keyId:Xt(u),pattern:f};return n&&(d.searcher=en(f,t)),d}let c={children:[],operator:i[0]};return i.forEach(u=>{const f=o[u];Ee(f)&&f.forEach(d=>{c.children.push(r(d))})}),c};return nn(e)||(e=Un(e)),r(e)}function Bi(e,{ignoreFieldNorm:t=A.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=A.includeMatches,includeScore:r=A.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={...A,...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||Lr(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),jr(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:f,indices:d}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:f,value:i,norm:c,indices:d}]})}),o}_searchLogical(t){const n=Hr(t,this.options),r=(c,u,f)=>{if(!c.children){const{keyId:h,searcher:p}=c,b=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:p});return b&&b.length?[{idx:f,item:u,matches:b}]:[]}const d=[];for(let h=0,p=c.children.length;h<p;h+=1){const b=c.children[h],y=r(b,u,f);if(y.length)d.push(...y);else if(c.operator===St.AND)return[]}return d},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let f=r(n,c,u);f.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),f.forEach(({matches:d})=>{i[u].matches.push(...d)}))}}),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((f,d)=>{u.push(...this._findMatches({key:f,value:s[d],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:f,indices:d}=r.searchIn(i);u&&o.push({score:f,key:t,value:i,idx:s,norm:c,indices:d})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:f}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:f})}return o}}Ue.version="6.6.2";Ue.createIndex=Lr;Ue.parseIndex=Ei;Ue.config=A;Ue.parseQuery=Hr;Fi(zi);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:f=!0,showNoResultsText:d="No results"}){const h=u||(y=>y[i]),p=y=>{t(y),n(y[i])},b=({event:y,result:a})=>{y.button===0&&(y.preventDefault(),p(a))};return f?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:d})]})}):(e==null?void 0:e.length)<=0&&!f?null:l.jsx(Kn,{children:e.slice(0,o).map((y,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:g=>b({event:g,result:y}),onClick:()=>p(y),children:[l.jsx(rn,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(y)})]},`rsa-result-${y.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:f=!0,maxLength:d}){const h=C.useRef(null);let p=!0;const b=()=>{p=!1,h!=null&&h.current&&h.current.focus(),p=!0},y=g=>{p&&i(g)},a=d?{maxLength:d}:{};return C.useEffect(()=>{document.querySelector("global-topbar");const g=v=>{const w=document.getElementById("AddTagButton"),S=document.getElementsByClassName("btn-edit");["a","e","t"].includes(v.key.toLowerCase())&&((S==null?void 0:S.length)>0&&S[0].addEventListener("click",x=>{const _=document.querySelector("global-topbar"),E=_!=null?_.shadowRoot:document,M=E.getElementById("GlobalSearchInput");E.activeElement===M?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0),w!=null&&w.addEventListener("click",x=>{const _=document.querySelector("global-topbar"),E=_!=null?_.shadowRoot:document,M=E.getElementById("GlobalSearchInput");E.activeElement===M?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0))};return document.addEventListener("keydown",g,!0),()=>document.removeEventListener("keydown",g,!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:h,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:y,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:g=>{var v;if(g.key==="Enter"){const w=document.querySelector("global-topbar");if((w!=null?w.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",g);const T=g.currentTarget.value;(v=window.top)==null||v.shellNavigate(`/app/stella/page/Search/Index?Term=${T}`);return}}n({event:g})},"data-test":"search-input",...a}),l.jsx(qi,{showClear:f,setSearchString:t,searchString:e,onClear:s,setFocus:b})]})}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:f=!0,showClear:d=!0,maxResults:h=Ji,placeholder:p="",autoFocus:b=!1,styling:y={},resultStringKeyName:a="name",inputSearchString:g="",formatResult:v,showNoResults:w=!0,showNoResultsText:S="No results",showItemsOnFocus:T=!1,maxLength:x=0,baseUrl:_=""}){({...y});const E={...Gn,...t},M=new Ue(e,E);M.setCollection(e);const[P,z]=C.useState(g),[I,O]=C.useState([]),[R,K]=C.useState(-1),[re,ce]=C.useState(!1),[_e,$]=C.useState(!1),[L,W]=C.useState(!1),[le,oe]=C.useState(!1);C.useEffect(()=>{z(g);const F=setTimeout(()=>O(lt(g)),0);return()=>clearTimeout(F)},[g]),C.useEffect(()=>{(P==null?void 0:P.length)>=3?e&&(e==null?void 0:e.length)>0&&O(e):O([])},[e]),C.useEffect(()=>{const F=()=>{je(),oe(!1)};return document.addEventListener("click",F),()=>document.removeEventListener("click",F)},[]),C.useEffect(()=>{(()=>{w&&P.length>0&&!_e&&I.length===0&&!re?W(!0):W(!1),T&&I.length===0&&P.length===0&&le&&O(e.slice(0,h))})()},[_e,w,re,P,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)),O(k),r(F,k),$(!1)},ye=C.useCallback(n>0?Gi(F=>Q(F),n):F=>Q(F),[e]),qe=F=>{je(),i(F),z(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;z(k),ye(k),$(!0),re&&ce(!1)},je=()=>{O([]),ce(!0)},ut=({index:F,event:k})=>{let Te=-1;const Oe=$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(P,I),K(-1),je();break;case"ArrowUp":k.preventDefault(),Te=R>-1?R-1:I.length-1,Oe(Te);break;case"ArrowDown":k.preventDefault(),Te=R<I.length-1?R+1:-1,Oe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Zi,{searchString:P,setSearchString:Bt,eraseResults:je,autoFocus:b,onFocus:te,onClear:c,placeholder:p,showIcon:!0,showClear:d,setHighlightedItem:ut,maxLength:x,baseUrl:_})}),l.jsx(Yi,{results:I,onClick:qe,setSearchString:z,showIcon:f,maxResults:h,resultStringKeyName:a,formatResult:v,highlightedItem:R,setHighlightedItem:ut,showNoResultsFlag:L,showNoResultsText:S})]})})}function es({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:f,logout:d,disabledLogoClick:h=!1}=t,p={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[b,y]=C.useState(!1),{Term:a}=gn.useParams();console.log("term",a);const[g,v]=C.useState([]),[w,S]=C.useState([]),T=oi({baseUrl:o});console.log("searchPermission",T.hasPermission),C.useEffect(()=>{g.length>=3?x(g):S([])},[g]);const x=async I=>{await fetch(`/stella/page/Search/Suggestions?term=${I}`).then(O=>O.json()).then(O=>{S(O),console.log(O)}).catch(O=>{console.error(O)})},_=I=>{console.log(I)},E=(I,O)=>{v(I),console.log(I,O)},M=I=>{const O=I.entityType,R=I.entityId;switch(O){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 ${O} ${R}`);return}},P=()=>{const I=document.querySelector("global-topbar"),R=(I!=null?I.shadowRoot:document).getElementById("GlobalSearchInput");R&&R.value.length>=3&&(setTimeout(()=>{},1e3),x(R.value))},z=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:"calc(var(--menu-z-index) + 1)"},className:"backdrop-delay-transition",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:[f&&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:_,onSelect:M,onFocus:P,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:z,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):"",t.customElement,l.jsx("span",{children:l.jsxs(m.CustomOpenListProvider,{children:[l.jsx(jo,{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:y}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Or,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})}),l.jsx(m.LogoutConfirmModal,{isOpen:b,onClose:()=>y(!1),onConfirm:d})]})}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(()=>{Ar({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(f=>f.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(()=>{Ar({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:"top-right",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(),m.setShellBackdrop(!0)},open:t.value,onClose:()=>{t.setFalse(),m.setShellBackdrop(!1)},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"})})}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(j.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=>{j.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 ps=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 ms=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
|
*
|