@egovernments/digit-ui-components 0.2.0-beta.8 → 0.2.0-webpack.10

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.
Files changed (29) hide show
  1. package/README.md +7 -37
  2. package/dist/main-166735b3.0348cd7ee77dd894b972.js +1 -0
  3. package/dist/main-7c36387c.eeb2144481c02ceff5c6.js +1 -0
  4. package/dist/main-aec23333.0f710af04816aa9023ca.js +1 -0
  5. package/dist/main-c92480b7.146a0950f01e364f98c3.js +1 -0
  6. package/dist/main-d91a9049.74cc6b9811eb52c58052.js +1 -0
  7. package/dist/main.js +2 -0
  8. package/dist/main.js.LICENSE.txt +14 -0
  9. package/dist/runtime.a6dd0909c73994cc13d4.js +1 -0
  10. package/dist/vendors-059be3de.7d2a68d0f771fef635da.js +1 -0
  11. package/dist/vendors-125a01f4.e52f0a6e7c9305346a4e.js +1 -0
  12. package/dist/vendors-1bbbe0aa.beda1528edc86806c455.js +1 -0
  13. package/dist/vendors-1c59d003.7363983b62b3d7533702.js +1 -0
  14. package/dist/vendors-27545368.c6e0cb5dc6d9f6bba82d.js +2 -0
  15. package/dist/vendors-27545368.c6e0cb5dc6d9f6bba82d.js.LICENSE.txt +10 -0
  16. package/dist/vendors-49d0a293.1900eb063b3794032292.js +2 -0
  17. package/dist/vendors-49d0a293.1900eb063b3794032292.js.LICENSE.txt +5 -0
  18. package/dist/vendors-536eaa00.cc3edfd2361e81b5c1a9.js +1 -0
  19. package/dist/vendors-5a94f17d.917fc072320583ea418f.js +1 -0
  20. package/dist/vendors-78622f30.82b357b2a77611bc148c.js +1 -0
  21. package/dist/vendors-ab957e66.a94d8e721e8367535849.js +1 -0
  22. package/dist/vendors-beb35932.da545c87b5acf6832c54.js +1 -0
  23. package/dist/vendors-dbef025e.385620497955134874cb.js +2 -0
  24. package/dist/vendors-dbef025e.385620497955134874cb.js.LICENSE.txt +21 -0
  25. package/dist/vendors-fcf017cf.bbe1787ab7ed288fc3d0.js +2 -0
  26. package/dist/vendors-fcf017cf.bbe1787ab7ed288fc3d0.js.LICENSE.txt +8 -0
  27. package/package.json +34 -50
  28. package/CHANGELOG.md +0 -473
  29. package/dist/index.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunk_egovernments_digit_ui_components=this.webpackChunk_egovernments_digit_ui_components||[]).push([[895],{"35Z3":(e,l,n)=>{n.d(l,{A:()=>v});var o=n("C6rw"),t=n.n(o),i=n("wUmw"),a=n("iTkH"),s=n("KeQL"),r=n("SOjZ"),c=n("EeRl"),d=n("YtJg"),u=n("LvDl"),_=n.n(u),m=n("Jrwa"),g=n("Dk85");const v=e=>{var l;let{config:n,data:u,isLoading:v,isFetching:f,fullConfig:p}=e;const{apiDetails:E}=p,{t:h}=(0,a.Bd)(),C=n.resultsJsonPath;let b=_().get(u,C,[]);b=(null===(l=b)||void 0===l?void 0:l.length)>0?b:[],b=b.reverse();const D=Digit.ULBService.getCurrentTenantId(),{state:y,dispatch:I}=(Digit.Utils.locale.getTransformedLocale(D),(0,o.useContext)(m.W)),{register:M,handleSubmit:S,setValue:P,getValues:w,reset:A,watch:x,trigger:T,control:O,formState:$,errors:L,setError:R,clearErrors:B,unregister:F}=(0,i.mN)({defaultValues:{offset:0,limit:10}});function k(e){P("limit",Number(e.target.value)),S(W)()}function N(){P("offset",w("offset")+w("limit")),S(W)()}function U(){const e=w("offset")-w("limit");P("offset",e>0?e:0),S(W)()}(0,o.useEffect)((()=>{M("offset",0),M("limit",10)}),[M]);const W=e=>{I({type:"tableForm",state:{...e}})},K=[{Header:"",accessor:"_searchResults",id:"_searchResults"}],V=(0,o.useMemo)((()=>v?[]:b.map((e=>{let l={},o={},t=null==n?void 0:n.columns;for(let n=0;n<(null==t?void 0:t.length);n++){var i,a,s,r;l[null===(i=t[n])||void 0===i?void 0:i.label]=_().get(e,null===(a=t[n])||void 0===a?void 0:a.jsonPath,null),o[null===(s=t[n])||void 0===s?void 0:s.label]=(null===(r=t[n])||void 0===r?void 0:r.additionalCustomization)||!1}return{mapping:l,details:e,additionalCustomization:o}}))),[u]).map((e=>{var l;return{_searchResults:t().createElement(r.N_,{to:null===(l=Digit)||void 0===l||null===(l=l.Customizations)||void 0===l||null===(l=l[null==E?void 0:E.masterName])||void 0===l||null===(l=l[null==E?void 0:E.moduleName])||void 0===l?void 0:l.MobileDetailsOnClick(e.mapping,D)},t().createElement("div",{className:"details-container"},Object.keys(e.mapping).map((l=>{let n;var o;return n=e.additionalCustomization[l]?t().createElement(s.B,{label:h(l),name:null===(o=Digit)||void 0===o||null===(o=o.Customizations)||void 0===o||null===(o=o[null==E?void 0:E.masterName])||void 0===o||null===(o=o[null==E?void 0:E.moduleName])||void 0===o?void 0:o.additionalCustomizations(e.details,l,{},e.mapping[l],h,b),onClick:()=>{},row:e.mapping}):e.mapping[l]?t().createElement(s.B,{label:h(l),name:e.mapping[l],onClick:()=>{},row:e.mapping}):t().createElement(s.B,{label:h(l),name:h("NA"),onClick:()=>{},row:e.mapping}),n}))))}}));function q(){var e;return 0===(null===(e=b)||void 0===e?void 0:e.length)?t().createElement(c.A,null):v||f?t().createElement(d.a,null):u?t().createElement("div",null,t().createElement(g.A,{t:h,data:V,totalRecords:(null==u?void 0:u.count)||(null==u?void 0:u.TotalCount)||(null==u?void 0:u.totalCount),columns:K,isPaginationRequired:!0,onPageSizeChange:k,currentPage:w("offset")/w("limit"),onNextPage:N,onPrevPage:U,canPreviousPage:!0,canNextPage:!0,pageSizeLimit:w("limit"),getCellProps:e=>({style:{width:"200vw"}}),disableSort:null==n||!n.enableColumnSort,autoSort:!(null==n||!n.enableColumnSort)})):t().createElement(t().Fragment,null)}return v?t().createElement(d.a,null):t().createElement(t().Fragment,null,t().createElement(q,null))}},"68TI":(e,l,n)=>{n.d(l,{A:()=>f});var o=n("C6rw"),t=n.n(o),i=n("wUmw"),a=n("iTkH"),s=n("Jrwa"),r=n("ueKo"),c=n("otB8"),d=n("IBj/"),u=n("9/5d"),_=n("xAr1"),m=n("zgF6"),g=n("LvDl"),v=n.n(g);const f=e=>{let{uiConfig:l,modalType:n,header:g="",screenType:f="search",fullConfig:p,data:E,onClose:h,defaultValues:C}=e;const{t:b}=(0,a.Bd)(),{state:D,dispatch:y}=(0,o.useContext)(s.W),[I,M]=(0,o.useState)(null);let S=[];const{apiDetails:P}=p;var w;null!=p&&p.postProcessResult&&(null===(w=Digit)||void 0===w||null===(w=w.Customizations)||void 0===w||null===(w=w[null==P?void 0:P.masterName])||void 0===w||null===(w=w[null==P?void 0:P.moduleName])||void 0===w||w.postProcess(E,l));const A=Digit.Hooks.useSessionStorage("MOBILE_SEARCH_MODAL_FORM",C),[x,T,O]=A,{register:$,handleSubmit:L,setValue:R,getValues:B,reset:F,watch:k,control:N,formState:U,errors:W,setError:K,clearErrors:V}=(0,i.mN)({defaultValues:x}),q=k();(0,o.useEffect)((()=>{S=Object.values(null==U?void 0:U.dirtyFields)}),[U]),(0,o.useEffect)((()=>{v().isEqual(x,q)||(v().pickBy(x,((e,l)=>!v().isEqual(q[l],e))),T({...x,...q}))}),[q]),(0,o.useEffect)((()=>{O()}),[]);const H=()=>{O(),F(null==l?void 0:l.defaultValues),y({type:"clearSearchForm",state:{...null==l?void 0:l.defaultValues}})},z=()=>{M(null)};return t().createElement(t().Fragment,null,t().createElement("div",{className:"search-wrapper"},t().createElement("div",null,"filter"===(null==l?void 0:l.type)?t().createElement("div",{className:"popup-label",style:{display:"flex",paddingBottom:"20px"}},t().createElement("span",{className:"header",style:{display:"flex"}},t().createElement("span",{className:"icon",style:{marginRight:"12px",marginTop:"5px",paddingBottom:"3px"}},t().createElement(r.YG,null)),t().createElement("span",{style:{fontSize:"large"}},b("ES_COMMON_FILTER_BY"),":")),t().createElement("span",{className:"clear-search",onClick:H},t().createElement(r.fN,null)),t().createElement("span",{onClick:h},t().createElement(r.X6,null))):t().createElement("div",{className:"popup-label",style:{display:"flex",paddingBottom:"20px"}},t().createElement("span",{className:"header",style:{display:"flex"}},t().createElement("span",{className:"icon",style:{marginRight:"12px",marginTop:"5px"}},t().createElement(r.WI,null)),t().createElement("span",{style:{fontSize:"large"}},b("ES_COMMON_SEARCH_BY"))),t().createElement("span",{onClick:h},t().createElement(r.X6,null)))),t().createElement("form",{onSubmit:L((e=>{null==h||h(),S.length>=(null==l?void 0:l.minReqFields)?y({type:"SEARCH"===n?"searchForm":"filterForm",state:{...e}}):(M({type:"warning",label:b("ES_COMMON_MIN_SEARCH_CRITERIA_MSG")}),setTimeout(z,3e3))})),onKeyDown:e=>(e=>{13===(e.keyCode?e.keyCode:e.key?e.key:e.which)&&e.preventDefault()})(e)},t().createElement("div",{className:"search-field-wrapper ".concat(f," ").concat(null==l?void 0:l.type)},t().createElement(_.A,{fields:null==l?void 0:l.fields,control:N,formData:q,errors:W,register:$,setValue:R,getValues:B,setError:K,clearErrors:V,labelStyle:{fontSize:"16px"},apiDetails:P}),t().createElement(c.A,{className:"clear-search-container"},t().createElement("div",{className:"search-button-wrapper ".concat(f," ").concat(null==l?void 0:l.type)},(null==l?void 0:l.secondaryLabel)&&t().createElement(u.A,{style:{marginBottom:0,whiteSpace:"nowrap"},onClick:H},b(null==l?void 0:l.secondaryLabel)),(null==l?void 0:l.primaryLabel)&&t().createElement(d.A,{label:b(null==l?void 0:l.primaryLabel),submit:"submit",disabled:!1}))))),I&&t().createElement(m.A,{type:I.type,label:b(I.label),isDleteBtn:!0,onClose:z})))}},Jrwa:(e,l,n)=>{n.d(l,{W:()=>o});const o=(0,n("C6rw").createContext)(null)},PwGy:(e,l,n)=>{n.d(l,{A:()=>t,C:()=>o});const o={searchForm:{},filterForm:{},tableForm:{limit:10,offset:0}},t=(e,l)=>{switch(l.type){case"searchForm":const{state:n}=l;return{...e,searchForm:{...e.searchForm,...n}};case"filterForm":const{state:o}=l;return{...e,filterForm:{...e.filterForm,...o}};case"tableForm":const t=l.state;return{...e,tableForm:{...e.tableForm,...t}};case"clearSearchForm":return{...e,searchForm:l.state};case"clearTableForm":return{...e,tableForm:{limit:10,offset:0}};case"clearFilterForm":return{...e,filterForm:l.state};default:return e}}},UXfJ:(e,l,n)=>{n.d(l,{A:()=>v});var o=n("C6rw"),t=n.n(o),i=n("iTkH"),a=n("Dk85"),s=n("2xqR"),r=n("wUmw"),c=n("LvDl"),d=n.n(c),u=n("Jrwa"),_=n("YtJg"),m=n("EeRl"),g=n("ueKo");const v=e=>{var l,n,c,v,f;let{tableContainerClass:p,config:E,data:h,isLoading:C,isFetching:b,fullConfig:D,revalidate:y,additionalConfig:I}=e;const{apiDetails:M}=D,{t:S}=(0,i.Bd)(),P=E.resultsJsonPath;let w=d().get(h,P,[]);w=(null===(l=w)||void 0===l?void 0:l.length)>0?w:[],w=w.reverse();const A=Digit.ULBService.getCurrentTenantId(),{state:x,dispatch:T}=(Digit.Utils.locale.getTransformedLocale(A),(0,o.useContext)(u.W)),O=(0,o.useMemo)((()=>{var e;return null==E||null===(e=E.columns)||void 0===e?void 0:e.map((e=>null!=e&&e.svg?{Header:S(null==e?void 0:e.label)||S("ES_COMMON_NA"),accessor:e.jsonPath,Cell:e=>{let{value:l,col:n,row:o}=e;return t().createElement("div",{className:"cursorPointer",style:{marginLeft:"1rem"},onClick:()=>{var e;return null==I||null===(e=I.resultsTable)||void 0===e?void 0:e.onClickSvg(o)}}," ",t().createElement(g.qU,null))}}:e.additionalCustomization?{Header:S(null==e?void 0:e.label)||S("ES_COMMON_NA"),accessor:e.jsonPath,headerAlign:null==e?void 0:e.headerAlign,Cell:l=>{var n;let{value:o,col:t,row:i}=l;return null===(n=Digit)||void 0===n||null===(n=n.Customizations)||void 0===n||null===(n=n[null==M?void 0:M.masterName])||void 0===n||null===(n=n[null==M?void 0:M.moduleName])||void 0===n?void 0:n.additionalCustomizations(i.original,null==e?void 0:e.label,e,o,S,w)}}:{Header:S(null==e?void 0:e.label)||S("ES_COMMON_NA"),accessor:e.jsonPath,headerAlign:null==e?void 0:e.headerAlign,Cell:l=>{let{value:n,col:o,row:t}=l;return String(n?e.translate?S(e.prefix?"".concat(e.prefix).concat(n):n):n:null!=e&&e.dontShowNA?" ":S("ES_COMMON_NA"))}}))}),[E,w]),{register:$,handleSubmit:L,setValue:R,getValues:B,reset:F,watch:k,trigger:N,control:U,formState:W,errors:K,setError:V,clearErrors:q,unregister:H}=(0,r.mN)({defaultValues:{offset:0,limit:10}}),[z,G]=(window.Digit.Utils.browser.isMobile(),(0,o.useState)("")),j=(0,o.useCallback)((function(e,l){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.filter((e=>{const l=Object.keys(null==e?void 0:e.values).find((l=>{var o,t,i,a,s,r;return"object"==typeof(null==e||null===(o=e.values)||void 0===o?void 0:o[l])?Object.keys(null==e||null===(r=e.values)||void 0===r?void 0:r[l]).find((o=>{var t,i,a;return"insight"===o?String(Math.abs(null==e||null===(a=e.values)||void 0===a||null===(a=a[l])||void 0===a?void 0:a[o])+"%").toLowerCase().startsWith(null==n?void 0:n.toLowerCase()):null===(t=String(null==e||null===(i=e.values)||void 0===i||null===(i=i[l])||void 0===i?void 0:i[o]))||void 0===t?void 0:t.toLowerCase().includes(null==n?void 0:n.toLowerCase())})):(null===(t=String(null==e||null===(i=e.values)||void 0===i?void 0:i[l]).toLowerCase())||void 0===t?void 0:t.includes(null==n?void 0:n.toLowerCase()))||(null===(a=String(S(null==e||null===(s=e.values)||void 0===s?void 0:s[l])).toLowerCase())||void 0===a?void 0:a.includes(null==n?void 0:n.toLowerCase()))}));return l}))}),[]);(0,o.useEffect)((()=>{$("offset",0),$("limit",10)}),[$]),(0,o.useEffect)((()=>{R("offset",x.tableForm.offset),R("limit",x.tableForm.limit)}));const J=e=>{T({type:"tableForm",state:{...e}})};return C||b?t().createElement(_.a,null):h?0===(null===(n=w)||void 0===n?void 0:n.length)?t().createElement(m.A,null):t().createElement("div",{style:{width:"100%"}},(null==E?void 0:E.enableGlobalSearch)&&t().createElement("div",{className:"card",style:{padding:"0px",marginTop:"1rem"}},t().createElement(s.A,{className:"searchInput",onChange:e=>G(e.target.value),style:{border:"none",borderRadius:"200px"}})),(null==E?void 0:E.showTableInstruction)&&t().createElement("div",{className:"table-instruction-wrapper"},t().createElement(g.mo,null),t().createElement("p",{className:"table-instruction-header"},S(null==E?void 0:E.showTableInstruction))),(null===(c=w)||void 0===c?void 0:c.length)>0&&t().createElement(a.A,{className:null!=E&&E.tableClassName?null==E?void 0:E.tableClassName:"table",t:S,customTableWrapperClassName:"dss-table-wrapper",disableSort:null==E||!E.enableColumnSort,autoSort:!(null==E||!E.enableColumnSort),globalSearch:null!=E&&E.enableGlobalSearch?j:void 0,onSearch:null!=E&&E.enableGlobalSearch?z:void 0,data:w,totalRecords:(null==h?void 0:h.count)||(null==h?void 0:h.TotalCount)||(null==h?void 0:h.totalCount),columns:O,isPaginationRequired:!0,onPageSizeChange:function(e){R("limit",Number(e.target.value)),L(J)()},currentPage:B("offset")/B("limit"),onNextPage:function(){R("offset",B("offset")+B("limit")),L(J)()},onPrevPage:function(){const e=B("offset")-B("limit");R("offset",e>0?e:0),L(J)()},pageSizeLimit:B("limit"),showCheckBox:!(null==E||!E.showCheckBox),actionLabel:null==E?void 0:E.checkBoxActionLabel,tableSelectionHandler:null===(v=Digit)||void 0===v||null===(v=v.Customizations)||void 0===v||null===(v=v[null==M?void 0:M.masterName])||void 0===v||null===(v=v[null==M?void 0:M.moduleName])||void 0===v?void 0:v.selectionHandler,manualPagination:E.manualPagination,getCellProps:e=>({style:{padding:"20px 18px",fontSize:"16px",whiteSpace:"normal"}}),onClickRow:null==I||null===(f=I.resultsTable)||void 0===f?void 0:f.onClickRow,rowClassName:E.rowClassName,noColumnBorder:null==E?void 0:E.noColumnBorder})):t().createElement(t().Fragment,null)}},"Z/xq":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("C6rw"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_atoms_Toast__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("zgF6"),_ResultsTable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("UXfJ"),_InboxSearchComposerReducer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("PwGy"),_atoms_InboxSearchLinks__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("vDwf"),_InboxSearchComposerContext__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("Jrwa"),_atoms_SearchComponent__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("xbiS"),_atoms_PopUp__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("X572"),_molecules_SearchAction__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("adoh"),_molecules_FilterAction__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("LxW5"),_MobileView_MobileSearchComponent__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("68TI"),_MobileView_MobileSearchResults__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("35Z3"),react_responsive__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("ZXS+"),lodash__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("LvDl"),lodash__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_12__),_atoms_Header__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("GV5m"),react_i18next__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("iTkH");const InboxSearchComposer=_ref=>{var _configs$apiDetails,_configs$apiDetails2,_configs$apiDetails3,_Digit,_Digit2,_additionalConfig$sea3,_configs$sections,_configs$sections2,_configs$sections3,_configs$sections4,_configs$sections5,_configs$sections6,_configs$sections7,_configs$sections8,_configs$sections9,_configs$sections10,_configs$sections11,_configs$sections12,_configs$sections13,_configs$sections14,_configs$sections15,_configs$sections16,_configs$sections17,_configs$sections18,_configs$sections19,_data,_configs$sections20,_configs$sections21,_configs$sections22,_configs$sections23,_configs$sections24,_configs$sections25,_configs$sections26,_configs$sections27,_configs$sections28;let{configs,headerLabel,additionalConfig,onFormValueChange=()=>{}}=_ref;const{t}=(0,react_i18next__WEBPACK_IMPORTED_MODULE_14__.Bd)(),[enable,setEnable]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[state,dispatch]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(_InboxSearchComposerReducer__WEBPACK_IMPORTED_MODULE_3__.A,_InboxSearchComposerReducer__WEBPACK_IMPORTED_MODULE_3__.C),[showToast,setShowToast]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[type,setType]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),[popup,setPopup]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),apiDetails=null==configs?void 0:configs.apiDetails,mobileSearchSession=Digit.Hooks.useSessionStorage("MOBILE_SEARCH_MODAL_FORM",{}),[sessionFormData,setSessionFormData,clearSessionFormData]=mobileSearchSession;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{type&&setPopup(!0)}),[type]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{clearSessionFormData()}),[]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{var e,l,n,o;if((null===(e=Object.keys(state.searchForm))||void 0===e?void 0:e.length)>=0){const e={...lodash__WEBPACK_IMPORTED_MODULE_12___default().get(apiDetails,null==apiDetails?void 0:apiDetails.searchFormJsonPath,{}),...state.searchForm};Object.keys(e).forEach((l=>{e[l]||delete e[l]})),lodash__WEBPACK_IMPORTED_MODULE_12___default().set(apiDetails,null==apiDetails?void 0:apiDetails.searchFormJsonPath,e)}if((null===(l=Object.keys(state.filterForm))||void 0===l?void 0:l.length)>=0){const e={...lodash__WEBPACK_IMPORTED_MODULE_12___default().get(apiDetails,null==apiDetails?void 0:apiDetails.filterFormJsonPath,{}),...state.filterForm};Object.keys(e).forEach((l=>{var n;e[l]&&0!==(null===(n=e[l])||void 0===n?void 0:n.length)||delete e[l]})),lodash__WEBPACK_IMPORTED_MODULE_12___default().set(apiDetails,null==apiDetails?void 0:apiDetails.filterFormJsonPath,e)}(null===(n=Object.keys(state.tableForm))||void 0===n?void 0:n.length)>=0&&lodash__WEBPACK_IMPORTED_MODULE_12___default().set(apiDetails,null==apiDetails?void 0:apiDetails.tableFormJsonPath,{...lodash__WEBPACK_IMPORTED_MODULE_12___default().get(apiDetails,null==apiDetails?void 0:apiDetails.tableFormJsonPath,{}),...state.tableForm});const t=Object.keys(state.searchForm).reduce(((e,l)=>""===state.searchForm[l]?e:e+1),0),i=Object.keys(state.filterForm).reduce(((e,l)=>""===state.filterForm[l]?e:e+1),0);(null===(o=Object.keys(state.tableForm))||void 0===o?void 0:o.length)>0&&(t>=(null==apiDetails?void 0:apiDetails.minParametersForSearchForm)||i>=(null==apiDetails?void 0:apiDetails.minParametersForFilterForm))&&setEnable(!0),"inbox"!==(null==configs?void 0:configs.type)&&"download"!==(null==configs?void 0:configs.type)||setEnable(!0)}),[state]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{onFormValueChange(state)}),[state]);let requestCriteria={url:null==configs||null===(_configs$apiDetails=configs.apiDetails)||void 0===_configs$apiDetails?void 0:_configs$apiDetails.serviceName,params:null==configs||null===(_configs$apiDetails2=configs.apiDetails)||void 0===_configs$apiDetails2?void 0:_configs$apiDetails2.requestParam,body:null==configs||null===(_configs$apiDetails3=configs.apiDetails)||void 0===_configs$apiDetails3?void 0:_configs$apiDetails3.requestBody,config:{enabled:enable},state};const updatedReqCriteria=null!==(_Digit=Digit)&&void 0!==_Digit&&null!==(_Digit=_Digit.Customizations)&&void 0!==_Digit&&null!==(_Digit=_Digit[null==apiDetails?void 0:apiDetails.masterName])&&void 0!==_Digit&&null!==(_Digit=_Digit[null==apiDetails?void 0:apiDetails.moduleName])&&void 0!==_Digit&&_Digit.preProcess?null===(_Digit2=Digit)||void 0===_Digit2||null===(_Digit2=_Digit2.Customizations)||void 0===_Digit2||null===(_Digit2=_Digit2[null==apiDetails?void 0:apiDetails.masterName])||void 0===_Digit2||null===(_Digit2=_Digit2[null==apiDetails?void 0:apiDetails.moduleName])||void 0===_Digit2?void 0:_Digit2.preProcess(requestCriteria,configs.additionalDetails):requestCriteria;if(configs.customHookName)var{isLoading,data,revalidate,isFetching,refetch,error}=eval("Digit.Hooks.".concat(configs.customHookName,"(updatedReqCriteria)"));else var{isLoading,data,revalidate,isFetching,error}=Digit.Hooks.useCustomAPIHook(updatedReqCriteria);const closeToast=()=>{setTimeout((()=>{setShowToast(null)}),5e3)};(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{var e;error&&(setShowToast({label:null===(e=error)||void 0===e?void 0:e.message,type:"error"}),closeToast())}),[error]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{var e,l;null!=additionalConfig&&null!==(e=additionalConfig.search)&&void 0!==e&&e.callRefetch&&(refetch(),null==additionalConfig||null===(l=additionalConfig.search)||void 0===l||l.setCallRefetch(!1))}),[null==additionalConfig||null===(_additionalConfig$sea3=additionalConfig.search)||void 0===_additionalConfig$sea3?void 0:_additionalConfig$sea3.callRefetch]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>{revalidate(),setEnable(!1)}));const handlePopupClose=()=>{setPopup(!1),setType("")};return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InboxSearchComposerContext__WEBPACK_IMPORTED_MODULE_5__.W.Provider,{value:{state,dispatch}},headerLabel&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_Header__WEBPACK_IMPORTED_MODULE_13__.A,{className:"digit-form-composer-header"},t(headerLabel)),react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"inbox-search-component-wrapper "},react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"sections-parent ".concat(null==configs?void 0:configs.type)},(null==configs||null===(_configs$sections=configs.sections)||void 0===_configs$sections||null===(_configs$sections=_configs$sections.links)||void 0===_configs$sections?void 0:_configs$sections.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"section links"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_InboxSearchLinks__WEBPACK_IMPORTED_MODULE_4__.A,{headerText:null==configs||null===(_configs$sections2=configs.sections)||void 0===_configs$sections2||null===(_configs$sections2=_configs$sections2.links)||void 0===_configs$sections2||null===(_configs$sections2=_configs$sections2.uiConfig)||void 0===_configs$sections2?void 0:_configs$sections2.label,links:null==configs||null===(_configs$sections3=configs.sections)||void 0===_configs$sections3||null===(_configs$sections3=_configs$sections3.links)||void 0===_configs$sections3||null===(_configs$sections3=_configs$sections3.uiConfig)||void 0===_configs$sections3?void 0:_configs$sections3.links,businessService:"WORKS",logoIcon:null==configs||null===(_configs$sections4=configs.sections)||void 0===_configs$sections4||null===(_configs$sections4=_configs$sections4.links)||void 0===_configs$sections4||null===(_configs$sections4=_configs$sections4.uiConfig)||void 0===_configs$sections4?void 0:_configs$sections4.logoIcon})),"search"===(null==configs?void 0:configs.type)&&(null==configs||null===(_configs$sections5=configs.sections)||void 0===_configs$sections5||null===(_configs$sections5=_configs$sections5.search)||void 0===_configs$sections5?void 0:_configs$sections5.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"section search"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_SearchComponent__WEBPACK_IMPORTED_MODULE_6__.A,{uiConfig:null==configs||null===(_configs$sections6=configs.sections)||void 0===_configs$sections6||null===(_configs$sections6=_configs$sections6.search)||void 0===_configs$sections6?void 0:_configs$sections6.uiConfig,header:null==configs||null===(_configs$sections7=configs.sections)||void 0===_configs$sections7||null===(_configs$sections7=_configs$sections7.search)||void 0===_configs$sections7?void 0:_configs$sections7.label,screenType:configs.type,fullConfig:configs,data})),"search"===(null==configs?void 0:configs.type)&&(null==configs||null===(_configs$sections8=configs.sections)||void 0===_configs$sections8||null===(_configs$sections8=_configs$sections8.filter)||void 0===_configs$sections8?void 0:_configs$sections8.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"section filter"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_SearchComponent__WEBPACK_IMPORTED_MODULE_6__.A,{uiConfig:null==configs||null===(_configs$sections9=configs.sections)||void 0===_configs$sections9||null===(_configs$sections9=_configs$sections9.filter)||void 0===_configs$sections9?void 0:_configs$sections9.uiConfig,header:null==configs||null===(_configs$sections10=configs.sections)||void 0===_configs$sections10||null===(_configs$sections10=_configs$sections10.filter)||void 0===_configs$sections10?void 0:_configs$sections10.label,screenType:configs.type,fullConfig:configs,data})),"inbox"===(null==configs?void 0:configs.type)&&(null==configs||null===(_configs$sections11=configs.sections)||void 0===_configs$sections11||null===(_configs$sections11=_configs$sections11.search)||void 0===_configs$sections11?void 0:_configs$sections11.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_responsive__WEBPACK_IMPORTED_MODULE_15__.Ay,{minWidth:426},react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"section search"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_SearchComponent__WEBPACK_IMPORTED_MODULE_6__.A,{uiConfig:null==configs||null===(_configs$sections12=configs.sections)||void 0===_configs$sections12||null===(_configs$sections12=_configs$sections12.search)||void 0===_configs$sections12?void 0:_configs$sections12.uiConfig,header:null==configs||null===(_configs$sections13=configs.sections)||void 0===_configs$sections13||null===(_configs$sections13=_configs$sections13.search)||void 0===_configs$sections13?void 0:_configs$sections13.label,screenType:configs.type,fullConfig:configs,data}))),"inbox"===(null==configs?void 0:configs.type)&&(null==configs||null===(_configs$sections14=configs.sections)||void 0===_configs$sections14||null===(_configs$sections14=_configs$sections14.filter)||void 0===_configs$sections14?void 0:_configs$sections14.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_responsive__WEBPACK_IMPORTED_MODULE_15__.Ay,{minWidth:426},react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"section filter"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_SearchComponent__WEBPACK_IMPORTED_MODULE_6__.A,{uiConfig:null==configs||null===(_configs$sections15=configs.sections)||void 0===_configs$sections15||null===(_configs$sections15=_configs$sections15.filter)||void 0===_configs$sections15?void 0:_configs$sections15.uiConfig,header:null==configs||null===(_configs$sections16=configs.sections)||void 0===_configs$sections16||null===(_configs$sections16=_configs$sections16.filter)||void 0===_configs$sections16?void 0:_configs$sections16.label,screenType:configs.type,fullConfig:configs,data}))),"inbox"===(null==configs?void 0:configs.type)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_responsive__WEBPACK_IMPORTED_MODULE_15__.Ay,{maxWidth:426},react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"digit-search-box"},(null==configs||null===(_configs$sections17=configs.sections)||void 0===_configs$sections17||null===(_configs$sections17=_configs$sections17.search)||void 0===_configs$sections17?void 0:_configs$sections17.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_molecules_SearchAction__WEBPACK_IMPORTED_MODULE_8__.A,{text:"SEARCH",handleActionClick:()=>{setType("SEARCH"),setPopup(!0)}}),(null==configs||null===(_configs$sections18=configs.sections)||void 0===_configs$sections18||null===(_configs$sections18=_configs$sections18.filter)||void 0===_configs$sections18?void 0:_configs$sections18.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_molecules_FilterAction__WEBPACK_IMPORTED_MODULE_9__.A,{text:"FILTER",handleActionClick:()=>{setType("FILTER"),setPopup(!0)}}))),(null==configs||null===(_configs$sections19=configs.sections)||void 0===_configs$sections19||null===(_configs$sections19=_configs$sections19.searchResult)||void 0===_configs$sections19?void 0:_configs$sections19.show)&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"",style:(null===(_data=data)||void 0===_data||null===(_data=_data[null==configs||null===(_configs$sections20=configs.sections)||void 0===_configs$sections20||null===(_configs$sections20=_configs$sections20.searchResult)||void 0===_configs$sections20||null===(_configs$sections20=_configs$sections20.uiConfig)||void 0===_configs$sections20?void 0:_configs$sections20.resultsJsonPath])||void 0===_data?void 0:_data.length)>0?isLoading||isFetching?{}:{overflowX:"auto"}:{}},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_responsive__WEBPACK_IMPORTED_MODULE_15__.Ay,{minWidth:426},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ResultsTable__WEBPACK_IMPORTED_MODULE_2__.A,{config:null==configs||null===(_configs$sections21=configs.sections)||void 0===_configs$sections21||null===(_configs$sections21=_configs$sections21.searchResult)||void 0===_configs$sections21?void 0:_configs$sections21.uiConfig,data,isLoading,isFetching,fullConfig:configs,additionalConfig})),react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_responsive__WEBPACK_IMPORTED_MODULE_15__.Ay,{maxWidth:426},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MobileView_MobileSearchResults__WEBPACK_IMPORTED_MODULE_11__.A,{config:null==configs||null===(_configs$sections22=configs.sections)||void 0===_configs$sections22||null===(_configs$sections22=_configs$sections22.searchResult)||void 0===_configs$sections22?void 0:_configs$sections22.uiConfig,data,isLoading,isFetching,fullConfig:configs}))),popup&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_PopUp__WEBPACK_IMPORTED_MODULE_7__.A,null,"FILTER"===type&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"popup-module"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MobileView_MobileSearchComponent__WEBPACK_IMPORTED_MODULE_10__.A,{uiConfig:null==configs||null===(_configs$sections23=configs.sections)||void 0===_configs$sections23||null===(_configs$sections23=_configs$sections23.filter)||void 0===_configs$sections23?void 0:_configs$sections23.uiConfig,header:null==configs||null===(_configs$sections24=configs.sections)||void 0===_configs$sections24||null===(_configs$sections24=_configs$sections24.filter)||void 0===_configs$sections24?void 0:_configs$sections24.label,modalType:type,screenType:configs.type,fullConfig:configs,data,onClose:handlePopupClose,defaultValues:null==configs||null===(_configs$sections25=configs.sections)||void 0===_configs$sections25||null===(_configs$sections25=_configs$sections25.filter)||void 0===_configs$sections25||null===(_configs$sections25=_configs$sections25.uiConfig)||void 0===_configs$sections25?void 0:_configs$sections25.defaultValues})),"SEARCH"===type&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"popup-module"},react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MobileView_MobileSearchComponent__WEBPACK_IMPORTED_MODULE_10__.A,{uiConfig:null==configs||null===(_configs$sections26=configs.sections)||void 0===_configs$sections26||null===(_configs$sections26=_configs$sections26.search)||void 0===_configs$sections26?void 0:_configs$sections26.uiConfig,header:null==configs||null===(_configs$sections27=configs.sections)||void 0===_configs$sections27||null===(_configs$sections27=_configs$sections27.search)||void 0===_configs$sections27?void 0:_configs$sections27.label,modalType:type,screenType:configs.type,fullConfig:configs,data,onClose:handlePopupClose,defaultValues:null==configs||null===(_configs$sections28=configs.sections)||void 0===_configs$sections28||null===(_configs$sections28=_configs$sections28.search)||void 0===_configs$sections28||null===(_configs$sections28=_configs$sections28.uiConfig)||void 0===_configs$sections28?void 0:_configs$sections28.defaultValues})))),react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div",{className:"additional-sections-parent"})),showToast&&react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_atoms_Toast__WEBPACK_IMPORTED_MODULE_1__.A,{label:showToast.label,type:null==showToast?void 0:showToast.type,isDleteBtn:!0,onClose:()=>setShowToast(null)}))},__WEBPACK_DEFAULT_EXPORT__=InboxSearchComposer},bejV:(e,l,n)=>{n.r(l),n.d(l,{ActionBar:()=>o.E76,ActionLinks:()=>o.ukx,AddFileFilled:()=>t.sK,AddFilled:()=>t.on,AddIcon:()=>t.RE,AddNewIcon:()=>t.TO,AddressBookIcon:()=>t.h3,Amount:()=>o.J08,Animation:()=>o.X55,AnnouncementIcon:()=>t.bM,ApiDropdown:()=>s.ix,AppContainer:()=>o.RT,ArrowDirection:()=>t.bO,ArrowDown:()=>t.yd,ArrowForward:()=>t.j0,ArrowLeft:()=>t.nk,ArrowLeftWhite:()=>t.k$,ArrowRightInbox:()=>t.eK,ArrowVectorDown:()=>t.Dx,AttendanceIcon:()=>t.z_,BPAHomeIcon:()=>t.a4,BPAIcon:()=>t.Li,BackLink:()=>o.EGL,Banner:()=>o.lZ$,BillsIcon:()=>t.G0,BioMetricIcon:()=>t.ol,BirthIcon:()=>t.Zn,BodyContainer:()=>o.MtN,BreadCrumb:()=>o.YZx,BreakLine:()=>o.Mig,Button:()=>o.$nd,ButtonSelector:()=>o.kj0,ButtonsGroup:()=>o.tKv,Calender:()=>t.jm,CameraIcon:()=>t.xp,Card:()=>o.ZpM,CardBasedOptions:()=>o.Yls,CardCaption:()=>o.F15,CardHeader:()=>o.aRn,CardLabel:()=>o.BhC,CardLabelError:()=>o.vis,CardText:()=>o.c5N,CaseIcon:()=>t.S0,CheckBox:()=>o.oVT,CheckSvg:()=>t.Xq,Chip:()=>o.vu3,CitizenHomeCard:()=>o.Eg2,CitizenInfoLabel:()=>o.NnP,CitizenTruck:()=>t.EQ,Clock:()=>t.zD,Close:()=>t.bm,CloseSvg:()=>t.X6,CollapseAndExpandGroups:()=>o.z6M,CollectionIcon:()=>t.cZ,CollectionsBookmarIcons:()=>t.PD,ComplaintIcon:()=>t.Jt,ConnectingCheckPoints:()=>o.wGv,ContractIcon:()=>t.Ch,CreateEstimateIcon:()=>t.Wx,CreateLoiIcon:()=>t.al,CustomDropdown:()=>s.bs,DashboardIcon:()=>t.aL,DatePicker:()=>o.lrV,DeathIcon:()=>t.u_,DeleteIcon:()=>t.d7,Details:()=>t.B_,DetailsCard:()=>s.DG,DisplayPhotos:()=>o.ElJ,Divider:()=>o.cGx,DocumentIcon:()=>t.py,DocumentIconSolid:()=>t.um,DocumentSVG:()=>t.Qw,DownloadBtnCommon:()=>t.S3,DownloadIcon:()=>t.s3,DownloadImgIcon:()=>t.Fw,DownloadPrefixIcon:()=>t.uU,DownwardArrow:()=>t.sz,DropIcon:()=>t.zT,Dropdown:()=>o.msM,DustbinIcon:()=>t.T2,EDCRIcon:()=>t.o$,EditIcon:()=>t.qU,EditPencilIcon:()=>t.tS,Ellipsis:()=>t.gy,EmailIcon:()=>t.aZ,ErrorBoundary:()=>o.tHk,ErrorIcon:()=>t.pm,ErrorMessage:()=>o.Kw,EstimateIcon:()=>t.ow,EventCalendar:()=>t.Th,EventsIconSolid:()=>t.Ci,ExpenditureIcon:()=>t.pZ,ExternalLinkIcon:()=>t.pT,FSMIcon:()=>t.iU,FieldComposer:()=>b,FieldController:()=>I,FieldV1:()=>y,Fields:()=>S,FilterIcon:()=>t.YG,FilterSvg:()=>t.H,FinanceChartIcon:()=>t.Ac,FirenocIcon:()=>t.GB,Footer:()=>o.wi6,FormComposerV2:()=>B,FormStep:()=>s.$V,GalleryIcon:()=>t.Ko,GenericFileIcon:()=>t.bP,GetApp:()=>t.oe,GotoInboxIcon:()=>t.NR,HRIcon:()=>t.jw,Hamburger:()=>o.UN$,Header:()=>o.Y9Y,HeaderBar:()=>o.H9C,HelpIcon:()=>t.NT,HelpLineIcon:()=>t.N_,HelperIcon:()=>t.sb,HomeIcon:()=>t.fA,HorizontalNav:()=>o.ki5,ImageIcon:()=>t.xf,InboxIcon:()=>t.K$,InboxSearchComposer:()=>K.A,InboxSearchLinks:()=>o.k3S,InfoBannerIcon:()=>t.iJ,InfoButton:()=>o.H7b,InfoCard:()=>o.nOu,InputCard:()=>s.dM,InputTextAmount:()=>o.g$h,KeyNote:()=>o.uMU,LabelFieldPair:()=>o.Vf9,LanguageIcon:()=>t.U,LinkLabel:()=>o.Tb7,Loader:()=>o.aHM,LoaderScreen:()=>o.aVp,LocateIcon:()=>t.KX,LocationDropdownWrapper:()=>s.Y8,LocationIcon:()=>t.BT,LogoutIcon:()=>t.o4,MCollectIcon:()=>t.lN,MapMarker:()=>t.fU,Menu:()=>o.W1t,MobileNumber:()=>o.Kf8,MobileSidebar:()=>o.RaE,Modal:()=>U,MuktaHomeIcon:()=>t.v1,MultiSelectDropdown:()=>o.Xaf,MultiUploadWrapper:()=>s.kq,NoResultsFound:()=>o.cFu,NoResultsFoundIcon:()=>t.Dt,NotificationBell:()=>t.ry,OBPSIcon:()=>t.OG,OBPSIconSolidBg:()=>t._6,OTPInput:()=>o.wEt,OrganisationIcon:()=>t.kK,PDFSvg:()=>t.Be,PGRIcon:()=>t.hF,PMBIcon:()=>t.HH,PMBIconSolid:()=>t.mS,PTIcon:()=>t.Ah,PageBasedInput:()=>o.R16,PanelCard:()=>s.Hk,Panels:()=>o.QIW,Paragraph:()=>o.fzL,PaymentIcon:()=>t.kx,Person:()=>t._A,PersonIcon:()=>t.nX,Phone:()=>t.bc,PlusMinusInput:()=>o.Bsq,Poll:()=>t.sP,PopUp:()=>o.HHF,PrevIcon:()=>t.$9,PrintBtnCommon:()=>t.jB,PrintIcon:()=>t.hM,PrivacyMaskIcon:()=>t.mp,PrivateRoute:()=>o.nPp,ProjectIcon:()=>t.hV,PropertyHouse:()=>t.w1,RadioButtons:()=>o.h2k,Rating:()=>o.GWJ,ReceiptIcon:()=>t.KB,RefreshIcon:()=>t.fN,RefreshSVG:()=>t.q9,RemoveIcon:()=>t.YP,ResultsTable:()=>W.A,RoundedLabel:()=>o.ot$,RupeeIcon:()=>t.XW,RupeeSymbol:()=>t.Eo,SVG:()=>o.t4N,SearchAction:()=>s.h3,SearchComponent:()=>o.Syu,SearchField:()=>s.Lw,SearchForm:()=>s.B9,SearchIcon:()=>t.WI,SearchIconSvg:()=>t.G9,SearchOnRadioButtons:()=>s.Ix,SelectionCard:()=>o.JFf,ServiceCenterIcon:()=>t.GC,ShareIcon:()=>t.li,ShippingTruck:()=>t.C5,Sidebar:()=>o.Bx2,SortDown:()=>t.L9,SortSvg:()=>t.HD,SortUp:()=>t.Mz,Stepper:()=>o.C1Z,StringManipulator:()=>o.GOG,SubmitBar:()=>o.Wfh,SubtractIcon:()=>t.Qp,SurveyIconSolid:()=>t.CY,TLIcon:()=>t.SI,Tag:()=>o.vwO,Telephone:()=>o.lxK,TestComponent:()=>o.GiU,TextArea:()=>o.fs1,TextBlock:()=>o.VJf,TextInput:()=>o.ksK,TextInputCard:()=>s.IX,TickMark:()=>t.Hb,Timeline:()=>o.Kfn,TimelineMolecule:()=>s.yj,TimerIcon:()=>t.xb,Toast:()=>o.y8,Toggle:()=>o.lMk,ToggleSwitch:()=>o.jF7,Tooltip:()=>o.m_M,TooltipWrapper:()=>s.T_,TopBar:()=>o.Vsm,TreeSelect:()=>o.f7I,UploadFile:()=>o.EO4,UploadFileComposer:()=>C,UploadImage:()=>o.tuV,UploadPopup:()=>o._Lt,Uploader:()=>o.d9b,UpwardArrow:()=>t.Lq,ValidityTimeIcon:()=>t.Py,ViewCardFieldPair:()=>o.ks9,ViewReportIcon:()=>t.bI,ViewsIcon:()=>t.yc,WSICon:()=>t.uz,WageseekerIcon:()=>t.NB,WhatsNewCard:()=>o.Uh,WhatsappIcon:()=>t.Y4,WhatsappIconGreen:()=>t.sv,WorksMgmtIcon:()=>t.t4});var o=n("QZag"),t=n("ueKo"),i=n("C6rw"),a=n.n(i),s=n("76Om"),r=n("17x9"),c=n.n(r),d=n("iTkH"),u=n("Crro"),_=n("hUmK"),m=n("3RlE"),g=n("xVzt"),v=n("GV5m"),f=n("O2dT"),p=n("2xqR"),E=n("oG2x");const h=e=>{var l,n,o;let{module:t,config:i,Controller:s,control:r,register:c,formData:h,errors:C,localePrefix:b,customClass:D,customErrorMsg:y,mdmsModuleName:I="works"}=e;const{t:M}=(0,d.Bd)(),S=(null===(l=Digit)||void 0===l||null===(l=l.ULBService)||void 0===l||l.getStateId(),{}),P=null==S||null===(n=S.works)||void 0===n||null===(n=n.DocumentConfig)||void 0===n?void 0:n[0];return a().createElement(a().Fragment,null,a().createElement(v.A,{styles:{fontSize:"24px",marginTop:"40px"}},M("WORKS_RELEVANT_DOCUMENTS")),a().createElement(g.A,{info:M("ES_COMMON_INFO"),text:M(null==P?void 0:P.bannerLabel),className:"digit-doc-banner"}),null==P||null===(o=P.documents)||void 0===o?void 0:o.map(((e,l)=>{var n,o;if(null!=e&&e.active)return a().createElement(u.A,{key:l,style:{alignItems:null!=e&&e.showTextInput?"flex-start":"center"}},e.code&&a().createElement(_.A,{className:"bolder",style:{marginTop:null!=e&&e.showTextInput?"10px":""}},M("".concat(b,"_").concat(null==e?void 0:e.code))," ",null!=e&&e.isMandatory?" * ":null),a().createElement("div",{className:"digit-field"},null!=e&&e.showTextInput?a().createElement(p.A,{style:{marginBottom:"16px"},name:"".concat(null==i?void 0:i.name,".").concat(null==e?void 0:e.name,"_name"),placeholder:M("ES_COMMON_ENTER_NAME"),inputRef:c({minLength:2})}):null,a().createElement("div",{style:{marginBottom:"24px"}},a().createElement(s,{render:l=>{let{value:n=[],onChange:o}=l;return a().createElement(f.A,{t:M,module:"works",getFormState:function(e){const l=e.length;let n=[];l>0&&e.forEach((e=>{var l,o;n.push({fileName:null==e?void 0:e[0],fileStoreId:null==e||null===(l=e[1])||void 0===l||null===(l=l.fileStoreId)||void 0===l?void 0:l.fileStoreId,documentType:null==e||null===(o=e[1])||void 0===o||null===(o=o.file)||void 0===o?void 0:o.type})})),o(l>0?e:[])},setuploadedstate:n||[],showHintBelow:!(null==e||!e.hintText),hintText:null==e?void 0:e.hintText,allowedFileTypesRegex:(0,E.s)(null==e?void 0:e.allowedFileTypes),allowedMaxSizeInMB:(null==e?void 0:e.maxSizeInMB)||(null==P?void 0:P.maxSizeInMB)||5,maxFilesAllowed:(null==e?void 0:e.maxFilesAllowed)||1,customErrorMsg:null==e?void 0:e.customErrorMsg,customClass:D,tenantId:Digit.ULBService.getCurrentTenantId()})},rules:{validate:l=>!(null!=e&&e.isMandatory&&0===(null==l?void 0:l.length))},defaultValue:null==h?void 0:h[null==e?void 0:e.name],name:"".concat(null==i?void 0:i.name,".").concat(null==e?void 0:e.name),control:r}),C&&null!==(n=C["".concat(null==i?void 0:i.name)])&&void 0!==n&&n["".concat(null==e?void 0:e.name)]&&Object.keys(null===(o=C["".concat(null==i?void 0:i.name)])||void 0===o?void 0:o["".concat(null==e?void 0:e.name)]).length?a().createElement(m.A,{style:{fontSize:"12px"}},M(null==i?void 0:i.error)):null)))})))};h.propTypes={module:c().string.isRequired,config:c().object.isRequired,Controller:c().func.isRequired,control:c().object.isRequired,register:c().func.isRequired,formData:c().object.isRequired,errors:c().object.isRequired,localePrefix:c().string.isRequired,customClass:c().string,customErrorMsg:c().string,data:c().object.isRequired,tenant:c().object.isRequired};const C=h,b=e=>{var l;let{type:n,populators:t,isMandatory:r,component:c,config:u,sectionFormCategory:_,formData:m,selectedFormCategory:g,onChange:v,ref:f,value:p,props:E,errors:h,onBlur:b,controllerProps:D,variant:y,placeholder:I,disable:M=!1,noneditable:S=!1,focused:P=!1,charCount:w}=e;const{t:A}=(0,d.Bd)();let x=!1;const T="string"==typeof c?Digit.ComponentRegistryService.getComponent(c):c,O=(null==u||null===(l=u.populators)||void 0===l||null===(l=l.validation)||void 0===l||l.customValidation,null==u?void 0:u.customProps),[$,L]=(0,i.useState)(0);return(0,i.useEffect)((()=>{L(p.length)}),[p]),a().createElement(a().Fragment,null,!u.withoutLabel&&a().createElement(o.Y9Y,{style:{color:null!=u&&u.isSectionText?"#505A5F":"",marginBottom:null!=E&&E.inline?"8px":"revert",fontWeight:null!=E&&E.isDescriptionBold?"600":null},className:"label"},A(u.label),null!=u&&u.appendColon?" : ":null,u.isMandatory?" * ":null,u.withoutInfo?null:a().createElement("label",null," ⓘ")),a().createElement("div",{style:u.withoutLabel?{width:"100%",...null==E?void 0:E.fieldStyle}:{...null==E?void 0:E.fieldStyle},className:"digit-field"},(()=>{var e,l,i,r,c,d,x,$,L,R;switch(n){case"date":case"text":case"number":case"password":case"time":case"search":case"prefix":case"suffix":case"geolocation":return a().createElement(o.ksK,{value:p,type:n,name:t.name,onChange:v,inputRef:f,errorStyle:null==h?void 0:h[t.name],max:null==t||null===(e=t.validation)||void 0===e?void 0:e.max,min:null==t||null===(l=t.validation)||void 0===l?void 0:l.min,noneditable:S,disable:M,config:u,focused:P,errors:h,style:"date"===n?{paddingRight:"3px"}:"",prefix:null==t?void 0:t.prefix,suffix:null==t?void 0:t.suffix,maxlength:null==t||null===(i=t.validation)||void 0===i?void 0:i.maxlength,minlength:null==t||null===(r=t.validation)||void 0===r?void 0:r.minlength,customIcon:null==t?void 0:t.customIcon,customClass:null==t?void 0:t.customClass,variant:y||(null!=h&&h[t.name]?"digit-field-error":""),charCount:w,placeholder:I});case"amount":return a().createElement(o.g$h,{value:null==m?void 0:m[t.name],type:"text",name:t.name,onChange:v,inputRef:f,errorStyle:null==h?void 0:h[t.name],max:null==t||null===(c=t.validation)||void 0===c?void 0:c.max,min:null==t||null===(d=t.validation)||void 0===d?void 0:d.min,disable:M,style:"date"===n?{paddingRight:"3px"}:"",maxlength:null==t||null===(x=t.validation)||void 0===x?void 0:x.maxlength,minlength:null==t||null===($=t.validation)||void 0===$?void 0:$.minlength,customIcon:null==t?void 0:t.customIcon,customClass:null==t?void 0:t.customClass,prefix:null==t?void 0:t.prefix,intlConfig:null==t?void 0:t.intlConfig,state:state||(null!=h&&h[t.name]?"digit-field-error":"")});case"textarea":return a().createElement("div",null,a().createElement(o.fs1,{value:p,type:n,name:t.name,onChange:v,inputRef:f,noneditable:S,disable:M,focused:P,errors:h,errorStyle:null==h?void 0:h[t.name],style:{marginTop:0},maxlength:null==t||null===(L=t.validation)||void 0===L?void 0:L.maxlength,minlength:null==t||null===(R=t.validation)||void 0===R?void 0:R.minlength,variant:y||(null!=h&&h[t.name]?"digit-field-error":""),charCount:w,placeholder:I,config:u}));case"paragraph":return a().createElement("div",{className:"digit-field-container"},a().createElement(o.fzL,{value:null==m?void 0:m[t.name],name:t.name,inputRef:f,customClass:null==t?void 0:t.customClass,customStyle:null==t?void 0:t.customStyle,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"mobileNumber":return a().createElement("div",{className:"digit-field-container"},a().createElement(o.Kf8,{inputRef:f,onChange:v,value:p,disable:M,errorStyle:null==h?void 0:h[t.name],variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"custom":return t.component;case"checkbox":return a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(o.oVT,{onChange:e=>{v(e.target.checked)},value:null==m?void 0:m[t.name],checked:null==m?void 0:m[t.name],label:A("".concat(null==t?void 0:t.title)),styles:null==t?void 0:t.styles,style:null==t?void 0:t.labelStyles,customLabelMarkup:null==t?void 0:t.customLabelMarkup,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"multiupload":return a().createElement(s.kq,{t:A,module:"works",tenantId:Digit.ULBService.getCurrentTenantId(),showHintBelow:!(null==t||!t.showHintBelow),setuploadedstate:p||[],allowedFileTypesRegex:t.allowedFileTypes,allowedMaxSizeInMB:t.allowedMaxSizeInMB,hintText:t.hintText,maxFilesAllowed:t.maxFilesAllowed,extraStyleName:{padding:"0.5rem"},customClass:null==t?void 0:t.customClass,customErrorMsg:null==t?void 0:t.errorMessage,containerStyles:{...null==t?void 0:t.containerStyles},variant:y||(null!=h&&h[t.name]?"digit-field-error":"")});case"select":case"radio":case"dropdown":case"radioordropdown":return a().createElement("div",{className:"digit-field-container"},a().createElement(s.bs,{t:A,label:null==u?void 0:u.label,type:n,onBlur:b,value:p,inputRef:f,onChange:v,config:t,disable:null==u?void 0:u.disable,errorStyle:null==h?void 0:h[t.name],variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"component":return a().createElement(T,{userType:"employee",t:A,setValue:null==D?void 0:D.setValue,onSelect:null==D?void 0:D.setValue,config:u,data:m,formData:m,register:null==D?void 0:D.register,errors:h,props:{...E,...O},setError:null==D?void 0:D.setError,clearErrors:null==D?void 0:D.clearErrors,formState:null==D?void 0:D.formState,onBlur:b,control:null==D?void 0:D.control,sectionFormCategory:_,selectedFormCategory:g,getValues:null==D?void 0:D.getValues,watch:null==D?void 0:D.watch,unregister:null==D?void 0:D.unregister});case"documentUpload":return a().createElement(C,{module:null==u?void 0:u.module,config:u,register:null==D?void 0:D.register,formData:m,errors:h,control:null==D?void 0:D.control,customClass:null==u?void 0:u.customClass,customErrorMsg:null==u?void 0:u.error,localePrefix:null==u?void 0:u.localePrefix,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")});case"form":return a().createElement("form",null,a().createElement(T,{userType:"employee",t:A,setValue:null==D?void 0:D.setValue,onSelect:null==D?void 0:D.setValue,config:u,data:m,formData:m,register:null==D?void 0:D.register,errors:h,setError:null==D?void 0:D.setError,clearErrors:null==D?void 0:D.clearErrors,formState:null==D?void 0:D.formState,control:null==D?void 0:D.control,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"locationdropdown":return a().createElement("div",{className:"digit-field-container"},a().createElement(s.Y8,{props:{config:u,onChange:v,value:p},populators:t,formData:m,inputRef:f,errors:h,setValue:null==D?void 0:D.setValue,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"apidropdown":return a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(s.ix,{props:E,populators:t,formData:m,inputRef:f,errors:h,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));case"multiselectdropdown":return a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(o.Xaf,{options:null==t?void 0:t.options,optionsKey:null==t?void 0:t.optionsKey,props:E,isPropsNeeded:!0,onSelect:e=>{v(null==e?void 0:e.map((e=>null!=e&&e[1]?e[1]:null)).filter((e=>e)))},selected:p||[],defaultLabel:A(null==t?void 0:t.defaultText),defaultUnit:A(null==t?void 0:t.selectedText),config:t,variant:y||(null!=h&&h[t.name]?"digit-field-error":"")}));default:return null}})(),a().createElement("div",{style:{color:" #505A5F",width:"23.75rem",display:"flex",justifyContent:"space-between",fontSize:"1rem",marginTop:"-40px",lineHeight:"1.5rem"}},(null==u?void 0:u.description)&&a().createElement(o.c5N,null,A(null==u?void 0:u.description)),(()=>{if(w){var e;const l=(null==t||null===(e=t.validation)||void 0===e?void 0:e.maxlength)||50;return a().createElement(o.c5N,null,$,"/",l)}})()),h.errorMessage?a().createElement(o.Kw,{style:{fontWeight:"400",fontStyle:"normal",color:"#D4351C",fontSize:"0.875rem",lineHeight:"1.5rem"},message:A(null==h?void 0:h.errorMessage)}):null))};var D=n("wUmw");const y=e=>{var l;let{type:n="",value:t="",onChange:r=()=>{},error:c="",label:u="",disabled:_=!1,nonEditable:m=!1,placeholder:g="",inline:v=!1,required:f=!1,description:p="",charCount:E=!1,populators:h={},withoutLabel:b=!1,props:y={},ref:I,onBlur:M,config:S,errors:P,infoMessage:w,component:A,sectionFormCategory:x,formData:T,selectedFormCategory:O,controllerProps:$,variant:L}=e;const{t:R}=(0,d.Bd)();let B=!1;const F="string"==typeof A?Digit.ComponentRegistryService.getComponent(A):A,k=(null==S||null===(l=S.populators)||void 0===l||null===(l=l.validation)||void 0===l||l.customValidation,null==S?void 0:S.customProps),[N,U]=(0,i.useState)(0);return(0,i.useEffect)((()=>{U(t.length)}),[t]),a().createElement(a().Fragment,null,!b&&a().createElement(o.Y9Y,{className:"label ".concat(_?"disabled":""," ").concat(m?"noneditable":""," ").concat(null!=h&&h.wrapLabel?"wraplabel":"")},a().createElement("div",{className:"label-container ".concat(null!=h&&h.wrapLabel?"wraplabel":"")},a().createElement("div",{className:"label-styles ".concat(null!=h&&h.wrapLabel?"wraplabel":"")},(0,o.GOG)("TOSENTENCECASE",(0,o.GOG)("TRUNCATESTRING",R(u),{maxLength:64}))),a().createElement("div",{style:{color:"#B91900"}},f?" * ":null),w?a().createElement("div",{className:"info-icon"},a().createElement(o.t4N.InfoOutline,{width:"1.1875rem",height:"1.1875rem",fill:"#505A5F"}),a().createElement("span",{class:"infotext"},w)):null)),a().createElement("div",{style:b?{width:"100%",...null==y?void 0:y.fieldStyle,marginBottom:"24px"}:{...null==y?void 0:y.fieldStyle,marginBottom:"24px"},className:"digit-field"},(()=>{var e,l,i,d,p,E,b,w,A,B;switch(n){case"text":case"date":case"time":case"geolocation":case"password":case"search":case"number":case"numeric":return a().createElement(o.ksK,{type:n,value:t,name:h.name,onChange:r,error:c,disabled:_,nonEditable:m,placeholder:g,inline:v,required:f,populators:h,inputRef:I,step:null==S?void 0:S.step,errorStyle:null==P?void 0:P[h.name],max:null==h||null===(e=h.validation)||void 0===e?void 0:e.max,min:null==h||null===(l=h.validation)||void 0===l?void 0:l.min,maxlength:null==h||null===(i=h.validation)||void 0===i?void 0:i.maxlength,minlength:null==h||null===(d=h.validation)||void 0===d?void 0:d.minlength,customIcon:null==h?void 0:h.customIcon,customClass:null==h?void 0:h.customClass,onIconSelection:null==h?void 0:h.onIconSelection});case"textarea":return a().createElement("div",{className:"digit-field-container"},a().createElement(o.fs1,{type:n,value:t,name:h.name,onChange:r,error:c,disabled:_,nonEditable:m,placeholder:g,inline:v,required:f,populators:h,inputRef:I,errorStyle:null==P?void 0:P[h.name],maxlength:null==h||null===(p=h.validation)||void 0===p?void 0:p.maxlength,minlength:null==h||null===(E=h.validation)||void 0===E?void 0:E.minlength}));case"radio":case"dropdown":case"select":case"radioordropdown":case"toggle":return a().createElement(s.bs,{t:R,label:u,type:n,onBlur:M,value:t,inputRef:I,onChange:r,config:h,disabled:_,errorStyle:null==P?void 0:P[h.name],variant:L||(null!=P&&P[h.name]?"digit-field-error":"")});case"checkbox":return a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(o.oVT,{onChange:e=>{r(e.target.checked)},value:t,checked:null==T?void 0:T[h.name],label:R("".concat(null==h?void 0:h.title)),styles:null==h?void 0:h.styles,style:null==h?void 0:h.labelStyles,customLabelMarkup:null==h?void 0:h.customLabelMarkup,disabled:_,isLabelFirst:null==h?void 0:h.isLabelFirst}));case"multiselectdropdown":return a().createElement("div",{style:{display:"grid",gridAutoFlow:"row",width:"100%"}},a().createElement(o.Xaf,{options:null==h?void 0:h.options,optionsKey:null==h?void 0:h.optionsKey,props:y,isPropsNeeded:!0,onSelect:e=>{r(null==e?void 0:e.map((e=>null!=e&&e[1]?e[1]:null)).filter((e=>e)))},selected:t||[],defaultLabel:R(null==h?void 0:h.defaultText),defaultUnit:R(null==h?void 0:h.selectedText),config:h,disabled:_,variant:L,addSelectAllCheck:null==h?void 0:h.addSelectAllCheck,addCategorySelectAllCheck:null==h?void 0:h.addCategorySelectAllCheck,selectAllLabel:null==h?void 0:h.selectAllLabel,categorySelectAllLabel:null==h?void 0:h.categorySelectAllLabel,restrictSelection:null==h?void 0:h.restrictSelection}));case"mobileNumber":return a().createElement("div",{className:"digit-field-container"},a().createElement(o.Kf8,{inputRef:I,onChange:r,value:t,disable:_,errorStyle:null==P?void 0:P[h.name]}));case"component":return a().createElement(F,{userType:"employee",t:R,setValue:null==$?void 0:$.setValue,onSelect:null==$?void 0:$.setValue,config:S,data:T,formData:T,register:null==$?void 0:$.register,errors:P,props:{...y,...k},setError:null==$?void 0:$.setError,clearErrors:null==$?void 0:$.clearErrors,formState:null==$?void 0:$.formState,onBlur:M,control:null==$?void 0:$.control,sectionFormCategory:x,selectedFormCategory:O,getValues:null==$?void 0:$.getValues,watch:null==$?void 0:$.watch,unregister:null==$?void 0:$.unregister});case"documentUpload":return a().createElement(C,{mdmsModuleName:null==S?void 0:S.mdmsModuleName,module:null==S?void 0:S.module,config:S,Controller:D.xI,register:null==$?void 0:$.register,formData:T,errors:P,control:null==$?void 0:$.control,customClass:null==S?void 0:S.customClass,customErrorMsg:null==S?void 0:S.error,localePrefix:null==S?void 0:S.localePrefix,variant:L||(null!=P&&P[h.name]?"digit-field-error":"")});case"custom":return h.component;case"amount":return a().createElement(o.g$h,{value:null==T?void 0:T[h.name],type:"text",name:h.name,onChange:r,inputRef:I,errorStyle:null==P?void 0:P[h.name],max:null==h||null===(b=h.validation)||void 0===b?void 0:b.max,min:null==h||null===(w=h.validation)||void 0===w?void 0:w.min,disable:_,style:"date"===n?{paddingRight:"3px"}:"",maxlength:null==h||null===(A=h.validation)||void 0===A?void 0:A.maxlength,minlength:null==h||null===(B=h.validation)||void 0===B?void 0:B.minlength,customIcon:null==h?void 0:h.customIcon,customClass:null==h?void 0:h.customClass,prefix:null==h?void 0:h.prefix,intlConfig:null==h?void 0:h.intlConfig,variant:L||(null!=P&&P[h.name]?"digit-field-error":"")});default:return null}})(),a().createElement("div",{className:"".concat(!E||c||p?"digit-description":"digit-charcount")},c?a().createElement(o.Kw,{message:R(c),truncateMessage:!0,maxLength:256,showIcon:!0}):p?a().createElement(o.c5N,{style:{width:"100%",whiteSpace:"pre-wrap",wordBreak:"break-word",marginTop:"0px",fontSize:"0.875rem",lineHeight:"1.5rem"}},(0,o.GOG)("TOSENTENCECASE",(0,o.GOG)("TRUNCATESTRING",R(p),{maxLength:256}))):null,(()=>{if(E){var e;const l=(null==h||null===(e=h.validation)||void 0===e?void 0:e.maxlength)||0;return a().createElement(o.c5N,{style:{marginTop:"0px",fontSize:"0.875rem",lineHeight:"1.5rem"}},N,"/",l)}})())))},I=function(e){var l,n,o,t;const{type:i,populators:s,isMandatory:r,disable:c,component:d,config:u,sectionFormCategory:_,formData:m,selectedFormCategory:g,control:v,props:f,errors:p,controllerProps:E}=e;let{apiDetails:h}=f,C=!1;_&&g&&(C=_!==g);const b=null==u||null===(l=u.populators)||void 0===l||null===(l=l.validation)||void 0===l?void 0:l.customValidation;let I=null!=u&&u.additionalValidation?null===(n=Digit)||void 0===n||null===(n=n.Customizations)||void 0===n||null===(n=n[null==h?void 0:h.masterName])||void 0===n||null===(n=n[null==h?void 0:h.moduleName])||void 0===n?void 0:n.additionalValidations(null==u||null===(o=u.additionalValidation)||void 0===o?void 0:o.type,m,null==u||null===(t=u.additionalValidation)||void 0===t?void 0:t.keys):null;const M=b||I?{validate:b}:{},S=null!=s&&s.name&&p&&p[null==s?void 0:s.name]&&Object.keys(p[null==s?void 0:s.name]).length?null==s?void 0:s.error:null;return null==u||u.customProps,a().createElement(D.xI,{defaultValue:null==m?void 0:m[null==s?void 0:s.name],render:e=>{let{onChange:l,ref:n,value:o,onBlur:t}=e;return a().createElement(y,{error:S,label:u.label,nonEditable:u.nonEditable,placeholder:u.placeholder,inline:f.inline,description:u.description,charCount:u.charCount,infoMessage:u.infoMessage,withoutLabel:u.withoutLabel,variant:u.variant,type:i,populators:s,required:r,disabled:c,component:d,config:u,sectionFormCategory:_,formData:m,selectedFormCategory:g,onChange:l,ref:n,value:o,props:f,errors:p,onBlur:t,controllerProps:E})},name:null==s?void 0:s.name,rules:C?{}:{required:r,...null==s?void 0:s.validation,...M},control:v})};function M(){return M=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},M.apply(null,arguments)}const S=function(e,l,n,t,i){var r;let c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],d=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,_=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,g=arguments.length>10?arguments[10]:void 0,v=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,E=arguments.length>14?arguments[14]:void 0,h=arguments.length>15?arguments[15]:void 0,b=arguments.length>16?arguments[16]:void 0,y=arguments.length>17?arguments[17]:void 0,I=arguments.length>20?arguments[20]:void 0,S=arguments.length>22?arguments[22]:void 0,P=!1;_&&v&&(P=_!==v);const w="string"==typeof d?Digit.ComponentRegistryService.getComponent(d):d,A=null==u||null===(r=u.populators)||void 0===r||null===(r=r.validation)||void 0===r?void 0:r.customValidation,x=A?{validate:A}:{},T=null==u?void 0:u.customProps;switch(n){case"date":case"text":case"number":case"password":case"time":return a().createElement("div",{className:"field-container"},null!=t&&t.componentInFront?a().createElement("span",{className:"component-in-front ".concat(c&&"disabled")},t.componentInFront):null,a().createElement(D.xI,{defaultValue:null==m?void 0:m[t.name],render:e=>{var i,s,r,d;let{onChange:u,ref:_,value:g}=e;return a().createElement(o.ksK,{value:null==m?void 0:m[t.name],type:n,name:t.name,onChange:u,inputRef:_,errorStyle:null==l?void 0:l[t.name],max:null==t||null===(i=t.validation)||void 0===i?void 0:i.max,min:null==t||null===(s=t.validation)||void 0===s?void 0:s.min,disable:c,style:"date"===n?{paddingRight:"3px"}:"",maxlength:null==t||null===(r=t.validation)||void 0===r?void 0:r.maxlength,minlength:null==t||null===(d=t.validation)||void 0===d?void 0:d.minlength,customIcon:null==t?void 0:t.customIcon,customClass:null==t?void 0:t.customClass})},name:t.name,rules:P?{}:{required:i,...t.validation,...x},control:g}));case"amount":return a().createElement("div",{className:"field-container"},null!=t&&t.componentInFront?a().createElement("span",{className:"component-in-front ".concat(c&&"disabled")},t.componentInFront):null,a().createElement(D.xI,{defaultValue:null==m?void 0:m[t.name],render:e=>{var i,s,r,d;let{onChange:u,ref:_,value:g}=e;return a().createElement(o.g$h,{value:null==m?void 0:m[t.name],type:"text",name:t.name,onChange:u,inputRef:_,errorStyle:null==l?void 0:l[t.name],max:null==t||null===(i=t.validation)||void 0===i?void 0:i.max,min:null==t||null===(s=t.validation)||void 0===s?void 0:s.min,disable:c,style:"date"===n?{paddingRight:"3px"}:"",maxlength:null==t||null===(r=t.validation)||void 0===r?void 0:r.maxlength,minlength:null==t||null===(d=t.validation)||void 0===d?void 0:d.minlength,customIcon:null==t?void 0:t.customIcon,customClass:null==t?void 0:t.customClass,prefix:null==t?void 0:t.prefix,intlConfig:null==t?void 0:t.intlConfig})},name:t.name,rules:P?{}:{required:i,...t.validation,...x},control:g}));case"textarea":return a().createElement("div",{className:"field-container"},a().createElement(D.xI,{defaultValue:null==m?void 0:m[t.name],render:e=>{var i,s;let{onChange:r,ref:d,value:u}=e;return a().createElement(o.fs1,{value:null==m?void 0:m[t.name],type:n,name:t.name,onChange:r,inputRef:d,disable:c,errorStyle:null==l?void 0:l[t.name],style:{marginTop:0},maxlength:null==t||null===(i=t.validation)||void 0===i?void 0:i.maxlength,minlength:null==t||null===(s=t.validation)||void 0===s?void 0:s.minlength})},name:t.name,rules:P?{}:{required:i,...t.validation},control:g}));case"paragraph":return a().createElement("div",{className:"field-container"},a().createElement(D.xI,{defaultValue:null==m?void 0:m[t.name],render:e=>{let{onChange:l,ref:n,value:i}=e;return a().createElement(o.fzL,{value:null==m?void 0:m[t.name],name:t.name,inputRef:n,customClass:null==t?void 0:t.customClass,customStyle:null==t?void 0:t.customStyle})},name:t.name,rules:P?{}:{required:i,...t.validation},control:g}));case"mobileNumber":return a().createElement("div",{className:"field-container"},a().createElement(D.xI,{render:e=>a().createElement(o.Kf8,M({inputRef:e.ref,onChange:e.onChange,value:e.value,disable:c},e,{errorStyle:null==l?void 0:l[t.name]})),defaultValue:t.defaultValue,name:null==t?void 0:t.name,rules:P?{}:{required:i,...t.validation},control:g}));case"custom":return a().createElement(D.xI,{render:e=>t.component({...e,setValue:f},t.customProps),defaultValue:t.defaultValue,name:null==t?void 0:t.name,control:g});case"checkbox":return a().createElement(D.xI,{name:"".concat(t.name),control:g,defaultValue:null==m?void 0:m[t.name],rules:{required:null==t?void 0:t.isMandatory},render:l=>a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(o.oVT,{onChange:e=>{l.onChange(e.target.checked)},value:null==m?void 0:m[t.name],checked:null==m?void 0:m[t.name],label:e("".concat(null==t?void 0:t.title)),styles:null==t?void 0:t.styles,style:null==t?void 0:t.labelStyles,customLabelMarkup:null==t?void 0:t.customLabelMarkup}))});case"multiupload":return a().createElement(D.xI,{name:"".concat(t.name),control:g,rules:P?{}:{required:!1},render:l=>{let{onChange:n,ref:o,value:i=[]}=l;return a().createElement(s.kq,{t:e,module:"works",tenantId:Digit.ULBService.getCurrentTenantId(),getFormState:function(e){const l=e.length;let o=[];l>0&&e.forEach((e=>{var l,n;o.push({fileName:null==e?void 0:e[0],fileStoreId:null==e||null===(l=e[1])||void 0===l||null===(l=l.fileStoreId)||void 0===l?void 0:l.fileStoreId,documentType:null==e||null===(n=e[1])||void 0===n||null===(n=n.file)||void 0===n?void 0:n.type})})),n(l>0?e:[])},showHintBelow:!(null==t||!t.showHintBelow),setuploadedstate:i||[],allowedFileTypesRegex:t.allowedFileTypes,allowedMaxSizeInMB:t.allowedMaxSizeInMB,hintText:t.hintText,maxFilesAllowed:t.maxFilesAllowed,extraStyleName:{padding:"0.5rem"},customClass:null==t?void 0:t.customClass,customErrorMsg:null==t?void 0:t.errorMessage,containerStyles:{...null==t?void 0:t.containerStyles}})}});case"select":case"radio":case"dropdown":case"radioordropdown":return a().createElement("div",{className:"field-container"},a().createElement(D.xI,{render:o=>a().createElement(s.bs,{t:e,label:null==u?void 0:u.label,type:n,onBlur:o.onBlur,value:o.value,inputRef:o.ref,onChange:o.onChange,config:t,disable:null==u?void 0:u.disable,errorStyle:null==l?void 0:l[t.name]}),rules:P?{}:{required:i,...t.validation},defaultValue:null==m?void 0:m[t.name],name:u.key,control:g}));case"component":return a().createElement(D.xI,{render:n=>a().createElement(w,{userType:"employee",t:e,setValue:f,onSelect:f,config:u,data:m,formData:m,register:p,errors:l,props:{...n,...T},setError:E,clearErrors:h,formState:b,onBlur:n.onBlur,control:g,sectionFormCategory:_,selectedFormCategory:v,getValues:y,watch:I,unregister:S}),name:u.key,control:g});case"documentUpload":return a().createElement(C,{module:null==u?void 0:u.module,config:u,Controller:D.xI,register:p,formData:m,errors:l,control:g,customClass:null==u?void 0:u.customClass,customErrorMsg:null==u?void 0:u.error,localePrefix:null==u?void 0:u.localePrefix});case"form":return a().createElement("form",null,a().createElement(w,{userType:"employee",t:e,setValue:f,onSelect:f,config:u,data:m,formData:m,register:p,errors:l,setError:E,clearErrors:h,formState:b,control:g}));case"locationdropdown":return a().createElement("div",{className:"field-container"},a().createElement(D.xI,{name:"".concat(t.name),control:g,defaultValue:null==m?void 0:m[t.name],rules:{required:null==t?void 0:t.isMandatory,...t.validation},render:e=>a().createElement(s.Y8,{props:e,populators:t,formData:m,inputRef:e.ref,errors:l,setValue:f})}));case"apidropdown":return a().createElement(D.xI,{name:"".concat(t.name),control:g,defaultValue:null==m?void 0:m[t.name],rules:{required:null==t?void 0:t.isMandatory,...t.validation},render:e=>a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(s.ix,{props:e,populators:t,formData:m,inputRef:e.ref,errors:l}))});case"multiselectdropdown":return a().createElement(D.xI,{name:"".concat(t.name),control:g,defaultValue:null==m?void 0:m[t.name],rules:{required:i},render:l=>a().createElement("div",{style:{display:"grid",gridAutoFlow:"row"}},a().createElement(o.Xaf,{options:null==t?void 0:t.options,optionsKey:null==t?void 0:t.optionsKey,props:l,isPropsNeeded:!0,onSelect:e=>{l.onChange(null==e?void 0:e.map((e=>null!=e&&e[1]?e[1]:null)).filter((e=>e)))},selected:(null==l?void 0:l.value)||[],defaultLabel:e(null==t?void 0:t.defaultText),defaultUnit:e(null==t?void 0:t.selectedText),config:t}))});default:return null}};var P=n("LvDl"),w=n.n(P),A=n("U9Ix"),x=n("naAG"),T=n("Lfsa"),O=n("J7Zr"),$=n("otB8"),L=(n("JBBT"),n("bNHr"));const R={display:"flex",flexDirection:"column",alignItems:"flex-start",border:"solid",borderRadius:"5px",padding:"10px",paddingTop:"20px",marginTop:"10px",borderColor:"#f3f3f3",background:"#FAFAFA",marginBottom:"20px"},B=e=>{var l,n,t,s,r;const{register:c,handleSubmit:_,setValue:m,getValues:g,reset:f,watch:p,trigger:E,control:h,formState:C,errors:b,setError:y,clearErrors:M,unregister:S}=(0,D.mN)({defaultValues:e.defaultValues}),{t:P}=(0,d.Bd)(),T=p(),B=null==e?void 0:e.currentFormCategory,[F,k]=(0,i.useState)(!1);function N(l){e.onSecondayActionClick()}(0,i.useEffect)((()=>{M()}),[B]),(0,i.useEffect)((()=>{Object.keys(null==C?void 0:C.errors).length>0&&(null==C?void 0:C.submitCount)>0&&k(!0)}),[null==C?void 0:C.errors,null==C?void 0:C.submitCount]),(0,i.useEffect)((()=>{var l,n,o;!(null!=e&&e.appData&&(null===(l=Object.keys(null==e?void 0:e.appData))||void 0===l?void 0:l.length)>0)||w().isEqual(null==e?void 0:e.appData,T)&&w().isEqual(null==e||null===(n=e.appData)||void 0===n||null===(n=n.ConnectionHolderDetails)||void 0===n?void 0:n[0],null==T||null===(o=T.ConnectionHolderDetails)||void 0===o?void 0:o[0])||f({...null==e?void 0:e.appData})}),[null==e?void 0:e.appData,T,null==e||null===(l=e.appData)||void 0===l?void 0:l.ConnectionHolderDetails]),(0,i.useEffect)((()=>{e.getFormAccessors&&e.getFormAccessors({setValue:m,getValues:g})}),[]),(0,i.useEffect)((()=>{e.onFormValueChange&&e.onFormValueChange(m,T,C,f,y,M,E,g)}),[T]);const U=function(l,n,o){return I({type:l,populators:n,isMandatory:o,disable:arguments.length>3&&void 0!==arguments[3]&&arguments[3],component:arguments.length>4?arguments[4]:void 0,config:arguments.length>5?arguments[5]:void 0,sectionFormCategory:arguments.length>6?arguments[6]:void 0,formData:T,selectedFormCategory:B,control:h,props:e,errors:b,controllerProps:{register:c,handleSubmit:_,setValue:m,getValues:g,reset:f,watch:p,trigger:E,control:h,formState:C,errors:b,setError:y,clearErrors:M,unregister:S}})},W=e=>{switch(e){case 0:return{border:"solid",borderRadius:"5px",padding:"10px",paddingTop:"20px",marginTop:"10px",borderColor:"#f3f3f3",background:"#FAFAFA",marginBottom:"20px"};case 1:return{border:"solid",borderRadius:"5px",padding:"10px",paddingTop:"20px",marginTop:"-30px",borderColor:"#f3f3f3",background:"#FAFAFA",borderTop:"0px",borderBottom:"0px"};case 2:return{border:"solid",borderRadius:"5px",padding:"10px",paddingTop:"20px",marginTop:"-30px",borderColor:"#f3f3f3",background:"#FAFAFA",marginBottom:"20px",borderTop:"0px"}}},K={color:"#505A5F",fontWeight:"700",fontSize:"16px"},V=(0,i.useCallback)(((l,n,o,t)=>a().createElement(a().Fragment,{key:n},l&&(l=>l.head&&l.subHead?a().createElement(a().Fragment,null,a().createElement(v.A,{className:"digit-card-section-header",style:null!=e&&e.sectionHeadStyle?null==e?void 0:e.sectionHeadStyle:{margin:"5px 0px"},id:l.headId},P(l.head)),a().createElement(v.A,{style:K,id:"".concat(l.headId,"_DES")},P(l.subHead))):l.head?a().createElement(a().Fragment,null,a().createElement(v.A,{className:"digit-card-section-header",style:null!=e&&e.sectionHeadStyle?null==e?void 0:e.sectionHeadStyle:{},id:l.headId},P(l.head))):a().createElement("div",null))(l),l.body.map(((l,n)=>{var o,s,r;return null!=l&&null!==(o=l.populators)&&void 0!==o&&o.hideInForm?null:e.inline?a().createElement(a().Fragment,{key:n},a().createElement("div",{style:l.isInsideBox?W(null==l?void 0:l.placementinbox):l.inline?{display:"flex"}:{}},a().createElement("div",{style:l.withoutLabel?{width:"100%"}:{},className:"digit-field"},U(l.type,l.populators,l.isMandatory,null==l?void 0:l.disable,null==l?void 0:l.component,l,t),(null==l?void 0:l.description)&&a().createElement(v.A,{style:{marginTop:"-24px",fontSize:"16px",fontWeight:"bold",color:"#505A5F",...null==l?void 0:l.descriptionStyles},className:"bolder"},P(l.description))))):a().createElement(i.Fragment,null,a().createElement(u.A,{key:n,style:null!=e&&e.showWrapperContainers&&!l.hideContainer?{...R,...null==l||null===(s=l.populators)||void 0===s?void 0:s.customStyle}:{border:"none",background:"white",...null==l||null===(r=l.populators)||void 0===r?void 0:r.customStyle},vertical:null==e?void 0:e.labelfielddirectionvertical},U(l.type,l.populators,l.isMandatory,null==l?void 0:l.disable,null==l?void 0:l.component,l,t)))})),!e.noBreakLine&&(o.length-1===n?null:a().createElement(A.A,{style:null!=e&&e.breaklineStyle?null==e?void 0:e.breaklineStyle:{}})))),[e.config,T]),q=function(){let l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=e.cardStyle||{};return e.noBoxShadow&&(n={...n,boxShadow:"none"}),l||(n={...n,display:"none"}),n},H=e.isDisabled||!1,z=e=>{var l;let n=null;var o;return null==e||e.forEach((e=>{null!=e&&e.activeByDefault&&(n=e)})),n?null===(o=n)||void 0===o?void 0:o.name:null==e||null===(l=e[0])||void 0===l?void 0:l.name},[G,j]=(0,i.useState)(e.horizontalNavConfig?z(e.horizontalNavConfig):null);(0,i.useEffect)((()=>{j(z(e.horizontalNavConfig))}),[e.horizontalNavConfig]);const J=(e,l,n,t,i)=>a().createElement(a().Fragment,{key:n},!e.childrenAtTheBottom&&e.children,e.heading&&a().createElement(v.A,{style:{...e.headingStyle}}," ",e.heading," "),e.description&&a().createElement(v.A,null," ",e.description," "),e.text&&a().createElement("p",null,e.text),V(l,n,t,i),e.childrenAtTheBottom&&e.children,e.submitInForm&&a().createElement(o.Wfh,{label:P(e.label),style:{width:"100%",...null==e?void 0:e.buttonStyle},submit:"submit",disabled:H,className:"w-full"}),e.secondaryActionLabel&&a().createElement("div",{className:"primary-label-btn",style:{margin:"20px auto 0 auto"},onClick:N},e.secondaryActionLabel));return a().createElement("form",{onSubmit:_((function(l){e.onSubmit(l)})),onKeyDown:e=>(e=>{e.keyCode?e.keyCode:e.key?e.key:e.which})(e),id:e.formId,className:e.className},null!=e&&e.showMultipleCardsWithoutNavs?null==e||null===(n=e.config)||void 0===n?void 0:n.map(((l,n,o)=>!l.navLink&&a().createElement(x.A,{style:q(),noCardStyle:e.noCardStyle,className:e.cardClassName},J(e,l,n,o)))):a().createElement(x.A,{style:q(),noCardStyle:e.noCardStyle,className:e.cardClassName},null==e||null===(t=e.config)||void 0===t?void 0:t.map(((l,n,o)=>!l.navLink&&a().createElement(a().Fragment,null,J(e,l,n,o))))),(null==e?void 0:e.showFormInNav)&&e.horizontalNavConfig&&a().createElement(L.A,{configNavItems:e.horizontalNavConfig?e.horizontalNavConfig:null,showNav:null==e?void 0:e.showNavs,activeLink:G,setActiveLink:j},null!=e&&e.showMultipleCardsInNavs?null==e||null===(s=e.config)||void 0===s?void 0:s.map(((l,n,o)=>l.navLink?a().createElement(x.A,{style:l.navLink!==G?q(!1):q(),noCardStyle:e.noCardStyle},J(e,l,n,o,null==l?void 0:l.sectionFormCategory)):null)):a().createElement(x.A,{style:q(),noCardStyle:e.noCardStyle},null==e||null===(r=e.config)||void 0===r?void 0:r.map(((l,n,o)=>l.navLink?a().createElement(a().Fragment,null,a().createElement("div",{style:l.navLink!==G?{display:"none"}:{}},J(e,l,n,o,null==l?void 0:l.sectionFormCategory))):null)))),!e.submitInForm&&e.label&&a().createElement($.A,null,a().createElement(o.Wfh,{label:P(e.label),submit:"submit",disabled:H}),e.onSkip&&e.showSkip&&a().createElement(O.A,{style:null==e?void 0:e.skipStyle,label:P("CS_SKIP_CONTINUE"),onClick:e.onSkip})),F&&a().createElement(o.y8,{type:"error",label:P("ES_COMMON_PLEASE_ENTER_ALL_MANDATORY_FIELDS"),isDleteBtn:!0,onClose:()=>{k(!1)}}))};var F=n("X572"),k=n("zgF6"),N=n("Ttil");const U=e=>{let{headerBarMain:l,headerBarEnd:n,popupStyles:o,children:t,actionCancelLabel:s,actionCancelOnSubmit:r,actionSaveLabel:c,actionSaveOnSubmit:d,error:u,setError:_,formId:m,isDisabled:g,hideSubmit:v,style:f={},popupModuleMianStyles:p,headerBarMainStyle:E,variant:h="",popupModuleActionBarStyles:C={}}=e;return(0,i.useEffect)((()=>(document.body.style.overflowY="hidden",()=>{document.body.style.overflowY="auto"})),[]),a().createElement(F.A,null,a().createElement("div",{className:"digit-popup-module",style:o},a().createElement(N.A,{main:l,end:n,style:E||{}}),a().createElement("div",{className:"digit-popup-module-main",style:p||{}},t,a().createElement("div",{className:"digit-popup-module-action-bar ".concat(h),style:C},s?a().createElement(T.A,{textStyles:{width:"100%"},variation:"digit-action-cancel",theme:"border",label:s,onClick:r,style:f}):null,v?null:a().createElement(T.A,{textStyles:{width:"100%"},label:c,onClick:d,formId:m,isDisabled:g,style:f})))),u&&a().createElement(k.A,{label:u,onClose:()=>_(null),type:"error"}))};var W=n("UXfJ"),K=(n("PwGy"),n("Jrwa"),n("Z/xq"))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunk_egovernments_digit_ui_components=this.webpackChunk_egovernments_digit_ui_components||[]).push([[716],{"+YVD":(e,t,l)=>{l.d(t,{A:()=>v});var n=l("C6rw"),o=l.n(n),a=l("rTr4"),i=l("17x9"),r=l.n(i),s=l("hYOT"),c=l("F94A"),d=l("CefG"),u=l("sqMA"),p=l("snI5");const m=e=>{var t,l,i,r;const m=u.J.lightTheme.paper.primary,v=((e,t)=>{const l=t||m;return(0,p.Q)(e,l,h,y,"digit-panel-customIcon")})(null==e?void 0:e.customIcon,null==e?void 0:e.iconFill),g=(()=>{const[e,t]=(0,n.useState)("desktop");return(0,n.useEffect)((()=>{const e=()=>{const e=window.innerWidth;t(e<=480?"mobile":e>481&&e<=768?"tablet":"desktop")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e})(),{width:h,height:y}=(()=>{var t,l;if(null!=e&&null!==(t=e.animationProps)&&void 0!==t&&t.width&&null!=e&&null!==(l=e.animationProps)&&void 0!==l&&l.height)return{width:e.animationProps.width,height:e.animationProps.height};if("success"===(null==e?void 0:e.type)&&(null==e||!e.showAsSvg))switch(g){case"mobile":return{width:80,height:80};case"tablet":return{width:100,height:100};default:return{width:120,height:120}}switch(g){case"mobile":return{width:56,height:56};case"tablet":return{width:64,height:64};default:return{width:74,height:74}}})();return o().createElement("div",{className:"digit-panel-wrapper ".concat(null!=e&&e.className?null==e?void 0:e.className:""," ").concat(null!=e&&e.type?null==e?void 0:e.type:""," ").concat(null!=e&&e.showAsSvg?"with-svg":""),style:null==e?void 0:e.style},o().createElement("div",{className:"digit-panel-message-wrapper ".concat((null==e?void 0:e.type)||""," ").concat(null!=e&&e.showAsSvg?"with-svg":"")},"success"===(null==e?void 0:e.type)?null!=e&&e.customIcon?v:null!=e&&e.showAsSvg?o().createElement(a.t.CheckCircleOutline,{fill:m,width:h,height:y}):o().createElement(s.A,{animationData:c,width:h,height:h,loop:!0===(null==e||null===(t=e.animationProps)||void 0===t?void 0:t.loop),autoplay:!0!==(null==e||null===(l=e.animationProps)||void 0===l?void 0:l.noAutoplay)}):null!=e&&e.customIcon?v:null!=e&&e.showAsSvg?o().createElement(a.t.ErrorOutline,{fill:m,width:h,height:y}):o().createElement(s.A,{animationData:d,width:h,height:y,loop:!0===(null==e||null===(i=e.animationProps)||void 0===i?void 0:i.loop),autoplay:!0!==(null==e||null===(r=e.animationProps)||void 0===r?void 0:r.noAutoplay)}),o().createElement("div",{className:"digit-panel-message"},null==e?void 0:e.message)),o().createElement("div",{className:"digit-panel-info-wrapper"},o().createElement("div",{className:"digit-panel-info"},null==e?void 0:e.info),o().createElement("div",{className:"digit-panel-response"},null==e?void 0:e.response),(null==e?void 0:e.multipleResponses)&&o().createElement("div",{className:"digit-panel-multiple-responses"},null==e?void 0:e.multipleResponses.map((e=>o().createElement("div",{className:"digit-panel-response"},e))))))};m.propTypes={className:r().string,message:r().string,type:r().string,info:r().string,response:r().string,customIcon:r().string,iconFill:r().string,style:r().object,multipleResponses:r().array},m.defaultProps={type:"success"};const v=m},"1Woi":(e,t,l)=>{l.d(t,{A:()=>r});var n=l("C6rw"),o=l.n(n);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},a.apply(null,arguments)}const i=e=>{let{name:t,Icon:l,onClick:n,className:a}=e;return o().createElement("div",{className:a||"digit-card-based-options-main-child-option",onClick:n},o().createElement("div",{className:"digit-child-option-image-wrapper"},l),o().createElement("p",{className:"digit-child-option-name"},t))},r=e=>{let{header:t,sideOption:l,options:n,styles:r={},style:s={}}=e;return o().createElement("div",{className:"digit-card-based-options",style:s},o().createElement("div",{className:"digit-head-content"},o().createElement("h2",null,t),o().createElement("p",{onClick:l.onClick},l.name)),o().createElement("div",{className:"digit-main-content"},n.map(((e,t)=>o().createElement(i,a({key:t},e))))))}},"1wiX":(e,t,l)=>{l.d(t,{A:()=>g});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("iTkH"),s=l("NPaP"),c=l("rTr4"),d=l("Lfsa"),u=l("+G7B"),p=l("sqMA"),m=l("snI5");const v=e=>{var t;let{options:l,optionsKey:a,selected:i=[],onSelect:v,defaultLabel:g="",defaultUnit:h="",BlockNumber:y=1,isOBPSMultiple:E=!1,props:f,isPropsNeeded:b=!1,ServerStyle:S={},config:w,disabled:C,variant:N,addSelectAllCheck:A=!1,addCategorySelectAllCheck:k=!1,selectAllLabel:T="",categorySelectAllLabel:P="",restrictSelection:x=!1}=e;const[D,L]=(0,n.useState)(!1),[O,R]=(0,n.useState)(),[M,F]=(0,n.useState)(-1),[I,B]=(0,n.useState)(!1),[U,V]=(0,n.useState)({}),j=(0,n.useRef)(),{t:W}=(0,r.Bd)();function _(e){return null==e?void 0:e.map((e=>({code:null==e?void 0:e.code,propsData:[null,e]})))}(0,n.useEffect)((()=>{z({type:"REPLACE_COMPLETE_STATE",payload:_(i)})}),[null==i?void 0:i.length]);const[H,z]=(0,n.useReducer)((function(e,t){var l;switch(t.type){case"ADD_TO_SELECTED_EVENT_QUEUE":return[...e,{code:null===(l=t.payload)||void 0===l||null===(l=l[1])||void 0===l?void 0:l.code,propsData:t.payload}];case"REMOVE_FROM_SELECTED_EVENT_QUEUE":const n=e.filter((e=>{var l;return(null==e?void 0:e.code)!==(null===(l=t.payload)||void 0===l||null===(l=l[1])||void 0===l?void 0:l.code)}));return v(n.map((e=>e.propsData)),X(),f),n;case"REPLACE_COMPLETE_STATE":return t.payload;default:return e}}),i,_);(0,n.useEffect)((()=>{D||v(null==H?void 0:H.map((e=>e.propsData)),X(),f)}),[D]),(0,n.useEffect)((()=>{const e=l.reduce(((e,t)=>(t.options&&(e[t.code]=t.options.every((e=>H.some((t=>t.code===e.code))))),e)),{});V(e)}),[l,H]);const q=e=>!!(e&&e.length>0)&&(null==e?void 0:e.every((e=>H.some((t=>t.code===e.code)))));function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(x)v();else{if("treemultiselect"===N){const e=t[0];null==e||e.forEach((e=>{if(H.some((t=>t.code===e.code))){z({type:"REMOVE_FROM_SELECTED_EVENT_QUEUE",payload:[null,e]});const t=le(e,l);t&&z({type:"REMOVE_FROM_SELECTED_EVENT_QUEUE",payload:[null,t]})}else z({type:"ADD_TO_SELECTED_EVENT_QUEUE",payload:[null,e]})}))}else{const e=arguments[0].target.checked;z(e?{type:"ADD_TO_SELECTED_EVENT_QUEUE",payload:arguments}:{type:"REMOVE_FROM_SELECTED_EVENT_QUEUE",payload:arguments})}v(null==H?void 0:H.map((e=>e.propsData)),X(),t)}}(0,n.useEffect)((()=>{const e=q("nestedmultiselect"===N?te.filter((e=>!e.options)):l);B(e);const t={...U};l.filter((e=>e.options)).forEach((e=>{const l=q(e.options);t[e.code]=l})),V(t)}),[l,H]),null===(t=window)||void 0===t||null===(t=t.Digit)||void 0===t||t.Hooks.useClickOutside(j,(function(){L(!1)}),D,{capture:!0}),(null==O?void 0:O.length)>0&&(null==l||l.filter((e=>W(e[a]&&"string"==typeof e[a]&&e[a].toUpperCase()).toLowerCase().indexOf(O.toLowerCase())>=0)));const K=p.J.lightTheme.paper.primary,J=p.J.lightTheme.generic.inputBorder,Q=p.J.lightTheme.primary[1],Y=p.J.lightTheme.generic.divider,Z=p.J.lightTheme.paper.secondary;function X(){if("nestedmultiselect"===N){const e={};return l.filter((e=>e.options)).forEach((t=>{e[t.code]={isSelectAllChecked:U[t.code]||!1}})),e}return{}}const $=(null==O?void 0:O.length)>0?null==l?void 0:l.filter((e=>W(e[a]&&"string"==typeof e[a]&&e[a].toUpperCase()).toLowerCase().indexOf(O.toLowerCase())>=0)):l,ee=$.filter((e=>e.options&&e.options.length>0)),te=(e=>{let t=[];return null==e||e.forEach((e=>{e.options?(t.push(e),t=t.concat(e.options)):t.push(e)})),t})(ee);function le(e,t){for(const l of t){if(l.options&&l.options.some((t=>t.code===e.code)))return l;if(l.options){const t=le(e,l.options);if(t)return t}}return null}const ne=e=>{let{option:t,index:l}=e;const[i,r]=(0,n.useState)(!1);return o().createElement("div",{key:l,className:"digit-multiselectdropodwn-menuitem ".concat(N||""," ").concat(H.find((e=>e.code===t.code))?"checked":""," ").concat(l!==M||H.find((e=>e.code===t.code))?"":"keyChange"),onMouseDown:()=>r(!0),onMouseUp:()=>r(!1),onMouseLeave:()=>r(!1)},o().createElement("input",{type:"checkbox",value:t.code,checked:!!H.find((e=>e.code===t.code)),onChange:e=>{b?G(e,t,f):E?G(e,t,y):G(e,t)},className:"digit-multi-select-dropdown-menuitem ".concat(N||"")}),o().createElement("div",{className:"digit-multiselectdropodwn-custom-checkbox"},o().createElement(c.t.Check,{width:"20px",height:"20px",fill:K})),o().createElement("div",{className:"option-des-container"},o().createElement("div",{className:"multiselectdropdown-icon-option"},(null==w?void 0:w.showIcon)&&(null==t?void 0:t.icon)&&((e,t,l)=>{const n=t||l?K:J;return(0,m.Q)(e,n,"1.25rem","1.25rem","")})(null==t?void 0:t.icon,i,!!H.find((e=>e.code===t.code))),o().createElement("p",{className:"digit-label"},W(t[a]&&"string"==typeof t[a]&&t[a]))),"nestedtextmultiselect"===N&&t.description&&o().createElement("div",{className:"option-description"},t.description)))},oe=A&&o().createElement("div",{className:"digit-multiselectdropodwn-menuitem ".concat(N||""," ").concat(A?"selectAll":"")},o().createElement("input",{type:"checkbox",checked:I,onChange:()=>{if(x)v();else{if(I)z({type:"REPLACE_COMPLETE_STATE",payload:[]}),B(!1);else{const e="nestedmultiselect"===N?te.filter((e=>!e.options)).map((e=>({code:e.code,propsData:[null,e]}))):l.map((e=>({code:e.code,propsData:[null,e]})));z({type:"REPLACE_COMPLETE_STATE",payload:e}),B(!0)}v(null==H?void 0:H.map((e=>e.propsData)),X(),f)}}}),o().createElement("div",{className:"digit-multiselectdropodwn-custom-checkbox-selectAll"},o().createElement(c.t.Check,{width:"20px",height:"20px",fill:Q})),o().createElement("p",{className:"digit-label ".concat(A?"selectAll":"")},T||"Select All")),ae=()=>{const e="nestedmultiselect"===N?te:$;return e?o().createElement("div",null,oe,null==e?void 0:e.map(((e,t)=>e.options?o().createElement("div",{key:t,className:"digit-nested-category ".concat(A?"selectAll":"")},o().createElement("div",{className:"digit-category-name"},W(e[a])),k&&o().createElement("div",{className:"digit-category-selectAll",onClick:()=>(e=>{if(x)v();else{const t=e.options;U[e.code]?null==t||t.forEach((e=>{z({type:"REMOVE_FROM_SELECTED_EVENT_QUEUE",payload:[null,e]})})):null==t||t.forEach((e=>{H.some((t=>t.code===e.code))||z({type:"ADD_TO_SELECTED_EVENT_QUEUE",payload:[null,e]})})),V((t=>({...t,[e.code]:!U[e.code]}))),v(null==H?void 0:H.map((e=>e.propsData)),X(),f)}})(e)},o().createElement("div",{className:"category-selectAll-label"},P||"Select All"),o().createElement("input",{type:"checkbox",checked:I||U[e.code]}),o().createElement("div",{className:"digit-multiselectdropodwn-custom-checkbox-selectAll"},o().createElement(c.t.Check,{width:"20px",height:"20px",fill:Q})))):o().createElement(ne,{option:e,key:t,index:t})))):null};return o().createElement("div",null,o().createElement("div",{className:"digit-multiselectdropdown-wrap ".concat(null!=f&&f.className?null==f?void 0:f.className:""," ").concat(N||""),ref:j,style:null==f?void 0:f.style},o().createElement("div",{className:"digit-multiselectdropdown-master".concat(D?"-active":""," ").concat(C?"disabled":""," ").concat(N||"")},o().createElement("input",{className:"digit-cursorPointer",style:{opacity:0},type:"text",onKeyDown:e=>{const t="nestedmultiselect"===N?te:$;var l,n,o,a;if("ArrowDown"==e.key)F((e=>e+1==t.length?0:e+1)),M+1==t.length?null==e||null===(l=e.target)||void 0===l||null===(l=l.parentElement)||void 0===l||null===(l=l.parentElement)||void 0===l||null===(l=l.children)||void 0===l||null===(l=l.namedItem("jk-dropdown-unique"))||void 0===l||null===(n=l.scrollTo)||void 0===n||n.call(l,0,0):M>2&&(null==e||null===(o=e.target)||void 0===o||null===(o=o.parentElement)||void 0===o||null===(o=o.parentElement)||void 0===o||null===(o=o.children)||void 0===o||null===(o=o.namedItem("jk-dropdown-unique"))||void 0===o||null===(a=o.scrollBy)||void 0===a||a.call(o,0,45)),e.preventDefault();else if("ArrowUp"==e.key){var i,r,s,c;F((e=>0!==e?e-1:t.length-1)),0===M?null==e||null===(i=e.target)||void 0===i||null===(i=i.parentElement)||void 0===i||null===(i=i.parentElement)||void 0===i||null===(i=i.children)||void 0===i||null===(i=i.namedItem("jk-dropdown-unique"))||void 0===i||null===(r=i.scrollTo)||void 0===r||r.call(i,1e5,1e5):M>2&&(null==e||null===(s=e.target)||void 0===s||null===(s=s.parentElement)||void 0===s||null===(s=s.parentElement)||void 0===s||null===(s=s.children)||void 0===s||null===(s=s.namedItem("jk-dropdown-unique"))||void 0===s||null===(c=s.scrollBy)||void 0===c||c.call(s,0,-45)),e.preventDefault()}else"Enter"==e.key&&((e,t)=>{let l=!!H.find((e=>e.code===t.code));z(l?{type:"REMOVE_FROM_SELECTED_EVENT_QUEUE",payload:[null,t]}:{type:"ADD_TO_SELECTED_EVENT_QUEUE",payload:[null,t]})})(0,t[M])},onFocus:()=>L(!0),value:O,onChange:function(e){R(e.target.value)}}),o().createElement("div",{className:"digit-multiselectdropdown-label"},"treemultiselect"===N?o().createElement("p",null,H.length>0?"".concat((e=>{let t=0;return null==e||e.forEach((e=>{var l;null!==(l=e.propsData[1])&&void 0!==l&&l.options||(t+=1)})),t})(H)," ").concat(h," Selected"):g):o().createElement("p",null,H.length>0?"".concat(H.length," ").concat(h," Selected"):g),o().createElement(c.t.ArrowDropDown,{fill:C?Y:J}))),D?o().createElement("div",{className:"digit-multiselectdropdown-server",id:"jk-dropdown-unique",style:S||{}},"treemultiselect"===N?o().createElement(u.A,{options:ee,onSelect:G,selectedOption:H,variant:N,optionsKey:a}):o().createElement(ae,null)):null),null!=w&&w.isDropdownWithChip?o().createElement("div",{className:"digit-tag-container"},H.length>0&&H.map(((e,t)=>{var l;if(null===(l=e.propsData[1])||void 0===l||!l.options){const l=(e=>{if(e)return e.replace(/\./g,": ")})(W(e.code));return o().createElement(s.A,{key:t,text:l.length>64?"".concat(l.slice(0,64),"..."):l,onClick:"treemultiselect"===N?()=>G([e]):b?t=>G(t,e,f):t=>G(t,e),className:"multiselectdropdown-tag"})}return null})),H.length>0&&o().createElement(d.A,{label:W(null!=w&&w.clearLabel?null==w?void 0:w.clearLabel:"Clear All"),onClick:()=>{z({type:"REPLACE_COMPLETE_STATE",payload:[]}),v([],X(),f)},variation:"",style:{height:"2rem",minWidth:"4.188rem",minHeight:"2rem",padding:"0.5rem",justifyContent:"center",alignItems:"center",borderRadius:"0.25rem",border:"1px solid #C84C0E",background:Z},textStyles:{height:"auto",fontSize:"0.875rem",fontWeight:"400",width:"100%",lineHeight:"16px",color:Q}})):null)};v.propTypes={options:i().array.isRequired,optionsKey:i().string.isRequired,selected:i().array,onSelect:i().func.isRequired,defaultLabel:i().string,defaultUnit:i().string,BlockNumber:i().number,isOBPSMultiple:i().bool,props:i().object,isPropsNeeded:i().bool,ServerStyle:i().object,config:i().object};const g=v},"3RlE":(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("h2",{className:"digit-card-label-error ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:e.style},e.children);r.propTypes={className:i().string,style:i().object,children:i().node.isRequired};const s=r},"3uk+":(e,t,l)=>{l.d(t,{A:()=>d});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("2xqR"),s=l("JTzt");const c=e=>{const t=(0,s.W)();return o().createElement(o().Fragment,null,o().createElement("div",{className:"digit-mobile-number-container ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style},e.hideSpan?null:o().createElement("span",{style:null==e?void 0:e.style,className:"digit-citizenCard-input digit-citizenCard-input--front"},"+91"),o().createElement("div",{className:"digit-text-input-field ".concat("employee"===t?"":"digit-text-mobile-input-width"," ").concat(e.className?e.className:"")},o().createElement(r.A,{userType:e.userType,isMandatory:e.isMandatory,name:e.name,placeholder:e.placeholder,onChange:t=>{var l;let n=t.target.value;(isNaN(n)||[" ","e","E"].some((e=>n.includes(e)))||n.length>(e.maxLength||10))&&(n=n.slice(0,-1)),null==e||null===(l=e.onChange)||void 0===l||l.call(e,n)},inputRef:e.inputRef,value:e.value,className:e.className,style:{...e.style},maxLength:e.maxLength,minlength:e.minlength,max:e.max,pattern:e.pattern,min:e.min,disabled:e.disable,hideSpan:e.hideSpan,title:e.title,step:e.step,autoFocus:e.autoFocus,onBlur:e.onBlur,variant:null==e?void 0:e.variant}))))};c.propTypes={userType:i().string,isMandatory:i().bool,name:i().string,placeholder:i().string,onChange:i().func,inputRef:i().oneOfType([i().func,i().shape({current:i().instanceOf(Element)})]),value:i().any,className:i().string,style:i().object,maxLength:i().number,minlength:i().number,max:i().number,pattern:i().string,min:i().number,disable:i().bool,errorStyle:i().bool,hideSpan:i().bool,title:i().string,step:i().string,autoFocus:i().bool,onBlur:i().func},c.defaultProps={isMandatory:!1};const d=c},"46qi":(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{let t="digit-selector-button-primary";return t="border"===e.theme?"digit-selector-button-border":"digit-selector-button-primary",o().createElement("button",{className:e.isDisabled?"digit-selector-button-primary-disabled":t,type:e.type||"submit",form:e.formId,onClick:e.onSubmit,disabled:e.isDisabled,style:e.style?e.style:null},o().createElement("h2",{style:{...null==e?void 0:e.textStyles,width:"100%"}},e.label))};r.propTypes={label:i().string.isRequired,theme:i().string,onSubmit:i().func},r.defaultProps={label:"",theme:"",onSubmit:void 0};const s=r},"5zo3":(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{let{keyValue:t,note:l,caption:n,noteStyle:a,children:i,privacy:r,className:s="",style:c={}}=e;return o().createElement("div",{className:"digit-key-note-pair ".concat(s),style:c},o().createElement("h3",null,t),o().createElement("div",{className:"digit-key-note-container"},o().createElement("p",{style:a},l)),o().createElement("p",{className:"digit-caption"},n),i)};r.propTypes={keyValue:i().string,note:i().oneOfType([i().string,i().number]),noteStyle:i().any},r.defaultProps={keyValue:"",note:"",noteStyle:{}};const s=r},"7YUq":(e,t,l)=>{l.d(t,{n:()=>d});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("V4z/"),s=l("SOjZ");function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},c.apply(null,arguments)}const d=e=>{let{component:t,roles:l,...n}=e;return o().createElement(r.qh,c({},n,{render:e=>{var l,n;const a=null===(l=window)||void 0===l||null===(l=l.Digit)||void 0===l?void 0:l.UserService.getUser(),i=null===(n=window)||void 0===n||null===(n=n.Digit)||void 0===n?void 0:n.UserService.getType();return a&&a.access_token?o().createElement(t,e):o().createElement(s.Redirect,{to:{pathname:"employee"===i?"/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/employee/user/language-selection"):"/".concat(null===(c=window)||void 0===c?void 0:c.contextPath,"/citizen/login"),state:{from:e.location.pathname+e.location.search}}});var r,c}}))};d.propTypes={component:i().elementType.isRequired,roles:i().arrayOf(i().string)}},"8Mou":(e,t,l)=>{l.d(t,{A:()=>p});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("2xqR"),s=l("iTkH"),c=l("sqMA"),d=l("snI5");const u=e=>{const[t,l]=(0,n.useState)(""),[a,i]=(0,n.useState)(-1),[u,p]=(0,n.useState)(-1),{t:m}=(0,s.Bd)(),v=null==e?void 0:e.options.filter((l=>l[null==e?void 0:e.optionsKey].toLowerCase().includes(t.toLowerCase()))),g=c.J.lightTheme.generic.inputBorder,h=c.J.lightTheme.paper.primary;return o().createElement("div",{className:"header-dropdown-menu ".concat(null!=e&&e.footerdropdown?"footer-dropdown":""," ").concat(null!=e&&e.showBottom?"showBottom":""),ref:null==e?void 0:e.ref,style:null==e?void 0:e.style},(null==e?void 0:e.isSearchable)&&o().createElement("div",{className:"header-dropdown-search-container"},o().createElement(r.A,{type:"search",className:"header-dropdown-search",value:t,onChange:e=>{l(e.target.value)},placeholder:"Search",autoFocus:!0})),o().createElement("div",{className:"header-dropdown-options",id:"header-dropdown-unique"},0!==v.length?v.map(((t,l)=>o().createElement("div",{key:l,className:"header-dropdown-option ".concat(l===a?"activeIndex":""," ").concat(l===a?"keyChange":""),onClick:l=>{var n;l.stopPropagation(),n=t,e.onSelect(n),e.setDropdownStatus(!1)},onMouseDown:()=>(e=>{i(e)})(l)},((e,t)=>{const l=t?h:g;return(0,d.Q)(e,l,"1.25rem","1.25rem","")})(null==t?void 0:t.icon,l===a),m(t[null==e?void 0:e.optionsKey])))):o().createElement("div",{className:"header-dropdown-nooption"},m("No Results Found"))))};u.propTypes={options:i().array,showBottom:i().bool,isSearchable:i().bool,style:i().object,optionsKey:i().string.isRequired,onSelect:i().func.isRequired},u.defaultProps={options:[],onSelect:()=>{}};const p=u},"9/5d":(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=e=>o().createElement("label",{className:"link-label",onClick:e.onClick,style:{...e.style}},e.children)},BWMB:(e,t,l)=>{l.d(t,{A:()=>m});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("rTr4"),s=l("ueKo"),c=l("Lfsa"),d=l("2xqR"),u=l("sqMA");const p=e=>{let{items:t,profileName:l,profileNumber:a,theme:i,className:p,styles:m,ref:v}=e;const[g,h]=(0,n.useState)({}),[y,E]=(0,n.useState)({}),[f,b]=(0,n.useState)({}),S=(e,t)=>e.filter((e=>!!e.label.toLowerCase().includes(t.toLowerCase())||!!e.children&&(e.children=S(e.children,t),e.children.length>0))),w=u.J.lightTheme.paper.primary,C=u.J.lightTheme.primary[2],N=(e,t,l)=>{e.children&&b((e=>({...e,[t]:!e[t]})))},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.map(((e,l)=>{const n=t>=0?"".concat(t,"-").concat(l):l,a=f[n];return o().createElement(o().Fragment,null,o().createElement("div",{className:"item-child-wrapper-msb",key:n},o().createElement("div",{className:"sidebar-item-msb ".concat(i||""," ").concat(y.item===e?"selected":""),onClick:()=>((e,t,l)=>{E({item:e,index:t,parentIndex:l})})(e,n,t),tabIndex:0},o().createElement("span",{className:"icon-msb"},e.selectedIcon?e.selectedIcon:e.icon),o().createElement("span",{className:"item-label-msb"},e.label),e.children&&o().createElement("span",{className:"expand-icon-msb ".concat("child-level"),onClick:t=>{t.stopPropagation(),N(e,n)}},a?o().createElement(r.t.ArrowDropDown,{fill:"dark"===i?w:C}):o().createElement(r.t.ArrowDropDown,{style:{transform:"rotate(-90deg)"},fill:"dark"===i?w:C})))),o().createElement("div",{className:"inner-level-child ".concat(i||""),key:n},e.children&&a&&o().createElement("div",{className:"sidebar-children-msb"},A(e.children,n))))}))},k=S(t,g.root||"");return o().createElement("div",{className:"msb-sidebar ".concat(i||""," ").concat(p||""),style:m,ref:v},o().createElement("div",{className:"msb-profile"},o().createElement(s.n_,{width:"62px",height:"64px"}),o().createElement("div",{className:"msb-profile-details"},o().createElement("div",{className:"msb-profile-name ".concat(i||"")},l),o().createElement("div",{className:"msb-profile-phone ".concat(i||"")},a))),o().createElement("div",{className:"msb-sidebar-items"},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.map(((e,l)=>{const n=t>=0?"".concat(t,"-").concat(l):l,a=f[n],s=-1===t;return o().createElement(o().Fragment,null,o().createElement("div",{className:"msb-item-child-wrapper ".concat(a?"expanded":""," ").concat(i||""),key:n},o().createElement("div",{className:"msb-sidebar-item ".concat(s?"msb-parentLevel":"msb-child-level"),onClick:()=>N(e,n),tabIndex:0},(e.selectedIcon||e.icon)&&o().createElement("span",{className:"msb-icon"},e.selectedIcon?e.selectedIcon:e.icon),o().createElement("span",{className:"msb-item-label"},e.label),e.children&&o().createElement("span",{className:"msb-expand-icon"},a?o().createElement(r.t.ArrowDropDown,{fill:"dark"===i?w:C}):o().createElement(r.t.ArrowDropDown,{style:{transform:"rotate(-90deg)"},fill:"dark"===i?w:C})))),e.children&&a&&o().createElement("div",{className:"msb-sidebar-children expanded"},(e=>o().createElement("div",{className:"mb-search-container ".concat(i||"")},o().createElement(d.A,{type:"search",className:"mb-search",value:g[e]||"",onChange:t=>((e,t)=>{h((l=>({...l,[e]:t})))})(e,t.target.value),placeholder:"Search",autoFocus:!0,iconFill:"dark"===i?w:C})))(n),A(S(e.children,g[n]||""),n)))}))}(k)),o().createElement("div",{className:"msb-sidebar-bottom ".concat(i||"")},o().createElement(c.A,{label:"Logout",icon:"Logout",variation:"secondary"})))};p.propTypes={items:i().arrayOf(i().shape({path:i().string,icon:i().node.isRequired,label:i().string.isRequired})).isRequired,profileName:i().string,profileNumber:i().string};const m=p},CnBu:(e,t,l)=>{l.d(t,{A:()=>p});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("Y+p1"),s=l.n(r),c=l("vA+l"),d=l("iTkH");const u=e=>{var t;const{t:l}=(0,d.Bd)();var n=e.selectedOption;function a(t){e.onSelect(t)}return o().createElement("div",{style:null==e?void 0:e.style,className:"digit-radio-options-wrap ".concat(null!=e&&e.additionalWrapperClass?null==e?void 0:e.additionalWrapperClass:"")},null==e||null===(t=e.options)||void 0===t?void 0:t.map(((t,i)=>null==e||!e.optionsKey||null!=e&&e.isDependent?null!=e&&e.optionsKey&&null!=e&&e.isDependent?o().createElement("div",{className:"radio-option-container ".concat(null!=e&&e.disabled?"disabled":""," ").concat((null==e?void 0:e.value)===t.code&&null!=e&&e.disabled?"preselected":""),key:i},o().createElement("span",{className:"digit-radio-btn-wrap ".concat(null!=e&&e.disabled?"disabled":""," ").concat((null==e?void 0:e.value)===t.code&&null!=e&&e.disabled?"preselected":"")},o().createElement("input",{className:"digit-radio-btn",type:"radio",value:t,checked:(null==n?void 0:n.code)===t.code?1:0,onChange:()=>a(t),disabled:null==e?void 0:e.disabled,name:e.name,ref:e.inputRef}),o().createElement("span",{className:"digit-radio-btn-checkmark"})),o().createElement("label",{style:e.inputStyle},(0,c.A)("TOSENTENCECASE",l(e.labelKey?"".concat(e.labelKey,"_").concat(t.code):t.code)))):o().createElement("div",{className:"radio-option-container ".concat(null!=e&&e.disabled?"disabled":""," ").concat((null==e?void 0:e.value)===t.code&&null!=e&&e.disabled?"preselected":""),key:i},o().createElement("span",{className:"digit-radio-btn-wrap ".concat(null!=e&&e.disabled?"disabled":""," ").concat((null==e?void 0:e.value)===t.code&&null!=e&&e.disabled?"preselected":"")},o().createElement("input",{className:"digit-radio-btn",type:"radio",value:t,checked:n===t?1:0,onChange:()=>a(t),disabled:null==e?void 0:e.disabled,name:e.name,ref:e.inputRef}),o().createElement("span",{className:"digit-radio-btn-checkmark"})),o().createElement("label",{style:e.inputStyle},(0,c.A)("TOSENTENCECASE",l(t)))):o().createElement("div",{className:"radio-option-container ".concat(null!=e&&e.disabled?"disabled":""," ").concat((null==e?void 0:e.value)===t.code&&null!=e&&e.disabled?"preselected":""),key:i},o().createElement("span",{className:"digit-radio-btn-wrap ".concat(null!=e&&e.disabled?"disabled":""," ").concat((null==e?void 0:e.value)===t.code&&null!=e&&e.disabled?"preselected":"")},o().createElement("input",{className:"digit-radio-btn",type:"radio",value:t,checked:n===t.code||s()(n,t)?1:0,onChange:()=>a(t),disabled:null==e?void 0:e.disabled,name:e.name,ref:e.inputRef}),o().createElement("span",{className:"digit-radio-btn-checkmark"})),o().createElement("label",{style:e.inputStyle},(0,c.A)("TOSENTENCECASE",l(t[e.optionsKey])))))))};u.propTypes={selectedOption:i().any,onSelect:i().func,options:i().any,optionsKey:i().string,innerStyles:i().any,style:i().any},u.defaultProps={};const p=u},CoJs:(e,t,l)=>{l.d(t,{A:()=>i});var n=l("C6rw"),o=l.n(n),a=l("SOjZ");const i=e=>{let{header:t,links:l=[],state:n,Icon:i,Info:r,isInfo:s=!1,styles:c}=e;return o().createElement("div",{className:"digit-citizen-home-card",style:c||{}},o().createElement("div",{className:"digit-header"},o().createElement("h2",null,t),o().createElement(i,null)),o().createElement("div",{className:"digit-links"},l.map(((e,t)=>o().createElement("div",{className:"digit-links-wrapper"},o().createElement(a.N_,{key:t,to:{pathname:e.link,state:e.state}},e.i18nKey))))),o().createElement("div",null,s?o().createElement(r,null):null))}},Crro:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("div",{style:null==e?void 0:e.style,className:"digit-label-field-pair ".concat(null!=e&&e.className?null==e?void 0:e.className:""," ").concat(null!=e&&e.vertical?"vertical":"")},e.children);r.propTypes={className:i().string,style:i().object,children:i().node.isRequired};const s=r},ESrU:(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=e=>o().createElement("p",{className:"digit-card-text ".concat(e.disable&&"disabled"," ").concat(null!=e&&e.className?null==e?void 0:e.className:""),style:e.style},e.children)},EeRl:(e,t,l)=>{l.d(t,{A:()=>d});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("iTkH"),s=l("rTr4");const c=e=>{const{t}=(0,r.Bd)(),l=(null==e?void 0:e.height)||262,n=(null==e?void 0:e.width)||336;return o().createElement("div",{className:"digit-no-data-found ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style},o().createElement(s.t.NoResultsFoundIcon,{height:l,width:n}),o().createElement("span",{className:"digit-error-msg"},t("COMMON_NO_RESULTS_FOUND")))};c.propTypes={style:i().object,className:i().string,height:i().number,width:i().number},c.defaultProps={height:262,width:336};const d=c},EkNG:(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=e=>{let{count:t}=e;return t?o().createElement("div",{className:"roundedLabel"},t):o().createElement(o().Fragment,null)}},GV5m:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("header",{className:"digit-header-content ".concat((null==e?void 0:e.className)||""),style:(null==e?void 0:e.styles)||{}},e.children);r.propTypes={className:i().string,styles:i().object,children:i().node};const s=r},J7Zr:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("span",{className:"digit-action-links ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style,onClick:null==e?void 0:e.onClick},e.children);r.propTypes={className:i().string,style:i().object,children:i().node};const s=r},JBBT:(e,t,l)=>{l.d(t,{A:()=>u});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("rTr4"),s=l("vA+l"),c=l("sqMA");const d=e=>{let{wrapperClassName:t="",wrapperStyles:l={},showIcon:n,iconStyles:a={},message:i,className:d="",style:u={},truncateMessage:p,maxLength:m}=e;const v=c.J.lightTheme.alert.error;return o().createElement("div",{className:"digit-error-icon-message-wrap ".concat(t||""),style:l},n&&o().createElement("div",{className:"digit-error-icon",style:a},o().createElement(r.t.Info,{width:"1rem",height:"1rem",fill:v})),o().createElement("div",{className:"digit-error-message ".concat(d),style:u},p?(0,s.A)("TOSENTENCECASE",(0,s.A)("TRUNCATESTRING",i,{maxLength:m||256})):(0,s.A)("TOSENTENCECASE",i)))};d.propTypes={className:i().string,style:i().object,message:i().string,showIcon:i().bool,truncateMessage:i().bool};const u=d},KYTC:(e,t,l)=>{l.d(t,{A:()=>r});var n=l("zgF6"),o=l("C6rw"),a=l.n(o);class i extends o.Component{constructor(){var e,t,l;super(...arguments),e=this,l={hasError:!1,error:null,errorInfo:null},(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,"string");if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="state"))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l}componentDidCatch(e,t){console.error("Error caught by ErrorBoundary:",e,t),this.setState({hasError:!0,error:e,errorInfo:t})}render(){var e,t,l,o,i,r;return null!=this&&null!==(e=this.state)&&void 0!==e&&e.hasError?a().createElement("div",null,(null==this||null===(l=this.state)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.toString())&&a().createElement(n.A,{type:"error",label:(null==this||null===(o=this.props)||void 0===o?void 0:o.moduleName)+" : "+(null==this||null===(i=this.state)||void 0===i||null===(i=i.error)||void 0===i||null===(i=i.toString())||void 0===i?void 0:i.slice(0,100))}),null==this||null===(r=this.props)||void 0===r?void 0:r.children):null==this||null===(t=this.props)||void 0===t?void 0:t.children}}const r=i},Lfsa:(e,t,l)=>{l.d(t,{A:()=>p});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("vA+l"),s=l("8Mou"),c=l("sqMA"),d=l("snI5");const u=e=>{const[t,l]=(0,n.useState)(!1),a=(0,n.useRef)(null);(0,n.useEffect)((()=>{const e=e=>{null==a||!a.current||null!=a&&a.current.contains(e.target)||l(!1)};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[t]);const i=c.J.lightTheme.text.disabled,u=c.J.lightTheme.primary[1],p=c.J.lightTheme.paper.primary,m=(()=>{const l=e.iconFill?e.iconFill:"primary"===(null==e?void 0:e.variation)?p:null!=e&&e.isDisabled?i:u,n="actionButton"===(null==e?void 0:e.type)&&null!=e&&e.showBottom&&t&&!e.icon?"ArrowDropUp":("actionButton"!==(null==e?void 0:e.type)||null==e||!e.showBottom||t||null!=e&&e.icon)&&("actionButton"!==(null==e?void 0:e.type)||null!=e&&e.showBottom||!t||e.icon)?"actionButton"!==(null==e?void 0:e.type)||null!=e&&e.showBottom||t||null!=e&&e.icon?null==e?void 0:e.icon:"ArrowDropUp":"ArrowDropDown";let o,a;return"large"===e.size?(o="link"===e.variation?"1.25rem":"1.5rem",a="link"===e.variation?"1.25rem":"1.5rem"):"medium"===e.size?(o="1.25rem",a="1.25rem"):"small"===e.size?(o="0.875rem",a="0.875rem"):(o="1.5rem",a="1.5rem"),(0,d.Q)(n,l,o,a,"digit-button-customIcon ".concat(null!=e&&e.size?null==e?void 0:e.size:""," ").concat(null!=e&&e.variation?null==e?void 0:e.variation:""))})(),v="link"===(null==e?void 0:e.variation)?null==e?void 0:e.label:(0,r.A)("CAPITALIZEFIRSTLETTER",(0,r.A)("TRUNCATESTRING",null==e?void 0:e.label,{maxLength:64})),g=o().createElement("button",{ref:null==e?void 0:e.ref,className:"digit-button-".concat(null!=e&&e.variation?null==e?void 0:e.variation:"default"," ").concat(null!=e&&e.size?null==e?void 0:e.size:"large"," ").concat(null!=e&&e.className?null==e?void 0:e.className:""," ").concat(null!=e&&e.isDisabled?"disabled":""),type:null!=e&&e.submit?"submit":(null==e?void 0:e.type)||"button",form:e.formId,onClick:"actionButton"===(null==e?void 0:e.type)?e=>(e=>{e.stopPropagation(),l(!t)})(e):null==e?void 0:e.onClick,disabled:(null==e?void 0:e.isDisabled)||null,title:(null==e?void 0:e.title)||"",style:e.style?e.style:null},o().createElement("div",{className:"icon-label-container ".concat(null!=e&&e.variation?null==e?void 0:e.variation:""," ").concat(null!=e&&e.size?null==e?void 0:e.size:"")},!(null!=e&&e.isSuffix)&&(null==e?void 0:e.icon)&&m,o().createElement("h2",{style:{...null==e?void 0:e.textStyles},className:"digit-button-label"},v),(null==e?void 0:e.isSuffix)&&(null==e?void 0:e.icon)&&m,"actionButton"===(null==e?void 0:e.type)&&!(null!=e&&e.hideDefaultActionIcon)&&!(null!=e&&e.icon)&&m));return"actionButton"===(null==e?void 0:e.type)?o().createElement("div",{ref:a},g,t&&o().createElement("div",{className:"header-dropdown-container"},o().createElement(s.A,{options:null==e?void 0:e.options,setDropdownStatus:l,dropdownStatus:t,isSearchable:null==e?void 0:e.isSearchable,optionsKey:null==e?void 0:e.optionsKey,onSelect:null==e?void 0:e.onOptionSelect,showBottom:null==e?void 0:e.showBottom,style:null==e?void 0:e.menuStyles}))):g};u.propTypes={isDisabled:i().bool,label:i().string.isRequired,variation:i().string,icon:i().string,onClick:i().func.isRequired,className:i().string,style:i().object,textStyles:i().object,isSuffix:i().bool,size:i().string},u.defaultProps={label:"TEST",variation:"primary",onClick:()=>{},size:"large"};const p=u},M8Ts:(e,t,l)=>{l.d(t,{A:()=>u});var n=l("C6rw"),o=l.n(n),a=l("rTr4"),i=l("vA+l"),r=l("17x9"),s=l.n(r),c=l("sqMA");const d=e=>{let{label:t,text:l,variant:n,style:r,textStyle:s,additionalElements:d,inline:u,className:p,headerWrapperClassName:m,headerClassName:v}=e;const g=c.J.lightTheme.alert.warning,h=c.J.lightTheme.alert.error,y=c.J.lightTheme.alert.success,E=c.J.lightTheme.alert.info,{icon:f,defaultLabel:b}=(e=>{switch(e){case"warning":return{icon:o().createElement(a.t.Warning,{fill:g}),defaultLabel:"Warning"};case"success":return{icon:o().createElement(a.t.CheckCircle,{fill:y}),defaultLabel:"Success"};case"error":return{icon:o().createElement(a.t.Error,{fill:h}),defaultLabel:"Error"};default:return{icon:o().createElement(a.t.Info,{fill:E}),defaultLabel:"Info"}}})(n),S=d&&d.length>0,w=(0,i.A)("TOTITLECASE",t)||b;return o().createElement("div",{className:"digit-infobanner-wrap ".concat(n||"default"," ").concat(p||""),style:r},o().createElement("div",{className:"digit-infobanner-header-wrap ".concat(n||"default"," ").concat(m||""),height:"24px"},f,o().createElement("h2",{className:"digit-infobanner-header ".concat(v||"")},w)),l&&o().createElement("p",{style:{...s}},(0,i.A)("TOSENTENCECASE",l)),S&&o().createElement("div",{className:u?"additional-elements-inline":"additional-elements-column"},d.map(((e,t)=>o().createElement("div",{className:"individualElement",key:t},e)))))};d.propTypes={label:s().string.isRequired,text:s().string,variant:s().string,style:s().object,textStyle:s().object,additionalElements:s().arrayOf(s().node),inline:s().bool},d.defaultProps={label:"",text:"",varinat:"",styles:{},textStyle:{},additionalElements:[],inline:!1};const u=d},NPaP:(e,t,l)=>{l.d(t,{A:()=>u});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("rTr4"),s=l("JBBT"),c=l("sqMA");const d=e=>{let{className:t,text:l,onTagClick:n,onClick:a,extraStyles:i,disabled:d=!1,isErrorTag:u,error:p,onErrorClick:m}=e;const v=i?null==i?void 0:i.tagStyles:{},g=i?null==i?void 0:i.textStyles:{},h=i?null==i?void 0:i.closeIconStyles:{},y=c.J.lightTheme.paper.primary;return o().createElement("div",{className:"digit-tag-error-container ".concat(!d&&n?"cp":""),onClick:d?null:n},o().createElement("div",{className:"digit-tag ".concat(u?"errortag":""," ").concat(t||""),style:v},o().createElement("span",{className:"digit-text",style:g},l),o().createElement("span",{onClick:d?null:a,className:"close-icon ".concat(d?"disabled":"")},o().createElement(r.t.Close,{fill:y,className:"close",style:h}))),p&&o().createElement("div",{className:"".concat(m?"cp":"nonclickable"),onClick:m},o().createElement(s.A,{message:p,truncateMessage:!0,maxLength:256,className:"digit-tag-error-message",wrapperClassName:"digit-tag-error",showIcon:!0})))};d.propTypes={className:i().string,text:i().string.isRequired,onClick:i().func.isRequired,extraStyles:i().shape({tagStyles:i().object,textStyles:i().object,closeIconStyles:i().object}),disabled:i().bool,isErrorTag:i().bool,error:i().string};const u=d},OC9p:(e,t,l)=>{l.d(t,{A:()=>v});var n=l("C6rw"),o=l.n(n),a=l("rTr4"),i=l("vA+l"),r=l("17x9"),s=l.n(r),c=l("iTkH"),d=l("sqMA"),u=l("JTzt");function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},p.apply(null,arguments)}const m=e=>{let{onChange:t,label:l,value:n,disabled:r,ref:s,checked:m,inputRef:v,pageType:g,style:h,index:y,isLabelFirst:E,customLabelMarkup:f,hideLabel:b,...S}=e;const{t:w}=(0,c.Bd)(),C=g||(0,u.W)();null==S||S.styles;const N=(0,i.A)("TOSENTENCECASE",l),A=d.J.lightTheme.text.disabled,k=d.J.lightTheme.primary[1];return o().createElement("div",{className:"digit-checkbox-container ".concat(E?"labelFirst":"checkboxFirst"," ").concat(r?"disabled":" "," ").concat(null==S?void 0:S.mainClassName)},E&&!b?o().createElement("p",{className:"label ".concat(null==S?void 0:S.labelClassName," "),style:{maxWidth:"100%",width:"auto",marginRight:"0rem"},onClick:null==S?void 0:S.onLabelClick},f?o().createElement(o().Fragment,null,o().createElement("span",null,w("COMMON_CERTIFY_ONE")),o().createElement("br",null),o().createElement("span",null,o().createElement("b",null," ",w("ES_COMMON_NOTE")),w("COMMON_CERTIFY_TWO"))):N):null,o().createElement("div",{style:{cursor:"pointer",display:"flex",position:"relative"},className:null==S?void 0:S.inputWrapperClassName},o().createElement("input",p({type:"checkbox",className:"input ".concat("employee"===C?"input-emp":""," ").concat(null==S?void 0:S.inputClassName," "),onChange:t,value:n||l},S,{ref:v,disabled:r,checked:m})),o().createElement("p",{className:"digit-custom-checkbox ".concat("employee"===C?"digit-custom-checkbox-emp":""," ").concat(null==S?void 0:S.inputIconClassname," ")},o().createElement(a.t.Check,{fill:(null==S?void 0:S.iconFill)||(r?A:k)}))),E||b?null:o().createElement("p",{className:"label ".concat(null==S?void 0:S.labelClassName," "),style:{maxWidth:"100%",width:"100%",marginRight:"0rem"},onClick:null==S?void 0:S.onLabelClick},f?o().createElement(o().Fragment,null,o().createElement("span",null,w("COMMON_CERTIFY_ONE")),o().createElement("br",null),o().createElement("span",null,o().createElement("b",null," ",w("ES_COMMON_NOTE")),w("COMMON_CERTIFY_TWO"))):N))};m.propTypes={label:s().string.isRequired,onChange:s().func,ref:s().func,userType:s().string,hideLabel:s().bool},m.defaultProps={label:"Default",isLabelFirst:!1,onChange:()=>console.log("CLICK"),value:"",checked:!1,ref:"ww",index:0};const v=m},Pijt:(e,t,l)=>{l.d(t,{A:()=>i});var n=l("C6rw"),o=l.n(n),a=l("ueKo");const i=e=>{let{handleClick:t,color:l,className:n}=e;return o().createElement("div",{className:"digit-hamburger-span ".concat(n||""),onClick:t},o().createElement(a.RG,{className:"digit-hamburger",color:l}))}},Ttil:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("div",{className:"digit-header-wrap",style:null!=e&&e.style?e.style:{}},e.start?o().createElement("div",{className:"digit-header-start"},e.start):null,e.main?o().createElement("div",{className:"digit-header-content"},e.main):null,e.end?o().createElement("div",{className:"digit-header-end"},e.end):null);r.propTypes={start:i().any,main:i().any,end:i().any},r.defaultProps={start:"",main:"",end:""};const s=r},U9Ix:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{let{className:t="",style:l={}}=e;return o().createElement("hr",{className:"digit-break-line ".concat(t),style:l})};r.propTypes={className:i().string,style:i().object};const s=r},UC3M:(e,t,l)=>{l.d(t,{a:()=>r});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{let{page:t=!1}=e;return o().createElement("div",{className:"digit-screen-loader"},o().createElement("div",{className:"digit-loadingio-spinner-rolling-frame"},o().createElement("div",{className:"digit-ldio-pjg92h09b2o"},o().createElement("div",null))))};r.propTypes={page:i().bool},r.defaultProps={page:!1}},VNYc:(e,t,l)=>{l.d(t,{A:()=>c});var n=l("C6rw"),o=l.n(n),a=l("OoTn"),i=l("17x9"),r=l.n(i);const s=e=>{let{t,roundOff:l=!0,...n}=e;const i=l?Math.round(null==n?void 0:n.value):null==n?void 0:n.value;return o().createElement("p",{className:"digit-amount ".concat(null!=n&&n.className?null==n?void 0:n.className:""),style:null==n?void 0:n.style},i?"".concat((0,a.X)(i,"number")):t("ES_COMMON_NA"))};s.propTypes={className:r().string,style:r().object,roundOff:r().bool,value:r().number};const c=s},WcZ2:(e,t,l)=>{l.d(t,{A:()=>d});var n=l("C6rw"),o=l.n(n),a=l("iTkH"),i=l("rTr4"),r=l("17x9"),s=l.n(r);const c=e=>{let{children:t,groupElements:l=!1,groupHeader:r="",headerLabel:s="",headerValue:c="",customClass:d=""}=e;const{t:u}=(0,a.Bd)(),[p,m]=(0,n.useState)(!0);return o().createElement("div",{className:l?"digit-expand-collapse-wrapper ".concat(d):"".concat(d)},r&&o().createElement("header",{style:{marginBottom:"0px",fontSize:"24px"}},u(r)),l&&o().createElement("div",{className:"digit-expand-collapse-header"},o().createElement("span",{className:"label"},s),o().createElement("span",{className:"value"},c),o().createElement("div",{onClick:()=>m((e=>!e)),className:"digit-icon-toggle "},!p&&o().createElement("span",null,o().createElement(i.t.ArrowUpward,null)),p&&o().createElement("span",null,o().createElement(i.t.ArrowDownward,null)))),o().createElement("div",{className:"".concat(l?"digit-toggling-wrapper":""," ").concat(l&&p?"digit-collapse":"")},t))};c.propTypes={children:s().node,style:s().object,customClass:s().string,groupElements:s().bool,groupHeader:s().string,headerLabel:s().string,headerValue:s().string};const d=c},WsID:(e,t,l)=>{l.d(t,{A:()=>c});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("SOjZ");const s=e=>{const[t,l]=(0,n.useState)(!1),[a,i]=(0,n.useState)([...null==e?void 0:e.crumbs]);function s(e){return e===a.length-1}(0,n.useEffect)((()=>{if(null!=e&&e.maxItems&&(null==e?void 0:e.crumbs.length)>(null==e?void 0:e.maxItems)&&!t){const t=e.crumbs.slice(0,(null==e?void 0:e.itemsBeforeCollapse)||Math.ceil(e.maxItems/2)),l=e.crumbs.slice(e.crumbs.length-((null==e?void 0:e.itemsAfterCollapse)||Math.floor(e.maxItems/2)));let n=t.concat([{show:!0,content:(null==e?void 0:e.expandText)||"..."}],l);i(n)}else i([...e.crumbs])}),[e.crumbs,e.maxItems,t,e.itemsBeforeCollapse,e.itemsAfterCollapse,null==e?void 0:e.expandText]);const c=()=>{l(!t)};return o().createElement("ol",{className:"digit-bread-crumb ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style},null==a?void 0:a.map(((t,l)=>null!=t&&t.show?null!=t&&t.isBack?o().createElement("li",{key:l,style:null==e?void 0:e.itemStyle,className:"digit-bread-crumb--item ".concat("back-crumb-item")},o().createElement("span",{onClick:()=>window.history.back()},t.content)):o().createElement(o().Fragment,null,o().createElement("li",{key:l,style:null==e?void 0:e.itemStyle,className:"digit-bread-crumb--item"},s(l)||null==t||!t.path?o().createElement("span",{className:"digit-bread-crumb-content ".concat(s(l)?"current":"default"),style:null==e?void 0:e.spanStyle,onClick:"..."===t.content||t.content===(null==e?void 0:e.expandText)?c:null},(null==t?void 0:t.icon)&&t.icon,t.content):o().createElement(r.N_,{to:{pathname:t.path,state:{count:null==t?void 0:t.count}},className:"digit-bread-crumb-content"},(null==t?void 0:t.icon)&&t.icon,t.content),!s(l)&&o().createElement("div",{className:"digit-bread-crumb-seperator"},null!=e&&e.customSeperator?null==e?void 0:e.customSeperator:"/"))):null)))};s.propTypes={crumbs:i().array,className:i().string,style:i().object,spanStyle:i().object,customSeperator:i().element,maxItems:i().number,itemsAfterCollapse:i().number,itemsBeforeCollapse:i().number,expandText:i().string},s.defaultProps={successful:!0};const c=s},X572:(e,t,l)=>{l.d(t,{A:()=>v});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("rTr4"),s=l("vA+l"),c=l("VGhJ"),d=l("hYOT"),u=l("sqMA"),p=l("snI5");const m=e=>{var t,l,a;const[i,m]=(0,n.useState)(!1),v=(0,n.useRef)(null),g=(0,n.useRef)(null),[h,y]=(0,n.useState)(window.innerWidth<=480),E=()=>{if(v.current){const e=v.current.scrollHeight>v.current.clientHeight;m(e)}},f=()=>{window.innerWidth<=480?h||y(!0):h&&y(!1),E()};(0,n.useEffect)((()=>{const e=()=>E(),t=v.current;return t&&(t.addEventListener("scroll",e),E()),()=>{t&&t.removeEventListener("scroll",e)}}),[e.children]),(0,n.useEffect)((()=>(window.addEventListener("resize",f),E(),()=>{window.removeEventListener("resize",f)})),[]),(0,n.useEffect)((()=>{g.current&&g.current.focus()}),[g]);const b=u.J.lightTheme.alert.error,S=((e,t,l)=>{const n=l||b,o="alert"===e?"48px":"32px",a="alert"===e?"48px":"32px";return(0,p.Q)(t,n,o,a,"digit-popup-customIcon ".concat(e||""))})(null==e?void 0:e.type,null==e?void 0:e.customIcon,null==e?void 0:e.iconFill),w=(null==e||null===(t=e.footerChildren)||void 0===t?void 0:t.length)>0,C=w?null==e||null===(l=e.footerChildren)||void 0===l?void 0:l.slice(0,(null==e?void 0:e.maxFooterButtonsAllowed)||5):[],N=null===(a=[...C])||void 0===a?void 0:a.sort(((e,t)=>{const l={primary:3,secondary:2,tertiary:1},n=e=>l[(e.props.variation||"").toLowerCase()];return n(e)-n(t)})),A=null!=e&&e.sortFooterButtons?h?N.reverse():N:C;return o().createElement("div",{className:"digit-popup-overlay ".concat((null==e?void 0:e.overlayClassName)||""),onClick:()=>null==e?void 0:e.onOverlayClick(),ref:g,onKeyDown:t=>{if("Escape"===t.key&&(null==e||e.onClose()),"Enter"===t.key){var l;const t=null==e||null===(l=e.footerChildren)||void 0===l?void 0:l.find((e=>{var t;return"submit"===(null===(t=e.props.type)||void 0===t?void 0:t.toLowerCase())}));t&&t.props.onClick()}},tabIndex:0},o().createElement("div",{className:"digit-popup-wrapper ".concat(null!=e&&e.className?null==e?void 0:e.className:""," ").concat(null!=e&&e.type?null==e?void 0:e.type:""),style:null==e?void 0:e.style,onClick:e=>e.stopPropagation()},"alert"===(null==e?void 0:e.type)?o().createElement("div",{className:"digit-popup-alert-content ".concat(i?"with-shadow":"")},!(null!=e&&e.customIcon)&&(null==e?void 0:e.showAlertAsSvg)&&o().createElement(r.t.Warning,{fill:null!=e&&e.iconFill?null==e?void 0:e.iconFill:b,width:"48px",height:"48px",className:"popup-alert-icon"}),!(null!=e&&e.customIcon)&&!(null!=e&&e.showAlertAsSvg)&&o().createElement(d.A,{animationData:c,width:"72px",height:"72px",loop:!1,autoplay:!0}),(null==e?void 0:e.customIcon)&&S,o().createElement("div",{className:"digit-popup-alert-heading"},(null==e?void 0:e.alertHeading)||"Alert!"),o().createElement("div",{className:"digit-popup-alert-message"},(null==e?void 0:e.alertMessage)||"AlertMessage")):o().createElement(o().Fragment,null,o().createElement("div",{className:"digit-popup-header ".concat(null!=e&&e.headerclassName?null==e?void 0:e.headerclassName:""," ").concat(i?"with-shadow":""),style:{display:"flex"}},o().createElement("div",{className:"header-close-container",style:{display:"flex"}},o().createElement("div",{className:"digit-popup-icon-header-container",style:{display:"flex"}},(null==e?void 0:e.showIcon)&&!(null!=e&&e.customIcon)&&o().createElement(r.t.ErrorOutline,{fill:null!=e&&e.iconFill?null==e?void 0:e.iconFill:b,width:"32px",height:"32px",className:"popup-error-icon"}),(null==e?void 0:e.showIcon)&&(null==e?void 0:e.customIcon)&&S,o().createElement("div",{className:"digit-popup-heading-subheading-wrap",style:{display:"flex"}},(null==e?void 0:e.heading)&&o().createElement("div",{className:"digit-popup-heading"},(0,s.A)("TOSENTENCECASE",(0,s.A)("TRUNCATESTRING",null==e?void 0:e.heading,{maxLength:(null==e?void 0:e.headerMaxLength)||256}))),(null==e?void 0:e.subheading)&&o().createElement("div",{className:"digit-popup-subheading"},(0,s.A)("TOSENTENCECASE",(0,s.A)("TRUNCATESTRING",null==e?void 0:e.subheading,{maxLength:(null==e?void 0:e.subHeaderMaxLength)||256}))))),o().createElement("span",{className:"digit-popup-close",style:{display:"flex"},onClick:()=>null==e?void 0:e.onClose()},o().createElement(r.t.Close,{fill:"#363636",width:"24px",height:"24px",className:"popup-close-svg"}))))),o().createElement("div",{ref:v,className:"digit-popup-children-wrap ".concat(null!=e&&e.showChildrenInline?"inline":""," ").concat(i?"with-shadow":""," ").concat(w?"":"without-footer")},(null==e?void 0:e.description)&&o().createElement("div",{className:"digit-popup-description"},null==e?void 0:e.description),null==e?void 0:e.children),w&&o().createElement("div",{className:"digit-popup-footer ".concat(null!=e&&e.footerclassName?null==e?void 0:e.footerclassName:""," ").concat(i?"with-shadow":"")},o().createElement("div",{className:"digit-popup-footer-buttons ".concat(null!=e&&e.equalWidthButtons?"equal-buttons":""),style:{...null==e?void 0:e.footerStyles}},A))))};m.propTypes={className:i().string,style:i().object,children:i().node,headerclassName:i().string,footerclassName:i().string,headerChildren:i().node,footerChildren:i().node,onClose:i().func,type:i().string,onOverlayClick:i().func};const v=m},Y4Vi:(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=e=>{const{value:t,customClassName:l,customStyle:n,inputRef:a}=e;return o().createElement("p",{className:"digit-paragraph ".concat(l),style:n,ref:a},t)}},YjXS:(e,t,l)=>{l.d(t,{A:()=>d});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},r.apply(null,arguments)}const s=e=>{let{isFocus:t,onChange:l,onFocus:a,value:i,...s}=e;const c=(0,n.useRef)();return(0,n.useEffect)((()=>{t&&c.current.focus()}),[t]),o().createElement("input",r({className:"digit-single-input-otp",maxLength:1,onChange:l,onFocus:a,ref:c,type:"number",value:i||""},s))};s.propTypes={isFocus:i().bool.isRequired,onChange:i().func.isRequired,onFocus:i().func.isRequired,value:i().string};const c=e=>{const[t,l]=(0,n.useState)(0),a=l=>{const{onChange:n}=e,o=i();o[t]=l[0],n(o.join(""))},i=()=>e.value?e.value.toString().split(""):[],r=e=>{8!==e.keyCode&&"Backspace"!==e.key||(e.preventDefault(),a(""),l((e=>Math.max(e-1,0))))};function c(t){const{value:n}=t.target;a(n),(e=>"string"==typeof e&&1===e.trim().length)(n)&&l((t=>Math.min(t+1,e.length-1)))}const d=[],u=i();for(let n=0;n<e.length;n++)d.push(o().createElement(s,{className:"digit-single-input-otp",style:null==e?void 0:e.style,key:n,autoFocus:t===n,onChange:c,onKeyDown:r,onFocus:e=>{l(n),e.target.select()},value:u[n]}));return o().createElement("div",{className:"digit-input-otp-wrap ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style},d)};c.propTypes={length:i().number,className:i().string,style:i().object},c.defaultProps={length:0};const d=c},YtJg:(e,t,l)=>{l.d(t,{a:()=>r});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{let{page:t=!1}=e;return o().createElement("div",{className:"digit-".concat(t?"page":"module","-loader")},o().createElement("div",{className:"digit-loadingio-spinner-rolling-frame"},o().createElement("div",{className:"digit-ldio-pjg92h09b2o"},o().createElement("div",null))))};r.propTypes={page:i().bool},r.defaultProps={page:!1}},Zc5N:(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=e=>o().createElement("label",{style:e.style,className:"digit-card-caption"},e.children)},aoQ2:(e,t,l)=>{l.d(t,{A:()=>c});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("JTzt");const s=e=>{const t=(0,n.useRef)(),l="citizen"===(0,r.W)();return o().createElement("div",{className:"digit-date-picker ".concat(l?"citizen":""," ").concat(null!=e&&e.className?null==e?void 0:e.className:""),style:(null==e?void 0:e.style)||{}},o().createElement(o().Fragment,null,o().createElement("input",{className:"digit-employee-card-input ".concat(e.disabled?"disabled":""),style:{...e.style},value:e.date?e.date:"",type:"date",ref:t,disabled:e.disabled,onChange:t=>{var l;const n=t.target.value;null==e||null===(l=e.onChange)||void 0===l||l.call(e,n)},defaultValue:e.defaultValue,min:e.min,max:e.max,required:e.isRequired||!1,onBlur:e.onBlur})))};s.propTypes={disabled:i().bool,date:i().any,min:i().any,max:i().any,defaultValue:i().any,onChange:i().func};const c=s},bNHr:(e,t,l)=>{l.d(t,{A:()=>i});var n=l("C6rw"),o=l.n(n),a=l("iTkH");const i=e=>{let{configNavItems:t,activeLink:l,setActiveLink:n,showNav:i=!1,children:r,customStyle:s={},customClassName:c="",inFormComposer:d=!0,navClassName:u="",navStyles:p={}}=e;const{t:m}=(0,a.Bd)(),v=e=>{let{item:t}=e,l=t.code;const n=()=>o().createElement("span",{className:"menu-item"},o().createElement("div",{className:"menu-label"},m(l)));return o().createElement(n,null)};return o().createElement("div",{className:u,style:{...p}},i&&o().createElement("div",{className:"horizontal-nav ".concat(c),style:d?{marginLeft:"16px",marginRight:"16px",...s}:{...s}},null==t?void 0:t.map(((e,t)=>o().createElement("div",{className:"sidebar-list ".concat(l===e.name?"active":""),key:t,onClick:()=>(e=>{n(e.name)})(e)},o().createElement(v,{item:e}))))),r)}},byjZ:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement(o().Fragment,null,o().createElement("div",{className:"digit-app-container ".concat(e.className?e.className:""),style:e.style},e.children));r.propTypes={className:i().string,style:i().object,children:i().node};const s=r},dM11:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("div",{className:"body-container ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style},e.children);r.propTypes={className:i().string,style:i().object,children:i().node};const s=r},"f/FR":(e,t,l)=>{l.d(t,{w:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("div",{className:e.isCompleted?"digit-checkpoint-done ".concat((null==e?void 0:e.customClassName)||""):"digit-checkpoint ".concat((null==e?void 0:e.customClassName)||""),key:e.keyValue},o().createElement("h2",null),o().createElement("header",null,e.label,e.info?o().createElement("p",null,e.info):null,e.customChild?e.customChild:null)),s=e=>e.children&&e.children.length>=1?o().createElement(o().Fragment,null,e.children.map(((t,l)=>e.children.length===++l?o().createElement("div",{key:l},t):o().createElement("div",{key:l,className:"digit-checkpoint-connect-wrap"},t,o().createElement("div",{className:"digit-checkpoint-connect"}))))):null;r.propTypes={isCompleted:i().bool,key:i().oneOfType([i().string,i().number]),label:i().string,info:i().string},r.defaultProps={isCompleted:!1,key:0,label:"",info:""}},fFP3:(e,t,l)=>{l.d(t,{A:()=>p});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("rTr4"),s=l("ry6L");function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},c.apply(null,arguments)}const d=e=>{let{source:t,index:l,last:n=!1,onClick:a}=e;return"pdf"===(0,s.A)(t)?o().createElement("div",{className:"digit-image-pdf-icon"},o().createElement("a",{target:"_blank",href:t,className:"digit-url",key:l},o().createElement("div",{style:{display:"flex",justifyContent:"center"}},o().createElement(r.t.Attachment,{className:"digit-icon",width:"100px",height:"100px"})))):o().createElement("img",c({key:l,src:t},n?{className:"last"}:{},{alt:"issue thumbnail",onClick:()=>a(t,l)}))},u=e=>o().createElement("div",{className:"digit-photos-wrap ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:(null==e?void 0:e.style)||{}},e.srcs.map(((t,l)=>o().createElement(d,c({key:l,source:t,index:l},e,{last:++l===e.srcs.length})))));u.propTypes={srcs:i().array,onClick:i().func},u.defaultProps={srcs:[]};const p=u},gSsx:(e,t,l)=>{l.d(t,{A:()=>y});var n=l("17x9"),o=l.n(n),a=l("C6rw"),i=l.n(a),r=l("rTr4"),s=l("+G7B"),c=l("ueKo"),d=l("8Mou"),u=l("sqMA"),p=l("snI5"),m=l("JTzt");const v=e=>{const[t,l]=(0,a.useState)(e.selectedVal?e.selectedVal:"");(0,a.useEffect)((()=>{e.keepNull?l(""):e.selectedVal?l(e.selectedVal):(l(""),e.setFilter(""))}),[e.selectedVal,e.forceSet]);const n=t=>"nesteddropdown"===(null==e?void 0:e.variant)||"treedropdown"===(null==e?void 0:e.variant)&&t?t.replace(/\./g,": "):t;return i().createElement("input",{ref:e.inputRef,className:"digit-dropdown-employee-select-wrap--elipses ".concat(e.isSearchable?"":"notSearchable"," ").concat(e.disable&&"disabled"," ").concat(e.variant?e.variant:""),type:"text",value:n(t),onChange:function(t){e.freeze||(l(t.target.value),e.isSearchable&&e.setFilter(t.target.value))},onClick:e.onClick,onFocus:function(){e.disable||e.dropdownDisplay(!0)},onBlur:t=>{var l;e.dropdownDisplay(!1),null==e||null===(l=e.onBlur)||void 0===l||l.call(e,t),e.selectedVal!==e.filterVal&&setTimeout((()=>{e.setforceSet((e=>e+1))}),1e3)},onKeyDown:t=>{var l,n,o,a,i;if("ArrowDown"==t.key)e.setOptionIndex((t=>t+1==e.addProps.length?0:t+1)),e.addProps.currentIndex+1==e.addProps.length?null==t||null===(l=t.target)||void 0===l||null===(l=l.parentElement)||void 0===l||null===(l=l.parentElement)||void 0===l||null===(l=l.children)||void 0===l||null===(l=l.namedItem("jk-dropdown-unique"))||void 0===l||null===(n=l.scrollTo)||void 0===n||n.call(l,0,0):(null==e||null===(o=e.addProps)||void 0===o?void 0:o.currentIndex)>2&&(null==t||null===(a=t.target)||void 0===a||null===(a=a.parentElement)||void 0===a||null===(a=a.parentElement)||void 0===a||null===(a=a.children)||void 0===a||null===(a=a.namedItem("jk-dropdown-unique"))||void 0===a||null===(i=a.scrollBy)||void 0===i||i.call(a,0,45)),t.preventDefault();else if("ArrowUp"==t.key){var r,s,c,d,u;e.setOptionIndex((t=>0!==t?t-1:e.addProps.length-1)),0==e.addProps.currentIndex?null==t||null===(r=t.target)||void 0===r||null===(r=r.parentElement)||void 0===r||null===(r=r.parentElement)||void 0===r||null===(r=r.children)||void 0===r||null===(r=r.namedItem("jk-dropdown-unique"))||void 0===r||null===(s=r.scrollTo)||void 0===s||s.call(r,1e5,1e5):(null==e||null===(c=e.addProps)||void 0===c?void 0:c.currentIndex)>2&&(null==t||null===(d=t.target)||void 0===d||null===(d=d.parentElement)||void 0===d||null===(d=d.parentElement)||void 0===d||null===(d=d.children)||void 0===d||null===(d=d.namedItem("jk-dropdown-unique"))||void 0===d||null===(u=d.scrollBy)||void 0===u||u.call(d,0,-45)),t.preventDefault()}else"Enter"===t.key&&(1===e.addProps.length?e.addProps.selectOption(0):e.addProps.selectOption(e.addProps.currentIndex),t.preventDefault())},readOnly:e.disable,autoFocus:e.autoFocus,placeholder:e.placeholder,autoComplete:"off",style:e.style,title:e.showToolTip?n(t):void 0})},g=e=>e,h=e=>{var t,l,n;const o=(0,m.W)(),[h,y]=(0,a.useState)(!1),[E,f]=(0,a.useState)(!1),[b,S]=(0,a.useState)(e.selected?e.selected:null),[w,C]=(0,a.useState)(""),[N,A]=(0,a.useState)(-1),[k,T]=(0,a.useState)(0),[P,x]=(0,a.useState)(-1),D=(0,a.useRef)(null),L=(0,a.useRef)(null),O=(0,a.useRef)(null),R=!!e.customSelector,M=e.t||g;function F(){if(!e.disabled){var t,l=h;l||document.addEventListener("mousedown",B,!1),y(!l),null==e||null===(t=e.onBlur)||void 0===t||t.call(e)}}function I(e){if(!L.current||!L.current.contains(e.target)){if(null!=O&&O.current&&null!=O&&O.current.contains(e.target))return;document.removeEventListener("mousedown",I,!1),f(!1)}}function B(e){D.current&&D.current.contains(e.target)||(document.removeEventListener("mousedown",B,!1),y(!1))}function U(t){t!==b||e.allowMultiselect?(e.select(t),S(t),y(!1)):(S(t),T(k+1),y(!1))}(0,a.useEffect)((()=>{S(e.selected)}),[e.selected]);let V=e.option&&(null===(t=e.option)||void 0===t?void 0:t.filter((t=>{var l;return(null===(l=M(t[e.optionKey]))||void 0===l||null===(l=l.toUpperCase())||void 0===l?void 0:l.indexOf(null==w?void 0:w.toUpperCase()))>-1})))||[];var j;e.isBPAREG&&b&&((null===(j=e.option)||void 0===j||null===(j=j.filter((e=>(null==e?void 0:e.code)===(null==b?void 0:b.code))))||void 0===j?void 0:j.length)>0||S(null));const W=u.J.lightTheme.generic.inputBorder,_=u.J.lightTheme.generic.divider,H=u.J.lightTheme.paper.primary,z=(e=>{let t=[];const l=e=>{e.forEach((e=>{t.push(e),e.options&&l(e.options)}))};return e.filter((e=>e.options&&e.options.length>0)).forEach((e=>{e.options?(t.push(e),l(e.options)):t.push(e)})),t})(V),q="nesteddropdown"===e.variant||"treedropdown"===e.variant?z:V,G=V.filter((e=>e.options&&e.options.length>0));return i().createElement("div",{className:"".concat("employee"===o?"digit-dropdown-employee-select-wrap":"digit-dropdown-select-wrap"," ").concat(null!=e&&e.className?null==e?void 0:e.className:""),style:(null==e?void 0:e.style)||{}},(R||(null==e?void 0:e.profilePic))&&i().createElement("div",{className:"header-dropdown-label ".concat((null==e?void 0:e.theme)||""),onClick:function(){if(!e.disabled){var t,l=E;l||document.addEventListener("mousedown",I,!1),f(!l),null==e||null===(t=e.onBlur)||void 0===t||t.call(e)}},ref:O},(null==e?void 0:e.profilePic)&&i().createElement("span",{className:"header-dropdown-profile ".concat((null==e?void 0:e.theme)||""," ").concat("string"==typeof(null==e?void 0:e.profilePic)?"text":"")},"string"==typeof(null==e?void 0:e.profilePic)?null==e||null===(l=e.profilePic)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.toUpperCase():null==e?void 0:e.profilePic),!(null!=e&&e.profilePic)&&(null==e?void 0:e.customSelector),(null==e?void 0:e.showArrow)&&i().createElement("span",{className:"header-dropdown-arrow"},i().createElement(r.t.ArrowDropDown,{fill:"dark"===(null==e?void 0:e.theme)?H:W}))),!R&&!(null!=e&&e.profilePic)&&i().createElement("div",{className:"".concat(h?"digit-dropdown-select-active":"digit-dropdown-select"," ").concat(null!=e&&e.variant?null==e?void 0:e.variant:""," ").concat(null!=e&&e.isSearchable?"":"notSearchable"," ").concat(e.disabled&&"disabled"),style:(e.errorStyle,{...e.noBorder?{border:"none"}:{}}),onClick:"treedropdown"!==e.variant&&e.isSearchable?null:F},i().createElement(v,{variant:null==e?void 0:e.variant,isSearchable:null==e?void 0:e.isSearchable,autoComplete:e.autoComplete,setFilter:function(e){C(e)},forceSet:k,setforceSet:T,setOptionIndex:x,keepNull:e.keepNull,selectedVal:b?e.t?e.isMultiSelectEmp?"".concat(b," ").concat(M("BPA_SELECTED_TEXT")):e.t("nesteddropdown"===e.variant||"treedropdown"===e.variant?b.code:e.optionKey?b[e.optionKey]:b):e.optionKey?b[e.optionKey]:b:null,filterVal:w,addProps:{length:"nesteddropdown"===e.variant||"treedropdown"===e.variant?z.length:V.length,currentIndex:P,selectOption:function(t){U(("nesteddropdown"===e.variant||"treedropdown"===e.variant?z:V)[t])}},dropdownDisplay:function(e){const t=setTimeout((()=>y(e)),500);return()=>{clearTimeout(t)}},handleClick:B,disable:e.disabled,freeze:!!e.freeze,autoFocus:e.autoFocus,placeholder:e.placeholder,onBlur:null==e?void 0:e.onBlur,inputRef:e.ref,showToolTip:e.showToolTip}),e.showSearchIcon?null:i().createElement(r.t.ArrowDropDown,{fill:null!=e&&e.disabled?_:W,onClick:F,className:"cp",disable:e.disabled}),e.showSearchIcon?i().createElement(r.t.Search,{onClick:F,className:"cp",disable:e.disabled}):null),(R||(null==e?void 0:e.profilePic))&&E&&i().createElement("div",{className:"menu-div",ref:L},i().createElement(d.A,{options:null==e?void 0:e.option,setDropdownStatus:f,dropdownStatus:E,isSearchable:null==e?void 0:e.isSearchable,optionsKey:null==e?void 0:e.optionKey,onSelect:U,showBottom:null==e?void 0:e.showBottom,style:null==e?void 0:e.menuStyles})),R||null!=e&&e.profilePIc||!h?null:e.optionKey?i().createElement("div",{id:"jk-dropdown-unique",className:"digit-dropdown-options-card",style:{...e.optionCardStyles},ref:D},"treedropdown"===e.variant?i().createElement(s.A,{options:G,onSelect:U,selectedOption:b,variant:e.variant,optionsKey:null==e?void 0:e.optionKey}):q.map(((t,l)=>t.options?i().createElement("div",{key:l,className:"digit-nested-category"},i().createElement("div",{className:"digit-category-name"},"treedropdown"===e.variant&&t.options.length>0&&i().createElement(r.t.ArrowDropDown,{width:"1.5rem",height:"1.5rem",className:"cp",fill:W}),M(t[null==e?void 0:e.optionKey]))):((t,l)=>i().createElement("div",{className:"cp digit-dropdown-item ".concat(e.variant?null==e?void 0:e.variant:""," ").concat(l===P?"keyChange":""),key:l,onClick:()=>U(t),onMouseDown:e=>{0===e.button&&A(l)},onMouseUp:()=>{A(-1)}},"profiledropdown"===(null==e?void 0:e.variant)||"profilenestedtext"===(null==e?void 0:e.variant)?i().createElement("div",{className:"profile-icon-container",style:{width:"".concat("profiledropdown"===(null==e?void 0:e.variant)?"2rem":"profilenestedtext"===(null==e?void 0:e.variant)?"2.935rem":""),height:"".concat("profiledropdown"===(null==e?void 0:e.variant)?"2rem":"profilenestedtext"===(null==e?void 0:e.variant)?"2.935rem":""),...t.profileIcon&&{backgroundImage:"url(".concat(t.profileIcon,")")}}},!(null!=t&&t.profileIcon)&&i().createElement(c.n_,{width:"profiledropdown"===(null==e?void 0:e.variant)?"2rem":"profilenestedtext"===(null==e?void 0:e.variant)?"2.935rem":"",height:"profiledropdown"===(null==e?void 0:e.variant)?"2rem":"profilenestedtext"===(null==e?void 0:e.variant)?"2.935rem":""})):null,i().createElement("div",{className:"option-des-container"},i().createElement("div",{className:"icon-option"},(null==e?void 0:e.showIcon)&&(null==t?void 0:t.icon)&&((e,t)=>{const l=t?H:W;return(0,p.Q)(e,l,"1.25rem","1.25rem","")})(null==t?void 0:t.icon,l===N),e.isPropertyAssess?i().createElement("div",null,e.t?e.t(t[null==e?void 0:e.optionKey]):t[null==e?void 0:e.optionKey]):i().createElement("span",{className:"main-option ".concat(e.variant?null==e?void 0:e.variant:""),title:e.showToolTip?e.t?e.t(t[null==e?void 0:e.optionKey]):t[null==e?void 0:e.optionKey]:void 0},e.t?e.t(t[null==e?void 0:e.optionKey]):t[null==e?void 0:e.optionKey])),("nestedtextdropdown"===e.variant||"profilenestedtext"===e.variant)&&t.description&&i().createElement("div",{className:"option-description"},t.description))))(t,l))),("nesteddropdown"===e.variant?z:V)&&0===("nesteddropdown"===e.variant?z:V).length&&i().createElement("div",{className:"cp digit-dropdown-item unsuccessfulresults ".concat(e.variant?null==e?void 0:e.variant:""),key:"-1",onClick:()=>{}},i().createElement("span",null," ","NO RESULTS FOUND"))):i().createElement("div",{className:"digit-dropdown-options-card",style:{...e.optionCardStyles,overflow:"scroll",maxHeight:"350px"},id:"jk-dropdown-unique",ref:D},null===(n=e.option)||void 0===n?void 0:n.filter((e=>(null==e?void 0:e.toUpperCase().indexOf(null==w?void 0:w.toUpperCase()))>-1)).map(((e,t)=>i().createElement("p",{key:t,style:t===P?{opacity:1,backgroundColor:"rgba(238, 238, 238, var(--bg-opacity))"}:{},onClick:()=>U(e)},e)))))};h.propTypes={customSelector:o().any,showArrow:o().bool,selected:o().any,style:o().object,option:o().array,optionKey:o().any,select:o().any,t:o().func},h.defaultProps={customSelector:null,showArrow:!0,isSearchable:!0};const y=h},hCkt:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{let{className:t="",style:l={},variant:n}=e;return o().createElement("hr",{className:"digit-divider ".concat(n||""," ").concat(t||""),style:l})};r.propTypes={className:i().string,style:i().object};const s=r},"hQ+M":(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=(e,t)=>{let l=(null==e?void 0:e.defaultValues)||1;return o().createElement(o().Fragment,null,o().createElement("div",{className:"PlusMinus"},o().createElement("button",{type:"button",onClick:()=>{l>1?(l-=1,e.onSelect(l)):(l=1,e.onSelect(l))},className:"PlusMinusbutton"},"-"),o().createElement("input",{readOnly:!0,value:l,style:{textAlign:"center",border:"1px solid #505A5F"}}),o().createElement("button",{type:"button",onClick:()=>{l>=1?(l+=1,e.onSelect(l)):(l=1,e.onSelect(l))},className:"PlusMinusbutton"},"+")))}},hUmK:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>o().createElement("h2",{className:"digit-card-label ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:e.style},e.children);r.propTypes={className:i().string,style:i().object,children:i().node.isRequired};const s=r},hYOT:(e,t,l)=>{l.d(t,{A:()=>i});var n=l("C6rw"),o=l.n(n),a=l("hxQi");const i=e=>{const t={loop:null==e?void 0:e.loop,autoplay:null==e?void 0:e.autoplay,animationData:null==e?void 0:e.animationData,renderer:"svg"};return o().createElement("div",null,o().createElement(a.A,{options:t,height:null==e?void 0:e.height,width:null==e?void 0:e.width}))}},ijgH:(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=function(e){var t,l,n;const a=(null===(t=window)||void 0===t||null===(t=t.Digit)||void 0===t||null===(t=t.UserService)||void 0===t||null===(t=t.getUser())||void 0===t?void 0:t.info)||null,i="EMPLOYEE"===((null==a?void 0:a.type)||null)?"employee":"citizen";return o().createElement("div",{className:"digit-home-footer ".concat(i," ").concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null!=e&&e.style?null==e?void 0:e.style:{}},o().createElement("img",{className:"digit-home-footer-img",alt:"Powered by DIGIT",src:null===(l=window)||void 0===l||null===(l=l.globalConfigs)||void 0===l||null===(n=l.getConfig)||void 0===n?void 0:n.call(l,"DIGIT_FOOTER"),onClick:()=>{var e,t;window.open(null===(e=window)||void 0===e||null===(e=e.globalConfigs)||void 0===e||null===(t=e.getConfig)||void 0===t?void 0:t.call(e,"DIGIT_HOME_URL"),"_blank").focus()}}))}},jiIG:(e,t,l)=>{l.d(t,{A:()=>u});var n=l("C6rw"),o=l.n(n),a=l("rTr4"),i=l("iTkH"),r=l("17x9"),s=l.n(r),c=l("sqMA");const d=e=>{let{style:t,className:l="",variant:r,onClick:s,hideIcon:d,hideLabel:u,disabled:p,iconFill:m}=e;const{t:v}=(0,i.Bd)(),[g,h]=(0,n.useState)(window.innerWidth<=480),y=()=>{window.innerWidth<=480?g||h(!0):g&&h(!1)};(0,n.useEffect)((()=>(window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)})),[]);const E=c.J.lightTheme.text.disabled,f=c.J.lightTheme.primary[2],b="primary"===r?o().createElement(a.t.DoubleArrow,{width:g?"1.25rem":"1.5rem",height:g?"1.25rem":"1.5rem",fill:m||(p?E:f),style:{transform:"rotate(180deg)"}}):"secondary"===r?o().createElement(a.t.ArrowCircleDown,{width:g?"1.25rem":"1.5rem",height:g?"1.25rem":"1.5rem",fill:m||(p?E:f),style:{transform:"rotate(90deg)"}}):o().createElement(a.t.ArrowLeft,{width:g?"1.25rem":"1.5rem",height:g?"1.25rem":"1.5rem",fill:m||(p?E:f)});return o().createElement("div",{className:"digit-back-link ".concat(l," ").concat(p?"disabled":""),style:t||{},onClick:s},!d&&o().createElement("div",{className:"digit-back-link-icon"},b),!u&&o().createElement("div",{className:"digit-back-link-label"},v("CS_COMMON_BACK")))};d.propTypes={className:s().string,style:s().object,variant:s().string,onClick:s().func};const u=d},lsq2:(e,t,l)=>{l.d(t,{A:()=>d});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("x8Sf"),s=l("C/17");const c=e=>{let{value:t,prefix:l="₹ ",intlConfig:n=(0,r.gS)(l),onChange:a,inputRef:i,variant:c,...d}=e;return o().createElement(s.M,{ref:i,defaultValue:t,intlConfig:n,onValueChange:a,otherProps:d,prefix:l,variant:c})};c.propTypes={value:i().oneOfType([i().number,i().string]),prefix:i().string,intlConfig:i().object,onChange:i().func,inputRef:i().oneOfType([i().func,i().shape({current:i().instanceOf(Element)})]),otherProps:i().object};const d=c},"mCr/":(e,t,l)=>{l.d(t,{A:()=>m});var n=l("C6rw"),o=l.n(n),a=l("rTr4"),i=l("17x9"),r=l.n(i),s=l("iTkH"),c=l("JTzt");const d=e=>{var t,l,n,i,r,d,u,p,m,v,g,h,y,E,f,b,S,w,C,N,A,k,T,P,x;const{t:D}=(0,s.Bd)(),L=(0,c.W)();return o().createElement("div",{className:"".concat("citizen"===L?"digit-banner-success-wrap":"digit-banner-emp-success-wrap"," ").concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null!=e&&null!==(t=e.props)&&void 0!==t&&t.style?null==e||null===(l=e.props)||void 0===l?void 0:l.style:{}},o().createElement("header",{style:null!=e&&null!==(n=e.props)&&void 0!==n&&n.headerStyles?null==e||null===(i=e.props)||void 0===i?void 0:i.headerStyles:{}},e.props.message),o().createElement("div",null,"tick"===e.props.whichSvg?o().createElement("div",null,o().createElement(a.t.TickMark,{fill:"green"}),o().createElement("br",null),o().createElement("br",null)):null==e||null===(r=e.props)||void 0===r?void 0:r.svg,((null==e||null===(d=e.props)||void 0===d?void 0:d.complaintNumber)||e.props.info)&&o().createElement("h2",{style:null!=e&&null!==(u=e.props)&&void 0!==u&&u.infoStyles?null==e||null===(p=e.props)||void 0===p?void 0:p.infoStyles:{}},null!=e&&null!==(m=e.props)&&void 0!==m&&m.complaintNumber?D("CS_PGR_COMPLAINT_NUMBER"):e.props.info),((null==e||null===(v=e.props)||void 0===v?void 0:v.complaintNumber)||(null==e||null===(g=e.props)||void 0===g?void 0:g.applicationNumber))&&o().createElement("p",{style:null!=e&&null!==(h=e.props)&&void 0!==h&&h.applicationNumberStyles?null==e||null===(y=e.props)||void 0===y?void 0:y.applicationNumberStyles:{}},null!=e&&null!==(E=e.props)&&void 0!==E&&E.complaintNumber?null==e||null===(f=e.props)||void 0===f?void 0:f.complaintNumber:null==e||null===(b=e.props)||void 0===b?void 0:b.applicationNumber),null!=e&&null!==(S=e.props)&&void 0!==S&&S.applicationNumberOne?o().createElement("h2",{style:null!=e&&null!==(w=e.props)&&void 0!==w&&w.infoOneStyles?null==e||null===(C=e.props)||void 0===C?void 0:C.infoOneStyles:{}},e.props.infoOne):null,null!=e&&null!==(N=e.props)&&void 0!==N&&N.applicationNumberOne?o().createElement("p",{style:null!=e&&null!==(A=e.props)&&void 0!==A&&A.applicationNumberStyles?null==e||null===(k=e.props)||void 0===k?void 0:k.applicationNumberStyles:{}},null==e||null===(T=e.props)||void 0===T?void 0:T.applicationNumberOne):null,(null==e||null===(P=e.props)||void 0===P?void 0:P.multipleResponseIDs)&&o().createElement("div",{className:"banner-multiple-ids-wrapper"},null==e||null===(x=e.props)||void 0===x?void 0:x.multipleResponseIDs.map((e=>o().createElement("p",null,e))))))},u=e=>{var t,l,n,i,r,d,u,p,m,v,g,h,y,E;const{t:f}=(0,s.Bd)(),b=(0,c.W)();return o().createElement("div",{className:"".concat("citizen"===b?"digit-banner-error-wrap":"digit-banner-emp-error-wrap"," ").concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null!=e&&null!==(t=e.props)&&void 0!==t&&t.style?null==e||null===(l=e.props)||void 0===l?void 0:l.style:{}},o().createElement("header",{style:null!=e&&null!==(n=e.props)&&void 0!==n&&n.headerStyles?null==e||null===(i=e.props)||void 0===i?void 0:i.headerStyles:{}},e.props.message),o().createElement(a.t.Error,null),o().createElement("h2",{style:null!=e&&null!==(r=e.props)&&void 0!==r&&r.infoStyles?null==e||null===(d=e.props)||void 0===d?void 0:d.infoStyles:{}},null!=e&&null!==(u=e.props)&&void 0!==u&&u.complaintNumber?f("CS_PGR_COMPLAINT_NUMBER"):e.props.info),o().createElement("p",{style:null!=e&&null!==(p=e.props)&&void 0!==p&&p.applicationNumberStyles?null==e||null===(m=e.props)||void 0===m?void 0:m.applicationNumberStyles:{}},null!=e&&null!==(v=e.props)&&void 0!==v&&v.complaintNumber?null==e||null===(g=e.props)||void 0===g?void 0:g.complaintNumber:null==e||null===(h=e.props)||void 0===h?void 0:h.applicationNumber),(null==e||null===(y=e.props)||void 0===y?void 0:y.multipleResponseIDs)&&o().createElement("div",{className:"banner-multiple-ids-wrapper"},null==e||null===(E=e.props)||void 0===E?void 0:E.multipleResponseIDs.map((e=>o().createElement("p",null,e)))))},p=e=>e.successful?o().createElement(d,{props:e}):o().createElement(u,{props:e});p.propTypes={successful:r().bool.isRequired,message:r().any.isRequired,complaintNumber:r().any},p.defaultProps={successful:!0};const m=p},n7fr:(e,t,l)=>{l.d(t,{A:()=>c});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("rTr4");const s=e=>{var t=[];const l=(0,n.useRef)(null);for(var a=1;a<=e.maxRating;a++)if(a-e.currentRating<=0){const n=a;t.push(o().createElement(r.t.StarFilled,{key:a,id:"".concat(e.id,"gradient").concat(a),className:"digit-rating-star",styles:e.starStyles,onClick:t=>e.onFeedback(t,l,n)}))}else if(a-e.currentRating>0&&a-e.currentRating<1){const n=a;t.push(o().createElement(r.t.StarEmpty,{key:a,id:"".concat(e.id,"gradient").concat(a),className:"digit-rating-star",styles:e.starStyles,onClick:t=>e.onFeedback(t,l,n),percentage:Math.round(100*(e.currentRating-parseInt(e.currentRating)))}))}else{const n=a;t.push(o().createElement(r.t.StarEmpty,{key:a,className:"digit-rating-star ".concat(null!=e&&e.className?null==e?void 0:e.className:""),styles:null==e?void 0:e.starStyles,onClick:t=>e.onFeedback(t,l,n)}))}return o().createElement("div",{className:"".concat(null!=e&&e.withText?"digit-rating-with-text":"digit-rating-star-wrap"),style:{...null==e?void 0:e.styles}},e.text?e.text:""," ",t)};s.propTypes={maxRating:i().number,currentRating:i().number,onFeedback:i().func,id:i().string,withText:i().bool,styles:i().object,className:i().string,text:i().string,starStyles:i().object},s.defaultProps={maxRating:5,currentRating:0,onFeedback:()=>{},id:"0",withText:!1,styles:{},className:"",text:"",starStyles:{}};const c=s},naAG:(e,t,l)=>{l.d(t,{A:()=>c});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},r.apply(null,arguments)}const s=e=>{var t;let{type:l,onClick:n,style:a={},children:i,className:s,ReactRef:c,variant:d,...u}=e;const p=(null===(t=window)||void 0===t||null===(t=t.Digit)||void 0===t||null===(t=t.UserService)||void 0===t||null===(t=t.getUser())||void 0===t?void 0:t.info)||null,m=(null==p?void 0:p.type)||null;return o().createElement("div",r({className:"".concat(null!=u&&u.noCardStyle?"":"EMPLOYEE"===m?"digit-employee-card":"digit-card-component"," ").concat(l||""," ").concat(d||""," ").concat(s||""),onClick:n,style:a},u,{ref:c}),i)};s.propTypes={type:i().string,variant:i().string,onClick:i().func,style:i().object,className:i().string,children:i().node};const c=s},otB8:(e,t,l)=>{l.d(t,{A:()=>s});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a);const r=e=>{var t;const[l,a]=(0,n.useState)(window.innerWidth<=480),i=()=>{window.innerWidth<=480?l||a(!0):l&&a(!1)};(0,n.useEffect)((()=>(window.addEventListener("resize",(()=>{i()})),()=>{window.removeEventListener("resize",(()=>{i()}))})));const r=(null==e||null===(t=e.actionFields)||void 0===t?void 0:t.length)>0,s=r?null==e?void 0:e.actionFields.slice(0,(null==e?void 0:e.maxActionFieldsAllowed)||5):[],c=[...s].sort(((e,t)=>{const l={primary:3,secondary:2,tertiary:1},n=e=>l[(e.props.variation||"").toLowerCase()];return n(e)-n(t)})),d=null!=e&&e.sortActionFields?l?c.reverse():c:s;return o().createElement("div",{className:"digit-action-bar-wrap ".concat(null!=e&&e.className?null==e?void 0:e.className:""),style:null==e?void 0:e.style},r&&o().createElement("div",{className:"digit-action-bar-fields ".concat(null!=e&&e.setactionFieldsToRight?"toRight":""," ").concat(null!=e&&e.setactionFieldsToLeft?"toLeft":"")},d.map(((e,t)=>o().createElement("div",{className:"action-bar-individual-action-field",key:t},e)))),null==e?void 0:e.children)};r.propTypes={className:i().string,style:i().object};const s=r},"p2k/":(e,t,l)=>{l.d(t,{A:()=>d});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("Lfsa");function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},s.apply(null,arguments)}const c=e=>{let{buttonsArray:t,sortButtons:l}=e;const[a,i]=o().useState(window.innerWidth<=480),c=()=>{window.innerWidth<=480?a||i(!0):a&&i(!1)};(0,n.useEffect)((()=>(window.addEventListener("resize",(()=>{c()})),()=>{window.addEventListener("resize",(()=>{c()}))})));const d=Math.max(...t.map((e=>14.9*e.props.label.length))),u=t.map((e=>{const t={...e.props,style:{...e.props.style||{},width:"".concat(d,"px")}};return o().createElement(r.A,s({key:t.key},t))})),p=a?t:u,m=[...p].sort(((e,t)=>{const l={primary:3,secondary:2,tertiary:1},n=e=>l[(e.props.variation||"").toLowerCase()];return n(e)-n(t)})),v=l?a?m.reverse():m:p;return o().createElement("div",{className:"digit-buttons-group"},v.map(((e,t)=>o().createElement("div",{key:t},e))))};c.propTypes={buttonsArray:i().arrayOf(i().element).isRequired,sortButtons:i().bool};const d=c},rTr4:(e,t,l)=>{l.d(t,{t:()=>i});var n=l("A8bQ"),o=l("17x9"),a=l.n(o);const i={NoResultsFoundIcon:n.NoResultsFoundIcon,Success:n.Success,TickMark:n.TickMark,Rotation3D:n.Rotation3D,SixFtApart:n.SixFtApart,Rotate360:n.Rotate360,Accessibility:n.Accessibility,AccessibilityNew:n.AccessibilityNew,Accessible:n.Accessible,AccessibleForward:n.AccessibleForward,AccountBalance:n.AccountBalance,AccountBalanceWallet:n.AccountBalanceWallet,AccountBox:n.AccountBox,AccountCircle:n.AccountCircle,AddAlert:n.AddAlert,AddBusiness:n.AddBusiness,AddChart:n.AddChart,AddExpense:n.AddExpense,AddExpenseTwo:n.AddExpenseTwo,AddIcCall:n.AddIcCall,AddLocation:n.AddLocation,AddLocationAlt:n.AddLocationAlt,AddModerator:n.AddModerator,AddRoad:n.AddRoad,AddShoppingCart:n.AddShoppingCart,AddTask:n.AddTask,AddToDrive:n.AddToDrive,AdminPanelSettings:n.AdminPanelSettings,Agriculture:n.Agriculture,Alarm:n.Alarm,AlarmAdd:n.AlarmAdd,AlarmOff:n.AlarmOff,AlarmOn:n.AlarmOn,AllInbox:n.AllInbox,AllOut:n.AllOut,AlternateEmail:n.AlternateEmail,AltRoute:n.AltRoute,Analytics:n.Analytics,Anchor:n.Anchor,Android:n.Android,Announcement:n.Announcement,Api:n.Api,AppBlocking:n.AppBlocking,AppRegistration:n.AppRegistration,Approval:n.Approval,Apps:n.Apps,AppSettingsAlt:n.AppSettingsAlt,Architecture:n.Architecture,ArrowBack:n.ArrowBack,ArrowBackIos:n.ArrowBackIos,ArrowCircleDown:n.ArrowCircleDown,ArrowCircleUp:n.ArrowCircleUp,ArrowDownward:n.ArrowDownward,ArrowDropDown:n.ArrowDropDown,ArrowDropDownCircle:n.ArrowDropDownCircle,ArrowDropUp:n.ArrowDropUp,ArrowForward:n.ArrowForward,ArrowForwardIos:n.ArrowForwardIos,ArrowForwardIosAlt:n.ArrowForwardIosAlt,ArrowLeft:n.ArrowLeft,ArrowRight:n.ArrowRight,ArrowRightAlt:n.ArrowRightAlt,ArrowUpward:n.ArrowUpward,Article:n.Article,AspectRatio:n.AspectRatio,Assessment:n.Assessment,Assignment:n.Assignment,AssignmentInd:n.AssignmentInd,AssignmentLate:n.AssignmentLate,AssignmentReturn:n.AssignmentReturn,AssignmentReturned:n.AssignmentReturned,AssignmentTurnedIn:n.AssignmentTurnedIn,AssistantDirection:n.AssistantDirection,AssistantNavigation:n.AssistantNavigation,Atm:n.Atm,AttachEmail:n.AttachEmail,Attachment:n.Attachment,Attractions:n.Attractions,AutoDelete:n.AutoDelete,AutoRenew:n.AutoRenew,Backup:n.Backup,BackupTable:n.BackupTable,Badge:n.Badge,BakeryDining:n.BakeryDining,BatchPrediction:n.BatchPrediction,BeenHere:n.BeenHere,BikeScooter:n.BikeScooter,Book:n.Book,Bookmark:n.Bookmark,BookmarkBorder:n.BookmarkBorder,Bookmarks:n.Bookmarks,BookOnline:n.BookOnline,BreakfastDining:n.BreakfastDining,BrunchDining:n.BrunchDining,BugReport:n.BugReport,Build:n.Build,BuildCircle:n.BuildCircle,BusAlert:n.BusAlert,Business:n.Business,Cached:n.Cached,Cake:n.Cake,CalendarToday:n.CalendarToday,CalendarViewDay:n.CalendarViewDay,Call:n.Call,CallEnd:n.CallEnd,CallMade:n.CallMade,CallMerge:n.CallMerge,CallMissed:n.CallMissed,CallMissedOutgoing:n.CallMissedOutgoing,CallReceived:n.CallReceived,CallSplit:n.CallSplit,CameraEnhance:n.CameraEnhance,Campaign:n.Campaign,Cancel:n.Cancel,CancelPresentation:n.CancelPresentation,CancelScheduleSend:n.CancelScheduleSend,CardGiftcard:n.CardGiftcard,CardMembership:n.CardMembership,CardTravel:n.CardTravel,CarRental:n.CarRental,CarRepair:n.CarRepair,Category:n.Category,Celebration:n.Celebration,CellWifi:n.CellWifi,ChangeHistory:n.ChangeHistory,Chat:n.Chat,ChatBubble:n.ChatBubble,ChatBubbleOutline:n.ChatBubbleOutline,Check:n.Check,CheckCircle:n.CheckCircle,CheckCircleOutline:n.CheckCircleOutline,ChevronLeft:n.ChevronLeft,ChevronRight:n.ChevronRight,ChromeReaderMode:n.ChromeReaderMode,CircleNotifications:n.CircleNotifications,Class:n.Class,CleanHands:n.CleanHands,CleaningServices:n.CleaningServices,ClearAll:n.ClearAll,Clock:n.Clock,Close:n.Close,CloseFullscreen:n.CloseFullscreen,Cloud:n.Cloud,CloudCircle:n.CloudCircle,CloudDone:n.CloudDone,CloudDownload:n.CloudDownload,CloudOff:n.CloudOff,CloudQueue:n.CloudQueue,CloudUpload:n.CloudUpload,Code:n.Code,Comment:n.Comment,CommentBank:n.CommentBank,Commute:n.Commute,CompareArrows:n.CompareArrows,CompassCalibration:n.CompassCalibration,Compress:n.Compress,ConnectWithoutContact:n.ConnectWithoutContact,Construction:n.Construction,Contactless:n.Contactless,ContactMail:n.ContactMail,ContactPage:n.ContactPage,ContactPhone:n.ContactPhone,Contacts:n.Contacts,ContactSupport:n.ContactSupport,Copyright:n.Copyright,Coronavirus:n.Coronavirus,CreateNewFolder:n.CreateNewFolder,CreditCard:n.CreditCard,Cut:n.Cut,Dangerous:n.Dangerous,Dashboard:n.Dashboard,DashboardCustomize:n.DashboardCustomize,DateRange:n.DateRange,Deck:n.Deck,Delete:n.Delete,DeleteForever:n.DeleteForever,DeleteOutline:n.DeleteOutline,DeliveryDining:n.DeliveryDining,DepartureBoard:n.DepartureBoard,Description:n.Description,DesignServices:n.DesignServices,DesktopAccessDisabled:n.DesktopAccessDisabled,DialerSip:n.DialerSip,Dialpad:n.Dialpad,DinnerDining:n.DinnerDining,Directions:n.Directions,DirectionsBike:n.DirectionsBike,DirectionsBoat:n.DirectionsBoat,DirectionsBus:n.DirectionsBus,DirectionsCar:n.DirectionsCar,DirectionsRailway:n.DirectionsRailway,DirectionsRun:n.DirectionsRun,DirectionsSubway:n.DirectionsSubway,DirectionsTransit:n.DirectionsTransit,DirectionsWalk:n.DirectionsWalk,DisabledByDefault:n.DisabledByDefault,Dns:n.Dns,Domain:n.Domain,DomainDisabled:n.DomainDisabled,DomainVerification:n.DomainVerification,Done:n.Done,DoneAll:n.DoneAll,DoneOutline:n.DoneOutline,DonutLarge:n.DonutLarge,DonutSmall:n.DonutSmall,DoubleArrow:n.DoubleArrow,DragIndicator:n.DragIndicator,DriveFileMove:n.DriveFileMove,DriveFileMoveOutline:n.DriveFileMoveOutline,DriveFileRenameOutline:n.DriveFileRenameOutline,DriveFolderUpload:n.DriveFolderUpload,DryCleaning:n.DryCleaning,DSOTruck:n.DSOTruck,Duo:n.Duo,DynamicForm:n.DynamicForm,East:n.East,Eco:n.Eco,Edit:n.Edit,EditAttributes:n.EditAttributes,EditLocation:n.EditLocation,EditOff:n.EditOff,EditRoad:n.EditRoad,Eject:n.Eject,Elderly:n.Elderly,ElectricalServices:n.ElectricalServices,ElectricBike:n.ElectricBike,ElectricCar:n.ElectricCar,ElectricMoped:n.ElectricMoped,ElectricRickshaw:n.ElectricRickshaw,ElectricScooter:n.ElectricScooter,Email:n.Email,EmojiEmotions:n.EmojiEmotions,EmojiEvents:n.EmojiEvents,EmojiFlags:n.EmojiFlags,EmojiFoodBeverage:n.EmojiFoodBeverage,EmojiNature:n.EmojiNature,EmojiObjects:n.EmojiObjects,EmojiPeople:n.EmojiPeople,EmojiSymbols:n.EmojiSymbols,EmojiTransportation:n.EmojiTransportation,Engineering:n.Engineering,Error:n.Error,ErrorOutline:n.ErrorOutline,EuroSymbol:n.EuroSymbol,Event:n.Event,EventSeat:n.EventSeat,EvStation:n.EvStation,ExitToApp:n.ExitToApp,Expand:n.Expand,ExpandLess:n.ExpandLess,ExpandMore:n.ExpandMore,Explore:n.Explore,ExploreOff:n.ExploreOff,Extension:n.Extension,Face:n.Face,Facebook:n.Facebook,FactCheck:n.FactCheck,Fastfood:n.Fastfood,Favorite:n.Favorite,FavoriteBorder:n.FavoriteBorder,Feedback:n.Feedback,Festival:n.Festival,File:n.File,FileDownload:n.FileDownload,FileDownloadDone:n.FileDownloadDone,FilePresent:n.FilePresent,FileUpload:n.FileUpload,FilterAlt:n.FilterAlt,FilterListAlt:n.FilterListAlt,FindInPage:n.FindInPage,FindReplace:n.FindReplace,Fingerprint:n.Fingerprint,Fireplace:n.Fireplace,FirstPageAlt:n.FirstPageAlt,FirstPage:n.FirstPage,FitScreen:n.FitScreen,Flaky:n.Flaky,Flight:n.Flight,FlightLand:n.FlightLand,FlightTakeoff:n.FlightTakeoff,FlipToBack:n.FlipToBack,FlipToFront:n.FlipToFront,Folder:n.Folder,FolderOpen:n.FolderOpen,FolderShared:n.FolderShared,FollowTheSigns:n.FollowTheSigns,Forum:n.Forum,ForwardToInbox:n.ForwardToInbox,Fullscreen:n.Fullscreen,FullscreenExit:n.FullscreenExit,Gavel:n.Gavel,GetApp:n.GetApp,Gif:n.Gif,Grade:n.Grade,Grading:n.Grading,GridView:n.GridView,Group:n.Group,GroupAdd:n.GroupAdd,Groups:n.Groups,GroupWork:n.GroupWork,GTranslate:n.GTranslate,Hail:n.Hail,Handyman:n.Handyman,Hardware:n.Hardware,Help:n.Help,HelpCenter:n.HelpCenter,HelpOutline:n.HelpOutline,HighlightAlt:n.HighlightAlt,HighlightOff:n.HighlightOff,History:n.History,HistoryEdu:n.HistoryEdu,HistoryToggleOff:n.HistoryToggleOff,Home:n.Home,HomeFilled:n.HomeFilled,HomeRepairService:n.HomeRepairService,HomeWork:n.HomeWork,HorizontalSplit:n.HorizontalSplit,Hotel:n.Hotel,HourglassBottom:n.HourglassBottom,HourglassDisabled:n.HourglassDisabled,HourglassEmpty:n.HourglassEmpty,HourglassFull:n.HourglassFull,HourglassTop:n.HourglassTop,Http:n.Http,Https:n.Https,Hvac:n.Hvac,Icecream:n.Icecream,IconSwerage:n.IconSwerage,IconSwerageAlt:n.IconSwerageAlt,ImportantDevices:n.ImportantDevices,ImportContacts:n.ImportContacts,ImportExport:n.ImportExport,Info:n.Info,InfoOutline:n.InfoOutline,Input:n.Input,IntegrationInstructions:n.IntegrationInstructions,InvertColors:n.InvertColors,InvertColorsOff:n.InvertColorsOff,IosShare:n.IosShare,KingBed:n.KingBed,Label:n.Label,LabelImportant:n.LabelImportant,LabelImportantOutline:n.LabelImportantOutline,LabelOff:n.LabelOff,LabelOutline:n.LabelOutline,TranslateLanguage:n.TranslateLanguage,Language:n.Language,LastPageAlt:n.LastPageAlt,LastPage:n.LastPage,Launch:n.Launch,Layers:n.Layers,LayersClear:n.LayersClear,Leaderboard:n.Leaderboard,LegendToggle:n.LegendToggle,Lightbulb:n.Lightbulb,LightbulbOutline:n.LightbulbOutline,LineStyle:n.LineStyle,LineWeight:n.LineWeight,Liquor:n.Liquor,List:n.List,ListAlt:n.ListAlt,LiveHelp:n.LiveHelp,LocalActivity:n.LocalActivity,LocalAirport:n.LocalAirport,LocalAtm:n.LocalAtm,LocalBar:n.LocalBar,LocalCafe:n.LocalCafe,LocalCarWash:n.LocalCarWash,LocalConvenienceStore:n.LocalConvenienceStore,LocalDining:n.LocalDining,LocalDrink:n.LocalDrink,LocalFireDepartment:n.LocalFireDepartment,LocalFlorist:n.LocalFlorist,LocalGasStation:n.LocalGasStation,LocalGroceryStore:n.LocalGroceryStore,LocalHospital:n.LocalHospital,LocalHotel:n.LocalHotel,LocalLaundryService:n.LocalLaundryService,LocalLibrary:n.LocalLibrary,LocalMall:n.LocalMall,LocalMovies:n.LocalMovies,LocalOffer:n.LocalOffer,LocalParking:n.LocalParking,LocalPharmacy:n.LocalPharmacy,LocalPhone:n.LocalPhone,LocalPizza:n.LocalPizza,LocalPlay:n.LocalPlay,LocalPolice:n.LocalPolice,LocalPostOffice:n.LocalPostOffice,LocalPrintshop:n.LocalPrintshop,LocalSee:n.LocalSee,LocalShipping:n.LocalShipping,LocalTaxi:n.LocalTaxi,LocationCity:n.LocationCity,LocationOff:n.LocationOff,LocationOn:n.LocationOn,LocationPin:n.LocationPin,Lock:n.Lock,LockClock:n.LockClock,LockOpen:n.LockOpen,LockOutline:n.LockOutline,Login:n.Login,Logout:n.Logout,Loyalty:n.Loyalty,Luggage:n.Luggage,LunchDining:n.LunchDining,MailOutline:n.MailOutline,Map:n.Map,MapsUgc:n.MapsUgc,MarkAsUnread:n.MarkAsUnread,MarkChatRead:n.MarkChatRead,MarkChatUnread:n.MarkChatUnread,MarkEmailRead:n.MarkEmailRead,MarkEmailUnread:n.MarkEmailUnread,MarkunreadMailbox:n.MarkunreadMailbox,Masks:n.Masks,Maximize:n.Maximize,Mediation:n.Mediation,MedicalServices:n.MedicalServices,Menu:n.Menu,MenuBook:n.MenuBook,MenuOpen:n.MenuOpen,Message:n.Message,MilitaryTech:n.MilitaryTech,Minimize:n.Minimize,MiscellaneousServices:n.MiscellaneousServices,MobileScreenShare:n.MobileScreenShare,ModelTraining:n.ModelTraining,Money:n.Money,Mood:n.Mood,MoodBad:n.MoodBad,Moped:n.Moped,MoreHoriz:n.MoreHoriz,MoreTime:n.MoreTime,MoreVert:n.MoreVert,MultipleStop:n.MultipleStop,Museum:n.Museum,MyLocation:n.MyLocation,Nat:n.Nat,Navigation:n.Navigation,NearMe:n.NearMe,NearMeDisabled:n.NearMeDisabled,NextPlan:n.NextPlan,Nightlife:n.Nightlife,NightlightRound:n.NightlightRound,NightsStay:n.NightsStay,NoLuggage:n.NoLuggage,NoMeals:n.NoMeals,NoMealsOuline:n.NoMealsOuline,North:n.North,NorthEast:n.NorthEast,NorthWest:n.NorthWest,NoSim:n.NoSim,NotAccessible:n.NotAccessible,NoteAdd:n.NoteAdd,NotificationImportant:n.NotificationImportant,Notifications:n.Notifications,NotificationsActive:n.NotificationsActive,NotificationsNone:n.NotificationsNone,NotificationsOff:n.NotificationsOff,NotificationsPaused:n.NotificationsPaused,NotListedLocation:n.NotListedLocation,NoTransfer:n.NoTransfer,NotStarted:n.NotStarted,TorchNoun:n.TorchNoun,OfflineBolt:n.OfflineBolt,OfflinePin:n.OfflinePin,OfflineShare:n.OfflineShare,OnlinePrediction:n.OnlinePrediction,Opacity:n.Opacity,OpenInBrowser:n.OpenInBrowser,OpenInFull:n.OpenInFull,OpenInNew:n.OpenInNew,OpenWith:n.OpenWith,Outbond:n.Outbond,Outbox:n.Outbox,OutdoorGrill:n.OutdoorGrill,OutgoingMail:n.OutgoingMail,Outlet:n.Outlet,Pages:n.Pages,Pageview:n.Pageview,PanTool:n.PanTool,Park:n.Park,PartyMode:n.PartyMode,PausePresentation:n.PausePresentation,Payment:n.Payment,Payments:n.Payments,PedalBike:n.PedalBike,Pending:n.Pending,PendingActions:n.PendingActions,People:n.People,PeopleAlt:n.PeopleAlt,PeopleOutline:n.PeopleOutline,PermCameraMic:n.PermCameraMic,PermContactCalendar:n.PermContactCalendar,PermDataSetting:n.PermDataSetting,PermDeviceInformation:n.PermDeviceInformation,PermIdentity:n.PermIdentity,PermMedia:n.PermMedia,PermPhoneMsg:n.PermPhoneMsg,PermScanWifi:n.PermScanWifi,Person:n.Person,PersonAdd:n.PersonAdd,PersonAddAlt:n.PersonAddAlt,PersonAddSecondary:n.PersonAddSecondary,PersonAddDisabled:n.PersonAddDisabled,PersonOutline:n.PersonOutline,PersonPin:n.PersonPin,PersonPinCircle:n.PersonPinCircle,PersonRemove:n.PersonRemove,PersonRemoveAlt:n.PersonRemoveAlt,PersonSearch:n.PersonSearch,PestControl:n.PestControl,PestControlRodent:n.PestControlRodent,Pets:n.Pets,Phone:n.Phone,PhoneDisabled:n.PhoneDisabled,PhoneEnabled:n.PhoneEnabled,PhonelinkErase:n.PhonelinkErase,PhonelinkLock:n.PhonelinkLock,PhonelinkRing:n.PhonelinkRing,PhonelinkSetup:n.PhonelinkSetup,PictureInPicture:n.PictureInPicture,PictureInPictureAlt:n.PictureInPictureAlt,PinDrop:n.PinDrop,PivotTableChart:n.PivotTableChart,Place:n.Place,Plagiarism:n.Plagiarism,PlayForWork:n.PlayForWork,Plumbing:n.Plumbing,PlusOne:n.PlusOne,Poll:n.Poll,Polymer:n.Polymer,Population:n.Population,PortableWifiOff:n.PortableWifiOff,PowerSettingsNew:n.PowerSettingsNew,PregnantWoman:n.PregnantWoman,PresentToAll:n.PresentToAll,Preview:n.Preview,Print:n.Print,PrintDisabled:n.PrintDisabled,PrivacyTip:n.PrivacyTip,Psychology:n.Psychology,Public:n.Public,PublicOff:n.PublicOff,PublishedWithChanges:n.PublishedWithChanges,QrCode:n.QrCode,QrCodeScanner:n.QrCodeScanner,QueryBuilder:n.QueryBuilder,QuestionAnswer:n.QuestionAnswer,Quickreply:n.Quickreply,RailwayAlert:n.RailwayAlert,RamenDining:n.RamenDining,RateReview:n.RateReview,ReadMore:n.ReadMore,Receipt:n.Receipt,Recommend:n.Recommend,RecordVoiceOver:n.RecordVoiceOver,Redeem:n.Redeem,ReduceCapacity:n.ReduceCapacity,Refresh:n.Refresh,RemoveDone:n.RemoveDone,RemoveModerator:n.RemoveModerator,RemoveShoppingCart:n.RemoveShoppingCart,Reorder:n.Reorder,ReportProblem:n.ReportProblem,RequestPage:n.RequestPage,RequestQuote:n.RequestQuote,Restaurant:n.Restaurant,RestaurantMenu:n.RestaurantMenu,Restore:n.Restore,RestoreFromTrash:n.RestoreFromTrash,RestorePage:n.RestorePage,RingVolume:n.RingVolume,Room:n.Room,RoundedCorner:n.RoundedCorner,Rowing:n.Rowing,RssFeed:n.RssFeed,Rtt:n.Rtt,Rule:n.Rule,RuleFolder:n.RuleFolder,RunCircle:n.RunCircle,Sanitizer:n.Sanitizer,Satellite:n.Satellite,SavedSearch:n.SavedSearch,Schedule:n.Schedule,ScheduleSend:n.ScheduleSend,School:n.School,Science:n.Science,ScreenShare:n.ScreenShare,Search:n.Search,SearchOff:n.SearchOff,Segment:n.Segment,SelfImprovement:n.SelfImprovement,SendAndArchive:n.SendAndArchive,SentimentDissatisfied:n.SentimentDissatisfied,SentimentNeutral:n.SentimentNeutral,SentimentSatisfied:n.SentimentSatisfied,SentimentSatisfiedAlt:n.SentimentSatisfiedAlt,SentimentVeryDissatisfied:n.SentimentVeryDissatisfied,SentimentVerySatisfied:n.SentimentVerySatisfied,SetMeal:n.SetMeal,Settings:n.Settings,SettingsApplications:n.SettingsApplications,SettingsBackupRestore:n.SettingsBackupRestore,SettingsBluetooth:n.SettingsBluetooth,SettingsBrightness:n.SettingsBrightness,SettingsCell:n.SettingsCell,SettingsEthernet:n.SettingsEthernet,SettingsInputAntenna:n.SettingsInputAntenna,SettingsInputComponent:n.SettingsInputComponent,SettingsInputComposite:n.SettingsInputComposite,SettingsInputHdmi:n.SettingsInputHdmi,SettingsInputVideo:n.SettingsInputVideo,SettingsOverscan:n.SettingsOverscan,SettingsPhone:n.SettingsPhone,SettingsPower:n.SettingsPower,SettingsRemote:n.SettingsRemote,SettingsVoice:n.SettingsVoice,Share:n.Share,Shop:n.Shop,ShoppingBag:n.ShoppingBag,ShoppingBasket:n.ShoppingBasket,ShoppingCart:n.ShoppingCart,ShopAlt:n.ShopAlt,Sick:n.Sick,SingleBed:n.SingleBed,SmartButton:n.SmartButton,SnippetFolder:n.SnippetFolder,Source:n.Source,South:n.South,SouthEast:n.SouthEast,SouthWest:n.SouthWest,SpeakerNotes:n.SpeakerNotes,SpeakerNotesOff:n.SpeakerNotesOff,SpeakerPhone:n.SpeakerPhone,SpellCheck:n.SpellCheck,Sports:n.Sports,SportsBaseball:n.SportsBaseball,SportsBasketball:n.SportsBasketball,SportsCricket:n.SportsCricket,SportsEsports:n.SportsEsports,SportsFootball:n.SportsFootball,SportsGolf:n.SportsGolf,SportsHandball:n.SportsHandball,SportsHockey:n.SportsHockey,SportsKabaddi:n.SportsKabaddi,SportsMma:n.SportsMma,SportsMotorsports:n.SportsMotorsports,SportsRugby:n.SportsRugby,SportsSoccer:n.SportsSoccer,SportsTennis:n.SportsTennis,SportsVolleyball:n.SportsVolleyball,StarRate:n.StarRate,Stars:n.Stars,StayCurrentLandscape:n.StayCurrentLandscape,StayCurrentPortrait:n.StayCurrentPortrait,StayPrimaryLandscape:n.StayPrimaryLandscape,StayPrimaryPortrait:n.StayPrimaryPortrait,StickyNotesSecondary:n.StickyNotesSecondary,ScreenShareStop:n.ScreenShareStop,Store:n.Store,StoreMallDirectory:n.StoreMallDirectory,StreetView:n.StreetView,SubdirectoryArrowLeft:n.SubdirectoryArrowLeft,SubdirectoryArrowRight:n.SubdirectoryArrowRight,Subject:n.Subject,SubtitlesOff:n.SubtitlesOff,Subway:n.Subway,SupervisedUserCircle:n.SupervisedUserCircle,SupervisorAccount:n.SupervisorAccount,Support:n.Support,SwapCalls:n.SwapCalls,SwapHorizontal:n.SwapHorizontal,SwapHorizontalCircle:n.SwapHorizontalCircle,SwapVertical:n.SwapVertical,SwapVerticalCircle:n.SwapVerticalCircle,Swipe:n.Swipe,SwitchAccount:n.SwitchAccount,SwitchLeft:n.SwitchLeft,SwitchRight:n.SwitchRight,SyncAlt:n.SyncAlt,SystemUpdateAlt:n.SystemUpdateAlt,Tab:n.Tab,TableView:n.TableView,TabUnselected:n.TabUnselected,TakeOutDining:n.TakeOutDining,TaxiAlert:n.TaxiAlert,Terrain:n.Terrain,TextRotateUp:n.TextRotateUp,TextRotateVertical:n.TextRotateVertical,TextRotationAngleDown:n.TextRotationAngleDown,TextRotationAngleUp:n.TextRotationAngleUp,TextRotationDown:n.TextRotationDown,TextRotationNone:n.TextRotationNone,SMSText:n.SMSText,TextSnippet:n.TextSnippet,TheaterComedy:n.TheaterComedy,Theaters:n.Theaters,ThumbDown:n.ThumbDown,ThumbDownAlt:n.ThumbDownAlt,ThumbDownOffAlt:n.ThumbDownOffAlt,ThumbsUpDown:n.ThumbsUpDown,ThumbUp:n.ThumbUp,ThumbUpAlt:n.ThumbUpAlt,ThumbUpOffAlt:n.ThumbUpOffAlt,Timeline:n.Timeline,Toc:n.Toc,Today:n.Today,Toll:n.Toll,Topic:n.Topic,Torch:n.Torch,TouchApp:n.TouchApp,Tour:n.Tour,TrackChanges:n.TrackChanges,Traffic:n.Traffic,Train:n.Train,Tram:n.Tram,TransferWithinStation:n.TransferWithinStation,TransitEnterExit:n.TransitEnterExit,Translate:n.Translate,TrendingDown:n.TrendingDown,TrendingFlat:n.TrendingFlat,TrendingUp:n.TrendingUp,TripOrigin:n.TripOrigin,TurnedIn:n.TurnedIn,TurnedInNot:n.TurnedInNot,TwoWheeler:n.TwoWheeler,UnfoldLess:n.UnfoldLess,UnfoldMore:n.UnfoldMore,Unpublished:n.Unpublished,Unsubscribe:n.Unsubscribe,Update:n.Update,UpdateExpense:n.UpdateExpense,UpdateExpenseSecondary:n.UpdateExpenseSecondary,Upgrade:n.Upgrade,UploadFile:n.UploadFile,Verified:n.Verified,VerifiedUser:n.VerifiedUser,VerticalSplit:n.VerticalSplit,ViewAgenda:n.ViewAgenda,ViewArray:n.ViewArray,ViewCarousel:n.ViewCarousel,ViewColumn:n.ViewColumn,ViewDay:n.ViewDay,ViewHeadline:n.ViewHeadline,ViewInAr:n.ViewInAr,ViewList:n.ViewList,ViewModule:n.ViewModule,ViewQuilt:n.ViewQuilt,ViewSidebar:n.ViewSidebar,ViewStream:n.ViewStream,ViewWeek:n.ViewWeek,Visibility:n.Visibility,VisibilityOff:n.VisibilityOff,Voicemail:n.Voicemail,VoiceOverOff:n.VoiceOverOff,VolunteerActivism:n.VolunteerActivism,VpnKey:n.VpnKey,Warning:n.Warning,WatchLater:n.WatchLater,WaterfallChart:n.WaterfallChart,West:n.West,Whatsapp:n.Whatsapp,Whatshot:n.Whatshot,WifiCalling:n.WifiCalling,WifiProtectedSetup:n.WifiProtectedSetup,WineBar:n.WineBar,Work:n.Work,WorkOff:n.WorkOff,WorkOutline:n.WorkOutline,WorkspacesFilled:n.WorkspacesFilled,WorkspacesOutline:n.WorkspacesOutline,WrongLocation:n.WrongLocation,Wysiwyg:n.Wysiwyg,YoutubeSearchedFor:n.YoutubeSearchedFor,ZoomIn:n.ZoomIn,ZoomOut:n.ZoomOut,ZoomOutMap:n.ZoomOutMap,StarFilled:n.StarFilled,StarEmpty:n.StarEmpty};i.propTypes={width:a().string,height:a().string,fill:a().string,className:a().string,style:a().object,onClick:a().func}},sJ5t:(e,t,l)=>{l.d(t,{A:()=>r});var n=l("C6rw"),o=l.n(n),a=l("naAG"),i=l("Lfsa");const r=e=>{let{children:t,texts:l,onSubmit:n}=e;return o().createElement("div",{className:"digit-page-based-input-wrapper"},o().createElement(a.A,null,t,o().createElement(i.A,{className:"digit-page-based-submit-bar",label:l.submitBarLabel,onClick:n})),o().createElement("div",{className:"digit-submit-bar-container"},o().createElement(i.A,{variation:"digit-submit-bar",label:l.submitBarLabel,onClick:n})))}},"tZT/":(e,t,l)=>{l.d(t,{A:()=>u});var n=l("C6rw"),o=l.n(n),a=l("17x9"),i=l.n(a),r=l("vA+l"),s=l("sqMA"),c=l("snI5");const d=e=>{const t=s.J.lightTheme.paper.primary,l=(()=>{const l=t,n=null==e?void 0:e.icon;let o="1.5rem",a="1.5rem";return"medium"===e.size?(o="1.25rem",a="1.25rem"):"small"===e.size&&(o="0.875rem",a="0.875rem"),(0,c.Q)(n,l,o,a,"digit-button-customIcon ".concat(null!=e&&e.size?null==e?void 0:e.size:""," ").concat(null!=e&&e.variation?null==e?void 0:e.variation:""," "))})(),n="link"===(null==e?void 0:e.variation)?null==e?void 0:e.label:(0,r.A)("CAPITALIZEFIRSTLETTER",(0,r.A)("TRUNCATESTRING",null==e?void 0:e.label,{maxLength:64}));return o().createElement("button",{ref:null==e?void 0:e.ref,className:"digit-info-button ".concat(null!=e&&e.infobuttontype?null==e?void 0:e.infobuttontype:""," ").concat(null!=e&&e.size?null==e?void 0:e.size:"large"," ").concat(null!=e&&e.className?null==e?void 0:e.className:""," ").concat(null!=e&&e.isDisabled?"disabled":""),type:null!=e&&e.submit?"submit":e.type||"button",form:e.formId,onClick:e.onClick,disabled:(null==e?void 0:e.isDisabled)||null,style:e.style?e.style:null},o().createElement("div",{className:"icon-label-container ".concat(null!=e&&e.size?null==e?void 0:e.size:"")},!(null!=e&&e.isSuffix)&&(null==e?void 0:e.icon)&&l,o().createElement("h1",{style:{...null==e?void 0:e.textStyles},className:"digit-button-label"},n),(null==e?void 0:e.isSuffix)&&(null==e?void 0:e.icon)&&l))};d.propTypes={isDisabled:i().bool,label:i().string.isRequired,icon:i().string,onClick:i().func.isRequired,className:i().string,style:i().object,textStyles:i().object,isSuffix:i().bool,size:i().string,infobuttontype:i().string},d.defaultProps={label:"TEST",onClick:()=>{},infobuttontype:"info"};const u=d},vDwf:(e,t,l)=>{l.d(t,{A:()=>r});var n=l("C6rw"),o=l.n(n),a=l("iTkH"),i=l("SOjZ");const r=e=>{let{headerText:t,links:r,businessService:s,customClass:c="",logoIcon:d}=e;const{t:u}=(0,a.Bd)(),{roles:p}=Digit.UserService.getUser().info,[m,v]=(0,n.useState)([]),g=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===(e=l("A8bQ"))||void 0===e?void 0:e[t]}(null==d?void 0:d.component);return(0,n.useEffect)((()=>{let e=r.filter((e=>{let{roles:t}=e;return t.some((e=>p.map((e=>{let{code:t}=e;return t})).includes(e)))||!(null!=t&&t.length)}));v(e)}),[]),o().createElement("div",{className:"inbox-search-links-container ".concat(c)},o().createElement("div",{className:"header"},o().createElement("span",{className:"logo"},(null==d?void 0:d.component)&&g&&o().createElement(g,{className:null==d?void 0:d.customClass})),o().createElement("span",{className:"text"},u(t))),o().createElement("div",{className:"contents"},m.map(((e,t)=>{var l,n;let{url:a,text:r,hyperlink:s=!1}=e;return o().createElement("span",{className:"link",key:t},s?o().createElement("a",{href:"/".concat(null===(l=window)||void 0===l?void 0:l.contextPath).concat(a)},u(r)):o().createElement(i.N_,{to:"/".concat(null===(n=window)||void 0===n?void 0:n.contextPath).concat(a)},u(r)))}))))}},wPoe:(e,t,l)=>{l.d(t,{A:()=>a});var n=l("C6rw"),o=l.n(n);const a=e=>{const t=null!=e&&e.variant?null==e?void 0:e.variant:"",l=null!=e&&e.className?null==e?void 0:e.className:"";return o().createElement("header",{className:"digit-card-header ".concat(t," ").concat(l),style:e.styles?e.styles:{}},e.children)}},xVzt:(e,t,l)=>{l.d(t,{A:()=>c});var n=l("C6rw"),o=l.n(n),a=l("rTr4"),i=l("17x9"),r=l.n(i);const s=e=>{var t,l,n,i,r,s,c,d,u,p,m,v;const g=null===(n=e=null!==(t=e)&&void 0!==t&&t.props?null===(l=e)||void 0===l?void 0:l.props:e)||void 0===n||!n.showInfo||(null===(i=e)||void 0===i?void 0:i.showInfo);return o().createElement("div",{className:"digit-info-banner-wrap ".concat(null!==(r=e)&&void 0!==r&&r.className?null===(s=e)||void 0===s?void 0:s.className:""),style:null===(c=e)||void 0===c?void 0:c.style},g&&o().createElement("div",null,o().createElement(a.t.Info,{fill:null===(d=e)||void 0===d?void 0:d.fill}),o().createElement("h2",{style:null===(u=e)||void 0===u?void 0:u.textStyle},null===(p=e)||void 0===p?void 0:p.info)),o().createElement("p",{style:null===(m=e)||void 0===m?void 0:m.textStyle},null===(v=e)||void 0===v?void 0:v.text))};s.propTypes={props:r().object,showInfo:r().bool,className:r().string,style:r().object,fill:r().string,textStyle:r().object,info:r().string,text:r().string.isRequired};const c=s}}]);