vrfi-design-system 1.2.17 → 1.2.19
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.d.ts +3 -1
- package/dist/main.es.js +17 -13
- package/dist/main.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1223,12 +1223,14 @@ declare interface StatItem {
|
|
|
1223
1223
|
key: string;
|
|
1224
1224
|
label: string;
|
|
1225
1225
|
count: string | number;
|
|
1226
|
+
value?: string | number;
|
|
1226
1227
|
}
|
|
1227
1228
|
|
|
1228
1229
|
declare interface StatItem_2 {
|
|
1229
1230
|
key: string;
|
|
1230
1231
|
label: string;
|
|
1231
|
-
value
|
|
1232
|
+
value?: string | number;
|
|
1233
|
+
count?: string | number;
|
|
1232
1234
|
}
|
|
1233
1235
|
|
|
1234
1236
|
export declare interface Stats {
|
package/dist/main.es.js
CHANGED
|
@@ -72040,18 +72040,21 @@ const i8e = "_ratingContainer_1gcfj_24", l8e = "_header_1gcfj_33", s8e = "_title
|
|
|
72040
72040
|
/* @__PURE__ */ M.jsx("span", { children: e }),
|
|
72041
72041
|
r && /* @__PURE__ */ M.jsx(Ss, { content: r, placement: uv.TOP_RIGHT, children: /* @__PURE__ */ M.jsx("img", { src: g_, alt: pr.INFO }) })
|
|
72042
72042
|
] }),
|
|
72043
|
-
/* @__PURE__ */ M.jsx(Gr, { gutter: [24, 24], className: oc.statsContainer, children: t.map((a) =>
|
|
72044
|
-
|
|
72045
|
-
|
|
72046
|
-
|
|
72047
|
-
|
|
72048
|
-
|
|
72049
|
-
|
|
72050
|
-
|
|
72051
|
-
|
|
72052
|
-
|
|
72053
|
-
|
|
72054
|
-
|
|
72043
|
+
/* @__PURE__ */ M.jsx(Gr, { gutter: [24, 24], className: oc.statsContainer, children: t.map((a) => {
|
|
72044
|
+
const i = a.value ?? a.count ?? "-";
|
|
72045
|
+
return /* @__PURE__ */ M.jsxs(
|
|
72046
|
+
an,
|
|
72047
|
+
{
|
|
72048
|
+
span: o,
|
|
72049
|
+
className: oc.statItem,
|
|
72050
|
+
children: [
|
|
72051
|
+
/* @__PURE__ */ M.jsx("div", { className: oc.value, children: i }),
|
|
72052
|
+
/* @__PURE__ */ M.jsx("div", { className: oc.label, children: a.label })
|
|
72053
|
+
]
|
|
72054
|
+
},
|
|
72055
|
+
a.key
|
|
72056
|
+
);
|
|
72057
|
+
}) })
|
|
72055
72058
|
] });
|
|
72056
72059
|
};
|
|
72057
72060
|
/*!
|
|
@@ -79356,7 +79359,8 @@ function Uze({
|
|
|
79356
79359
|
align: pr.ALIGN,
|
|
79357
79360
|
anchor: pr.ANCHOR,
|
|
79358
79361
|
clip: !0,
|
|
79359
|
-
clamp: !0
|
|
79362
|
+
clamp: !0,
|
|
79363
|
+
font: { weight: 500 }
|
|
79360
79364
|
}
|
|
79361
79365
|
}
|
|
79362
79366
|
};
|
package/dist/main.umd.js
CHANGED
|
@@ -623,7 +623,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
623
623
|
${i},
|
|
624
624
|
${l}
|
|
625
625
|
`]:Object.assign({},yEe(e))}}},a_=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};fa.prepareComponentToken=a_,fa.default=(0,r_.genStyleHooks)("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=(0,r_.mergeToken)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[PEe(r)]},a_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Mh=Je.default,OEe=Et.default;Object.defineProperty(Th,"__esModule",{value:!0}),Th.default=void 0;var jS=OEe(M),IEe=Mh(An),DEe=Mh(ol),TEe=Un,NEe=Mh(ws),MEe=Mh(fa);const BEe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=jS.useContext(TEe.ConfigContext),s=l("skeleton",t),[c,d,A]=(0,MEe.default)(s),f=(0,DEe.default)(e,["prefixCls","className"]),g=(0,IEe.default)(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,A);return c(jS.createElement("div",{className:g},jS.createElement(NEe.default,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},f))))};Th.default=BEe;var Bh={},zh=Je.default,zEe=Et.default;Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.default=void 0;var _S=zEe(M),REe=zh(An),HEe=zh(ol),jEe=Un,_Ee=zh(ws),$Ee=zh(fa);const kEe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=_S.useContext(jEe.ConfigContext),s=l("skeleton",t),[c,d,A]=(0,$Ee.default)(s),f=(0,HEe.default)(e,["prefixCls"]),g=(0,REe.default)(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,A);return c(_S.createElement("div",{className:g},_S.createElement(_Ee.default,Object.assign({prefixCls:`${s}-button`,size:i},f))))};Bh.default=kEe;var Rh={},i_=Je.default,LEe=Et.default;Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.default=void 0;var md=LEe(M),l_=i_(An),FEe=Un,WEe=i_(fa);const JEe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",QEe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=md.useContext(FEe.ConfigContext),l=i("skeleton",t),[s,c,d]=(0,WEe.default)(l),A=(0,l_.default)(l,`${l}-element`,{[`${l}-active`]:a},n,r,c,d);return s(md.createElement("div",{className:A},md.createElement("div",{className:(0,l_.default)(`${l}-image`,n),style:o},md.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},md.createElement("title",null,"Image placeholder"),md.createElement("path",{d:JEe,className:`${l}-image-path`})))))};Rh.default=QEe;var Hh={},jh=Je.default,XEe=Et.default;Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.default=void 0;var $S=XEe(M),KEe=jh(An),GEe=jh(ol),UEe=Un,YEe=jh(ws),VEe=jh(fa);const qEe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=$S.useContext(UEe.ConfigContext),s=l("skeleton",t),[c,d,A]=(0,VEe.default)(s),f=(0,GEe.default)(e,["prefixCls"]),g=(0,KEe.default)(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,A);return c($S.createElement("div",{className:g},$S.createElement(YEe.default,Object.assign({prefixCls:`${s}-input`,size:i},f))))};Hh.default=qEe;var _h={},s_=Je.default,ZEe=Et.default;Object.defineProperty(_h,"__esModule",{value:!0}),_h.default=void 0;var kS=ZEe(M),c_=s_(An),eSe=Un,tSe=s_(fa);const nSe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=kS.useContext(eSe.ConfigContext),s=l("skeleton",t),[c,d,A]=(0,tSe.default)(s),f=(0,c_.default)(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,A);return c(kS.createElement("div",{className:f},kS.createElement("div",{className:(0,c_.default)(`${s}-image`,n),style:o},i)))};_h.default=nSe;var $h={},rSe=Je.default,oSe=Et.default;Object.defineProperty($h,"__esModule",{value:!0}),$h.default=void 0;var d_=oSe(M),aSe=rSe(An);const iSe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},lSe=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((i,l)=>d_.createElement("li",{key:l,style:{width:iSe(l,e)}}));return d_.createElement("ul",{className:(0,aSe.default)(t,n),style:r},a)};$h.default=lSe;var kh={},sSe=Je.default,cSe=Et.default;Object.defineProperty(kh,"__esModule",{value:!0}),kh.default=void 0;var dSe=cSe(M),uSe=sSe(An);const ASe=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return dSe.createElement("h3",{className:(0,uSe.default)(t,n),style:Object.assign({width:r},o)})};kh.default=ASe;var Qa=Je.default,fSe=Et.default;Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.default=void 0;var vd=fSe(M),gSe=Qa(An),mSe=sr,vSe=Qa(Th),pSe=Qa(Bh),hSe=Qa(ws),bSe=Qa(Rh),CSe=Qa(Hh),ySe=Qa(_h),xSe=Qa($h),wSe=Qa(fa),ESe=Qa(kh);function LS(e){return e&&typeof e=="object"?e:{}}function SSe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function PSe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function OSe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Es=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:A}=e,{getPrefixCls:f,direction:g,className:v,style:p}=(0,mSe.useComponentConfig)("skeleton"),m=f("skeleton",t),[h,b,C]=(0,wSe.default)(m);if(n||!("loading"in e)){const y=!!l,x=!!s,w=!!c;let S;if(y){const P=Object.assign(Object.assign({prefixCls:`${m}-avatar`},SSe(x,w)),LS(l));S=vd.createElement("div",{className:`${m}-header`},vd.createElement(hSe.default,Object.assign({},P)))}let I;if(x||w){let P;if(x){const z=Object.assign(Object.assign({prefixCls:`${m}-title`},PSe(y,w)),LS(s));P=vd.createElement(ESe.default,Object.assign({},z))}let O;if(w){const z=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},OSe(y,x)),LS(c));O=vd.createElement(xSe.default,Object.assign({},z))}I=vd.createElement("div",{className:`${m}-content`},P,O)}const E=(0,gSe.default)(m,{[`${m}-with-avatar`]:y,[`${m}-active`]:d,[`${m}-rtl`]:g==="rtl",[`${m}-round`]:A},v,r,o,b,C);return h(vd.createElement("div",{className:E,style:Object.assign(Object.assign({},p),a)},S,I))}return i??null};Es.Button=pSe.default,Es.Avatar=vSe.default,Es.Input=CSe.default,Es.Image=bSe.default,Es.Node=ySe.default,process.env.NODE_ENV!=="production"&&(Es.displayName="Skeleton"),Dh.default=Es;var ISe=Je.default;Object.defineProperty(MS,"__esModule",{value:!0}),Te.Skeleton=MS.default=void 0;var DSe=ISe(Dh);Te.Skeleton=MS.default=DSe.default;const nr={chatDetails:"_chatDetails_12d43_24",dateSeparator:"_dateSeparator_12d43_32",noTopMargin:"_noTopMargin_12d43_49",chatHeader:"_chatHeader_12d43_53",messages:"_messages_12d43_65",message:"_message_12d43_65",myMessage:"_myMessage_12d43_82",messageContent:"_messageContent_12d43_90",timestamp:"_timestamp_12d43_104",otherMessageBlock:"_otherMessageBlock_12d43_111",avatarContainer:"_avatarContainer_12d43_117",userDetailName:"_userDetailName_12d43_120",inputContainer:"_inputContainer_12d43_146",inputWrapper:"_inputWrapper_12d43_151",sendMsgBtn:"_sendMsgBtn_12d43_166",selectChatPlaceholder:"_selectChatPlaceholder_12d43_185",fadeIn:"_fadeIn_12d43_1",myMessageContentWrapper:"_myMessageContentWrapper_12d43_206"},Xa={CHAT_LOGO_ALT:"chat logo",CHAT_HEADER:"Chat",SEARCH_PLACEHOLDER:"Search by name or email",START_CHAT_PLACEHOLDER:"Please select a chat to start messaging",CHAT_LIST_HEADING:"All Chats",INPUT_PLACEHOLDER:"Enter your message...",DEFAULT_USER_NAME:"User",SEND_ICON_ALT:"Send message",SUPPORT_CHAT:"support",SUPPORT_CHAT_LABEL:"Support"},TSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGmSURBVHgBpZThVcIwEMdz0OJXNrAbWCegI7ABbqBOgE4gG8AGsgE4gTgBbADfoEmTeP+mea1CMeC9V15yuf+PyyU5Ev8wKWVqjMgwvrmJ50S0oVCxtTZRSmcsurMWEJuwu19H0CaOO/fUIu5rrTNracDjlF3pbzFHLY0xX0SdAZEYwsvz58iHKKUyY+iRM0g5k6RCe/Ec4m6XVlEUrThm5zR6zH8I2JK/TNQwPZaysPxt87x4l1JNiqIYIlPRYl6T5+rlcJBPGCMpsd/bpIItzgHaYJjzeIp5uejpOLFrYA6oP5FQOcECAnCK18CwK5eQmlRBKnMO/XYprKnn2g9FnXKxcEXV40tgsJMlc2mXdbAICIW5ddyKYnu0UEHXAIfC3O6gqQ7keLHc+joU5g+kNcYDQ2AwXP6jA2laVQ8bAoOdunId8WML5sOP+dGPfE1Z9HAKyG96gLeOtuV9UTOg1+tNWIyHP3KNoZQl/DPlMtzGcffVx+LJCqG5H9ZJBFnzSrnaytRdZudry/5PaJ7Lma/vuToHd2yY65mCG6/dccuf+b7YtG9HiAVEOIWfUgAAAABJRU5ErkJggg==",NSe=e=>e!=null&&e.trim()?e.toLowerCase().split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):"",FS=e=>e?new Date(e).toLocaleTimeString([],{hour:"numeric",minute:"2-digit",hour12:!0}):"";var u_=(e=>(e.REGULAR="regular",e.SUPPORT="support",e))(u_||{});const MSe=(e,t)=>(e==null?void 0:e.senderId)===(t==null?void 0:t.senderId),BSe=(e,t)=>!e||!t?!1:new Date(e.createdAt??"").toDateString()===new Date(t.createdAt??"").toDateString(),zSe=(e,t)=>!e||!t?!1:Math.abs(new Date(t.createdAt??"").getTime()-new Date(e.createdAt??"").getTime())<=60*60*1e3,RSe=(e,t,n)=>n===0||!MSe(e,t)||!BSe(e,t)||!zSe(e,t),HSe=e=>{const t=new Date(e),n=new Date,r=new Date;r.setDate(n.getDate()-1);const o=t.toDateString();return o===n.toDateString()?"Today":o===r.toDateString()?"Yesterday":t.toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"})},jSe=(e,t,n)=>{const r=e[t],o=e[t-1],a=RSe(o,r,t),i=HSe((r==null?void 0:r.createdAt)??"");return{showMeta:a,showDateLabel:i!==n,currentDateLabel:i}},A_={[Yi.EMPLOYER]:{label:"Employer",className:"employer"},[Yi.CANDIDATE]:{label:"Candidate",className:"candidate"}},_Se=(e,t,n,r)=>{if(e!==u_.REGULAR)return{label:"Support",className:"support"};const o=t===n?r:n;return o&&A_[o]?A_[o]:{label:"",className:""}},$Se=({selectedChat:e,newMessage:t,onMessageChange:n,onSendMessage:r,userType:o,loggedInUserId:a})=>{var f,g,v,p,m,h;const i=M.useRef(null);M.useEffect(()=>{var b;(b=i.current)==null||b.scrollIntoView({behavior:"auto"})},[(f=e==null?void 0:e.messages)==null?void 0:f.length]);const l=b=>{b.key==="Enter"&&r()};if(!e)return B.jsx("div",{className:nr.selectChatPlaceholder,children:Xa.START_CHAT_PLACEHOLDER});(v=(g=e.messages)==null?void 0:g[0])==null||v.senderDetails;const s=e.chatType===Xa.SUPPORT_CHAT&&o===Yi.CANDIDATE?Xa.SUPPORT_CHAT_LABEL:((p=e.participantDetails)==null?void 0:p.name)??"";let c="";const d=(b,C)=>{var y,x,w;return C&&B.jsxs("div",{className:nr.avatarContainer,children:[B.jsx(yo,{size:eo.LARGE,name:((y=b==null?void 0:b.senderDetails)==null?void 0:y.fullName)||s,imageUrl:((x=b==null?void 0:b.senderDetails)==null?void 0:x.displayPictureUrl)||void 0}),B.jsx("p",{className:nr.userDetailName,children:NSe(((w=b==null?void 0:b.senderDetails)==null?void 0:w.fullName)||s)||Xa.DEFAULT_USER_NAME}),B.jsx("div",{className:nr.timestamp,children:FS((b==null?void 0:b.createdAt)??"")})]})},A=(m=e.messages)==null?void 0:m.map((b,C)=>{var I,E;const{showMeta:y,showDateLabel:x,currentDateLabel:w}=jSe(e.messages??[],C,c);x&&(c=w);const S=a===b.senderId;return B.jsxs(M.Fragment,{children:[x&&B.jsxs("div",{className:it(nr.dateSeparator,{[nr.noTopMargin]:C===0||!((E=(I=e.messages)==null?void 0:I[C-1])!=null&&E.body)}),children:[B.jsx("hr",{}),B.jsx("span",{children:w}),B.jsx("hr",{})]}),B.jsx("div",{className:it(nr.message,{[nr.myMessage]:S,[nr.otherMessage]:!S}),children:S?B.jsxs("div",{className:it(nr.myMessageContentWrapper,{[nr.withTimestampMargin]:y}),children:[y&&B.jsx("div",{className:nr.timestamp,children:FS(b.createdAt??"")}),B.jsx("div",{className:nr.messageContent,children:b.body})]}):B.jsxs("div",{className:nr.otherMessageBlock,children:[d(b,y),B.jsx("div",{className:nr.messageContent,children:b.body})]})})]},b.id??C)});return B.jsxs("div",{className:nr.chatDetails,children:[B.jsxs("div",{className:nr.chatHeader,children:[B.jsx(yo,{size:eo.LARGE,name:s,imageUrl:(h=e.participantDetails)==null?void 0:h.profileUrl}),B.jsx("div",{children:s||Xa.DEFAULT_USER_NAME})]}),B.jsxs("div",{className:nr.messages,children:[A,B.jsx("div",{ref:i})]}),B.jsx("div",{className:nr.inputContainer,children:B.jsxs("div",{className:nr.inputWrapper,children:[B.jsx("input",{value:t,onChange:n,onKeyDown:l,placeholder:Xa.INPUT_PLACEHOLDER}),B.jsx("button",{onClick:r,className:nr.sendMsgBtn,children:B.jsx("img",{src:TSe,alt:Xa.SEND_ICON_ALT})})]})})]})},lo={chatList:"_chatList_q8wo7_24",chatListHeading:"_chatListHeading_q8wo7_40",chatItem:"_chatItem_q8wo7_53",selected:"_selected_q8wo7_65",chatInfo:"_chatInfo_q8wo7_77",chatContent:"_chatContent_q8wo7_87",topRow:"_topRow_q8wo7_93",userName:"_userName_q8wo7_98",timeStamp:"_timeStamp_q8wo7_105",lastMessage:"_lastMessage_q8wo7_110",unreadMessage:"_unreadMessage_q8wo7_117",displayType:"_displayType_q8wo7_131",employer:"_employer_q8wo7_136",candidate:"_candidate_q8wo7_139",support:"_support_q8wo7_142"},kSe=({chats:e,onChatClick:t,selectedChat:n,userType:r})=>B.jsxs("div",{className:lo.chatList,children:[B.jsx("p",{className:lo.chatListHeading,children:Xa.CHAT_LIST_HEADING}),e.map(o=>{var s,c,d,A;const a=(o==null?void 0:o.chatType)===Xa.SUPPORT_CHAT&&r===Yi.CANDIDATE?Xa.SUPPORT_CHAT_LABEL:((s=o.participantDetails)==null?void 0:s.name)??"",{label:i,className:l}=_Se(o==null?void 0:o.chatType,r,o==null?void 0:o.initiatorType,o==null?void 0:o.receiverType);return B.jsx("div",{onClick:()=>t(o),className:it(lo.chatItem,{[lo.selected]:o.id&&o.id===(n==null?void 0:n.id)||!o.id&&o.newChatId===(n==null?void 0:n.newChatId)}),children:B.jsxs("div",{className:lo.chatInfo,children:[B.jsx(yo,{size:eo.LARGE,name:a,imageUrl:(c=o==null?void 0:o.participantDetails)==null?void 0:c.profileUrl}),B.jsxs("div",{className:lo.chatContent,children:[B.jsxs("div",{className:lo.topRow,children:[B.jsxs("p",{className:lo.userName,children:[a,r===Yi.AGENCY&&B.jsx("span",{className:it(lo.displayType,lo[l]),children:i})]}),B.jsx("span",{className:lo.timeStamp,children:FS(o.updatedAt??"")})]}),B.jsxs("div",{className:lo.topRow,children:[B.jsx("div",{className:lo.lastMessage,children:(d=o==null?void 0:o.lastMessage)==null?void 0:d.body}),o!=null&&o.unreadCount?B.jsx("span",{className:lo.unreadMessage,children:o.unreadCount}):null]})]})]})},(A=o.id??o.newChatId)==null?void 0:A.toString())})]}),Lh={searchContainer:"_searchContainer_11hfx_1",searchWrapper:"_searchWrapper_11hfx_7",suggestionList:"_suggestionList_11hfx_12",suggestionItem:"_suggestionItem_11hfx_37",noMatch:"_noMatch_11hfx_46"};function LSe({placeholder:e,onSearch:t,suggestions:n=[],searchKeys:r,onSelectSuggestion:o,className:a}){const[i,l]=M.useState(!1),[s,c]=M.useState(""),d=M.useRef(null),A=p=>{const m=p.target.value;c(m),t(m),l(!0)},f=M.useCallback(p=>{var m;(m=d.current)!=null&&m.contains(p.relatedTarget)||l(!1)},[]),g=p=>{o==null||o(p),c(""),t(""),l(!1)},v=()=>{c(""),t(""),l(!1)};return B.jsx("div",{className:it(Lh.searchContainer,a),ref:d,onFocus:()=>l(!0),onBlur:f,tabIndex:-1,children:B.jsxs("div",{className:Lh.searchWrapper,children:[B.jsx(ij,{searchPlaceholder:e,searchValue:s,onSearch:A,onClear:v}),i&&n.length>0&&B.jsx("div",{className:Lh.suggestionList,children:n.map((p,m)=>B.jsx("div",{className:Lh.suggestionItem,tabIndex:0,onClick:()=>g(p),children:B.jsx("p",{children:r.map(h=>String(p[h])).join(" - ")})},m))})]})})}const Cl={ratingContainer:"_ratingContainer_1gcfj_24",header:"_header_1gcfj_33",title:"_title_1gcfj_40",total:"_total_1gcfj_45",ratingRow:"_ratingRow_1gcfj_50",stars:"_stars_1gcfj_56",progress:"_progress_1gcfj_63",percent:"_percent_1gcfj_66"},FSe=({ratings:e=[],totalCandidates:t,className:n,title:r})=>B.jsxs("div",{className:it(Cl.ratingContainer,n),children:[B.jsxs("div",{className:Cl.header,children:[B.jsx("span",{className:Cl.title,children:r}),r&&B.jsxs("span",{className:Cl.total,children:[t.toLocaleString("en-US")," candidates"]})]}),e.map(({stars:o,percentage:a})=>B.jsxs("div",{className:Cl.ratingRow,children:[B.jsxs("span",{className:Cl.stars,children:[o," star"]}),B.jsx(Ky,{percent:a,showInfo:!1,strokeColor:"#FF7300",trailColor:"#f5f5f5",strokeWidth:11,className:Cl.progress}),B.jsxs("span",{className:Cl.percent,children:[a,"%"]})]},o))]}),Ei={statsBanner:"_statsBanner_wrp3b_24",statsContent:"_statsContent_wrp3b_33",statsGroup:"_statsGroup_wrp3b_41",title:"_title_wrp3b_46",statsRow:"_statsRow_wrp3b_50",statsCol:"_statsCol_wrp3b_55",statsValue:"_statsValue_wrp3b_60",label:"_label_wrp3b_65",verticalDivider:"_verticalDivider_wrp3b_68"},f_={EXPIRING_IN_NEXT_30_DAYS:"expiring_in_next_30_days",EXPIRED:"expired"},WSe=e=>{switch(e){case f_.EXPIRING_IN_NEXT_30_DAYS:return"#FFBB00";case f_.EXPIRED:return"#ED4D4D";default:return}},JSe=({dashboardData:e,className:t,isLightTheme:n,...r})=>B.jsx("div",{className:it(Ei.statsBanner,t),...r,children:B.jsx("div",{className:Ei.statsContent,children:e==null?void 0:e.map((o,a)=>B.jsxs(M.Fragment,{children:[B.jsxs("div",{className:Ei.statsGroup,children:[B.jsx("p",{className:Ei.title,children:o.title}),B.jsx("div",{className:Ei.statsRow,children:o.stats.map(({key:i,label:l,count:s})=>B.jsxs("div",{className:Ei.statsCol,children:[B.jsx("div",{className:Ei.statsValue,style:{color:WSe(i)},children:s??"-"}),B.jsx("div",{className:Ei.label,children:l})]},i))})]}),a<e.length-1&&B.jsx("div",{className:Ei.verticalDivider})]},o.title))})}),pd={card:"_card_1ikrw_24",title:"_title_1ikrw_32",statsContainer:"_statsContainer_1ikrw_44",statItem:"_statItem_1ikrw_49",value:"_value_1ikrw_55",label:"_label_1ikrw_61"},g_="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='8.5'%20cy='8.5'%20r='8.5'%20fill='%23F1F1F1'/%3e%3cpath%20d='M10.9859%204.52745C10.7465%204.52745%2010.5352%204.43994%2010.3521%204.26492C10.1831%204.0899%2010.0986%203.89101%2010.0986%203.66826C10.0986%203.22275%2010.3662%203%2010.9014%203C11.0986%203%2011.2958%203.07955%2011.493%203.23866C11.6901%203.38186%2011.7887%203.56484%2011.7887%203.78759C11.7887%203.97852%2011.6972%204.15354%2011.5141%204.31265C11.331%204.45585%2011.1549%204.52745%2010.9859%204.52745ZM7.07746%2013C6.76761%2013%206.51408%2012.8886%206.3169%2012.6659C6.10563%2012.4272%206%2012.0135%206%2011.4248C6%2011.0907%206.07042%2010.7088%206.21127%2010.2792C6.33803%209.83373%206.5%209.38823%206.69718%208.94272C6.90845%208.49722%207.11268%208.09944%207.30986%207.7494C8.09859%206.30151%208.74648%205.56961%209.25352%205.5537C9.38028%205.5537%209.53521%205.61734%209.71831%205.74463C9.90141%205.85601%209.99296%205.98329%209.99296%206.12649C9.99296%206.12649%209.45775%206.90612%208.38732%208.46539C7.33099%2010.0087%206.80282%2011.1066%206.80282%2011.7589C6.80282%2012.2681%206.97887%2012.5227%207.33099%2012.5227C7.55634%2012.5227%207.84507%2012.4193%208.19718%2012.2124C8.56338%2011.9897%208.94366%2011.7112%209.33803%2011.3771C9.73239%2011.043%2010.1056%2010.685%2010.4577%2010.3031C10.8239%209.92124%2011.1197%209.5712%2011.3451%209.25298C11.4859%209.04614%2011.6056%208.90294%2011.7042%208.82339C11.8169%208.74383%2011.8873%208.70406%2011.9155%208.70406C11.9718%208.70406%2012%208.75179%2012%208.84726C12%208.92681%2011.9155%209.08592%2011.7465%209.32458C11.5915%209.56325%2011.3732%209.84169%2011.0915%2010.1599C10.7535%2010.5418%2010.3803%2010.9554%209.97183%2011.401C9.56338%2011.8465%209.11972%2012.2283%208.64085%2012.5465C8.16197%2012.8488%207.64084%2013%207.07746%2013Z'%20fill='%23545F70'/%3e%3c/svg%3e",yr={DEFAULT_TITLE:"Pie",CHART_TYPE:"doughnut",PALETTE:["#8EC7E6","#A6E3A1","#F5A3A3","#F9D66F"],BORDER_WIDTH:0,CUTOUT:"0",LEGEND_POSITION:"bottom",FONT:{weight:"600",size:16},POINT_STYLE:"rect",ALIGN:"center",ANCHOR:"center",PCT:"%",LPAREN:"(",RPAREN:")",NEWLINE:`
|
|
626
|
-
`,LABEL_COLOR:"#000000",CHART_HEIGHT:50,INFO:"info"},QSe=({title:e,overview:t,itemsPerRow:n=3,info:r})=>{const o=24/n;return B.jsxs("div",{className:pd.card,children:[B.jsxs("h3",{className:pd.title,children:[B.jsx("span",{children:e}),r&&B.jsx(Fl,{content:r,placement:Dd.TOP_RIGHT,children:B.jsx("img",{src:g_,alt:yr.INFO})})]}),B.jsx(Jr,{gutter:[24,24],className:pd.statsContainer,children:t.map(a=>B.jsxs(rn,{span:o,className:pd.statItem,children:[B.jsx("div",{className:pd.value,children:
|
|
626
|
+
`,LABEL_COLOR:"#000000",CHART_HEIGHT:50,INFO:"info"},QSe=({title:e,overview:t,itemsPerRow:n=3,info:r})=>{const o=24/n;return B.jsxs("div",{className:pd.card,children:[B.jsxs("h3",{className:pd.title,children:[B.jsx("span",{children:e}),r&&B.jsx(Fl,{content:r,placement:Dd.TOP_RIGHT,children:B.jsx("img",{src:g_,alt:yr.INFO})})]}),B.jsx(Jr,{gutter:[24,24],className:pd.statsContainer,children:t.map(a=>{const i=a.value??a.count??"-";return B.jsxs(rn,{span:o,className:pd.statItem,children:[B.jsx("div",{className:pd.value,children:i}),B.jsx("div",{className:pd.label,children:a.label})]},a.key)})})]})};/*!
|
|
627
627
|
* @kurkle/color v0.3.4
|
|
628
628
|
* https://github.com/kurkle/color#readme
|
|
629
629
|
* (c) 2024 Jukka Kurkela
|
|
@@ -646,4 +646,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
646
646
|
* (c) 2017-2022 chartjs-plugin-datalabels contributors
|
|
647
647
|
* Released under the MIT license
|
|
648
648
|
*/var a$=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),tf={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
|
|
649
|
-
`)):Array.isArray(n)?e.push.apply(e,n):rr(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),o=r.length,a=e.font,i=0,l;for(e.font=n.string,l=0;l<o;++l)i=Math.max(e.measureText(r[l]).width,i);return e.font=a,{height:o*n.lineHeight,width:i}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],o,a,i,l;for(o=0,i=t.length;o<i;++o)l=t[o],a=n.indexOf(l),a===-1?r.push([l,1]):n.splice(a,1);for(o=0,i=n.length;o<i;++o)r.push([n[o],-1]);return r},rasterize:function(e){return Math.round(e*a$)/a$}};function x1(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var o=e.x-n,a=e.y-r,i=Math.sqrt(o*o+a*a);return{x:i?o/i:0,y:i?a/i:-1}}function yIe(e,t,n,r,o){switch(o){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),r=Math.sin(o);break}return{x:e,y:t,vx:n,vy:r}}var xIe=0,i$=1,l$=2,s$=4,c$=8;function b0(e,t,n){var r=xIe;return e<n.left?r|=i$:e>n.right&&(r|=l$),t<n.top?r|=c$:t>n.bottom&&(r|=s$),r}function wIe(e,t){for(var n=e.x0,r=e.y0,o=e.x1,a=e.y1,i=b0(n,r,t),l=b0(o,a,t),s,c,d;!(!(i|l)||i&l);)s=i||l,s&c$?(c=n+(o-n)*(t.top-r)/(a-r),d=t.top):s&s$?(c=n+(o-n)*(t.bottom-r)/(a-r),d=t.bottom):s&l$?(d=r+(a-r)*(t.right-n)/(o-n),c=t.right):s&i$&&(d=r+(a-r)*(t.left-n)/(o-n),c=t.left),s===i?(n=c,r=d,i=b0(n,r,t)):(o=c,a=d,l=b0(o,a,t));return{x0:n,x1:o,y0:r,y1:a}}function C0(e,t){var n=t.anchor,r=e,o,a;return t.clamp&&(r=wIe(r,t.area)),n==="start"?(o=r.x0,a=r.y0):n==="end"?(o=r.x1,a=r.y1):(o=(r.x0+r.x1)/2,a=(r.y0+r.y1)/2),yIe(o,a,e.vx,e.vy,t.align)}var y0={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),o=Math.sin(n),a=e.innerRadius,i=e.outerRadius;return C0({x0:e.x+r*a,y0:e.y+o*a,x1:e.x+r*i,y1:e.y+o*i,vx:r,vy:o},t)},point:function(e,t){var n=x1(e,t.origin),r=n.x*e.options.radius,o=n.y*e.options.radius;return C0({x0:e.x-r,y0:e.y-o,x1:e.x+r,y1:e.y+o,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=x1(e,t.origin),r=e.x,o=e.y,a=0,i=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(o=Math.min(e.y,e.base),i=Math.abs(e.base-e.y)),C0({x0:r,y0:o+i,x1:r+a,y1:o,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=x1(e,t.origin);return C0({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},Ti=tf.rasterize;function EIe(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,o=e.size.width,a=-o/2,i=-r/2;return{frame:{x:a-n.left-t,y:i-n.top-t,w:o+n.width+t*2,h:r+n.height+t*2},text:{x:a,y:i,w:o,h:r}}}function SIe(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function PIe(e){return e instanceof Ed?y0.arc:e instanceof f0?y0.point:e instanceof g0?y0.bar:y0.fallback}function OIe(e,t,n,r,o,a){var i=Math.PI/2;if(a){var l=Math.min(a,o/2,r/2),s=t+l,c=n+l,d=t+r-l,A=n+o-l;e.moveTo(t,c),s<d&&c<A?(e.arc(s,c,l,-Math.PI,-i),e.arc(d,c,l,-i,0),e.arc(d,A,l,0,i),e.arc(s,A,l,i,Math.PI)):s<d?(e.moveTo(s,n),e.arc(d,c,l,-i,i),e.arc(s,c,l,i,Math.PI+i)):c<A?(e.arc(s,c,l,-Math.PI,0),e.arc(s,A,l,0,Math.PI)):e.arc(s,c,l,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,o)}function IIe(e,t,n){var r=n.backgroundColor,o=n.borderColor,a=n.borderWidth;!r&&(!o||!a)||(e.beginPath(),OIe(e,Ti(t.x)+a/2,Ti(t.y)+a/2,Ti(t.w)-a,Ti(t.h)-a,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),o&&a&&(e.strokeStyle=o,e.lineWidth=a,e.lineJoin="miter",e.stroke()))}function DIe(e,t,n){var r=n.lineHeight,o=e.w,a=e.x,i=e.y+r/2;return t==="center"?a+=o/2:(t==="end"||t==="right")&&(a+=o),{h:r,w:o,x:a,y:i}}function TIe(e,t,n){var r=e.shadowBlur,o=n.stroked,a=Ti(n.x),i=Ti(n.y),l=Ti(n.w);o&&e.strokeText(t,a,i,l),n.filled&&(r&&o&&(e.shadowBlur=0),e.fillText(t,a,i,l),r&&o&&(e.shadowBlur=r))}function NIe(e,t,n,r){var o=r.textAlign,a=r.color,i=!!a,l=r.font,s=t.length,c=r.textStrokeColor,d=r.textStrokeWidth,A=c&&d,f;if(!(!s||!i&&!A))for(n=DIe(n,o,l),e.font=l.string,e.textAlign=o,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,i&&(e.fillStyle=a),A&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=c),f=0,s=t.length;f<s;++f)TIe(e,t[f],{stroked:A,filled:i,w:n.w,x:n.x,y:n.y+n.h*f})}var d$=function(e,t,n,r){var o=this;o._config=e,o._index=r,o._model=null,o._rects=null,o._ctx=t,o._el=n};Ga(d$.prototype,{_modelize:function(e,t,n,r){var o=this,a=o._index,i=Xr(kn([n.font,{}],r,a)),l=kn([n.color,Vn.color],r,a);return{align:kn([n.align,"center"],r,a),anchor:kn([n.anchor,"center"],r,a),area:r.chart.chartArea,backgroundColor:kn([n.backgroundColor,null],r,a),borderColor:kn([n.borderColor,null],r,a),borderRadius:kn([n.borderRadius,0],r,a),borderWidth:kn([n.borderWidth,0],r,a),clamp:kn([n.clamp,!1],r,a),clip:kn([n.clip,!1],r,a),color:l,display:e,font:i,lines:t,offset:kn([n.offset,4],r,a),opacity:kn([n.opacity,1],r,a),origin:SIe(o._el,r),padding:Wo(kn([n.padding,4],r,a)),positioner:PIe(o._el),rotation:kn([n.rotation,0],r,a)*(Math.PI/180),size:tf.textSize(o._ctx,t,i),textAlign:kn([n.textAlign,"start"],r,a),textShadowBlur:kn([n.textShadowBlur,0],r,a),textShadowColor:kn([n.textShadowColor,l],r,a),textStrokeColor:kn([n.textStrokeColor,l],r,a),textStrokeWidth:kn([n.textStrokeWidth,0],r,a)}},update:function(e){var t=this,n=null,r=null,o=t._index,a=t._config,i,l,s,c=kn([a.display,!0],e,o);c&&(i=e.dataset.data[o],l=bn(Tn(a.formatter,[i,e]),i),s=rr(l)?[]:tf.toTextLines(l),s.length&&(n=t._modelize(c,s,a,e),r=EIe(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,o=n._model,a=n._rects,i;this.visible()&&(r.save(),o.clip&&(i=o.area,r.beginPath(),r.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),r.clip()),r.globalAlpha=tf.bound(0,o.opacity,1),r.translate(Ti(t.x),Ti(t.y)),r.rotate(o.rotation),IIe(r,a.frame,o),NIe(r,o.lines,a.text,o),r.restore())}});var MIe=Number.MIN_SAFE_INTEGER||-9007199254740991,BIe=Number.MAX_SAFE_INTEGER||9007199254740991;function nf(e,t,n){var r=Math.cos(n),o=Math.sin(n),a=t.x,i=t.y;return{x:a+r*(e.x-a)-o*(e.y-i),y:i+o*(e.x-a)+r*(e.y-i)}}function u$(e,t){var n=BIe,r=MIe,o=t.origin,a,i,l,s,c;for(a=0;a<e.length;++a)i=e[a],l=i.x-o.x,s=i.y-o.y,c=t.vx*l+t.vy*s,n=Math.min(n,c),r=Math.max(r,c);return{min:n,max:r}}function x0(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/o,vy:(t.y-e.y)/o,origin:e,ln:o}}var A$=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Ga(A$.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=nf(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[x0(t[0],t[1]),x0(t[0],t[3])],o,a,i;for(this._rotation!==e._rotation&&r.push(x0(n[0],n[1]),x0(n[0],n[3])),o=0;o<r.length;++o)if(a=u$(t,r[o]),i=u$(n,r[o]),a.max<i.min||i.max<a.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[nf({x:t.x,y:t.y},r,n),nf({x:t.x+t.w,y:t.y},r,n),nf({x:t.x+t.w,y:t.y+t.h},r,n),nf({x:t.x,y:t.y+t.h},r,n)]}});function f$(e,t,n){var r=t.positioner(e,t),o=r.vx,a=r.vy;if(!o&&!a)return{x:r.x,y:r.y};var i=n.w,l=n.h,s=t.rotation,c=Math.abs(i/2*Math.cos(s))+Math.abs(l/2*Math.sin(s)),d=Math.abs(i/2*Math.sin(s))+Math.abs(l/2*Math.cos(s)),A=1/Math.max(Math.abs(o),Math.abs(a));return c*=o*A,d*=a*A,c+=t.offset*o,d+=t.offset*a,{x:r.x+c,y:r.y+d}}function zIe(e,t){var n,r,o,a;for(n=e.length-1;n>=0;--n)for(o=e[n].$layout,r=n-1;r>=0&&o._visible;--r)a=e[r].$layout,a._visible&&o._box.intersects(a._box)&&t(o,a);return e}function RIe(e){var t,n,r,o,a,i,l;for(t=0,n=e.length;t<n;++t)r=e[t],o=r.$layout,o._visible&&(l=new Proxy(r._el,{get:(s,c)=>s.getProps([c],!0)[c]}),a=r.geometry(),i=f$(l,r.model(),a),o._box.update(i,a,r.rotation()));return zIe(e,function(s,c){var d=s._hidable,A=c._hidable;d&&A||A?c._visible=!1:d&&(s._visible=!1)})}var rf={prepare:function(e){var t=[],n,r,o,a,i;for(n=0,o=e.length;n<o;++n)for(r=0,a=e[n].length;r<a;++r)i=e[n][r],t.push(i),i.$layout={_box:new A$,_hidable:!1,_visible:!0,_set:n,_idx:i._index};return t.sort(function(l,s){var c=l.$layout,d=s.$layout;return c._idx===d._idx?d._set-c._set:d._idx-c._idx}),this.update(t),t},update:function(e){var t=!1,n,r,o,a,i;for(n=0,r=e.length;n<r;++n)o=e[n],a=o.model(),i=o.$layout,i._hidable=a&&a.display==="auto",i._visible=o.visible(),t|=i._hidable;t&&RIe(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,o,a,i,l;for(n=0,r=t.length;n<r;++n)o=t[n],a=o.$layout,a._visible&&(i=o.geometry(),l=f$(o._el,o.model(),i),a._box.update(l,i,o.rotation()),o.draw(e,l))}},HIe=function(e){if(rr(e))return null;var t=e,n,r,o;if(un(e))if(!rr(e.label))t=e.label;else if(!rr(e.r))t=e.r;else for(t="",n=Object.keys(e),o=0,r=n.length;o<r;++o)t+=(o!==0?", ":"")+n[o]+": "+e[n[o]];return""+t},jIe={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:HIe,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},uo="$datalabels",g$="$default";function _Ie(e,t){var n=e.datalabels,r={},o=[],a,i;return n===!1?null:(n===!0&&(n={}),t=Ga({},[t,n]),a=t.labels||{},i=Object.keys(a),delete t.labels,i.length?i.forEach(function(l){a[l]&&o.push(Ga({},[t,a[l],{_key:l}]))}):o.push(t),r=o.reduce(function(l,s){return Cn(s.listeners||{},function(c,d){l[d]=l[d]||{},l[d][s._key||g$]=c}),delete s.listeners,l},{}),{labels:o,listeners:r})}function w1(e,t,n,r){if(t){var o=n.$context,a=n.$groups,i;t[a._set]&&(i=t[a._set][a._key],i&&Tn(i,[o,r])===!0&&(e[uo]._dirty=!0,n.update(o)))}}function $Ie(e,t,n,r,o){var a,i;!n&&!r||(n?r?n!==r&&(i=a=!0):i=!0:a=!0,i&&w1(e,t.leave,n,o),a&&w1(e,t.enter,r,o))}function kIe(e,t){var n=e[uo],r=n._listeners,o,a;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")a=rf.lookup(n._labels,t);else if(t.type!=="mouseout")return;o=n._hovered,n._hovered=a,$Ie(e,r,o,a,t)}}function LIe(e,t){var n=e[uo],r=n._listeners.click,o=r&&rf.lookup(n._labels,t);o&&w1(e,r,o,t)}var FIe={id:"datalabels",defaults:jIe,beforeInit:function(e){e[uo]={_actives:[]}},beforeUpdate:function(e){var t=e[uo];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,o=e[uo],a=o._datasets[r]=[],i=e.isDatasetVisible(r),l=e.data.datasets[r],s=_Ie(l,n),c=t.meta.data||[],d=e.ctx,A,f,g,v,p,m,h,b;for(d.save(),A=0,g=c.length;A<g;++A)if(h=c[A],h[uo]=[],i&&h&&e.getDataVisibility(A)&&!h.skip)for(f=0,v=s.labels.length;f<v;++f)p=s.labels[f],m=p._key,b=new d$(p,d,h,A),b.$groups={_set:r,_key:m||g$},b.$context={active:!1,chart:e,dataIndex:A,dataset:l,datasetIndex:r},b.update(b.$context),h[uo].push(b),a.push(b);d.restore(),Ga(o._listeners,s.listeners,{merger:function(C,y,x){y[C]=y[C]||{},y[C][t.index]=x[C],o._listened=!0}})},afterUpdate:function(e){e[uo]._labels=rf.prepare(e[uo]._datasets)},afterDatasetsDraw:function(e){rf.draw(e,e[uo]._labels)},beforeEvent:function(e,t){if(e[uo]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":kIe(e,n);break;case"click":LIe(e,n);break}}},afterEvent:function(e){var t=e[uo],n=t._actives,r=t._actives=e.getActiveElements(),o=tf.arrayDiff(n,r),a,i,l,s,c,d,A;for(a=0,i=o.length;a<i;++a)if(c=o[a],c[1])for(A=c[0].element[uo]||[],l=0,s=A.length;l<s;++l)d=A[l],d.$context.active=c[1]===1,d.update(d.$context);(t._dirty||o.length)&&(rf.update(t._labels),e.render()),delete t._dirty}};const E1={card:"_card_16ceq_24",header:"_header_16ceq_33",chartWrap:"_chartWrap_16ceq_44"};u0.register(Ed,uIe,rIe,FIe);function WIe({title:e=yr.DEFAULT_TITLE,data:t,colors:n,height:r=300,info:o}){const a=(s,c)=>Array.isArray(n)?n[s%n.length]:(n==null?void 0:n[c])??yr.PALETTE[s%yr.PALETTE.length],i={labels:t.map(s=>s.label),datasets:[{data:t.map(s=>s.count),backgroundColor:t.map((s,c)=>a(c,s.key)),borderWidth:yr.BORDER_WIDTH}]},l={cutout:yr.CUTOUT,maintainAspectRatio:!1,layout:{padding:12},plugins:{legend:{position:yr.LEGEND_POSITION,labels:{usePointStyle:!0,pointStyle:yr.POINT_STYLE,padding:12}},tooltip:{callbacks:{label:s=>{const c=s.dataIndex,d=t[c];return`${d.label}: ${d.percentage}${yr.PCT} ${yr.LPAREN}${d.count.toLocaleString()}${yr.RPAREN}`}}},datalabels:{formatter:(s,c)=>{const d=c.dataIndex,A=t[d];return`${A.percentage}${yr.PCT}${yr.NEWLINE}${yr.LPAREN}${A.count.toLocaleString()}${yr.RPAREN}`},color:yr.LABEL_COLOR,align:yr.ALIGN,anchor:yr.ANCHOR,clip:!0,clamp:!0}}};return B.jsxs("div",{className:E1.card,style:{height:`${r}px`},children:[B.jsxs("div",{className:E1.header,children:[B.jsx("span",{children:e}),o&&B.jsx(Fl,{content:o,placement:Dd.TOP_RIGHT,children:B.jsx("img",{src:g_,alt:yr.INFO})})]}),B.jsx("div",{className:E1.chartWrap,children:B.jsx(CIe,{data:i,options:l})})]})}Te.Accordian=fEe,Te.ActionType=Id,Te.AgencyDocumentCard=mEe,Te.AgencyJobCard=oEe,Te.Align=Od,Te.AllowedCountries=z1,Te.ApplicationHeader=wxe,Te.AuthBanner=ICe,Te.AuthBannerTextType=SB,Te.AuthForm=MCe,Te.AvatarSize=eo,Te.AvatarWithDetailsCard=ese,Te.AvatarWithInitials=Uu,Te.Badge=qu,Te.BadgeType=N1,Te.Bookmark=nEe,Te.Button=Xx,Te.ButtonType=zs,Te.Calendar=cq,Te.Card=Fle,Te.CardStats=QSe,Te.CardWithIconAndText=kCe,Te.ChatDetails=$Se,Te.ChatList=kSe,Te.CheckBoxWithFormWrapper=Hxe,Te.Checkbox=NB,Te.CheckboxGroup=TB,Te.CheckboxSelectField=Cxe,Te.Colors=zo,Te.ColumnSortOrder=EB,Te.CustomAvatar=yo,Te.CustomModal=dEe,Te.CustomModalTypes=Wc,Te.DOM_ELEMENT_ROLE=kx,Te.DashboardCard=Gwe,Te.DashboardStats=JSe,Te.DatePicker=Zse,Te.Disclaimer=mxe,Te.DocVerificationStatus=Qu,Te.DocumentCard=YB,Te.DocumentStatus=gse,Te.DocumentStatusEnum=lf,Te.DocumentView=mse,Te.Drawer=qse,Te.Dropdown=Tm,Te.EllipsisWithTooltip=ci,Te.Error=Ro,Te.FileUpload=bse,Te.FileUploadWithDropdown=_B,Te.FloatingLabel=za,Te.Form=JCe,Te.FormValidationTriggers=xB,Te.GenderProfileEnum=R1,Te.GenderValueEnum=H1,Te.HtmlButtonType=Sd,Te.Icons=vt,Te.InputField=IB,Te.InputTypes=Ni,Te.InputWithCountry=gce,Te.JobCard=eEe,Te.JobTrackingCard=Vwe,Te.JobTypeEnum=_1,Te.Justify=P0,Te.Label=lv,Te.LabelType=Ju,Te.Layout=Qi,Te.ListItem=TS,Te.ListingTableHeader=ij,Te.Loader=Fse,Te.Menu=wu,Te.MenuMode=rv,Te.Modal=$x,Te.ModalTypeEnum=nv,Te.NoData=rj,Te.NoInternetScreen=KB,Te.NoRecords=fxe,Te.Notification=sv,Te.NotificationCard=pce,Te.NotificationPanel=Nse,Te.NotificationTypes=Mi,Te.Offline=$se,Te.Pagination=lEe,Te.Password=rw,Te.PasswordField=rw,Te.PasswordValidation=Axe,Te.PathIcon=Rxe,Te.PieChart=WIe,Te.Placement=Dd,Te.PopoverIconCard=Uwe,Te.PreviewCard=aj,Te.PreviewDocumentsCard=pxe,Te.PreviewModal=Yse,Te.ProfileAssignedCard=nj,Te.ProfileAssignedEmployer=zCe,Te.ProfileAttachments=QCe,Te.ProfileDetail=$Ce,Te.ProfileDetailFooterTypes=ma,Te.RadioGroup=Rse,Te.Rate=Mj,Te.RatingCard=vEe,Te.RatingProgressBar=FSe,Te.RatingStar=sse,Te.RoleManagement=tEe,Te.SearchField=Vx,Te.SearchWithSuggestions=LSe,Te.Segmented=Oxe,Te.Select=jB,Te.SelectType=oa,Te.Sidebar=zse,Te.Size=of,Te.Slider=Sxe,Te.SliderRangeWithForm=kle,Te.SliderWithForm=Wle,Te.SortOrderKeys=wB,Te.SoundEnum=j1,Te.Space=oxe,Te.StatsBanner=ixe,Te.StatusTypes=sf,Te.SummaryCard=el,Te.SwitchComponent=rEe,Te.TImerPicker=iEe,Te.TableComponent=UB,Te.TableLayout=B1,Te.TableType=af,Te.Tabs=hxe,Te.TextArea=Txe,Te.TextAreaWithController=Dxe,Te.Timer=bxe,Te.TitleHeader=axe,Te.TitleHeaderStatus=M1,Te.Tooltip=Jx,Te.Typography=Fc,Te.Upload=wse,Te.UploadWithDropdown=Sse,Te.UserBadge=Ase,Te.UserStatus=Ise,Te.UserType=Yi,Te.VerificationStatus=Pse,Te.VerificationTypes=Pd,Te.formatTimeAgo=$le,Te.useForm=cj,Object.defineProperty(Te,Symbol.toStringTag,{value:"Module"})});
|
|
649
|
+
`)):Array.isArray(n)?e.push.apply(e,n):rr(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),o=r.length,a=e.font,i=0,l;for(e.font=n.string,l=0;l<o;++l)i=Math.max(e.measureText(r[l]).width,i);return e.font=a,{height:o*n.lineHeight,width:i}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],o,a,i,l;for(o=0,i=t.length;o<i;++o)l=t[o],a=n.indexOf(l),a===-1?r.push([l,1]):n.splice(a,1);for(o=0,i=n.length;o<i;++o)r.push([n[o],-1]);return r},rasterize:function(e){return Math.round(e*a$)/a$}};function x1(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var o=e.x-n,a=e.y-r,i=Math.sqrt(o*o+a*a);return{x:i?o/i:0,y:i?a/i:-1}}function yIe(e,t,n,r,o){switch(o){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:o*=Math.PI/180,n=Math.cos(o),r=Math.sin(o);break}return{x:e,y:t,vx:n,vy:r}}var xIe=0,i$=1,l$=2,s$=4,c$=8;function b0(e,t,n){var r=xIe;return e<n.left?r|=i$:e>n.right&&(r|=l$),t<n.top?r|=c$:t>n.bottom&&(r|=s$),r}function wIe(e,t){for(var n=e.x0,r=e.y0,o=e.x1,a=e.y1,i=b0(n,r,t),l=b0(o,a,t),s,c,d;!(!(i|l)||i&l);)s=i||l,s&c$?(c=n+(o-n)*(t.top-r)/(a-r),d=t.top):s&s$?(c=n+(o-n)*(t.bottom-r)/(a-r),d=t.bottom):s&l$?(d=r+(a-r)*(t.right-n)/(o-n),c=t.right):s&i$&&(d=r+(a-r)*(t.left-n)/(o-n),c=t.left),s===i?(n=c,r=d,i=b0(n,r,t)):(o=c,a=d,l=b0(o,a,t));return{x0:n,x1:o,y0:r,y1:a}}function C0(e,t){var n=t.anchor,r=e,o,a;return t.clamp&&(r=wIe(r,t.area)),n==="start"?(o=r.x0,a=r.y0):n==="end"?(o=r.x1,a=r.y1):(o=(r.x0+r.x1)/2,a=(r.y0+r.y1)/2),yIe(o,a,e.vx,e.vy,t.align)}var y0={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),o=Math.sin(n),a=e.innerRadius,i=e.outerRadius;return C0({x0:e.x+r*a,y0:e.y+o*a,x1:e.x+r*i,y1:e.y+o*i,vx:r,vy:o},t)},point:function(e,t){var n=x1(e,t.origin),r=n.x*e.options.radius,o=n.y*e.options.radius;return C0({x0:e.x-r,y0:e.y-o,x1:e.x+r,y1:e.y+o,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=x1(e,t.origin),r=e.x,o=e.y,a=0,i=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(o=Math.min(e.y,e.base),i=Math.abs(e.base-e.y)),C0({x0:r,y0:o+i,x1:r+a,y1:o,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=x1(e,t.origin);return C0({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},Ti=tf.rasterize;function EIe(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,o=e.size.width,a=-o/2,i=-r/2;return{frame:{x:a-n.left-t,y:i-n.top-t,w:o+n.width+t*2,h:r+n.height+t*2},text:{x:a,y:i,w:o,h:r}}}function SIe(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function PIe(e){return e instanceof Ed?y0.arc:e instanceof f0?y0.point:e instanceof g0?y0.bar:y0.fallback}function OIe(e,t,n,r,o,a){var i=Math.PI/2;if(a){var l=Math.min(a,o/2,r/2),s=t+l,c=n+l,d=t+r-l,A=n+o-l;e.moveTo(t,c),s<d&&c<A?(e.arc(s,c,l,-Math.PI,-i),e.arc(d,c,l,-i,0),e.arc(d,A,l,0,i),e.arc(s,A,l,i,Math.PI)):s<d?(e.moveTo(s,n),e.arc(d,c,l,-i,i),e.arc(s,c,l,i,Math.PI+i)):c<A?(e.arc(s,c,l,-Math.PI,0),e.arc(s,A,l,0,Math.PI)):e.arc(s,c,l,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,o)}function IIe(e,t,n){var r=n.backgroundColor,o=n.borderColor,a=n.borderWidth;!r&&(!o||!a)||(e.beginPath(),OIe(e,Ti(t.x)+a/2,Ti(t.y)+a/2,Ti(t.w)-a,Ti(t.h)-a,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),o&&a&&(e.strokeStyle=o,e.lineWidth=a,e.lineJoin="miter",e.stroke()))}function DIe(e,t,n){var r=n.lineHeight,o=e.w,a=e.x,i=e.y+r/2;return t==="center"?a+=o/2:(t==="end"||t==="right")&&(a+=o),{h:r,w:o,x:a,y:i}}function TIe(e,t,n){var r=e.shadowBlur,o=n.stroked,a=Ti(n.x),i=Ti(n.y),l=Ti(n.w);o&&e.strokeText(t,a,i,l),n.filled&&(r&&o&&(e.shadowBlur=0),e.fillText(t,a,i,l),r&&o&&(e.shadowBlur=r))}function NIe(e,t,n,r){var o=r.textAlign,a=r.color,i=!!a,l=r.font,s=t.length,c=r.textStrokeColor,d=r.textStrokeWidth,A=c&&d,f;if(!(!s||!i&&!A))for(n=DIe(n,o,l),e.font=l.string,e.textAlign=o,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,i&&(e.fillStyle=a),A&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=c),f=0,s=t.length;f<s;++f)TIe(e,t[f],{stroked:A,filled:i,w:n.w,x:n.x,y:n.y+n.h*f})}var d$=function(e,t,n,r){var o=this;o._config=e,o._index=r,o._model=null,o._rects=null,o._ctx=t,o._el=n};Ga(d$.prototype,{_modelize:function(e,t,n,r){var o=this,a=o._index,i=Xr(kn([n.font,{}],r,a)),l=kn([n.color,Vn.color],r,a);return{align:kn([n.align,"center"],r,a),anchor:kn([n.anchor,"center"],r,a),area:r.chart.chartArea,backgroundColor:kn([n.backgroundColor,null],r,a),borderColor:kn([n.borderColor,null],r,a),borderRadius:kn([n.borderRadius,0],r,a),borderWidth:kn([n.borderWidth,0],r,a),clamp:kn([n.clamp,!1],r,a),clip:kn([n.clip,!1],r,a),color:l,display:e,font:i,lines:t,offset:kn([n.offset,4],r,a),opacity:kn([n.opacity,1],r,a),origin:SIe(o._el,r),padding:Wo(kn([n.padding,4],r,a)),positioner:PIe(o._el),rotation:kn([n.rotation,0],r,a)*(Math.PI/180),size:tf.textSize(o._ctx,t,i),textAlign:kn([n.textAlign,"start"],r,a),textShadowBlur:kn([n.textShadowBlur,0],r,a),textShadowColor:kn([n.textShadowColor,l],r,a),textStrokeColor:kn([n.textStrokeColor,l],r,a),textStrokeWidth:kn([n.textStrokeWidth,0],r,a)}},update:function(e){var t=this,n=null,r=null,o=t._index,a=t._config,i,l,s,c=kn([a.display,!0],e,o);c&&(i=e.dataset.data[o],l=bn(Tn(a.formatter,[i,e]),i),s=rr(l)?[]:tf.toTextLines(l),s.length&&(n=t._modelize(c,s,a,e),r=EIe(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,o=n._model,a=n._rects,i;this.visible()&&(r.save(),o.clip&&(i=o.area,r.beginPath(),r.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),r.clip()),r.globalAlpha=tf.bound(0,o.opacity,1),r.translate(Ti(t.x),Ti(t.y)),r.rotate(o.rotation),IIe(r,a.frame,o),NIe(r,o.lines,a.text,o),r.restore())}});var MIe=Number.MIN_SAFE_INTEGER||-9007199254740991,BIe=Number.MAX_SAFE_INTEGER||9007199254740991;function nf(e,t,n){var r=Math.cos(n),o=Math.sin(n),a=t.x,i=t.y;return{x:a+r*(e.x-a)-o*(e.y-i),y:i+o*(e.x-a)+r*(e.y-i)}}function u$(e,t){var n=BIe,r=MIe,o=t.origin,a,i,l,s,c;for(a=0;a<e.length;++a)i=e[a],l=i.x-o.x,s=i.y-o.y,c=t.vx*l+t.vy*s,n=Math.min(n,c),r=Math.max(r,c);return{min:n,max:r}}function x0(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/o,vy:(t.y-e.y)/o,origin:e,ln:o}}var A$=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Ga(A$.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=nf(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[x0(t[0],t[1]),x0(t[0],t[3])],o,a,i;for(this._rotation!==e._rotation&&r.push(x0(n[0],n[1]),x0(n[0],n[3])),o=0;o<r.length;++o)if(a=u$(t,r[o]),i=u$(n,r[o]),a.max<i.min||i.max<a.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[nf({x:t.x,y:t.y},r,n),nf({x:t.x+t.w,y:t.y},r,n),nf({x:t.x+t.w,y:t.y+t.h},r,n),nf({x:t.x,y:t.y+t.h},r,n)]}});function f$(e,t,n){var r=t.positioner(e,t),o=r.vx,a=r.vy;if(!o&&!a)return{x:r.x,y:r.y};var i=n.w,l=n.h,s=t.rotation,c=Math.abs(i/2*Math.cos(s))+Math.abs(l/2*Math.sin(s)),d=Math.abs(i/2*Math.sin(s))+Math.abs(l/2*Math.cos(s)),A=1/Math.max(Math.abs(o),Math.abs(a));return c*=o*A,d*=a*A,c+=t.offset*o,d+=t.offset*a,{x:r.x+c,y:r.y+d}}function zIe(e,t){var n,r,o,a;for(n=e.length-1;n>=0;--n)for(o=e[n].$layout,r=n-1;r>=0&&o._visible;--r)a=e[r].$layout,a._visible&&o._box.intersects(a._box)&&t(o,a);return e}function RIe(e){var t,n,r,o,a,i,l;for(t=0,n=e.length;t<n;++t)r=e[t],o=r.$layout,o._visible&&(l=new Proxy(r._el,{get:(s,c)=>s.getProps([c],!0)[c]}),a=r.geometry(),i=f$(l,r.model(),a),o._box.update(i,a,r.rotation()));return zIe(e,function(s,c){var d=s._hidable,A=c._hidable;d&&A||A?c._visible=!1:d&&(s._visible=!1)})}var rf={prepare:function(e){var t=[],n,r,o,a,i;for(n=0,o=e.length;n<o;++n)for(r=0,a=e[n].length;r<a;++r)i=e[n][r],t.push(i),i.$layout={_box:new A$,_hidable:!1,_visible:!0,_set:n,_idx:i._index};return t.sort(function(l,s){var c=l.$layout,d=s.$layout;return c._idx===d._idx?d._set-c._set:d._idx-c._idx}),this.update(t),t},update:function(e){var t=!1,n,r,o,a,i;for(n=0,r=e.length;n<r;++n)o=e[n],a=o.model(),i=o.$layout,i._hidable=a&&a.display==="auto",i._visible=o.visible(),t|=i._hidable;t&&RIe(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,o,a,i,l;for(n=0,r=t.length;n<r;++n)o=t[n],a=o.$layout,a._visible&&(i=o.geometry(),l=f$(o._el,o.model(),i),a._box.update(l,i,o.rotation()),o.draw(e,l))}},HIe=function(e){if(rr(e))return null;var t=e,n,r,o;if(un(e))if(!rr(e.label))t=e.label;else if(!rr(e.r))t=e.r;else for(t="",n=Object.keys(e),o=0,r=n.length;o<r;++o)t+=(o!==0?", ":"")+n[o]+": "+e[n[o]];return""+t},jIe={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:HIe,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},uo="$datalabels",g$="$default";function _Ie(e,t){var n=e.datalabels,r={},o=[],a,i;return n===!1?null:(n===!0&&(n={}),t=Ga({},[t,n]),a=t.labels||{},i=Object.keys(a),delete t.labels,i.length?i.forEach(function(l){a[l]&&o.push(Ga({},[t,a[l],{_key:l}]))}):o.push(t),r=o.reduce(function(l,s){return Cn(s.listeners||{},function(c,d){l[d]=l[d]||{},l[d][s._key||g$]=c}),delete s.listeners,l},{}),{labels:o,listeners:r})}function w1(e,t,n,r){if(t){var o=n.$context,a=n.$groups,i;t[a._set]&&(i=t[a._set][a._key],i&&Tn(i,[o,r])===!0&&(e[uo]._dirty=!0,n.update(o)))}}function $Ie(e,t,n,r,o){var a,i;!n&&!r||(n?r?n!==r&&(i=a=!0):i=!0:a=!0,i&&w1(e,t.leave,n,o),a&&w1(e,t.enter,r,o))}function kIe(e,t){var n=e[uo],r=n._listeners,o,a;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")a=rf.lookup(n._labels,t);else if(t.type!=="mouseout")return;o=n._hovered,n._hovered=a,$Ie(e,r,o,a,t)}}function LIe(e,t){var n=e[uo],r=n._listeners.click,o=r&&rf.lookup(n._labels,t);o&&w1(e,r,o,t)}var FIe={id:"datalabels",defaults:jIe,beforeInit:function(e){e[uo]={_actives:[]}},beforeUpdate:function(e){var t=e[uo];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,o=e[uo],a=o._datasets[r]=[],i=e.isDatasetVisible(r),l=e.data.datasets[r],s=_Ie(l,n),c=t.meta.data||[],d=e.ctx,A,f,g,v,p,m,h,b;for(d.save(),A=0,g=c.length;A<g;++A)if(h=c[A],h[uo]=[],i&&h&&e.getDataVisibility(A)&&!h.skip)for(f=0,v=s.labels.length;f<v;++f)p=s.labels[f],m=p._key,b=new d$(p,d,h,A),b.$groups={_set:r,_key:m||g$},b.$context={active:!1,chart:e,dataIndex:A,dataset:l,datasetIndex:r},b.update(b.$context),h[uo].push(b),a.push(b);d.restore(),Ga(o._listeners,s.listeners,{merger:function(C,y,x){y[C]=y[C]||{},y[C][t.index]=x[C],o._listened=!0}})},afterUpdate:function(e){e[uo]._labels=rf.prepare(e[uo]._datasets)},afterDatasetsDraw:function(e){rf.draw(e,e[uo]._labels)},beforeEvent:function(e,t){if(e[uo]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":kIe(e,n);break;case"click":LIe(e,n);break}}},afterEvent:function(e){var t=e[uo],n=t._actives,r=t._actives=e.getActiveElements(),o=tf.arrayDiff(n,r),a,i,l,s,c,d,A;for(a=0,i=o.length;a<i;++a)if(c=o[a],c[1])for(A=c[0].element[uo]||[],l=0,s=A.length;l<s;++l)d=A[l],d.$context.active=c[1]===1,d.update(d.$context);(t._dirty||o.length)&&(rf.update(t._labels),e.render()),delete t._dirty}};const E1={card:"_card_16ceq_24",header:"_header_16ceq_33",chartWrap:"_chartWrap_16ceq_44"};u0.register(Ed,uIe,rIe,FIe);function WIe({title:e=yr.DEFAULT_TITLE,data:t,colors:n,height:r=300,info:o}){const a=(s,c)=>Array.isArray(n)?n[s%n.length]:(n==null?void 0:n[c])??yr.PALETTE[s%yr.PALETTE.length],i={labels:t.map(s=>s.label),datasets:[{data:t.map(s=>s.count),backgroundColor:t.map((s,c)=>a(c,s.key)),borderWidth:yr.BORDER_WIDTH}]},l={cutout:yr.CUTOUT,maintainAspectRatio:!1,layout:{padding:12},plugins:{legend:{position:yr.LEGEND_POSITION,labels:{usePointStyle:!0,pointStyle:yr.POINT_STYLE,padding:12}},tooltip:{callbacks:{label:s=>{const c=s.dataIndex,d=t[c];return`${d.label}: ${d.percentage}${yr.PCT} ${yr.LPAREN}${d.count.toLocaleString()}${yr.RPAREN}`}}},datalabels:{formatter:(s,c)=>{const d=c.dataIndex,A=t[d];return`${A.percentage}${yr.PCT}${yr.NEWLINE}${yr.LPAREN}${A.count.toLocaleString()}${yr.RPAREN}`},color:yr.LABEL_COLOR,align:yr.ALIGN,anchor:yr.ANCHOR,clip:!0,clamp:!0,font:{weight:500}}}};return B.jsxs("div",{className:E1.card,style:{height:`${r}px`},children:[B.jsxs("div",{className:E1.header,children:[B.jsx("span",{children:e}),o&&B.jsx(Fl,{content:o,placement:Dd.TOP_RIGHT,children:B.jsx("img",{src:g_,alt:yr.INFO})})]}),B.jsx("div",{className:E1.chartWrap,children:B.jsx(CIe,{data:i,options:l})})]})}Te.Accordian=fEe,Te.ActionType=Id,Te.AgencyDocumentCard=mEe,Te.AgencyJobCard=oEe,Te.Align=Od,Te.AllowedCountries=z1,Te.ApplicationHeader=wxe,Te.AuthBanner=ICe,Te.AuthBannerTextType=SB,Te.AuthForm=MCe,Te.AvatarSize=eo,Te.AvatarWithDetailsCard=ese,Te.AvatarWithInitials=Uu,Te.Badge=qu,Te.BadgeType=N1,Te.Bookmark=nEe,Te.Button=Xx,Te.ButtonType=zs,Te.Calendar=cq,Te.Card=Fle,Te.CardStats=QSe,Te.CardWithIconAndText=kCe,Te.ChatDetails=$Se,Te.ChatList=kSe,Te.CheckBoxWithFormWrapper=Hxe,Te.Checkbox=NB,Te.CheckboxGroup=TB,Te.CheckboxSelectField=Cxe,Te.Colors=zo,Te.ColumnSortOrder=EB,Te.CustomAvatar=yo,Te.CustomModal=dEe,Te.CustomModalTypes=Wc,Te.DOM_ELEMENT_ROLE=kx,Te.DashboardCard=Gwe,Te.DashboardStats=JSe,Te.DatePicker=Zse,Te.Disclaimer=mxe,Te.DocVerificationStatus=Qu,Te.DocumentCard=YB,Te.DocumentStatus=gse,Te.DocumentStatusEnum=lf,Te.DocumentView=mse,Te.Drawer=qse,Te.Dropdown=Tm,Te.EllipsisWithTooltip=ci,Te.Error=Ro,Te.FileUpload=bse,Te.FileUploadWithDropdown=_B,Te.FloatingLabel=za,Te.Form=JCe,Te.FormValidationTriggers=xB,Te.GenderProfileEnum=R1,Te.GenderValueEnum=H1,Te.HtmlButtonType=Sd,Te.Icons=vt,Te.InputField=IB,Te.InputTypes=Ni,Te.InputWithCountry=gce,Te.JobCard=eEe,Te.JobTrackingCard=Vwe,Te.JobTypeEnum=_1,Te.Justify=P0,Te.Label=lv,Te.LabelType=Ju,Te.Layout=Qi,Te.ListItem=TS,Te.ListingTableHeader=ij,Te.Loader=Fse,Te.Menu=wu,Te.MenuMode=rv,Te.Modal=$x,Te.ModalTypeEnum=nv,Te.NoData=rj,Te.NoInternetScreen=KB,Te.NoRecords=fxe,Te.Notification=sv,Te.NotificationCard=pce,Te.NotificationPanel=Nse,Te.NotificationTypes=Mi,Te.Offline=$se,Te.Pagination=lEe,Te.Password=rw,Te.PasswordField=rw,Te.PasswordValidation=Axe,Te.PathIcon=Rxe,Te.PieChart=WIe,Te.Placement=Dd,Te.PopoverIconCard=Uwe,Te.PreviewCard=aj,Te.PreviewDocumentsCard=pxe,Te.PreviewModal=Yse,Te.ProfileAssignedCard=nj,Te.ProfileAssignedEmployer=zCe,Te.ProfileAttachments=QCe,Te.ProfileDetail=$Ce,Te.ProfileDetailFooterTypes=ma,Te.RadioGroup=Rse,Te.Rate=Mj,Te.RatingCard=vEe,Te.RatingProgressBar=FSe,Te.RatingStar=sse,Te.RoleManagement=tEe,Te.SearchField=Vx,Te.SearchWithSuggestions=LSe,Te.Segmented=Oxe,Te.Select=jB,Te.SelectType=oa,Te.Sidebar=zse,Te.Size=of,Te.Slider=Sxe,Te.SliderRangeWithForm=kle,Te.SliderWithForm=Wle,Te.SortOrderKeys=wB,Te.SoundEnum=j1,Te.Space=oxe,Te.StatsBanner=ixe,Te.StatusTypes=sf,Te.SummaryCard=el,Te.SwitchComponent=rEe,Te.TImerPicker=iEe,Te.TableComponent=UB,Te.TableLayout=B1,Te.TableType=af,Te.Tabs=hxe,Te.TextArea=Txe,Te.TextAreaWithController=Dxe,Te.Timer=bxe,Te.TitleHeader=axe,Te.TitleHeaderStatus=M1,Te.Tooltip=Jx,Te.Typography=Fc,Te.Upload=wse,Te.UploadWithDropdown=Sse,Te.UserBadge=Ase,Te.UserStatus=Ise,Te.UserType=Yi,Te.VerificationStatus=Pse,Te.VerificationTypes=Pd,Te.formatTimeAgo=$le,Te.useForm=cj,Object.defineProperty(Te,Symbol.toStringTag,{value:"Module"})});
|