@ambuj.bhaskar/react-component-library 0.11.3-alpha → 0.11.4-alpha

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/index.cjs CHANGED
@@ -265,7 +265,7 @@ html body {
265
265
  &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
266
266
  &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:s2},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
267
267
  &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:d2},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
268
- &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:c2},[`${t}-panel > ${t}-time-panel`]:{paddingTop:R},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${$} ease-out`},b8(e,H,F)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:V,boxShadow:j,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:O,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${we(s)} ${c} ${U}`,li:Object.assign(Object.assign({},dc),{borderRadius:q,paddingInline:h,paddingBlock:e.calc(y).sub(P).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${we(e.calc(D).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},hc(e,"slide-up"),hc(e,"slide-down"),gc(e,"move-up"),gc(e,"move-down")]},h9=la("DatePicker",e=>{const t=Rn(o9(e),LD(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[xD(t),OD(t),_D(t),RD(t),wD(t),jc(e,{focusElCls:`${e.componentCls}-focused`})]},$D);var PD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},ID=function(t,n){return i.createElement(Cr,Ze({},t,{ref:n,icon:PD}))},A2=i.forwardRef(ID);process.env.NODE_ENV!=="production"&&(A2.displayName="CalendarOutlined");var FD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},DD=function(t,n){return i.createElement(Cr,Ze({},t,{ref:n,icon:FD}))},H2=i.forwardRef(DD);process.env.NODE_ENV!=="production"&&(H2.displayName="ClockCircleOutlined");var ND={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},TD=function(t,n){return i.createElement(Cr,Ze({},t,{ref:n,icon:ND}))},p9=i.forwardRef(TD);process.env.NODE_ENV!=="production"&&(p9.displayName="SwapRightOutlined");function AD(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function HD(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function C9(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=m8(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[VD,kD]=["week","WeekPicker"],[BD,jD]=["month","MonthPicker"],[zD,ZD]=["year","YearPicker"],[WD,UD]=["quarter","QuarterPicker"],[b9,r7]=["time","TimePicker"],qD=e=>i.createElement(Po,Object.assign({size:"small",type:"primary"},e));function y9(e){return I.useMemo(()=>Object.assign({button:qD},e),[e])}var YD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const GD=e=>{const t=I.forwardRef((n,r)=>{var a;const{prefixCls:s,getPopupContainer:c,components:u,className:d,style:m,placement:f,size:g,disabled:p,bordered:C=!0,placeholder:y,popupClassName:b,dropdownClassName:h,status:S,rootClassName:E,variant:x,picker:L}=n,$=YD(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),M=i.useRef(null),{getPrefixCls:R,direction:D,getPopupContainer:H,rangePicker:V}=I.useContext(gn),j=R("picker",s),{compactSize:q,compactItemClassnames:U}=Nc(j,D),A=R(),[B,O]=_2("rangePicker",x,C),F=Ll(j),[P,z,k]=h9(j,F);if(process.env.NODE_ENV!=="production"){const ne=dr("DatePicker.RangePicker");ne.deprecated(!h,"dropdownClassName","popupClassName"),ne.deprecated(!("bordered"in n),"bordered","variant")}const[Z]=C9(n,j),Y=y9(u),J=_l(ne=>{var oe;return(oe=g??q)!==null&&oe!==void 0?oe:ne}),X=i.useContext(Qa),ce=p??X,de=I.useContext(pi),{hasFeedback:re,status:ve,feedbackIcon:he}=de,me=i.createElement(i.Fragment,null,L===b9?i.createElement(H2,null):i.createElement(A2,null),re&&he);I.useImperativeHandle(r,()=>M.current);const[le]=ro("Calendar",sc),se=Object.assign(Object.assign({},le),n.locale),[ue]=Ml("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return P(i.createElement(Zc,{space:!0},i.createElement(n9,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${j}-separator`},i.createElement(p9,null)),disabled:ce,ref:M,placement:f,placeholder:HD(se,L,y),suffixIcon:me,prevIcon:i.createElement("span",{className:`${j}-prev-icon`}),nextIcon:i.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:L},$,{className:_e({[`${j}-${J}`]:J,[`${j}-${B}`]:O},M2(j,$2(ve,S),re),z,U,d,V==null?void 0:V.className,k,F,E),style:Object.assign(Object.assign({},V==null?void 0:V.style),m),locale:se.lang,prefixCls:j,getPopupContainer:c||H,generateConfig:e,components:Y,direction:D,classNames:{popup:_e(z,b||h,k,F,E)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ue})},allowClear:Z}))))});return process.env.NODE_ENV!=="production"&&(t.displayName="RangePicker"),t};var KD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const XD=e=>{const t=(d,m)=>{const f=m===r7?"timePicker":"datePicker",g=I.forwardRef((p,C)=>{var y;const{prefixCls:b,getPopupContainer:h,components:S,style:E,className:x,rootClassName:L,size:$,bordered:M,placement:R,placeholder:D,popupClassName:H,dropdownClassName:V,disabled:j,status:q,variant:U,onCalendarChange:A}=p,B=KD(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:O,direction:F,getPopupContainer:P,[f]:z}=I.useContext(gn),k=O("picker",b),{compactSize:Z,compactItemClassnames:Y}=Nc(k,F),J=i.useRef(null),[X,ce]=_2("datePicker",U,M),de=Ll(k),[re,ve,he]=h9(k,de);I.useImperativeHandle(C,()=>J.current);const me={showToday:!0},le=d||p.picker,se=O(),{onSelect:ue,multiple:ne}=B,oe=ue&&d==="time"&&!ne,ge=(it,Xe,Ee)=>{A==null||A(it,Xe,Ee),oe&&ue(it)};if(process.env.NODE_ENV!=="production"){const it=dr(m||"DatePicker");process.env.NODE_ENV!=="production"&&it(d!=="quarter","deprecated",`DatePicker.${m} is legacy usage. Please use DatePicker[picker='${d}'] directly.`),it.deprecated(!V,"dropdownClassName","popupClassName"),it.deprecated(!("bordered"in p),"bordered","variant"),it.deprecated(!oe,"onSelect","onCalendarChange")}const[Ce,Re]=C9(p,k),Oe=y9(S),He=_l(it=>{var Xe;return(Xe=$??Z)!==null&&Xe!==void 0?Xe:it}),Pe=i.useContext(Qa),Ue=j??Pe,Ve=I.useContext(pi),{hasFeedback:ut,status:pt,feedbackIcon:Je}=Ve,qe=i.createElement(i.Fragment,null,le==="time"?i.createElement(H2,null):i.createElement(A2,null),ut&&Je),[Ct]=ro("DatePicker",sc),et=Object.assign(Object.assign({},Ct),p.locale),[nt]=Ml("DatePicker",(y=p.popupStyle)===null||y===void 0?void 0:y.zIndex);return re(i.createElement(Zc,{space:!0},i.createElement(a9,Object.assign({ref:J,placeholder:AD(et,le,D),suffixIcon:qe,placement:R,prevIcon:i.createElement("span",{className:`${k}-prev-icon`}),nextIcon:i.createElement("span",{className:`${k}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${k}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${k}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:d,onCalendarChange:ge},me,B,{locale:et.lang,className:_e({[`${k}-${He}`]:He,[`${k}-${X}`]:ce},M2(k,$2(pt,q),ut),ve,Y,z==null?void 0:z.className,x,he,de,L),style:Object.assign(Object.assign({},z==null?void 0:z.style),E),prefixCls:k,getPopupContainer:h||P,generateConfig:e,components:Oe,direction:F,disabled:Ue,classNames:{popup:_e(ve,he,de,L,H||V)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:nt})},allowClear:Ce,removeIcon:Re}))))});return process.env.NODE_ENV!=="production"&&m&&(g.displayName=m),g},n=t(),r=t(VD,kD),a=t(BD,jD),s=t(zD,ZD),c=t(WD,UD),u=t(b9,r7);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:s,TimePicker:u,QuarterPicker:c}},w9=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:s,QuarterPicker:c}=XD(e),u=GD(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=u,d.TimePicker=s,d.QuarterPicker=c,process.env.NODE_ENV!=="production"&&(d.displayName="DatePicker"),d},Li=w9(gF),QD=p2(Li,"popupAlign",void 0,"picker");Li._InternalPanelDoNotUseOrYouWillBeFired=QD;const JD=p2(Li.RangePicker,"popupAlign",void 0,"picker");Li._InternalRangePanelDoNotUseOrYouWillBeFired=JD;Li.generatePicker=w9;var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tN=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:s,title:c,children:u,footer:d}=e,m=eN(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=i.useContext(gn),g=f(),p=t||f("modal"),C=Ll(g),[y,b,h]=Mf(p,C),S=`${p}-confirm`;let E={};return s?E={closable:a??!1,title:"",footer:"",children:i.createElement(_f,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:g,content:u}))}:E={closable:a??!0,title:c,footer:d!==null&&i.createElement(Ef,Object.assign({},e)),children:u},y(i.createElement(m2,Object.assign({prefixCls:p,className:_e(b,`${p}-pure-panel`,s&&S,s&&`${S}-${s}`,n,h,C)},m,{closeIcon:wf(p,r),closable:a},E)))},nN=Af(tN);function E9(e){return Il(If(e))}const Qr=$f;Qr.useModal=LO;Qr.info=function(t){return Il(Ff(t))};Qr.success=function(t){return Il(Df(t))};Qr.error=function(t){return Il(Nf(t))};Qr.warning=E9;Qr.warn=E9;Qr.confirm=function(t){return Il(Tf(t))};Qr.destroyAll=function(){for(;wo.length;){const t=wo.pop();t&&t()}};Qr.config=yO;Qr._InternalPanelDoNotUseOrYouWillBeFired=nN;process.env.NODE_ENV!=="production"&&(Qr.displayName="Modal");var rN=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],S9=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,s=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,m=e.loadingIcon,f=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,C=e.onChange,y=e.onKeyDown,b=an(e,rN),h=rr(!1,{value:c,defaultValue:u}),S=te(h,2),E=S[0],x=S[1];function L(D,H){var V=E;return d||(V=D,x(V),C==null||C(V,H)),V}function $(D){D.which===Te.LEFT?L(!1,D):D.which===Te.RIGHT&&L(!0,D),y==null||y(D)}function M(D){var H=L(!E,D);p==null||p(H,D)}var R=_e(a,s,(n={},Q(n,"".concat(a,"-checked"),E),Q(n,"".concat(a,"-disabled"),d),n));return i.createElement("button",Ze({},b,{type:"button",role:"switch","aria-checked":E,disabled:d,className:R,ref:t,onKeyDown:$,onClick:M}),m,i.createElement("span",{className:"".concat(a,"-inner")},i.createElement("span",{className:"".concat(a,"-inner-checked")},f),i.createElement("span",{className:"".concat(a,"-inner-unchecked")},g)))});S9.displayName="Switch";const aN=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:s,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,m=`${t}-inner`,f=we(d(u).add(d(r).mul(2)).equal()),g=we(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:we(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:s,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${g})`,marginInlineEnd:`calc(100% - ${f} + ${g})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:c,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${g})`,marginInlineEnd:`calc(-100% + ${f} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${we(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},oN=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iN=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:s,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(s).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${we(c(s).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},lN=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:s,handleSize:c,calc:u}=e,d=`${t}-inner`,m=we(u(c).add(u(r).mul(2)).equal()),f=we(u(s).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},sN=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ga(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:we(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),n2(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},cN=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,s=t*n,c=r/2,u=2,d=s-u*2,m=c-u*2;return{trackHeight:s,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:m*2+u*2,trackPadding:u,handleBg:a,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+u+u*2}},uN=la("Switch",e=>{const t=Rn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[sN(t),lN(t),iN(t),oN(t),aN(t)]},cN);var dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fN=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:s,className:c,rootClassName:u,style:d,checked:m,value:f,defaultChecked:g,defaultValue:p,onChange:C}=e,y=dN(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,h]=rr(!1,{value:m??f,defaultValue:g??p}),{getPrefixCls:S,direction:E,switch:x}=i.useContext(gn),L=i.useContext(Qa),$=(a??L)||s,M=S("switch",n),R=i.createElement("div",{className:`${M}-handle`},s&&i.createElement(Ic,{className:`${M}-loading-icon`})),[D,H,V]=uN(M),j=_l(r),q=_e(x==null?void 0:x.className,{[`${M}-small`]:j==="small",[`${M}-loading`]:s,[`${M}-rtl`]:E==="rtl"},c,u,H,V),U=Object.assign(Object.assign({},x==null?void 0:x.style),d),A=function(){h(arguments.length<=0?void 0:arguments[0]),C==null||C.apply(void 0,arguments)};return D(i.createElement(l2,{component:"Switch"},i.createElement(S9,Object.assign({},y,{checked:b,onChange:A,prefixCls:M,className:q,style:U,disabled:$,ref:t,loadingIcon:R}))))}),V2=fN;V2.__ANT_SWITCH=!0;process.env.NODE_ENV!=="production"&&(V2.displayName="Switch");const x9=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:a="start",className:s="",triggerBackgroundColor:c="#29292929",menuBackgroundColor:u="white",menuActiveColor:d="#ffcc00",menuHoverColor:m="#ffcc00",borderColor:f="#29292955",searchable:g=!0,disabled:p=!1,width:C="300px",height:y="m",id:b="",suffixIcon:h=!0})=>pe.jsx(ao,{id:b,className:`${s} single_select_container h_${y} items_${a} ${f?"border":""}`,suffixIcon:h?void 0:null,style:{width:C,"--c_trigger_background":c,"--c_menu_background":u,"--c_menu_active":d,"--c_menu_hover":m,"--c_border":`1px solid ${f}`},value:n,onChange:t,showSearch:g,placeholder:r,disabled:p,popupClassName:`single_select_dropdown h_${y} items_${a} ${f?"border":""}`,removeIcon:!0,filterOption:(S,E)=>((E==null?void 0:E.label)??"").toLowerCase().includes(S.toLowerCase()),options:e}),vN=e=>`https://flagsapi.com/${e}/flat/64.png`,Bs=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],mN=({value:e="",onChange:t=d=>{},height:n="m",width:r="16rem",className:a="",placeholder:s="XXXXXX XXXXX",separator:c=" ",disabled:u=!1})=>{var p,C;const[d,m]=I.useState(e!=null&&e.includes(c)?e.split(c)[0]:(p=Bs[89])==null?void 0:p.dialingCode),f=y=>{var b;m(String(y)),t(y+c+(((b=e.split(c))==null?void 0:b[1])||""))},g=y=>{const{value:b}=y.target;t(d+c+b)};return pe.jsxs("div",{className:`contact_input ${a}`,style:{width:r},children:[pe.jsx(x9,{options:Bs==null?void 0:Bs.map(y=>({label:pe.jsx("img",{src:vN(y.countryCode)}),value:y==null?void 0:y.dialingCode})),placement:"center",value:d,onChange:f,suffixIcon:!1,disabled:u,height:n,width:"25%",searchable:!1}),pe.jsx(V1,{value:d,readOnly:!0,height:n,width:"25%",disabled:u}),pe.jsx(V1,{value:(C=e.split(c))==null?void 0:C[1],placeholder:s,onChange:g,height:n,width:"50%",disabled:u})]})},gN="DD MMM YY - HH:mm:ss",hN=[{label:"Today",value:[En().startOf("day"),En().endOf("day")]},{label:"This Week",value:[En().startOf("week"),En().endOf("week")]},{label:"Last 7 Days",value:[En().subtract(7,"days"),En()]},{label:"This Month",value:[En().startOf("month"),En().endOf("month")]},{label:"Last 30 Days",value:[En().subtract(30,"days"),En()]}],pN=e=>e&&e.isAfter(En().endOf("day")),{RangePicker:CN}=Li,bN=({value:e,onChange:t,className:n="",showTime:r=!0,format:a=gN,presetRanges:s=hN,width:c="24rem",triggerBackgroundColor:u="#29292929",triggerBorderColor:d="#29292955",pickerHighlightColor:m="#fc0",pickerRangeColor:f="#ffcc00bb",pickerBackgroundColor:g="fff",pickerBorderColor:p="rgb(234, 235, 238)",disabledDate:C=()=>!1,disableFutureDates:y=!1,...b})=>{const h=e?[En(e[0]),En(e[1])]:void 0,S=E=>{if(t&&E){const x=E.map(L=>(L==null?void 0:L.toDate())||new Date);t(x)}else t&&t([])};return pe.jsx(CN,{showTime:r,...b,value:h,onChange:S,format:a,presets:s,disabledDate:y?pN:C,style:{width:c,"--c_trigger_background":u,"--c_trigger_border":d,"--c_highlight":m,"--c_date_range_fill":f,"--c_surface_border":p,"--c_surface":g},className:`date-range-picker ${n} ${d?"border":""}`})};var al=(e=>(e.NEXT="next",e.PREV="prev",e))(al||{});const L9=({title:e="Object Detected",height:t="100%",width:n="100%",data:r})=>{var f,g,p,C,y,b;const[a,s]=I.useState(0),c=(r==null?void 0:r[a])??{},u=h=>{h===al.NEXT?s(S=>(S+1)%(r==null?void 0:r.length)):h===al.PREV&&s(S=>(S-1+(r==null?void 0:r.length))%(r==null?void 0:r.length))},d=()=>{const h=c==null?void 0:c.score;if(h)return`${(h*100).toFixed(2)}%`},m=h=>h.split("_").join(" ");return r?pe.jsxs("div",{className:"event_preview_carousel_container",style:{width:n,height:t},children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:e}),pe.jsxs("p",{className:"font_secondary",children:["(",a+1,"/",r==null?void 0:r.length,")"]})]}),pe.jsxs("div",{className:"carousel_card",children:[pe.jsxs("div",{className:"carousel_card_images",children:[((f=c==null?void 0:c.detection)==null?void 0:f.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Detection"}),pe.jsx("img",{src:(g=c==null?void 0:c.detection)==null?void 0:g.image,alt:"Detected Image"})]}),((p=c==null?void 0:c.match)==null?void 0:p.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Match"}),pe.jsx("img",{src:(C=c==null?void 0:c.match)==null?void 0:C.image,alt:"Matched Image"})]})]}),(y=c==null?void 0:c.labels)!=null&&y[0]?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Label"}),pe.jsx("h6",{className:"capatalize_first_letter",children:((b=c==null?void 0:c.labels)==null?void 0:b[0])||"N.A."})]}):pe.jsx(pe.Fragment,{}),d()?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Score"}),pe.jsx("h6",{className:"font_secondary",children:d()})]}):pe.jsx(pe.Fragment,{}),pe.jsx("div",{className:"object_attributes_container",children:(r==null?void 0:r.length)>0&&(c!=null&&c.attributes)?pe.jsxs(pe.Fragment,{children:[pe.jsx("h6",{children:"Object Attributes"}),Object.keys(c.attributes).map((h,S)=>{var E,x;return pe.jsxs("div",{className:"event_preview_carousel_attribute",children:[pe.jsx("p",{className:"text_s capatalize_first_letter",title:m(h)||h,children:m(h)||h}),pe.jsx("h6",{className:"text_s capatalize_first_letter font_secondary",title:((E=c==null?void 0:c.attributes)==null?void 0:E[h])||"N.A.",children:((x=c==null?void 0:c.attributes)==null?void 0:x[h])||"N.A."})]},S)})||pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes found"})]}):pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes"})})]}),(r==null?void 0:r.length)>1&&pe.jsxs("footer",{className:"event_preview_carousel_footer",children:[pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"leftArrow",content:"Prev Object",textSize:"xs",onClick:()=>u(al.PREV)}),pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"rightArrow",iconPosition:"after",content:"Next Object",textSize:"xs",onClick:()=>u(al.NEXT)})]})]}):pe.jsx(pe.Fragment,{})},a7=new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"short",year:"numeric"}),o7=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),el=e=>{e.scrollIntoView({behavior:"smooth",block:"center"})},yN=({title:e="Event Preview",icon:t,data:n,width:r="60rem",height:a="40rem",focusedIndex:s=0,setFocusedIndex:c})=>{var f;const u=n,d=u==null?void 0:u[s];d!=null&&d.appName&&(e=d==null?void 0:d.appName),d!=null&&d.appName&&(t=d==null?void 0:d.icon);const m=I.useCallback(g=>{switch(g.key){case"ArrowUp":if(s===0)return;el(g.target),c==null||c(s-1);break;case"ArrowDown":if(s===(u==null?void 0:u.length)-1)return;el(g.target),c==null||c(s+1);break}},[s,u==null?void 0:u.length,c]);return I.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m]),pe.jsx("div",{className:`event_preview_window ${u!=null&&u.length?"":"empty"}`,style:{height:a,width:r},children:(u==null?void 0:u.length)==0||d==null?pe.jsx("p",{children:"No data found! 📊"}):pe.jsxs(pe.Fragment,{children:[pe.jsxs("span",{className:"event_preview_dialog_header",children:[pe.jsx("span",{className:"event_preview_dialog_header_icon",children:t&&pe.jsx("img",{src:t,alt:e})}),pe.jsx("span",{className:"event_preview_dialog_header_content",title:e,children:pe.jsx("h6",{className:"hydra_text_limit",children:e})})]}),pe.jsxs("div",{className:"event_preview_content_container",children:[pe.jsxs("span",{className:"event_preview_image_container",children:[pe.jsx("img",{src:d==null?void 0:d.frameUrl,alt:"Alert"}),pe.jsxs("div",{className:"event_preview_image_footer",children:[pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${d==null?void 0:d.color})`}}),pe.jsx("p",{children:"Severity"}),pe.jsx("h5",{title:d==null?void 0:d.severity,children:(f=d==null?void 0:d.severity)==null?void 0:f.toLocaleLowerCase()})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Source"}),pe.jsx("h5",{title:d==null?void 0:d.location,children:d==null?void 0:d.location})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Date"}),pe.jsx("h5",{title:a7.format(new Date(d==null?void 0:d.timeStamp)),children:a7.format(new Date(d==null?void 0:d.timeStamp))})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Time"}),pe.jsx("h5",{title:o7.format(new Date(d==null?void 0:d.timeStamp)),children:o7.format(new Date(d==null?void 0:d.timeStamp))})]})]})]}),pe.jsx("span",{className:"event_preview_content",children:pe.jsx(L9,{data:d==null?void 0:d.blobs})}),pe.jsxs("span",{className:"event_preview_other_events_container",children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:"Events"}),pe.jsxs("p",{className:"font_secondary",children:["(",s+1,"/",u==null?void 0:u.length,")"]})]}),pe.jsx("div",{className:"event_preview_other_events",children:u==null?void 0:u.map((g,p)=>pe.jsx("div",{onClick:C=>{C.target.tagName!="INPUT"&&(el(C.target),c==null||c(p))},children:pe.jsx(f7,{data:g,isFocused:p==s},p)},g==null?void 0:g.id))}),pe.jsxs("footer",{children:[pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"arrowUp",content:"Prev Event",onClick:g=>{s!==0&&(el(g.target),c==null||c(s-1))},textSize:"xs"}),pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"arrowDown",content:"Next Event",onClick:g=>{s!==(u==null?void 0:u.length)-1&&(el(g.target),c==null||c(s+1))},textSize:"xs"})]})]})]})]})})},wN={xs:"16.67%",s:"25%",m:"37.5%",l:"53.54%",xl:"75%",full:"100%"},EN=({visible:e,onClose:t,showCloseButton:n=!0,size:r="xl",children:a})=>pe.jsx(Qr,{open:e,onCancel:t,footer:null,closable:n,maskClosable:!0,destroyOnClose:!0,width:wN[r],children:a}),SN=({options:e,onChange:t,value:n,placeholder:r="Select Items...",triggerHighlightColor:a="#29292955",triggerBackgroundColor:s="#29292929",menuBackgroundColor:c="white",menuActiveColor:u="rgba(255, 204, 0, 0.2)",menuHoverColor:d="rgba(255, 204, 0, 0.1)",borderColor:m="#29292955",disabled:f=!1,searchable:g=!0,maxTagCount:p="responsive",suffixIcon:C=!0,width:y="300px",height:b="m",id:h="",className:S=""})=>pe.jsx(ao,{id:h,disabled:f,showSearch:g,className:`multi_select_container ${S} h_${b} ${m?"border":""}`,mode:"multiple",style:{width:y,"--c_trigger_highlight":a,"--c_trigger_background":s,"--c_menu_background":c,"--c_menu_active":u,"--c_menu_hover":d,"--c_border":m},suffixIcon:C?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:`multi_select_dropdown h_${b} ${m?"border":""}`,value:n,filterOption:(E,x)=>((x==null?void 0:x.label)??"").toLowerCase().includes(E.toLowerCase()),maxTagCount:p,maxTagPlaceholder:E=>pe.jsx(R2,{styles:{root:{pointerEvents:"none"}},title:E.map(({label:x})=>x).join(", "),children:pe.jsxs("span",{children:["+",E.length]})})}),xN=({currentSection:e,currentSubSection:t,height:n="30rem",width:r="16rem",collapsedWidth:a="5.5rem",config:s,isOpen:c,onToggle:u})=>{var p,C,y;const[d,m]=I.useState(!0),f=c??d,g=()=>{const b=!f;m(b),u==null||u(b)};return pe.jsxs("span",{className:"awi_sidebar "+(f?"open":"closed"),style:{height:n,"--sidebar-width":r,"--sidebar-collapsed-width":a},children:[pe.jsxs("header",{className:"awi_sidebar_header",children:[f?pe.jsx(Eo,{name:s.header.logo,size:"auto",className:"awi_sidebar_logo open",onClick:s.header.logoClickAction}):pe.jsx(Eo,{size:"auto",name:s.header.logoCollapsed,className:"awi_sidebar_logo closed",onClick:s.header.logoClickAction}),pe.jsx(Eo,{name:f?"sidebarClose":"sidebarOpen",className:`awi_sidebar_close_icon ${f?"open":"closed"}`,onClick:g})]}),pe.jsx("main",{className:`awi_sidebar_body ${f?"open":"closed"}`,children:s.body.static.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(Lo,{variant:e==b.key?"primary":"nav",size:"l",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)}))}),pe.jsx("div",{className:"awi_sidebar_content_dynamic",children:(p=s.body.dynamic)!=null&&p[e]?(y=(C=s.body.dynamic)==null?void 0:C[e])==null?void 0:y.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(Lo,{variant:t==b.key?"primary":"secondary",size:"m",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)})):pe.jsx(pe.Fragment,{})}),pe.jsxs("footer",{className:`awi_sidebar_footer ${e==s.footer.key?"active":""}`,children:[pe.jsx("img",{src:s.footer.image,alt:"Footer or Profile Image"}),pe.jsxs("div",{className:"awi_sidebar_footer_content "+(f?"open":"closed"),children:[pe.jsx("p",{className:"title",children:s.footer.title}),pe.jsx("p",{className:"description",children:s.footer.description})]})]})]})},LN=({value:e=!1,disabled:t=!1,checkedChildren:n,unCheckedChildren:r,onChange:a=()=>{},loading:s=!1,uncheckedBackgroundColor:c="#29292955",checkedBackgroundColor:u="#ffcc00",disabledBackgroundColor:d="#29292929"})=>{const[m,f]=I.useState(e),g=e!==void 0,p=g?e:m,C=y=>{g||f(y),a==null||a(y)};return pe.jsx(V2,{checked:p,onChange:C,disabled:t,loading:s,checkedChildren:n,unCheckedChildren:r,style:{backgroundColor:t||s?d:p?u:c}})};var ol={exports:{}};/**
268
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:c2},[`${t}-panel > ${t}-time-panel`]:{paddingTop:R},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${$} ease-out`},b8(e,H,F)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:V,boxShadow:j,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:O,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${we(s)} ${c} ${U}`,li:Object.assign(Object.assign({},dc),{borderRadius:q,paddingInline:h,paddingBlock:e.calc(y).sub(P).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${we(e.calc(D).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},hc(e,"slide-up"),hc(e,"slide-down"),gc(e,"move-up"),gc(e,"move-down")]},h9=la("DatePicker",e=>{const t=Rn(o9(e),LD(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[xD(t),OD(t),_D(t),RD(t),wD(t),jc(e,{focusElCls:`${e.componentCls}-focused`})]},$D);var PD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},ID=function(t,n){return i.createElement(Cr,Ze({},t,{ref:n,icon:PD}))},A2=i.forwardRef(ID);process.env.NODE_ENV!=="production"&&(A2.displayName="CalendarOutlined");var FD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},DD=function(t,n){return i.createElement(Cr,Ze({},t,{ref:n,icon:FD}))},H2=i.forwardRef(DD);process.env.NODE_ENV!=="production"&&(H2.displayName="ClockCircleOutlined");var ND={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},TD=function(t,n){return i.createElement(Cr,Ze({},t,{ref:n,icon:ND}))},p9=i.forwardRef(TD);process.env.NODE_ENV!=="production"&&(p9.displayName="SwapRightOutlined");function AD(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function HD(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function C9(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=m8(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[VD,kD]=["week","WeekPicker"],[BD,jD]=["month","MonthPicker"],[zD,ZD]=["year","YearPicker"],[WD,UD]=["quarter","QuarterPicker"],[b9,r7]=["time","TimePicker"],qD=e=>i.createElement(Po,Object.assign({size:"small",type:"primary"},e));function y9(e){return I.useMemo(()=>Object.assign({button:qD},e),[e])}var YD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const GD=e=>{const t=I.forwardRef((n,r)=>{var a;const{prefixCls:s,getPopupContainer:c,components:u,className:d,style:m,placement:f,size:g,disabled:p,bordered:C=!0,placeholder:y,popupClassName:b,dropdownClassName:h,status:S,rootClassName:E,variant:x,picker:L}=n,$=YD(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),M=i.useRef(null),{getPrefixCls:R,direction:D,getPopupContainer:H,rangePicker:V}=I.useContext(gn),j=R("picker",s),{compactSize:q,compactItemClassnames:U}=Nc(j,D),A=R(),[B,O]=_2("rangePicker",x,C),F=Ll(j),[P,z,k]=h9(j,F);if(process.env.NODE_ENV!=="production"){const ne=dr("DatePicker.RangePicker");ne.deprecated(!h,"dropdownClassName","popupClassName"),ne.deprecated(!("bordered"in n),"bordered","variant")}const[Z]=C9(n,j),Y=y9(u),J=_l(ne=>{var oe;return(oe=g??q)!==null&&oe!==void 0?oe:ne}),X=i.useContext(Qa),ce=p??X,de=I.useContext(pi),{hasFeedback:re,status:ve,feedbackIcon:he}=de,me=i.createElement(i.Fragment,null,L===b9?i.createElement(H2,null):i.createElement(A2,null),re&&he);I.useImperativeHandle(r,()=>M.current);const[le]=ro("Calendar",sc),se=Object.assign(Object.assign({},le),n.locale),[ue]=Ml("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return P(i.createElement(Zc,{space:!0},i.createElement(n9,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${j}-separator`},i.createElement(p9,null)),disabled:ce,ref:M,placement:f,placeholder:HD(se,L,y),suffixIcon:me,prevIcon:i.createElement("span",{className:`${j}-prev-icon`}),nextIcon:i.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:L},$,{className:_e({[`${j}-${J}`]:J,[`${j}-${B}`]:O},M2(j,$2(ve,S),re),z,U,d,V==null?void 0:V.className,k,F,E),style:Object.assign(Object.assign({},V==null?void 0:V.style),m),locale:se.lang,prefixCls:j,getPopupContainer:c||H,generateConfig:e,components:Y,direction:D,classNames:{popup:_e(z,b||h,k,F,E)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ue})},allowClear:Z}))))});return process.env.NODE_ENV!=="production"&&(t.displayName="RangePicker"),t};var KD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const XD=e=>{const t=(d,m)=>{const f=m===r7?"timePicker":"datePicker",g=I.forwardRef((p,C)=>{var y;const{prefixCls:b,getPopupContainer:h,components:S,style:E,className:x,rootClassName:L,size:$,bordered:M,placement:R,placeholder:D,popupClassName:H,dropdownClassName:V,disabled:j,status:q,variant:U,onCalendarChange:A}=p,B=KD(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:O,direction:F,getPopupContainer:P,[f]:z}=I.useContext(gn),k=O("picker",b),{compactSize:Z,compactItemClassnames:Y}=Nc(k,F),J=i.useRef(null),[X,ce]=_2("datePicker",U,M),de=Ll(k),[re,ve,he]=h9(k,de);I.useImperativeHandle(C,()=>J.current);const me={showToday:!0},le=d||p.picker,se=O(),{onSelect:ue,multiple:ne}=B,oe=ue&&d==="time"&&!ne,ge=(it,Xe,Ee)=>{A==null||A(it,Xe,Ee),oe&&ue(it)};if(process.env.NODE_ENV!=="production"){const it=dr(m||"DatePicker");process.env.NODE_ENV!=="production"&&it(d!=="quarter","deprecated",`DatePicker.${m} is legacy usage. Please use DatePicker[picker='${d}'] directly.`),it.deprecated(!V,"dropdownClassName","popupClassName"),it.deprecated(!("bordered"in p),"bordered","variant"),it.deprecated(!oe,"onSelect","onCalendarChange")}const[Ce,Re]=C9(p,k),Oe=y9(S),He=_l(it=>{var Xe;return(Xe=$??Z)!==null&&Xe!==void 0?Xe:it}),Pe=i.useContext(Qa),Ue=j??Pe,Ve=I.useContext(pi),{hasFeedback:ut,status:pt,feedbackIcon:Je}=Ve,qe=i.createElement(i.Fragment,null,le==="time"?i.createElement(H2,null):i.createElement(A2,null),ut&&Je),[Ct]=ro("DatePicker",sc),et=Object.assign(Object.assign({},Ct),p.locale),[nt]=Ml("DatePicker",(y=p.popupStyle)===null||y===void 0?void 0:y.zIndex);return re(i.createElement(Zc,{space:!0},i.createElement(a9,Object.assign({ref:J,placeholder:AD(et,le,D),suffixIcon:qe,placement:R,prevIcon:i.createElement("span",{className:`${k}-prev-icon`}),nextIcon:i.createElement("span",{className:`${k}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${k}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${k}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:d,onCalendarChange:ge},me,B,{locale:et.lang,className:_e({[`${k}-${He}`]:He,[`${k}-${X}`]:ce},M2(k,$2(pt,q),ut),ve,Y,z==null?void 0:z.className,x,he,de,L),style:Object.assign(Object.assign({},z==null?void 0:z.style),E),prefixCls:k,getPopupContainer:h||P,generateConfig:e,components:Oe,direction:F,disabled:Ue,classNames:{popup:_e(ve,he,de,L,H||V)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:nt})},allowClear:Ce,removeIcon:Re}))))});return process.env.NODE_ENV!=="production"&&m&&(g.displayName=m),g},n=t(),r=t(VD,kD),a=t(BD,jD),s=t(zD,ZD),c=t(WD,UD),u=t(b9,r7);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:s,TimePicker:u,QuarterPicker:c}},w9=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:s,QuarterPicker:c}=XD(e),u=GD(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=u,d.TimePicker=s,d.QuarterPicker=c,process.env.NODE_ENV!=="production"&&(d.displayName="DatePicker"),d},Li=w9(gF),QD=p2(Li,"popupAlign",void 0,"picker");Li._InternalPanelDoNotUseOrYouWillBeFired=QD;const JD=p2(Li.RangePicker,"popupAlign",void 0,"picker");Li._InternalRangePanelDoNotUseOrYouWillBeFired=JD;Li.generatePicker=w9;var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tN=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:s,title:c,children:u,footer:d}=e,m=eN(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=i.useContext(gn),g=f(),p=t||f("modal"),C=Ll(g),[y,b,h]=Mf(p,C),S=`${p}-confirm`;let E={};return s?E={closable:a??!1,title:"",footer:"",children:i.createElement(_f,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:g,content:u}))}:E={closable:a??!0,title:c,footer:d!==null&&i.createElement(Ef,Object.assign({},e)),children:u},y(i.createElement(m2,Object.assign({prefixCls:p,className:_e(b,`${p}-pure-panel`,s&&S,s&&`${S}-${s}`,n,h,C)},m,{closeIcon:wf(p,r),closable:a},E)))},nN=Af(tN);function E9(e){return Il(If(e))}const Qr=$f;Qr.useModal=LO;Qr.info=function(t){return Il(Ff(t))};Qr.success=function(t){return Il(Df(t))};Qr.error=function(t){return Il(Nf(t))};Qr.warning=E9;Qr.warn=E9;Qr.confirm=function(t){return Il(Tf(t))};Qr.destroyAll=function(){for(;wo.length;){const t=wo.pop();t&&t()}};Qr.config=yO;Qr._InternalPanelDoNotUseOrYouWillBeFired=nN;process.env.NODE_ENV!=="production"&&(Qr.displayName="Modal");var rN=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],S9=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,s=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,m=e.loadingIcon,f=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,C=e.onChange,y=e.onKeyDown,b=an(e,rN),h=rr(!1,{value:c,defaultValue:u}),S=te(h,2),E=S[0],x=S[1];function L(D,H){var V=E;return d||(V=D,x(V),C==null||C(V,H)),V}function $(D){D.which===Te.LEFT?L(!1,D):D.which===Te.RIGHT&&L(!0,D),y==null||y(D)}function M(D){var H=L(!E,D);p==null||p(H,D)}var R=_e(a,s,(n={},Q(n,"".concat(a,"-checked"),E),Q(n,"".concat(a,"-disabled"),d),n));return i.createElement("button",Ze({},b,{type:"button",role:"switch","aria-checked":E,disabled:d,className:R,ref:t,onKeyDown:$,onClick:M}),m,i.createElement("span",{className:"".concat(a,"-inner")},i.createElement("span",{className:"".concat(a,"-inner-checked")},f),i.createElement("span",{className:"".concat(a,"-inner-unchecked")},g)))});S9.displayName="Switch";const aN=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:s,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,m=`${t}-inner`,f=we(d(u).add(d(r).mul(2)).equal()),g=we(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:we(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:s,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${g})`,marginInlineEnd:`calc(100% - ${f} + ${g})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:c,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${g})`,marginInlineEnd:`calc(-100% + ${f} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${we(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},oN=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},iN=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:s,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(s).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${we(c(s).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},lN=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:s,handleSize:c,calc:u}=e,d=`${t}-inner`,m=we(u(c).add(u(r).mul(2)).equal()),f=we(u(s).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},sN=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ga(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:we(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),n2(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},cN=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,s=t*n,c=r/2,u=2,d=s-u*2,m=c-u*2;return{trackHeight:s,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:m*2+u*2,trackPadding:u,handleBg:a,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+u+u*2}},uN=la("Switch",e=>{const t=Rn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[sN(t),lN(t),iN(t),oN(t),aN(t)]},cN);var dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fN=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:s,className:c,rootClassName:u,style:d,checked:m,value:f,defaultChecked:g,defaultValue:p,onChange:C}=e,y=dN(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,h]=rr(!1,{value:m??f,defaultValue:g??p}),{getPrefixCls:S,direction:E,switch:x}=i.useContext(gn),L=i.useContext(Qa),$=(a??L)||s,M=S("switch",n),R=i.createElement("div",{className:`${M}-handle`},s&&i.createElement(Ic,{className:`${M}-loading-icon`})),[D,H,V]=uN(M),j=_l(r),q=_e(x==null?void 0:x.className,{[`${M}-small`]:j==="small",[`${M}-loading`]:s,[`${M}-rtl`]:E==="rtl"},c,u,H,V),U=Object.assign(Object.assign({},x==null?void 0:x.style),d),A=function(){h(arguments.length<=0?void 0:arguments[0]),C==null||C.apply(void 0,arguments)};return D(i.createElement(l2,{component:"Switch"},i.createElement(S9,Object.assign({},y,{checked:b,onChange:A,prefixCls:M,className:q,style:U,disabled:$,ref:t,loadingIcon:R}))))}),V2=fN;V2.__ANT_SWITCH=!0;process.env.NODE_ENV!=="production"&&(V2.displayName="Switch");const x9=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:a="start",className:s="",triggerBackgroundColor:c="#29292929",menuBackgroundColor:u="white",menuActiveColor:d="#ffcc00",menuHoverColor:m="#ffcc00",borderColor:f="#29292955",searchable:g=!0,disabled:p=!1,width:C="300px",height:y="m",id:b="",suffixIcon:h=!0})=>pe.jsx(ao,{id:b,className:`${s} single_select_container h_${y} items_${a} ${f?"border":""}`,suffixIcon:h?void 0:null,style:{width:C,"--c_trigger_background":c,"--c_menu_background":u,"--c_menu_active":d,"--c_menu_hover":m,"--c_border":`1px solid ${f}`},value:n,onChange:t,showSearch:g,placeholder:r,disabled:p,popupClassName:`single_select_dropdown h_${y} items_${a} ${f?"border":""}`,removeIcon:!0,filterOption:(S,E)=>((E==null?void 0:E.label)??"").toLowerCase().includes(S.toLowerCase()),options:e}),vN=e=>`https://flagsapi.com/${e}/flat/64.png`,Bs=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],mN=({value:e="",onChange:t=d=>{},height:n="m",width:r="16rem",className:a="",placeholder:s="XXXXXX XXXXX",separator:c=" ",disabled:u=!1})=>{var p,C;const[d,m]=I.useState(e!=null&&e.includes(c)?e.split(c)[0]:(p=Bs[89])==null?void 0:p.dialingCode),f=y=>{var b;m(String(y)),t(y+c+(((b=e.split(c))==null?void 0:b[1])||""))},g=y=>{const{value:b}=y.target;t(d+c+b)};return pe.jsxs("div",{className:`contact_input ${a}`,style:{width:r},children:[pe.jsx(x9,{options:Bs==null?void 0:Bs.map(y=>({label:pe.jsx("img",{src:vN(y.countryCode)}),value:y==null?void 0:y.dialingCode})),placement:"center",value:d,onChange:f,suffixIcon:!1,disabled:u,height:n,width:"25%",searchable:!1}),pe.jsx(V1,{value:d,readOnly:!0,height:n,width:"25%",disabled:u}),pe.jsx(V1,{value:(C=e.split(c))==null?void 0:C[1],placeholder:s,onChange:g,height:n,width:"50%",disabled:u})]})},gN="DD MMM YY - HH:mm:ss",hN=[{label:"Today",value:[En().startOf("day"),En().endOf("day")]},{label:"This Week",value:[En().startOf("week"),En().endOf("week")]},{label:"Last 7 Days",value:[En().subtract(7,"days"),En()]},{label:"This Month",value:[En().startOf("month"),En().endOf("month")]},{label:"Last 30 Days",value:[En().subtract(30,"days"),En()]}],pN=e=>e&&e.isAfter(En().endOf("day")),{RangePicker:CN}=Li,bN=({value:e,onChange:t,className:n="",showTime:r=!0,format:a=gN,presetRanges:s=hN,width:c="24rem",triggerBackgroundColor:u="#29292929",triggerBorderColor:d="#29292955",pickerHighlightColor:m="#fc0",pickerRangeColor:f="#ffcc00bb",pickerBackgroundColor:g="fff",pickerBorderColor:p="rgb(234, 235, 238)",disabledDate:C=()=>!1,disableFutureDates:y=!1,...b})=>{const h=e?[En(e[0]),En(e[1])]:void 0,S=E=>{if(t&&E){const x=E.map(L=>(L==null?void 0:L.toDate())||new Date);t(x)}else t&&t([])};return pe.jsx(CN,{showTime:r,...b,value:h,onChange:S,format:a,presets:s,disabledDate:y?pN:C,style:{width:c,"--c_trigger_background":u,"--c_trigger_border":d,"--c_highlight":m,"--c_date_range_fill":f,"--c_surface_border":p,"--c_surface":g},className:`date-range-picker ${n} ${d?"border":""}`})};var al=(e=>(e.NEXT="next",e.PREV="prev",e))(al||{});const L9=({title:e="Object Detected",height:t="100%",width:n="100%",data:r})=>{var f,g,p,C,y,b;const[a,s]=I.useState(0),c=(r==null?void 0:r[a])??{},u=h=>{h===al.NEXT?s(S=>(S+1)%(r==null?void 0:r.length)):h===al.PREV&&s(S=>(S-1+(r==null?void 0:r.length))%(r==null?void 0:r.length))},d=()=>{const h=c==null?void 0:c.score;if(h)return`${(h*100).toFixed(2)}%`},m=h=>h.split("_").join(" ");return r?pe.jsxs("div",{className:"event_preview_carousel_container",style:{width:n,height:t},children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:e}),pe.jsxs("p",{className:"font_secondary",children:["(",a+1,"/",r==null?void 0:r.length,")"]})]}),pe.jsxs("div",{className:"carousel_card",children:[pe.jsxs("div",{className:"carousel_card_images",children:[((f=c==null?void 0:c.detection)==null?void 0:f.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Detection"}),pe.jsx("img",{src:(g=c==null?void 0:c.detection)==null?void 0:g.image,alt:"Detected Image"})]}),((p=c==null?void 0:c.match)==null?void 0:p.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Match"}),pe.jsx("img",{src:(C=c==null?void 0:c.match)==null?void 0:C.image,alt:"Matched Image"})]})]}),(y=c==null?void 0:c.labels)!=null&&y[0]?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Label"}),pe.jsx("h6",{className:"capatalize_first_letter",children:((b=c==null?void 0:c.labels)==null?void 0:b[0])||"N.A."})]}):pe.jsx(pe.Fragment,{}),d()?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Score"}),pe.jsx("h6",{className:"font_secondary",children:d()})]}):pe.jsx(pe.Fragment,{}),pe.jsx("div",{className:"object_attributes_container",children:(r==null?void 0:r.length)>0&&(c!=null&&c.attributes)?pe.jsxs(pe.Fragment,{children:[pe.jsx("h6",{children:"Object Attributes"}),Object.keys(c.attributes).map((h,S)=>{var E,x;return pe.jsxs("div",{className:"event_preview_carousel_attribute",children:[pe.jsx("p",{className:"text_s capatalize_first_letter",title:m(h)||h,children:m(h)||h}),pe.jsx("h6",{className:"text_s capatalize_first_letter font_secondary",title:((E=c==null?void 0:c.attributes)==null?void 0:E[h])||"N.A.",children:((x=c==null?void 0:c.attributes)==null?void 0:x[h])||"N.A."})]},S)})||pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes found"})]}):pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes"})})]}),(r==null?void 0:r.length)>1&&pe.jsxs("footer",{className:"event_preview_carousel_footer",children:[pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"leftArrow",content:"Prev Object",textSize:"xs",onClick:()=>u(al.PREV)}),pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"rightArrow",iconPosition:"after",content:"Next Object",textSize:"xs",onClick:()=>u(al.NEXT)})]})]}):pe.jsx(pe.Fragment,{})},a7=new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"short",year:"numeric"}),o7=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),el=e=>{e.scrollIntoView({behavior:"smooth",block:"center"})},yN=({title:e="Event Preview",icon:t,data:n,width:r="60rem",height:a="40rem",focusedIndex:s=0,setFocusedIndex:c})=>{var f;const u=n,d=u==null?void 0:u[s];d!=null&&d.appName&&(e=d==null?void 0:d.appName),d!=null&&d.appName&&(t=d==null?void 0:d.icon);const m=I.useCallback(g=>{switch(g.key){case"ArrowUp":if(s===0)return;el(g.target),c==null||c(s-1);break;case"ArrowDown":if(s===(u==null?void 0:u.length)-1)return;el(g.target),c==null||c(s+1);break}},[s,u==null?void 0:u.length,c]);return I.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m]),pe.jsx("div",{className:`event_preview_window ${u!=null&&u.length?"":"empty"}`,style:{height:a,width:r},children:(u==null?void 0:u.length)==0||d==null?pe.jsx("p",{children:"No data found! 📊"}):pe.jsxs(pe.Fragment,{children:[pe.jsxs("span",{className:"event_preview_dialog_header",children:[pe.jsx("span",{className:"event_preview_dialog_header_icon",children:t&&pe.jsx("img",{src:t,alt:e})}),pe.jsx("span",{className:"event_preview_dialog_header_content",title:e,children:pe.jsx("h6",{className:"hydra_text_limit",children:e})})]}),pe.jsxs("div",{className:"event_preview_content_container",children:[pe.jsxs("span",{className:"event_preview_image_container",children:[pe.jsx("img",{src:d==null?void 0:d.frameUrl,alt:"Alert"}),pe.jsxs("div",{className:"event_preview_image_footer",children:[pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${d==null?void 0:d.color})`}}),pe.jsx("p",{children:"Severity"}),pe.jsx("h5",{title:d==null?void 0:d.severity,children:(f=d==null?void 0:d.severity)==null?void 0:f.toLocaleLowerCase()})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Source"}),pe.jsx("h5",{title:d==null?void 0:d.location,children:d==null?void 0:d.location})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Date"}),pe.jsx("h5",{title:a7.format(new Date(d==null?void 0:d.timeStamp)),children:a7.format(new Date(d==null?void 0:d.timeStamp))})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Time"}),pe.jsx("h5",{title:o7.format(new Date(d==null?void 0:d.timeStamp)),children:o7.format(new Date(d==null?void 0:d.timeStamp))})]})]})]}),pe.jsx("span",{className:"event_preview_content",children:pe.jsx(L9,{data:d==null?void 0:d.blobs})}),pe.jsxs("span",{className:"event_preview_other_events_container",children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:"Events"}),pe.jsxs("p",{className:"font_secondary",children:["(",s+1,"/",u==null?void 0:u.length,")"]})]}),pe.jsx("div",{className:"event_preview_other_events",children:u==null?void 0:u.map((g,p)=>pe.jsx("div",{onClick:C=>{C.target.tagName!="INPUT"&&(el(C.target),c==null||c(p))},children:pe.jsx(f7,{data:g,isFocused:p==s},p)},g==null?void 0:g.id))}),pe.jsxs("footer",{children:[pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"arrowUp",content:"Prev Event",onClick:g=>{s!==0&&(el(g.target),c==null||c(s-1))},textSize:"xs"}),pe.jsx(Lo,{variant:"secondary",size:"s",width:"50%",icon:"arrowDown",content:"Next Event",onClick:g=>{s!==(u==null?void 0:u.length)-1&&(el(g.target),c==null||c(s+1))},textSize:"xs"})]})]})]})]})})},wN={xs:"16.67%",s:"25%",m:"37.5%",l:"53.54%",xl:"75%",full:"100%"},EN=({visible:e,onClose:t,showCloseButton:n=!0,size:r="xl",children:a})=>pe.jsx(Qr,{open:e,onCancel:t,footer:null,closable:n,maskClosable:!0,destroyOnClose:!0,width:wN[r],children:a}),SN=({options:e,onChange:t,value:n,placeholder:r="Select Items...",triggerHighlightColor:a="#29292955",triggerBackgroundColor:s="#29292929",menuBackgroundColor:c="white",menuActiveColor:u="rgba(255, 204, 0, 0.2)",menuHoverColor:d="rgba(255, 204, 0, 0.1)",borderColor:m="#29292955",disabled:f=!1,searchable:g=!0,maxTagCount:p="responsive",suffixIcon:C=!0,width:y="300px",height:b="m",id:h="",className:S=""})=>pe.jsx(ao,{id:h,disabled:f,showSearch:g,className:`multi_select_container ${S} h_${b} ${m?"border":""}`,mode:"multiple",style:{width:y,"--c_trigger_highlight":a,"--c_trigger_background":s,"--c_menu_background":c,"--c_menu_active":u,"--c_menu_hover":d,"--c_border":m},suffixIcon:C?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:`multi_select_dropdown h_${b} ${m?"border":""}`,value:n,filterOption:(E,x)=>((x==null?void 0:x.label)??"").toLowerCase().includes(E.toLowerCase()),maxTagCount:p,maxTagPlaceholder:E=>pe.jsx(R2,{styles:{root:{pointerEvents:"none"}},title:E.map(({label:x})=>x).join(", "),children:pe.jsxs("span",{children:["+",E.length]})})}),xN=({currentSection:e,currentSubSection:t,height:n="30rem",width:r="16rem",collapsedWidth:a="5.5rem",config:s,isOpen:c,onToggle:u})=>{var p,C,y;const[d,m]=I.useState(!0),f=c??d,g=()=>{const b=!f;m(b),u==null||u(b)};return pe.jsxs("span",{className:"awi_sidebar "+(f?"open":"closed"),style:{height:n,"--sidebar-width":r,"--sidebar-collapsed-width":a},children:[pe.jsxs("header",{className:"awi_sidebar_header",children:[f?pe.jsx(Eo,{name:s.header.logo,size:"auto",className:"awi_sidebar_logo open",onClick:s.header.logoClickAction}):pe.jsx(Eo,{size:"auto",name:s.header.logoCollapsed,className:"awi_sidebar_logo closed",onClick:s.header.logoClickAction}),pe.jsx(Eo,{name:f?"sidebarClose":"sidebarOpen",className:`awi_sidebar_close_icon ${f?"open":"closed"}`,onClick:g})]}),pe.jsx("main",{className:`awi_sidebar_body ${f?"open":"closed"}`,children:s.body.static.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(Lo,{variant:e==b.key?"primary":"nav",size:"l",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)}))}),pe.jsx("div",{className:"awi_sidebar_content_dynamic",children:(p=s.body.dynamic)!=null&&p[e]?(y=(C=s.body.dynamic)==null?void 0:C[e])==null?void 0:y.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(Lo,{variant:t==b.key?"primary":"secondary",size:"m",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)})):pe.jsx(pe.Fragment,{})}),pe.jsxs("footer",{className:`awi_sidebar_footer ${e==s.footer.key?"active":""}`,onClick:s.footer.action,children:[pe.jsx("img",{src:s.footer.image,alt:"Footer or Profile Image"}),pe.jsxs("div",{className:"awi_sidebar_footer_content "+(f?"open":"closed"),children:[pe.jsx("p",{className:"title",children:s.footer.title}),pe.jsx("p",{className:"description",children:s.footer.description})]})]})]})},LN=({value:e=!1,disabled:t=!1,checkedChildren:n,unCheckedChildren:r,onChange:a=()=>{},loading:s=!1,uncheckedBackgroundColor:c="#29292955",checkedBackgroundColor:u="#ffcc00",disabledBackgroundColor:d="#29292929"})=>{const[m,f]=I.useState(e),g=e!==void 0,p=g?e:m,C=y=>{g||f(y),a==null||a(y)};return pe.jsx(V2,{checked:p,onChange:C,disabled:t,loading:s,checkedChildren:n,unCheckedChildren:r,style:{backgroundColor:t||s?d:p?u:c}})};var ol={exports:{}};/**
269
269
  * @license
270
270
  * Lodash <https://lodash.com/>
271
271
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/dist/index.js CHANGED
@@ -26638,6 +26638,7 @@ const PN = ({
26638
26638
  "footer",
26639
26639
  {
26640
26640
  className: `awi_sidebar_footer ${e == s.footer.key ? "active" : ""}`,
26641
+ onClick: s.footer.action,
26641
26642
  children: [
26642
26643
  /* @__PURE__ */ he.jsx("img", { src: s.footer.image, alt: "Footer or Profile Image" }),
26643
26644
  /* @__PURE__ */ he.jsxs(
package/dist/index.umd.js CHANGED
@@ -266,7 +266,7 @@ html body {
266
266
  &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
267
267
  &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:S1},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
268
268
  &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:L1},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
269
- &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:x1},[`${t}-panel > ${t}-time-panel`]:{paddingTop:O},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${M} ease-out`},qf(e,H,F)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:k,boxShadow:j,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${we(s)} ${c} ${U}`,li:Object.assign(Object.assign({},vs),{borderRadius:q,paddingInline:h,paddingBlock:e.calc(y).sub(P).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${we(e.calc(D).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Is(e,"slide-up"),Is(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down")]},i6=ro("DatePicker",e=>{const t=Mn(W7(e),NM(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[DM(t),VM(t),HM(t),kM(t),PM(t),Ts(e,{focusElCls:`${e.componentCls}-focused`})]},AM);var BM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},jM=function(t,n){return i.createElement(vr,Ze({},t,{ref:n,icon:BM}))},F4=i.forwardRef(jM);process.env.NODE_ENV!=="production"&&(F4.displayName="CalendarOutlined");var zM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},ZM=function(t,n){return i.createElement(vr,Ze({},t,{ref:n,icon:zM}))},D4=i.forwardRef(ZM);process.env.NODE_ENV!=="production"&&(D4.displayName="ClockCircleOutlined");var WM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},UM=function(t,n){return i.createElement(vr,Ze({},t,{ref:n,icon:WM}))},l6=i.forwardRef(UM);process.env.NODE_ENV!=="production"&&(l6.displayName="SwapRightOutlined");function qM(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function YM(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function s6(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=jf(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[GM,KM]=["week","WeekPicker"],[XM,QM]=["month","MonthPicker"],[JM,e$]=["year","YearPicker"],[t$,n$]=["quarter","QuarterPicker"],[c6,u6]=["time","TimePicker"],r$=e=>i.createElement(pa,Object.assign({size:"small",type:"primary"},e));function d6(e){return R.useMemo(()=>Object.assign({button:r$},e),[e])}var o$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const a$=e=>{const t=R.forwardRef((n,r)=>{var o;const{prefixCls:s,getPopupContainer:c,components:u,className:d,style:m,placement:f,size:g,disabled:p,bordered:C=!0,placeholder:y,popupClassName:b,dropdownClassName:h,status:S,rootClassName:E,variant:x,picker:_}=n,M=o$(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),L=i.useRef(null),{getPrefixCls:O,direction:D,getPopupContainer:H,rangePicker:k}=R.useContext(mn),j=O("picker",s),{compactSize:q,compactItemClassnames:U}=Ls(j,D),A=O(),[B,I]=g4("rangePicker",x,C),F=qi(j),[P,z,V]=i6(j,F);if(process.env.NODE_ENV!=="production"){const ne=ir("DatePicker.RangePicker");ne.deprecated(!h,"dropdownClassName","popupClassName"),ne.deprecated(!("bordered"in n),"bordered","variant")}const[Z]=s6(n,j),Y=d6(u),J=Ki(ne=>{var ae;return(ae=g??q)!==null&&ae!==void 0?ae:ne}),X=i.useContext(Wo),ce=p??X,de=R.useContext(ni),{hasFeedback:re,status:ve,feedbackIcon:he}=de,me=i.createElement(i.Fragment,null,_===c6?i.createElement(D4,null):i.createElement(F4,null),re&&he);R.useImperativeHandle(r,()=>L.current);const[le]=Zo("Calendar",os),se=Object.assign(Object.assign({},le),n.locale),[ue]=Yi("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return P(i.createElement(Vs,{space:!0},i.createElement(j7,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${j}-separator`},i.createElement(l6,null)),disabled:ce,ref:L,placement:f,placeholder:YM(se,_,y),suffixIcon:me,prevIcon:i.createElement("span",{className:`${j}-prev-icon`}),nextIcon:i.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:_},M,{className:$e({[`${j}-${J}`]:J,[`${j}-${B}`]:I},v4(j,m4(ve,S),re),z,U,d,k==null?void 0:k.className,V,F,E),style:Object.assign(Object.assign({},k==null?void 0:k.style),m),locale:se.lang,prefixCls:j,getPopupContainer:c||H,generateConfig:e,components:Y,direction:D,classNames:{popup:$e(z,b||h,V,F,E)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ue})},allowClear:Z}))))});return process.env.NODE_ENV!=="production"&&(t.displayName="RangePicker"),t};var i$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const l$=e=>{const t=(d,m)=>{const f=m===u6?"timePicker":"datePicker",g=R.forwardRef((p,C)=>{var y;const{prefixCls:b,getPopupContainer:h,components:S,style:E,className:x,rootClassName:_,size:M,bordered:L,placement:O,placeholder:D,popupClassName:H,dropdownClassName:k,disabled:j,status:q,variant:U,onCalendarChange:A}=p,B=i$(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:I,direction:F,getPopupContainer:P,[f]:z}=R.useContext(mn),V=I("picker",b),{compactSize:Z,compactItemClassnames:Y}=Ls(V,F),J=i.useRef(null),[X,ce]=g4("datePicker",U,L),de=qi(V),[re,ve,he]=i6(V,de);R.useImperativeHandle(C,()=>J.current);const me={showToday:!0},le=d||p.picker,se=I(),{onSelect:ue,multiple:ne}=B,ae=ue&&d==="time"&&!ne,ge=(lt,Xe,Ee)=>{A==null||A(lt,Xe,Ee),ae&&ue(lt)};if(process.env.NODE_ENV!=="production"){const lt=ir(m||"DatePicker");process.env.NODE_ENV!=="production"&&lt(d!=="quarter","deprecated",`DatePicker.${m} is legacy usage. Please use DatePicker[picker='${d}'] directly.`),lt.deprecated(!k,"dropdownClassName","popupClassName"),lt.deprecated(!("bordered"in p),"bordered","variant"),lt.deprecated(!ae,"onSelect","onCalendarChange")}const[Ce,Oe]=s6(p,V),Ie=d6(S),He=Ki(lt=>{var Xe;return(Xe=M??Z)!==null&&Xe!==void 0?Xe:lt}),Pe=i.useContext(Wo),Ue=j??Pe,ke=R.useContext(ni),{hasFeedback:ut,status:pt,feedbackIcon:Je}=ke,qe=i.createElement(i.Fragment,null,le==="time"?i.createElement(D4,null):i.createElement(F4,null),ut&&Je),[Ct]=Zo("DatePicker",os),et=Object.assign(Object.assign({},Ct),p.locale),[nt]=Yi("DatePicker",(y=p.popupStyle)===null||y===void 0?void 0:y.zIndex);return re(i.createElement(Vs,{space:!0},i.createElement(Z7,Object.assign({ref:J,placeholder:qM(et,le,D),suffixIcon:qe,placement:O,prevIcon:i.createElement("span",{className:`${V}-prev-icon`}),nextIcon:i.createElement("span",{className:`${V}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${V}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${V}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:d,onCalendarChange:ge},me,B,{locale:et.lang,className:$e({[`${V}-${He}`]:He,[`${V}-${X}`]:ce},v4(V,m4(pt,q),ut),ve,Y,z==null?void 0:z.className,x,he,de,_),style:Object.assign(Object.assign({},z==null?void 0:z.style),E),prefixCls:V,getPopupContainer:h||P,generateConfig:e,components:Ie,direction:F,disabled:Ue,classNames:{popup:$e(ve,he,de,_,H||k)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:nt})},allowClear:Ce,removeIcon:Oe}))))});return process.env.NODE_ENV!=="production"&&m&&(g.displayName=m),g},n=t(),r=t(GM,KM),o=t(XM,QM),s=t(JM,e$),c=t(t$,n$),u=t(c6,u6);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:s,TimePicker:u,QuarterPicker:c}},f6=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:s,QuarterPicker:c}=l$(e),u=a$(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=o,d.RangePicker=u,d.TimePicker=s,d.QuarterPicker=c,process.env.NODE_ENV!=="production"&&(d.displayName="DatePicker"),d},fi=f6(_L),s$=Q1(fi,"popupAlign",void 0,"picker");fi._InternalPanelDoNotUseOrYouWillBeFired=s$;const c$=Q1(fi.RangePicker,"popupAlign",void 0,"picker");fi._InternalRangePanelDoNotUseOrYouWillBeFired=c$,fi.generatePicker=f6;var u$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d$=j5(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:s,title:c,children:u,footer:d}=e,m=u$(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=i.useContext(mn),g=f(),p=t||f("modal"),C=qi(g),[y,b,h]=I5(p,C),S=`${p}-confirm`;let E={};return s?E={closable:o??!1,title:"",footer:"",children:i.createElement(R5,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:g,content:u}))}:E={closable:o??!0,title:c,footer:d!==null&&i.createElement(_5,Object.assign({},e)),children:u},y(i.createElement(I1,Object.assign({prefixCls:p,className:$e(b,`${p}-pure-panel`,s&&S,s&&`${S}-${s}`,n,h,C)},m,{closeIcon:x5(p,r),closable:o},E)))});function v6(e){return nl(T5(e))}const zr=P5;zr.useModal=TS,zr.info=function(t){return nl(A5(t))},zr.success=function(t){return nl(H5(t))},zr.error=function(t){return nl(k5(t))},zr.warning=v6,zr.warn=v6,zr.confirm=function(t){return nl(V5(t))},zr.destroyAll=function(){for(;ya.length;){const t=ya.pop();t&&t()}},zr.config=PS,zr._InternalPanelDoNotUseOrYouWillBeFired=d$,process.env.NODE_ENV!=="production"&&(zr.displayName="Modal");var f$=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m6=i.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,s=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,m=e.loadingIcon,f=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,C=e.onChange,y=e.onKeyDown,b=nn(e,f$),h=tr(!1,{value:c,defaultValue:u}),S=ee(h,2),E=S[0],x=S[1];function _(D,H){var k=E;return d||(k=D,x(k),C==null||C(k,H)),k}function M(D){D.which===Te.LEFT?_(!1,D):D.which===Te.RIGHT&&_(!0,D),y==null||y(D)}function L(D){var H=_(!E,D);p==null||p(H,D)}var O=$e(o,s,(n={},Q(n,"".concat(o,"-checked"),E),Q(n,"".concat(o,"-disabled"),d),n));return i.createElement("button",Ze({},b,{type:"button",role:"switch","aria-checked":E,disabled:d,className:O,ref:t,onKeyDown:M,onClick:L}),m,i.createElement("span",{className:"".concat(o,"-inner")},i.createElement("span",{className:"".concat(o,"-inner-checked")},f),i.createElement("span",{className:"".concat(o,"-inner-unchecked")},g)))});m6.displayName="Switch";const v$=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:s,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,m=`${t}-inner`,f=we(d(u).add(d(r).mul(2)).equal()),g=we(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:we(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:s,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${g})`,marginInlineEnd:`calc(100% - ${f} + ${g})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:c,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${g})`,marginInlineEnd:`calc(-100% + ${f} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${we(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},m$=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},g$=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:s,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(s).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${we(c(s).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},h$=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:s,handleSize:c,calc:u}=e,d=`${t}-inner`,m=we(u(c).add(u(r).mul(2)).equal()),f=we(u(s).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},p$=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mo(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:we(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),e1(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},C$=ro("Switch",e=>{const t=Mn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[p$(t),h$(t),g$(t),m$(t),v$(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,s=t*n,c=r/2,u=2,d=s-u*2,m=c-u*2;return{trackHeight:s,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:m*2+u*2,trackPadding:u,handleBg:o,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+u+u*2}});var b$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const N4=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:s,className:c,rootClassName:u,style:d,checked:m,value:f,defaultChecked:g,defaultValue:p,onChange:C}=e,y=b$(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,h]=tr(!1,{value:m??f,defaultValue:g??p}),{getPrefixCls:S,direction:E,switch:x}=i.useContext(mn),_=i.useContext(Wo),M=(o??_)||s,L=S("switch",n),O=i.createElement("div",{className:`${L}-handle`},s&&i.createElement(Es,{className:`${L}-loading-icon`})),[D,H,k]=C$(L),j=Ki(r),q=$e(x==null?void 0:x.className,{[`${L}-small`]:j==="small",[`${L}-loading`]:s,[`${L}-rtl`]:E==="rtl"},c,u,H,k),U=Object.assign(Object.assign({},x==null?void 0:x.style),d),A=function(){h(arguments.length<=0?void 0:arguments[0]),C==null||C.apply(void 0,arguments)};return D(i.createElement(p1,{component:"Switch"},i.createElement(m6,Object.assign({},y,{checked:b,onChange:A,prefixCls:L,className:q,style:U,disabled:M,ref:t,loadingIcon:O}))))});N4.__ANT_SWITCH=!0,process.env.NODE_ENV!=="production"&&(N4.displayName="Switch");const g6=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:o="start",className:s="",triggerBackgroundColor:c="#29292929",menuBackgroundColor:u="white",menuActiveColor:d="#ffcc00",menuHoverColor:m="#ffcc00",borderColor:f="#29292955",searchable:g=!0,disabled:p=!1,width:C="300px",height:y="m",id:b="",suffixIcon:h=!0})=>pe.jsx(Ko,{id:b,className:`${s} single_select_container h_${y} items_${o} ${f?"border":""}`,suffixIcon:h?void 0:null,style:{width:C,"--c_trigger_background":c,"--c_menu_background":u,"--c_menu_active":d,"--c_menu_hover":m,"--c_border":`1px solid ${f}`},value:n,onChange:t,showSearch:g,placeholder:r,disabled:p,popupClassName:`single_select_dropdown h_${y} items_${o} ${f?"border":""}`,removeIcon:!0,filterOption:(S,E)=>((E==null?void 0:E.label)??"").toLowerCase().includes(S.toLowerCase()),options:e}),y$=e=>`https://flagsapi.com/${e}/flat/64.png`,gc=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],w$=({value:e="",onChange:t=d=>{},height:n="m",width:r="16rem",className:o="",placeholder:s="XXXXXX XXXXX",separator:c=" ",disabled:u=!1})=>{var p,C;const[d,m]=R.useState(e!=null&&e.includes(c)?e.split(c)[0]:(p=gc[89])==null?void 0:p.dialingCode),f=y=>{var b;m(String(y)),t(y+c+(((b=e.split(c))==null?void 0:b[1])||""))},g=y=>{const{value:b}=y.target;t(d+c+b)};return pe.jsxs("div",{className:`contact_input ${o}`,style:{width:r},children:[pe.jsx(g6,{options:gc==null?void 0:gc.map(y=>({label:pe.jsx("img",{src:y$(y.countryCode)}),value:y==null?void 0:y.dialingCode})),placement:"center",value:d,onChange:f,suffixIcon:!1,disabled:u,height:n,width:"25%",searchable:!1}),pe.jsx(tu,{value:d,readOnly:!0,height:n,width:"25%",disabled:u}),pe.jsx(tu,{value:(C=e.split(c))==null?void 0:C[1],placeholder:s,onChange:g,height:n,width:"50%",disabled:u})]})},E$="DD MMM YY - HH:mm:ss",S$=[{label:"Today",value:[wn().startOf("day"),wn().endOf("day")]},{label:"This Week",value:[wn().startOf("week"),wn().endOf("week")]},{label:"Last 7 Days",value:[wn().subtract(7,"days"),wn()]},{label:"This Month",value:[wn().startOf("month"),wn().endOf("month")]},{label:"Last 30 Days",value:[wn().subtract(30,"days"),wn()]}],x$=e=>e&&e.isAfter(wn().endOf("day")),{RangePicker:_$}=fi,L$=({value:e,onChange:t,className:n="",showTime:r=!0,format:o=E$,presetRanges:s=S$,width:c="24rem",triggerBackgroundColor:u="#29292929",triggerBorderColor:d="#29292955",pickerHighlightColor:m="#fc0",pickerRangeColor:f="#ffcc00bb",pickerBackgroundColor:g="fff",pickerBorderColor:p="rgb(234, 235, 238)",disabledDate:C=()=>!1,disableFutureDates:y=!1,...b})=>{const h=e?[wn(e[0]),wn(e[1])]:void 0,S=E=>{if(t&&E){const x=E.map(_=>(_==null?void 0:_.toDate())||new Date);t(x)}else t&&t([])};return pe.jsx(_$,{showTime:r,...b,value:h,onChange:S,format:o,presets:s,disabledDate:y?x$:C,style:{width:c,"--c_trigger_background":u,"--c_trigger_border":d,"--c_highlight":m,"--c_date_range_fill":f,"--c_surface_border":p,"--c_surface":g},className:`date-range-picker ${n} ${d?"border":""}`})};var ml=(e=>(e.NEXT="next",e.PREV="prev",e))(ml||{});const h6=({title:e="Object Detected",height:t="100%",width:n="100%",data:r})=>{var f,g,p,C,y,b;const[o,s]=R.useState(0),c=(r==null?void 0:r[o])??{},u=h=>{h===ml.NEXT?s(S=>(S+1)%(r==null?void 0:r.length)):h===ml.PREV&&s(S=>(S-1+(r==null?void 0:r.length))%(r==null?void 0:r.length))},d=()=>{const h=c==null?void 0:c.score;if(h)return`${(h*100).toFixed(2)}%`},m=h=>h.split("_").join(" ");return r?pe.jsxs("div",{className:"event_preview_carousel_container",style:{width:n,height:t},children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:e}),pe.jsxs("p",{className:"font_secondary",children:["(",o+1,"/",r==null?void 0:r.length,")"]})]}),pe.jsxs("div",{className:"carousel_card",children:[pe.jsxs("div",{className:"carousel_card_images",children:[((f=c==null?void 0:c.detection)==null?void 0:f.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Detection"}),pe.jsx("img",{src:(g=c==null?void 0:c.detection)==null?void 0:g.image,alt:"Detected Image"})]}),((p=c==null?void 0:c.match)==null?void 0:p.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Match"}),pe.jsx("img",{src:(C=c==null?void 0:c.match)==null?void 0:C.image,alt:"Matched Image"})]})]}),(y=c==null?void 0:c.labels)!=null&&y[0]?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Label"}),pe.jsx("h6",{className:"capatalize_first_letter",children:((b=c==null?void 0:c.labels)==null?void 0:b[0])||"N.A."})]}):pe.jsx(pe.Fragment,{}),d()?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Score"}),pe.jsx("h6",{className:"font_secondary",children:d()})]}):pe.jsx(pe.Fragment,{}),pe.jsx("div",{className:"object_attributes_container",children:(r==null?void 0:r.length)>0&&(c!=null&&c.attributes)?pe.jsxs(pe.Fragment,{children:[pe.jsx("h6",{children:"Object Attributes"}),Object.keys(c.attributes).map((h,S)=>{var E,x;return pe.jsxs("div",{className:"event_preview_carousel_attribute",children:[pe.jsx("p",{className:"text_s capatalize_first_letter",title:m(h)||h,children:m(h)||h}),pe.jsx("h6",{className:"text_s capatalize_first_letter font_secondary",title:((E=c==null?void 0:c.attributes)==null?void 0:E[h])||"N.A.",children:((x=c==null?void 0:c.attributes)==null?void 0:x[h])||"N.A."})]},S)})||pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes found"})]}):pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes"})})]}),(r==null?void 0:r.length)>1&&pe.jsxs("footer",{className:"event_preview_carousel_footer",children:[pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"leftArrow",content:"Prev Object",textSize:"xs",onClick:()=>u(ml.PREV)}),pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"rightArrow",iconPosition:"after",content:"Next Object",textSize:"xs",onClick:()=>u(ml.NEXT)})]})]}):pe.jsx(pe.Fragment,{})},p6=new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"short",year:"numeric"}),C6=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),gl=e=>{e.scrollIntoView({behavior:"smooth",block:"center"})},M$=({title:e="Event Preview",icon:t,data:n,width:r="60rem",height:o="40rem",focusedIndex:s=0,setFocusedIndex:c})=>{var f;const u=n,d=u==null?void 0:u[s];d!=null&&d.appName&&(e=d==null?void 0:d.appName),d!=null&&d.appName&&(t=d==null?void 0:d.icon);const m=R.useCallback(g=>{switch(g.key){case"ArrowUp":if(s===0)return;gl(g.target),c==null||c(s-1);break;case"ArrowDown":if(s===(u==null?void 0:u.length)-1)return;gl(g.target),c==null||c(s+1);break}},[s,u==null?void 0:u.length,c]);return R.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m]),pe.jsx("div",{className:`event_preview_window ${u!=null&&u.length?"":"empty"}`,style:{height:o,width:r},children:(u==null?void 0:u.length)==0||d==null?pe.jsx("p",{children:"No data found! 📊"}):pe.jsxs(pe.Fragment,{children:[pe.jsxs("span",{className:"event_preview_dialog_header",children:[pe.jsx("span",{className:"event_preview_dialog_header_icon",children:t&&pe.jsx("img",{src:t,alt:e})}),pe.jsx("span",{className:"event_preview_dialog_header_content",title:e,children:pe.jsx("h6",{className:"hydra_text_limit",children:e})})]}),pe.jsxs("div",{className:"event_preview_content_container",children:[pe.jsxs("span",{className:"event_preview_image_container",children:[pe.jsx("img",{src:d==null?void 0:d.frameUrl,alt:"Alert"}),pe.jsxs("div",{className:"event_preview_image_footer",children:[pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${d==null?void 0:d.color})`}}),pe.jsx("p",{children:"Severity"}),pe.jsx("h5",{title:d==null?void 0:d.severity,children:(f=d==null?void 0:d.severity)==null?void 0:f.toLocaleLowerCase()})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Source"}),pe.jsx("h5",{title:d==null?void 0:d.location,children:d==null?void 0:d.location})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Date"}),pe.jsx("h5",{title:p6.format(new Date(d==null?void 0:d.timeStamp)),children:p6.format(new Date(d==null?void 0:d.timeStamp))})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Time"}),pe.jsx("h5",{title:C6.format(new Date(d==null?void 0:d.timeStamp)),children:C6.format(new Date(d==null?void 0:d.timeStamp))})]})]})]}),pe.jsx("span",{className:"event_preview_content",children:pe.jsx(h6,{data:d==null?void 0:d.blobs})}),pe.jsxs("span",{className:"event_preview_other_events_container",children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:"Events"}),pe.jsxs("p",{className:"font_secondary",children:["(",s+1,"/",u==null?void 0:u.length,")"]})]}),pe.jsx("div",{className:"event_preview_other_events",children:u==null?void 0:u.map((g,p)=>pe.jsx("div",{onClick:C=>{C.target.tagName!="INPUT"&&(gl(C.target),c==null||c(p))},children:pe.jsx(G2,{data:g,isFocused:p==s},p)},g==null?void 0:g.id))}),pe.jsxs("footer",{children:[pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"arrowUp",content:"Prev Event",onClick:g=>{s!==0&&(gl(g.target),c==null||c(s-1))},textSize:"xs"}),pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"arrowDown",content:"Next Event",onClick:g=>{s!==(u==null?void 0:u.length)-1&&(gl(g.target),c==null||c(s+1))},textSize:"xs"})]})]})]})]})})},$$={xs:"16.67%",s:"25%",m:"37.5%",l:"53.54%",xl:"75%",full:"100%"},O$=({visible:e,onClose:t,showCloseButton:n=!0,size:r="xl",children:o})=>pe.jsx(zr,{open:e,onCancel:t,footer:null,closable:n,maskClosable:!0,destroyOnClose:!0,width:$$[r],children:o}),I$=({options:e,onChange:t,value:n,placeholder:r="Select Items...",triggerHighlightColor:o="#29292955",triggerBackgroundColor:s="#29292929",menuBackgroundColor:c="white",menuActiveColor:u="rgba(255, 204, 0, 0.2)",menuHoverColor:d="rgba(255, 204, 0, 0.1)",borderColor:m="#29292955",disabled:f=!1,searchable:g=!0,maxTagCount:p="responsive",suffixIcon:C=!0,width:y="300px",height:b="m",id:h="",className:S=""})=>pe.jsx(Ko,{id:h,disabled:f,showSearch:g,className:`multi_select_container ${S} h_${b} ${m?"border":""}`,mode:"multiple",style:{width:y,"--c_trigger_highlight":o,"--c_trigger_background":s,"--c_menu_background":c,"--c_menu_active":u,"--c_menu_hover":d,"--c_border":m},suffixIcon:C?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:`multi_select_dropdown h_${b} ${m?"border":""}`,value:n,filterOption:(E,x)=>((x==null?void 0:x.label)??"").toLowerCase().includes(E.toLowerCase()),maxTagCount:p,maxTagPlaceholder:E=>pe.jsx(C4,{styles:{root:{pointerEvents:"none"}},title:E.map(({label:x})=>x).join(", "),children:pe.jsxs("span",{children:["+",E.length]})})}),P$=({currentSection:e,currentSubSection:t,height:n="30rem",width:r="16rem",collapsedWidth:o="5.5rem",config:s,isOpen:c,onToggle:u})=>{var p,C,y;const[d,m]=R.useState(!0),f=c??d,g=()=>{const b=!f;m(b),u==null||u(b)};return pe.jsxs("span",{className:"awi_sidebar "+(f?"open":"closed"),style:{height:n,"--sidebar-width":r,"--sidebar-collapsed-width":o},children:[pe.jsxs("header",{className:"awi_sidebar_header",children:[f?pe.jsx(ca,{name:s.header.logo,size:"auto",className:"awi_sidebar_logo open",onClick:s.header.logoClickAction}):pe.jsx(ca,{size:"auto",name:s.header.logoCollapsed,className:"awi_sidebar_logo closed",onClick:s.header.logoClickAction}),pe.jsx(ca,{name:f?"sidebarClose":"sidebarOpen",className:`awi_sidebar_close_icon ${f?"open":"closed"}`,onClick:g})]}),pe.jsx("main",{className:`awi_sidebar_body ${f?"open":"closed"}`,children:s.body.static.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(ua,{variant:e==b.key?"primary":"nav",size:"l",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)}))}),pe.jsx("div",{className:"awi_sidebar_content_dynamic",children:(p=s.body.dynamic)!=null&&p[e]?(y=(C=s.body.dynamic)==null?void 0:C[e])==null?void 0:y.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(ua,{variant:t==b.key?"primary":"secondary",size:"m",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)})):pe.jsx(pe.Fragment,{})}),pe.jsxs("footer",{className:`awi_sidebar_footer ${e==s.footer.key?"active":""}`,children:[pe.jsx("img",{src:s.footer.image,alt:"Footer or Profile Image"}),pe.jsxs("div",{className:"awi_sidebar_footer_content "+(f?"open":"closed"),children:[pe.jsx("p",{className:"title",children:s.footer.title}),pe.jsx("p",{className:"description",children:s.footer.description})]})]})]})},R$=({value:e=!1,disabled:t=!1,checkedChildren:n,unCheckedChildren:r,onChange:o=()=>{},loading:s=!1,uncheckedBackgroundColor:c="#29292955",checkedBackgroundColor:u="#ffcc00",disabledBackgroundColor:d="#29292929"})=>{const[m,f]=R.useState(e),g=e!==void 0,p=g?e:m,C=y=>{g||f(y),o==null||o(y)};return pe.jsx(N4,{checked:p,onChange:C,disabled:t,loading:s,checkedChildren:n,unCheckedChildren:r,style:{backgroundColor:t||s?d:p?u:c}})};var hl={exports:{}};/**
269
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:x1},[`${t}-panel > ${t}-time-panel`]:{paddingTop:O},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${M} ease-out`},qf(e,H,F)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:k,boxShadow:j,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${we(s)} ${c} ${U}`,li:Object.assign(Object.assign({},vs),{borderRadius:q,paddingInline:h,paddingBlock:e.calc(y).sub(P).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${we(e.calc(D).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Is(e,"slide-up"),Is(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down")]},i6=ro("DatePicker",e=>{const t=Mn(W7(e),NM(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[DM(t),VM(t),HM(t),kM(t),PM(t),Ts(e,{focusElCls:`${e.componentCls}-focused`})]},AM);var BM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},jM=function(t,n){return i.createElement(vr,Ze({},t,{ref:n,icon:BM}))},F4=i.forwardRef(jM);process.env.NODE_ENV!=="production"&&(F4.displayName="CalendarOutlined");var zM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},ZM=function(t,n){return i.createElement(vr,Ze({},t,{ref:n,icon:zM}))},D4=i.forwardRef(ZM);process.env.NODE_ENV!=="production"&&(D4.displayName="ClockCircleOutlined");var WM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},UM=function(t,n){return i.createElement(vr,Ze({},t,{ref:n,icon:WM}))},l6=i.forwardRef(UM);process.env.NODE_ENV!=="production"&&(l6.displayName="SwapRightOutlined");function qM(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function YM(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function s6(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=jf(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[GM,KM]=["week","WeekPicker"],[XM,QM]=["month","MonthPicker"],[JM,e$]=["year","YearPicker"],[t$,n$]=["quarter","QuarterPicker"],[c6,u6]=["time","TimePicker"],r$=e=>i.createElement(pa,Object.assign({size:"small",type:"primary"},e));function d6(e){return R.useMemo(()=>Object.assign({button:r$},e),[e])}var o$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const a$=e=>{const t=R.forwardRef((n,r)=>{var o;const{prefixCls:s,getPopupContainer:c,components:u,className:d,style:m,placement:f,size:g,disabled:p,bordered:C=!0,placeholder:y,popupClassName:b,dropdownClassName:h,status:S,rootClassName:E,variant:x,picker:_}=n,M=o$(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),L=i.useRef(null),{getPrefixCls:O,direction:D,getPopupContainer:H,rangePicker:k}=R.useContext(mn),j=O("picker",s),{compactSize:q,compactItemClassnames:U}=Ls(j,D),A=O(),[B,I]=g4("rangePicker",x,C),F=qi(j),[P,z,V]=i6(j,F);if(process.env.NODE_ENV!=="production"){const ne=ir("DatePicker.RangePicker");ne.deprecated(!h,"dropdownClassName","popupClassName"),ne.deprecated(!("bordered"in n),"bordered","variant")}const[Z]=s6(n,j),Y=d6(u),J=Ki(ne=>{var ae;return(ae=g??q)!==null&&ae!==void 0?ae:ne}),X=i.useContext(Wo),ce=p??X,de=R.useContext(ni),{hasFeedback:re,status:ve,feedbackIcon:he}=de,me=i.createElement(i.Fragment,null,_===c6?i.createElement(D4,null):i.createElement(F4,null),re&&he);R.useImperativeHandle(r,()=>L.current);const[le]=Zo("Calendar",os),se=Object.assign(Object.assign({},le),n.locale),[ue]=Yi("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return P(i.createElement(Vs,{space:!0},i.createElement(j7,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${j}-separator`},i.createElement(l6,null)),disabled:ce,ref:L,placement:f,placeholder:YM(se,_,y),suffixIcon:me,prevIcon:i.createElement("span",{className:`${j}-prev-icon`}),nextIcon:i.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:_},M,{className:$e({[`${j}-${J}`]:J,[`${j}-${B}`]:I},v4(j,m4(ve,S),re),z,U,d,k==null?void 0:k.className,V,F,E),style:Object.assign(Object.assign({},k==null?void 0:k.style),m),locale:se.lang,prefixCls:j,getPopupContainer:c||H,generateConfig:e,components:Y,direction:D,classNames:{popup:$e(z,b||h,V,F,E)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ue})},allowClear:Z}))))});return process.env.NODE_ENV!=="production"&&(t.displayName="RangePicker"),t};var i$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const l$=e=>{const t=(d,m)=>{const f=m===u6?"timePicker":"datePicker",g=R.forwardRef((p,C)=>{var y;const{prefixCls:b,getPopupContainer:h,components:S,style:E,className:x,rootClassName:_,size:M,bordered:L,placement:O,placeholder:D,popupClassName:H,dropdownClassName:k,disabled:j,status:q,variant:U,onCalendarChange:A}=p,B=i$(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:I,direction:F,getPopupContainer:P,[f]:z}=R.useContext(mn),V=I("picker",b),{compactSize:Z,compactItemClassnames:Y}=Ls(V,F),J=i.useRef(null),[X,ce]=g4("datePicker",U,L),de=qi(V),[re,ve,he]=i6(V,de);R.useImperativeHandle(C,()=>J.current);const me={showToday:!0},le=d||p.picker,se=I(),{onSelect:ue,multiple:ne}=B,ae=ue&&d==="time"&&!ne,ge=(lt,Xe,Ee)=>{A==null||A(lt,Xe,Ee),ae&&ue(lt)};if(process.env.NODE_ENV!=="production"){const lt=ir(m||"DatePicker");process.env.NODE_ENV!=="production"&&lt(d!=="quarter","deprecated",`DatePicker.${m} is legacy usage. Please use DatePicker[picker='${d}'] directly.`),lt.deprecated(!k,"dropdownClassName","popupClassName"),lt.deprecated(!("bordered"in p),"bordered","variant"),lt.deprecated(!ae,"onSelect","onCalendarChange")}const[Ce,Oe]=s6(p,V),Ie=d6(S),He=Ki(lt=>{var Xe;return(Xe=M??Z)!==null&&Xe!==void 0?Xe:lt}),Pe=i.useContext(Wo),Ue=j??Pe,ke=R.useContext(ni),{hasFeedback:ut,status:pt,feedbackIcon:Je}=ke,qe=i.createElement(i.Fragment,null,le==="time"?i.createElement(D4,null):i.createElement(F4,null),ut&&Je),[Ct]=Zo("DatePicker",os),et=Object.assign(Object.assign({},Ct),p.locale),[nt]=Yi("DatePicker",(y=p.popupStyle)===null||y===void 0?void 0:y.zIndex);return re(i.createElement(Vs,{space:!0},i.createElement(Z7,Object.assign({ref:J,placeholder:qM(et,le,D),suffixIcon:qe,placement:O,prevIcon:i.createElement("span",{className:`${V}-prev-icon`}),nextIcon:i.createElement("span",{className:`${V}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${V}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${V}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:d,onCalendarChange:ge},me,B,{locale:et.lang,className:$e({[`${V}-${He}`]:He,[`${V}-${X}`]:ce},v4(V,m4(pt,q),ut),ve,Y,z==null?void 0:z.className,x,he,de,_),style:Object.assign(Object.assign({},z==null?void 0:z.style),E),prefixCls:V,getPopupContainer:h||P,generateConfig:e,components:Ie,direction:F,disabled:Ue,classNames:{popup:$e(ve,he,de,_,H||k)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:nt})},allowClear:Ce,removeIcon:Oe}))))});return process.env.NODE_ENV!=="production"&&m&&(g.displayName=m),g},n=t(),r=t(GM,KM),o=t(XM,QM),s=t(JM,e$),c=t(t$,n$),u=t(c6,u6);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:s,TimePicker:u,QuarterPicker:c}},f6=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:s,QuarterPicker:c}=l$(e),u=a$(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=o,d.RangePicker=u,d.TimePicker=s,d.QuarterPicker=c,process.env.NODE_ENV!=="production"&&(d.displayName="DatePicker"),d},fi=f6(_L),s$=Q1(fi,"popupAlign",void 0,"picker");fi._InternalPanelDoNotUseOrYouWillBeFired=s$;const c$=Q1(fi.RangePicker,"popupAlign",void 0,"picker");fi._InternalRangePanelDoNotUseOrYouWillBeFired=c$,fi.generatePicker=f6;var u$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d$=j5(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:s,title:c,children:u,footer:d}=e,m=u$(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=i.useContext(mn),g=f(),p=t||f("modal"),C=qi(g),[y,b,h]=I5(p,C),S=`${p}-confirm`;let E={};return s?E={closable:o??!1,title:"",footer:"",children:i.createElement(R5,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:g,content:u}))}:E={closable:o??!0,title:c,footer:d!==null&&i.createElement(_5,Object.assign({},e)),children:u},y(i.createElement(I1,Object.assign({prefixCls:p,className:$e(b,`${p}-pure-panel`,s&&S,s&&`${S}-${s}`,n,h,C)},m,{closeIcon:x5(p,r),closable:o},E)))});function v6(e){return nl(T5(e))}const zr=P5;zr.useModal=TS,zr.info=function(t){return nl(A5(t))},zr.success=function(t){return nl(H5(t))},zr.error=function(t){return nl(k5(t))},zr.warning=v6,zr.warn=v6,zr.confirm=function(t){return nl(V5(t))},zr.destroyAll=function(){for(;ya.length;){const t=ya.pop();t&&t()}},zr.config=PS,zr._InternalPanelDoNotUseOrYouWillBeFired=d$,process.env.NODE_ENV!=="production"&&(zr.displayName="Modal");var f$=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m6=i.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,s=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,m=e.loadingIcon,f=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,C=e.onChange,y=e.onKeyDown,b=nn(e,f$),h=tr(!1,{value:c,defaultValue:u}),S=ee(h,2),E=S[0],x=S[1];function _(D,H){var k=E;return d||(k=D,x(k),C==null||C(k,H)),k}function M(D){D.which===Te.LEFT?_(!1,D):D.which===Te.RIGHT&&_(!0,D),y==null||y(D)}function L(D){var H=_(!E,D);p==null||p(H,D)}var O=$e(o,s,(n={},Q(n,"".concat(o,"-checked"),E),Q(n,"".concat(o,"-disabled"),d),n));return i.createElement("button",Ze({},b,{type:"button",role:"switch","aria-checked":E,disabled:d,className:O,ref:t,onKeyDown:M,onClick:L}),m,i.createElement("span",{className:"".concat(o,"-inner")},i.createElement("span",{className:"".concat(o,"-inner-checked")},f),i.createElement("span",{className:"".concat(o,"-inner-unchecked")},g)))});m6.displayName="Switch";const v$=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:s,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,m=`${t}-inner`,f=we(d(u).add(d(r).mul(2)).equal()),g=we(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:we(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:s,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${g})`,marginInlineEnd:`calc(100% - ${f} + ${g})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:c,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${g})`,marginInlineEnd:`calc(-100% + ${f} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${we(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},m$=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},g$=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:s,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(s).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${we(c(s).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},h$=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:s,handleSize:c,calc:u}=e,d=`${t}-inner`,m=we(u(c).add(u(r).mul(2)).equal()),f=we(u(s).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},p$=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mo(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:we(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),e1(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},C$=ro("Switch",e=>{const t=Mn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[p$(t),h$(t),g$(t),m$(t),v$(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,s=t*n,c=r/2,u=2,d=s-u*2,m=c-u*2;return{trackHeight:s,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:m*2+u*2,trackPadding:u,handleBg:o,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new rn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+u+u*2}});var b$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const N4=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:s,className:c,rootClassName:u,style:d,checked:m,value:f,defaultChecked:g,defaultValue:p,onChange:C}=e,y=b$(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,h]=tr(!1,{value:m??f,defaultValue:g??p}),{getPrefixCls:S,direction:E,switch:x}=i.useContext(mn),_=i.useContext(Wo),M=(o??_)||s,L=S("switch",n),O=i.createElement("div",{className:`${L}-handle`},s&&i.createElement(Es,{className:`${L}-loading-icon`})),[D,H,k]=C$(L),j=Ki(r),q=$e(x==null?void 0:x.className,{[`${L}-small`]:j==="small",[`${L}-loading`]:s,[`${L}-rtl`]:E==="rtl"},c,u,H,k),U=Object.assign(Object.assign({},x==null?void 0:x.style),d),A=function(){h(arguments.length<=0?void 0:arguments[0]),C==null||C.apply(void 0,arguments)};return D(i.createElement(p1,{component:"Switch"},i.createElement(m6,Object.assign({},y,{checked:b,onChange:A,prefixCls:L,className:q,style:U,disabled:M,ref:t,loadingIcon:O}))))});N4.__ANT_SWITCH=!0,process.env.NODE_ENV!=="production"&&(N4.displayName="Switch");const g6=({options:e,onChange:t,value:n,placeholder:r="Select Item...",placement:o="start",className:s="",triggerBackgroundColor:c="#29292929",menuBackgroundColor:u="white",menuActiveColor:d="#ffcc00",menuHoverColor:m="#ffcc00",borderColor:f="#29292955",searchable:g=!0,disabled:p=!1,width:C="300px",height:y="m",id:b="",suffixIcon:h=!0})=>pe.jsx(Ko,{id:b,className:`${s} single_select_container h_${y} items_${o} ${f?"border":""}`,suffixIcon:h?void 0:null,style:{width:C,"--c_trigger_background":c,"--c_menu_background":u,"--c_menu_active":d,"--c_menu_hover":m,"--c_border":`1px solid ${f}`},value:n,onChange:t,showSearch:g,placeholder:r,disabled:p,popupClassName:`single_select_dropdown h_${y} items_${o} ${f?"border":""}`,removeIcon:!0,filterOption:(S,E)=>((E==null?void 0:E.label)??"").toLowerCase().includes(S.toLowerCase()),options:e}),y$=e=>`https://flagsapi.com/${e}/flat/64.png`,gc=[{countryCode:"AF",dialingCode:"+93"},{countryCode:"AL",dialingCode:"+355"},{countryCode:"DZ",dialingCode:"+213"},{countryCode:"AS",dialingCode:"+1-684"},{countryCode:"AD",dialingCode:"+376"},{countryCode:"AO",dialingCode:"+244"},{countryCode:"AI",dialingCode:"+1-264"},{countryCode:"AQ",dialingCode:"+672"},{countryCode:"AG",dialingCode:"+1-268"},{countryCode:"AR",dialingCode:"+54"},{countryCode:"AM",dialingCode:"+374"},{countryCode:"AW",dialingCode:"+297"},{countryCode:"AU",dialingCode:"+61"},{countryCode:"AT",dialingCode:"+43"},{countryCode:"AZ",dialingCode:"+994"},{countryCode:"BS",dialingCode:"+1-242"},{countryCode:"BH",dialingCode:"+973"},{countryCode:"BD",dialingCode:"+880"},{countryCode:"BB",dialingCode:"+1-246"},{countryCode:"BY",dialingCode:"+375"},{countryCode:"BE",dialingCode:"+32"},{countryCode:"BZ",dialingCode:"+501"},{countryCode:"BJ",dialingCode:"+229"},{countryCode:"BM",dialingCode:"+1-441"},{countryCode:"BT",dialingCode:"+975"},{countryCode:"BO",dialingCode:"+591"},{countryCode:"BA",dialingCode:"+387"},{countryCode:"BW",dialingCode:"+267"},{countryCode:"BR",dialingCode:"+55"},{countryCode:"IO",dialingCode:"+246"},{countryCode:"VG",dialingCode:"+1-284"},{countryCode:"BN",dialingCode:"+673"},{countryCode:"BG",dialingCode:"+359"},{countryCode:"BF",dialingCode:"+226"},{countryCode:"BI",dialingCode:"+257"},{countryCode:"KH",dialingCode:"+855"},{countryCode:"CM",dialingCode:"+237"},{countryCode:"CA",dialingCode:"+1"},{countryCode:"CV",dialingCode:"+238"},{countryCode:"KY",dialingCode:"+1-345"},{countryCode:"CF",dialingCode:"+236"},{countryCode:"TD",dialingCode:"+235"},{countryCode:"CL",dialingCode:"+56"},{countryCode:"CN",dialingCode:"+86"},{countryCode:"CO",dialingCode:"+57"},{countryCode:"KM",dialingCode:"+269"},{countryCode:"CG",dialingCode:"+242"},{countryCode:"CR",dialingCode:"+506"},{countryCode:"HR",dialingCode:"+385"},{countryCode:"CU",dialingCode:"+53"},{countryCode:"CY",dialingCode:"+357"},{countryCode:"CZ",dialingCode:"+420"},{countryCode:"CD",dialingCode:"+243"},{countryCode:"DK",dialingCode:"+45"},{countryCode:"DJ",dialingCode:"+253"},{countryCode:"DM",dialingCode:"+1-767"},{countryCode:"DO",dialingCode:"+1-809, 1-829, 1-849"},{countryCode:"EC",dialingCode:"+593"},{countryCode:"EG",dialingCode:"+20"},{countryCode:"SV",dialingCode:"+503"},{countryCode:"GQ",dialingCode:"+240"},{countryCode:"ER",dialingCode:"+291"},{countryCode:"EE",dialingCode:"+372"},{countryCode:"SZ",dialingCode:"+268"},{countryCode:"ET",dialingCode:"+251"},{countryCode:"FJ",dialingCode:"+679"},{countryCode:"FI",dialingCode:"+358"},{countryCode:"FR",dialingCode:"+33"},{countryCode:"GA",dialingCode:"+241"},{countryCode:"GM",dialingCode:"+220"},{countryCode:"GE",dialingCode:"+995"},{countryCode:"DE",dialingCode:"+49"},{countryCode:"GH",dialingCode:"+233"},{countryCode:"GI",dialingCode:"+350"},{countryCode:"GR",dialingCode:"+30"},{countryCode:"GL",dialingCode:"+299"},{countryCode:"GD",dialingCode:"+1-473"},{countryCode:"GU",dialingCode:"+1-671"},{countryCode:"GT",dialingCode:"+502"},{countryCode:"GG",dialingCode:"+44-1481"},{countryCode:"GN",dialingCode:"+224"},{countryCode:"GW",dialingCode:"+245"},{countryCode:"GY",dialingCode:"+592"},{countryCode:"HT",dialingCode:"+509"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"HN",dialingCode:"+504"},{countryCode:"HK",dialingCode:"+852"},{countryCode:"HU",dialingCode:"+36"},{countryCode:"IS",dialingCode:"+354"},{countryCode:"IN",dialingCode:"+91"},{countryCode:"ID",dialingCode:"+62"},{countryCode:"IR",dialingCode:"+98"},{countryCode:"IQ",dialingCode:"+964"},{countryCode:"IE",dialingCode:"+353"},{countryCode:"IL",dialingCode:"+972"},{countryCode:"IT",dialingCode:"+39"},{countryCode:"CI",dialingCode:"+225"},{countryCode:"JM",dialingCode:"+1-876"},{countryCode:"JP",dialingCode:"+81"},{countryCode:"JE",dialingCode:"+44-1534"},{countryCode:"JO",dialingCode:"+962"},{countryCode:"KZ",dialingCode:"+7"},{countryCode:"KE",dialingCode:"+254"},{countryCode:"KI",dialingCode:"+686"},{countryCode:"KW",dialingCode:"+965"},{countryCode:"KG",dialingCode:"+996"},{countryCode:"LA",dialingCode:"+856"},{countryCode:"LV",dialingCode:"+371"},{countryCode:"LB",dialingCode:"+961"},{countryCode:"LS",dialingCode:"+266"},{countryCode:"LR",dialingCode:"+231"},{countryCode:"LY",dialingCode:"+218"},{countryCode:"LI",dialingCode:"+423"},{countryCode:"LT",dialingCode:"+370"},{countryCode:"LU",dialingCode:"+352"},{countryCode:"MO",dialingCode:"+853"},{countryCode:"MK",dialingCode:"+389"},{countryCode:"MG",dialingCode:"+261"},{countryCode:"MW",dialingCode:"+265"},{countryCode:"MY",dialingCode:"+60"},{countryCode:"MV",dialingCode:"+960"},{countryCode:"ML",dialingCode:"+223"},{countryCode:"MT",dialingCode:"+356"},{countryCode:"MH",dialingCode:"+692"},{countryCode:"MQ",dialingCode:"+596"},{countryCode:"MR",dialingCode:"+222"},{countryCode:"MU",dialingCode:"+230"},{countryCode:"YT",dialingCode:"+262"},{countryCode:"MX",dialingCode:"+52"},{countryCode:"FM",dialingCode:"+691"},{countryCode:"MD",dialingCode:"+373"},{countryCode:"MC",dialingCode:"+377"},{countryCode:"MN",dialingCode:"+976"},{countryCode:"ME",dialingCode:"+382"},{countryCode:"MS",dialingCode:"+1-664"},{countryCode:"MA",dialingCode:"+212"},{countryCode:"MZ",dialingCode:"+258"},{countryCode:"MM",dialingCode:"+95"},{countryCode:"NA",dialingCode:"+264"},{countryCode:"NR",dialingCode:"+674"},{countryCode:"NP",dialingCode:"+977"},{countryCode:"NL",dialingCode:"+31"},{countryCode:"NC",dialingCode:"+687"},{countryCode:"NZ",dialingCode:"+64"},{countryCode:"NI",dialingCode:"+505"},{countryCode:"NE",dialingCode:"+227"},{countryCode:"NG",dialingCode:"+234"},{countryCode:"NU",dialingCode:"+683"},{countryCode:"NF",dialingCode:"+672"},{countryCode:"KP",dialingCode:"+850"},{countryCode:"NO",dialingCode:"+47"},{countryCode:"OM",dialingCode:"+968"},{countryCode:"PK",dialingCode:"+92"},{countryCode:"PW",dialingCode:"+680"},{countryCode:"PA",dialingCode:"+507"},{countryCode:"PG",dialingCode:"+675"},{countryCode:"PY",dialingCode:"+595"},{countryCode:"PE",dialingCode:"+51"},{countryCode:"PH",dialingCode:"+63"},{countryCode:"PN",dialingCode:"+870"},{countryCode:"PL",dialingCode:"+48"},{countryCode:"PT",dialingCode:"+351"},{countryCode:"PR",dialingCode:"+1-787, 1-939"},{countryCode:"QA",dialingCode:"+974"},{countryCode:"RE",dialingCode:"+262"},{countryCode:"RO",dialingCode:"+40"},{countryCode:"RU",dialingCode:"+7"},{countryCode:"RW",dialingCode:"+250"},{countryCode:"BL",dialingCode:"+590"},{countryCode:"SH",dialingCode:"+290"},{countryCode:"KN",dialingCode:"+1-869"},{countryCode:"LC",dialingCode:"+1-758"},{countryCode:"MF",dialingCode:"+590"},{countryCode:"PM",dialingCode:"+508"},{countryCode:"VC",dialingCode:"+1-784"},{countryCode:"WS",dialingCode:"+685"},{countryCode:"ST",dialingCode:"+239"},{countryCode:"SA",dialingCode:"+966"},{countryCode:"SN",dialingCode:"+221"},{countryCode:"RS",dialingCode:"+381"},{countryCode:"SC",dialingCode:"+248"},{countryCode:"SL",dialingCode:"+232"},{countryCode:"SG",dialingCode:"+65"},{countryCode:"SX",dialingCode:"+1-721"},{countryCode:"SK",dialingCode:"+421"},{countryCode:"SI",dialingCode:"+386"},{countryCode:"SB",dialingCode:"+677"},{countryCode:"SO",dialingCode:"+252"},{countryCode:"ZA",dialingCode:"+27"},{countryCode:"GS",dialingCode:"+500"},{countryCode:"ES",dialingCode:"+34"},{countryCode:"LK",dialingCode:"+94"},{countryCode:"SD",dialingCode:"+249"},{countryCode:"SR",dialingCode:"+597"},{countryCode:"SJ",dialingCode:"+47"},{countryCode:"SE",dialingCode:"+46"},{countryCode:"CH",dialingCode:"+41"},{countryCode:"SY",dialingCode:"+963"},{countryCode:"TW",dialingCode:"+886"},{countryCode:"TJ",dialingCode:"+992"},{countryCode:"TZ",dialingCode:"+255"},{countryCode:"TH",dialingCode:"+66"},{countryCode:"TG",dialingCode:"+228"},{countryCode:"TK",dialingCode:"+690"},{countryCode:"TO",dialingCode:"+676"},{countryCode:"TT",dialingCode:"+1-868"},{countryCode:"TN",dialingCode:"+216"},{countryCode:"TR",dialingCode:"+90"},{countryCode:"TM",dialingCode:"+993"},{countryCode:"TC",dialingCode:"+1-649"},{countryCode:"TV",dialingCode:"+688"},{countryCode:"UG",dialingCode:"+256"},{countryCode:"UA",dialingCode:"+380"},{countryCode:"AE",dialingCode:"+971"},{countryCode:"GB",dialingCode:"+44"},{countryCode:"US",dialingCode:"+1"},{countryCode:"UY",dialingCode:"+598"},{countryCode:"UZ",dialingCode:"+998"},{countryCode:"VU",dialingCode:"+678"},{countryCode:"VA",dialingCode:"+379"},{countryCode:"VE",dialingCode:"+58"},{countryCode:"VN",dialingCode:"+84"},{countryCode:"WF",dialingCode:"+681"},{countryCode:"EH",dialingCode:"+212"},{countryCode:"YE",dialingCode:"+967"},{countryCode:"ZM",dialingCode:"+260"},{countryCode:"ZW",dialingCode:"+263"}],w$=({value:e="",onChange:t=d=>{},height:n="m",width:r="16rem",className:o="",placeholder:s="XXXXXX XXXXX",separator:c=" ",disabled:u=!1})=>{var p,C;const[d,m]=R.useState(e!=null&&e.includes(c)?e.split(c)[0]:(p=gc[89])==null?void 0:p.dialingCode),f=y=>{var b;m(String(y)),t(y+c+(((b=e.split(c))==null?void 0:b[1])||""))},g=y=>{const{value:b}=y.target;t(d+c+b)};return pe.jsxs("div",{className:`contact_input ${o}`,style:{width:r},children:[pe.jsx(g6,{options:gc==null?void 0:gc.map(y=>({label:pe.jsx("img",{src:y$(y.countryCode)}),value:y==null?void 0:y.dialingCode})),placement:"center",value:d,onChange:f,suffixIcon:!1,disabled:u,height:n,width:"25%",searchable:!1}),pe.jsx(tu,{value:d,readOnly:!0,height:n,width:"25%",disabled:u}),pe.jsx(tu,{value:(C=e.split(c))==null?void 0:C[1],placeholder:s,onChange:g,height:n,width:"50%",disabled:u})]})},E$="DD MMM YY - HH:mm:ss",S$=[{label:"Today",value:[wn().startOf("day"),wn().endOf("day")]},{label:"This Week",value:[wn().startOf("week"),wn().endOf("week")]},{label:"Last 7 Days",value:[wn().subtract(7,"days"),wn()]},{label:"This Month",value:[wn().startOf("month"),wn().endOf("month")]},{label:"Last 30 Days",value:[wn().subtract(30,"days"),wn()]}],x$=e=>e&&e.isAfter(wn().endOf("day")),{RangePicker:_$}=fi,L$=({value:e,onChange:t,className:n="",showTime:r=!0,format:o=E$,presetRanges:s=S$,width:c="24rem",triggerBackgroundColor:u="#29292929",triggerBorderColor:d="#29292955",pickerHighlightColor:m="#fc0",pickerRangeColor:f="#ffcc00bb",pickerBackgroundColor:g="fff",pickerBorderColor:p="rgb(234, 235, 238)",disabledDate:C=()=>!1,disableFutureDates:y=!1,...b})=>{const h=e?[wn(e[0]),wn(e[1])]:void 0,S=E=>{if(t&&E){const x=E.map(_=>(_==null?void 0:_.toDate())||new Date);t(x)}else t&&t([])};return pe.jsx(_$,{showTime:r,...b,value:h,onChange:S,format:o,presets:s,disabledDate:y?x$:C,style:{width:c,"--c_trigger_background":u,"--c_trigger_border":d,"--c_highlight":m,"--c_date_range_fill":f,"--c_surface_border":p,"--c_surface":g},className:`date-range-picker ${n} ${d?"border":""}`})};var ml=(e=>(e.NEXT="next",e.PREV="prev",e))(ml||{});const h6=({title:e="Object Detected",height:t="100%",width:n="100%",data:r})=>{var f,g,p,C,y,b;const[o,s]=R.useState(0),c=(r==null?void 0:r[o])??{},u=h=>{h===ml.NEXT?s(S=>(S+1)%(r==null?void 0:r.length)):h===ml.PREV&&s(S=>(S-1+(r==null?void 0:r.length))%(r==null?void 0:r.length))},d=()=>{const h=c==null?void 0:c.score;if(h)return`${(h*100).toFixed(2)}%`},m=h=>h.split("_").join(" ");return r?pe.jsxs("div",{className:"event_preview_carousel_container",style:{width:n,height:t},children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:e}),pe.jsxs("p",{className:"font_secondary",children:["(",o+1,"/",r==null?void 0:r.length,")"]})]}),pe.jsxs("div",{className:"carousel_card",children:[pe.jsxs("div",{className:"carousel_card_images",children:[((f=c==null?void 0:c.detection)==null?void 0:f.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Detection"}),pe.jsx("img",{src:(g=c==null?void 0:c.detection)==null?void 0:g.image,alt:"Detected Image"})]}),((p=c==null?void 0:c.match)==null?void 0:p.image)&&pe.jsxs("span",{children:[pe.jsx("p",{children:"Match"}),pe.jsx("img",{src:(C=c==null?void 0:c.match)==null?void 0:C.image,alt:"Matched Image"})]})]}),(y=c==null?void 0:c.labels)!=null&&y[0]?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Label"}),pe.jsx("h6",{className:"capatalize_first_letter",children:((b=c==null?void 0:c.labels)==null?void 0:b[0])||"N.A."})]}):pe.jsx(pe.Fragment,{}),d()?pe.jsxs("div",{className:"carousel_info_container",children:[pe.jsx("p",{className:"text_s",children:"Score"}),pe.jsx("h6",{className:"font_secondary",children:d()})]}):pe.jsx(pe.Fragment,{}),pe.jsx("div",{className:"object_attributes_container",children:(r==null?void 0:r.length)>0&&(c!=null&&c.attributes)?pe.jsxs(pe.Fragment,{children:[pe.jsx("h6",{children:"Object Attributes"}),Object.keys(c.attributes).map((h,S)=>{var E,x;return pe.jsxs("div",{className:"event_preview_carousel_attribute",children:[pe.jsx("p",{className:"text_s capatalize_first_letter",title:m(h)||h,children:m(h)||h}),pe.jsx("h6",{className:"text_s capatalize_first_letter font_secondary",title:((E=c==null?void 0:c.attributes)==null?void 0:E[h])||"N.A.",children:((x=c==null?void 0:c.attributes)==null?void 0:x[h])||"N.A."})]},S)})||pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes found"})]}):pe.jsx("p",{className:"text_s hydra_text_muted",children:"No attributes"})})]}),(r==null?void 0:r.length)>1&&pe.jsxs("footer",{className:"event_preview_carousel_footer",children:[pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"leftArrow",content:"Prev Object",textSize:"xs",onClick:()=>u(ml.PREV)}),pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"rightArrow",iconPosition:"after",content:"Next Object",textSize:"xs",onClick:()=>u(ml.NEXT)})]})]}):pe.jsx(pe.Fragment,{})},p6=new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"short",year:"numeric"}),C6=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),gl=e=>{e.scrollIntoView({behavior:"smooth",block:"center"})},M$=({title:e="Event Preview",icon:t,data:n,width:r="60rem",height:o="40rem",focusedIndex:s=0,setFocusedIndex:c})=>{var f;const u=n,d=u==null?void 0:u[s];d!=null&&d.appName&&(e=d==null?void 0:d.appName),d!=null&&d.appName&&(t=d==null?void 0:d.icon);const m=R.useCallback(g=>{switch(g.key){case"ArrowUp":if(s===0)return;gl(g.target),c==null||c(s-1);break;case"ArrowDown":if(s===(u==null?void 0:u.length)-1)return;gl(g.target),c==null||c(s+1);break}},[s,u==null?void 0:u.length,c]);return R.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m]),pe.jsx("div",{className:`event_preview_window ${u!=null&&u.length?"":"empty"}`,style:{height:o,width:r},children:(u==null?void 0:u.length)==0||d==null?pe.jsx("p",{children:"No data found! 📊"}):pe.jsxs(pe.Fragment,{children:[pe.jsxs("span",{className:"event_preview_dialog_header",children:[pe.jsx("span",{className:"event_preview_dialog_header_icon",children:t&&pe.jsx("img",{src:t,alt:e})}),pe.jsx("span",{className:"event_preview_dialog_header_content",title:e,children:pe.jsx("h6",{className:"hydra_text_limit",children:e})})]}),pe.jsxs("div",{className:"event_preview_content_container",children:[pe.jsxs("span",{className:"event_preview_image_container",children:[pe.jsx("img",{src:d==null?void 0:d.frameUrl,alt:"Alert"}),pe.jsxs("div",{className:"event_preview_image_footer",children:[pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("span",{className:"status_indicator",style:{background:`linear-gradient(90deg, rgba(0,0,0,0), ${d==null?void 0:d.color})`}}),pe.jsx("p",{children:"Severity"}),pe.jsx("h5",{title:d==null?void 0:d.severity,children:(f=d==null?void 0:d.severity)==null?void 0:f.toLocaleLowerCase()})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Source"}),pe.jsx("h5",{title:d==null?void 0:d.location,children:d==null?void 0:d.location})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Date"}),pe.jsx("h5",{title:p6.format(new Date(d==null?void 0:d.timeStamp)),children:p6.format(new Date(d==null?void 0:d.timeStamp))})]}),pe.jsxs("span",{className:"event_preview_image_footer_infoitem",children:[pe.jsx("p",{children:"Time"}),pe.jsx("h5",{title:C6.format(new Date(d==null?void 0:d.timeStamp)),children:C6.format(new Date(d==null?void 0:d.timeStamp))})]})]})]}),pe.jsx("span",{className:"event_preview_content",children:pe.jsx(h6,{data:d==null?void 0:d.blobs})}),pe.jsxs("span",{className:"event_preview_other_events_container",children:[pe.jsxs("header",{children:[pe.jsx("h6",{children:"Events"}),pe.jsxs("p",{className:"font_secondary",children:["(",s+1,"/",u==null?void 0:u.length,")"]})]}),pe.jsx("div",{className:"event_preview_other_events",children:u==null?void 0:u.map((g,p)=>pe.jsx("div",{onClick:C=>{C.target.tagName!="INPUT"&&(gl(C.target),c==null||c(p))},children:pe.jsx(G2,{data:g,isFocused:p==s},p)},g==null?void 0:g.id))}),pe.jsxs("footer",{children:[pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"arrowUp",content:"Prev Event",onClick:g=>{s!==0&&(gl(g.target),c==null||c(s-1))},textSize:"xs"}),pe.jsx(ua,{variant:"secondary",size:"s",width:"50%",icon:"arrowDown",content:"Next Event",onClick:g=>{s!==(u==null?void 0:u.length)-1&&(gl(g.target),c==null||c(s+1))},textSize:"xs"})]})]})]})]})})},$$={xs:"16.67%",s:"25%",m:"37.5%",l:"53.54%",xl:"75%",full:"100%"},O$=({visible:e,onClose:t,showCloseButton:n=!0,size:r="xl",children:o})=>pe.jsx(zr,{open:e,onCancel:t,footer:null,closable:n,maskClosable:!0,destroyOnClose:!0,width:$$[r],children:o}),I$=({options:e,onChange:t,value:n,placeholder:r="Select Items...",triggerHighlightColor:o="#29292955",triggerBackgroundColor:s="#29292929",menuBackgroundColor:c="white",menuActiveColor:u="rgba(255, 204, 0, 0.2)",menuHoverColor:d="rgba(255, 204, 0, 0.1)",borderColor:m="#29292955",disabled:f=!1,searchable:g=!0,maxTagCount:p="responsive",suffixIcon:C=!0,width:y="300px",height:b="m",id:h="",className:S=""})=>pe.jsx(Ko,{id:h,disabled:f,showSearch:g,className:`multi_select_container ${S} h_${b} ${m?"border":""}`,mode:"multiple",style:{width:y,"--c_trigger_highlight":o,"--c_trigger_background":s,"--c_menu_background":c,"--c_menu_active":u,"--c_menu_hover":d,"--c_border":m},suffixIcon:C?void 0:null,options:e,placeholder:r,onChange:t,popupClassName:`multi_select_dropdown h_${b} ${m?"border":""}`,value:n,filterOption:(E,x)=>((x==null?void 0:x.label)??"").toLowerCase().includes(E.toLowerCase()),maxTagCount:p,maxTagPlaceholder:E=>pe.jsx(C4,{styles:{root:{pointerEvents:"none"}},title:E.map(({label:x})=>x).join(", "),children:pe.jsxs("span",{children:["+",E.length]})})}),P$=({currentSection:e,currentSubSection:t,height:n="30rem",width:r="16rem",collapsedWidth:o="5.5rem",config:s,isOpen:c,onToggle:u})=>{var p,C,y;const[d,m]=R.useState(!0),f=c??d,g=()=>{const b=!f;m(b),u==null||u(b)};return pe.jsxs("span",{className:"awi_sidebar "+(f?"open":"closed"),style:{height:n,"--sidebar-width":r,"--sidebar-collapsed-width":o},children:[pe.jsxs("header",{className:"awi_sidebar_header",children:[f?pe.jsx(ca,{name:s.header.logo,size:"auto",className:"awi_sidebar_logo open",onClick:s.header.logoClickAction}):pe.jsx(ca,{size:"auto",name:s.header.logoCollapsed,className:"awi_sidebar_logo closed",onClick:s.header.logoClickAction}),pe.jsx(ca,{name:f?"sidebarClose":"sidebarOpen",className:`awi_sidebar_close_icon ${f?"open":"closed"}`,onClick:g})]}),pe.jsx("main",{className:`awi_sidebar_body ${f?"open":"closed"}`,children:s.body.static.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(ua,{variant:e==b.key?"primary":"nav",size:"l",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)}))}),pe.jsx("div",{className:"awi_sidebar_content_dynamic",children:(p=s.body.dynamic)!=null&&p[e]?(y=(C=s.body.dynamic)==null?void 0:C[e])==null?void 0:y.map((b,h)=>pe.jsx("div",{className:"awi_sidebar_nav_container",children:pe.jsx(ua,{variant:t==b.key?"primary":"secondary",size:"m",gap:f?"0.25rem":"0",width:f?"100%":"max-content",borderColor:"var(--awi-color-sidebar-button-border, #FFCC00)",backgroundColor:"var(--awi-color-sidebar-button-background, #FFCC00)",textColor:"var(--awi-color-sidebar-button-text, #292929)",icon:b.icon,placement:"flex-start",content:f?b.title:void 0,onClick:b.action},h)})):pe.jsx(pe.Fragment,{})}),pe.jsxs("footer",{className:`awi_sidebar_footer ${e==s.footer.key?"active":""}`,onClick:s.footer.action,children:[pe.jsx("img",{src:s.footer.image,alt:"Footer or Profile Image"}),pe.jsxs("div",{className:"awi_sidebar_footer_content "+(f?"open":"closed"),children:[pe.jsx("p",{className:"title",children:s.footer.title}),pe.jsx("p",{className:"description",children:s.footer.description})]})]})]})},R$=({value:e=!1,disabled:t=!1,checkedChildren:n,unCheckedChildren:r,onChange:o=()=>{},loading:s=!1,uncheckedBackgroundColor:c="#29292955",checkedBackgroundColor:u="#ffcc00",disabledBackgroundColor:d="#29292929"})=>{const[m,f]=R.useState(e),g=e!==void 0,p=g?e:m,C=y=>{g||f(y),o==null||o(y)};return pe.jsx(N4,{checked:p,onChange:C,disabled:t,loading:s,checkedChildren:n,unCheckedChildren:r,style:{backgroundColor:t||s?d:p?u:c}})};var hl={exports:{}};/**
270
270
  * @license
271
271
  * Lodash <https://lodash.com/>
272
272
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ambuj.bhaskar/react-component-library",
3
3
  "private": false,
4
- "version": "0.11.3-alpha",
4
+ "version": "0.11.4-alpha",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"