@egovernments/digit-ui-module-core 1.9.0-beta-2 → 2.0.0-rc19-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +4 -6
- package/dist/150.main.js +0 -3
- package/dist/150.main.js.LICENSE.txt +0 -16
- package/dist/150.main.js.map +0 -1
- package/dist/204.main.js +0 -2
- package/dist/204.main.js.map +0 -1
- package/dist/248.main.js +0 -3
- package/dist/248.main.js.LICENSE.txt +0 -1
- package/dist/248.main.js.map +0 -1
- package/dist/275.main.js +0 -2
- package/dist/275.main.js.map +0 -1
- package/dist/339.main.js +0 -3
- package/dist/339.main.js.LICENSE.txt +0 -1
- package/dist/339.main.js.map +0 -1
- package/dist/387.main.js +0 -3
- package/dist/387.main.js.LICENSE.txt +0 -1
- package/dist/387.main.js.map +0 -1
- package/dist/469.main.js +0 -3
- package/dist/469.main.js.LICENSE.txt +0 -1
- package/dist/469.main.js.map +0 -1
- package/dist/713.main.js +0 -2
- package/dist/713.main.js.map +0 -1
- package/dist/772.main.js +0 -2
- package/dist/772.main.js.map +0 -1
- package/dist/876.main.js +0 -2
- package/dist/876.main.js.map +0 -1
package/dist/main.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see main.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@egovernments/digit-ui-components"),require("react"),require("react-i18next"),require("@tanstack/react-query"),require("react-redux"),require("react-router-dom"),require("redux"),require("redux-thunk"),require("@egovernments/digit-ui-react-components"),require("@egovernments/digit-ui-svg-components")):"function"==typeof define&&define.amd?define(["@egovernments/digit-ui-components","react","react-i18next","@tanstack/react-query","react-redux","react-router-dom","redux","redux-thunk","@egovernments/digit-ui-react-components","@egovernments/digit-ui-svg-components"],e):"object"==typeof exports?exports["@egovernments/digit-ui-module-core"]=e(require("@egovernments/digit-ui-components"),require("react"),require("react-i18next"),require("@tanstack/react-query"),require("react-redux"),require("react-router-dom"),require("redux"),require("redux-thunk"),require("@egovernments/digit-ui-react-components"),require("@egovernments/digit-ui-svg-components")):t["@egovernments/digit-ui-module-core"]=e(t["@egovernments/digit-ui-components"],t.React,t["react-i18next"],t["@tanstack/react-query"],t["react-redux"],t["react-router-dom"],t.redux,t["redux-thunk"],t["@egovernments/digit-ui-react-components"],t["@egovernments/digit-ui-svg-components"])}(this,(t,e,r,n,o,i,a,u,s,c)=>(()=>{var l,f,p={34:(t,e,r)=>{"use strict";var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},81:(t,e,r)=>{"use strict";var n=r(9565),o=r(9306),i=r(8551),a=r(6823),u=r(851),s=TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(o(r))return i(n(r,t));throw new s(a(t)+" is not iterable")}},113:(t,e,r)=>{"use strict";var n=r(6518),o=r(9213).find,i=r(6469),a="find",u=!0;a in[]&&Array(1)[a](function(){u=!1}),n({target:"Array",proto:!0,forced:u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},235:(t,e,r)=>{"use strict";var n=r(9213).forEach,o=r(4598)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},280:(t,e,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(6395),a=r(550),u=r(916).CONSTRUCTOR,s=r(3438),c=o("Promise"),l=i&&!u;n({target:"Promise",stat:!0,forced:i||u},{resolve:function(t){return s(l&&this===c?a:this,t)}})},283:(t,e,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),a=r(9297),u=r(3724),s=r(350).CONFIGURABLE,c=r(3706),l=r(1181),f=l.enforce,p=l.get,d=String,v=Object.defineProperty,y=n("".slice),g=n("".replace),m=n([].join),h=u&&!o(function(){return 8!==v(function(){},"length",{value:8}).length}),b=String(String).split("String"),x=t.exports=function(t,e,r){"Symbol("===y(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||s&&t.name!==e)&&(u?v(t,"name",{value:e,configurable:!0}):t.name=e),h&&r&&a(r,"arity")&&t.length!==r.arity&&v(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x(function(){return i(this)&&p(this).source||c(this)},"toString")},287:(t,e,r)=>{"use strict";r(6518)({target:"Object",stat:!0},{setPrototypeOf:r(2967)})},298:(t,e,r)=>{"use strict";var n=r(2195),o=r(5397),i=r(8480).f,a=r(7680),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return a(u)}}(t):i(o(t))}},338:t=>{"use strict";t.exports=c},350:(t,e,r)=>{"use strict";var n=r(3724),o=r(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),s=u&&"something"===function(){}.name,c=u&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:s,CONFIGURABLE:c}},397:(t,e,r)=>{"use strict";var n=r(7751);t.exports=n("document","documentElement")},421:t=>{"use strict";t.exports={}},436:(t,e,r)=>{"use strict";var n,o,i,a,u=r(6518),s=r(6395),c=r(6193),l=r(4576),f=r(9167),p=r(9565),d=r(6840),v=r(2967),y=r(687),g=r(7633),m=r(9306),h=r(4901),b=r(34),x=r(679),w=r(2293),O=r(9225).set,S=r(1955),j=r(3138),P=r(1103),E=r(8265),T=r(1181),C=r(550),I=r(916),D=r(6043),A="Promise",N=I.CONSTRUCTOR,_=I.REJECTION_EVENT,R=I.SUBCLASSING,k=T.getterFor(A),L=T.set,U=C&&C.prototype,M=C,F=U,B=l.TypeError,G=l.document,z=l.process,q=D.f,W=q,$=!!(G&&G.createEvent&&l.dispatchEvent),H="unhandledrejection",V=function(t){var e;return!(!b(t)||!h(e=t.then))&&e},Y=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&J(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?c(new B("Promise-chain cycle")):(n=V(r))?p(n,r,s,c):s(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},K=function(t,e){t.notified||(t.notified=!0,S(function(){for(var r,n=t.reactions;r=n.get();)Y(r,t);t.notified=!1,e&&!t.rejection&&Z(t)}))},X=function(t,e,r){var n,o;$?((n=G.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},!_&&(o=l["on"+t])?o(n):t===H&&j("Unhandled promise rejection",r)},Z=function(t){p(O,l,function(){var e,r=t.facade,n=t.value;if(Q(t)&&(e=P(function(){c?z.emit("unhandledRejection",n,r):X(H,r,n)}),t.rejection=c||Q(t)?2:1,e.error))throw e.value})},Q=function(t){return 1!==t.rejection&&!t.parent},J=function(t){p(O,l,function(){var e=t.facade;c?z.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)})},tt=function(t,e,r){return function(n){t(e,n,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,K(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new B("Promise can't be resolved itself");var n=V(e);n?S(function(){var r={done:!1};try{p(n,e,tt(rt,r,t),tt(et,r,t))}catch(e){et(r,e,t)}}):(t.value=e,t.state=1,K(t,!1))}catch(e){et({done:!1},e,t)}}};if(N&&(F=(M=function(t){x(this,F),m(t),p(n,this);var e=k(this);try{t(tt(rt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(n=function(t){L(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:null})}).prototype=d(F,"then",function(t,e){var r=k(this),n=q(w(this,M));return r.parent=!0,n.ok=!h(t)||t,n.fail=h(e)&&e,n.domain=c?z.domain:void 0,0===r.state?r.reactions.add(n):S(function(){Y(n,r)}),n.promise}),o=function(){var t=new n,e=k(t);this.promise=t,this.resolve=tt(rt,e),this.reject=tt(et,e)},D.f=q=function(t){return t===M||t===i?new o(t):W(t)},!s&&h(C)&&U!==Object.prototype)){a=U.then,R||d(U,"then",function(t,e){var r=this;return new M(function(t,e){p(a,r,t,e)}).then(t,e)},{unsafe:!0});try{delete U.constructor}catch(t){}v&&v(U,F)}u({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:M}),i=f.Promise,y(M,A,!1,!0),g(A)},486:(t,e,r)=>{"use strict";r.d(e,{A:()=>s}),r(4012);var n=r(5953),o=r(1599),i=r(4848),a={error:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/error-image.png",infoMessage:"CORE_SOMETHING_WENT_WRONG",buttonInfo:"ACTION_TEST_HOME"},maintenance:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/maintainence-image.png",infoMessage:"CORE_UNDER_MAINTENANCE",buttonInfo:"ACTION_TEST_HOME"},notfound:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/PageNotFound.png",infoMessage:"MODULE_NOT_FOUND",buttonInfo:"ACTION_TEST_HOME"}},u={sandbox:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/error-image.png",infoMessage:"WRONG_TENANT_SIGN_UP",buttonInfo:"CREATE_TENANT_ERROR_BUTTON"}};const s=function(t){var e,r=Digit.Hooks.useQueryParams().type,s=void 0===r?"error":r,c=null==t||null===(e=t.errorData)||void 0===e?void 0:e.module,l=(0,n.useTranslation)().t,f=c?u[c]:a[s];return t.stateInfo,(0,i.jsx)("div",{className:"error-boundary",children:(0,i.jsxs)("div",{className:"error-container",children:[(0,i.jsx)(o.A,{src:f.imgUrl,alt:"error"}),(0,i.jsx)("h1",{children:l(f.infoMessage)}),(0,i.jsx)("button",{onClick:function(){var e;c?null==t||null===(e=t.errorData)||void 0===e||e.action():t.goToHome()},children:l(f.buttonInfo)})]})})}},511:(t,e,r)=>{"use strict";var n=r(9167),o=r(9297),i=r(1951),a=r(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},537:(t,e,r)=>{"use strict";var n=r(550),o=r(4428),i=r(916).CONSTRUCTOR;t.exports=i||!o(function(t){n.all(t).then(void 0,function(){})})},550:(t,e,r)=>{"use strict";var n=r(4576);t.exports=n.Promise},566:(t,e,r)=>{"use strict";var n=r(9504),o=r(9306),i=r(34),a=r(9297),u=r(7680),s=r(616),c=Function,l=n([].concat),f=n([].join),p={};t.exports=s?c.bind:function(t){var e=o(this),r=e.prototype,n=u(arguments,1),s=function(){var r=l(n,u(arguments));return this instanceof s?function(t,e,r){if(!a(p,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";p[e]=c("C,a","return new C("+f(n,",")+")")}return p[e](t,r)}(e,r.length,r):e.apply(t,r)};return i(r)&&(s.prototype=r),s}},597:(t,e,r)=>{"use strict";var n=r(9039),o=r(8227),i=r(9519),a=o("species");t.exports=function(t){return i>=51||!n(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},616:(t,e,r)=>{"use strict";var n=r(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},655:(t,e,r)=>{"use strict";var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},679:(t,e,r)=>{"use strict";var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},687:(t,e,r)=>{"use strict";var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},741:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},757:(t,e,r)=>{"use strict";var n=r(7751),o=r(4901),i=r(1625),a=r(7040),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,u(t))}},788:(t,e,r)=>{"use strict";var n=r(34),o=r(2195),i=r(8227)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},825:(t,e,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(8745),a=r(566),u=r(5548),s=r(8551),c=r(34),l=r(2360),f=r(9039),p=o("Reflect","construct"),d=Object.prototype,v=[].push,y=f(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),g=!f(function(){p(function(){})}),m=y||g;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){u(t),s(e);var r=arguments.length<3?t:u(arguments[2]);if(g&&!y)return p(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return i(v,n,e),new(i(a,t,n))}var o=r.prototype,f=l(c(o)?o:d),m=i(t,f,e);return c(m)?m:f}})},851:(t,e,r)=>{"use strict";var n=r(6955),o=r(5966),i=r(4117),a=r(6269),u=r(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[n(t)]}},875:(t,e,r)=>{"use strict";var n=r(6518),o=r(9039),i=r(8981),a=r(2787),u=r(2211);n({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},916:(t,e,r)=>{"use strict";var n=r(4576),o=r(550),i=r(4901),a=r(2796),u=r(3706),s=r(8227),c=r(4215),l=r(6395),f=r(9519),p=o&&o.prototype,d=s("species"),v=!1,y=i(n.PromiseRejectionEvent),g=a("Promise",function(){var t=u(o),e=t!==String(o);if(!e&&66===f)return!0;if(l&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(t)){var r=new o(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[d]=n,!(v=r.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||y)});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:y,SUBCLASSING:v}},1034:(t,e,r)=>{"use strict";var n=r(9565),o=r(9297),i=r(1625),a=r(5213),u=r(7979),s=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!i(s,t)||o(t,"flags")?t.flags:n(u,t)}},1072:(t,e,r)=>{"use strict";var n=r(1828),o=r(8727);t.exports=Object.keys||function(t){return n(t,o)}},1088:(t,e,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(6395),a=r(350),u=r(4901),s=r(3994),c=r(2787),l=r(2967),f=r(687),p=r(6699),d=r(6840),v=r(8227),y=r(6269),g=r(7657),m=a.PROPER,h=a.CONFIGURABLE,b=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,w=v("iterator"),O="keys",S="values",j="entries",P=function(){return this};t.exports=function(t,e,r,a,v,g,E){s(r,e,a);var T,C,I,D=function(t){if(t===v&&k)return k;if(!x&&t&&t in _)return _[t];switch(t){case O:case S:case j:return function(){return new r(this,t)}}return function(){return new r(this)}},A=e+" Iterator",N=!1,_=t.prototype,R=_[w]||_["@@iterator"]||v&&_[v],k=!x&&R||D(v),L="Array"===e&&_.entries||R;if(L&&(T=c(L.call(new t)))!==Object.prototype&&T.next&&(i||c(T)===b||(l?l(T,b):u(T[w])||d(T,w,P)),f(T,A,!0,!0),i&&(y[A]=P)),m&&v===S&&R&&R.name!==S&&(!i&&h?p(_,"name",S):(N=!0,k=function(){return o(R,this)})),v)if(C={values:D(S),keys:g?k:D(O),entries:D(j)},E)for(I in C)(x||N||!(I in _))&&d(_,I,C[I]);else n({target:e,proto:!0,forced:x||N},C);return i&&!E||_[w]===k||d(_,w,k,{name:v}),y[e]=k,C}},1103:t=>{"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1181:(t,e,r)=>{"use strict";var n,o,i,a=r(8622),u=r(4576),s=r(34),c=r(6699),l=r(9297),f=r(7629),p=r(6119),d=r(421),v="Object already initialized",y=u.TypeError,g=u.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,e){if(m.has(t))throw new y(v);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var h=p("state");d[h]=!0,n=function(t,e){if(l(t,h))throw new y(v);return e.facade=t,c(t,h,e),e},o=function(t){return l(t,h)?t[h]:{}},i=function(t){return l(t,h)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!s(e)||(r=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return r}}}},1240:(t,e,r)=>{"use strict";var n=r(9504);t.exports=n(1.1.valueOf)},1278:(t,e,r)=>{"use strict";var n=r(6518),o=r(3724),i=r(5031),a=r(5397),u=r(7347),s=r(4659);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),o=u.f,c=i(n),l={},f=0;c.length>f;)void 0!==(r=o(n,e=c[f++]))&&s(l,e,r);return l}})},1291:(t,e,r)=>{"use strict";var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},1296:(t,e,r)=>{"use strict";var n=r(4495);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},1415:(t,e,r)=>{"use strict";r(2405)},1436:(t,e,r)=>{"use strict";var n=r(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},1469:(t,e,r)=>{"use strict";var n=r(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1481:(t,e,r)=>{"use strict";var n=r(6518),o=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},1510:(t,e,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(9297),a=r(655),u=r(5745),s=r(1296),c=u("string-to-symbol-registry"),l=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=a(t);if(i(c,e))return c[e];var r=o("Symbol")(e);return c[e]=r,l[r]=e,r}})},1599:(t,e,r)=>{"use strict";r.d(e,{A:()=>p}),r(2675),r(9463),r(2259),r(5700),r(2008),r(3792),r(9572),r(2892),r(3851),r(1278),r(9432),r(6099),r(7764),r(3500),r(2953),r(4012);var n=r(5556),o=r.n(n),i=r(4848);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var u=["src","alt","decorative","ariaLabel","ariaLabelledby"];function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(t,e,r){return(e=function(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=function(t){var e=t.src,r=t.alt,n=void 0===r?"Image not found":r,o=t.decorative,a=void 0!==o&&o,s=t.ariaLabel,l=void 0===s?"No Image description set":s,f=t.ariaLabelledby,p=void 0===f?"no-image-description":f,d=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),v={};return a?v.alt="":n?v.alt=n:l?v["aria-label"]=l:p?v["aria-labelledby"]=p:console.warn("AccessibleImage: Missing alt, aria-label, or aria-labelledby for non-decorative image."),(0,i.jsx)("img",c(c(c({src:e},v),d),{},{tabIndex:0,onKeyDown:function(t){var e,r;"Enter"!==t.key&&" "!==t.key||window.open(null===(e=window)||void 0===e||null===(e=e.globalConfigs)||void 0===e||null===(r=e.getConfig)||void 0===r?void 0:r.call(e,"DIGIT_HOME_URL"),"_blank").focus()}}))};f.propTypes={src:o().string.isRequired,alt:o().string,decorative:o().bool,ariaLabel:o().string,ariaLabelledby:o().string};const p=f},1625:(t,e,r)=>{"use strict";var n=r(9504);t.exports=n({}.isPrototypeOf)},1699:(t,e,r)=>{"use strict";var n=r(6518),o=r(9504),i=r(5749),a=r(7750),u=r(655),s=r(1436),c=o("".indexOf);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~c(u(a(this)),u(i(t)),arguments.length>1?arguments[1]:void 0)}})},1828:(t,e,r)=>{"use strict";var n=r(9504),o=r(9297),i=r(5397),a=r(9617).indexOf,u=r(421),s=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,l=[];for(r in n)!o(u,r)&&o(n,r)&&s(l,r);for(;e.length>c;)o(n,r=e[c++])&&(~a(l,r)||s(l,r));return l}},1951:(t,e,r)=>{"use strict";var n=r(8227);e.f=n},1954:t=>{"use strict";t.exports=a},1955:(t,e,r)=>{"use strict";var n,o,i,a,u,s=r(4576),c=r(3389),l=r(6080),f=r(9225).set,p=r(8265),d=r(9544),v=r(4265),y=r(7860),g=r(6193),m=s.MutationObserver||s.WebKitMutationObserver,h=s.document,b=s.process,x=s.Promise,w=c("queueMicrotask");if(!w){var O=new p,S=function(){var t,e;for(g&&(t=b.domain)&&t.exit();e=O.get();)try{e()}catch(t){throw O.head&&n(),t}t&&t.enter()};d||g||y||!m||!h?!v&&x&&x.resolve?((a=x.resolve(void 0)).constructor=x,u=l(a.then,a),n=function(){u(S)}):g?n=function(){b.nextTick(S)}:(f=l(f,s),n=function(){f(S)}):(o=!0,i=h.createTextNode(""),new m(S).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),w=function(t){O.head||n(),O.add(t)}}t.exports=w},2003:(t,e,r)=>{"use strict";var n=r(6518),o=r(6395),i=r(916).CONSTRUCTOR,a=r(550),u=r(7751),s=r(4901),c=r(6840),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&s(a)){var f=u("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},2008:(t,e,r)=>{"use strict";var n=r(6518),o=r(9213).filter;n({target:"Array",proto:!0,forced:!r(597)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2010:(t,e,r)=>{"use strict";var n=r(3724),o=r(350).EXISTS,i=r(9504),a=r(2106),u=Function.prototype,s=i(u.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(c.exec);n&&!o&&a(u,"name",{configurable:!0,get:function(){try{return l(c,s(this))[1]}catch(t){return""}}})},2062:(t,e,r)=>{"use strict";var n=r(6518),o=r(9213).map;n({target:"Array",proto:!0,forced:!r(597)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2106:(t,e,r)=>{"use strict";var n=r(283),o=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},2140:(t,e,r)=>{"use strict";var n={};n[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},2148:t=>{"use strict";t.exports=o},2195:(t,e,r)=>{"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2211:(t,e,r)=>{"use strict";var n=r(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2247:t=>{"use strict";t.exports=u},2259:(t,e,r)=>{"use strict";r(511)("iterator")},2293:(t,e,r)=>{"use strict";var n=r(8551),o=r(5548),i=r(4117),a=r(8227)("species");t.exports=function(t,e){var r,u=n(t).constructor;return void 0===u||i(r=n(u)[a])?e:o(r)}},2357:(t,e,r)=>{"use strict";var n=r(3724),o=r(9039),i=r(9504),a=r(2787),u=r(1072),s=r(5397),c=i(r(8773).f),l=i([].push),f=n&&o(function(){var t=Object.create(null);return t[2]=2,!c(t,2)}),p=function(t){return function(e){for(var r,o=s(e),i=u(o),p=f&&null===a(o),d=i.length,v=0,y=[];d>v;)r=i[v++],n&&!(p?r in o:c(o,r))||l(y,t?[r,o[r]]:o[r]);return y}};t.exports={entries:p(!0),values:p(!1)}},2360:(t,e,r)=>{"use strict";var n,o=r(8551),i=r(6801),a=r(8727),u=r(421),s=r(397),c=r(4055),l=r(6119),f="prototype",p="script",d=l("IE_PROTO"),v=function(){},y=function(t){return"<"+p+">"+t+"</"+p+">"},g=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;m="undefined"!=typeof document?document.domain&&n?g(n):(e=c("iframe"),r="java"+p+":",e.style.display="none",s.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):g(n);for(var o=a.length;o--;)delete m[f][a[o]];return m()};u[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[f]=o(t),r=new v,v[f]=null,r[d]=t):r=m(),void 0===e?r:i.f(r,e)}},2405:(t,e,r)=>{"use strict";r(6468)("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r(6938))},2478:(t,e,r)=>{"use strict";var n=r(9504),o=r(8981),i=Math.floor,a=n("".charAt),u=n("".replace),s=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,p){var d=r+t.length,v=n.length,y=l;return void 0!==f&&(f=o(f),y=c),u(p,y,function(o,u){var c;switch(a(u,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,r);case"'":return s(e,d);case"<":c=f[s(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>v){var p=i(l/10);return 0===p?o:p<=v?void 0===n[p-1]?a(u,1):n[p-1]+a(u,1):o}c=n[l-1]}return void 0===c?"":c})}},2529:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},2652:(t,e,r)=>{"use strict";var n=r(6080),o=r(9565),i=r(8551),a=r(6823),u=r(4209),s=r(6198),c=r(1625),l=r(81),f=r(851),p=r(9539),d=TypeError,v=function(t,e){this.stopped=t,this.result=e},y=v.prototype;t.exports=function(t,e,r){var g,m,h,b,x,w,O,S=r&&r.that,j=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),C=n(e,S),I=function(t){return g&&p(g,"normal"),new v(!0,t)},D=function(t){return j?(i(t),T?C(t[0],t[1],I):C(t[0],t[1])):T?C(t,I):C(t)};if(P)g=t.iterator;else if(E)g=t;else{if(!(m=f(t)))throw new d(a(t)+" is not iterable");if(u(m)){for(h=0,b=s(t);b>h;h++)if((x=D(t[h]))&&c(y,x))return x;return new v(!1)}g=l(t,m)}for(w=P?t.next:g.next;!(O=o(w,g)).done;){try{x=D(O.value)}catch(t){p(g,"throw",t)}if("object"==typeof x&&x&&c(y,x))return x}return new v(!1)}},2675:(t,e,r)=>{"use strict";r(6761),r(1510),r(7812),r(3110),r(9773)},2694:(t,e,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},2744:(t,e,r)=>{"use strict";var n=r(9039);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},2777:(t,e,r)=>{"use strict";var n=r(9565),o=r(34),i=r(757),a=r(5966),u=r(4270),s=r(8227),c=TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,s=a(t,l);if(s){if(void 0===e&&(e="default"),r=n(s,t,e),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},2787:(t,e,r)=>{"use strict";var n=r(9297),o=r(4901),i=r(8981),a=r(6119),u=r(2211),s=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var e=i(t);if(n(e,s))return e[s];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},2796:(t,e,r)=>{"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,a=function(t,e){var r=s[u(t)];return r===l||r!==c&&(o(e)?n(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},2812:t=>{"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},2839:(t,e,r)=>{"use strict";var n=r(4576).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},2892:(t,e,r)=>{"use strict";var n=r(6518),o=r(6395),i=r(3724),a=r(4576),u=r(9167),s=r(9504),c=r(2796),l=r(9297),f=r(3167),p=r(1625),d=r(757),v=r(2777),y=r(9039),g=r(8480).f,m=r(7347).f,h=r(4913).f,b=r(1240),x=r(3802).trim,w="Number",O=a[w],S=u[w],j=O.prototype,P=a.TypeError,E=s("".slice),T=s("".charCodeAt),C=c(w,!O(" 0o1")||!O("0b1")||O("+0x1")),I=function(t){var e,r=arguments.length<1?0:O(function(t){var e=v(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,u,s,c=v(t,"number");if(d(c))throw new P("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=T(c,0))||45===e){if(88===(r=T(c,2))||120===r)return NaN}else if(48===e){switch(T(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=E(c,2)).length,u=0;u<a;u++)if((s=T(i,u))<48||s>o)return NaN;return parseInt(i,n)}return+c}(e)}(t));return p(j,e=this)&&y(function(){b(e)})?f(Object(r),this,I):r};I.prototype=j,C&&!o&&(j.constructor=I),n({global:!0,constructor:!0,wrap:!0,forced:C},{Number:I});var D=function(t,e){for(var r,n=i?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)l(e,r=n[o])&&!l(t,r)&&h(t,r,m(e,r))};o&&S&&D(u[w],S),(C||o)&&D(u[w],O)},2953:(t,e,r)=>{"use strict";var n=r(4576),o=r(7400),i=r(9296),a=r(3792),u=r(6699),s=r(687),c=r(8227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{u(t,c,l)}catch(e){t[c]=l}if(s(t,e,!0),o[e])for(var r in a)if(t[r]!==a[r])try{u(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var p in o)f(n[p]&&n[p].prototype,p);f(i,"DOMTokenList")},2967:(t,e,r)=>{"use strict";var n=r(6706),o=r(34),i=r(7750),a=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),a(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},3110:(t,e,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(8745),a=r(9565),u=r(9504),s=r(9039),c=r(4901),l=r(757),f=r(7680),p=r(6933),d=r(4495),v=String,y=o("JSON","stringify"),g=u(/./.exec),m=u("".charAt),h=u("".charCodeAt),b=u("".replace),x=u(1.1.toString),w=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,j=!d||s(function(){var t=o("Symbol")("stringify detection");return"[null]"!==y([t])||"{}"!==y({a:t})||"{}"!==y(Object(t))}),P=s(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),E=function(t,e){var r=f(arguments),n=p(e);if(c(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(c(n)&&(e=a(n,this,v(t),e)),!l(e))return e},i(y,null,r)},T=function(t,e,r){var n=m(r,e-1),o=m(r,e+1);return g(O,t)&&!g(S,o)||g(S,t)&&!g(O,n)?"\\u"+x(h(t,0),16):t};y&&n({target:"JSON",stat:!0,arity:3,forced:j||P},{stringify:function(t,e,r){var n=f(arguments),o=i(j?E:y,null,n);return P&&"string"==typeof o?b(o,w,T):o}})},3138:t=>{"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},3167:(t,e,r)=>{"use strict";var n=r(4901),o=r(34),i=r(2967);t.exports=function(t,e,r){var a,u;return i&&n(a=e.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&i(t,u),t}},3179:(t,e,r)=>{"use strict";var n=r(2140),o=r(6955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},3362:(t,e,r)=>{"use strict";r(436),r(6499),r(2003),r(7743),r(1481),r(280)},3389:(t,e,r)=>{"use strict";var n=r(4576),o=r(3724),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},3392:(t,e,r)=>{"use strict";var n=r(9504),o=0,i=Math.random(),a=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3418:(t,e,r)=>{"use strict";var n=r(6518),o=r(7916);n({target:"Array",stat:!0,forced:!r(4428)(function(t){Array.from(t)})},{from:o})},3438:(t,e,r)=>{"use strict";var n=r(8551),o=r(34),i=r(6043);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},3451:(t,e,r)=>{"use strict";var n=r(6518),o=r(9504),i=r(421),a=r(34),u=r(9297),s=r(4913).f,c=r(8480),l=r(298),f=r(4124),p=r(3392),d=r(2744),v=!1,y=p("meta"),g=0,m=function(t){s(t,y,{value:{objectID:"O"+g++,weakData:{}}})},h=t.exports={enable:function(){h.enable=function(){},v=!0;var t=c.f,e=o([].splice),r={};r[y]=1,t(r).length&&(c.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===y){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,y)){if(!f(t))return"F";if(!e)return"E";m(t)}return t[y].objectID},getWeakData:function(t,e){if(!u(t,y)){if(!f(t))return!0;if(!e)return!1;m(t)}return t[y].weakData},onFreeze:function(t){return d&&v&&f(t)&&!u(t,y)&&m(t),t}};i[y]=!0},3500:(t,e,r)=>{"use strict";var n=r(4576),o=r(7400),i=r(9296),a=r(235),u=r(6699),s=function(t){if(t&&t.forEach!==a)try{u(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in o)o[c]&&s(n[c]&&n[c].prototype);s(i)},3506:(t,e,r)=>{"use strict";var n=r(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},3517:(t,e,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),a=r(6955),u=r(7751),s=r(3706),c=function(){},l=u("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),d=!f.test(c),v=function(t){if(!i(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(f,s(t))}catch(t){return!0}};y.sham=!0,t.exports=!l||o(function(){var t;return v(v.call)||!v(Object)||!v(function(){t=!0})||t})?y:v},3635:(t,e,r)=>{"use strict";var n=r(9039),o=r(4576).RegExp;t.exports=n(function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},3640:(t,e,r)=>{"use strict";var n=r(8551),o=r(4270),i=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},3706:(t,e,r)=>{"use strict";var n=r(9504),o=r(4901),i=r(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3724:(t,e,r)=>{"use strict";var n=r(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3792:(t,e,r)=>{"use strict";var n=r(5397),o=r(6469),i=r(6269),a=r(1181),u=r(4913).f,s=r(1088),c=r(2529),l=r(6395),f=r(3724),p="Array Iterator",d=a.set,v=a.getterFor(p);t.exports=s(Array,"Array",function(t,e){d(this,{type:p,target:n(t),index:0,kind:e})},function(){var t=v(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)},"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==y.name)try{u(y,"name",{value:"values"})}catch(t){}},3802:(t,e,r)=>{"use strict";var n=r(9504),o=r(7750),i=r(655),a=r(7452),u=n("".replace),s=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var r=i(o(e));return 1&t&&(r=u(r,s,"")),2&t&&(r=u(r,c,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},3851:(t,e,r)=>{"use strict";var n=r(6518),o=r(9039),i=r(5397),a=r(7347).f,u=r(3724);n({target:"Object",stat:!0,forced:!u||o(function(){a(1)}),sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},3925:(t,e,r)=>{"use strict";var n=r(34);t.exports=function(t){return n(t)||null===t}},3994:(t,e,r)=>{"use strict";var n=r(7657).IteratorPrototype,o=r(2360),i=r(6980),a=r(687),u=r(6269),s=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),a(t,l,!1,!0),u[l]=s,t}},4012:t=>{"use strict";t.exports=e},4055:(t,e,r)=>{"use strict";var n=r(4576),o=r(34),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},4117:t=>{"use strict";t.exports=function(t){return null==t}},4124:(t,e,r)=>{"use strict";var n=r(9039),o=r(34),i=r(2195),a=r(5652),u=Object.isExtensible,s=n(function(){u(1)});t.exports=s||a?function(t){return!!o(t)&&(!a||"ArrayBuffer"!==i(t))&&(!u||u(t))}:u},4133:(t,e,r)=>{"use strict";r.d(e,{A:()=>d}),r(2675),r(9463),r(2259),r(5700),r(3792),r(9572),r(2892),r(875),r(287),r(6099),r(825),r(7764),r(2953);var n=r(4012),o=r.n(n),i=r(6243),a=r(4848);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}const d=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e,[t])).state={hasError:!1,error:null},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),r=e,o=[{key:"getDerivedStateFromError",value:function(t){return{hasError:!0,error:t}}}],(n=[{key:"componentDidCatch",value:function(t,e){var r;console.error("Lazy loading failed:",t,e),null!==(r=window.Digit)&&void 0!==r&&null!==(r=r.Telemetry)&&void 0!==r&&r.error&&window.Digit.Telemetry.error({message:"Lazy loading failed",error:t.message,stack:t.stack,componentStack:e.componentStack})}},{key:"render",value:function(){var t=this;return this.state.hasError?(0,a.jsx)(i.ErrorScreen,{initData:{},onRetry:function(){t.setState({hasError:!1,error:null}),"undefined"!=typeof window&&window.location.reload()}}):this.props.children}}])&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(o().Component)},4209:(t,e,r)=>{"use strict";var n=r(8227),o=r(6269),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4215:(t,e,r)=>{"use strict";var n=r(4576),o=r(2839),i=r(2195),a=function(t){return o.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},4265:(t,e,r)=>{"use strict";var n=r(2839);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},4270:(t,e,r)=>{"use strict";var n=r(9565),o=r(4901),i=r(34),a=TypeError;t.exports=function(t,e){var r,u;if("string"===e&&o(r=t.toString)&&!i(u=n(r,t)))return u;if(o(r=t.valueOf)&&!i(u=n(r,t)))return u;if("string"!==e&&o(r=t.toString)&&!i(u=n(r,t)))return u;throw new a("Can't convert object to primitive value")}},4376:(t,e,r)=>{"use strict";var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4423:(t,e,r)=>{"use strict";var n=r(6518),o=r(9617).includes,i=r(9039),a=r(6469);n({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4428:(t,e,r)=>{"use strict";var n=r(8227)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},4442:t=>{"use strict";t.exports=i},4456:t=>{"use strict";t.exports=n},4495:(t,e,r)=>{"use strict";var n=r(9519),o=r(9039),i=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4576:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4598:(t,e,r)=>{"use strict";var n=r(9039);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){return 1},1)})}},4659:(t,e,r)=>{"use strict";var n=r(3724),o=r(4913),i=r(6980);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},4782:(t,e,r)=>{"use strict";var n=r(6518),o=r(4376),i=r(3517),a=r(34),u=r(5610),s=r(6198),c=r(5397),l=r(4659),f=r(8227),p=r(597),d=r(7680),v=p("slice"),y=f("species"),g=Array,m=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var r,n,f,p=c(this),v=s(p),h=u(t,v),b=u(void 0===e?v:e,v);if(o(p)&&(r=p.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[y]))&&(r=void 0),r===g||void 0===r))return d(p,h,b);for(n=new(void 0===r?g:r)(m(b-h,0)),f=0;h<b;h++,f++)h in p&&l(n,f,p[h]);return n.length=f,n}})},4848:(t,e,r)=>{"use strict";t.exports=r(9698)},4901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:(t,e,r)=>{"use strict";var n=r(3724),o=r(5917),i=r(8686),a=r(8551),u=r(6969),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=n?i?function(t,e,r){if(a(t),e=u(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=u(e),a(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5031:(t,e,r)=>{"use strict";var n=r(7751),o=r(9504),i=r(8480),a=r(3717),u=r(8551),s=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(u(t)),r=a.f;return r?s(e,r(t)):e}},5053:t=>{"use strict";t.exports=s},5213:(t,e,r)=>{"use strict";var n=r(4576),o=r(9039),i=n.RegExp,a=!o(function(){var t=!0;try{i(".","d")}catch(e){t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in t&&(a.hasIndices="d"),a)o(u,a[u]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(e)!==n||r!==n});t.exports={correct:a}},5397:(t,e,r)=>{"use strict";var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},5440:(t,e,r)=>{"use strict";var n=r(8745),o=r(9565),i=r(9504),a=r(9228),u=r(9039),s=r(8551),c=r(4901),l=r(34),f=r(1291),p=r(8014),d=r(655),v=r(7750),y=r(7829),g=r(5966),m=r(2478),h=r(1034),b=r(6682),x=r(8227)("replace"),w=Math.max,O=Math.min,S=i([].concat),j=i([].push),P=i("".indexOf),E=i("".slice),T=function(t){return void 0===t?t:String(t)},C="$0"==="a".replace(/./,"$0"),I=!!/./[x]&&""===/./[x]("a","$0");a("replace",function(t,e,r){var i=I?"$":"$0";return[function(t,r){var n=v(this),i=l(t)?g(t,x):void 0;return i?o(i,t,n,r):o(e,d(n),t,r)},function(t,o){var a=s(this),u=d(t);if("string"==typeof o&&-1===P(o,i)&&-1===P(o,"$<")){var l=r(e,a,u,o);if(l.done)return l.value}var v=c(o);v||(o=d(o));var g,x=d(h(a)),C=-1!==P(x,"g");C&&(g=-1!==P(x,"u"),a.lastIndex=0);for(var I,D=[];null!==(I=b(a,u))&&(j(D,I),C);)""===d(I[0])&&(a.lastIndex=y(u,p(a.lastIndex),g));for(var A="",N=0,_=0;_<D.length;_++){for(var R,k=d((I=D[_])[0]),L=w(O(f(I.index),u.length),0),U=[],M=1;M<I.length;M++)j(U,T(I[M]));var F=I.groups;if(v){var B=S([k],U,L,u);void 0!==F&&j(B,F),R=d(n(o,void 0,B))}else R=m(k,u,L,U,F,o);L>=N&&(A+=E(u,N,L)+R,N=L+k.length)}return A+E(u,N)}]},!!u(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!C||I)},5506:(t,e,r)=>{"use strict";var n=r(6518),o=r(2357).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},5548:(t,e,r)=>{"use strict";var n=r(3517),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},5556:(t,e,r)=>{t.exports=r(2694)()},5590:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(6243),o=(r(4012),r(5953)),i=r(1599),a=r(4848);const u=function(t){var e,r=t.showTenant,u=void 0===r||r,s=Digit.Hooks.useStore.getInitData(),c=s.data,l=s.isLoading,f=(c||{}).stateInfo,p=(0,o.useTranslation)().t;return l?(0,a.jsx)(n.Loader,{}):(0,a.jsxs)("div",{className:"bannerHeader",children:[(0,a.jsx)(i.A,{className:"bannerLogo",src:null==f?void 0:f.logoUrl,style:u?{}:{borderRight:"unset"},alt:"Digit Banner"}),u&&(null==f?void 0:f.code)&&(0,a.jsx)("p",{children:p("TENANT_TENANTS_".concat(null==f||null===(e=f.code)||void 0===e?void 0:e.toUpperCase()))})]})}},5610:(t,e,r)=>{"use strict";var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5652:(t,e,r)=>{"use strict";var n=r(9039);t.exports=n(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})},5700:(t,e,r)=>{"use strict";var n=r(511),o=r(8242);n("toPrimitive"),o()},5745:(t,e,r)=>{"use strict";var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},5749:(t,e,r)=>{"use strict";var n=r(788),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},5917:(t,e,r)=>{"use strict";var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5953:t=>{"use strict";t.exports=r},5957:(t,e,r)=>{"use strict";r.d(e,{A:()=>c}),r(2675),r(9463),r(2259),r(113),r(3418),r(3792),r(2062),r(4782),r(2010),r(6099),r(7495),r(8781),r(7764),r(2953);var n=r(6243),o=r(4012),i=r.n(o),a=r(5953),u=r(4848);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const c=function(t){var e,r,c,l=t.dropdown||!1,f=Digit.Hooks.useStore.getInitData(),p=f.data,d=f.isLoading,v=p||{},y=v.languages,g=v.stateInfo,m=(0,a.useTranslation)().t,h=Digit.StoreData.getCurrentLanguage(),b=(r=(0,o.useState)(h),c=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(r,c)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(r,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=b[1],O=function(t){w(t.value),Digit.LocalizationService.changeLanguage(t.value,g.code)};return d?null:l?(0,u.jsx)("div",{children:(0,u.jsx)(n.Dropdown,{className:"language-dropdown",option:y,selected:null==y?void 0:y.find(function(t){return(null==t?void 0:t.value)===h}),optionKey:"label",select:O,freeze:!0,customSelector:(0,u.jsx)("label",{className:"cp",children:m(null==y||null===(e=y.find(function(t){return(null==t?void 0:t.value)===x}))||void 0===e?void 0:e.label)})})}):(0,u.jsxs)(i().Fragment,{children:[(0,u.jsx)("div",{style:{marginBottom:"5px"},children:"Language"}),(0,u.jsx)("div",{className:"language-selector",children:y.map(function(t,e){return(0,u.jsx)("div",{className:"language-button-container",children:(0,u.jsx)(n.Button,{label:t.label,onClick:function(){return O(t)},variation:t.value===x?"primary":""})},e)})})]})}},5966:(t,e,r)=>{"use strict";var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},6043:(t,e,r)=>{"use strict";var n=r(9306),o=TypeError,i=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},6080:(t,e,r)=>{"use strict";var n=r(7476),o=r(9306),i=r(616),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},6099:(t,e,r)=>{"use strict";var n=r(2140),o=r(6840),i=r(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},6119:(t,e,r)=>{"use strict";var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6193:(t,e,r)=>{"use strict";var n=r(4215);t.exports="NODE"===n},6198:(t,e,r)=>{"use strict";var n=r(8014);t.exports=function(t){return n(t.length)}},6243:e=>{"use strict";e.exports=t},6269:t=>{"use strict";t.exports={}},6279:(t,e,r)=>{"use strict";var n=r(6840);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},6319:(t,e,r)=>{"use strict";var n=r(8551),o=r(9539);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},6395:t=>{"use strict";t.exports=!1},6468:(t,e,r)=>{"use strict";var n=r(6518),o=r(4576),i=r(9504),a=r(2796),u=r(6840),s=r(3451),c=r(2652),l=r(679),f=r(4901),p=r(4117),d=r(34),v=r(9039),y=r(4428),g=r(687),m=r(3167);t.exports=function(t,e,r){var h=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=h?"set":"add",w=o[t],O=w&&w.prototype,S=w,j={},P=function(t){var e=i(O[t]);u(O,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(a(t,!f(w)||!(b||O.forEach&&!v(function(){(new w).entries().next()}))))S=r.getConstructor(e,t,h,x),s.enable();else if(a(t,!0)){var E=new S,T=E[x](b?{}:-0,1)!==E,C=v(function(){E.has(1)}),I=y(function(t){new w(t)}),D=!b&&v(function(){for(var t=new w,e=5;e--;)t[x](e,e);return!t.has(-0)});I||((S=e(function(t,e){l(t,O);var r=m(new w,t,S);return p(e)||c(e,r[x],{that:r,AS_ENTRIES:h}),r})).prototype=O,O.constructor=S),(C||D)&&(P("delete"),P("has"),h&&P("get")),(D||T)&&P(x),b&&O.clear&&delete O.clear}return j[t]=S,n({global:!0,constructor:!0,forced:S!==w},j),g(S,t),b||r.setStrong(S,t,h),S}},6469:(t,e,r)=>{"use strict";var n=r(8227),o=r(2360),i=r(4913).f,a=n("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},6499:(t,e,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),a=r(6043),u=r(1103),s=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(t){var e=this,r=a.f(e),n=r.resolve,c=r.reject,l=u(function(){var r=i(e.resolve),a=[],u=0,l=1;s(t,function(t){var i=u++,s=!1;l++,o(r,e,t).then(function(t){s||(s=!0,a[i]=t,--l||n(a))},c)}),--l||n(a)});return l.error&&c(l.value),r.promise}})},6518:(t,e,r)=>{"use strict";var n=r(4576),o=r(7347).f,i=r(6699),a=r(6840),u=r(9433),s=r(7740),c=r(2796);t.exports=function(t,e){var r,l,f,p,d,v=t.target,y=t.global,g=t.stat;if(r=y?n:g?n[v]||u(v,{}):n[v]&&n[v].prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(d=o(r,l))&&d.value:r[l],!c(y?l:v+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(r,l,p,t)}}},6682:(t,e,r)=>{"use strict";var n=r(9565),o=r(8551),i=r(4901),a=r(2195),u=r(7323),s=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var c=n(r,t,e);return null!==c&&o(c),c}if("RegExp"===a(t))return n(u,t,e);throw new s("RegExp#exec called on incompatible receiver")}},6699:(t,e,r)=>{"use strict";var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6706:(t,e,r)=>{"use strict";var n=r(9504),o=r(9306);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},6761:(t,e,r)=>{"use strict";var n=r(6518),o=r(4576),i=r(9565),a=r(9504),u=r(6395),s=r(3724),c=r(4495),l=r(9039),f=r(9297),p=r(1625),d=r(8551),v=r(5397),y=r(6969),g=r(655),m=r(6980),h=r(2360),b=r(1072),x=r(8480),w=r(298),O=r(3717),S=r(7347),j=r(4913),P=r(6801),E=r(8773),T=r(6840),C=r(2106),I=r(5745),D=r(6119),A=r(421),N=r(3392),_=r(8227),R=r(1951),k=r(511),L=r(8242),U=r(687),M=r(1181),F=r(9213).forEach,B=D("hidden"),G="Symbol",z="prototype",q=M.set,W=M.getterFor(G),$=Object[z],H=o.Symbol,V=H&&H[z],Y=o.RangeError,K=o.TypeError,X=o.QObject,Z=S.f,Q=j.f,J=w.f,tt=E.f,et=a([].push),rt=I("symbols"),nt=I("op-symbols"),ot=I("wks"),it=!X||!X[z]||!X[z].findChild,at=function(t,e,r){var n=Z($,e);n&&delete $[e],Q(t,e,r),n&&t!==$&&Q($,e,n)},ut=s&&l(function(){return 7!==h(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?at:Q,st=function(t,e){var r=rt[t]=h(V);return q(r,{type:G,tag:t,description:e}),s||(r.description=e),r},ct=function(t,e,r){t===$&&ct(nt,e,r),d(t);var n=y(e);return d(r),f(rt,n)?(r.enumerable?(f(t,B)&&t[B][n]&&(t[B][n]=!1),r=h(r,{enumerable:m(0,!1)})):(f(t,B)||Q(t,B,m(1,h(null))),t[B][n]=!0),ut(t,n,r)):Q(t,n,r)},lt=function(t,e){d(t);var r=v(e),n=b(r).concat(vt(r));return F(n,function(e){s&&!i(ft,r,e)||ct(t,e,r[e])}),t},ft=function(t){var e=y(t),r=i(tt,this,e);return!(this===$&&f(rt,e)&&!f(nt,e))&&(!(r||!f(this,e)||!f(rt,e)||f(this,B)&&this[B][e])||r)},pt=function(t,e){var r=v(t),n=y(e);if(r!==$||!f(rt,n)||f(nt,n)){var o=Z(r,n);return!o||!f(rt,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},dt=function(t){var e=J(v(t)),r=[];return F(e,function(t){f(rt,t)||f(A,t)||et(r,t)}),r},vt=function(t){var e=t===$,r=J(e?nt:v(t)),n=[];return F(r,function(t){!f(rt,t)||e&&!f($,t)||et(n,rt[t])}),n};c||(T(V=(H=function(){if(p(V,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=N(t),r=function(t){var n=void 0===this?o:this;n===$&&i(r,nt,t),f(n,B)&&f(n[B],e)&&(n[B][e]=!1);var a=m(1,t);try{ut(n,e,a)}catch(t){if(!(t instanceof Y))throw t;at(n,e,a)}};return s&&it&&ut($,e,{configurable:!0,set:r}),st(e,t)})[z],"toString",function(){return W(this).tag}),T(H,"withoutSetter",function(t){return st(N(t),t)}),E.f=ft,j.f=ct,P.f=lt,S.f=pt,x.f=w.f=dt,O.f=vt,R.f=function(t){return st(_(t),t)},s&&(C(V,"description",{configurable:!0,get:function(){return W(this).description}}),u||T($,"propertyIsEnumerable",ft,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(b(ot),function(t){k(t)}),n({target:G,stat:!0,forced:!c},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(t,e){return void 0===e?h(t):lt(h(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),L(),U(H,G),A[B]=!0},6801:(t,e,r)=>{"use strict";var n=r(3724),o=r(8686),i=r(4913),a=r(8551),u=r(5397),s=r(1072);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=u(e),o=s(e),c=o.length,l=0;c>l;)i.f(t,r=o[l++],n[r]);return t}},6823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6837:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6840:(t,e,r)=>{"use strict";var n=r(4901),o=r(4913),i=r(283),a=r(9433);t.exports=function(t,e,r,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:e;if(n(r)&&i(r,c,u),u.global)s?t[e]=r:a(e,r);else{try{u.unsafe?t[e]&&(s=!0):delete t[e]}catch(t){}s?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6933:(t,e,r)=>{"use strict";var n=r(9504),o=r(4376),i=r(4901),a=r(2195),u=r(655),s=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n<e;n++){var c=t[n];"string"==typeof c?s(r,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||s(r,u(c))}var l=r.length,f=!0;return function(t,e){if(f)return f=!1,e;if(o(this))return e;for(var n=0;n<l;n++)if(r[n]===t)return e}}}},6938:(t,e,r)=>{"use strict";var n=r(2360),o=r(2106),i=r(6279),a=r(6080),u=r(679),s=r(4117),c=r(2652),l=r(1088),f=r(2529),p=r(7633),d=r(3724),v=r(3451).fastKey,y=r(1181),g=y.set,m=y.getterFor;t.exports={getConstructor:function(t,e,r,l){var f=t(function(t,o){u(t,p),g(t,{type:e,index:n(null),first:null,last:null,size:0}),d||(t.size=0),s(o)||c(o,t[l],{that:t,AS_ENTRIES:r})}),p=f.prototype,y=m(e),h=function(t,e,r){var n,o,i=y(t),a=b(t,e);return a?a.value=r:(i.last=a={index:o=v(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=a),n&&(n.next=a),d?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},b=function(t,e){var r,n=y(t),o=v(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=y(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),d?t.size=0:this.size=0},delete:function(t){var e=this,r=y(e),n=b(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),d?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=y(this),n=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(p,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return h(this,0===t?0:t,e)}}:{add:function(t){return h(this,t=0===t?0:t,t)}}),d&&o(p,"size",{configurable:!0,get:function(){return y(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=m(e),i=m(n);l(t,e,function(t,e){g(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?f("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,f(void 0,!0))},r?"entries":"values",!r,!0),p(e)}}},6955:(t,e,r)=>{"use strict";var n=r(2140),o=r(4901),i=r(2195),a=r(8227)("toStringTag"),u=Object,s="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=u(t),a))?r:s?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},6969:(t,e,r)=>{"use strict";var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},6980:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7007:(t,e,r)=>{"use strict";r.d(e,{A:()=>v}),r(2675),r(9463),r(2259),r(5700),r(4423),r(3792),r(9572),r(2892),r(875),r(287),r(6099),r(825),r(7495),r(1699),r(7764),r(5440),r(2953);var n=r(4012),o=r.n(n),i=r(486),a=r(4848);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var d=function(){if("undefined"==typeof window)return(0,a.jsx)("span",{});try{var t,e=(null===(t=window)||void 0===t?void 0:t.contextPath)||"",r=Digit.UserService.getType(),n="/".concat(e,"employee"===r?"/employee/user/error":"/citizen/error"),o=window.location.href;if(o.includes("employee/user/error")||o.includes("citizen/error"))return(0,a.jsx)("span",{});try{window.location.href=n}catch(t){console.warn("Navigation failed in error boundary:",t);try{window.location.replace(n)}catch(t){console.error("Both href and replace failed:",t)}}}catch(t){console.error("Error in Redircter component:",t)}return(0,a.jsx)("span",{})};const v=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e,[t])).state={error:null,errorStack:null,hasError:!1,module:null,action:null,info:null},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),r=e,o=[{key:"getDerivedStateFromError",value:function(t){return{error:null==t?void 0:t.message,hasError:!0,errorStack:null==t?void 0:t.stack,module:null==t?void 0:t.module,action:null==t?void 0:t.action,info:null==t?void 0:t.info}}}],(n=[{key:"componentDidCatch",value:function(t,e){this.setState({error:null==t?void 0:t.message,hasError:!0,errorStack:null==t?void 0:t.stack,module:null==t?void 0:t.module,action:null==t?void 0:t.action,info:e})}},{key:"render",value:function(){return this.state.hasError?(0,a.jsxs)("div",{className:"error-boundary",children:[(0,a.jsx)(d,{}),(0,a.jsx)(i.A,{initData:this.props.initData,errorData:this.state})]}):this.props.children}}])&&s(r.prototype,n),o&&s(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(o().Component)},7040:(t,e,r)=>{"use strict";var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(t,e,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(2195),a=Object,u=n("".split);t.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?u(t,""):a(t)}:a},7131:(t,e,r)=>{"use strict";r.d(e,{A:()=>o}),r(4012);var n=r(4848);const o=function(t){var e=t.children;return(0,n.jsx)("div",{className:"banner banner-container",children:e})}},7323:(t,e,r)=>{"use strict";var n,o,i=r(9565),a=r(9504),u=r(655),s=r(7979),c=r(8429),l=r(5745),f=r(2360),p=r(1181).get,d=r(3635),v=r(8814),y=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,h=a("".charAt),b=a("".indexOf),x=a("".replace),w=a("".slice),O=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),S=c.BROKEN_CARET,j=void 0!==/()??/.exec("")[1];(O||j||S||d||v)&&(m=function(t){var e,r,n,o,a,c,l,d=this,v=p(d),P=u(t),E=v.raw;if(E)return E.lastIndex=d.lastIndex,e=i(m,E,P),d.lastIndex=E.lastIndex,e;var T=v.groups,C=S&&d.sticky,I=i(s,d),D=d.source,A=0,N=P;if(C&&(I=x(I,"y",""),-1===b(I,"g")&&(I+="g"),N=w(P,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==h(P,d.lastIndex-1))&&(D="(?: "+D+")",N=" "+N,A++),r=new RegExp("^(?:"+D+")",I)),j&&(r=new RegExp("^"+D+"$(?!\\s)",I)),O&&(n=d.lastIndex),o=i(g,C?r:d,N),C?o?(o.input=w(o.input,A),o[0]=w(o[0],A),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:O&&o&&(d.lastIndex=d.global?o.index+o[0].length:n),j&&o&&o.length>1&&i(y,o[0],r,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)}),o&&T)for(o.groups=c=f(null),a=0;a<T.length;a++)c[(l=T[a])[0]]=o[l[1]];return o}),t.exports=m},7347:(t,e,r)=>{"use strict";var n=r(3724),o=r(9565),i=r(8773),a=r(6980),u=r(5397),s=r(6969),c=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=u(t),e=s(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},7400:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7433:(t,e,r)=>{"use strict";var n=r(4376),o=r(3517),i=r(34),a=r(8227)("species"),u=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===u||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?u:e}},7452:t=>{"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7476:(t,e,r)=>{"use strict";var n=r(2195),o=r(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},7495:(t,e,r)=>{"use strict";var n=r(6518),o=r(7323);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},7629:(t,e,r)=>{"use strict";var n=r(6395),o=r(4576),i=r(9433),a="__core-js_shared__",u=t.exports=o[a]||i(a,{});(u.versions||(u.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:(t,e,r)=>{"use strict";var n=r(7751),o=r(2106),i=r(8227),a=r(3724),u=i("species");t.exports=function(t){var e=n(t);a&&e&&!e[u]&&o(e,u,{configurable:!0,get:function(){return this}})}},7657:(t,e,r)=>{"use strict";var n,o,i,a=r(9039),u=r(4901),s=r(34),c=r(2360),l=r(2787),f=r(6840),p=r(8227),d=r(6395),v=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):y=!0),!s(n)||a(function(){var t={};return n[v].call(t)!==t})?n={}:d&&(n=c(n)),u(n[v])||f(n,v,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},7680:(t,e,r)=>{"use strict";var n=r(9504);t.exports=n([].slice)},7740:(t,e,r)=>{"use strict";var n=r(9297),o=r(5031),i=r(7347),a=r(4913);t.exports=function(t,e,r){for(var u=o(e),s=a.f,c=i.f,l=0;l<u.length;l++){var f=u[l];n(t,f)||r&&n(r,f)||s(t,f,c(e,f))}}},7743:(t,e,r)=>{"use strict";var n=r(6518),o=r(9565),i=r(9306),a=r(6043),u=r(1103),s=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(t){var e=this,r=a.f(e),n=r.reject,c=u(function(){var a=i(e.resolve);s(t,function(t){o(a,e,t).then(r.resolve,n)})});return c.error&&n(c.value),r.promise}})},7750:(t,e,r)=>{"use strict";var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},7751:(t,e,r)=>{"use strict";var n=r(4576),o=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},7764:(t,e,r)=>{"use strict";var n=r(8183).charAt,o=r(655),i=r(1181),a=r(1088),u=r(2529),s="String Iterator",c=i.set,l=i.getterFor(s);a(String,"String",function(t){c(this,{type:s,string:o(t),index:0})},function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?u(void 0,!0):(t=n(r,o),e.index+=t.length,u(t,!1))})},7812:(t,e,r)=>{"use strict";var n=r(6518),o=r(9297),i=r(757),a=r(6823),u=r(5745),s=r(1296),c=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},7829:(t,e,r)=>{"use strict";var n=r(8183).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},7860:(t,e,r)=>{"use strict";var n=r(2839);t.exports=/web0s(?!.*chrome)/i.test(n)},7916:(t,e,r)=>{"use strict";var n=r(6080),o=r(9565),i=r(8981),a=r(6319),u=r(4209),s=r(3517),c=r(6198),l=r(4659),f=r(81),p=r(851),d=Array;t.exports=function(t){var e=i(t),r=s(this),v=arguments.length,y=v>1?arguments[1]:void 0,g=void 0!==y;g&&(y=n(y,v>2?arguments[2]:void 0));var m,h,b,x,w,O,S=p(e),j=0;if(!S||this===d&&u(S))for(m=c(e),h=r?new this(m):d(m);m>j;j++)O=g?y(e[j],j):e[j],l(h,j,O);else for(h=r?new this:[],w=(x=f(e,S)).next;!(b=o(w,x)).done;j++)O=g?a(x,y,[b.value,j],!0):b.value,l(h,j,O);return h.length=j,h}},7979:(t,e,r)=>{"use strict";var n=r(8551);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},8014:(t,e,r)=>{"use strict";var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8183:(t,e,r)=>{"use strict";var n=r(9504),o=r(1291),i=r(655),a=r(7750),u=n("".charAt),s=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,f=i(a(e)),p=o(r),d=f.length;return p<0||p>=d?t?"":void 0:(n=s(f,p))<55296||n>56319||p+1===d||(l=s(f,p+1))<56320||l>57343?t?u(f,p):n:t?c(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},8227:(t,e,r)=>{"use strict";var n=r(4576),o=r(5745),i=r(9297),a=r(3392),u=r(4495),s=r(7040),c=n.Symbol,l=o("wks"),f=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=u&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},8242:(t,e,r)=>{"use strict";var n=r(9565),o=r(7751),i=r(8227),a=r(6840);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,u=i("toPrimitive");e&&!e[u]&&a(e,u,function(t){return n(r,this)},{arity:1})}},8265:t=>{"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},8429:(t,e,r)=>{"use strict";var n=r(9039),o=r(4576).RegExp,i=n(function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),a=i||n(function(){return!o("a","y").sticky}),u=i||n(function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},8480:(t,e,r)=>{"use strict";var n=r(1828),o=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8551:(t,e,r)=>{"use strict";var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},8622:(t,e,r)=>{"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8686:(t,e,r)=>{"use strict";var n=r(3724),o=r(9039);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8706:(t,e,r)=>{"use strict";var n=r(6518),o=r(9039),i=r(4376),a=r(34),u=r(8981),s=r(6198),c=r(6837),l=r(4659),f=r(1469),p=r(597),d=r(8227),v=r(9519),y=d("isConcatSpreadable"),g=v>=51||!o(function(){var t=[];return t[y]=!1,t.concat()[0]!==t}),m=function(t){if(!a(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(t){var e,r,n,o,i,a=u(this),p=f(a,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(m(i=-1===e?a:arguments[e]))for(o=s(i),c(d+o),r=0;r<o;r++,d++)r in i&&l(p,d,i[r]);else c(d+1),l(p,d++,i);return p.length=d,p}})},8727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(t,e,r)=>{"use strict";var n=r(616),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},8773:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},8781:(t,e,r)=>{"use strict";var n=r(350).PROPER,o=r(6840),i=r(8551),a=r(655),u=r(9039),s=r(1034),c="toString",l=RegExp.prototype,f=l[c],p=u(function(){return"/a/b"!==f.call({source:"a",flags:"b"})}),d=n&&f.name!==c;(p||d)&&o(l,c,function(){var t=i(this);return"/"+a(t.source)+"/"+a(s(t))},{unsafe:!0})},8814:(t,e,r)=>{"use strict";var n=r(9039),o=r(4576).RegExp;t.exports=n(function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},8981:(t,e,r)=>{"use strict";var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},9039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9167:(t,e,r)=>{"use strict";var n=r(4576);t.exports=n},9199:(t,e,r)=>{"use strict";r.d(e,{A:()=>E}),r(2675),r(9463),r(2259),r(5700),r(2008),r(3418),r(3792),r(2062),r(4782),r(9572),r(2010),r(2892),r(3851),r(1278),r(9432),r(6099),r(7495),r(8781),r(7764),r(3500),r(2953);var n=r(4012),o=r(5953),i=r(4442),a=[{texts:{header:"CORE_COMMON_SIGN_UP",submitButtonLabel:"CORE_COMMON_SIGN_UP_BUTTON"},inputs:[{label:"CORE_SIGNUP_EMAILID",type:"text",key:"email",isMandatory:!0,populators:{name:"email",validation:{required:!0,pattern:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,maxLength:64},error:"ERR_EMAIL_REQUIRED"}},{label:"CORE_SIGNUP_ACCOUNT_NAME",type:"text",key:"accountName",isMandatory:!0,populators:{name:"accountName",validation:{required:!0,pattern:/^[A-Za-z]+( [A-Za-z]+)*$/,maxLength:50},error:"ERR_ACCOUNT_NAME_REQUIRED"},infoMessage:"SANDBOX_SIGNUP_ACCOUNT_NAME_TOOLTIP"},{isMandatory:!1,key:"check",type:"component",component:"PrivacyComponent",withoutLabel:!0,disable:!1,customProps:{module:"SandboxSignUp"},populators:{name:"check"}}]}],u=(r(875),r(287),r(3362),r(6243)),s=r(5556),c=r.n(s),l=r(7131),f=r(5590),p=(r(1599),r(4848));function d(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof u?n:u,c=Object.create(s.prototype);return v(c,"_invoke",function(r,n,o){var i,u,s,c=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return i=e,u=0,s=t,p.n=r,a}};function d(r,n){for(u=r,s=n,e=0;!f&&c&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,v=i[2];r>3?(o=v===n)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=r<2&&d<i[1])?(u=0,p.v=n,p.n=i[1]):d<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,p.n=v,u=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,v),u=l,s=v;(e=u<2?t:s)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,s)):p.n=s:p.v=s);try{if(c=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((e=(f=p.n<0)?s:r.call(n,p))!==a)break}catch(e){i=t,u=1,s=e}finally{c=1}}return{value:e,done:f}}}(r,o,i),!0),c}var a={};function u(){}function s(){}function c(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(v(e={},n,function(){return this}),e),f=c.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,v(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=c,v(f,"constructor",c),v(c,"constructor",s),s.displayName="GeneratorFunction",v(c,o,"GeneratorFunction"),v(f),v(f,o,"Generator"),v(f,n,function(){return this}),v(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:p}})()}function v(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}v=function(t,e,r,n){function i(e,r){v(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},v(t,e,r,n)}function y(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function g(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,u,"next",t)}function u(t){y(i,n,o,a,u,"throw",t)}a(void 0)})}}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b=function(t){var e,r,o,a,s,c,v,y=t.config,h=t.t,b=t.isDisabled,x=Digit.Hooks.useTenants(),w=(x.data,x.isLoading),O=Digit.Hooks.useStore.getInitData(),S=O.data,j=O.isLoading,P=((S||{}).stateInfo,m((0,n.useState)(null),2)),E=P[0],T=P[1],C=m((0,n.useState)(!1),2),I=C[0],D=C[1],A=(0,i.useNavigate)(),N=Digit.Hooks.useCustomAPIMutationHook({url:"/tenant-management/tenant/_create",params:{},body:{},config:{enable:!1}}),_=function(){var t=g(d().m(function t(e){return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,N.mutate({body:{tenant:{name:e.accountName,email:e.email}},config:{enable:!0}},{onError:function(t,e){var r,n;T({key:"error",label:null!=t&&null!==(r=t.response)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&null!==(r=r.Errors)&&void 0!==r&&null!==(r=r[0])&&void 0!==r&&r.code?"SANDBOX_SIGNUP_".concat(null==t||null===(n=t.response)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.Errors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.code):"SANDBOX_SIGNUP_ERROR"})},onSuccess:function(){var t=g(d().m(function t(e){var r,n,o;return d().w(function(t){for(;;)switch(t.n){case 0:A({pathname:"/".concat(null===(r=window)||void 0===r?void 0:r.globalPath,"/user/otp"),state:{email:null==e||null===(n=e.Tenants[0])||void 0===n?void 0:n.email,tenant:null==e||null===(o=e.Tenants[0])||void 0===o?void 0:o.code}});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),R=[{body:null==y?void 0:y.inputs}];return"admin"===Digit.Hooks.useQueryParams().mode&&0==(null==R||null===(e=R[0])||void 0===e||null===(e=e.body)||void 0===e||null===(e=e[2])||void 0===e?void 0:e.disable)&&null==(null==R||null===(r=R[0])||void 0===r||null===(r=r.body)||void 0===r||null===(r=r[2])||void 0===r||null===(r=r.populators)||void 0===r?void 0:r.defaultValue)&&(R[0].body[2].disable=!0,R[0].body[2].isMandatory=!1,R[0].body[2].populators.defaultValue=defaultValue),w||j?(0,p.jsx)(u.Loader,{}):(0,p.jsxs)(l.A,{children:[(0,p.jsx)("div",{className:"employeeBackbuttonAlign",children:(0,p.jsx)(u.BackLink,{onClick:function(){return window.history.back()}})}),(0,p.jsx)(u.FormComposerV2,{onSubmit:_,isDisabled:b||I,noBoxShadow:!0,inline:!0,submitInForm:!0,config:R,label:null==y||null===(o=y.texts)||void 0===o?void 0:o.submitButtonLabel,secondaryActionLabel:null==y||null===(a=y.texts)||void 0===a?void 0:a.secondaryButtonLabel,onFormValueChange:function(t,e,r){var n=R[0].body.map(function(t){return t.key}).some(function(t){var r=e[t];return null==r||""===r||"check"===t&&!1===r||"captcha"===t&&!1===r});D(n)},heading:null==y||null===(s=y.texts)||void 0===s?void 0:s.header,className:"sandbox-signup-form",cardSubHeaderClassName:"signupCardSubHeaderClassName",cardClassName:"signupCardClassName sandbox-onboarding-wrapper",buttonClassName:"buttonClassName",children:(0,p.jsx)(f.A,{showTenant:!1})}),E&&(0,p.jsx)(u.Toast,{type:"error",label:h(null==E?void 0:E.label),onClose:function(){T(null)}}),(0,p.jsx)("div",{className:"employee-login-home-footer",style:{backgroundColor:"unset"},children:(0,p.jsx)("img",{alt:"Powered by DIGIT",src:null===(c=window)||void 0===c||null===(c=c.globalConfigs)||void 0===c||null===(v=c.getConfig)||void 0===v?void 0:v.call(c,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){var t,e;window.open(null===(t=window)||void 0===t||null===(t=t.globalConfigs)||void 0===t||null===(e=t.getConfig)||void 0===e?void 0:e.call(t,"DIGIT_HOME_URL"),"_blank").focus()}})})]})};b.propTypes={loginParams:c().any},b.defaultProps={loginParams:null};const x=b;function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach(function(e){j(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function j(t,e,r){return(e=function(t){var e=function(t){if("object"!=w(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==w(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const E=function(t){var e,r,u=t.stateCode,s=(0,o.useTranslation)().t,c=(e=(0,n.useState)(a),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,r)||function(t,e){if(t){if("string"==typeof t)return P(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],f=c[1],d=Digit.StoreData.getCurrentLanguage(),v=(Digit.Services.useStore({stateCode:u,moduleCode:["privacy-policy"],language:d,modulePrefix:"digit"}).data,Digit.Hooks.useCommonMDMS(u,"commonUiConfig",["SignUpConfig"],{select:function(t){var e;return{config:null==t||null===(e=t.commonUiConfig)||void 0===e?void 0:e.SignUpConfig}},retry:!1})),y=v.data,g=v.isLoading;(0,n.useEffect)(function(){!g&&null!=y&&y.config?f(y.config):f(a)},[y,g]);var m=(0,n.useMemo)(function(){return l.map(function(t){var e={};for(var r in t.texts)e[r]=s(t.texts[r]);return S(S({},t),{},{texts:e})})},[l]);return(0,p.jsx)(i.Routes,{children:(0,p.jsx)(i.Route,{path:"",element:(0,p.jsx)(x,{config:m[0],t:s})})})}},9213:(t,e,r)=>{"use strict";var n=r(6080),o=r(9504),i=r(7055),a=r(8981),u=r(6198),s=r(1469),c=o([].push),l=function(t){var e=1===t,r=2===t,o=3===t,l=4===t,f=6===t,p=7===t,d=5===t||f;return function(v,y,g,m){for(var h,b,x=a(v),w=i(x),O=u(w),S=n(y,g),j=0,P=m||s,E=e?P(v,O):r||p?P(v,0):void 0;O>j;j++)if((d||j in w)&&(b=S(h=w[j],j,x),t))if(e)E[j]=b;else if(b)switch(t){case 3:return!0;case 5:return h;case 6:return j;case 2:c(E,h)}else switch(t){case 4:return!1;case 7:c(E,h)}return f?-1:o||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9225:(t,e,r)=>{"use strict";var n,o,i,a,u=r(4576),s=r(8745),c=r(6080),l=r(4901),f=r(9297),p=r(9039),d=r(397),v=r(7680),y=r(4055),g=r(2812),m=r(9544),h=r(6193),b=u.setImmediate,x=u.clearImmediate,w=u.process,O=u.Dispatch,S=u.Function,j=u.MessageChannel,P=u.String,E=0,T={},C="onreadystatechange";p(function(){n=u.location});var I=function(t){if(f(T,t)){var e=T[t];delete T[t],e()}},D=function(t){return function(){I(t)}},A=function(t){I(t.data)},N=function(t){u.postMessage(P(t),n.protocol+"//"+n.host)};b&&x||(b=function(t){g(arguments.length,1);var e=l(t)?t:S(t),r=v(arguments,1);return T[++E]=function(){s(e,void 0,r)},o(E),E},x=function(t){delete T[t]},h?o=function(t){w.nextTick(D(t))}:O&&O.now?o=function(t){O.now(D(t))}:j&&!m?(a=(i=new j).port2,i.port1.onmessage=A,o=c(a.postMessage,a)):u.addEventListener&&l(u.postMessage)&&!u.importScripts&&n&&"file:"!==n.protocol&&!p(N)?(o=N,u.addEventListener("message",A,!1)):o=C in y("script")?function(t){d.appendChild(y("script"))[C]=function(){d.removeChild(this),I(t)}}:function(t){setTimeout(D(t),0)}),t.exports={set:b,clear:x}},9228:(t,e,r)=>{"use strict";r(7495);var n=r(9565),o=r(6840),i=r(7323),a=r(9039),u=r(8227),s=r(6699),c=u("species"),l=RegExp.prototype;t.exports=function(t,e,r,f){var p=u(t),d=!a(function(){var e={};return e[p]=function(){return 7},7!==""[t](e)}),v=d&&!a(function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e});if(!d||!v||r){var y=/./[p],g=e(p,""[t],function(t,e,r,o,a){var u=e.exec;return u===i||u===l.exec?d&&!a?{done:!0,value:n(y,e,r,o)}:{done:!0,value:n(t,r,e,o)}:{done:!1}});o(String.prototype,t,g[0]),o(l,p,g[1])}f&&s(l[p],"sham",!0)}},9296:(t,e,r)=>{"use strict";var n=r(4055)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},9297:(t,e,r)=>{"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},9306:(t,e,r)=>{"use strict";var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},9432:(t,e,r)=>{"use strict";var n=r(6518),o=r(8981),i=r(1072);n({target:"Object",stat:!0,forced:r(9039)(function(){i(1)})},{keys:function(t){return i(o(t))}})},9433:(t,e,r)=>{"use strict";var n=r(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},9463:(t,e,r)=>{"use strict";var n=r(6518),o=r(3724),i=r(4576),a=r(9504),u=r(9297),s=r(4901),c=r(1625),l=r(655),f=r(2106),p=r(7740),d=i.Symbol,v=d&&d.prototype;if(o&&s(d)&&(!("description"in v)||void 0!==d().description)){var y={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(v,this)?new d(t):void 0===t?d():d(t);return""===t&&(y[e]=!0),e};p(g,d),g.prototype=v,v.constructor=g;var m="Symbol(description detection)"===String(d("description detection")),h=a(v.valueOf),b=a(v.toString),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),O=a("".slice);f(v,"description",{configurable:!0,get:function(){var t=h(this);if(u(y,t))return"";var e=b(t),r=m?O(e,7,-1):w(e,x,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},9504:(t,e,r)=>{"use strict";var n=r(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},9519:(t,e,r)=>{"use strict";var n,o,i=r(4576),a=r(2839),u=i.process,s=i.Deno,c=u&&u.versions||s&&s.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},9539:(t,e,r)=>{"use strict";var n=r(9565),o=r(8551),i=r(5966);t.exports=function(t,e,r){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw r;if(u)throw a;return o(a),r}},9544:(t,e,r)=>{"use strict";var n=r(2839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},9565:(t,e,r)=>{"use strict";var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9572:(t,e,r)=>{"use strict";var n=r(9297),o=r(6840),i=r(3640),a=r(8227)("toPrimitive"),u=Date.prototype;n(u,a)||o(u,a,i)},9617:(t,e,r)=>{"use strict";var n=r(5397),o=r(5610),i=r(6198),a=function(t){return function(e,r,a){var u=n(e),s=i(u);if(0===s)return!t&&-1;var c,l=o(a,s);if(t&&r!=r){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9698:(t,e)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(t,e,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in n={},e)"key"!==i&&(n[i]=e[i]);else n=e;return e=n.ref,{$$typeof:r,type:t,key:o,ref:void 0!==e?e:null,props:n}}e.Fragment=n,e.jsx=o,e.jsxs=o},9773:(t,e,r)=>{"use strict";var n=r(6518),o=r(4495),i=r(9039),a=r(3717),u=r(8981);n({target:"Object",stat:!0,forced:!o||i(function(){a.f(1)})},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(u(t)):[]}})}},d={};function v(t){var e=d[t];if(void 0!==e)return e.exports;var r=d[t]={exports:{}};return p[t].call(r.exports,r,r.exports,v),r.exports}v.m=p,v.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return v.d(e,{a:e}),e},v.d=(t,e)=>{for(var r in e)v.o(e,r)&&!v.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},v.f={},v.e=t=>Promise.all(Object.keys(v.f).reduce((e,r)=>(v.f[r](t,e),e),[])),v.u=t=>t+".main.js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),v.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l={},f="@egovernments/digit-ui-module-core:",v.l=(t,e,r,n)=>{if(l[t])l[t].push(e);else{var o,i;if(void 0!==r)for(var a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var s=a[u];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==f+r){o=s;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,v.nc&&o.setAttribute("nonce",v.nc),o.setAttribute("data-webpack",f+r),o.src=t),l[t]=[e];var c=(e,r)=>{o.onerror=o.onload=null,clearTimeout(p);var n=l[t];if(delete l[t],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(t=>t(r)),e)return e(r)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)}},v.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;v.g.importScripts&&(t=v.g.location+"");var e=v.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=t})(),(()=>{var t={792:0};v.f.j=(e,r)=>{var n=v.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=t[e]=[r,o]);r.push(n[2]=o);var i=v.p+v.u(e),a=new Error;v.l(i,r=>{if(v.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+e,e)}};var e=(e,r)=>{var n,o,i=r[0],a=r[1],u=r[2],s=0;if(i.some(e=>0!==t[e])){for(n in a)v.o(a,n)&&(v.m[n]=a[n]);u&&u(v)}for(e&&e(r);s<i.length;s++)o=i[s],v.o(t,o)&&t[o]&&t[o][0](),t[o]=0},r=this.webpackChunk_egovernments_digit_ui_module_core=this.webpackChunk_egovernments_digit_ui_module_core||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var y={};return(()=>{"use strict";v.r(y),v.d(y,{DigitUI:()=>tt,initCoreComponents:()=>nt,initCriticalComponents:()=>ot}),v(2675),v(9463),v(2259),v(5700),v(2008),v(3418),v(3792),v(4782),v(9572),v(2010),v(2892),v(5506),v(3851),v(1278),v(9432),v(6099),v(3362),v(7495),v(8781),v(1415),v(7764),v(3500),v(2953);var t=v(6243),e=v(4012),r=v.n(e),n=v(5953),o=v(4456),i=v(2148),a=v(4442),u=(v(8706),v(4423),v(1699),v(7131)),s=v(5590),c=v(4848);const l=function(e){(0,a.useLocation)().state;var r=(0,n.useTranslation)().t,o=(e.stateInfo,(0,a.useNavigate)()),i={imgUrl:"https://s3.ap-south-1.amazonaws.com/egov-qa-assets/error-image.png",infoHeader:"WRONG_TENANT_SIGN_UP",infoMessage:"WRONG_TENANT_SIGN_UP_MESSAGE",buttonInfo:"WRONG_TENANT_SIGN_UP_BUTTON",action:function(){o("/".concat(window.globalPath,"/"))}};return(0,c.jsx)(u.A,{children:(0,c.jsxs)(t.Card,{className:"digit-employee-card customError",children:[(0,c.jsx)(s.A,{showTenant:!1}),(0,c.jsx)(t.CardHeader,{className:"center",children:r(i.infoHeader)}),(0,c.jsx)(t.CardText,{className:"center",children:r(i.infoMessage)}),(0,c.jsx)(t.Button,{className:"customErrorButton",label:r(null==i?void 0:i.buttonInfo),variation:"primary",isSuffix:!0,onClick:function(t){t.preventDefault(),null==i||i.action()}})]})})};var f=v(4133),p=v(9199);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=function(t){var e=function(t){if("object"!=d(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=r().lazy(function(){return v.e(150).then(v.bind(v,2150))}),x=r().lazy(function(){return v.e(469).then(v.bind(v,3469))}),w=r().lazy(function(){return v.e(248).then(v.bind(v,2248))}),O=r().lazy(function(){return v.e(275).then(v.bind(v,2275))}),S=r().lazy(function(){return v.e(204).then(v.bind(v,1204))}),j=r().memo(function(r){var n,o,i,u,s,l=r.stateCode,p=r.modules,d=r.appTenants,v=r.logoUrl,y=r.logoUrlWhite,g=r.initData,h=r.defaultLanding,w=void 0===h?"citizen":h,O=r.allowedUserTypes,S=void 0===O?["citizen","employee"]:O,j=((0,a.useNavigate)(),(0,a.useLocation)().pathname),P=(0,e.useMemo)(function(){return"undefined"!=typeof window?window.innerWidth:1024},[]),E=(0,e.useMemo)(function(){return Digit.ULBService.getCurrentUlb()},[]),T=(0,e.useMemo)(function(){return Digit.UserService.getUser()},[]),C=(Digit.Hooks.useStore.getInitData().data||{}).stateInfo,I=(0,e.useMemo)(function(){return Digit.UserService.hasAccess(["FSM_DSO"])},[]),D=(0,e.useMemo)(function(){var t;return"undefined"==typeof window||"CITIZEN"===(null==T||null===(t=T.info)||void 0===t?void 0:t.type)||!window.location.pathname.split("/").includes("employee")},[null==T||null===(n=T.info)||void 0===n?void 0:n.type]);(0,e.useEffect)(function(){var t,e,r;null!=j&&j.includes("application-details")||(null!=j&&j.includes("inbox")||Digit.SessionStorage.del("fsm/inbox/searchParams"),null!=j&&j.includes("search")&&Digit.SessionStorage.del("fsm/search/searchParams")),null!=j&&j.includes("dss")||Digit.SessionStorage.del("DSS_FILTERS"),(null==j?void 0:j.toString())==="/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/employee")&&(Digit.SessionStorage.del("SEARCH_APPLICATION_DETAIL"),Digit.SessionStorage.del("WS_EDIT_APPLICATION_DETAILS")),(null==j?void 0:j.toString())!=="/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen")&&(null==j?void 0:j.toString())!=="/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/employee")||Digit.SessionStorage.del("WS_DISCONNECTION")},[j]);var A=P<=640,N="".concat(window.location.origin,"/citizen"),_={stateInfo:C,userDetails:T,CITIZEN:D,cityDetails:E,mobileView:A,handleUserDropdownSelection:function(t){t.func()},logoUrl:v,logoUrlWhite:y,DSO:I,stateCode:l,modules:p,appTenants:d,sourceUrl:N,pathname:j,initData:g};return(0,c.jsx)(f.A,{children:(0,c.jsx)(e.Suspense,{fallback:(0,c.jsx)(t.Loader,{page:!0,variant:"PageLoader"}),children:(0,c.jsxs)(a.Routes,{children:[(null==S?void 0:S.includes("employee"))&&(0,c.jsx)(a.Route,{path:"/".concat(null===(o=window)||void 0===o?void 0:o.contextPath,"/employee/*"),element:(0,c.jsx)(x,m({},_))}),(null==S?void 0:S.includes("citizen"))&&(0,c.jsx)(a.Route,{path:"/".concat(null===(i=window)||void 0===i?void 0:i.contextPath,"/citizen/*"),element:(0,c.jsx)(b,m({},_))}),(null==S?void 0:S.includes("employee"))&&(0,c.jsx)(a.Route,{path:"/".concat(null===(u=window)||void 0===u?void 0:u.contextPath,"/no-top-bar/employee"),element:(0,c.jsx)(x,m(m({},_),{},{noTopBar:!0}))}),(0,c.jsx)(a.Route,{path:"*",element:(0,c.jsx)(a.Navigate,{to:"/".concat(null===(s=window)||void 0===s?void 0:s.contextPath,"/").concat(w)})})]})})})}),P=r().memo(function(r){var n,o,i,u,s,d,v,y,g,m,h=r.stateCode,b=r.modules,x=r.appTenants,P=r.logoUrl,E=r.logoUrlWhite,T=r.initData,C=r.defaultLanding,I=void 0===C?"citizen":C,D=r.allowedUserTypes,A=(Digit.Hooks.useStore.getInitData().data||{}).stateInfo,N=(0,e.useMemo)(function(){return["user/error"]},[]),_=(0,e.useMemo)(function(){return N.some(function(t){var e;return null===(e=location)||void 0===e||null===(e=e.pathname)||void 0===e?void 0:e.includes(t)})},[N]),R=(0,e.useMemo)(function(){return Digit.UserService.getUser()},[]),k=(0,e.useMemo)(function(){var t;return"undefined"==typeof window||"CITIZEN"===(null==R||null===(t=R.info)||void 0===t?void 0:t.type)||!window.location.pathname.split("/").includes("employee")},[null==R||null===(n=R.info)||void 0===n?void 0:n.type]),L=(0,e.useMemo)(function(){return"undefined"!=typeof window?window.innerWidth:1024},[]),U=(0,e.useMemo)(function(){return L<=640},[L]);return(0,c.jsx)("div",{className:_?"grounded-container":"loginContainer",style:_?{padding:0,paddingTop:k?"0":U&&!k?"3rem":"80px",marginLeft:k||U?"0":"40px"}:{"--banner-url":"url(".concat(null==A?void 0:A.bannerUrl,")"),padding:"0px"},children:(0,c.jsx)(f.A,{children:(0,c.jsx)(e.Suspense,{fallback:(0,c.jsx)(t.Loader,{page:!0,variant:"PageLoader"}),children:(0,c.jsxs)(a.Routes,{children:[(0,c.jsx)(a.Route,{path:"/".concat(null===(o=window)||void 0===o?void 0:o.globalPath,"/user/invalid-url"),element:(0,c.jsx)(l,{})}),(0,c.jsx)(a.Route,{path:"/".concat(null===(i=window)||void 0===i?void 0:i.globalPath,"/user/sign-up"),element:(0,c.jsx)(p.A,{stateCode:h})}),(0,c.jsx)(a.Route,{path:"/".concat(null===(u=window)||void 0===u?void 0:u.globalPath,"/user/otp"),element:(0,c.jsx)(w,{})}),(0,c.jsx)(a.Route,{path:"/".concat(null===(s=window)||void 0===s?void 0:s.globalPath,"/user/setup"),element:(0,c.jsx)(S,{})}),(0,c.jsx)(a.Route,{path:"/".concat(null===(d=window)||void 0===d?void 0:d.globalPath,"/user/url"),element:(0,c.jsx)(O,{})}),(null===(v=window)||void 0===v?void 0:v.globalPath)!==(null===(y=window)||void 0===y?void 0:y.contextPath)&&(0,c.jsx)(a.Route,{path:"/".concat(null===(g=window)||void 0===g?void 0:g.contextPath,"/*"),element:(0,c.jsx)(j,{stateCode:h,modules:b,appTenants:x,logoUrl:P,logoUrlWhite:E,initData:T,defaultLanding:I,allowedUserTypes:D})}),(0,c.jsx)(a.Route,{path:"*",element:(0,c.jsx)(a.Navigate,{to:"/".concat(null===(m=window)||void 0===m?void 0:m.globalPath,"/user/sign-up")})})]})})})})}),E=v(7007),T=v(1954),C=v(2247);function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach(function(e){N(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function N(t,e,r){return(e=function(t){var e=function(t){if("object"!=I(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==I(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function k(t,e,r){return(e=function(t){var e=function(t){if("object"!=_(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var L=[v.n(C)()],U=(0,T.compose)(T.applyMiddleware.apply(void 0,L));const M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,T.createStore)(function(t,e){return(0,T.combineReducers)(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach(function(e){k(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({common:(r=t,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=arguments.length>1?arguments[1]:void 0;return"LANGUAGE_SELECT"===e.type?A(A({},t),{},{selectedLanguage:e.payload}):t})},e));var r}(t,e),U)};var F=v(5957),B=(v(113),v(2062),v(5053),["onSelect","formData","control","formState"]);function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return z(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const q=function(o){var i=o.onSelect,a=(o.formData,o.control,o.formState,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(o,B)),u=(0,n.useTranslation)().t,s=Digit.ULBService.getCurrentTenantId(),l=G((0,e.useState)(!1),2),f=l[0],p=l[1],d=G((0,e.useState)(!1),2),v=d[0],y=d[1],g=Digit.Utils.getConfigModuleName(),m=Digit.Hooks.useCustomMDMS(s,g,[{name:"PrivacyPolicy"}],{select:function(t){var e;return null==t||null===(e=t[g])||void 0===e?void 0:e.PrivacyPolicy.find(function(t){var e;return t.module===(null==a||null===(e=a.props)||void 0===e?void 0:e.module)})}}).data;return(0,e.useEffect)(function(){i("check",f)},[f]),(0,c.jsxs)(r().Fragment,{children:[(0,c.jsxs)("div",{className:"digit-privacy-checkbox",children:[(0,c.jsx)(t.CheckBox,{label:u("ES_BY_CLICKING"),checked:f,onChange:function(t){p(t.target.checked)},id:"privacy-component-check"}),(0,c.jsx)(t.Button,{label:u("ES_PRIVACY_POLICY"),variation:"link",size:"medium",onClick:function(){y(!0)},style:{marginBottom:"1.18rem",paddingLeft:"0.2rem"}})]}),v&&(0,c.jsxs)(t.PopUp,{type:"default",className:"privacy-popUpClass",footerclassName:"popUpFooter",heading:u(null==m?void 0:m.header),onOverlayClick:function(){y(!1)},footerChildren:[(0,c.jsx)(t.Button,{type:"button",size:"large",variation:"secondary",label:u("DIGIT_I_DO_NOT_ACCEPT"),onClick:function(){p(!1),y(!1)}}),(0,c.jsx)(t.Button,{type:"button",size:"large",variation:"primary",label:u("DIGIT_I_ACCEPT"),className:"accept-class",onClick:function(){p(!0),y(!1)}})],sortFooterChildren:!0,onClose:function(){y(!1)},children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"privacy-table",children:u("DIGIT_TABLE_OF_CONTENTS")}),(0,c.jsx)("ul",{children:null==m?void 0:m.contents.map(function(e,r){return(0,c.jsxs)("li",{style:{display:"flex",alignItems:"center"},children:[(0,c.jsxs)("span",{style:{marginRight:"0.5rem"},children:[r+1,". "]}),(0,c.jsx)(t.Button,{label:u(e.header),variation:"link",size:"medium",onClick:function(t){var r,n;t.preventDefault(),r=null==e?void 0:e.header,(n=document.getElementById(r))&&n.scrollIntoView({behavior:"smooth"})},style:{justifyContent:"flex-start"}})]},r)})})]}),null==m?void 0:m.contents.map(function(t,e){return(0,c.jsxs)("div",{id:null==t?void 0:t.header,children:[(0,c.jsx)("div",{style:{fontWeight:"bold",paddingLeft:null!=t&&t.isSpaceRequired?"1rem":"0"},children:u(t.header)}),t.descriptions.map(function(t,e){return(0,c.jsxs)("div",{style:{paddingLeft:t.isSpaceRequired?"1rem":"0",marginBottom:"0.5rem"},children:[(0,c.jsxs)("div",{style:{fontWeight:null!=t&&t.isBold?700:400,display:"flex",alignItems:"center"},children:["points"===t.type&&(0,c.jsx)("span",{style:{marginRight:"0.5rem",listStyleType:"disc"},children:"•"}),"step"===t.type&&(0,c.jsxs)("span",{style:{marginRight:"0.5rem",listStyleType:"decimal"},children:[e+1,". "]}),u(t.text)]}),(null==t?void 0:t.subDescriptions)&&(null==t?void 0:t.subDescriptions.length)>0&&(0,c.jsx)("div",{className:"policy-subdescription",children:t.subDescriptions.map(function(t,e){return(0,c.jsxs)("div",{className:"policy-subdescription-points",children:["points"===t.type&&(0,c.jsx)("span",{style:{marginRight:"0.5rem",listStyleType:"disc",paddingLeft:"1rem"},children:"•"}),"step"===t.type&&(0,c.jsxs)("span",{style:{marginRight:"0.5rem",listStyleType:"decimal",paddingLeft:"1rem"},children:[e+1,". "]}),null===t.type&&(0,c.jsx)("span",{style:{marginRight:"0.5rem",paddingLeft:"1rem"},children:" "}),u(t.text)]},e)})})]},e)})]},e)})]})]})};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach(function(e){V(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function V(t,e,r){return(e=function(t){var e=function(t){if("object"!=W(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==W(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return K(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var X=r().lazy(function(){return v.e(713).then(v.bind(v,5713))}),Z=r().lazy(function(){return v.e(876).then(v.bind(v,8876))}),Q=r().lazy(function(){return v.e(339).then(v.bind(v,4339))}),J=r().memo(function(r){var n,o,u,s=r.stateCode,l=r.enabledModules,f=r.defaultLanding,p=r.allowedUserTypes,d=Digit.Hooks.useInitStore(s,l),v=d.isLoading,y=d.data,g=void 0===y?{}:y,m=(0,e.useMemo)(function(){return M(g)||{}},[g]);return(0,e.useMemo)(function(){Digit.ComponentRegistryService.getComponent("PrivacyComponent")||Digit.ComponentRegistryService.setComponent("PrivacyComponent",q)},[]),v?(0,c.jsx)(t.Loader,{page:!0,variant:"PageLoader"}):(0,c.jsx)(i.Provider,{store:m,children:(0,c.jsx)(a.BrowserRouter,{children:(0,c.jsx)(t.BodyContainer,{children:Digit.Utils.getMultiRootTenant()?(0,c.jsx)(P,{initData:g,stateCode:s,modules:null==g?void 0:g.modules,appTenants:g.tenants,logoUrl:null==g||null===(n=g.stateInfo)||void 0===n?void 0:n.logoUrl,logoUrlWhite:null==g||null===(o=g.stateInfo)||void 0===o?void 0:o.logoUrlWhite,defaultLanding:f,allowedUserTypes:p}):(0,c.jsx)(j,{initData:g,stateCode:s,modules:null==g?void 0:g.modules,appTenants:g.tenants,logoUrl:null==g||null===(u=g.stateInfo)||void 0===u?void 0:u.logoUrl,defaultLanding:f,allowedUserTypes:p})})})})}),tt=function(t){var r=t.stateCode,n=t.registry,i=t.enabledModules,a=t.defaultLanding,u=t.allowedUserTypes,s=(0,e.useMemo)(function(){return Digit.Utils.getPrivacyObject()||{}},[]),l=Y((0,e.useState)(s),2),f=l[0],p=l[1],d=(Digit.UserService.getType(),(0,e.useMemo)(function(){return new o.QueryClient({defaultOptions:{queries:{staleTime:3e5,gcTime:18e5,retry:2,retryDelay:function(t){return Math.min(1e3*Math.pow(2,t),5e3)},refetchOnWindowFocus:!1,refetchOnMount:"always",networkMode:"online"},mutations:{retry:1,networkMode:"online"}}})},[])),v=Digit.Contexts.ComponentProvider,y=Digit.Contexts.PrivacyProvider,g=(Digit.UserService.hasAccess(["FSM_DSO"]),(0,e.useCallback)(function(t){Digit.Utils.setPrivacyObject({}),p({})},[])),m=(0,e.useCallback)(function(){var t=Digit.Utils.getPrivacyObject();return p(t),t},[]),h=(0,e.useCallback)(function(t){var e=Digit.Utils.getAllPrivacyObject(),r="undefined"!=typeof window?window.location.pathname:"",n=H(H({},e),{},V({},r,t));Digit.Utils.setPrivacyObject(H({},n)),p((null==e?void 0:e[r])||{})},[]),b=(0,e.useCallback)(function(t,e){p(Digit.Utils.updatePrivacy(t,e)||{})},[]),x=(0,e.useMemo)(function(){return{privacy:"undefined"!=typeof window?null==f?void 0:f[window.location.pathname]:f,resetPrivacy:g,getPrivacy:m,updatePrivacyDescoped:h,updatePrivacy:b}},[f,g,m,h,b]);return(0,c.jsx)("div",{children:(0,c.jsx)(E.A,{children:(0,c.jsx)(o.QueryClientProvider,{client:d,children:(0,c.jsx)(v.Provider,{value:n,children:(0,c.jsx)(y.Provider,{value:x,children:(0,c.jsx)(J,{stateCode:r,enabledModules:i,defaultLanding:a,allowedUserTypes:u})})})})})})},et={ChangeLanguage:F.A,PrivacyComponent:q,SelectOtp:X,ChangeCity:Z,OtpComponent:Q},rt=new Set,nt=function(){Object.entries(et).forEach(function(t){var e=Y(t,2),r=e[0],n=e[1];rt.has(r)||(Digit.ComponentRegistryService.setComponent(r,n),rt.add(r))})},ot=function(){var t={ChangeLanguage:F.A,PrivacyComponent:q};Object.entries(t).forEach(function(t){var e=Y(t,2),r=e[0],n=e[1];rt.has(r)||(Digit.ComponentRegistryService.setComponent(r,n),rt.add(r))})}})(),y})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@egovernments/digit-ui-components"),require("react"),require("react-i18next"),require("@tanstack/react-query"),require("react-redux"),require("react-router-dom"),require("@egovernments/digit-ui-react-components"),require("@egovernments/digit-ui-svg-components"),require("redux"),require("redux-thunk")):"function"==typeof define&&define.amd?define(["@egovernments/digit-ui-components","react","react-i18next","@tanstack/react-query","react-redux","react-router-dom","@egovernments/digit-ui-react-components","@egovernments/digit-ui-svg-components","redux","redux-thunk"],t):"object"==typeof exports?exports["@egovernments/digit-ui-module-core"]=t(require("@egovernments/digit-ui-components"),require("react"),require("react-i18next"),require("@tanstack/react-query"),require("react-redux"),require("react-router-dom"),require("@egovernments/digit-ui-react-components"),require("@egovernments/digit-ui-svg-components"),require("redux"),require("redux-thunk")):e["@egovernments/digit-ui-module-core"]=t(e["@egovernments/digit-ui-components"],e.React,e["react-i18next"],e["@tanstack/react-query"],e["react-redux"],e["react-router-dom"],e["@egovernments/digit-ui-react-components"],e["@egovernments/digit-ui-svg-components"],e.redux,e["redux-thunk"])}(this,(e,t,n,r,o,i,a,l,s,u)=>(()=>{var c={51:(e,t,n)=>{"use strict";var r=n(2484),o=n(2675),i=n(2748),a=Object,l=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?l(e,""):a(e)}:a},92:(e,t,n)=>{"use strict";var r=n(6891);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},133:(e,t,n)=>{"use strict";var r=n(3588),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},171:(e,t,n)=>{"use strict";n(8810)({target:"Object",stat:!0},{setPrototypeOf:n(1715)})},321:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},338:e=>{"use strict";e.exports=l},341:(e,t,n)=>{"use strict";var r=n(5034),o=n(9976),i=n(7032).CONSTRUCTOR;e.exports=i||!o(function(e){r.all(e).then(void 0,function(){})})},381:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},383:(e,t,n)=>{"use strict";var r=n(8810),o=n(6007),i=n(7032).CONSTRUCTOR,a=n(5034),l=n(3163),s=n(321),u=n(5236),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&s(a)){var d=l("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},391:(e,t,n)=>{"use strict";n(4515)("iterator")},461:(e,t,n)=>{"use strict";var r=n(3163),o=n(6038),i=n(4175),a=n(2128),l=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[l]&&o(t,l,{configurable:!0,get:function(){return this}})}},464:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},552:(e,t,n)=>{"use strict";var r=n(3291);e.exports=/web0s(?!.*chrome)/i.test(r)},562:(e,t,n)=>{"use strict";var r=n(8810),o=n(2961).map;r({target:"Array",proto:!0,forced:!n(2321)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},573:(e,t,n)=>{"use strict";var r=n(3625),o=n(4102),i=n(3401),a=n(9538),l=n(5514),s=n(4175),u=TypeError,c=s("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,s=a(e,c);if(s){if(void 0===t&&(t="default"),n=r(s,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},600:(e,t,n)=>{"use strict";var r=n(9004),o=n(3625),i=n(8649),a=n(4035),l=n(3709),s=n(1441),u=n(8770),c=n(4028),d=n(6221),f=n(4951),v=Array;e.exports=function(e){var t=i(e),n=s(this),p=arguments.length,m=p>1?arguments[1]:void 0,y=void 0!==m;y&&(m=r(m,p>2?arguments[2]:void 0));var g,b,h,O,S,x,j=f(t),w=0;if(!j||this===v&&l(j))for(g=u(t),b=n?new this(g):v(g);g>w;w++)x=y?m(t[w],w):t[w],c(b,w,x);else for(b=n?new this:[],S=(O=d(t,j)).next;!(h=o(S,O)).done;w++)x=y?a(O,m,[h.value,w],!0):h.value,c(b,w,x);return b.length=w,b}},659:(e,t,n)=>{"use strict";var r=n(4102),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},671:(e,t,n)=>{"use strict";var r=n(2128),o=n(6005),i=n(5936);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},706:(e,t,n)=>{"use strict";var r=n(2128),o=n(2675);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},719:(e,t,n)=>{"use strict";var r=n(3291);e.exports=/MSIE|Trident/.test(r)},790:(e,t,n)=>{"use strict";var r=n(4690).PROPER,o=n(2675),i=n(4912);e.exports=function(e){return o(function(){return!!i[e]()||"
"!=="
"[e]()||r&&i[e].name!==e})}},856:(e,t,n)=>{"use strict";var r=n(7183);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},863:(e,t,n)=>{"use strict";var r,o,i=n(3625),a=n(2484),l=n(7267),s=n(8303),u=n(2537),c=n(6445),d=n(3844),f=n(6369).get,v=n(991),p=n(5722),m=c("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,b=a("".charAt),h=a("".indexOf),O=a("".replace),S=a("".slice),x=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),j=u.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];(x||w||j||v||p)&&(g=function(e){var t,n,r,o,a,u,c,v=this,p=f(v),_=l(e),E=p.raw;if(E)return E.lastIndex=v.lastIndex,t=i(g,E,_),v.lastIndex=E.lastIndex,t;var C=p.groups,N=j&&v.sticky,I=i(s,v),A=v.source,D=0,T=_;if(N&&(I=O(I,"y",""),-1===h(I,"g")&&(I+="g"),T=S(_,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==b(_,v.lastIndex-1))&&(A="(?: "+A+")",T=" "+T,D++),n=new RegExp("^(?:"+A+")",I)),w&&(n=new RegExp("^"+A+"$(?!\\s)",I)),x&&(r=v.lastIndex),o=i(y,N?n:v,T),N?o?(o.input=S(o.input,D),o[0]=S(o[0],D),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:x&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),w&&o&&o.length>1&&i(m,o[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)}),o&&C)for(o.groups=u=d(null),a=0;a<C.length;a++)u[(c=C[a])[0]]=o[c[1]];return o}),e.exports=g},878:(e,t,n)=>{"use strict";var r=n(1417),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},930:(e,t,n)=>{"use strict";var r=n(8810),o=n(3163),i=n(4461),a=n(7267),l=n(6445),s=n(92),u=l("string-to-symbol-registry"),c=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},991:(e,t,n)=>{"use strict";var r=n(2675),o=n(8052).RegExp;e.exports=r(function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},1031:(e,t,n)=>{"use strict";var r=n(4334),o=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},1072:(e,t,n)=>{"use strict";var r=n(9004),o=n(3625),i=n(659),a=n(8379),l=n(3709),s=n(8770),u=n(7837),c=n(6221),d=n(4951),f=n(1151),v=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var y,g,b,h,O,S,x,j=n&&n.that,w=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),N=r(t,j),I=function(e){return y&&f(y,"normal"),new p(!0,e)},A=function(e){return w?(i(e),C?N(e[0],e[1],I):N(e[0],e[1])):C?N(e,I):N(e)};if(_)y=e.iterator;else if(E)y=e;else{if(!(g=d(e)))throw new v(a(e)+" is not iterable");if(l(g)){for(b=0,h=s(e);h>b;b++)if((O=A(e[b]))&&u(m,O))return O;return new p(!1)}y=c(e,g)}for(S=_?e.next:y.next;!(x=o(S,y)).done;){try{O=A(x.value)}catch(e){f(y,"throw",e)}if("object"==typeof O&&O&&u(m,O))return O}return new p(!1)}},1151:(e,t,n)=>{"use strict";var r=n(3625),o=n(659),i=n(9538);e.exports=function(e,t,n){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===t)throw n;if(l)throw a;return o(a),n}},1261:(e,t,n)=>{"use strict";var r=n(573),o=n(3401);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1417:(e,t,n)=>{"use strict";var r=n(4102);e.exports=function(e){return r(e)||null===e}},1441:(e,t,n)=>{"use strict";var r=n(2484),o=n(2675),i=n(321),a=n(5719),l=n(3163),s=n(2718),u=function(){},c=l("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),v=!d.test(u),p=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!f(d,s(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||o(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?m:p},1568:(e,t,n)=>{"use strict";var r=n(8810),o=n(2961).findIndex,i=n(2153),a="findIndex",l=!0;a in[]&&Array(1)[a](function(){l=!1}),r({target:"Array",proto:!0,forced:l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},1650:(e,t,n)=>{"use strict";var r=n(2484),o=n(8649),i=Math.floor,a=r("".charAt),l=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var v=n+e.length,p=r.length,m=c;return void 0!==d&&(d=o(d),m=u),l(f,m,function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,n);case"'":return s(t,v);case"<":u=d[s(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>p){var f=i(c/10);return 0===f?o:f<=p?void 0===r[f-1]?a(l,1):r[f-1]+a(l,1):o}u=r[c-1]}return void 0===u?"":u})}},1652:(e,t,n)=>{"use strict";var r=n(659),o=n(5514),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},1661:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},1678:(e,t,n)=>{"use strict";var r=n(8810),o=n(8649),i=n(6526),a=n(7391),l=n(8770),s=n(4643),u=n(3081),c=n(4929),d=n(4028),f=n(8458),v=n(2321)("splice"),p=Math.max,m=Math.min;r({target:"Array",proto:!0,forced:!v},{splice:function(e,t){var n,r,v,y,g,b,h=o(this),O=l(h),S=i(e,O),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=O-S):(n=x-2,r=m(p(a(t),0),O-S)),u(O+n-r),v=c(h,r),y=0;y<r;y++)(g=S+y)in h&&d(v,y,h[g]);if(v.length=r,n<r){for(y=S;y<O-r;y++)b=y+n,(g=y+r)in h?h[b]=h[g]:f(h,b);for(y=O;y>O-r+n;y--)f(h,y-1)}else if(n>r)for(y=O-r;y>S;y--)b=y+n-1,(g=y+r-1)in h?h[b]=h[g]:f(h,b);for(y=0;y<n;y++)h[y+S]=arguments[y+2];return s(h,O-r+n),v}})},1704:(e,t,n)=>{"use strict";var r=n(4461),o=n(9467),i=n(3071),a=n(6005);e.exports=function(e,t,n){for(var l=o(t),s=a.f,u=i.f,c=0;c<l.length;c++){var d=l[c];r(e,d)||n&&r(n,d)||s(e,d,u(t,d))}}},1715:(e,t,n)=>{"use strict";var r=n(6057),o=n(4102),i=n(4834),a=n(878);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},1759:(e,t,n)=>{"use strict";var r=n(7928),o=n(5236),i=n(6871);r||o(Object.prototype,"toString",i,{unsafe:!0})},1904:(e,t,n)=>{"use strict";var r=n(2748),o=n(2484);e.exports=function(e){if("Function"===r(e))return o(e)}},1929:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},1941:(e,t,n)=>{"use strict";var r=n(8052),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},1948:(e,t,n)=>{"use strict";var r=n(2748);e.exports=Array.isArray||function(e){return"Array"===r(e)}},1954:e=>{"use strict";e.exports=s},1955:(e,t,n)=>{"use strict";var r=n(2484),o=n(7391),i=n(7267),a=n(4834),l=r("".charAt),s=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),f=o(n),v=d.length;return f<0||f>=v?e?"":void 0:(r=s(d,f))<55296||r>56319||f+1===v||(c=s(d,f+1))<56320||c>57343?e?l(d,f):r:e?u(d,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},2035:(e,t,n)=>{"use strict";var r=n(8810),o=n(3625),i=n(4334),a=n(1031),l=n(3443),s=n(1072);r({target:"Promise",stat:!0,forced:n(341)},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=l(function(){var a=i(t.resolve);s(e,function(e){o(a,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},2082:(e,t,n)=>{"use strict";var r=n(2484),o=n(4334),i=n(4102),a=n(4461),l=n(4540),s=n(3588),u=Function,c=r([].concat),d=r([].join),f={};e.exports=s?u.bind:function(e){var t=o(this),n=t.prototype,r=l(arguments,1),s=function(){var n=c(r,l(arguments));return this instanceof s?function(e,t,n){if(!a(f,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";f[t]=u("C,a","return new C("+d(r,",")+")")}return f[t](e,n)}(t,n.length,n):t.apply(e,n)};return i(n)&&(s.prototype=n),s}},2128:(e,t,n)=>{"use strict";var r=n(2675);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2148:e=>{"use strict";e.exports=o},2153:(e,t,n)=>{"use strict";var r=n(4175),o=n(3844),i=n(6005).f,a=r("unscopables"),l=Array.prototype;void 0===l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},2161:(e,t)=>{"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),i=t[1],a=t[2],l=t[3]||"",s={};return s.inverse=!!i&&"not"===i.toLowerCase(),s.type=a?a.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],s.expressions=l.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(o);return{modifier:n[1],feature:n[2],value:t[2]}}),s})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every(function(e){var n=e.feature,r=e.modifier,o=e.value,i=t[n];if(!i)return!1;switch(n){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=u(o),i=u(i);break;case"resolution":o=s(o),i=s(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=l(o),i=l(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(r){case"min":return i>=o;case"max":return i<=o;default:return i===o}});return o&&!n||!o&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function s(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},2173:(e,t,n)=>{"use strict";var r=n(8810),o=n(1031);r({target:"Promise",stat:!0,forced:n(7032).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},2247:e=>{"use strict";e.exports=u},2321:(e,t,n)=>{"use strict";var r=n(2675),o=n(4175),i=n(2763),a=o("species");e.exports=function(e){return i>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},2360:(e,t,n)=>{"use strict";var r=n(2675),o=n(321),i=/#|\.prototype\./,a=function(e,t){var n=s[l(e)];return n===c||n!==u&&(o(t)?r(t):!!t)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2407:(e,t,n)=>{"use strict";var r=n(2675);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2484:(e,t,n)=>{"use strict";var r=n(3588),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},2537:(e,t,n)=>{"use strict";var r=n(2675),o=n(8052).RegExp,i=r(function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),a=i||r(function(){return!o("a","y").sticky}),l=i||r(function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2558:(e,t,n)=>{"use strict";var r=n(2128),o=n(4690).EXISTS,i=n(2484),a=n(6038),l=Function.prototype,s=i(l.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);r&&!o&&a(l,"name",{configurable:!0,get:function(){try{return c(u,s(this))[1]}catch(e){return""}}})},2614:(e,t,n)=>{"use strict";var r=n(8810),o=n(600);r({target:"Array",stat:!0,forced:!n(9976)(function(e){Array.from(e)})},{from:o})},2675:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},2718:(e,t,n)=>{"use strict";var r=n(2484),o=n(321),i=n(2921),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2748:(e,t,n)=>{"use strict";var r=n(2484),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},2763:(e,t,n)=>{"use strict";var r,o,i=n(8052),a=n(3291),l=i.process,s=i.Deno,u=l&&l.versions||s&&s.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},2868:(e,t,n)=>{"use strict";var r=n(2484),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},2900:(e,t,n)=>{"use strict";var r=n(3291);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},2901:(e,t,n)=>{"use strict";var r=n(8052),o=n(5004),i=n(7140),a=n(3348),l=n(671),s=n(8819),u=n(4175)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{l(e,u,c)}catch(t){e[u]=c}if(s(e,t,!0),o[t])for(var n in a)if(e[n]!==a[n])try{l(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)d(r[f]&&r[f].prototype,f);d(i,"DOMTokenList")},2921:(e,t,n)=>{"use strict";var r=n(6007),o=n(8052),i=n(1941),a="__core-js_shared__",l=e.exports=o[a]||i(a,{});(l.versions||(l.versions=[])).push({version:"3.45.1",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},2961:(e,t,n)=>{"use strict";var r=n(9004),o=n(2484),i=n(51),a=n(8649),l=n(8770),s=n(4929),u=o([].push),c=function(e){var t=1===e,n=2===e,o=3===e,c=4===e,d=6===e,f=7===e,v=5===e||d;return function(p,m,y,g){for(var b,h,O=a(p),S=i(O),x=l(S),j=r(m,y),w=0,_=g||s,E=t?_(p,x):n||f?_(p,0):void 0;x>w;w++)if((v||w in S)&&(h=j(b=S[w],w,O),e))if(t)E[w]=h;else if(h)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u(E,b)}else switch(e){case 4:return!1;case 7:u(E,b)}return d?-1:o||c?c:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},3026:(e,t,n)=>{"use strict";var r=n(7391),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},3037:(e,t,n)=>{"use strict";var r=n(2128),o=n(706),i=n(6005),a=n(659),l=n(8969),s=n(4700);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=l(t),o=s(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},3049:(e,t,n)=>{"use strict";var r=n(4690).PROPER,o=n(5236),i=n(659),a=n(7267),l=n(2675),s=n(3614),u="toString",c=RegExp.prototype,d=c[u],f=l(function(){return"/a/b"!==d.call({source:"a",flags:"b"})}),v=r&&d.name!==u;(f||v)&&o(c,u,function(){var e=i(this);return"/"+a(e.source)+"/"+a(s(e))},{unsafe:!0})},3060:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},3071:(e,t,n)=>{"use strict";var r=n(2128),o=n(3625),i=n(7769),a=n(5936),l=n(8969),s=n(1261),u=n(4461),c=n(4113),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=l(e),t=s(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},3081:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},3082:(e,t,n)=>{"use strict";var r=n(8810),o=n(1948),i=n(1441),a=n(4102),l=n(6526),s=n(8770),u=n(8969),c=n(4028),d=n(4175),f=n(2321),v=n(4540),p=f("slice"),m=d("species"),y=Array,g=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,d,f=u(this),p=s(f),b=l(e,p),h=l(void 0===t?p:t,p);if(o(f)&&(n=f.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===y||void 0===n))return v(f,b,h);for(r=new(void 0===n?y:n)(g(h-b,0)),d=0;b<h;b++,d++)b in f&&c(r,d,f[b]);return r.length=d,r}})},3112:(e,t,n)=>{"use strict";var r=n(1441),o=n(8379),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},3163:(e,t,n)=>{"use strict";var r=n(8052),o=n(321);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},3259:(e,t,n)=>{"use strict";var r=n(4584),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},3291:(e,t,n)=>{"use strict";var r=n(8052).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},3316:(e,t,n)=>{"use strict";var r=n(6891);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3348:(e,t,n)=>{"use strict";var r=n(8969),o=n(2153),i=n(6609),a=n(6369),l=n(6005).f,s=n(8676),u=n(381),c=n(6007),d=n(2128),f="Array Iterator",v=a.set,p=a.getterFor(f);e.exports=s(Array,"Array",function(e,t){v(this,{type:f,target:r(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==m.name)try{l(m,"name",{value:"values"})}catch(e){}},3401:(e,t,n)=>{"use strict";var r=n(3163),o=n(321),i=n(7837),a=n(3316),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,l(e))}},3406:(e,t,n)=>{"use strict";var r=n(8810),o=n(5150).trim;r({target:"String",proto:!0,forced:n(790)("trim")},{trim:function(){return o(this)}})},3409:(e,t,n)=>{"use strict";var r=n(3291).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},3443:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},3539:(e,t,n)=>{"use strict";var r=n(3291).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},3544:(e,t,n)=>{"use strict";var r=n(8052),o=n(5004),i=n(7140),a=n(9311),l=n(671),s=function(e){if(e&&e.forEach!==a)try{l(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&s(r[u]&&r[u].prototype);s(i)},3588:(e,t,n)=>{"use strict";var r=n(2675);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},3597:(e,t,n)=>{"use strict";var r,o,i,a=n(2675),l=n(321),s=n(4102),u=n(3844),c=n(5927),d=n(5236),f=n(4175),v=n(6007),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):m=!0),!s(r)||a(function(){var e={};return r[p].call(e)!==e})?r={}:v&&(r=u(r)),l(r[p])||d(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},3614:(e,t,n)=>{"use strict";var r=n(3625),o=n(4461),i=n(7837),a=n(4993),l=n(8303),s=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!i(s,e)||o(e,"flags")?e.flags:r(l,e)}},3625:(e,t,n)=>{"use strict";var r=n(3588),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},3709:(e,t,n)=>{"use strict";var r=n(4175),o=n(6609),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3765:(e,t,n)=>{"use strict";var r=n(8810),o=n(8052),i=n(3625),a=n(2484),l=n(6007),s=n(2128),u=n(6891),c=n(2675),d=n(4461),f=n(7837),v=n(659),p=n(8969),m=n(1261),y=n(7267),g=n(5936),b=n(3844),h=n(4700),O=n(4956),S=n(6766),x=n(9073),j=n(3071),w=n(6005),_=n(3037),E=n(7769),C=n(5236),N=n(6038),I=n(6445),A=n(3779),D=n(6617),T=n(2868),P=n(4175),L=n(5672),R=n(4515),k=n(8438),M=n(8819),U=n(6369),B=n(2961).forEach,F=A("hidden"),G="Symbol",V="prototype",H=U.set,W=U.getterFor(G),z=Object[V],X=o.Symbol,q=X&&X[V],Q=o.RangeError,Z=o.TypeError,Y=o.QObject,K=j.f,J=w.f,$=S.f,ee=E.f,te=a([].push),ne=I("symbols"),re=I("op-symbols"),oe=I("wks"),ie=!Y||!Y[V]||!Y[V].findChild,ae=function(e,t,n){var r=K(z,t);r&&delete z[t],J(e,t,n),r&&e!==z&&J(z,t,r)},le=s&&c(function(){return 7!==b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?ae:J,se=function(e,t){var n=ne[e]=b(q);return H(n,{type:G,tag:e,description:t}),s||(n.description=t),n},ue=function(e,t,n){e===z&&ue(re,t,n),v(e);var r=m(t);return v(n),d(ne,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(d(e,F)||J(e,F,g(1,b(null))),e[F][r]=!0),le(e,r,n)):J(e,r,n)},ce=function(e,t){v(e);var n=p(t),r=h(n).concat(pe(n));return B(r,function(t){s&&!i(de,n,t)||ue(e,t,n[t])}),e},de=function(e){var t=m(e),n=i(ee,this,t);return!(this===z&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,F)&&this[F][t])||n)},fe=function(e,t){var n=p(e),r=m(t);if(n!==z||!d(ne,r)||d(re,r)){var o=K(n,r);return!o||!d(ne,r)||d(n,F)&&n[F][r]||(o.enumerable=!0),o}},ve=function(e){var t=$(p(e)),n=[];return B(t,function(e){d(ne,e)||d(D,e)||te(n,e)}),n},pe=function(e){var t=e===z,n=$(t?re:p(e)),r=[];return B(n,function(e){!d(ne,e)||t&&!d(z,e)||te(r,ne[e])}),r};u||(C(q=(X=function(){if(f(q,this))throw new Z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=T(e),n=function(e){var r=void 0===this?o:this;r===z&&i(n,re,e),d(r,F)&&d(r[F],t)&&(r[F][t]=!1);var a=g(1,e);try{le(r,t,a)}catch(e){if(!(e instanceof Q))throw e;ae(r,t,a)}};return s&&ie&&le(z,t,{configurable:!0,set:n}),se(t,e)})[V],"toString",function(){return W(this).tag}),C(X,"withoutSetter",function(e){return se(T(e),e)}),E.f=de,w.f=ue,_.f=ce,j.f=fe,O.f=S.f=ve,x.f=pe,L.f=function(e){return se(P(e),e)},s&&(N(q,"description",{configurable:!0,get:function(){return W(this).description}}),l||C(z,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:X}),B(h(oe),function(e){R(e)}),r({target:G,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ve}),k(),M(X,G),D[F]=!0},3775:(e,t,n)=>{"use strict";var r=n(8810),o=n(2675),i=n(8649),a=n(5927),l=n(2407);r({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!l},{getPrototypeOf:function(e){return a(i(e))}})},3779:(e,t,n)=>{"use strict";var r=n(6445),o=n(2868),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},3844:(e,t,n)=>{"use strict";var r,o=n(659),i=n(3037),a=n(8563),l=n(6617),s=n(7073),u=n(4451),c=n(3779),d="prototype",f="script",v=c("IE_PROTO"),p=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?y(r):(t=u("iframe"),n="java"+f+":",t.style.display="none",s.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):y(r);for(var o=a.length;o--;)delete g[d][a[o]];return g()};l[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=o(e),n=new p,p[d]=null,n[v]=e):n=g(),void 0===t?n:i.f(n,t)}},3985:(e,t,n)=>{"use strict";var r=n(659),o=n(3112),i=n(9601),a=n(4175)("species");e.exports=function(e,t){var n,l=r(e).constructor;return void 0===l||i(n=r(l)[a])?t:o(n)}},4012:e=>{"use strict";e.exports=t},4028:(e,t,n)=>{"use strict";var r=n(2128),o=n(6005),i=n(5936);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},4034:(e,t,n)=>{"use strict";var r=n(8810),o=n(2484),i=n(4334),a=n(8649),l=n(8770),s=n(8458),u=n(7267),c=n(2675),d=n(4492),f=n(8754),v=n(3409),p=n(719),m=n(2763),y=n(3539),g=[],b=o(g.sort),h=o(g.push),O=c(function(){g.sort(void 0)}),S=c(function(){g.sort(null)}),x=f("sort"),j=!c(function(){if(m)return m<70;if(!(v&&v>3)){if(p)return!0;if(y)return y<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort(function(e,t){return t.v-e.v}),r=0;r<g.length;r++)t=g[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:O||!S||!x||!j},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(j)return void 0===e?b(t):b(t,e);var n,r,o=[],c=l(t);for(r=0;r<c;r++)r in t&&h(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=l(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)s(t,r++);return t}})},4035:(e,t,n)=>{"use strict";var r=n(659),o=n(1151);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},4049:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4102:(e,t,n)=>{"use strict";var r=n(321);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},4113:(e,t,n)=>{"use strict";var r=n(2128),o=n(2675),i=n(4451);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},4175:(e,t,n)=>{"use strict";var r=n(8052),o=n(6445),i=n(4461),a=n(2868),l=n(6891),s=n(3316),u=r.Symbol,c=o("wks"),d=s?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=l&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},4267:(e,t,n)=>{"use strict";var r=n(8810),o=n(863);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},4334:(e,t,n)=>{"use strict";var r=n(321),o=n(8379),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},4442:e=>{"use strict";e.exports=i},4451:(e,t,n)=>{"use strict";var r=n(8052),o=n(4102),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},4456:e=>{"use strict";e.exports=r},4461:(e,t,n)=>{"use strict";var r=n(2484),o=n(8649),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},4492:(e,t,n)=>{"use strict";var r=n(4540),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,l,s=1;s<n;){for(l=s,a=e[s];l&&t(e[l-1],a)>0;)e[l]=e[--l];l!==s++&&(e[l]=a)}else for(var u=o(n/2),c=i(r(e,0,u),t),d=i(r(e,u),t),f=c.length,v=d.length,p=0,m=0;p<f||m<v;)e[p+m]=p<f&&m<v?t(c[p],d[m])<=0?c[p++]:d[m++]:p<f?c[p++]:d[m++];return e};e.exports=i},4515:(e,t,n)=>{"use strict";var r=n(9747),o=n(4461),i=n(5672),a=n(6005).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},4540:(e,t,n)=>{"use strict";var r=n(2484);e.exports=r([].slice)},4550:(e,t,n)=>{"use strict";var r=n(8810),o=n(8801).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},4584:(e,t,n)=>{"use strict";var r=n(4102),o=n(2748),i=n(4175)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},4643:(e,t,n)=>{"use strict";var r=n(2128),o=n(1948),i=TypeError,a=Object.getOwnPropertyDescriptor,l=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4690:(e,t,n)=>{"use strict";var r=n(2128),o=n(4461),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),s=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:s,CONFIGURABLE:u}},4700:(e,t,n)=>{"use strict";var r=n(4792),o=n(8563);e.exports=Object.keys||function(e){return r(e,o)}},4707:(e,t,n)=>{"use strict";var r=n(8810),o=n(6749).includes,i=n(2675),a=n(2153);r({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4792:(e,t,n)=>{"use strict";var r=n(2484),o=n(4461),i=n(8969),a=n(6749).indexOf,l=n(6617),s=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&s(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||s(c,n));return c}},4802:(e,t,n)=>{"use strict";var r=n(8810),o=n(2128),i=n(9467),a=n(8969),l=n(3071),s=n(4028);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=l.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&s(c,t,n);return c}})},4834:(e,t,n)=>{"use strict";var r=n(9601),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},4912:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},4929:(e,t,n)=>{"use strict";var r=n(8845);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},4951:(e,t,n)=>{"use strict";var r=n(5719),o=n(9538),i=n(9601),a=n(6609),l=n(4175)("iterator");e.exports=function(e){if(!i(e))return o(e,l)||o(e,"@@iterator")||a[r(e)]}},4956:(e,t,n)=>{"use strict";var r=n(4792),o=n(8563).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},4958:(e,t,n)=>{"use strict";var r=n(8810),o=n(2675),i=n(1948),a=n(4102),l=n(8649),s=n(8770),u=n(3081),c=n(4028),d=n(4929),f=n(2321),v=n(4175),p=n(2763),m=v("isConcatSpreadable"),y=p>=51||!o(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!y||!f("concat")},{concat:function(e){var t,n,r,o,i,a=l(this),f=d(a,0),v=0;for(t=-1,r=arguments.length;t<r;t++)if(g(i=-1===t?a:arguments[t]))for(o=s(i),u(v+o),n=0;n<o;n++,v++)n in i&&c(f,v,i[n]);else u(v+1),c(f,v++,i);return f.length=v,f}})},4993:(e,t,n)=>{"use strict";var r=n(8052),o=n(2675),i=r.RegExp,a=!o(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var l in e&&(a.hasIndices="d"),a)o(l,a[l]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:a}},5001:(e,t,n)=>{"use strict";var r=n(2484),o=n(1948),i=n(321),a=n(2748),l=n(7267),s=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?s(n,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||s(n,l(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},5004:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5034:(e,t,n)=>{"use strict";var r=n(8052);e.exports=r.Promise},5050:(e,t,n)=>{"use strict";var r=n(8810),o=n(2484),i=n(51),a=n(8969),l=n(8754),s=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!l("join",",")},{join:function(e){return s(a(this),void 0===e?",":e)}})},5053:e=>{"use strict";e.exports=a},5143:(e,t,n)=>{"use strict";var r=n(8810),o=n(3625),i=n(4334),a=n(1031),l=n(3443),s=n(1072);r({target:"Promise",stat:!0,forced:n(341)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,c=l(function(){var n=i(t.resolve),a=[],l=0,c=1;s(e,function(e){var i=l++,s=!1;c++,o(n,t,e).then(function(e){s||(s=!0,a[i]=e,--c||r(a))},u)}),--c||r(a)});return c.error&&u(c.value),n.promise}})},5150:(e,t,n)=>{"use strict";var r=n(2484),o=n(4834),i=n(7267),a=n(4912),l=r("".replace),s=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=l(n,s,"")),2&e&&(n=l(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},5236:(e,t,n)=>{"use strict";var r=n(321),o=n(6005),i=n(9455),a=n(1941);e.exports=function(e,t,n,l){l||(l={});var s=l.enumerable,u=void 0!==l.name?l.name:t;if(r(n)&&i(n,u,l),l.global)s?e[t]=n:a(t,n);else{try{l.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},5424:(e,t,n)=>{"use strict";var r=n(8810),o=n(6007),i=n(2128),a=n(8052),l=n(9747),s=n(2484),u=n(2360),c=n(4461),d=n(9859),f=n(7837),v=n(3401),p=n(573),m=n(2675),y=n(4956).f,g=n(3071).f,b=n(6005).f,h=n(7156),O=n(5150).trim,S="Number",x=a[S],j=l[S],w=x.prototype,_=a.TypeError,E=s("".slice),C=s("".charCodeAt),N=u(S,!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){var t,n=arguments.length<1?0:x(function(e){var t=p(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,o,i,a,l,s,u=p(e,"number");if(v(u))throw new _("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=O(u),43===(t=C(u,0))||45===t){if(88===(n=C(u,2))||120===n)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=E(u,2)).length,l=0;l<a;l++)if((s=C(i,l))<48||s>o)return NaN;return parseInt(i,r)}return+u}(t)}(e));return f(w,t=this)&&m(function(){h(t)})?d(Object(n),this,I):n};I.prototype=w,N&&!o&&(w.constructor=I),r({global:!0,constructor:!0,wrap:!0,forced:N},{Number:I});var A=function(e,t){for(var n,r=i?y(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&b(e,n,g(t,n))};o&&j&&A(l[S],j),(N||o)&&A(l[S],x)},5514:(e,t,n)=>{"use strict";var r=n(3625),o=n(321),i=n(4102),a=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!i(l=r(n,e)))return l;if(o(n=e.valueOf)&&!i(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!i(l=r(n,e)))return l;throw new a("Can't convert object to primitive value")}},5549:(e,t,n)=>{"use strict";var r=n(8810),o=n(2961).find,i=n(2153),a="find",l=!0;a in[]&&Array(1)[a](function(){l=!1}),r({target:"Array",proto:!0,forced:l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},5550:(e,t,n)=>{"use strict";var r=n(8810),o=n(7236);r({target:"String",proto:!0,forced:n(6641)("link")},{link:function(e){return o(this,"a","href",e)}})},5672:(e,t,n)=>{"use strict";var r=n(4175);t.f=r},5719:(e,t,n)=>{"use strict";var r=n(7928),o=n(321),i=n(2748),a=n(4175)("toStringTag"),l=Object,s="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=l(e),a))?n:s?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},5722:(e,t,n)=>{"use strict";var r=n(2675),o=n(8052).RegExp;e.exports=r(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},5755:(e,t,n)=>{"use strict";var r=n(7837),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},5927:(e,t,n)=>{"use strict";var r=n(4461),o=n(321),i=n(8649),a=n(3779),l=n(2407),s=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=i(e);if(r(t,s))return t[s];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},5936:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5953:e=>{"use strict";e.exports=n},6005:(e,t,n)=>{"use strict";var r=n(2128),o=n(4113),i=n(706),a=n(659),l=n(1261),s=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",v="writable";t.f=r?i?function(e,t,n){if(a(e),t=l(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&v in n&&!n[v]){var r=c(e,t);r&&r[v]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=l(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},6007:e=>{"use strict";e.exports=!1},6038:(e,t,n)=>{"use strict";var r=n(9455),o=n(6005);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},6057:(e,t,n)=>{"use strict";var r=n(2484),o=n(4334);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6125:(e,t,n)=>{"use strict";var r=n(6627);e.exports="NODE"===r},6221:(e,t,n)=>{"use strict";var r=n(3625),o=n(4334),i=n(659),a=n(8379),l=n(4951),s=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return i(r(n,e));throw new s(a(e)+" is not iterable")}},6243:t=>{"use strict";t.exports=e},6315:(e,t,n)=>{"use strict";var r=n(8810),o=n(2128),i=n(8052),a=n(2484),l=n(4461),s=n(321),u=n(7837),c=n(7267),d=n(6038),f=n(1704),v=i.Symbol,p=v&&v.prototype;if(o&&s(v)&&(!("description"in p)||void 0!==v().description)){var m={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new v(e):void 0===e?v():v(e);return""===e&&(m[t]=!0),t};f(y,v),y.prototype=p,p.constructor=y;var g="Symbol(description detection)"===String(v("description detection")),b=a(p.valueOf),h=a(p.toString),O=/^Symbol\((.*)\)[^)]+$/,S=a("".replace),x=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this);if(l(m,e))return"";var t=h(e),n=g?x(t,7,-1):S(t,O,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:y})}},6369:(e,t,n)=>{"use strict";var r,o,i,a=n(8434),l=n(8052),s=n(4102),u=n(671),c=n(4461),d=n(2921),f=n(3779),v=n(6617),p="Object already initialized",m=l.TypeError,y=l.WeakMap;if(a||d.state){var g=d.state||(d.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new m(p);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var b=f("state");v[b]=!0,r=function(e,t){if(c(e,b))throw new m(p);return t.facade=e,u(e,b,t),t},o=function(e){return c(e,b)?e[b]:{}},i=function(e){return c(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},6445:(e,t,n)=>{"use strict";var r=n(2921);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},6526:(e,t,n)=>{"use strict";var r=n(7391),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},6558:(e,t,n)=>{"use strict";n(8808),n(5143),n(383),n(2035),n(2173),n(9767)},6559:(e,t,n)=>{"use strict";var r,o,i,a,l,s=n(8052),u=n(6977),c=n(9004),d=n(6781).set,f=n(1661),v=n(2900),p=n(7517),m=n(552),y=n(6125),g=s.MutationObserver||s.WebKitMutationObserver,b=s.document,h=s.process,O=s.Promise,S=u("queueMicrotask");if(!S){var x=new f,j=function(){var e,t;for(y&&(e=h.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};v||y||m||!g||!b?!p&&O&&O.resolve?((a=O.resolve(void 0)).constructor=O,l=c(a.then,a),r=function(){l(j)}):y?r=function(){h.nextTick(j)}:(d=c(d,s),r=function(){d(j)}):(o=!0,i=b.createTextNode(""),new g(j).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),S=function(e){x.head||r(),x.add(e)}}e.exports=S},6609:e=>{"use strict";e.exports={}},6617:e=>{"use strict";e.exports={}},6627:(e,t,n)=>{"use strict";var r=n(8052),o=n(3291),i=n(2748),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},6641:(e,t,n)=>{"use strict";var r=n(2675);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},6749:(e,t,n)=>{"use strict";var r=n(8969),o=n(6526),i=n(8770),a=function(e){return function(t,n,a){var l=r(t),s=i(l);if(0===s)return!e&&-1;var u,c=o(a,s);if(e&&n!=n){for(;s>c;)if((u=l[c++])!=u)return!0}else for(;s>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6766:(e,t,n)=>{"use strict";var r=n(2748),o=n(8969),i=n(4956).f,a=n(4540),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return a(l)}}(e):i(o(e))}},6781:(e,t,n)=>{"use strict";var r,o,i,a,l=n(8052),s=n(133),u=n(9004),c=n(321),d=n(4461),f=n(2675),v=n(7073),p=n(4540),m=n(4451),y=n(464),g=n(2900),b=n(6125),h=l.setImmediate,O=l.clearImmediate,S=l.process,x=l.Dispatch,j=l.Function,w=l.MessageChannel,_=l.String,E=0,C={},N="onreadystatechange";f(function(){r=l.location});var I=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},A=function(e){return function(){I(e)}},D=function(e){I(e.data)},T=function(e){l.postMessage(_(e),r.protocol+"//"+r.host)};h&&O||(h=function(e){y(arguments.length,1);var t=c(e)?e:j(e),n=p(arguments,1);return C[++E]=function(){s(t,void 0,n)},o(E),E},O=function(e){delete C[e]},b?o=function(e){S.nextTick(A(e))}:x&&x.now?o=function(e){x.now(A(e))}:w&&!g?(a=(i=new w).port2,i.port1.onmessage=D,o=u(a.postMessage,a)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&r&&"file:"!==r.protocol&&!f(T)?(o=T,l.addEventListener("message",D,!1)):o=N in m("script")?function(e){v.appendChild(m("script"))[N]=function(){v.removeChild(this),I(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:h,clear:O}},6794:(e,t,n)=>{"use strict";var r=n(659),o=n(4102),i=n(1031);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},6870:(e,t,n)=>{"use strict";e.exports=n(3060)},6871:(e,t,n)=>{"use strict";var r=n(7928),o=n(5719);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},6891:(e,t,n)=>{"use strict";var r=n(2763),o=n(2675),i=n(8052).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},6977:(e,t,n)=>{"use strict";var r=n(8052),o=n(2128),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},6985:(e,t,n)=>{"use strict";var r=n(8810),o=n(6891),i=n(2675),a=n(9073),l=n(8649);r({target:"Object",stat:!0,forced:!o||i(function(){a.f(1)})},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(l(e)):[]}})},7032:(e,t,n)=>{"use strict";var r=n(8052),o=n(5034),i=n(321),a=n(2360),l=n(2718),s=n(4175),u=n(6627),c=n(6007),d=n(2763),f=o&&o.prototype,v=s("species"),p=!1,m=i(r.PromiseRejectionEvent),y=a("Promise",function(){var e=l(o),t=e!==String(o);if(!t&&66===d)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[v]=r,!(p=n.then(function(){})instanceof r))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||m)});e.exports={CONSTRUCTOR:y,REJECTION_EVENT:m,SUBCLASSING:p}},7073:(e,t,n)=>{"use strict";var r=n(3163);e.exports=r("document","documentElement")},7132:(e,t,n)=>{"use strict";var r=n(6005).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},7140:(e,t,n)=>{"use strict";var r=n(4451)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7156:(e,t,n)=>{"use strict";var r=n(2484);e.exports=r(1.1.valueOf)},7183:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7200:(e,t,n)=>{"use strict";var r=n(4461),o=n(5236),i=n(1652),a=n(4175)("toPrimitive"),l=Date.prototype;r(l,a)||o(l,a,i)},7236:(e,t,n)=>{"use strict";var r=n(2484),o=n(4834),i=n(7267),a=/"/g,l=r("".replace);e.exports=function(e,t,n,r){var s=i(o(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+l(i(r),a,""")+'"'),u+">"+s+"</"+t+">"}},7267:(e,t,n)=>{"use strict";var r=n(5719),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},7270:(e,t,n)=>{"use strict";var r=n(3597).IteratorPrototype,o=n(3844),i=n(5936),a=n(8819),l=n(6609),s=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),l[c]=s,e}},7372:(e,t,n)=>{"use strict";var r=n(8810),o=n(2961).filter;r({target:"Array",proto:!0,forced:!n(2321)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},7391:(e,t,n)=>{"use strict";var r=n(4049);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},7476:(e,t,n)=>{"use strict";var r=n(8810),o=n(8649),i=n(4700);r({target:"Object",stat:!0,forced:n(2675)(function(){i(1)})},{keys:function(e){return i(o(e))}})},7517:(e,t,n)=>{"use strict";var r=n(3291);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},7560:(e,t,n)=>{"use strict";var r=n(1955).charAt,o=n(7267),i=n(6369),a=n(8676),l=n(381),s="String Iterator",u=i.set,c=i.getterFor(s);a(String,"String",function(e){u(this,{type:s,string:o(e),index:0})},function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?l(void 0,!0):(e=r(n,o),t.index+=e.length,l(e,!1))})},7567:(e,t,n)=>{"use strict";var r=n(8810),o=n(2484),i=n(3259),a=n(4834),l=n(7267),s=n(8656),u=o("".indexOf);r({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~u(l(a(this)),l(i(e)),arguments.length>1?arguments[1]:void 0)}})},7575:(e,t,n)=>{"use strict";n(3765),n(930),n(9200),n(7754),n(6985)},7598:(e,t,n)=>{e.exports=n(856)()},7754:(e,t,n)=>{"use strict";var r=n(8810),o=n(3163),i=n(133),a=n(3625),l=n(2484),s=n(2675),u=n(321),c=n(3401),d=n(4540),f=n(5001),v=n(6891),p=String,m=o("JSON","stringify"),y=l(/./.exec),g=l("".charAt),b=l("".charCodeAt),h=l("".replace),O=l(1.1.toString),S=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,w=!v||s(function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))}),_=s(function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")}),E=function(e,t){var n=d(arguments),r=f(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=a(r,this,p(e),t)),!c(t))return t},i(m,null,n)},C=function(e,t,n){var r=g(n,t-1),o=g(n,t+1);return y(x,e)&&!y(j,o)||y(j,e)&&!y(x,r)?"\\u"+O(b(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:w||_},{stringify:function(e,t,n){var r=d(arguments),o=i(w?E:m,null,r);return _&&"string"==typeof o?h(o,S,C):o}})},7769:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7778:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},7808:(e,t,n)=>{"use strict";n(4267);var r=n(3625),o=n(5236),i=n(863),a=n(2675),l=n(4175),s=n(671),u=l("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=l(e),v=!a(function(){var t={};return t[f]=function(){return 7},7!==""[e](t)}),p=v&&!a(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t});if(!v||!p||n){var m=/./[f],y=t(f,""[e],function(e,t,n,o,a){var l=t.exec;return l===i||l===c.exec?v&&!a?{done:!0,value:r(m,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}});o(String.prototype,e,y[0]),o(c,f,y[1])}d&&s(c[f],"sham",!0)}},7837:(e,t,n)=>{"use strict";var r=n(2484);e.exports=r({}.isPrototypeOf)},7928:(e,t,n)=>{"use strict";var r={};r[n(4175)("toStringTag")]="z",e.exports="[object z]"===String(r)},8037:(e,t,n)=>{"use strict";var r=n(8810),o=n(3163),i=n(133),a=n(2082),l=n(3112),s=n(659),u=n(4102),c=n(3844),d=n(2675),f=o("Reflect","construct"),v=Object.prototype,p=[].push,m=d(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),y=!d(function(){f(function(){})}),g=m||y;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){l(e),s(t);var n=arguments.length<3?e:l(arguments[2]);if(y&&!m)return f(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:v),g=i(e,d,t);return u(g)?g:d}})},8052:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8142:(e,t,n)=>{"use strict";var r=n(3625),o=n(7808),i=n(659),a=n(4102),l=n(4834),s=n(7778),u=n(7267),c=n(9538),d=n(9198);o("search",function(e,t,n){return[function(t){var n=l(this),o=a(t)?c(t,e):void 0;return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var l=r.lastIndex;s(l,0)||(r.lastIndex=0);var c=d(r,o);return s(r.lastIndex,l)||(r.lastIndex=l),null===c?-1:c.index}]})},8220:(e,t,n)=>{"use strict";var r=n(2128),o=n(8052),i=n(2484),a=n(2360),l=n(9859),s=n(671),u=n(3844),c=n(4956).f,d=n(7837),f=n(4584),v=n(7267),p=n(3614),m=n(2537),y=n(7132),g=n(5236),b=n(2675),h=n(4461),O=n(6369).enforce,S=n(461),x=n(4175),j=n(991),w=n(5722),_=x("match"),E=o.RegExp,C=E.prototype,N=o.SyntaxError,I=i(C.exec),A=i("".charAt),D=i("".replace),T=i("".indexOf),P=i("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,k=/a/g,M=new E(R)!==R,U=m.MISSED_STICKY,B=m.UNSUPPORTED_Y;if(a("RegExp",r&&(!M||U||j||w||b(function(){return k[_]=!1,E(R)!==R||E(k)===k||"/a/i"!==String(E(R,"i"))})))){for(var F=function(e,t){var n,r,o,i,a,c,m=d(C,this),y=f(e),g=void 0===t,b=[],S=e;if(!m&&y&&g&&e.constructor===F)return e;if((y||d(C,e))&&(e=e.source,g&&(t=p(S))),e=void 0===e?"":v(e),t=void 0===t?"":v(t),S=e,j&&"dotAll"in R&&(r=!!t&&T(t,"s")>-1)&&(t=D(t,/s/g,"")),n=t,U&&"sticky"in R&&(o=!!t&&T(t,"y")>-1)&&B&&(t=D(t,/y/g,"")),w&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=u(null),l=!1,s=!1,c=0,d="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)l=!1;else if(!l)switch(!0){case"["===t:l=!0;break;case"("===t:if(o+=t,"?:"===P(e,r+1,r+3))continue;I(L,P(e,r+1))&&(r+=2,s=!0),c++;continue;case">"===t&&s:if(""===d||h(a,d))throw new N("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],s=!1,d="";continue}s?d+=t:o+=t}return[o,i]}(e),e=i[0],b=i[1]),a=l(E(e,t),m?this:C,F),(r||o||b.length)&&(c=O(a),r&&(c.dotAll=!0,c.raw=F(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=A(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+A(e,++r);return o}(e),n)),o&&(c.sticky=!0),b.length&&(c.groups=b)),e!==S)try{s(a,"source",""===S?"(?:)":S)}catch(e){}return a},G=c(E),V=0;G.length>V;)y(F,E,G[V++]);C.constructor=F,F.prototype=C,g(o,"RegExp",F,{constructor:!0})}S("RegExp")},8303:(e,t,n)=>{"use strict";var r=n(659);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8320:(e,t,n)=>{"use strict";var r=n(2161).Y,o="undefined"!=typeof window?window.matchMedia:null;function i(e,t,n){var i,a=this;function l(e){a.matches=e.matches,a.media=e.media}o&&!n&&(i=o.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(l)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(l)}}e.exports=function(e,t,n){return new i(e,t,n)}},8379:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8434:(e,t,n)=>{"use strict";var r=n(8052),o=n(321),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8438:(e,t,n)=>{"use strict";var r=n(3625),o=n(3163),i=n(4175),a=n(5236);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,l=i("toPrimitive");t&&!t[l]&&a(t,l,function(e){return r(n,this)},{arity:1})}},8458:(e,t,n)=>{"use strict";var r=n(8379),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},8501:(e,t,n)=>{"use strict";var r=n(8810),o=n(1072),i=n(4028);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,function(e,n){i(t,e,n)},{AS_ENTRIES:!0}),t}})},8563:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8649:(e,t,n)=>{"use strict";var r=n(4834),o=Object;e.exports=function(e){return o(r(e))}},8656:(e,t,n)=>{"use strict";var r=n(4175)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8676:(e,t,n)=>{"use strict";var r=n(8810),o=n(3625),i=n(6007),a=n(4690),l=n(321),s=n(7270),u=n(5927),c=n(1715),d=n(8819),f=n(671),v=n(5236),p=n(4175),m=n(6609),y=n(3597),g=a.PROPER,b=a.CONFIGURABLE,h=y.IteratorPrototype,O=y.BUGGY_SAFARI_ITERATORS,S=p("iterator"),x="keys",j="values",w="entries",_=function(){return this};e.exports=function(e,t,n,a,p,y,E){s(n,t,a);var C,N,I,A=function(e){if(e===p&&R)return R;if(!O&&e&&e in P)return P[e];switch(e){case x:case j:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",T=!1,P=e.prototype,L=P[S]||P["@@iterator"]||p&&P[p],R=!O&&L||A(p),k="Array"===t&&P.entries||L;if(k&&(C=u(k.call(new e)))!==Object.prototype&&C.next&&(i||u(C)===h||(c?c(C,h):l(C[S])||v(C,S,_)),d(C,D,!0,!0),i&&(m[D]=_)),g&&p===j&&L&&L.name!==j&&(!i&&b?f(P,"name",j):(T=!0,R=function(){return o(L,this)})),p)if(N={values:A(j),keys:y?R:A(x),entries:A(w)},E)for(I in N)(O||T||!(I in P))&&v(P,I,N[I]);else r({target:t,proto:!0,forced:O||T},N);return i&&!E||P[S]===R||v(P,S,R,{name:p}),m[t]=R,N}},8754:(e,t,n)=>{"use strict";var r=n(2675);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},8770:(e,t,n)=>{"use strict";var r=n(3026);e.exports=function(e){return r(e.length)}},8785:(e,t,n)=>{"use strict";var r=n(1955).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},8801:(e,t,n)=>{"use strict";var r=n(2128),o=n(2675),i=n(2484),a=n(5927),l=n(4700),s=n(8969),u=i(n(7769).f),c=i([].push),d=r&&o(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),f=function(e){return function(t){for(var n,o=s(t),i=l(o),f=d&&null===a(o),v=i.length,p=0,m=[];v>p;)n=i[p++],r&&!(f?n in o:u(o,n))||c(m,e?[n,o[n]]:o[n]);return m}};e.exports={entries:f(!0),values:f(!1)}},8808:(e,t,n)=>{"use strict";var r,o,i,a,l=n(8810),s=n(6007),u=n(6125),c=n(8052),d=n(9747),f=n(3625),v=n(5236),p=n(1715),m=n(8819),y=n(461),g=n(4334),b=n(321),h=n(4102),O=n(5755),S=n(3985),x=n(6781).set,j=n(6559),w=n(1929),_=n(3443),E=n(1661),C=n(6369),N=n(5034),I=n(7032),A=n(1031),D="Promise",T=I.CONSTRUCTOR,P=I.REJECTION_EVENT,L=I.SUBCLASSING,R=C.getterFor(D),k=C.set,M=N&&N.prototype,U=N,B=M,F=c.TypeError,G=c.document,V=c.process,H=A.f,W=H,z=!!(G&&G.createEvent&&c.dispatchEvent),X="unhandledrejection",q=function(e){var t;return!(!h(e)||!b(t=e.then))&&t},Q=function(e,t){var n,r,o,i=t.value,a=1===t.state,l=a?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{l?(a||(2===t.rejection&&$(t),t.rejection=1),!0===l?n=i:(c&&c.enter(),n=l(i),c&&(c.exit(),o=!0)),n===e.promise?u(new F("Promise-chain cycle")):(r=q(n))?f(r,n,s,u):s(n)):u(i)}catch(e){c&&!o&&c.exit(),u(e)}},Z=function(e,t){e.notified||(e.notified=!0,j(function(){for(var n,r=e.reactions;n=r.get();)Q(n,e);e.notified=!1,t&&!e.rejection&&K(e)}))},Y=function(e,t,n){var r,o;z?((r=G.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!P&&(o=c["on"+e])?o(r):e===X&&w("Unhandled promise rejection",n)},K=function(e){f(x,c,function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=_(function(){u?V.emit("unhandledRejection",r,n):Y(X,n,r)}),e.rejection=u||J(e)?2:1,t.error))throw t.value})},J=function(e){return 1!==e.rejection&&!e.parent},$=function(e){f(x,c,function(){var t=e.facade;u?V.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new F("Promise can't be resolved itself");var r=q(t);r?j(function(){var n={done:!1};try{f(r,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}}):(e.value=t,e.state=1,Z(e,!1))}catch(t){te({done:!1},t,e)}}};if(T&&(B=(U=function(e){O(this,B),g(e),f(r,this);var t=R(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){k(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:null})}).prototype=v(B,"then",function(e,t){var n=R(this),r=H(S(this,U));return n.parent=!0,r.ok=!b(e)||e,r.fail=b(t)&&t,r.domain=u?V.domain:void 0,0===n.state?n.reactions.add(r):j(function(){Q(r,n)}),r.promise}),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},A.f=H=function(e){return e===U||e===i?new o(e):W(e)},!s&&b(N)&&M!==Object.prototype)){a=M.then,L||v(M,"then",function(e,t){var n=this;return new U(function(e,t){f(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete M.constructor}catch(e){}p&&p(M,B)}l({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:U}),i=d.Promise,m(U,D,!1,!0),y(D)},8810:(e,t,n)=>{"use strict";var r=n(8052),o=n(3071).f,i=n(671),a=n(5236),l=n(1941),s=n(1704),u=n(2360);e.exports=function(e,t){var n,c,d,f,v,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||l(p,{}):r[p]&&r[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(v=o(n,c))&&v.value:n[c],!u(m?c:p+(y?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;s(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,c,f,e)}}},8819:(e,t,n)=>{"use strict";var r=n(6005).f,o=n(4461),i=n(4175)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},8832:(e,t,n)=>{"use strict";var r=n(4515),o=n(8438);r("toPrimitive"),o()},8845:(e,t,n)=>{"use strict";var r=n(1948),o=n(1441),i=n(4102),a=n(4175)("species"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===l||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?l:t}},8969:(e,t,n)=>{"use strict";var r=n(51),o=n(4834);e.exports=function(e){return r(o(e))}},9004:(e,t,n)=>{"use strict";var r=n(1904),o=n(4334),i=n(3588),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},9028:(e,t,n)=>{"use strict";var r=n(133),o=n(3625),i=n(2484),a=n(7808),l=n(2675),s=n(659),u=n(321),c=n(4102),d=n(7391),f=n(3026),v=n(7267),p=n(4834),m=n(8785),y=n(9538),g=n(1650),b=n(3614),h=n(9198),O=n(4175)("replace"),S=Math.max,x=Math.min,j=i([].concat),w=i([].push),_=i("".indexOf),E=i("".slice),C=function(e){return void 0===e?e:String(e)},N="$0"==="a".replace(/./,"$0"),I=!!/./[O]&&""===/./[O]("a","$0");a("replace",function(e,t,n){var i=I?"$":"$0";return[function(e,n){var r=p(this),i=c(e)?y(e,O):void 0;return i?o(i,e,r,n):o(t,v(r),e,n)},function(e,o){var a=s(this),l=v(e);if("string"==typeof o&&-1===_(o,i)&&-1===_(o,"$<")){var c=n(t,a,l,o);if(c.done)return c.value}var p=u(o);p||(o=v(o));var y,O=v(b(a)),N=-1!==_(O,"g");N&&(y=-1!==_(O,"u"),a.lastIndex=0);for(var I,A=[];null!==(I=h(a,l))&&(w(A,I),N);)""===v(I[0])&&(a.lastIndex=m(l,f(a.lastIndex),y));for(var D="",T=0,P=0;P<A.length;P++){for(var L,R=v((I=A[P])[0]),k=S(x(d(I.index),l.length),0),M=[],U=1;U<I.length;U++)w(M,C(I[U]));var B=I.groups;if(p){var F=j([R],M,k,l);void 0!==B&&w(F,B),L=v(r(o,void 0,F))}else L=g(R,l,k,M,B,o);k>=T&&(D+=E(l,T,k)+L,T=k+R.length)}return D+E(l,T)}]},!!l(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!N||I)},9073:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9111:(e,t,n)=>{"use strict";var r=n(8810),o=n(2675),i=n(8969),a=n(3071).f,l=n(2128);r({target:"Object",stat:!0,forced:!l||o(function(){a(1)}),sham:!l},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},9198:(e,t,n)=>{"use strict";var r=n(3625),o=n(659),i=n(321),a=n(2748),l=n(863),s=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return r(l,e,t);throw new s("RegExp#exec called on incompatible receiver")}},9200:(e,t,n)=>{"use strict";var r=n(8810),o=n(4461),i=n(3401),a=n(8379),l=n(6445),s=n(92),u=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},9311:(e,t,n)=>{"use strict";var r=n(2961).forEach,o=n(8754)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},9455:(e,t,n)=>{"use strict";var r=n(2484),o=n(2675),i=n(321),a=n(4461),l=n(2128),s=n(4690).CONFIGURABLE,u=n(2718),c=n(6369),d=c.enforce,f=c.get,v=String,p=Object.defineProperty,m=r("".slice),y=r("".replace),g=r([].join),b=l&&!o(function(){return 8!==p(function(){},"length",{value:8}).length}),h=String(String).split("String"),O=e.exports=function(e,t,n){"Symbol("===m(v(t),0,7)&&(t="["+y(v(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(l?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?l&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=g(h,"string"==typeof t?t:"")),e};Function.prototype.toString=O(function(){return i(this)&&f(this).source||u(this)},"toString")},9467:(e,t,n)=>{"use strict";var r=n(3163),o=n(2484),i=n(4956),a=n(9073),l=n(659),s=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(l(e)),n=a.f;return n?s(t,n(e)):t}},9538:(e,t,n)=>{"use strict";var r=n(4334),o=n(9601);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},9601:e=>{"use strict";e.exports=function(e){return null==e}},9747:(e,t,n)=>{"use strict";var r=n(8052);e.exports=r},9767:(e,t,n)=>{"use strict";var r=n(8810),o=n(3163),i=n(6007),a=n(5034),l=n(7032).CONSTRUCTOR,s=n(6794),u=o("Promise"),c=i&&!l;r({target:"Promise",stat:!0,forced:i||l},{resolve:function(e){return s(c&&this===u?a:this,e)}})},9789:(e,t,n)=>{"use strict";var r=n(3625),o=n(2484),i=n(7808),a=n(659),l=n(4102),s=n(3026),u=n(7267),c=n(4834),d=n(9538),f=n(8785),v=n(3614),p=n(9198),m=o("".indexOf);i("match",function(e,t,n){return[function(t){var n=c(this),o=l(t)?d(t,e):void 0;return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=a(this),o=u(e),i=n(t,r,o);if(i.done)return i.value;var l=u(v(r));if(-1===m(l,"g"))return p(r,o);var c=-1!==m(l,"u");r.lastIndex=0;for(var d,y=[],g=0;null!==(d=p(r,o));){var b=u(d[0]);y[g]=b,""===b&&(r.lastIndex=f(o,s(r.lastIndex),c)),g++}return 0===g?null:y}]})},9859:(e,t,n)=>{"use strict";var r=n(321),o=n(4102),i=n(1715);e.exports=function(e,t,n){var a,l;return i&&r(a=t.constructor)&&a!==n&&o(l=a.prototype)&&l!==n.prototype&&i(e,l),e}},9902:(e,t,n)=>{"use strict";var r=n(8810),o=n(8801).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},9972:(e,t,n)=>{"use strict";var r,o=n(8810),i=n(1904),a=n(3071).f,l=n(3026),s=n(7267),u=n(3259),c=n(4834),d=n(8656),f=n(6007),v=i("".slice),p=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!(!f&&!m&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(e){var t=s(c(this));u(e);var n=l(p(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return v(t,n,n+r.length)===r}})},9976:(e,t,n)=>{"use strict";var r=n(4175)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return c[e].call(n.exports,n,n.exports,f),n.exports}f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return(()=>{"use strict";f.r(v),f.d(v,{DigitUI:()=>Ha,initCoreComponents:()=>za}),f(7575),f(6315),f(391),f(8832),f(7372),f(2614),f(3348),f(3082),f(7200),f(2558),f(5424),f(9902),f(9111),f(4802),f(7476),f(1759),f(4267),f(3049),f(7560),f(3544),f(2901);var e=f(6243),t=f(4012),n=f.n(t),r=f(5953),o=f(4456),i=f(2148),a=f(4442),l=(f(4958),f(4707),f(7567),f(562),f(4034),f(3775),f(171),f(8037),f(9028),f(7598)),s=f.n(l),u=f(6870);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var d=["src","alt","decorative","ariaLabel","ariaLabelledby"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){var t=e.src,n=e.alt,r=void 0===n?"Image not found":n,o=e.decorative,i=void 0!==o&&o,a=e.ariaLabel,l=void 0===a?"No Image description set":a,s=e.ariaLabelledby,c=void 0===s?"no-image-description":s,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d),v={};return i?v.alt="":r?v.alt=r:l?v["aria-label"]=l:c?v["aria-labelledby"]=c:console.warn("AccessibleImage: Missing alt, aria-label, or aria-labelledby for non-decorative image."),(0,u.jsx)("img",m(m(m({src:t},v),f),{},{tabIndex:0,onKeyDown:function(e){var t,n;"Enter"!==e.key&&" "!==e.key||window.open(null===(t=window)||void 0===t||null===(t=t.globalConfigs)||void 0===t||null===(n=t.getConfig)||void 0===n?void 0:n.call(t,"DIGIT_HOME_URL"),"_blank").focus()}}))};g.propTypes={src:s().string.isRequired,alt:s().string,decorative:s().bool,ariaLabel:s().string,ariaLabelledby:s().string};const b=g;var h={error:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/error-image.png",infoMessage:"CORE_SOMETHING_WENT_WRONG",buttonInfo:"ACTION_TEST_HOME"},maintenance:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/maintainence-image.png",infoMessage:"CORE_UNDER_MAINTENANCE",buttonInfo:"ACTION_TEST_HOME"},notfound:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/PageNotFound.png",infoMessage:"MODULE_NOT_FOUND",buttonInfo:"ACTION_TEST_HOME"}},O={sandbox:{imgUrl:"https://digit-ui-assets.s3.ap-south-1.amazonaws.com/error-image.png",infoMessage:"WRONG_TENANT_SIGN_UP",buttonInfo:"CREATE_TENANT_ERROR_BUTTON"}};const S=function(e){var t,n=Digit.Hooks.useQueryParams().type,o=void 0===n?"error":n,i=null==e||null===(t=e.errorData)||void 0===t?void 0:t.module,a=(0,r.useTranslation)().t,l=i?O[i]:h[o];return e.stateInfo,(0,u.jsx)("div",{className:"error-boundary",children:(0,u.jsxs)("div",{className:"error-container",children:[(0,u.jsx)(b,{src:l.imgUrl,alt:"error"}),(0,u.jsx)("h1",{children:a(l.infoMessage)}),(0,u.jsx)("button",{onClick:function(){var t;i?null==e||null===(t=e.errorData)||void 0===t||t.action():e.goToHome()},children:a(l.buttonInfo)})]})})};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function w(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}var N=function(){if("undefined"==typeof window)return(0,u.jsx)("span",{});try{var e,t=(null===(e=window)||void 0===e?void 0:e.contextPath)||"",n=Digit.UserService.getType(),r="/".concat(t,"employee"===n?"/employee/user/error":"/citizen/error"),o=window.location.href;if(o.includes("employee/user/error")||o.includes("citizen/error"))return(0,u.jsx)("span",{});try{window.location.href=r}catch(e){console.warn("Navigation failed in error boundary:",e);try{window.location.replace(r)}catch(e){console.error("Both href and replace failed:",e)}}}catch(e){console.error("Error in Redircter component:",e)}return(0,u.jsx)("span",{})};const I=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=E(t),function(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}(this,t,[e])).state={error:null,errorStack:null,hasError:!1,module:null,action:null,info:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(t,e),n=t,o=[{key:"getDerivedStateFromError",value:function(e){return{error:null==e?void 0:e.message,hasError:!0,errorStack:null==e?void 0:e.stack,module:null==e?void 0:e.module,action:null==e?void 0:e.action,info:null==e?void 0:e.info}}}],(r=[{key:"componentDidCatch",value:function(e,t){this.setState({error:null==e?void 0:e.message,hasError:!0,errorStack:null==e?void 0:e.stack,module:null==e?void 0:e.module,action:null==e?void 0:e.action,info:t})}},{key:"render",value:function(){return this.state.hasError?(0,u.jsxs)("div",{className:"error-boundary",children:[(0,u.jsx)(N,{}),(0,u.jsx)(S,{initData:this.props.initData,errorData:this.state})]}):this.props.children}}])&&j(n.prototype,r),o&&j(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(n().Component);f(5550);var A=f(5053);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t,n){return(t=function(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}f(5549);var k=function(o){o.modules,o.additionalComponent;var i,l,s,c,d,f=Digit.Hooks.useAccessControl(),v=f.isLoading,p=f.data,m=Digit.Utils.getMultiRootTenant(),y=(0,r.useTranslation)().t,g=(0,a.useNavigate)(),b=null===(i=Digit)||void 0===i||null===(i=i.ULBService)||void 0===i?void 0:i.getStateId(),h=(c=(0,t.useState)([{}]),d=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(c,d)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(c,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),O=h[0],S=h[1],x=Digit.Hooks.useCustomMDMS(b,"HomeScreenOrder",[{name:"CardsAndLinksOrder"}],{select:function(e){var t;return null==e||null===(t=e.HomeScreenOrder)||void 0===t?void 0:t.CardsAndLinksOrder}}),j=x.data,w=Digit.Hooks.useCustomMDMS(b,"SandBoxLanding",[{name:"AdditionalModuleLinks"}],{select:function(e){var t;return null==e||null===(t=e.SandBoxLanding)||void 0===t?void 0:t.AdditionalModuleLinks}}),_=w.data;w.isLoading,(0,t.useEffect)(function(){S(j)},[j]);var E=function(e,t){if(!e||!t)return null;var n=null==_?void 0:_.find(function(t){return t.moduleName===e.module}),r=null==n?void 0:n[t],o=null==e?void 0:e.links;return(null==o?void 0:o.find(function(e){return(null==e?void 0:e.displayName)===r}))||null},C=function(e){var t,n=null==_?void 0:_.find(function(t){return t.moduleName===e.module});return null==e||null===(t=e.links)||void 0===t?void 0:t.filter(function(e){var t=e.displayName,r="Configure_master"!==t,o=t!==(null==n?void 0:n.howItWorksLink),i=t!==(null==n?void 0:n.userManualLink);return r&&o&&i})},N=null==p?void 0:p.actions.filter(function(e){return"card"===e.url&&e.parentModule}).reduce(function(e,t){var n=t.parentModule;e[n]||(e[n]={module:n,kpis:[],icon:t.leftIcon?Digit.Utils.iconRender(t.leftIcon,"white"):"",label:Digit.Utils.locale.getTransformedLocale("".concat(n,"_CARD_HEADER")),links:[]});var r=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("/"!=n)return-1===(null===(e=n)||void 0===e?void 0:e.indexOf("/".concat(null===(t=window)||void 0===t?void 0:t.contextPath)))&&m?n=n.replace("/sandbox-ui/employee","/sandbox-ui/".concat(b,"/employee")):n}(t.navigationURL),o=r.indexOf("?");return e[n].links.push({link:r,icon:t.leftIcon,queryParams:-1===o?null:r.substring(o),label:y(Digit.Utils.locale.getTransformedLocale("".concat(n,"_LINK_").concat(t.displayName))),displayName:t.displayName}),e},{});if(v)return(0,u.jsx)(e.Loader,{page:!1,variant:"PageLoader"});if(!N)return"";s=m?function(e){return Object.keys(e).sort(function(e,t){var n,r;return((null==O||null===(n=O.find(function(t){return"card"===t.moduleType&&t.name===e}))||void 0===n?void 0:n.order)||null)-((null==O||null===(r=O.find(function(e){return"card"===e.moduleType&&e.name===t}))||void 0===r?void 0:r.order)||null)}).reduce(function(t,n){var r,o=null==e||null===(r=e[n])||void 0===r||null===(r=r.links)||void 0===r?void 0:r.sort(function(e,t){var r,o,i=null==e?void 0:e.displayName,a=null==t?void 0:t.displayName;return((null==O||null===(r=O.find(function(e){return"link"===e.moduleType&&e.name==="".concat(n,".").concat(i.replace(/\s+/g,"_"))}))||void 0===r?void 0:r.order)||null)-((null==O||null===(o=O.find(function(e){return"link"===e.moduleType&&e.name==="".concat(n,".").concat(a.replace(/\s+/g,"_"))}))||void 0===o?void 0:o.order)||null)});return t[n]=P(P({},e[n]),{},{links:o}),t},{})}(N):N;var I=null===(l=Object.keys(s))||void 0===l?void 0:l.map(function(t,n){var r,o,i=null===(r=s)||void 0===r?void 0:r[t],a=null==i||null===(o=i.links)||void 0===o?void 0:o.find(function(e){return"Configure_master"===(null==e?void 0:e.displayName)}),l=E(i,"howItWorksLink"),c=E(i,"userManualLink"),d={icon:"SupervisorAccount",moduleName:y(null==i?void 0:i.label),metrics:[],links:Digit.Utils.getMultiRootTenant()?C(i):null==i?void 0:i.links,centreChildren:[(0,u.jsx)("div",{children:y(Digit.Utils.locale.getTransformedLocale("MODULE_CARD_DESC_".concat(t)))}),l&&(0,u.jsx)(e.Button,{variation:"teritiary",label:null==l?void 0:l.label,icon:null==l?void 0:l.icon,type:"button",size:"medium",onClick:function(){return window.open(null==l?void 0:l.link,"_blank")},style:{padding:"0px"}})],endChildren:Digit.Utils.getMultiRootTenant()?[a&&(0,u.jsx)(e.Button,{variation:"teritiary",label:null==a?void 0:a.label,icon:null==a?void 0:a.icon,type:"button",size:"medium",onClick:function(){return g(null==a?void 0:a.link)},style:{padding:"0px"}}),c&&(0,u.jsx)(e.Button,{variation:"teritiary",label:null==c?void 0:c.label,icon:null==c?void 0:c.icon,type:"button",size:"medium",onClick:function(){return window.open(null==c?void 0:c.link,"_blank")},style:{padding:"0px"}})]:null};return(0,u.jsx)(e.LandingPageCard,P({buttonSize:"medium"},d))});return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(e.LandingPageWrapper,{children:n().Children.map(I,function(e){return n().cloneElement(e)})})})};f(4550);var M=f(338);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var B=function(n){var o,i,a=n.question,l=n.isLabelLink,s=(n.answer,n.type),c=n.actions,d=n.content,f=n.lastIndex,v=(o=(0,t.useState)(!1),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(o,i)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=v[0],m=v[1],y=(0,r.useTranslation)().t,g=Digit.ULBService.getStateId(),b="number"===s?"ol":"ul";return(0,u.jsxs)("div",{className:"faqs border-none",onClick:function(){return m(!p)},children:[(0,u.jsxs)("div",{className:"faq-question",style:{justifyContent:"space-between",display:"flex"},children:[(0,u.jsx)("span",{children:y(a)}),(0,u.jsx)("span",{className:p?"faqicon rotate":"faqicon",style:{float:"right"},children:(0,u.jsx)(M.ArrowForward,{})})]}),(0,u.jsxs)("div",{className:"faq-answer",style:p?{display:"block"}:{display:"none"},children:[(0,u.jsx)(A.CardSectionSubText,{style:{marginTop:"1rem"},children:y(d)}),(0,u.jsx)("div",{style:{marginTop:"1rem"},children:c&&(0,u.jsx)(b,{children:c.map(function(t,n){return(0,u.jsxs)("li",{style:{listStyleType:"ul"===b?"disc":"auto",margin:"8px 0"},children:[l?null!=t&&t.label?(0,u.jsx)(e.Button,{variation:"teritiary",label:y(null==t?void 0:t.label),type:"button",size:"medium",onClick:function(){if(null!=t&&t.fulllink)window.open(null==t?void 0:t.link,"_blank");else{var e,n="https://".concat(window.location.hostname,"/").concat(null===(e=window)||void 0===e?void 0:e.globalPath,"/").concat(g);window.open("".concat(n,"/").concat(null==t?void 0:t.link),"_blank")}},style:{padding:"0px"}}):null:null!=t&&t.label?(0,u.jsxs)("strong",{children:[y(null==t?void 0:t.label),":"]}):null,y(null==t?void 0:t.description)]},n)})})})]}),f?null:(0,u.jsx)("div",{className:"cs-box-border"})]})},F=function(e){var t=e.type,n=e.title,o=e.content,i=e.actions,a=(e.style,(0,r.useTranslation)().t),l="number"===t?"ol":"ul";return(0,u.jsxs)("div",{children:[(0,u.jsx)(A.CardSectionHeader,{children:a(n)}),(0,u.jsx)(A.CardSectionSubText,{style:{marginTop:"1rem"},children:a(o)}),(0,u.jsx)("div",{style:{marginTop:"1rem"},children:i&&(0,u.jsx)(l,{children:i.map(function(e,t){return(0,u.jsxs)("li",{style:{listStyleType:"ul"===l?"disc":"auto",margin:"8px 0"},children:[null!=e&&e.label?(0,u.jsxs)("strong",{children:[a(null==e?void 0:e.label),":"]}):null," ",a(null==e?void 0:e.description)]},t)})})})]})},G=function(e){e.key,e.title,e.content;var t=e.faqs,n=e.type;return(0,r.useTranslation)().t,(0,u.jsx)("div",{style:{width:"100%"},children:(0,u.jsx)("div",{style:{width:"100%"},children:t.map(function(e,r){return(0,u.jsx)(B,{question:e.question,answer:e.answer,isLabelLink:e.isLabelLink,type:n,actions:e.answer,content:e.content,lastIndex:r===(null==t?void 0:t.length)-1},"faq_"+r)})})})};const V=function(t){var o=t.cardConfig,i=(0,r.useTranslation)().t;return(0,u.jsxs)(e.Card,{className:"sandbox-guide",style:{width:"25rem",height:"47rem",overflowY:"scroll"},children:[(0,u.jsx)(e.CardHeader,{children:i("GUIDE_TO_SETUP")}),(0,u.jsx)("div",{style:{display:"flex",flexWrap:"wrap"},children:o.map(function(e,t){return"faqs"===(null==e?void 0:e.type)?(0,u.jsx)(G,{title:e.title,type:null==e?void 0:e.type,content:e.content,faqs:e.actions},e.id):(0,u.jsxs)(n().Fragment,{children:[(0,u.jsx)(F,{type:null==e?void 0:e.type,title:e.title,content:e.content,actions:e.actions,style:e.style},e.id),t!==(null==o?void 0:o.length)-1&&(0,u.jsx)(A.BreakLine,{style:{width:"100%",border:"1px solid #d6d5d4"}})]})})})]})};var H=["onSelect","formData","control","formState"];const W=function(e){e.onSelect,e.formData,e.control,e.formState,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}}(e,H);var t=(0,r.useTranslation)().t,n=Digit.Hooks.useAccessControl(),o=(n.isLoading,n.data),i=(Digit.Utils.getMultiRootTenant(),Digit.ULBService.getStateId());return(null==o?void 0:o.actions.filter(function(e){return"card"===e.url&&e.parentModule}).reduce(function(e,n){var r=n.parentModule;e[r]||(e[r]={module:r,label:Digit.Utils.locale.getTransformedLocale("".concat(r,"_CARD_HEADER")),links:[]});var o=Digit.Utils.transformURL(n.navigationURL,i),a=o.indexOf("?");return e[r].links.push({link:-1===a?o:o.substring(0,a),label:t(Digit.Utils.locale.getTransformedLocale("".concat(r,"_LINK_").concat(n.displayName))),queryParams:-1===a?null:o.substring(a),description:t(Digit.Utils.locale.getTransformedLocale("".concat(r,"_LINK_").concat(n.displayName,"_DESCRIPTION")))}),e},{}))?(0,u.jsx)(V,{cardConfig:[{id:1,type:"faqs",actions:[{question:"SANDBOX_FAQ_QUES_14",isLabelLink:!0,answer:[{label:"SANDBOX_FAQ_ANS_14_LABEL_1",fulllink:!0,link:"https://egov-digit.gitbook.io/digit-sandbox/specifications/user-manual/walkthrough-videos"}]},{question:"SANDBOX_FAQ_QUES_1",content:"SANDBOX_FAQ_CONTENT_1",isLabelLink:!0,answer:[{label:"SANDBOX_FAQ_ANS_1_LABEL_1",link:"citizen/login",description:"SANDBOX_FAQ_ANS_1_DESCRIPTION_1"},{label:"SANDBOX_FAQ_ANS_1_LABEL_2",link:"employee/user/login",description:"SANDBOX_FAQ_ANS_1_DESCRIPTION_2"}]},{question:"SANDBOX_FAQ_QUES_2",content:"SANDBOX_FAQ_CONTENT_2",answer:[{label:null,description:"SANDBOX_FAQ_ANS_2_DESCRIPTION_1"},{label:null,description:"SANDBOX_FAQ_ANS_2_DESCRIPTION_2"},{label:null,description:"SANDBOX_FAQ_ANS_2_DESCRIPTION_3"},{label:null,description:"SANDBOX_FAQ_ANS_2_DESCRIPTION_4"}]},{question:"SANDBOX_FAQ_QUES_3",content:"SANDBOX_FAQ_CONTENT_3",answer:[{label:null,description:"SANDBOX_FAQ_ANS_3_DESCRIPTION_1"},{label:null,description:"SANDBOX_FAQ_ANS_3_DESCRIPTION_2"},{label:null,description:"SANDBOX_FAQ_ANS_3_DESCRIPTION_3"},{label:null,description:"SANDBOX_FAQ_ANS_3_DESCRIPTION_4"}]},{question:"SANDBOX_FAQ_QUES_4",content:"SANDBOX_FAQ_CONTENT_4",answer:[{label:null,description:"SANDBOX_FAQ_ANS_4_DESCRIPTION_1"},{label:null,description:"SANDBOX_FAQ_ANS_4_DESCRIPTION_2"}]},{question:"SANDBOX_FAQ_QUES_5",content:"SANDBOX_FAQ_CONTENT_5",answer:[{label:"SANDBOX_FAQ_ANS_5_LABEL_1",description:"SANDBOX_FAQ_ANS_5_DESCRIPTION_1"},{label:"SANDBOX_FAQ_ANS_5_LABEL_2",description:"SANDBOX_FAQ_ANS_5_DESCRIPTION_2"},{label:"SANDBOX_FAQ_ANS_5_LABEL_3",description:"SANDBOX_FAQ_ANS_5_DESCRIPTION_3"},{label:"SANDBOX_FAQ_ANS_5_LABEL_4",description:"SANDBOX_FAQ_ANS_5_DESCRIPTION_4"},{label:"SANDBOX_FAQ_ANS_5_LABEL_5",description:"SANDBOX_FAQ_ANS_5_DESCRIPTION_5"}]},{question:"SANDBOX_FAQ_QUES_6",content:"SANDBOX_FAQ_CONTENT_6"},{question:"SANDBOX_FAQ_QUES_7",content:"SANDBOX_FAQ_CONTENT_7",answer:[{label:null,description:"SANDBOX_FAQ_ANS_7_DESCRIPTION_1"},{label:null,description:"SANDBOX_FAQ_ANS_7_DESCRIPTION_2"}]},{question:"SANDBOX_FAQ_QUES_8",content:"SANDBOX_FAQ_CONTENT_8",answer:[{label:null,description:"SANDBOX_FAQ_ANS_8_DESCRIPTION_1"},{label:null,description:"SANDBOX_FAQ_ANS_8_DESCRIPTION_2"},{label:null,description:"SANDBOX_FAQ_ANS_8_DESCRIPTION_3"},{label:null,description:"SANDBOX_FAQ_ANS_8_DESCRIPTION_4"}]},{question:"SANDBOX_FAQ_QUES_9",content:"SANDBOX_FAQ_CONTENT_9",answer:[{label:"SANDBOX_FAQ_ANS_9_LABEL_1",description:"SANDBOX_FAQ_ANS_9_DESCRIPTION_1"},{label:"SANDBOX_FAQ_ANS_9_LABEL_2",description:"SANDBOX_FAQ_ANS_9_DESCRIPTION_2"}]},{question:"SANDBOX_FAQ_QUES_10",content:"SANDBOX_FAQ_CONTENT_10",answer:[{label:"SANDBOX_FAQ_ANS_10_LABEL_1",description:"SANDBOX_FAQ_ANS_10_DESCRIPTION_1"},{label:"SANDBOX_FAQ_ANS_10_LABEL_2",description:"SANDBOX_FAQ_ANS_10_DESCRIPTION_2"},{label:"SANDBOX_FAQ_ANS_10_LABEL_3",description:"SANDBOX_FAQ_ANS_10_DESCRIPTION_3"},{label:"SANDBOX_FAQ_ANS_10_LABEL_4",description:"SANDBOX_FAQ_ANS_10_DESCRIPTION_4"}]},{question:"SANDBOX_FAQ_QUES_11",content:"SANDBOX_FAQ_CONTENT_11"},{question:"SANDBOX_FAQ_QUES_12",content:"SANDBOX_FAQ_CONTENT_12"},{question:"SANDBOX_FAQ_QUES_13",content:"SANDBOX_FAQ_CONTENT_13"}]}]}):""};function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var X=function(e,t,n){var r=null==e?void 0:e["".concat(t)];r&&r.map(function(e){Digit.Utils.getMultiRootTenant()&&(e.navigationURL=e.navigationURL.replace("/sandbox-ui/citizen","/sandbox-ui/".concat(Digit.ULBService.getStateId(),"/citizen"))),e.link=e.navigationURL,e.i18nKey=n(e.name)});var o,i={links:null==r?void 0:r.reverse(),header:Digit.Utils.locale.getTransformedLocale("ACTION_TEST_".concat(t)),iconName:"CITIZEN_".concat(t,"_ICON")};return"FSM"===t&&[{role:"FSM_DSO",from:"/".concat(null===(o=window)||void 0===o?void 0:o.contextPath,"/citizen/fsm/dso-dashboard"),dashoardLink:"CS_LINK_DSO_DASHBOARD",loginLink:"CS_LINK_LOGIN_DSO"}].map(function(e){var t,r,o,a=e.role,l=e.from,s=e.loginLink,u=e.dashoardLink;Digit.UserService.hasAccess(a)?null==i||null===(t=i.links)||void 0===t||t.push({link:l,i18nKey:n(u)}):null==i||null===(r=i.links)||void 0===r||r.push({link:"/".concat(null===(o=window)||void 0===o?void 0:o.contextPath,"/citizen/login"),state:{role:"FSM_DSO",from:l},i18nKey:n(s)})}),i},q=function(t){var o,i=t.modules,a=t.getCitizenMenu,l=t.fetchedCitizen,s=t.isLoading,c=i.filter(function(e){return"Payment"===e.code})[0],d=i.filter(function(e){return"Payment"!==e.code}),f=[c].concat(function(e){if(Array.isArray(e))return z(e)}(o=d)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=(0,r.useTranslation)().t;return s?(0,u.jsx)(A.Loader,{}):(0,u.jsx)(n().Fragment,{children:(0,u.jsxs)("div",{className:"citizen-all-services-wrapper",children:[location.pathname.includes("sanitation-ui/citizen/all-services")||location.pathname.includes("sandbox-ui")&&location.pathname.includes("all-services")?null:(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}}),(0,u.jsx)("div",{className:"citizenAllServiceGrid",children:f.filter(function(e){return e}).map(function(t,r){var o,i,s,c,d=t.code;return l&&(i=l?X(a,d,v):void 0),(null===(o=i)||void 0===o||null===(o=o.links)||void 0===o?void 0:o.length)>0?(0,u.jsx)(A.CitizenHomeCard,{header:v(null===(s=i)||void 0===s?void 0:s.header),links:null===(c=i)||void 0===c||null===(c=c.links)||void 0===c||null===(c=c.filter(function(e){return null==e?void 0:e.link}))||void 0===c?void 0:c.sort(function(e,t){return(null==e?void 0:e.orderNumber)-(null==t?void 0:t.orderNumber)}),Icon:function(){return function(t){switch(t){case"PT":default:return(0,u.jsx)(e.CustomSVG.PTIcon,{className:"fill-path-primary-main"});case"WS":return(0,u.jsx)(e.CustomSVG.WSICon,{className:"fill-path-primary-main"});case"FSM":return(0,u.jsx)(e.CustomSVG.FSMIcon,{className:"fill-path-primary-main"});case"MCollect":return(0,u.jsx)(e.CustomSVG.MCollectIcon,{className:"fill-path-primary-main"});case"PGR":return(0,u.jsx)(e.CustomSVG.PGRIcon,{className:"fill-path-primary-main"});case"TL":return(0,u.jsx)(e.CustomSVG.TLIcon,{className:"fill-path-primary-main"});case"OBPS":return(0,u.jsx)(e.CustomSVG.OBPSIcon,{className:"fill-path-primary-main"});case"Bills":return(0,u.jsx)(e.CustomSVG.BillsIcon,{className:"fill-path-primary-main"})}}(d)},Info:"OBPS"===d?function(){return(0,u.jsx)(A.CitizenInfoLabel,{style:{margin:"0px",padding:"10px"},info:v("CS_FILE_APPLICATION_INFO_LABEL"),text:v("BPA_CITIZEN_HOME_STAKEHOLDER_INCLUDES_INFO_LABEL")})}:null,isInfo:"OBPS"===d}):(0,u.jsx)(n().Fragment,{})})})]})})},Q=function(t){var r=t.modules,o=t.additionalComponent;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"employee-app-container digit-home-employee-app",children:(0,u.jsx)(e.LandingPageWrapper,{children:null==r?void 0:r.map(function(e,t){var r=e.code,o=Digit.ComponentRegistryService.getComponent("".concat(r,"Card"))||function(){return(0,u.jsx)(n().Fragment,{})};return(0,u.jsx)(o,{},t)})})}),o&&(null==o?void 0:o.length)>0&&o.map(function(e){var t="string"==typeof e?Digit.ComponentRegistryService.getComponent(e):null;return t?(0,u.jsx)("div",{className:"additional-component-wrapper",children:(0,u.jsx)(t,{})}):null})]})},Z=function(e){var t=e.userType,n=e.modules,r=e.getCitizenMenu,o=e.fetchedCitizen,i=e.isLoading,a=e.additionalComponent;if("citizen"===t)return(0,u.jsx)(q,{modules:n,getCitizenMenu:r,fetchedCitizen:o,isLoading:i});var l=Digit.UserService.hasAccess("SUPERUSER")&&Digit.Utils.getMultiRootTenant();return Digit.Utils.getRoleBasedHomeCard()?(0,u.jsxs)("div",{className:l?"homeWrapper":"",children:[(0,u.jsx)(k,{modules:n,additionalComponent:a}),l&&!window.Digit.Utils.browser.isMobile()?(0,u.jsx)(W,{}):null]}):(0,u.jsx)(Q,{modules:n,additionalComponent:a})};function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}f(6558);var J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""==t)return e;for(;null!==(r=e)&&void 0!==r&&r.includes(t);){var r,o;e=null===(o=e)||void 0===o?void 0:o.replace(t,n)}return e};const $=function(n){var r,o,i=Y((0,t.useState)(null),2),l=i[0],s=i[1],c=Y((0,t.useState)([]),2),d=c[0],f=c[1],v=Y((0,t.useState)([]),2),p=(v[0],v[1],(0,a.useNavigate)()),m=(n.dropdown,Digit.Utils.getMultiRootTenant());return(0,t.useEffect)(function(){var e,t=Digit.SessionStorage.get("citizen.userRequestObject"),n=[],r=[];null==t||null===(e=t.info)||void 0===e||null===(e=e.roles)||void 0===e||e.forEach(function(e){return n.push(e.tenantId)});var o=n.filter(function(e,t,n){return n.indexOf(e)===t});null==o||o.forEach(function(e){var t;r.push({label:"TENANT_TENANTS_".concat(null===(t=J(e,".","_"))||void 0===t?void 0:t.toUpperCase()),value:e})}),null==r||r.filter(function(e){return e.value==Digit.SessionStorage.get("Employee.tenantId")}),f(r)},[l]),(0,u.jsx)("div",{style:null!=n&&n.mobileView?{color:"#767676"}:{},children:m&&1==d.length?(0,u.jsx)(e.CardText,{style:{color:"#363636"},children:null==d||null===(r=d[0])||void 0===r?void 0:r.value}):(0,u.jsx)(e.Dropdown,{t:null==n?void 0:n.t,option:d,selected:d.find(function(e){return e.value===(null==l?void 0:l.value)}),optionKey:"label",select:function(e){var t,n,r,o=Digit.SessionStorage.get("citizen.userRequestObject"),i=null===(t=Digit.SessionStorage.get("citizen.userRequestObject"))||void 0===t||null===(t=t.info)||void 0===t||null===(t=t.roles)||void 0===t?void 0:t.filter(function(t){return t.tenantId===e.value});if((null==i?void 0:i.length)>0&&(o.info.roles=i,o.info.tenantId=null==e?void 0:e.value),Digit.SessionStorage.set("Employee.tenantId",null==e?void 0:e.value),Digit.UserService.setUser(o),s(e),"undefined"!=typeof window&&null!==(n=window.location)&&void 0!==n&&null!==(n=n.href)&&void 0!==n&&n.includes("/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/employee/"))){var a,l,u=(null===(a=location.state)||void 0===a?void 0:a.from)||"/".concat(null===(l=window)||void 0===l?void 0:l.contextPath,"/employee");p(u,{replace:!0})}try{"undefined"!=typeof window&&window.location.reload()}catch(e){console.warn("Failed to reload page:",e)}},freeze:!0,customSelector:(0,u.jsx)("label",{className:"cp",children:null==n?void 0:n.t("TENANT_TENANTS_".concat(null===(o=J(Digit.SessionStorage.get("Employee.tenantId"),".","_"))||void 0===o?void 0:o.toUpperCase()))})})})};function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const te=function(o){var i,a,l,s=o.dropdown||!1,c=Digit.Hooks.useStore.getInitData(),d=c.data,f=c.isLoading,v=d||{},p=v.languages,m=v.stateInfo,y=(0,r.useTranslation)().t,g=Digit.StoreData.getCurrentLanguage(),b=(a=(0,t.useState)(g),l=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(a,l)||function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(a,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=b[0],O=b[1],S=function(e){O(e.value),Digit.LocalizationService.changeLanguage(e.value,m.code)};return f?null:s?(0,u.jsx)("div",{children:(0,u.jsx)(e.Dropdown,{className:"language-dropdown",option:p,selected:null==p?void 0:p.find(function(e){return(null==e?void 0:e.value)===g}),optionKey:"label",select:S,freeze:!0,customSelector:(0,u.jsx)("label",{className:"cp",children:y(null==p||null===(i=p.find(function(e){return(null==e?void 0:e.value)===h}))||void 0===i?void 0:i.label)})})}):(0,u.jsxs)(n().Fragment,{children:[(0,u.jsx)("div",{style:{marginBottom:"5px"},children:"Language"}),(0,u.jsx)("div",{className:"language-selector",children:p.map(function(t,n){return(0,u.jsx)("div",{className:"language-button-container",children:(0,u.jsx)(e.Button,{label:t.label,onClick:function(){return S(t)},variation:t.value===h?"primary":""})},n)})})]})};function ne(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return re(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(re(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,re(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,re(d,"constructor",u),re(u,"constructor",s),s.displayName="GeneratorFunction",re(u,o,"GeneratorFunction"),re(d),re(d,o,"Generator"),re(d,r,function(){return this}),re(d,"toString",function(){return"[object Generator]"}),(ne=function(){return{w:i,m:f}})()}function re(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}re=function(e,t,n,r){function i(t,n){re(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},re(e,t,n,r)}function oe(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ae=function(t){var r,o,i,l,s,c,d,f,v,p=t.t,m=t.stateInfo,y=t.toggleSidebar,g=t.isSidebarOpen,h=t.handleLogout,O=t.userDetails,S=t.CITIZEN,x=t.cityDetails,j=t.mobileView,w=t.userOptions,_=t.handleUserDropdownSelection,E=t.logoUrl,C=t.logoUrlWhite,N=t.showLanguageChange,I=void 0===N||N,D=(f=n().useState(null),v=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(f,v)||function(e,t){if(e){if("string"==typeof e)return ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,t):void 0}}(f,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),T=D[0],P=D[1];n().useEffect(function(){var e=function(){var e,t=(e=ne().m(function e(){var t,n,r,o,i,a,l;return ne().w(function(e){for(;;)switch(e.n){case 0:if(n=Digit.Utils.getMultiRootTenant()?Digit.ULBService.getStateId():Digit.ULBService.getCurrentTenantId(),!(r=null==O||null===(t=O.info)||void 0===t?void 0:t.uuid)){e.n=2;break}return e.n=1,Digit.UserService.userSearch(n,{uuid:[r]},{});case 1:(o=e.v)&&o.user&&o.user.length&&(a=o.user[0],l=null==a||null===(i=a.photo)||void 0===i?void 0:i.split(","),P(null==l?void 0:l.at(0)));case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){oe(i,r,o,a,l,"next",e)}function l(e){oe(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();e()},[null!==T,null==O||null===(r=O.info)||void 0===r?void 0:r.uuid]);var L,R,k=Digit.ULBService.getCitizenCurrentTenant(!0),M=(0,a.useNavigate)(),U=(0,a.useLocation)().pathname,B=Digit.Hooks.useNotificationCount({tenantId:k,config:{enabled:"EMPLOYEE"!==(null===(L=Digit.UserService)||void 0===L||null===(L=L.getUser())||void 0===L||null===(L=L.info)||void 0===L?void 0:L.type)&&"CITIZEN"===(null===(R=Digit.UserService)||void 0===R||null===(R=R.getUser())||void 0===R||null===(R=R.info)||void 0===R?void 0:R.type)&&!!k}}),F=B.data,G=(void 0===F?{}:F).unreadCount,V=B.isSuccess;if(S)return(0,u.jsx)("div",{children:(0,u.jsx)(A.TopBar,{img:null==m?void 0:m.logoUrlWhite,isMobile:!0,toggleSidebar:function(){Digit.clikOusideFired?Digit.clikOusideFired=!1:y(!0)},logoUrl:null==m?void 0:m.logoUrlWhite,onLogout:h,userDetails:O,notificationCount:G<99?G:99,notificationCountLoaded:V,cityOfCitizenShownBesideLogo:p(k),onNotificationIconClick:function(){var e;M("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/engagement/notifications"))},hideNotificationIconOnSomeUrlsWhenNotLoggedIn:function(e){var t,n,r;return(null===(t=Digit.UserService)||void 0===t||null===(t=t.getUser())||void 0===t||!t.access_token)&&["/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/citizen/select-language"),"/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/citizen/select-location")].includes(e)}(U),changeLanguage:j?null:(0,u.jsx)(te,{dropdown:!0})})});var H=!(null==O||!O.access_token),W=null===(o=Digit.ComponentRegistryService)||void 0===o?void 0:o.getComponent("CustomEmployeeTopBar");return W?(0,u.jsx)(W,{t:p,stateInfo:m,toggleSidebar:y,isSidebarOpen:g,handleLogout:h,userDetails:O,CITIZEN:S,cityDetails:x,mobileView:j,userOptions:w,handleUserDropdownSelection:_,logoUrl:E,showLanguageChange:I,loggedin:H}):(0,u.jsx)(e.Header,{actionFields:[(0,u.jsx)($,{dropdown:!0,t:p}),I&&(0,u.jsx)(te,{dropdown:!0}),(null==O?void 0:O.access_token)&&(0,u.jsx)(e.Dropdown,{option:w,optionKey:"name",profilePic:T||(null==O||null===(i=O.info)||void 0===i?void 0:i.name)||(null==O||null===(l=O.info)||void 0===l||null===(l=l.userInfo)||void 0===l?void 0:l.name)||"Employee",select:_,showArrow:!0,menuStyles:{marginTop:"1rem"},theme:"light"})],onHamburgerClick:function(){y()},className:"",img:E,logoWidth:"48px",logoHeight:"48px",logo:H?null==x?void 0:x.logoId:null==m?void 0:m.statelogo,onImageClick:function(){},onLogoClick:function(){},props:{},showDeafultImg:!0,style:{},theme:"light",ulb:H?null!=x&&null!==(s=x.city)&&void 0!==s&&s.ulbGrade?(0,u.jsxs)(u.Fragment,{children:[p(null==x?void 0:x.i18nKey).toUpperCase()," ",p("ULBGRADE_".concat(null==x||null===(c=x.city)||void 0===c?void 0:c.ulbGrade.toUpperCase().replace(" ","_").replace(".","_"))).toUpperCase()]}):(0,u.jsx)(b,{className:"state",src:C,alt:"State Logo"}):(0,u.jsxs)(u.Fragment,{children:[p("MYCITY_".concat(null==m||null===(d=m.code)||void 0===d?void 0:d.toUpperCase(),"_LABEL"))," ",p("MYCITY_STATECODE_LABEL")]})})};f(1568),f(1678);var le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAADUCAMAAACs0e/bAAAAM1BMVEXK0eL////Dy97GzuD4+fvL0uPg5O7T2efb4OvR1+Xr7vTk5/Df4+37/P3v8fbO1eTt8PUsnq5FAAAGqElEQVR4nO2d25ajIBBFCajgvf//a0eMyZgEjcI5xgt7Hmatme507UaxuJXidiDqjmSgeVIMlB1ZR1WZAf2gbdu0QwixSYzjOJPmHurfEGEfY9XzjNGG9whQCeVAuv5xQEySLtR9hPuIcwj0EeroN5m3D1IbsbgHK0esiQ9MKsqXVr8Hm/a/Pulk6wihpCIXBw3dh7bTvRBt9+dC5NfS1VH3xETdM3MxXRN1T0zUPTNR98xcS1dlV9NNfx3DhkTdM6PKqHteVBF1z0vU5f0sKdpc2zWLKutXrjJjdLvpesRmukqYonauPhXpdsLb6CppmpnltsYIuY2yavi6Mi2/rzAWm1zUfF0limVLqkZyA+mDYevKBS37aGC+L1lX5e7uyU1Cv565uiua9k5LFqbqqrnu2I3m+jJ11ZoLeRtfmdB0Uw/ZDsP0VTxdn7a1VERfmq7XlXyn5D2QWLoq8bZlPoBJumphJjVBw/Ll6CoTZGsTDs4NrGqKbqBth8ZHJUi6cn168QmleSm6GmB7Kxm+6obXlf7PoDHosCwM3QpiS2legi6ocSl3L0G3BdneDDgwQdENfeY+SfDJBkF37ZB+GvwzA6/rMaafAn8143VhPZWdjMWG1oHXhdnemgPoAvLlB/iZyRTfVeF06wPoQhJmlm4bdcOAZRlRN5gcPc5SoPEQR1fDdbOo6wn+uYvXxY0QCLom6gYROKH+Aj5nvphuFXWDiLpRdxl/19LFT95k6CHCrnW7pCDqBn1i1PUFvii2c11oZOJ6usWeH0RRNzC4Zs+6FTi2nevCVwCjbugnXklX5fkfTldL8PEilUB1kfNyN1u9MME2sATr4lbuB7AjfLAuvsRm1A0g6gYRdcPAjvBlje2Z8brI8OC68AcRdlCkwLohx2mcZMjw9q+LzarQurjtnwPYAydX08WecECO/u6Ad0GBdYG7jO5gB4Ap+PwKcA9ZT43dn4/W9TyiPAn4OAJaF7h3uwe8StSCddFdM3jqFa2LvnnB5zzhuuBBAjY4gi50cg694gnXhTYvfMdrjtcFZhrwE9r41gUem8IXWMC3LrBzxh+a0gRd1N1LOK7M0IUUGuggvEmHoStA2/MJh7MpupiDU4TzjhxdzLAoO4ouZvqVURbFMHQlZD6SUeWHoguZsSLUGegrehA+FZFowPdUWTi6iMoZlIpGGUUXkDbjj/9ZOLqAQS/+GIKl5BQOCn/ycqpzkXSDm5dU7ZWkG7wUyGlcmm7g5Ux56AqirgoaJ7BeokPTDbp9CbVunjFxPrl7+HqnkrSq1Da7JX20f3dV8yJi6voO81mX8vV0mx3qUsZCPRfTlVRdz2EvdufYGDvNQvvwqHtmXd+a1ITinwNcXc+lT6JuzdT1XDyBn/x7wtX1HCQQdW9MXc8xArGrirowfLeUEbMqqq6f7TF1lfRdOuGNiGi6SpT+WxY06xUfNN2wBfyE9I4tlm7w5hvOPDNJN3yNiLMipji6gE3chKhouoCtN5x3QlF0EZt8OW/8ougitqJQlk1aii7iFC9l0MvRReyao7xNjKML2Z/PuHlzhi5mFxljiZeiC9rPTEisNEMX9KYAwo5Xhi7qaA3hamboYm7dG+NVrXhdaYDv5zFaQZsYrCtbbAGnjkQDX2+J1FXCwOsqWOpKoIQNTFdqYBWydxqNqUoG0pVpCS+H8kaJaGKErlIaXj7CRRE+gRWuKwW9YZ80oVOUgbpdT0zpnSZJTIiwCtJVelvXntr4P5j6BWfPb5Wcx84C4cq3hb11lco2u2Mdwp6XdJ/Ne3wb8DWdfiRenZaXrhLwOj4e+GQeHroy3YOspS7TlU28Wle2m2QUS0mqdcbrdNW+ZHsSsyK7tBfm0q/dWcv+Z3mytVx3t7KWulqUe6ilunu8jF8pFwgv1FXp3mUt35OtRbr7eM4u4Gs6vUBXgeuHc5kfE/cbvWZtkROLm1DMtLCy80tzsu2PRj0hTI8fvrQuvsjlJkyutszq+m423wHaLTyniy/XuiGZ84LuT+m5ZfNfRxyGs7LXZOvia7VujatUwVTrIt+Q/Csc7Tuhe+BOakT10b4TuoiiJjvgU9emTO42PwEfBa+cuodKkuf42DXr1D3JpXz73Hnn0j10evHKe+nufgfUm+7B84sX9FfdEzXux2DBpWuKokkCqN/5pa/8pmvnL+RGKCddCGmatiPyPB/+ekO/M/q/7uvbt22kTt3zEnXPzCV13T3Gel4/6NduDu66xRvlPNkM1RjjxUdv+4WhGx6TftD19Q/dfzpwcHO+rE3fAAAAAElFTkSuQmCC";const se=function(t){var n=t.onSelect,o=t.onCancel,i=t.onDismiss,a=t.PopupStyles,l=t.isDisabled,s=t.hideSubmit,c=(0,r.useTranslation)().t,d=[(0,u.jsx)("div",{children:(0,u.jsxs)(e.CardText,{children:[c("CORE_LOGOUT_WEB_CONFIRMATION_MESSAGE")+" ",(0,u.jsx)("strong",{children:c("CORE_LOGOUT_MESSAGE")})]})})],f=[(0,u.jsx)(e.Button,{type:"button",size:"large",variation:"secondary",label:c("CORE_LOGOUT_CANCEL"),className:"logout-cancel-button",onClick:o}),(0,u.jsx)(e.Button,{type:"button",size:"large",variation:"primary",label:c("CORE_LOGOUT_WEB_YES"),formId:"modal-action",onClick:n,isDisabled:l})],v=[(0,u.jsx)(e.Button,{type:"button",size:"large",variation:"digit-action-cancel",label:c("CORE_LOGOUT_CANCEL"),className:"logout-cancel-button",onClick:o})];return(0,u.jsx)(e.PopUp,{type:"default",children:d,heading:c("CORE_LOGOUT_WEB_HEADER"),footerChildren:s?v:f,sortFooterButtons:!0,onClose:i,className:"digit-logout-popup-wrapper",onOverlayClick:i,equalWidthButtons:!0,style:a})};function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fe(e,t,n){return(t=function(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){return function(e){if(Array.isArray(e))return ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||me(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||me(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ge=function(e){var t=e.info,n=(e.stateName,e.t);return(0,u.jsxs)("div",{className:"profile-section",children:[(0,u.jsx)("div",{className:"imageloader imageloader-loaded",children:(0,u.jsx)(b,{className:"img-responsive img-circle img-Profile",src:le,alt:"Profile Logo"})}),(0,u.jsx)("div",{id:"profile-name",className:"label-container name-Profile",children:(0,u.jsxs)("div",{className:"label-text",children:[" ",null==t?void 0:t.name," "]})}),(0,u.jsx)("div",{id:"profile-location",className:"label-container loc-Profile",children:(0,u.jsxs)("div",{className:"label-text",children:[" ",null==t?void 0:t.mobileNumber," "]})}),(null==t?void 0:t.emailId)&&(0,u.jsx)("div",{id:"profile-emailid",className:"label-container loc-Profile",children:(0,u.jsxs)("div",{className:"label-text",children:[" ",t.emailId," "]})}),(0,u.jsx)("div",{className:"profile-divider"}),window.location.href.includes("/employee")&&!window.location.href.includes("/employee/user/login")&&!window.location.href.includes("employee/user/language-selection")&&(0,u.jsx)($,{t:n,mobileView:!0})]})},be={CommonPTIcon:(0,u.jsx)(A.PTIcon,{className:"icon"}),OBPSIcon:(0,u.jsx)(A.OBPSIcon,{className:"icon"}),propertyIcon:(0,u.jsx)(A.PropertyHouse,{className:"icon"}),TLIcon:(0,u.jsx)(A.CaseIcon,{className:"icon"}),PGRIcon:(0,u.jsx)(A.PGRIcon,{className:"icon"}),FSMIcon:(0,u.jsx)(A.FSMIcon,{className:"icon"}),WSIcon:(0,u.jsx)(A.WSICon,{className:"icon"}),MCollectIcon:(0,u.jsx)(A.MCollectIcon,{className:"icon"}),BillsIcon:(0,u.jsx)(A.CollectionIcon,{className:"icon"}),BirthIcon:(0,u.jsx)(A.BirthIcon,{className:"icon"}),DeathIcon:(0,u.jsx)(A.DeathIcon,{className:"icon"}),FirenocIcon:(0,u.jsx)(A.FirenocIcon,{className:"icon"}),HomeIcon:(0,u.jsx)(A.HomeIcon,{className:"icon"}),EditPencilIcon:(0,u.jsx)(A.EditPencilIcon,{className:"icon"}),LogoutIcon:(0,u.jsx)(A.LogoutIcon,{className:"icon"}),Phone:(0,u.jsx)(A.Phone,{className:"icon"})};const he=function(e){var o,i,l,s=e.linkData,c=e.islinkDataLoading,d=(0,r.useTranslation)().t,f=(0,a.useNavigate)(),v=(0,a.useLocation)().pathname,p=Digit.Hooks.useStore.getInitData(),m=p.data,y=p.isFetched,g=(m||{}).stateInfo,b=Digit.UserService.getUser(),h=window.Digit.Utils.browser.isMobile(),O=pe((0,t.useState)(!1),2),S=O[0],x=(O[1],pe((0,t.useState)(!1),2)),j=(x[0],x[1]),w=pe((0,t.useState)(!1),2),_=w[0],E=w[1],C=function(){E(!1)};if(c)return(0,u.jsx)(A.Loader,{});var N=function(){var e;f("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/user/profile"))},I=ve(function(e,t,n){return[{type:"component",element:"LANGUAGE",action:(0,u.jsx)(te,{}),icon:"LanguageIcon"},{id:"login-btn",element:"LOGIN",text:e("CORE_COMMON_LOGIN"),icon:(0,u.jsx)(A.LogoutIcon,{className:"icon"}),populators:{onClick:n}}]}(d,0,function(){var e;f("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/login"))}));I=I.filter(function(e){return"LANGUAGE"!==e.element});var D,T,P,L,R,k,M=Digit.ULBService.getCurrentTenantId(),U=function(e){var t,n,r=e.item,o=(null==r?void 0:r.icon)||(null===(t=r.icon)||void 0===t||null===(t=t.type)||void 0===t?void 0:t.name),i=o?be[o]:be.BillsIcon;n="component"===r.type?r.action:r.text;var l=function(){return(0,u.jsxs)("span",de(de({className:"menu-item"},r.populators),{},{children:[i,(0,u.jsx)("div",{className:"menu-label",children:n})]}))};return"external-link"===r.type?(0,u.jsx)("a",{href:r.link,children:(0,u.jsx)(l,{})}):"link"===r.type?(0,u.jsx)(a.Link,{to:null==r?void 0:r.link,children:(0,u.jsx)(l,{})}):(0,u.jsx)(l,{})};return y&&b&&b.access_token&&"CITIZEN"===(null==b||null===(o=b.info)||void 0===o?void 0:o.type)&&(D=(0,u.jsx)(ge,{info:null==b?void 0:b.info,stateName:null==g?void 0:g.name,t:d}),I=I.filter(function(e){return"login-btn"!==(null==e?void 0:e.id)}),I=[].concat(ve(I),[{type:"link",icon:"HomeIcon",element:"HOME",text:d("COMMON_BOTTOM_NAVIGATION_HOME"),link:S?"/".concat(null===(T=window)||void 0===T?void 0:T.contextPath,"/employee"):"/".concat(null===(P=window)||void 0===P?void 0:P.contextPath,"/citizen"),populators:{onClick:function(){var e;f("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/all-services"))}}},{text:d("EDIT_PROFILE"),element:"PROFILE",icon:"EditPencilIcon",populators:{onClick:N}},{text:d("CORE_COMMON_LOGOUT"),element:"LOGOUT",icon:"LogoutIcon",populators:{onClick:function(){j(!1),E(!0)}}},{text:(0,u.jsxs)(n().Fragment,{children:[d("CS_COMMON_HELPLINE"),(0,u.jsxs)("div",{className:"telephone",style:{marginTop:"-10%"},children:[null==m||null===(L=m.tenants)||void 0===L?void 0:L.map(function(e){var t,n,r,o;e.code===M?("tel:".concat(null==m||null===(t=m.tenants)||void 0===t?void 0:t[e].contactNumber),null==m||null===(n=m.tenants)||void 0===n||n[e].contactNumber):("tel:".concat(null==m||null===(r=m.tenants)||void 0===r?void 0:r[0].contactNumber),null==m||null===(o=m.tenants)||void 0===o||o[0].contactNumber)}),(0,u.jsx)("div",{className:"link",children:(0,u.jsx)("a",{href:"tel:".concat(null==m||null===(R=m.tenants)||void 0===R?void 0:R[0].contactNumber),children:null==m||null===(k=m.tenants)||void 0===k?void 0:k[0].contactNumber})})]})]}),element:"Helpline",icon:"Phone"}])),null===(i=Object.keys(s))||void 0===i||null===(i=i.sort(function(e,t){return t.localeCompare(e)}))||void 0===i||i.map(function(e){var t,n,r,o,i;(null===(t=s[e][0])||void 0===t?void 0:t.sidebar)==="".concat(window.contextPath,"-links")&&I.splice(1,0,{type:null!==(n=s[e][0])&&void 0!==n&&null!==(n=n.sidebarURL)&&void 0!==n&&n.includes(null===(r=window)||void 0===r?void 0:r.contextPath)?"link":"external-link",text:d("ACTION_TEST_".concat(Digit.Utils.locale.getTransformedLocale(e))),links:s[e],icon:null===(o=s[e][0])||void 0===o?void 0:o.leftIcon,link:null===(i=s[e][0])||void 0===i?void 0:i.sidebarURL})}),(0,u.jsx)(n().Fragment,{children:(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{style:{height:"100%",width:"100%",top:"0px",backgroundColor:"rgba(0, 0, 0, 0.54)",pointerzevents:"auto"}}),(0,u.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:h?"calc(100vh - 56px)":"auto",zIndex:"99"},children:[D,(0,u.jsx)("div",{className:"drawer-desktop",children:null===(l=I)||void 0===l?void 0:l.map(function(e,t){return(0,u.jsx)("div",{className:"sidebar-list ".concat(v===(null==e?void 0:e.link)||v===(null==e?void 0:e.sidebarURL)?"active":""),children:(0,u.jsx)(U,{item:e})},t)})})]}),(0,u.jsx)("div",{children:_&&(0,u.jsx)(se,{onSelect:function(){var e;Digit.Utils.getMultiRootTenant()?(Digit.UserService.logout(),E(!1),window.location.href="/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/login")):(Digit.UserService.logout(),E(!1))},onCancel:C,onDismiss:C})})]})})};function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=function(e){var t=function(e){if("object"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return _e(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_e(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_e(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,_e(d,"constructor",u),_e(u,"constructor",s),s.displayName="GeneratorFunction",_e(u,o,"GeneratorFunction"),_e(d),_e(d,o,"Generator"),_e(d,r,function(){return this}),_e(d,"toString",function(){return"[object Generator]"}),(we=function(){return{w:i,m:f}})()}function _e(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_e=function(e,t,n,r){function i(t,n){_e(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_e(e,t,n,r)}function Ee(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ce(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ee(i,r,o,a,l,"next",e)}function l(e){Ee(i,r,o,a,l,"throw",e)}a(void 0)})}}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ae=function(n){n.isOpen;var o,i,l,s,c=n.isMobile,d=void 0!==c&&c,f=n.toggleSidebar,v=n.onLogout,p=n.isEmployee,m=void 0!==p&&p,y=n.linkData,g=n.islinkDataLoading,b=n.userProfile,h=(Digit.Utils.getMultiRootTenant(),Digit.Hooks.useStore.getInitData()),O=h.data,S=h.isFetched,x=Digit.StoreData.getCurrentLanguage(),j=Ne((0,t.useState)(null),2),w=j[0],_=j[1],E=O||{},C=E.languages,N=E.stateInfo,I=Digit.UserService.getUser(),D=Ne((0,t.useState)(""),2),T=D[0],P=(D[1],Ne((0,t.useState)(null),2)),L=P[0],R=P[1],k=Ne((0,t.useState)([]),2),M=k[0],U=k[1],B=Ne((0,t.useState)([]),2),F=(B[0],B[1],Ne((0,t.useState)(x),2)),G=(F[0],F[1]),V=Digit.Hooks.useAccessControl(),H=V.isLoading,W=V.data,z=Digit.ULBService.getCurrentTenantId(),X=(0,r.useTranslation)().t,q=(0,a.useNavigate)(),Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""==t)return e;for(;null!==(r=e)&&void 0!==r&&r.includes(t);){var r,o;e=null===(o=e)||void 0===o?void 0:o.replace(t,n)}return e};(0,t.useEffect)(function(){var e,t=Digit.SessionStorage.get("citizen.userRequestObject"),n=[],r=[];null==t||null===(e=t.info)||void 0===e||null===(e=e.roles)||void 0===e||e.forEach(function(e){return n.push(e.tenantId)});var o=n.filter(function(e,t,n){return n.indexOf(e)===t});null==o||o.forEach(function(e){var t;r.push({label:X("TENANT_TENANTS_".concat(null===(t=Q(e,".","_"))||void 0===t?void 0:t.toUpperCase())),value:e})}),null==r||r.filter(function(e){return e.value==Digit.SessionStorage.get("Employee.tenantId")}),U(r)},[L]);var Z=function(){Digit.clikOusideFired=!0,f(!1)};(0,t.useEffect)(function(){var e=function(){var e=Ce(we().m(function e(){var t,n,r,o,i,a,l,s;return we().w(function(e){for(;;)switch(e.n){case 0:if(n=Digit.ULBService.getCurrentTenantId(),!(r=null==I||null===(t=I.info)||void 0===t?void 0:t.uuid)){e.n=2;break}return e.n=1,Digit.UserService.userSearch(n,{uuid:[r]},{});case 1:(i=e.v)&&i.user&&null!=i&&null!==(o=i.user)&&void 0!==o&&o.length&&(l=i.user[0],s=null==l||null===(a=l.photo)||void 0===a?void 0:a.split(","),_(null==s?void 0:s.at(0)));case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();w||e()},[w]);var Y=function(e){var t,n,r=null;Digit.Utils.getMultiRootTenant()?(r=m?e.replace("/sandbox-ui/employee","/sandbox-ui/".concat(z,"/employee")):e.replace("/sandbox-ui/citizen","/sandbox-ui/".concat(z,"/citizen")),q(r),f()):("/"===e[0]?q("/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/").concat(m?"employee":"citizen").concat(e)):q("/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/").concat(m?"employee":"citizen","/").concat(e)),f())};if(g||H)return(0,u.jsx)(e.Loader,{});var K=[{id:"login-btn",element:"LOGIN",text:X("CORE_COMMON_LOGIN"),icon:(0,u.jsx)(A.LogoutIcon,{className:"icon"}),populators:{onClick:function(){var e,t;q(m?"/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/employee/user/language-selection"):"/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/citizen/login")),Z()}}}];S&&I&&I.access_token&&(null==I||I.info,null==N||N.name,K=K.filter(function(e){return"login-btn"!==(null==e?void 0:e.id)}));var J={};if(m){var $;null==W||W.actions.filter(function(e){return"url"===e.url&&"Home"!==e.displayName}).forEach(function(e){var t;if(""==T&&""!==e.path){var n=e.path.split(".")[0];"TradeLicense"===n&&(n="Trade License"),J[n]?J[n].push(e):J[n]=[e]}else if(""!==e.path&&null!=e&&null!==(t=e.displayName)&&void 0!==t&&t.toLowerCase().includes(T.toLowerCase())){var r=e.path.split(".")[0];"TradeLicense"===r&&(r="Trade License"),J[r]?J[r].push(e):J[r]=[e]}});for(var ee=Object.keys(J),te=function(e){var t,n,r,o,i,a,l=null===(t=J[ee[e]][0])||void 0===t||null===(t=t.displayName)||void 0===t||null===(t=t.toUpperCase())||void 0===t?void 0:t.replace(/[ -]/g,"_"),s=null===(n=ee[e])||void 0===n||null===(n=n.toUpperCase())||void 0===n?void 0:n.replace(/[ -]/g,"_");-1===J[ee[e]][0].path.indexOf(".")?K.splice(1,0,{type:"link",text:X("ACTION_TEST_".concat(l)),link:null===(r=J[ee[e]][0])||void 0===r?void 0:r.navigationURL,icon:null===(o=J[ee[e]][0])||void 0===o?void 0:o.leftIcon,populators:{onClick:function(){var t;q(null===(t=J[ee[e]][0])||void 0===t?void 0:t.navigationURL),Z()}}}):K.splice(1,0,{type:"dynamic",moduleName:X("ACTION_TEST_".concat(s)),links:null===(i=J[ee[e]])||void 0===i?void 0:i.map(function(e){var t;return xe(xe({},e),{},{displayName:X("ACTION_TEST_".concat(null==e||null===(t=e.displayName)||void 0===t||null===(t=t.toUpperCase())||void 0===t?void 0:t.replace(/[ -]/g,"_")))})}),icon:null===(a=J[ee[e]][1])||void 0===a?void 0:a.leftIcon})},ne=0;ne<(null==ee?void 0:ee.length);ne++)te(ne);var re=K.findIndex(function(e){return"HOME"===e.element}),oe=K.splice(re,1),ie=K.findIndex(function(e){return"LANGUAGE"===e.element}),ae=K.splice(ie,(null===($=K)||void 0===$?void 0:$.length)-ie);K.sort(function(e,t){var n="dynamic"===(null==e?void 0:e.type)?null==e?void 0:e.moduleName:null==e?void 0:e.text,r="dynamic"===(null==t?void 0:t.type)?null==t?void 0:t.moduleName:null==t?void 0:t.text;return n.localeCompare(r)}),(null==oe?void 0:oe[0])&&K.splice(0,0,oe[0]),K=(null==ae?void 0:ae.length)>0?K.concat(ae):K}else{var le;null===(le=Object.keys(y))||void 0===le||null===(le=le.sort(function(e,t){return t.localeCompare(e)}))||void 0===le||le.map(function(e){var t,n,r,o,i;"digit-ui-links"===(null===(t=y[e][0])||void 0===t?void 0:t.sidebar)&&K.splice(1,0,{type:null!==(n=y[e][0])&&void 0!==n&&null!==(n=n.sidebarURL)&&void 0!==n&&n.includes(null===(r=window)||void 0===r?void 0:r.contextPath)?"link":"external-link",text:X("ACTION_TEST_".concat(Digit.Utils.locale.getTransformedLocale(e))),links:y[e],icon:null===(o=y[e][0])||void 0===o?void 0:o.leftIcon,link:null===(i=y[e][0])||void 0===i?void 0:i.sidebarURL})})}location.pathname.includes("/openlink")&&(K=K.filter(function(e){return"LANGUAGE"===e.element})),K=null===(o=K)||void 0===o?void 0:o.map(function(e){return xe(xe({},e),{},{label:(null==e?void 0:e.text)||(null==e?void 0:e.moduleName)||"",icon:null!=e&&e.icon?null==e?void 0:e.icon:void 0})});var se,ue="";ue=Digit.Utils.getMultiRootTenant()?X("TENANT_TENANTS_".concat(z)):X("TENANT_TENANTS_".concat(null===(se=Q(Digit.SessionStorage.get("Employee.tenantId"),".","_"))||void 0===se?void 0:se.toUpperCase()));var ce=null===(i=K)||void 0===i?void 0:i.map(function(e){var t;return"dynamic"===(null==e?void 0:e.type)?xe(xe({},e),{},{children:null==e||null===(t=e.links)||void 0===t?void 0:t.map(function(e){return xe(xe({},e),{},{label:null==e?void 0:e.displayName,icon:null==e?void 0:e.leftIcon})})}):e}),de=null==M?void 0:M.map(function(e){return xe(xe({},e),{},{type:"custom",key:"city"})}),fe=null==C?void 0:C.map(function(e){return xe(xe({},e),{},{type:"custom",key:"language",icon:"Language"})}),ve=[{label:"HOME",value:"HOME",icon:"Home",type:"custom",key:"home"},{label:ue,value:ue,children:(null==de?void 0:de.length)>0?de:void 0,type:"custom",icon:"LocationCity",key:"city"},{label:X("Language"),children:(null==fe?void 0:fe.length)>0?fe:void 0,type:"custom",icon:"Language",key:"language"},{label:X("EDIT_PROFILE"),type:"custom",icon:"Edit",key:"editProfile"},{label:X("Modules"),icon:"DriveFileMove",children:ce}];return d?(0,u.jsx)(e.Hamburger,{items:ve,profileName:null==I||null===(l=I.info)||void 0===l?void 0:l.name,profileNumber:null==I||null===(s=I.info)||void 0===s?void 0:s.mobileNumber,theme:"dark",transitionDuration:.3,styles:{marginTop:"64px",height:"93%"},onLogout:v,hideUserManuals:!0,profile:w||void 0,isSearchable:!0,onSelect:function(e){return function(e){var t,n,r,o=e.item;if(e.index,e.parentIndex,null!=o&&o.navigationURL)Y(null==o?void 0:o.navigationURL);else if(null!=o&&o.link)Y(null==o?void 0:o.link);else{if("custom"!==(null==o?void 0:o.type))return;switch(null==o?void 0:o.key){case"home":q(m?"/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/employee"):"/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/citizen")),f();break;case"editProfile":b(),f();break;case"language":G((t=o).value),Digit.LocalizationService.changeLanguage(t.value,N.code),f();break;case"city":!function(e){var t,n,r,o=Digit.SessionStorage.get("citizen.userRequestObject"),i=null===(t=Digit.SessionStorage.get("citizen.userRequestObject"))||void 0===t||null===(t=t.info)||void 0===t||null===(t=t.roles)||void 0===t?void 0:t.filter(function(t){return t.tenantId===e.value});if((null==i?void 0:i.length)>0&&(o.info.roles=i,o.info.tenantId=null==e?void 0:e.value),Digit.SessionStorage.set("Employee.tenantId",null==e?void 0:e.value),Digit.UserService.setUser(o),R(e),"undefined"!=typeof window&&null!==(n=window.location)&&void 0!==n&&null!==(n=n.href)&&void 0!==n&&n.includes("/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/employee/"))){var a,l,s=(null===(a=location.state)||void 0===a?void 0:a.from)||"/".concat(null===(l=window)||void 0===l?void 0:l.contextPath,"/employee");q(s,{replace:!0})}try{"undefined"!=typeof window&&window.location.reload()}catch(e){console.warn("Failed to reload page:",e)}}(o),f()}}}({item:e.item,index:e.index,parentIndex:e.parentIndex})}}):(0,u.jsx)(he,{logout:v})},De=(f(8501),f(8320)),Te=f.n(De),Pe=/[A-Z]/g,Le=/^ms-/,Re={};function ke(e){return"-"+e.toLowerCase()}const Me=function(e){if(Re.hasOwnProperty(e))return Re[e];var t=e.replace(Pe,ke);return Re[e]=Le.test(t)?"-"+t:t};const Ue=s().oneOfType([s().string,s().number]),Be={all:s().bool,grid:s().bool,aural:s().bool,braille:s().bool,handheld:s().bool,print:s().bool,projection:s().bool,screen:s().bool,tty:s().bool,tv:s().bool,embossed:s().bool},Fe={orientation:s().oneOf(["portrait","landscape"]),scan:s().oneOf(["progressive","interlace"]),aspectRatio:s().string,deviceAspectRatio:s().string,height:Ue,deviceHeight:Ue,width:Ue,deviceWidth:Ue,color:s().bool,colorIndex:s().bool,monochrome:s().bool,resolution:Ue,type:Object.keys(Be)},{type:Ge,...Ve}=Fe,He={minAspectRatio:s().string,maxAspectRatio:s().string,minDeviceAspectRatio:s().string,maxDeviceAspectRatio:s().string,minHeight:Ue,maxHeight:Ue,minDeviceHeight:Ue,maxDeviceHeight:Ue,minWidth:Ue,maxWidth:Ue,minDeviceWidth:Ue,maxDeviceWidth:Ue,minColor:s().number,maxColor:s().number,minColorIndex:s().number,maxColorIndex:s().number,minMonochrome:s().number,maxMonochrome:s().number,minResolution:Ue,maxResolution:Ue,...Ve};var We={all:{...Be,...He},types:Be,matchers:Fe,features:He};const ze=(0,t.createContext)(void 0),Xe=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[Me(n)]=e[n],t),{})},qe=()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},Qe=e=>{const n=()=>(e=>e.query||(e=>{const t=[];return Object.keys(We.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=Me(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,o]=(0,t.useState)(n);return(0,t.useEffect)(()=>{const e=n();r!==e&&o(e)},[e]),r},Ze=(e,n,r)=>{const o=(e=>{const n=(0,t.useContext)(ze),r=()=>Xe(e)||Xe(n),[o,i]=(0,t.useState)(r);return(0,t.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(let r=0;r<o;r++){const o=n[r];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0})(o,e)||i(e)},[e,n]),o})(n),i=Qe(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=((e,n)=>{const r=()=>Te()(e,n||{},!!n),[o,i]=(0,t.useState)(r),a=qe();return(0,t.useEffect)(()=>{if(a){const e=r();return i(e),()=>{e&&e.dispose()}}},[e,n]),o})(i,o),l=(e=>{const[n,r]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),n})(a),s=qe();return(0,t.useEffect)(()=>{s&&r&&r(l)},[l]),(0,t.useEffect)(()=>()=>{a&&a.dispose()},[]),l},Ye=({children:e,device:t,onChange:n,...r})=>{const o=Ze(r,t,n);return"function"==typeof e?e(o):o?e:null};function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}const Je=function(){var t,n=Digit.Hooks.useAccessControl(),o=n.isLoading,i=n.data,l=Digit.Utils.getMultiRootTenant(),s=(0,r.useTranslation)().t,c=(0,a.useNavigate)(),d=null===(t=Digit)||void 0===t||null===(t=t.ULBService)||void 0===t?void 0:t.getStateId();function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e){var n=e[t];if("item"===t&&""!==(null==n?void 0:n.leftIcon))return null==n?void 0:n.leftIcon;if("object"===Ke(e[t])&&!Array.isArray(e[t])){var r=f(e[t]);if(r)return r}}return null}function v(e,t){for(var n in t)t.hasOwnProperty(n)&&("object"!==Ke(t[n])||Array.isArray(t[n])?e[n]||(e[n]=t[n]):(e[n]||(e[n]={}),v(e[n],t[n])))}var p={};null==i||i.actions.filter(function(e){return"url"===e.url}).forEach(function(e){var t;if(null==e||null===(t=e.path)||void 0===t||null===(t=t.split("."))||void 0===t||t[0],""!==(null==e?void 0:e.path)){var n,r=null==e||null===(n=e.path)||void 0===n?void 0:n.split("."),o={};r.reduce(function(t,n,o){if(o!==r.length-1)return t[n]={},t[n];t[n]={item:e}},o),v(p,o)}});var m=function(e){return e.sort(function(e,t){return(void 0!==e.orderNumber?e.orderNumber:1/0)-(void 0!==t.orderNumber?t.orderNumber:1/0)}),e.forEach(function(e){e.children&&e.children.length>0&&m(e.children)}),e},y=function(e){var t=function(e,n){if(n.item)return{label:s(n.item.displayName),icon:{icon:n.item.leftIcon,width:"1.5rem",height:"1.5rem"},navigationUrl:n.item.navigationURL,orderNumber:n.item.orderNumber};var r=Object.keys(n).map(function(e){return t(e,n[e])}),o=f(n);return{label:s(e),icon:{icon:o,width:"1.5rem",height:"1.5rem"},children:r}};return Object.keys(e).map(function(n){return t(n,e[n])})}(function(e){var t=Object.entries(e);return t.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),Object.fromEntries(t)}(p)),g=m(y);return o?(0,u.jsx)(e.Loader,{}):p?(0,u.jsx)(Ye,{minWidth:768,children:(0,u.jsx)(e.SideNav,{items:g,hideAccessbilityTools:!0,onSelect:function(e){return function(e){var t=e.item;e.index,e.parentIndex,null!=t&&t.navigationUrl&&function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("/"!=r)if(-1===(null===(e=r)||void 0===e?void 0:e.indexOf("/".concat(null===(t=window)||void 0===t?void 0:t.contextPath)))){var o=window.location.origin,i=null;if(l)n(i=r=r.replace("/sandbox-ui/employee","/sandbox-ui/".concat(d,"/employee")));else{i=o+r;try{"undefined"!=typeof window&&(window.location.href=i)}catch(e){console.warn("Navigation failed, attempting fallback:",e);try{window.location.replace(i)}catch(e){console.error("All navigation methods failed:",e)}}}}else n(r)}(c,null==t?void 0:t.navigationUrl)}({item:e.item,index:e.index,parentIndex:e.parentIndex})},theme:"dark",variant:"primary",transitionDuration:"",className:"",styles:{},expandedWidth:"",collapsedWidth:"",onBottomItemClick:function(){}})}):""},$e=function(e){e.t;var t=e.CITIZEN,n=e.isSidebarOpen,r=e.toggleSidebar,o=e.handleLogout,i=e.mobileView,a=e.userDetails,l=e.modules,s=e.linkData,c=e.islinkDataLoading,d=e.userProfile;return t?(0,u.jsx)(Ae,{isOpen:n,isMobile:!0,toggleSidebar:r,onLogout:o,linkData:s,islinkDataLoading:c,userProfile:d,isEmployee:!1}):!n&&null!=a&&a.access_token?(0,u.jsx)("div",{className:"digit-employeeSidebar",children:(0,u.jsx)(Je,{mobileView:i,userDetails:a,modules:l})}):(0,u.jsx)("div",{className:"digit-citizenSidebar",children:(0,u.jsx)(Ae,{isOpen:n,isMobile:!0,toggleSidebar:r,onLogout:o,isEmployee:!0,userProfile:d})})};function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const nt=function(e){var r=e.t,o=e.stateInfo,i=e.userDetails,l=e.CITIZEN,s=e.cityDetails,c=e.mobileView,d=e.handleUserDropdownSelection,f=e.logoUrl,v=e.logoUrlWhite,p=e.showSidebar,m=void 0===p||p,y=e.showLanguageChange,g=e.linkData,b=e.islinkDataLoading,h=et((0,t.useState)(!1),2),O=h[0],S=h[1],x=(0,a.useNavigate)(),j=et((0,t.useState)(!1),2),w=j[0],_=j[1],E=function(){S(!1),_(!0)},C=function(){_(!1)},N=function(){S(!O)},I=function(){var e,t;x(l?"/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/user/profile"):"/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/employee/user/profile"))},A=[{name:r("EDIT_PROFILE"),icon:"Edit",func:I},{name:r("CORE_COMMON_LOGOUT"),icon:"Logout",func:E}];return(0,u.jsxs)(n().Fragment,{children:[(0,u.jsx)(ae,{t:r,stateInfo:o,toggleSidebar:N,isSidebarOpen:O,handleLogout:E,userDetails:i,CITIZEN:l,cityDetails:s,mobileView:c,userOptions:A,handleUserDropdownSelection:d,logoUrl:f,logoUrlWhite:v,showLanguageChange:y}),w&&(0,u.jsx)(se,{onSelect:function(){Digit.UserService.logout(),_(!1)},onCancel:C,onDismiss:C}),l?l?m&&O&&(0,u.jsx)($e,{t:r,CITIZEN:l,isSidebarOpen:O,toggleSidebar:N,handleLogout:E,mobileView:c,userDetails:i,linkData:g,userProfile:I,islinkDataLoading:b}):null:m&&(0,u.jsx)($e,{t:r,CITIZEN:l,isSidebarOpen:O,toggleSidebar:N,handleLogout:E,mobileView:c,userDetails:i,linkData:g,userProfile:I,islinkDataLoading:b})]})};function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ot=function(e){var n,o,i=e.question,a=e.answer,l=e.lastIndex,s=(n=(0,t.useState)(!1),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],d=s[1],f=(0,r.useTranslation)().t;return(0,u.jsxs)("div",{className:"faqs border-none",onClick:function(){return d(!c)},children:[(0,u.jsxs)("div",{className:"faq-question",style:{justifyContent:"space-between",display:"flex"},children:[(0,u.jsx)("span",{children:f(i)}),(0,u.jsx)("span",{className:c?"faqicon rotate":"faqicon",style:{float:"right"},children:(0,u.jsx)(M.ArrowForward,{})})]}),(0,u.jsx)("div",{className:"faq-answer",style:c?{display:"block"}:{display:"none"},children:(0,u.jsx)("span",{children:f(a)})}),l?null:(0,u.jsx)("div",{className:"cs-box-border"})]})},it=function(n){var o,i,a=n.module,l=Digit.UserService.getUser(),s=((null==l||null===(o=l.info)||void 0===o?void 0:o.tenantId)||Digit.ULBService.getCurrentTenantId(),(0,r.useTranslation)().t),c=Digit.Hooks.useGetFAQsJSON(Digit.ULBService.getStateId()),d=c.isLoading,f=c.data,v=null==f||null===(i=f.MdmsRes["common-masters"])||void 0===i||null===(i=i.faqs[0])||void 0===i?void 0:i["".concat(a)].faqs;return d?(0,u.jsx)(e.Loader,{}):(0,u.jsx)(t.Fragment,{children:(0,u.jsxs)("div",{className:"faq-page",children:[(0,u.jsx)(e.BackButton,{style:{marginLeft:"unset"}}),(0,u.jsx)("div",{style:{marginBottom:"15px"},children:(0,u.jsx)(e.HeaderComponent,{styles:{marginLeft:"0px",paddingTop:"10px",fontSize:"32px"},children:s("FAQ_S")})}),(0,u.jsx)("div",{className:"faq-list",children:v.map(function(e,t){return(0,u.jsx)(ot,{question:e.question,answer:e.answer,lastIndex:t===(null==v?void 0:v.length)-1},"faq_"+t)})})]})})};function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach(function(t){ut(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ut(e,t,n){return(t=function(e){var t=function(e){if("object"!=at(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==at(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ct=function(){var e,t,n,o,i,l,s,c,d,f,v,p,m,y,g,h,O=(0,r.useTranslation)().t,S=(0,a.useNavigate)(),x=Digit.Utils.getMultiRootTenant()?Digit.ULBService.getStateId():Digit.ULBService.getCitizenCurrentTenant(!0),j=Digit.Hooks.useStore.getInitData(),w=j.data,_=void 0===w?{}:w,E=(_.stateInfo,_.uiHomePage),C=j.isLoading,N=window.Digit.Utils.browser.isMobile(),I=function(){var e,t;return"EMPLOYEE"!==(null===(e=Digit.UserService)||void 0===e||null===(e=e.getUser())||void 0===e||null===(e=e.info)||void 0===e?void 0:e.type)&&!(null===(t=Digit.UserService)||void 0===t||null===(t=t.getUser())||void 0===t||!t.access_token)},D=Digit.Hooks.useEvents({tenantId:x,variant:"whats-new",config:{enabled:I()}}),T=D.data,P=D.isLoading;x||S("/".concat(null===(h=window)||void 0===h?void 0:h.contextPath,"/citizen/select-language"));var L,R,k=null==E?void 0:E.appBannerDesktop,M=null==E?void 0:E.appBannerMobile,U=null==E?void 0:E.citizenServicesCard,B=null==E?void 0:E.informationAndUpdatesCard,F=null==E?void 0:E.whatsAppBannerDesktop,G=null==E?void 0:E.whatsAppBannerMobile,V=null==E?void 0:E.whatsNewSection,H=null==E?void 0:E.redirectURL;H&&S("/".concat(null===(L=window)||void 0===L?void 0:L.contextPath,"/citizen/").concat(H)),(null!==(e=window)&&void 0!==e&&null!==(e=e.location)&&void 0!==e&&null!==(e=e.href)&&void 0!==e&&null!==(t=e.includes)&&void 0!==t&&t.call(e,"sanitation-ui")||null!==(n=window)&&void 0!==n&&null!==(n=n.location)&&void 0!==n&&null!==(n=n.href)&&void 0!==n&&null!==(o=n.includes)&&void 0!==o&&o.call(n,"sandbox-ui"))&&S("/".concat(null===(R=window)||void 0===R?void 0:R.contextPath,"/citizen/all-services"));var W=function(e){window.open(null==e?void 0:e.navigationUrl)},z={header:O(null==U?void 0:U.headerLabel),sideOption:{name:O(null==U||null===(i=U.sideOption)||void 0===i?void 0:i.name),onClick:function(){var e;return S(null==U||null===(e=U.sideOption)||void 0===e?void 0:e.navigationUrl)}},options:[{name:O(null==U||null===(l=U.props)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.label),Icon:(0,u.jsx)(A.ComplaintIcon,{}),onClick:function(){var e;return S(null==U||null===(e=U.props)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.navigationUrl)}},{name:O(null==U||null===(s=U.props)||void 0===s||null===(s=s[1])||void 0===s?void 0:s.label),Icon:(0,u.jsx)(A.PTIcon,{className:"fill-path-primary-main"}),onClick:function(){var e;return S(null==U||null===(e=U.props)||void 0===e||null===(e=e[1])||void 0===e?void 0:e.navigationUrl)}},{name:O(null==U||null===(c=U.props)||void 0===c||null===(c=c[2])||void 0===c?void 0:c.label),Icon:(0,u.jsx)(A.CaseIcon,{className:"fill-path-primary-main"}),onClick:function(){var e;return S(null==U||null===(e=U.props)||void 0===e||null===(e=e[2])||void 0===e?void 0:e.navigationUrl)}},{name:O(null==U||null===(d=U.props)||void 0===d||null===(d=d[3])||void 0===d?void 0:d.label),Icon:(0,u.jsx)(A.OBPSIcon,{}),onClick:function(){var e;return S(null==U||null===(e=U.props)||void 0===e||null===(e=e[3])||void 0===e?void 0:e.navigationUrl)}}],styles:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",width:"100%"}},X={header:O(null==B?void 0:B.headerLabel),sideOption:{name:O(null==B||null===(f=B.sideOption)||void 0===f?void 0:f.name),onClick:function(){var e;return S(null==B||null===(e=B.sideOption)||void 0===e?void 0:e.navigationUrl)}},options:[{name:O(null==B||null===(v=B.props)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.label),Icon:(0,u.jsx)(A.HomeIcon,{}),onClick:function(){var e;return S(null==B||null===(e=B.props)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.navigationUrl)}},{name:O(null==B||null===(p=B.props)||void 0===p||null===(p=p[1])||void 0===p?void 0:p.label),Icon:(0,u.jsx)(A.Calender,{}),onClick:function(){var e;return S(null==B||null===(e=B.props)||void 0===e||null===(e=e[1])||void 0===e?void 0:e.navigationUrl)}},{name:O(null==B||null===(m=B.props)||void 0===m||null===(m=m[2])||void 0===m?void 0:m.label),Icon:(0,u.jsx)(A.DocumentIcon,{}),onClick:function(){var e;return S(null==B||null===(e=B.props)||void 0===e||null===(e=e[2])||void 0===e?void 0:e.navigationUrl)}},{name:O(null==B||null===(y=B.props)||void 0===y||null===(y=y[3])||void 0===y?void 0:y.label),Icon:(0,u.jsx)(A.DocumentIcon,{}),onClick:function(){var e;return S(null==B||null===(e=B.props)||void 0===e||null===(e=e[3])||void 0===e?void 0:e.navigationUrl)}}],styles:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",width:"100%"}};return C?(0,u.jsx)(A.Loader,{}):(0,u.jsx)("div",{className:"HomePageContainer",children:(0,u.jsxs)("div",{className:"HomePageWrapper",children:[(0,u.jsxs)("div",{className:"BannerWithSearch",children:[N?(0,u.jsx)(b,{src:null==M?void 0:M.bannerUrl,alt:"Banner Image"}):(0,u.jsx)(b,{src:null==k?void 0:k.bannerUrl,alt:"Banner Image"}),(0,u.jsxs)("div",{className:"ServicesSection",children:[(0,u.jsx)(A.CardBasedOptions,st({style:{marginTop:"-30px"}},z)),(0,u.jsx)(A.CardBasedOptions,st({style:N?{}:{marginTop:"-30px"}},X))]})]}),(G||F)&&(0,u.jsx)("div",{className:"WhatsAppBanner",children:N?(0,u.jsx)(b,{src:null==G?void 0:G.bannerUrl,onClick:function(){return W(G)},alt:"Whatsapp Banner"}):(0,u.jsx)(b,{src:null==F?void 0:F.bannerUrl,onClick:function(){return W(F)},alt:"Whatsapp Banner"})}),I()?P?(0,u.jsx)(A.Loader,{}):(0,u.jsxs)("div",{className:"WhatsNewSection",children:[(0,u.jsxs)("div",{className:"headSection",children:[(0,u.jsx)("h2",{children:O(null==V?void 0:V.headerLabel)}),(0,u.jsx)("p",{onClick:function(){var e;return S(null==V||null===(e=V.sideOption)||void 0===e?void 0:e.navigationUrl)},children:O(null==V||null===(g=V.sideOption)||void 0===g?void 0:g.name)})]}),(0,u.jsx)(A.WhatsNewCard,st({},null==T?void 0:T[0]))]}):null]})})};function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach(function(t){pt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pt(e,t,n){return(t=function(e){var t=function(e){if("object"!=dt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mt=function(){var n=(0,r.useTranslation)().t,o=(0,a.useNavigate)(),i=Digit.Hooks.useStore.getInitData(),l=i.data,s=void 0===l?{}:l,c=s.languages,d=s.stateInfo,f=i.isLoading,v=Digit.StoreData.getCurrentLanguage(),p=(0,t.useMemo)(function(){return{header:n("CS_COMMON_CHOOSE_LANGUAGE"),submitBarLabel:n("CORE_COMMON_CONTINUE")}},[n]),m=(0,t.useMemo)(function(){return{options:c,optionsKey:"label",additionalWrapperClass:"digit-reverse-radio-selection-wrapper",onSelect:function(e){return Digit.LocalizationService.changeLanguage(e.value,d.code)},selectedOption:null==c?void 0:c.filter(function(e){return e.value===v})[0]}},[v,c]);return f?(0,u.jsx)(e.Loader,{}):(0,u.jsx)("div",{className:"selection-card-wrapper",children:(0,u.jsxs)(e.PageBasedInput,{texts:p,onSubmit:function(){var e;o("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/citizen/select-location"))},children:[(0,u.jsx)(e.CardHeader,{children:n("CS_COMMON_CHOOSE_LANGUAGE")}),(0,u.jsx)(e.RadioButtons,vt({},m))]})})};function yt(e){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach(function(t){ht(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ht(e,t,n){return(t=function(e){var t=function(e){if("object"!=yt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const xt=function(){var n=(0,r.useTranslation)().t,o=(0,a.useNavigate)(),i=(0,a.useLocation)(),l=Digit.Hooks.useStore.getInitData(),s=l.data,c=void 0===s?{}:s,d=(c.stateInfo,c.uiHomePage),f=(l.isLoading,null==d?void 0:d.redirectURL),v=Digit.Hooks.useTenants(),p=v.data,m=v.isLoading,y=Ot((0,t.useState)(function(){return{code:Digit.ULBService.getCitizenCurrentTenant(!0)}}),2),g=y[0],b=y[1],h=Ot((0,t.useState)(!1),2),O=h[0],S=h[1],x=(0,t.useMemo)(function(){return{header:n("CS_COMMON_CHOOSE_LOCATION"),submitBarLabel:n("CORE_COMMON_CONTINUE")}},[n]);function j(e){b(e),S(!1)}var w=(0,t.useMemo)(function(){return{options:p,optionsKey:"i18nKey",additionalWrapperClass:"digit-reverse-radio-selection-wrapper",onSelect:j,selectedOption:g}},[p,n,g]);return m?(0,u.jsx)("loader",{}):(0,u.jsxs)("div",{className:"selection-card-wrapper",children:[(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}}),(0,u.jsxs)(A.PageBasedInput,{texts:x,onSubmit:function(){if(g){var e;Digit.SessionStorage.set("CITIZEN.COMMON.HOME.CITY",g);var t,n,r=null===(e=i.state)||void 0===e?void 0:e.redirectBackTo;f?o("/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/citizen/").concat(f)):r?o(r,{replace:!0}):o("/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/citizen"))}else S(!0)},className:"location-selection-container",children:[(0,u.jsx)(A.CardHeader,{children:n("CS_COMMON_CHOOSE_LOCATION")}),(0,u.jsx)(A.SearchOnRadioButtons,bt(bt({},w),{},{placeholder:n("COMMON_TABLE_SEARCH")})),O?(0,u.jsx)(A.CardLabelError,{children:n("CS_COMMON_LOCATION_SELECTION_ERROR")}):null]})]})};function jt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return wt(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(wt(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,wt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,wt(d,"constructor",u),wt(u,"constructor",s),s.displayName="GeneratorFunction",wt(u,o,"GeneratorFunction"),wt(d),wt(d,o,"Generator"),wt(d,r,function(){return this}),wt(d,"toString",function(){return"[object Generator]"}),(jt=function(){return{w:i,m:f}})()}function wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}wt=function(e,t,n,r){function i(t,n){wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},wt(e,t,n,r)}function _t(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}f(8220),f(9972),f(3406);const Nt=function(e){var o=e.setProfilePic,i=e.closeDrawer,a=e.userType,l=e.removeProfilePic,s=e.showToast,c=Et((0,t.useState)(null),2),d=(c[0],c[1]),f=Et((0,t.useState)(""),2),v=f[0],p=f[1],m=Et((0,t.useState)(null),2),y=(m[0],m[1]),g=(0,r.useTranslation)().t;return(0,t.useEffect)(function(){var e;(e=jt().m(function e(){var t,n,r,i;return jt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(y(null),!v){e.n=4;break}if(!(v.size>=1e6)){e.n=1;break}s("error",g("CORE_COMMON_PROFILE_MAXIMUM_UPLOAD_SIZE_EXCEEDED")),y(g("CORE_COMMON_PROFILE_MAXIMUM_UPLOAD_SIZE_EXCEEDED")),e.n=4;break;case 1:return e.p=1,e.n=2,Digit.UploadServices.Filestorage("".concat(a,"-profile"),v,Digit.ULBService.getStateId());case 2:(null==(n=e.v)||null===(t=n.data)||void 0===t||null===(t=t.files)||void 0===t?void 0:t.length)>0?(i=null==n||null===(r=n.data)||void 0===r||null===(r=r.files[0])||void 0===r?void 0:r.fileStoreId,d(i),o(i)):(s("error",g("CORE_COMMON_PROFILE_FILE_UPLOAD_ERROR")),y(g("CORE_COMMON_PROFILE_FILE_UPLOAD_ERROR"))),e.n=4;break;case 3:e.p=3,e.v,s("error",g("CORE_COMMON_PROFILE_INVALID_FILE_INPUT"));case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){_t(i,r,o,a,l,"next",e)}function l(e){_t(i,r,o,a,l,"throw",e)}a(void 0)})})()},[v]),(0,u.jsxs)(n().Fragment,{children:[(0,u.jsx)("div",{style:{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",width:"100%",height:"100vh",backgroundColor:"rgba(0,0,0,.5)"},onClick:function(){return i()}}),(0,u.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex",backgroundColor:"white",alignItems:"center",position:"fixed",left:"0",right:"0",height:"20%",bottom:"citizen"===a?"2.5rem":"0",zIndex:"1000"},children:[(0,u.jsxs)("div",{style:{display:"flex",flex:"1",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",gap:"8px 0"},children:[(0,u.jsxs)("label",{for:"file",style:{cursor:"pointer"},children:[" ",(0,u.jsx)(A.GalleryIcon,{})]}),(0,u.jsx)("label",{style:{cursor:"pointer"},children:" Gallery"}),(0,u.jsx)("input",{type:"file",id:"file",accept:"image/*, .png, .jpeg, .jpg",onChange:function(e){return p(e.target.files[0])},style:{display:"none"}})]}),(0,u.jsxs)("div",{style:{display:"flex",flex:"1",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"8px 0"},children:[(0,u.jsx)("button",{onClick:function(){l(),i()},children:(0,u.jsx)(A.RemoveIcon,{})}),(0,u.jsx)("label",{style:{cursor:"pointer"},children:"Remove"})]})]})]})};function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach(function(t){Tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tt(e,t,n){return(t=function(e){var t=function(e){if("object"!=It(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==It(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Lt(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Lt(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Lt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,Lt(d,"constructor",u),Lt(u,"constructor",s),s.displayName="GeneratorFunction",Lt(u,o,"GeneratorFunction"),Lt(d),Lt(d,o,"Generator"),Lt(d,r,function(){return this}),Lt(d,"toString",function(){return"[object Generator]"}),(Pt=function(){return{w:i,m:f}})()}function Lt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Lt=function(e,t,n,r){function i(t,n){Lt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Lt(e,t,n,r)}function Rt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function kt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Rt(i,r,o,a,l,"next",e)}function l(e){Rt(i,r,o,a,l,"throw",e)}a(void 0)})}}function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ut(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ut(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bt={tenantId:"".concat(Digit.ULBService.getStateId()),UserProfileValidationConfig:[{name:"/^[a-zA-Z ]+$/i",mobileNumber:"/^[6-9]{1}[0-9]{9}$/",password:"/^([a-zA-Z0-9@#$%]{8,15})$/i"}]};const Ft=function(o){var i,l,s,c,d,f,v,p,m,y,g,h,O,S,x,j,w,_,E,C,N,I,D,T,P=o.stateCode,L=o.userType,R=o.cityDetails,k=((0,a.useHistory)(),(0,r.useTranslation)().t),M=window.location.href,U=Digit.ULBService.getStateId(),B=Digit.ULBService.getCurrentTenantId(),F=(null===(i=Digit.UserService.getUser())||void 0===i?void 0:i.info)||{},G=Mt((0,t.useState)(null),2),V=G[0],H=G[1],W=Mt((0,t.useState)(null!=F&&F.name?F.name:""),2),z=W[0],X=W[1],q=Mt((0,t.useState)(null!=F&&F.emailId?F.emailId:""),2),Q=q[0],Z=q[1],Y=Mt((0,t.useState)(null==V?void 0:V.gender),2),K=Y[0],J=Y[1],$=Mt((0,t.useState)(null!=F&&F.permanentCity?F.permanentCity:R.name),2),ee=$[0],te=$[1],ne=Mt((0,t.useState)(null!=F&&F.mobileNumber?F.mobileNumber:""),2),re=ne[0],oe=ne[1],ie=Mt((0,t.useState)(null),2),ae=ie[0],le=ie[1],se=Mt((0,t.useState)(""),2),ue=se[0],ce=se[1],de=Mt((0,t.useState)(!1),2),fe=de[0],ve=de[1],pe=Mt((0,t.useState)(!1),2),me=pe[0],ye=pe[1],ge=Mt((0,t.useState)(""),2),be=ge[0],he=ge[1],Oe=Mt((0,t.useState)(""),2),Se=Oe[0],xe=Oe[1],je=Mt((0,t.useState)(""),2),we=je[0],_e=je[1],Ee=Mt((0,t.useState)(null),2),Ce=Ee[0],Ne=Ee[1],Ie=Mt((0,t.useState)(!1),2),Ae=Ie[0],De=Ie[1],Te=Mt(n().useState(window.innerWidth),2),Pe=Te[0],Le=Te[1],Re=Mt(n().useState({}),2),ke=Re[0],Me=Re[1],Ue=window.Digit.Utils.browser.isMobile(),Be=Digit.Utils.getMultiRootTenant(),Fe=function(e){var t;return(null==e||null===(t=e.UserProfileValidationConfig)||void 0===t?void 0:t[0])&&Object.entries(null==e?void 0:e.UserProfileValidationConfig[0]).reduce(function(e,t){var n=Mt(t,2),r=n[0],o=n[1];if("string"==typeof o)try{if(o.startsWith("/")&&o.lastIndexOf("/")>0){var i=o.lastIndexOf("/"),a=o.slice(1,i),l=o.slice(i+1);e[r]=new RegExp(a,l)}else e[r]=new RegExp(o)}catch(t){console.error('Error parsing regex for key "'.concat(r,'":'),t),e[r]=o}else e[r]=o;return e},{})},Ge=Mt((0,t.useState)(Fe(Bt)||{}),2),Ve=Ge[0],He=Ge[1],We=Digit.Hooks.useCustomMDMS(P,"commonUiConfig",[{name:"UserProfileValidationConfig"}],{select:function(e){return null==e?void 0:e.commonUiConfig}}),ze=We.data,Xe=We.isValidationConfigLoading;(0,t.useEffect)(function(){var e;if(ze&&null!=ze&&null!==(e=ze.UserProfileValidationConfig)&&void 0!==e&&e[0]){var t=Fe(ze);He(t)}},[ze]);var qe=function(){var e=kt(Pt().m(function e(){var t,n;return Pt().w(function(e){for(;;)switch(e.n){case 0:if(!(t=null==F?void 0:F.uuid)){e.n=2;break}return e.n=1,Digit.UserService.userSearch(B,{uuid:[t]},{});case 1:(n=e.v)&&n.user&&n.user.length&&H(n.user[0]);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();n().useEffect(function(){var e=function(){return Le(window.innerWidth)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),(0,t.useEffect)(function(){var e;De(!0),qe(),J({i18nKey:void 0,code:null==V?void 0:V.gender,value:null==V?void 0:V.gender});var t=null==V||null===(e=V.photo)||void 0===e?void 0:e.split(",");ce(null==t?void 0:t.at(0)),De(!1)},[null!==V]);var Qe=!1,Ze=function(e){return J(e)},Ye=function(){return ve(!1)},Ke=function(e){var t;X(e),null==Ve||null===(t=Ve.name)||void 0===t||!t.test(e)||0===e.length||e.length>50?Me(Dt(Dt({},ke),{},{userName:{type:"pattern",message:"CORE_COMMON_PROFILE_NAME_INVALID"}})):Me(Dt(Dt({},ke),{},{userName:null}))},Je=function(e){(null==F?void 0:F.userName)!==e?(Z(e),!e.length||e.includes("@")&&e.includes(".")?Me(Dt(Dt({},ke),{},{emailAddress:null})):Me(Dt(Dt({},ke),{},{emailAddress:{type:"pattern",message:"CORE_COMMON_PROFILE_EMAIL_INVALID"}}))):Me(Dt(Dt({},ke),{},{emailAddress:null}))},$e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;Ne({key:e,action:t}),setTimeout(function(){Ne(null)},n)},et=function(){var e=kt(Pt().m(function e(){var t,n,r,o,i,a,l,s,u,c,d,f,v,p;return Pt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(De(!0),e.p=1,t=Dt(Dt({},F),{},{name:z,gender:null==K?void 0:K.value,emailId:Q,photo:ae}),z&&X(function(e){return e.trim()}),!(null==Ve||!Ve.name.test(z)||""===z||z.length>50||z.length<1)){e.n=2;break}throw JSON.stringify({type:"error",message:k("CORE_COMMON_PROFILE_NAME_INVALID")});case 2:if("employee"!==L||null!=Ve&&Ve.mobileNumber.test(re)){e.n=3;break}throw JSON.stringify({type:"error",message:k("CORE_COMMON_PROFILE_MOBILE_NUMBER_INVALID")});case 3:if(!Q.length||Q.includes("@")&&Q.includes(".")){e.n=4;break}throw JSON.stringify({type:"error",message:k("CORE_COMMON_PROFILE_EMAIL_INVALID")});case 4:if(n=be.trim(),r=Se.trim(),o=we.trim(),he(n),xe(r),_e(o),!(me&&n&&r&&o)){e.n=7;break}if(r===o){e.n=5;break}throw JSON.stringify({type:"error",message:k("CORE_COMMON_PROFILE_PASSWORD_MISMATCH")});case 5:if(n.length&&r.length&&o.length){e.n=6;break}throw JSON.stringify({type:"error",message:k("CORE_COMMON_PROFILE_PASSWORD_INVALID")});case 6:if(null!=Ve&&Ve.password.test(r)||null!=Ve&&Ve.password.test(o)){e.n=7;break}throw JSON.stringify({type:"error",message:k("CORE_COMMON_PROFILE_PASSWORD_INVALID")});case 7:return e.n=8,Digit.UserService.updateUser(t,P);case 8:if(i=e.v,a=i.responseInfo,i.user,a&&"200"===a.status&&(l=Digit.UserService.getUser())&&Digit.UserService.setUser(Dt(Dt({},l),{},{info:Dt(Dt({},l.info),{},{name:z,mobileNumber:re,emailId:Q,permanentCity:ee})})),!(be.length&&Se.length&&we.length)){e.n=17;break}if(s={existingPassword:be,newPassword:Se,tenantId:B,type:"EMPLOYEE",username:null==F?void 0:F.userName,confirmPassword:we},Se!==we){e.n=15;break}return e.p=9,e.n=10,Digit.UserService.changePassword(s,B);case 10:if(u=e.v,null==(c=u.responseInfo)||!c.status||"200"!==c.status){e.n=11;break}$e("success",k("CORE_COMMON_PROFILE_UPDATE_SUCCESS_WITH_PASSWORD"),5e3),setTimeout(function(){return Digit.UserService.logout()},2e3),e.n=12;break;case 11:throw"";case 12:e.n=14;break;case 13:throw e.p=13,v=e.v,JSON.stringify({type:"error",message:null!==(d=v.Errors)&&void 0!==d&&null!==(d=d.at(0))&&void 0!==d&&d.description?v.Errors.at(0).description:"CORE_COMMON_PROFILE_UPDATE_ERROR_WITH_PASSWORD"});case 14:e.n=16;break;case 15:throw JSON.stringify({type:"error",message:"CORE_COMMON_PROFILE_ERROR_PASSWORD_NOT_MATCH"});case 16:e.n=18;break;case 17:null!=a&&a.status&&"200"===a.status&&$e("success",k("CORE_COMMON_PROFILE_UPDATE_SUCCESS"),5e3);case 18:e.n=20;break;case 19:e.p=19,p=e.v,f=JSON.parse(p),$e(f.type,k(f.message),5e3);case 20:De(!1);case 21:return e.a(2)}},e,null,[[9,13],[1,19]])}));return function(){return e.apply(this,arguments)}}(),tt=[],nt=Digit.Hooks.useGenderMDMS(U,"common-masters","GenderType").data;nt&&nt.map(function(e){tt.push({i18nKey:"PT_COMMON_GENDER_".concat(e.code),code:"".concat(e.code),value:"".concat(e.code)})});var rt=function(){var e=kt(Pt().m(function e(t){var n,r;return Pt().w(function(e){for(;;)switch(e.n){case 0:if(le(t),!t){e.n=2;break}return e.n=1,ot([t],U);case 1:r=e.v,e.n=3;break;case 2:r=null;case 3:ce(null==(n=r)?void 0:n.thumbs[0]),Ye();case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),ot=function(){var e=kt(Pt().m(function e(t,n){var r;return Pt().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Digit.UploadServices.Filefetch(t,n);case 1:if(!(r=e.v).data.fileStoreIds||0===r.data.fileStoreIds.length){e.n=2;break}return e.a(2,{thumbs:r.data.fileStoreIds.map(function(e){return e.url.split(",")[3]}),images:r.data.fileStoreIds.map(function(e){return Digit.Utils.getFileUrl(e.url)})});case 2:return e.a(2,null);case 3:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}();return Ae||Xe?(0,u.jsx)(e.Loader,{}):(0,u.jsxs)("div",{className:"user-profile ".concat("citizen"===L?"citizen":"employee"),children:[(0,u.jsx)("section",{style:{margin:"citizen"===L||Ue?"8px":"0px"},children:"citizen"===L||Ue?(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}}):(0,u.jsx)(e.BreadCrumb,{style:{marginTop:"0rem",marginBottom:"1.5rem"},crumbs:[{internalLink:Be?"/".concat(null===(l=window)||void 0===l?void 0:l.contextPath,"/employee/sandbox/landing"):"/".concat(null===(s=window)||void 0===s?void 0:s.contextPath,"/employee"),content:k("ES_COMMON_HOME"),show:!0},{internalLink:"/".concat(null===(c=window)||void 0===c?void 0:c.contextPath,"/employee/user/profile"),content:k("ES_COMMON_PAGE_1"),show:M.includes("/user/profile")}]})}),(0,u.jsxs)("div",{style:{display:"flex",flex:1,flexDirection:Pe<768||"citizen"===L?"column":"row",margin:"citizen"===L?"8px":"0px",gap:"citizen"===L?"":"0 24px",boxShadow:"citizen"===L?"1px 1px 4px 0px rgba(0,0,0,0.2)":"",background:"citizen"===L?"white":"",borderRadius:"citizen"===L?"4px":"",maxWidth:"citizen"===L?"960px":""},children:[(0,u.jsx)("section",{style:{position:"relative",display:"flex",flex:"citizen"===L?1:2.5,justifyContent:"center",alignItems:"center",maxWidth:"100%",borderRadius:"4px",boxShadow:"citizen"===L?"":"1px 1px 4px 0px rgba(0,0,0,0.2)",border:"".concat("citizen"===L?"8px":"24px"," solid #fff"),background:"#EEEEEE",padding:"citizen"===L?"8px":"16px"},children:(0,u.jsxs)("div",{style:{position:"relative",height:"citizen"===L?"114px":"150px",width:"citizen"===L?"114px":"150px",margin:"16px"},children:[(0,u.jsx)(b,{style:{margin:"auto",borderRadius:"300px",justifyContent:"center",height:"100%",width:"100%"},src:ue&&""!==ue?ue:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAADUCAMAAACs0e/bAAAAM1BMVEXK0eL////Dy97GzuD4+fvL0uPg5O7T2efb4OvR1+Xr7vTk5/Df4+37/P3v8fbO1eTt8PUsnq5FAAAGqElEQVR4nO2d25ajIBBFCajgvf//a0eMyZgEjcI5xgt7Hmatme507UaxuJXidiDqjmSgeVIMlB1ZR1WZAf2gbdu0QwixSYzjOJPmHurfEGEfY9XzjNGG9whQCeVAuv5xQEySLtR9hPuIcwj0EeroN5m3D1IbsbgHK0esiQ9MKsqXVr8Hm/a/Pulk6wihpCIXBw3dh7bTvRBt9+dC5NfS1VH3xETdM3MxXRN1T0zUPTNR98xcS1dlV9NNfx3DhkTdM6PKqHteVBF1z0vU5f0sKdpc2zWLKutXrjJjdLvpesRmukqYonauPhXpdsLb6CppmpnltsYIuY2yavi6Mi2/rzAWm1zUfF0limVLqkZyA+mDYevKBS37aGC+L1lX5e7uyU1Cv565uiua9k5LFqbqqrnu2I3m+jJ11ZoLeRtfmdB0Uw/ZDsP0VTxdn7a1VERfmq7XlXyn5D2QWLoq8bZlPoBJumphJjVBw/Ll6CoTZGsTDs4NrGqKbqBth8ZHJUi6cn168QmleSm6GmB7Kxm+6obXlf7PoDHosCwM3QpiS2legi6ocSl3L0G3BdneDDgwQdENfeY+SfDJBkF37ZB+GvwzA6/rMaafAn8143VhPZWdjMWG1oHXhdnemgPoAvLlB/iZyRTfVeF06wPoQhJmlm4bdcOAZRlRN5gcPc5SoPEQR1fDdbOo6wn+uYvXxY0QCLom6gYROKH+Aj5nvphuFXWDiLpRdxl/19LFT95k6CHCrnW7pCDqBn1i1PUFvii2c11oZOJ6usWeH0RRNzC4Zs+6FTi2nevCVwCjbugnXklX5fkfTldL8PEilUB1kfNyN1u9MME2sATr4lbuB7AjfLAuvsRm1A0g6gYRdcPAjvBlje2Z8brI8OC68AcRdlCkwLohx2mcZMjw9q+LzarQurjtnwPYAydX08WecECO/u6Ad0GBdYG7jO5gB4Ap+PwKcA9ZT43dn4/W9TyiPAn4OAJaF7h3uwe8StSCddFdM3jqFa2LvnnB5zzhuuBBAjY4gi50cg694gnXhTYvfMdrjtcFZhrwE9r41gUem8IXWMC3LrBzxh+a0gRd1N1LOK7M0IUUGuggvEmHoStA2/MJh7MpupiDU4TzjhxdzLAoO4ouZvqVURbFMHQlZD6SUeWHoguZsSLUGegrehA+FZFowPdUWTi6iMoZlIpGGUUXkDbjj/9ZOLqAQS/+GIKl5BQOCn/ycqpzkXSDm5dU7ZWkG7wUyGlcmm7g5Ux56AqirgoaJ7BeokPTDbp9CbVunjFxPrl7+HqnkrSq1Da7JX20f3dV8yJi6voO81mX8vV0mx3qUsZCPRfTlVRdz2EvdufYGDvNQvvwqHtmXd+a1ITinwNcXc+lT6JuzdT1XDyBn/x7wtX1HCQQdW9MXc8xArGrirowfLeUEbMqqq6f7TF1lfRdOuGNiGi6SpT+WxY06xUfNN2wBfyE9I4tlm7w5hvOPDNJN3yNiLMipji6gE3chKhouoCtN5x3QlF0EZt8OW/8ougitqJQlk1aii7iFC9l0MvRReyao7xNjKML2Z/PuHlzhi5mFxljiZeiC9rPTEisNEMX9KYAwo5Xhi7qaA3hamboYm7dG+NVrXhdaYDv5zFaQZsYrCtbbAGnjkQDX2+J1FXCwOsqWOpKoIQNTFdqYBWydxqNqUoG0pVpCS+H8kaJaGKErlIaXj7CRRE+gRWuKwW9YZ80oVOUgbpdT0zpnSZJTIiwCtJVelvXntr4P5j6BWfPb5Wcx84C4cq3hb11lco2u2Mdwp6XdJ/Ne3wb8DWdfiRenZaXrhLwOj4e+GQeHroy3YOspS7TlU28Wle2m2QUS0mqdcbrdNW+ZHsSsyK7tBfm0q/dWcv+Z3mytVx3t7KWulqUe6ilunu8jF8pFwgv1FXp3mUt35OtRbr7eM4u4Gs6vUBXgeuHc5kfE/cbvWZtkROLm1DMtLCy80tzsu2PRj0hTI8fvrQuvsjlJkyutszq+m423wHaLTyniy/XuiGZ84LuT+m5ZfNfRxyGs7LXZOvia7VujatUwVTrIt+Q/Csc7Tuhe+BOakT10b4TuoiiJjvgU9emTO42PwEfBa+cuodKkuf42DXr1D3JpXz73Hnn0j10evHKe+nufgfUm+7B84sX9FfdEzXux2DBpWuKokkCqN/5pa/8pmvnL+RGKCddCGmatiPyPB/+ekO/M/q/7uvbt22kTt3zEnXPzCV13T3Gel4/6NduDu66xRvlPNkM1RjjxUdv+4WhGx6TftD19Q/dfzpwcHO+rE3fAAAAAElFTkSuQmCC",alt:"Profile Image"}),(0,u.jsx)("button",{style:{position:"absolute",left:"50%",bottom:"-24px",transform:"translateX(-50%)"},onClick:function(){return ve(!fe)},children:(0,u.jsx)(A.CameraIcon,{})})]})}),(0,u.jsx)("section",{style:{display:"flex",flexDirection:"column",flex:"citizen"===L?1:7.5,width:"100%",borderRadius:"4px",height:"fit-content",boxShadow:"citizen"===L?"":"1px 1px 4px 0px rgba(0,0,0,0.2)",background:"white",padding:"citizen"===L?"8px":"24px",paddingBottom:"20px"},children:"citizen"===L?(0,u.jsxs)(n().Fragment,{children:[(0,u.jsxs)(e.LabelFieldPair,{children:[(0,u.jsxs)(e.CardLabel,{className:"user-profile",style:{},children:["".concat(k("CORE_COMMON_PROFILE_NAME")),"*"]}),(0,u.jsxs)("div",{style:{width:"40rem",maxWidth:"960px"},children:[(0,u.jsx)(e.TextInput,Dt(Dt({t:k,style:{width:"100%"},type:"text",isMandatory:!1,name:"name",value:z,onChange:function(e){return Ke(e.target.value)}},{isRequired:!0,pattern:(null==ze||null===(d=ze.UserProfileValidationConfig)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.name)||(null==Bt||null===(f=Bt.UserProfileValidationConfig)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.name),type:"tel",title:k("CORE_COMMON_PROFILE_NAME_ERROR_MESSAGE")}),{},{disable:Qe})),(null==ke?void 0:ke.userName)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(v=ke.userName)||void 0===v?void 0:v.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsxs)(e.LabelFieldPair,{children:[(0,u.jsx)(e.CardLabel,{className:"user-profile",style:{},children:"".concat(k("CORE_COMMON_PROFILE_GENDER"))}),(0,u.jsx)(e.Dropdown,{style:{width:"40rem",fontSize:"1rem"},className:"form-field profileDropdown",selected:1===(null==K?void 0:K.length)?K[0]:K,disable:1===(null==K?void 0:K.length)||Qe,option:tt,select:Ze,value:K,optionKey:"code",t:k,name:"gender"})]}),(0,u.jsxs)(e.LabelFieldPair,{children:[(0,u.jsx)(e.CardLabel,{className:"user-profile",style:{},children:"".concat(k("CORE_COMMON_PROFILE_EMAIL"))}),(0,u.jsxs)("div",{style:{width:"40rem"},children:[(0,u.jsx)(e.TextInput,{t:k,style:{width:"100%"},type:"email",isMandatory:!1,optionKey:"i18nKey",name:"email",value:Q,onChange:function(e){return Je(e.target.value)},disabled:Qe}),(null==ke?void 0:ke.emailAddress)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(p=ke.emailAddress)||void 0===p?void 0:p.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsx)("button",{onClick:et,style:{marginTop:"24px",backgroundColor:"#c84c0e",width:"100%",height:"40px",color:"white",maxWidth:Ue?"100%":"240px",borderBottom:"1px solid black"},children:k("CORE_COMMON_SAVE")})]}):(0,u.jsxs)(n().Fragment,{children:[(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsxs)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:["".concat(k("CORE_COMMON_PROFILE_NAME")),"*"]}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.TextInput,Dt(Dt({t:k,type:"text",isMandatory:!1,name:"name",value:z,onChange:function(e){return Ke(e.target.value)},placeholder:"Enter Your Name"},{isRequired:!0,pattern:(null==ze||null===(m=ze.UserProfileValidationConfig)||void 0===m||null===(m=m[0])||void 0===m?void 0:m.name)||(null==Bt||null===(y=Bt.UserProfileValidationConfig)||void 0===y||null===(y=y[0])||void 0===y?void 0:y.name),type:"text",title:k("CORE_COMMON_PROFILE_NAME_ERROR_MESSAGE")}),{},{disabled:Qe})),(null==ke?void 0:ke.userName)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(g=ke.userName)||void 0===g?void 0:g.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_GENDER"))}),(0,u.jsx)("div",{style:{width:"100%"},children:(0,u.jsx)(e.Dropdown,{className:"profileDropdown",selected:1===(null==K?void 0:K.length)?K[0]:K,disable:1===(null==K?void 0:K.length)||Qe,option:tt,select:Ze,value:K,optionKey:"code",t:k,name:"gender"})})]}),(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_CITY"))}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.TextInput,Dt(Dt({t:k,type:"text",isMandatory:!1,name:"city",value:k(Digit.Utils.locale.getTransformedLocale("TENANT_TENANTS_".concat(B))),onChange:function(e){return te(e.target.value)},placeholder:"Enter Your City Name"},{isRequired:!0,type:"text",title:k("CORE_COMMON_PROFILE_CITY_ERROR_MESSAGE")}),{},{disabled:!0})),(0,u.jsx)(e.ErrorMessage,{})]})]}),(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_MOBILE_NUMBER"),"*")}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.MobileNumber,{value:re,style:{width:"100%"},name:"mobileNumber",placeholder:"Enter a valid Mobile No.",onChange:function(e){return function(e){var t;oe(e),"employee"!==L||null!=Ve&&null!==(t=Ve.mobileNumber)&&void 0!==t&&t.test(e)?Me(Dt(Dt({},ke),{},{mobileNumber:null})):Me(Dt(Dt({},ke),{},{mobileNumber:{type:"pattern",message:"CORE_COMMON_PROFILE_MOBILE_NUMBER_INVALID"}}))}(e)},disable:!Digit.Utils.getMultiRootTenant(),required:!0,pattern:(null==ze||null===(h=ze.UserProfileValidationConfig)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.mobileNumber)||(null==Bt||null===(O=Bt.UserProfileValidationConfig)||void 0===O||null===(O=O[0])||void 0===O?void 0:O.mobileNumber),type:"tel",title:k("CORE_COMMON_PROFILE_MOBILE_NUMBER_INVALID")}),(null==ke?void 0:ke.mobileNumber)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(S=ke.mobileNumber)||void 0===S?void 0:S.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_EMAIL"))}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.TextInput,{t:k,type:"email",isMandatory:!1,placeholder:k("EMAIL_VALIDATION"),optionKey:"i18nKey",name:"email",value:Q,onChange:function(e){return Je(e.target.value)},disabled:!!Digit.Utils.getMultiRootTenant()||Qe}),(null==ke?void 0:ke.emailAddress)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(x=ke.emailAddress)||void 0===x?void 0:x.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsx)(e.LabelFieldPair,{children:(0,u.jsxs)("div",{style:{width:"100%"},children:[0!=me||Digit.Utils.getOTPBasedLogin()?null:(0,u.jsx)(e.Button,{label:k("CORE_COMMON_CHANGE_PASSWORD"),variation:"teritiary",onClick:function(){return ye(!me)},style:{paddingLeft:"0rem"}}),me?(0,u.jsxs)("div",{style:{marginTop:"10px"},children:[(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_CURRENT_PASSWORD"))}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.TextInput,{t:k,type:"password",isMandatory:!1,name:"name",pattern:(null==ze||null===(j=ze.UserProfileValidationConfig)||void 0===j||null===(j=j[0])||void 0===j?void 0:j.password)||(null==Bt||null===(w=Bt.UserProfileValidationConfig)||void 0===w||null===(w=w[0])||void 0===w?void 0:w.password),onChange:function(e){var t,n;return n=null==e||null===(t=e.target)||void 0===t?void 0:t.value,void(null!=Ve&&Ve.password.test(n)?Me(Dt(Dt({},ke),{},{currentPassword:null})):Me(Dt(Dt({},ke),{},{currentPassword:{type:"pattern",message:"CORE_COMMON_PROFILE_PASSWORD_INVALID"}})))},disabled:Qe}),(null==ke?void 0:ke.currentPassword)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(_=ke.currentPassword)||void 0===_?void 0:_.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_NEW_PASSWORD"))}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.TextInput,{t:k,type:"password",isMandatory:!1,name:"name",pattern:(null==ze||null===(E=ze.UserProfileValidationConfig)||void 0===E||null===(E=E[0])||void 0===E?void 0:E.password)||(null==Bt||null===(C=Bt.UserProfileValidationConfig)||void 0===C||null===(C=C[0])||void 0===C?void 0:C.password),onChange:function(e){var t,n;return n=null==e||null===(t=e.target)||void 0===t?void 0:t.value,xe(n),void(null!=Ve&&Ve.password.test(n)?Me(Dt(Dt({},ke),{},{newPassword:null})):Me(Dt(Dt({},ke),{},{newPassword:{type:"pattern",message:"CORE_COMMON_PROFILE_PASSWORD_INVALID"}})))},disabled:Qe}),(null==ke?void 0:ke.newPassword)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(N=ke.newPassword)||void 0===N?void 0:N.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]}),(0,u.jsxs)(e.LabelFieldPair,{style:{display:"flex"},children:[(0,u.jsx)(e.CardLabel,{className:"profile-label-margin",style:{width:"300px"},children:"".concat(k("CORE_COMMON_PROFILE_CONFIRM_PASSWORD"))}),(0,u.jsxs)("div",{style:{width:"100%"},children:[(0,u.jsx)(e.TextInput,{t:k,type:"password",isMandatory:!1,name:"name",pattern:(null==ze||null===(I=ze.UserProfileValidationConfig)||void 0===I||null===(I=I[0])||void 0===I?void 0:I.password)||(null==Bt||null===(D=Bt.UserProfileValidationConfig)||void 0===D||null===(D=D[0])||void 0===D?void 0:D.password),onChange:function(e){var t,n;return n=null==e||null===(t=e.target)||void 0===t?void 0:t.value,_e(n),void(null!=Ve&&Ve.password.test(n)?Me(Dt(Dt({},ke),{},{confirmPassword:null})):Me(Dt(Dt({},ke),{},{confirmPassword:{type:"pattern",message:"CORE_COMMON_PROFILE_PASSWORD_INVALID"}})))},disabled:Qe}),(null==ke?void 0:ke.confirmPassword)&&(0,u.jsx)(e.ErrorMessage,{message:k(null==ke||null===(T=ke.confirmPassword)||void 0===T?void 0:T.message),truncateMessage:!0,maxLength:256,className:"",wrapperClassName:"",showIcon:!0})]})]})]}):""]})}),"employee"===L&&Ue?(0,u.jsx)("button",{onClick:et,style:{marginTop:"24px",backgroundColor:"#c84c0e",width:"100%",height:"40px",color:"white",maxWidth:Ue?"100%":"240px",borderBottom:"1px solid black",fontWeight:"700",fontSize:"17px"},children:k("CORE_COMMON_SAVE")}):null]})})]}),"employee"!==L||Ue?null:(0,u.jsx)(e.Footer,{actionFields:[(0,u.jsx)(e.SubmitBar,{t:k,label:k("CORE_COMMON_SAVE"),onSubmit:et})],className:"",setactionFieldsToRight:!0}),Ce&&(0,u.jsx)(e.Toast,{type:Ce.key,label:k("success"===Ce.key?"CORE_COMMON_PROFILE_UPDATE_SUCCESS":Ce.action),onClose:function(){return Ne(null)},style:{maxWidth:"670px"}}),1==fe?(0,u.jsx)(Nt,{setProfilePic:rt,closeDrawer:Ye,userType:L,removeProfilePic:function(){le(null),ce(null)},showToast:$e}):""]})};function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ht=function(n){var o,i,a=n.module,l=Digit.UserService.getUser(),s=((null==l||null===(o=l.info)||void 0===o?void 0:o.tenantId)||Digit.ULBService.getCurrentTenantId(),(0,r.useTranslation)().t),c=Digit.SessionStorage.get("initData").stateInfo,d=Digit.StoreData.getCurrentLanguage(),f=Gt((0,t.useState)(d),2),v=f[0],p=f[1],m=Gt((0,t.useState)(!1),2),y=m[0],g=m[1],b=Gt((0,t.useState)(""),2),h=b[0],O=b[1],S=function(){return(0,u.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M12 24C5.38053 24 0 18.6143 0 12C0 5.38054 5.38053 1.90735e-06 12 1.90735e-06C18.6143 1.90735e-06 24 5.38054 24 12C24 18.6143 18.6143 24 12 24ZM16.3488 10.7852L11.3855 7.25251C11.1263 7.0701 10.8238 6.97889 10.5214 6.97889C10.291 6.97889 10.0557 7.03172 9.83976 7.14202C9.34054 7.40118 9.02857 7.91006 9.02857 8.46694L9.02877 15.5323C9.02877 16.0892 9.34076 16.5979 9.83996 16.8572C10.3344 17.1116 10.9296 17.0732 11.3857 16.7467L16.349 13.214C16.7426 12.9356 16.9778 12.4795 16.9778 11.9996C16.9776 11.5197 16.7426 11.0636 16.3489 10.7852L16.3488 10.7852Z",fill:"white"})})},x=Digit.Hooks.useGetHowItWorksJSON(Digit.ULBService.getStateId()),j=x.isLoading,w=x.data,_=null==w||null===(i=w.MdmsRes["common-masters"])||void 0===i||null===(i=i.howItWorks[0])||void 0===i?void 0:i["".concat(a)];return j?(0,u.jsx)(e.Loader,{}):(0,u.jsx)(t.Fragment,{children:(0,u.jsxs)("div",{className:"how-it-works-page",children:[(0,u.jsx)(e.BackButton,{}),(0,u.jsx)("div",{className:"how-it-works-page-header",children:(0,u.jsx)(e.HeaderComponent,{children:s(_.screenHeader?_.screenHeader:"HOW_IT_WORKS")})}),(0,u.jsx)("div",{className:"language-selector",style:{margin:"10px"},children:[{label:"ENGLISH",value:"en_IN"},{label:"हिंदी",value:"hi_IN"}].map(function(e,t){return(0,u.jsx)("div",{className:"language-button-container",children:(0,u.jsx)(A.CustomButton,{selected:e.value===v,text:e.label,onClick:function(){return function(e){p(e.value),Digit.LocalizationService.changeLanguage(e.value,c.code)}(e)}})},t)})}),_.videosJson.map(function(e,t){return(0,u.jsx)("div",{children:(0,u.jsxs)("div",{className:"WhatsNewCard",style:{float:"left",position:"relative",width:"100%",marginBottom:10},children:[(0,u.jsx)("div",{className:"video-icon",onClick:function(){return t=e,O("hi_IN"===v?t.hi_IN:t.en_IN),void g(!0);var t},children:(0,u.jsx)("div",{className:"vid-svg",children:(0,u.jsx)(S,{})})}),(0,u.jsxs)("div",{className:"how-it-works-header-description",children:[(0,u.jsx)("h2",{children:s(e.headerLabel)}),(0,u.jsx)("p",{children:s(e.description)})]})]})})}),_.pdfHeader&&_.pdfDesc&&(0,u.jsx)("div",{className:"WhatsNewCard",style:{position:"relative",width:"100%",marginBottom:10,display:"inline-block"},children:(0,u.jsxs)("div",{className:"how-it-works-pdf-section",children:[(0,u.jsxs)("div",{className:"pdf-icon-header-desc",children:[(0,u.jsx)("div",{className:"pdf-icon",children:(0,u.jsx)(e.PDFSvg,{})}),(0,u.jsxs)("div",{className:"pdf-header-desc",children:[(0,u.jsx)("h2",{children:s(_.pdfHeader)}),(0,u.jsx)("p",{children:s(_.pdfDesc)})]})]}),(0,u.jsx)("div",{className:"download-icon",children:(0,u.jsx)(e.DownloadImgIcon,{})})]})}),y&&(0,u.jsxs)("div",{className:"how-it-works-video-play",children:[(0,u.jsx)("div",{className:"close-button",children:(0,u.jsx)(e.CloseSvg,{onClick:function(){g(!1)}})}),(0,u.jsx)("video",{width:500,height:500,controls:!0,autoPlay:!0,children:(0,u.jsx)("source",{src:h,type:"video/mp4"})})]})]})})};var Wt=[{texts:{header:"CS_LOGIN_PROVIDE_MOBILE_NUMBER",cardText:"CS_LOGIN_TEXT",nextText:"CS_COMMONS_NEXT",submitBarLabel:"CS_COMMONS_NEXT"},inputs:[{label:"CORE_COMMON_MOBILE_NUMBER",type:"text",name:"mobileNumber",error:"ERR_HRMS_INVALID_MOB_NO",validation:{required:!0,minlength:10,maxlength:10}}]},{texts:{header:"CS_LOGIN_OTP",cardText:"CS_LOGIN_OTP_TEXT",nextText:"CS_COMMONS_NEXT",submitBarLabel:"CS_COMMONS_NEXT"}},{texts:{header:"CS_LOGIN_PROVIDE_NAME",cardText:"CS_LOGIN_NAME_TEXT",nextText:"CS_COMMONS_NEXT",submitBarLabel:"CS_COMMONS_NEXT"},inputs:[{label:"CORE_COMMON_NAME",type:"text",name:"name",error:"CORE_COMMON_NAME_VALIDMSG",validation:{required:!0,minlength:1,maxlength:50,pattern:"^[A-Za-z]+( [A-Za-z]+)*$"}}]}];const zt=function(t){var n=t.t,r=t.onSelect,o=(t.showRegisterLink,t.mobileNumber),i=t.onMobileChange,a=t.config,l=t.canSubmit;return(0,u.jsx)(e.FormStep,{isDisabled:!(10===o.length&&l),onSelect:r,config:a,t:n,componentInFront:"+91",onChange:i,value:o})},Xt=function(t){var n=t.config,r=t.onSelect,o=t.t,i=t.isDisabled;return(0,u.jsx)(e.FormStep,{config:n,onSelect:r,t:o,isDisabled:i})},qt=function(e,n){var r=(0,t.useRef)();(0,t.useEffect)(function(){r.current=e},[e]),(0,t.useEffect)(function(){if(null!==n){var e=setInterval(function(){r.current()},n);return function(){return clearInterval(e)}}},[n])};function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Zt=function(n){var r,o,i=n.config,a=n.otp,l=n.onOtpChange,s=n.onResend,c=n.onSelect,d=n.t,f=n.error,v=n.userType,p=void 0===v?"citizen":v,m=n.canSubmit,y=(r=(0,t.useState)(30),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],b=y[1];qt(function(){b(g-1)},g>0?1e3:null);var h=function(){s(),b(2)};return"employee"===p?(0,u.jsxs)(t.Fragment,{children:[(0,u.jsx)(A.OTPInput,{length:6,onChange:l,value:a}),g>0?(0,u.jsx)(e.CardText,{children:"".concat(d("CS_RESEND_ANOTHER_OTP")," ").concat(g," ").concat(d("CS_RESEND_SECONDS"))}):(0,u.jsx)("p",{className:"card-text-button resend-otp",onClick:h,children:d("CS_RESEND_OTP")}),!f&&(0,u.jsx)(e.CardLabelError,{children:d("CS_INVALID_OTP")})]}):(0,u.jsxs)(e.FormStep,{onSelect:c,config:i,t:d,isDisabled:!(6===(null==a?void 0:a.length)&&m),children:[(0,u.jsx)(A.OTPInput,{length:6,onChange:l,value:a}),g>0?(0,u.jsx)(e.CardText,{children:"".concat(d("CS_RESEND_ANOTHER_OTP")," ").concat(g," ").concat(d("CS_RESEND_SECONDS"))}):(0,u.jsx)("p",{className:"card-text-button",onClick:h,children:d("CS_RESEND_OTP")}),!f&&(0,u.jsx)(e.CardLabelError,{children:d("CS_INVALID_OTP")})]})};function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}var Kt,Jt=["ResponseInfo","UserRequest"],$t=["ResponseInfo","UserRequest"];function en(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return nn(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(nn(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,nn(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,nn(d,"constructor",u),nn(u,"constructor",s),s.displayName="GeneratorFunction",nn(u,o,"GeneratorFunction"),nn(d),nn(d,o,"Generator"),nn(d,r,function(){return this}),nn(d,"toString",function(){return"[object Generator]"}),(tn=function(){return{w:i,m:f}})()}function nn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nn=function(e,t,n,r){function i(t,n){nn(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},nn(e,t,n,r)}function rn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function on(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){rn(i,r,o,a,l,"next",e)}function l(e){rn(i,r,o,a,l,"throw",e)}a(void 0)})}}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach(function(t){sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sn(e,t,n){return(t=function(e){var t=function(e){if("object"!=Yt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dn={type:"register"},fn={type:"login"},vn="/".concat(null===(Kt=window)||void 0===Kt?void 0:Kt.contextPath,"/citizen"),pn=function(e,t){return(null==e?void 0:e.from)||(null==t?void 0:t.from)||vn};const mn=function(n){var o,i,l=n.stateCode,s=n.isUserRegistered,c=void 0===s||s,d=(0,r.useTranslation)().t,f=(0,a.useLocation)(),v=(0,a.useNavigate)(),p=un((0,t.useState)(null),2),m=p[0],y=p[1],g=un((0,t.useState)(null),2),b=g[0],h=g[1],O=un((0,t.useState)(!0),2),S=O[0],x=O[1],j=un((0,t.useState)(null),2),w=(j[0],j[1],un((0,t.useState)(c?{}:null==f||null===(o=f.state)||void 0===o?void 0:o.data),2)),_=w[0],E=w[1],C=un((0,t.useState)(null),2),N=C[0],I=C[1],A=Digit.Hooks.useQueryParams(),D=un((0,t.useState)(!1),2),T=D[0],P=D[1],L=un((0,t.useState)(!0),2),R=L[0],k=L[1],M=un((0,t.useState)(!0),2),U=M[0],B=M[1];(0,t.useEffect)(function(){var e;return b&&(N&&(clearTimeout(N),I(null)),e=setTimeout(function(){h("")},5e3),I(e)),function(){e&&clearTimeout(e)}},[b]),(0,t.useEffect)(function(){var e;if(m){Digit.SessionStorage.set("citizen.userRequestObject",m),Digit.UserService.setUser(m),function(e,t,n){var r;if(!Digit.Utils.getMultiRootTenant()){var o=null===(r=JSON.parse(sessionStorage.getItem("Digit.initData")))||void 0===r||null===(r=r.value)||void 0===r?void 0:r.selectedLanguage;localStorage.setItem("Citizen.tenant-id",n),localStorage.setItem("tenant-id",n),localStorage.setItem("citizen.userRequestObject",JSON.stringify(e)),localStorage.setItem("locale",o),localStorage.setItem("Citizen.locale",o),localStorage.setItem("token",t),localStorage.setItem("Citizen.token",t),localStorage.setItem("user-info",JSON.stringify(e)),localStorage.setItem("Citizen.user-info",JSON.stringify(e))}}(null==m?void 0:m.info,null==m?void 0:m.access_token,l);var t,n=(null===(e=f.state)||void 0===e?void 0:e.from)||vn;Digit.ULBService.getCitizenCurrentTenant(!0)?v(n,{replace:!0}):v("/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/citizen/select-location"),{state:{redirectBackTo:n},replace:!0})}},[m]);var F=(0,t.useMemo)(function(){return Wt.map(function(e){var t={};for(var n in e.texts)t[n]=d(e.texts[n]);return ln(ln({},e),{},{texts:t})},[Wt])}),G=function(){return"citizen"},V=function(){var e=on(tn().m(function e(t){var n,r,o,i,a,s,u,p,m;return tn().w(function(e){for(;;)switch(e.n){case 0:if(B(!1),E(ln(ln({},_),t)),n=ln(ln({},t),{},{tenantId:l,userType:G()}),!c){e.n=4;break}return e.n=1,X({otp:ln(ln({},n),fn)});case 1:if(o=e.v,(i=un(o,2))[0],i[1]){e.n=2;break}return B(!0),v("otp",{state:{from:pn(f.state,A),role:null===(a=f.state)||void 0===a?void 0:a.role},replace:!0}),e.a(2);case 2:B(!0),f.state&&"FSM_DSO"===f.state.role||v("/".concat(null===(s=window)||void 0===s?void 0:s.contextPath,"/citizen/register/name"),{state:{from:pn(f.state,A),data:n}});case 3:null!==(r=f.state)&&void 0!==r&&r.role&&(B(!0),h("FSM_DSO"===(null===(u=f.state)||void 0===u?void 0:u.role)?d("ES_ERROR_DSO_LOGIN"):"User not registered.")),e.n=7;break;case 4:return e.n=5,X({otp:ln(ln({},n),dn)});case 5:if(p=e.v,(m=un(p,2))[0],m[1]){e.n=6;break}return B(!0),v("otp",{state:{from:pn(f.state,A)},replace:!0}),e.a(2);case 6:B(!0);case 7:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=on(tn().m(function e(t){var n,r,o,i;return tn().w(function(e){for(;;)switch(e.n){case 0:return n=ln(ln({},_),{},{tenantId:l,userType:G()},t),E(ln(ln({},_),t)),P(!0),e.n=1,X({otp:ln(ln({},n),dn)});case 1:r=e.v,o=un(r,2),i=o[0],o[1],i?(P(!1),v("otp",{state:{from:pn(f.state,A)},replace:!0})):P(!1);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),W=function(){var e=on(tn().m(function e(){var t,n,r,o,i,a,s,u,p,m,g,b,O,S,j;return tn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,x(!0),k(!1),t=_.mobileNumber,n=_.otp,r=_.name,!c){e.n=3;break}return a={username:t,password:n,tenantId:l,userType:G()},e.n=1,Digit.UserService.authenticate(a);case 1:if((s=e.v).ResponseInfo,u=s.UserRequest,p=en(s,Jt),null===(o=f.state)||void 0===o||!o.role){e.n=2;break}if((m=u.roles.find(function(e){return e.code===f.state.role}))&&m.code){e.n=2;break}return h(d("ES_ERROR_USER_NOT_PERMITTED")),setTimeout(function(){return v(vn,{replace:!0})},5e3),e.a(2);case 2:null!==(i=window)&&void 0!==i&&null!==(i=i.globalConfigs)&&void 0!==i&&i.getConfig("ENABLE_SINGLEINSTANCE")&&(u.tenantId=Digit.ULBService.getStateId()),y(ln({info:u},p)),e.n=5;break;case 3:if(c){e.n=5;break}return b={name:r,username:t,otpReference:n,tenantId:l},e.n=4,Digit.UserService.registerUser(b,l);case 4:(O=e.v).ResponseInfo,S=O.UserRequest,j=en(O,$t),null!==(g=window)&&void 0!==g&&null!==(g=g.globalConfigs)&&void 0!==g&&g.getConfig("ENABLE_SINGLEINSTANCE")&&(S.tenantId=Digit.ULBService.getStateId()),y(ln({info:S},j));case 5:e.n=7;break;case 6:e.p=6,e.v,k(!0),x(!1);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}(),z=function(){var e=on(tn().m(function e(){var t,n,r,o,i,a;return tn().w(function(e){for(;;)switch(e.n){case 0:if(t=_.mobileNumber,n={mobileNumber:t,tenantId:l,userType:G()},c){e.n=2;break}return e.n=1,X({otp:ln(ln({},n),dn)});case 1:r=e.v,(o=un(r,2))[0],o[1],e.n=4;break;case 2:if(!c){e.n=4;break}return e.n=3,X({otp:ln(ln({},n),fn)});case 3:i=e.v,(a=un(i,2))[0],a[1];case 4:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),X=function(){var e=on(tn().m(function e(t){var n,r;return tn().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Digit.UserService.sendOtp(t,l);case 1:return n=e.v,e.a(2,[n,null]);case 2:return e.p=2,r=e.v,e.a(2,[null,r])}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();return(0,u.jsx)("div",{className:"citizen-form-wrapper",children:(0,u.jsxs)(e.AppContainer,{children:[f.pathname.includes("login")?null:(0,u.jsx)(e.BackLink,{onClick:function(){return v(-1)}}),(0,u.jsxs)(a.Routes,{children:[" ",(0,u.jsx)(a.Route,{path:"/",element:(0,u.jsx)(zt,{onSelect:V,config:F[0],mobileNumber:_.mobileNumber||"",onMobileChange:function(e){var t=e.target.value;E(ln(ln({},_),{},{mobileNumber:t}))},canSubmit:U,showRegisterLink:c&&!(null!==(i=f.state)&&void 0!==i&&i.role),t:d})}),(0,u.jsx)(a.Route,{path:"otp",element:(0,u.jsx)(Zt,{config:ln(ln({},F[1]),{},{texts:ln(ln({},F[1].texts),{},{cardText:"".concat(F[1].texts.cardText," ").concat(_.mobileNumber||"")})}),onOtpChange:function(e){E(ln(ln({},_),{},{otp:e}))},onResend:z,onSelect:W,otp:_.otp,error:S,canSubmit:R,t:d})}),(0,u.jsx)(a.Route,{path:"name",element:(0,u.jsx)(Xt,{config:F[2],onSelect:H,t:d,isDisabled:T})}),b&&(0,u.jsx)(e.Toast,{type:"error",label:b,onClose:function(){return h(null)}})]})]})})};f(9789),f(5050);var yn=e=>"checkbox"===e.type,gn=e=>e instanceof Date,bn=e=>null==e;const hn=e=>"object"==typeof e;var On=e=>!bn(e)&&!Array.isArray(e)&&hn(e)&&!gn(e),Sn=e=>On(e)&&e.target?yn(e.target)?e.target.checked:e.target.value:e,xn=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),jn="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function wn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(jn&&(e instanceof Blob||e instanceof FileList)||!n&&!On(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return On(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=wn(e[n]));else t=e}return t}var _n=e=>Array.isArray(e)?e.filter(Boolean):[],En=e=>void 0===e,Cn=(e,t,n)=>{if(!t||!On(e))return n;const r=_n(t.split(/[,[\].]+?/)).reduce((e,t)=>bn(e)?e:e[t],e);return En(r)||r===e?En(e[t])?n:e[t]:r},Nn=e=>"boolean"==typeof e,In=e=>/^\w*$/.test(e),An=e=>_n(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dn=(e,t,n)=>{let r=-1;const o=In(t)?[t]:An(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=On(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const Tn="blur",Pn="onChange",Ln="onSubmit",Rn="all",kn="pattern",Mn="required",Un=t.createContext(null),Bn=()=>t.useContext(Un);var Fn=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Rn&&(t._proxyFormState[o]=!r||Rn),n&&(n[o]=!0),e[o]}});return o},Gn=e=>On(e)&&!Object.keys(e).length,Vn=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Gn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!r||Rn))},Hn=e=>Array.isArray(e)?e:[e],Wn=(e,t,n)=>!e||!t||e===t||Hn(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e)));function zn(e){const n=t.useRef(e);n.current=e,t.useEffect(()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}var Xn=e=>"string"==typeof e,qn=(e,t,n,r,o)=>Xn(e)?(r&&t.watch.add(e),Cn(n,e,o)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Cn(n,e))):(r&&(t.watchAll=!0),n);const Qn=e=>e.render(function(e){const n=Bn(),{name:r,disabled:o,control:i=n.control,shouldUnregister:a}=e,l=xn(i._names.array,r),s=function(e){const n=Bn(),{control:r=n.control,name:o,defaultValue:i,disabled:a,exact:l}=e||{},s=t.useRef(o);s.current=o,zn({disabled:a,subject:r._subjects.values,next:e=>{Wn(s.current,e.name,l)&&c(wn(qn(s.current,r._names,e.values||r._formValues,!1,i)))}});const[u,c]=t.useState(r._getWatch(o,i));return t.useEffect(()=>r._removeUnmounted()),u}({control:i,name:r,defaultValue:Cn(i._formValues,r,Cn(i._defaultValues,r,e.defaultValue)),exact:!0}),u=function(e){const n=Bn(),{control:r=n.control,disabled:o,name:i,exact:a}=e||{},[l,s]=t.useState(r._formState),u=t.useRef(!0),c=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(i);return d.current=i,zn({disabled:o,next:e=>u.current&&Wn(d.current,e.name,a)&&Vn(e,c.current,r._updateFormState)&&s({...r._formState,...e}),subject:r._subjects.state}),t.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),Fn(l,r,c.current,!1)}({control:i,name:r,exact:!0}),c=t.useRef(i.register(r,{...e.rules,value:s,...Nn(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect(()=>{const e=i._options.shouldUnregister||a,t=(e,t)=>{const n=Cn(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(r,!0),e){const e=wn(Cn(i._options.defaultValues,r));Dn(i._defaultValues,r,e),En(Cn(i._formValues,r))&&Dn(i._formValues,r,e)}return()=>{(l?e&&!i._state.action:e)?i.unregister(r):t(r,!1)}},[r,i,l,a]),t.useEffect(()=>{Cn(i._fields,r)&&i._updateDisabledField({disabled:o,fields:i._fields,name:r,value:Cn(i._fields,r)._f.value})},[o,r,i]),{field:{name:r,value:s,...Nn(o)||u.disabled?{disabled:u.disabled||o}:{},onChange:t.useCallback(e=>c.current.onChange({target:{value:Sn(e),name:r},type:"change"}),[r]),onBlur:t.useCallback(()=>c.current.onBlur({target:{value:Cn(i._formValues,r),name:r},type:Tn}),[r,i]),ref:t.useCallback(e=>{const t=Cn(i._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[i._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Cn(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Cn(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Cn(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Cn(u.validatingFields,r)},error:{enumerable:!0,get:()=>Cn(u.errors,r)}})}}(e));var Zn=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},Yn=e=>({isOnSubmit:!e||e===Ln,isOnBlur:"onBlur"===e,isOnChange:e===Pn,isOnAll:e===Rn,isOnTouch:"onTouched"===e}),Kn=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const Jn=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=Cn(e,o);if(n){const{_f:e,...i}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)break;if(e.ref&&t(e.ref,e.name)&&!r)break;Jn(i,t)}else On(i)&&Jn(i,t)}}};var $n=(e,t,n)=>{const r=Hn(Cn(e,n));return Dn(r,"root",t[n]),Dn(e,n,r),e},er=e=>"file"===e.type,tr=e=>"function"==typeof e,nr=e=>{if(!jn)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rr=e=>Xn(e),or=e=>"radio"===e.type,ir=e=>e instanceof RegExp;const ar={value:!1,isValid:!1},lr={value:!0,isValid:!0};var sr=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!En(e[0].attributes.value)?En(e[0].value)||""===e[0].value?lr:{value:e[0].value,isValid:!0}:lr:ar}return ar};const ur={isValid:!1,value:null};var cr=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ur):ur;function dr(e,t,n="validate"){if(rr(e)||Array.isArray(e)&&e.every(rr)||Nn(e)&&!e)return{type:n,message:rr(e)?e:"",ref:t}}var fr=e=>On(e)&&!ir(e)?e:{value:e,message:""},vr=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:l,maxLength:s,minLength:u,min:c,max:d,pattern:f,validate:v,name:p,valueAsNumber:m,mount:y,disabled:g}=e._f,b=Cn(t,p);if(!y||g)return{};const h=a?a[0]:i,O=e=>{r&&h.reportValidity&&(h.setCustomValidity(Nn(e)?"":e||""),h.reportValidity())},S={},x=or(i),j=yn(i),w=x||j,_=(m||er(i))&&En(i.value)&&En(b)||nr(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,E=Zn.bind(null,p,n,S),C=(e,t,n,r="maxLength",o="minLength")=>{const a=e?t:n;S[p]={type:e?r:o,message:a,ref:i,...E(e?r:o,a)}};if(o?!Array.isArray(b)||!b.length:l&&(!w&&(_||bn(b))||Nn(b)&&!b||j&&!sr(a).isValid||x&&!cr(a).isValid)){const{value:e,message:t}=rr(l)?{value:!!l,message:l}:fr(l);if(e&&(S[p]={type:Mn,message:t,ref:h,...E(Mn,t)},!n))return O(t),S}if(!(_||bn(c)&&bn(d))){let e,t;const r=fr(d),o=fr(c);if(bn(b)||isNaN(b)){const n=i.valueAsDate||new Date(b),a=e=>new Date((new Date).toDateString()+" "+e),l="time"==i.type,s="week"==i.type;Xn(r.value)&&b&&(e=l?a(b)>a(r.value):s?b>r.value:n>new Date(r.value)),Xn(o.value)&&b&&(t=l?a(b)<a(o.value):s?b<o.value:n<new Date(o.value))}else{const n=i.valueAsNumber||(b?+b:b);bn(r.value)||(e=n>r.value),bn(o.value)||(t=n<o.value)}if((e||t)&&(C(!!e,r.message,o.message,"max","min"),!n))return O(S[p].message),S}if((s||u)&&!_&&(Xn(b)||o&&Array.isArray(b))){const e=fr(s),t=fr(u),r=!bn(e.value)&&b.length>+e.value,o=!bn(t.value)&&b.length<+t.value;if((r||o)&&(C(r,e.message,t.message),!n))return O(S[p].message),S}if(f&&!_&&Xn(b)){const{value:e,message:t}=fr(f);if(ir(e)&&!b.match(e)&&(S[p]={type:kn,message:t,ref:i,...E(kn,t)},!n))return O(t),S}if(v)if(tr(v)){const e=dr(await v(b,t),h);if(e&&(S[p]={...e,...E("validate",e.message)},!n))return O(e.message),S}else if(On(v)){let e={};for(const r in v){if(!Gn(e)&&!n)break;const o=dr(await v[r](b,t),h,r);o&&(e={...o,...E(r,o.message)},O(o.message),n&&(S[p]=e))}if(!Gn(e)&&(S[p]={ref:h,...e},!n))return S}return O(!0),S};function pr(e,t){const n=Array.isArray(t)?t:In(t)?[t]:An(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=En(e)?r++:e[t[r++]];return e}(e,n),o=n.length-1,i=n[o];return r&&delete r[i],0!==o&&(On(r)&&Gn(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!En(e[t]))return!1;return!0}(r))&&pr(e,n.slice(0,-1)),e}var mr=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},yr=e=>bn(e)||!hn(e);function gr(e,t){if(yr(e)||yr(t))return e===t;if(gn(e)&&gn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(gn(n)&&gn(e)||On(n)&&On(e)||Array.isArray(n)&&Array.isArray(e)?!gr(n,e):n!==e)return!1}}return!0}var br=e=>"select-multiple"===e.type,hr=e=>nr(e)&&e.isConnected,Or=e=>{for(const t in e)if(tr(e[t]))return!0;return!1};function Sr(e,t={}){const n=Array.isArray(e);if(On(e)||n)for(const n in e)Array.isArray(e[n])||On(e[n])&&!Or(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Sr(e[n],t[n])):bn(e[n])||(t[n]=!0);return t}function xr(e,t,n){const r=Array.isArray(e);if(On(e)||r)for(const r in e)Array.isArray(e[r])||On(e[r])&&!Or(e[r])?En(t)||yr(n[r])?n[r]=Array.isArray(e[r])?Sr(e[r],[]):{...Sr(e[r])}:xr(e[r],bn(t)?{}:t[r],n[r]):n[r]=!gr(e[r],t[r]);return n}var jr=(e,t)=>xr(e,t,Sr(t)),wr=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>En(e)?e:t?""===e?NaN:e?+e:e:n&&Xn(e)?new Date(e):r?r(e):e;function _r(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return er(t)?t.files:or(t)?cr(e.refs).value:br(t)?[...t.selectedOptions].map(({value:e})=>e):yn(t)?sr(e.refs).value:wr(En(t.value)?e.ref.value:t.value,e)}var Er=e=>En(e)?e:ir(e)?e.source:On(e)?ir(e.value)?e.value.source:e.value:e;function Cr(e,t,n){const r=Cn(e,n);if(r||In(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=Cn(t,r),a=Cn(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}const Nr={mode:Ln,reValidateMode:Pn,shouldFocusError:!0};function Ir(e={}){let t,n={...Nr,...e},r={submitCount:0,isDirty:!1,isLoading:tr(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},i=(On(n.defaultValues)||On(n.values))&&wn(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:wn(i),l={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:mr(),array:mr(),state:mr()},f=Yn(n.mode),v=Yn(n.reValidateMode),p=n.criteriaMode===Rn,m=async e=>{if(c.isValid||e){const e=n.resolver?Gn((await h()).errors):await O(o,!0);e!==r.isValid&&d.state.next({isValid:e})}},y=(e,t)=>{(c.isValidating||c.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(t?Dn(r.validatingFields,e,t):pr(r.validatingFields,e))}),d.state.next({validatingFields:r.validatingFields,isValidating:!Gn(r.validatingFields)}))},g=(e,t,n,r)=>{const s=Cn(o,e);if(s){const o=Cn(a,e,En(n)?Cn(i,e):n);En(o)||r&&r.defaultChecked||t?Dn(a,e,t?o:_r(s._f)):j(e,o),l.mount&&m()}},b=(e,t,n,a,l)=>{let s=!1,u=!1;const f={name:e},v=!!(Cn(o,e)&&Cn(o,e)._f&&Cn(o,e)._f.disabled);if(!n||a){c.isDirty&&(u=r.isDirty,r.isDirty=f.isDirty=S(),s=u!==f.isDirty);const n=v||gr(Cn(i,e),t);u=!(v||!Cn(r.dirtyFields,e)),n||v?pr(r.dirtyFields,e):Dn(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,s=s||c.dirtyFields&&u!==!n}if(n){const t=Cn(r.touchedFields,e);t||(Dn(r.touchedFields,e,n),f.touchedFields=r.touchedFields,s=s||c.touchedFields&&t!==n)}return s&&l&&d.state.next(f),s?f:{}},h=async e=>{y(e,!0);const t=await n.resolver(a,n.context,((e,t,n,r)=>{const o={};for(const n of e){const e=Cn(t,n);e&&Dn(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||s.mount,o,n.criteriaMode,n.shouldUseNativeValidation));return y(e),t},O=async(e,t,o={valid:!0})=>{for(const i in e){const l=e[i];if(l){const{_f:e,...u}=l;if(e){const u=s.array.has(e.name);y([i],!0);const c=await vr(l,a,p,n.shouldUseNativeValidation&&!t,u);if(y([i]),c[e.name]&&(o.valid=!1,t))break;!t&&(Cn(c,e.name)?u?$n(r.errors,c,e.name):Dn(r.errors,e.name,c[e.name]):pr(r.errors,e.name))}!Gn(u)&&await O(u,t,o)}}return o.valid},S=(e,t)=>(e&&t&&Dn(a,e,t),!gr(I(),i)),x=(e,t,n)=>qn(e,s,{...l.mount?a:En(t)?i:Xn(e)?{[e]:t}:t},n,t),j=(e,t,n={})=>{const r=Cn(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&Dn(a,e,wr(t,n)),i=nr(n.ref)&&bn(t)?"":t,br(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?yn(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach(e=>e.checked=e.value===i):er(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||d.values.next({name:e,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&b(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},w=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,l=Cn(o,a);!s.array.has(e)&&yr(i)&&(!l||l._f)||gn(i)?j(a,i,n):w(a,i,n)}},_=(e,t,n={})=>{const u=Cn(o,e),f=s.array.has(e),v=wn(t);Dn(a,e,v),f?(d.array.next({name:e,values:{...a}}),(c.isDirty||c.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:jr(i,a),isDirty:S(e,v)})):!u||u._f||bn(v)?j(e,v,n):w(e,v,n),Kn(e,s)&&d.state.next({...r}),d.values.next({name:l.mount?e:void 0,values:{...a}})},E=async i=>{l.mount=!0;const g=i.target;let S=g.name,x=!0;const j=Cn(o,S),w=e=>{x=Number.isNaN(e)||e===Cn(a,S,e)};if(j){let l,E;const C=g.type?_r(j._f):Sn(i),I=i.type===Tn||"focusout"===i.type,A=!((_=j._f).mount&&(_.required||_.min||_.max||_.maxLength||_.minLength||_.pattern||_.validate)||n.resolver||Cn(r.errors,S)||j._f.deps)||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(I,Cn(r.touchedFields,S),r.isSubmitted,v,f),D=Kn(S,s,I);Dn(a,S,C),I?(j._f.onBlur&&j._f.onBlur(i),t&&t(0)):j._f.onChange&&j._f.onChange(i);const T=b(S,C,I,!1),P=!Gn(T)||D;if(!I&&d.values.next({name:S,type:i.type,values:{...a}}),A)return c.isValid&&m(),P&&d.state.next({name:S,...D?{}:T});if(!I&&D&&d.state.next({...r}),n.resolver){const{errors:e}=await h([S]);if(w(C),x){const t=Cr(r.errors,o,S),n=Cr(e,o,t.name||S);l=n.error,S=n.name,E=Gn(e)}}else y([S],!0),l=(await vr(j,a,p,n.shouldUseNativeValidation))[S],y([S]),w(C),x&&(l?E=!1:c.isValid&&(E=await O(o,!0)));x&&(j._f.deps&&N(j._f.deps),((n,o,i,a)=>{const l=Cn(r.errors,n),s=c.isValid&&Nn(o)&&r.isValid!==o;var f;if(e.delayError&&i?(f=()=>((e,t)=>{Dn(r.errors,e,t),d.state.next({errors:r.errors})})(n,i),t=e=>{clearTimeout(u),u=setTimeout(f,e)},t(e.delayError)):(clearTimeout(u),t=null,i?Dn(r.errors,n,i):pr(r.errors,n)),(i?!gr(l,i):l)||!Gn(a)||s){const e={...a,...s&&Nn(o)?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}})(S,E,l,T))}var _},C=(e,t)=>{if(Cn(r.errors,t)&&e.focus)return e.focus(),1},N=async(e,t={})=>{let i,a;const l=Hn(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await h(e);if(e)for(const n of e){const e=Cn(t,n);e?Dn(r.errors,n,e):pr(r.errors,n)}else r.errors=t;return t})(En(e)?e:l);i=Gn(t),a=e?!l.some(e=>Cn(t,e)):i}else e?(a=(await Promise.all(l.map(async e=>{const t=Cn(o,e);return await O(t&&t._f?{[e]:t}:t)}))).every(Boolean),(a||r.isValid)&&m()):a=i=await O(o);return d.state.next({...!Xn(e)||c.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&Jn(o,C,e?l:s.mount),a},I=e=>{const t={...l.mount?a:i};return En(e)?t:Xn(e)?Cn(t,e):e.map(e=>Cn(t,e))},A=(e,t)=>({invalid:!!Cn((t||r).errors,e),isDirty:!!Cn((t||r).dirtyFields,e),error:Cn((t||r).errors,e),isValidating:!!Cn(r.validatingFields,e),isTouched:!!Cn((t||r).touchedFields,e)}),D=(e,t,n)=>{const i=(Cn(o,e,{_f:{}})._f||{}).ref,a=Cn(r.errors,e)||{},{ref:l,message:s,type:u,...c}=a;Dn(r.errors,e,{...c,...t,ref:i}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},T=(e,t={})=>{for(const l of e?Hn(e):s.mount)s.mount.delete(l),s.array.delete(l),t.keepValue||(pr(o,l),pr(a,l)),!t.keepError&&pr(r.errors,l),!t.keepDirty&&pr(r.dirtyFields,l),!t.keepTouched&&pr(r.touchedFields,l),!t.keepIsValidating&&pr(r.validatingFields,l),!n.shouldUnregister&&!t.keepDefaultValue&&pr(i,l);d.values.next({values:{...a}}),d.state.next({...r,...t.keepDirty?{isDirty:S()}:{}}),!t.keepIsValid&&m()},P=({disabled:e,name:t,field:n,fields:r,value:o})=>{if(Nn(e)&&l.mount||e){const i=e?void 0:En(o)?_r(n?n._f:Cn(r,t)._f):o;Dn(a,t,i),b(t,i,!1,!1,!0)}},L=(e,t={})=>{let r=Cn(o,e);const a=Nn(t.disabled);return Dn(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),r?P({field:r,disabled:t.disabled,name:e,value:t.value}):g(e,!0,t.value),{...a?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:Er(t.min),max:Er(t.max),minLength:Er(t.minLength),maxLength:Er(t.maxLength),pattern:Er(t.pattern)}:{},name:e,onChange:E,onBlur:E,ref:a=>{if(a){L(e,t),r=Cn(o,e);const n=En(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,l=(e=>or(e)||yn(e))(n),s=r._f.refs||[];if(l?s.find(e=>e===n):n===r._f.ref)return;Dn(o,e,{_f:{...r._f,...l?{refs:[...s.filter(hr),n,...Array.isArray(Cn(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=Cn(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!xn(s.array,e)||!l.action)&&s.unMount.add(e)}}},R=()=>n.shouldFocusError&&Jn(o,C,s.mount),k=(e,t)=>async i=>{let l;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=wn(a);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await h();r.errors=e,s=t}else await O(o);if(pr(r.errors,"root"),Gn(r.errors)){d.state.next({errors:{}});try{await e(s,i)}catch(e){l=e}}else t&&await t({...r.errors},i),R(),setTimeout(R);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Gn(r.errors)&&!l,submitCount:r.submitCount+1,errors:r.errors}),l)throw l},M=(t,n={})=>{const u=t?wn(t):i,f=wn(u),v=Gn(t),p=v?i:f;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues)for(const e of s.mount)Cn(r.dirtyFields,e)?Dn(p,e,Cn(a,e)):_(e,Cn(p,e));else{if(jn&&En(t))for(const e of s.mount){const t=Cn(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(nr(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}a=e.shouldUnregister?n.keepDefaultValues?wn(i):{}:wn(p),d.array.next({values:{...p}}),d.values.next({values:{...p}})}s={mount:n.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!c.isValid||!!n.keepIsValid||!!n.keepDirtyValues,l.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!v&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||gr(t,i))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:v?{}:n.keepDirtyValues?n.keepDefaultValues&&a?jr(i,a):r.dirtyFields:n.keepDefaultValues&&t?jr(i,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},U=(e,t)=>M(tr(e)?e(a):e,t);return{control:{register:L,unregister:T,getFieldState:A,handleSubmit:k,setError:D,_executeSchema:h,_getWatch:x,_getDirty:S,_updateValid:m,_removeUnmounted:()=>{for(const e of s.unMount){const t=Cn(o,e);t&&(t._f.refs?t._f.refs.every(e=>!hr(e)):!hr(t._f.ref))&&T(e)}s.unMount=new Set},_updateFieldArray:(e,t=[],n,s,u=!0,f=!0)=>{if(s&&n){if(l.action=!0,f&&Array.isArray(Cn(o,e))){const t=n(Cn(o,e),s.argA,s.argB);u&&Dn(o,e,t)}if(f&&Array.isArray(Cn(r.errors,e))){const t=n(Cn(r.errors,e),s.argA,s.argB);u&&Dn(r.errors,e,t),((e,t)=>{!_n(Cn(e,t)).length&&pr(e,t)})(r.errors,e)}if(c.touchedFields&&f&&Array.isArray(Cn(r.touchedFields,e))){const t=n(Cn(r.touchedFields,e),s.argA,s.argB);u&&Dn(r.touchedFields,e,t)}c.dirtyFields&&(r.dirtyFields=jr(i,a)),d.state.next({name:e,isDirty:S(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Dn(a,e,t)},_updateDisabledField:P,_getFieldArray:t=>_n(Cn(l.mount?a:i,t,e.shouldUnregister?Cn(i,t,[]):[])),_reset:M,_resetDefaultValues:()=>tr(n.defaultValues)&&n.defaultValues().then(e=>{U(e,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{Nn(e)&&(d.state.next({disabled:e}),Jn(o,(t,n)=>{const r=Cn(o,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:d,_proxyFormState:c,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return o},get _formValues(){return a},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:N,register:L,handleSubmit:k,watch:(e,t)=>tr(e)?d.values.subscribe({next:n=>e(x(void 0,t),n)}):x(e,t,!0),setValue:_,getValues:I,reset:U,resetField:(e,t={})=>{Cn(o,e)&&(En(t.defaultValue)?_(e,wn(Cn(i,e))):(_(e,t.defaultValue),Dn(i,e,wn(t.defaultValue))),t.keepTouched||pr(r.touchedFields,e),t.keepDirty||(pr(r.dirtyFields,e),r.isDirty=t.defaultValue?S(e,wn(Cn(i,e))):S()),t.keepError||(pr(r.errors,e),c.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&Hn(e).forEach(e=>pr(r.errors,e)),d.state.next({errors:e?r.errors:{}})},unregister:T,setError:D,setFocus:(e,t={})=>{const n=Cn(o,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:A}}const Ar=function(t){t.register;var n=t.control,r=(t.reset,t.tenantId,t.t),o=(t.previousPage,t.formState,t.isLoading,window.Digit.Utils.browser.isMobile());return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(e.SearchField,{className:"pt-form-field",children:[(0,u.jsx)("label",{children:r("AUDIT_FROM_DATE_LABEL")}),(0,u.jsx)(Qn,{render:function(t){return(0,u.jsx)(e.DatePicker,{date:t.value,onChange:t.onChange})},name:"fromDate",control:n})]}),(0,u.jsxs)(e.SearchField,{className:"pt-form-field",children:[(0,u.jsx)("label",{children:r("AUDIT_TO_DATE_LABEL")}),(0,u.jsx)(Qn,{render:function(t){return(0,u.jsx)(e.DatePicker,{date:t.value,onChange:t.onChange})},name:"toDate",control:n})]}),(0,u.jsx)(e.SearchField,{className:"pt-search-action-submit",children:(0,u.jsx)(e.Button,{style:{marginTop:o?"510px":"25px",marginLeft:o?"0":"-30px",maxWidth:o?"100%":"240px"},label:r("ES_COMMON_APPLY"),submit:!0})})]})};function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}var Tr=["currentlyActiveMobileModal","searchFormFieldsComponentProps","tenantId"],Pr=["currentlyActiveMobileModal","searchFormFieldsComponentProps","tenantId"];function Lr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach(function(t){Mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Dr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Br(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Fr=function(r){var o,i=r.Controller,a=r.register,l=r.control,s=r.t,c=r.reset,d=r.previousPage,f=r.handleSubmit,v=r.tenantId,p=r.data,m=r.onSubmit,y=r.isLoading,g=Ur((0,t.useState)([]),2),b=g[0],h=g[1],O=function(t){return(0,u.jsx)("div",{onClick:t.onClick,children:(0,u.jsx)(e.DownloadBtnCommon,{})})};(0,t.useEffect)(function(){(null==p?void 0:p.length)>0&&h([null==p?void 0:p.map(function(e){var t={};return t[s("AUDIT_DATE_LABEL")]=S(null==e?void 0:e.timestamp),t[s("AUDIT_TIME_LABEL")]=x(null==e?void 0:e.timestamp),t[s("AUDIT_DATAVIEWED_LABEL")]=(null==e?void 0:e.dataView[0])+","+(null==e?void 0:e.dataView[1]),t[s("AUDIT_DATAVIEWED_BY_LABEL")]=null==e?void 0:e.dataViewedBy,t[s("AUDIT_ROLE_LABEL")]=null==e?void 0:e.roles.map(function(e){return e.name}).join(","),kr({},t)})])},[p]);var S=function(e){if(null==e||null==e||""==e)return"NA";var t=new Date(e),n=t.getMonth()+1,r=t.getDate(),o=t.getFullYear();return n=(n>9?"":"0")+n,"".concat(r=(r>9?"":"0")+r,"/").concat(n,"/").concat(o)},x=function(e){if(null==e||null==e||""==e)return"NA";var t=new Date(e),n=t.getHours(),r=t.getMinutes(),o=n>12?"PM":"AM";return r=(r>9?"":"0")+r,"".concat(n=((n=n>12?n-12:n)>9?"":"0")+n,":").concat(r," ").concat(o)},j=Ur((0,t.useReducer)(function(e,t){switch(t.type){case"set":return t.payload;case"remove":return!1}},!1),2),w=j[0],_=j[1],E=function(){_({type:"remove"})},C=function(){return(0,u.jsx)("div",{className:"InboxMobilePopupCloseButtonWrapper",onClick:E,children:(0,u.jsx)(e.CloseSvg,{})})},N={Controller:i,register:a,control:l,t:s,reset:c,previousPage:d},I=(0,t.useCallback)(function(t){return function(t){var n=t.currentlyActiveMobileModal,r=t.searchFormFieldsComponentProps,o=t.tenantId,i=Lr(t,Tr),a=i.closeMobilePopupModal;return"SearchFormComponent"===n?(0,u.jsxs)(e.SearchForm,kr(kr({},i),{},{children:[(0,u.jsx)(C,{}),(0,u.jsx)("div",{className:"MobilePopupHeadingWrapper",children:(0,u.jsxs)("h2",{children:[s("PRIVACY_AUDIT_REPORT"),":"]})}),(0,u.jsx)(Ar,kr(kr({},r),{},{closeMobilePopupModal:a,tenantId:o,t:s}))]})):(0,u.jsx)("span",{})}(kr({currentlyActiveMobileModal:t.currentlyActiveMobileModal,searchFormFieldsComponentProps:t.searchFormFieldsComponentProps,tenantId:t.tenantId},Lr(t,Pr)))},[w]),A=[];null==p||null===(o=p.roles)||void 0===o||o.forEach(function(e){A.push(null==e?void 0:e.name)});var D=(0,t.useMemo)(function(){return null!=p&&p.display||""===p?[]:null==p?void 0:p.map(function(e){var t;return Mr(Mr(Mr(Mr(Mr({},s("AUDIT_DATE_LABEL"),S(e.timestamp)),s("AUDIT_TIME_LABEL"),x(e.timestamp)),s("AUDIT_DATAVIEWED_LABEL"),e.dataView[0]+","+e.dataView[1]),s("AUDIT_DATAVIEWED_BY_LABEL"),e.dataViewedBy),s("AUDIT_ROLE_LABEL"),null===(t=e.roles.slice(0,3))||void 0===t?void 0:t.map(function(e){return e.name}).join(","))})},[p]);return(0,u.jsxs)(n().Fragment,{children:[(0,u.jsx)(e.BackButton,{}),(0,u.jsx)("div",{className:"sideContent",style:{marginLeft:"70%",marginTop:"-12%"},children:(0,u.jsx)(O,{className:"mrlg cursorPointer",onClick:function(){return function(e){if(void 0!==(null==e?void 0:e[0]))return Digit.Download.Excel(null==e?void 0:e[0],"AuditReport")}(b)}})}),(0,u.jsxs)(e.HeaderComponent,{children:[s("PRIVACY_AUDIT_REPORT"),":"]}),(0,u.jsx)("div",{className:"digit-search-box",children:(0,u.jsx)(e.SearchAction,{text:s("ES_COMMON_SEARCH"),handleActionClick:function(){return _({type:"set",payload:"SearchFormComponent"})},tenantId:v,t:s})}),w?(0,u.jsx)(e.PopUp,{children:(0,u.jsx)(I,{onSubmit:function(e){_({type:"remove"}),m(e)},handleSubmit:f,id:"search-form",className:"rm-mb form-field-flex-one inboxPopupMobileWrapper",searchFormFieldsComponentProps:N,currentlyActiveMobileModal:w,closeMobilePopupModal:E,tenantId:v})}):null,y&&(0,u.jsx)(e.Loader,{}),(0,u.jsx)(e.DetailsCard,{data:D})]})};function Gr(e){return Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(e)}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Gr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const zr=function(r){var o,i,a=r.tenantId,l=r.t,s=r.onSubmit,c=r.data,d=r.count,f=function(e={}){const n=t.useRef(),r=t.useRef(),[o,i]=t.useState({isDirty:!1,isValidating:!1,isLoading:tr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tr(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Ir(e),formState:o});const a=n.current.control;return a._options=e,zn({subject:a._subjects.state,next:e=>{Vn(e,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),t.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),t.useEffect(()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==o.isDirty&&a._subjects.state.next({isDirty:e})}},[a,o.isDirty]),t.useEffect(()=>{e.values&&!gr(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[e.values,a]),t.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),t.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),n.current.formState=Fn(o,a),n.current}({defaultValues:Digit.SessionStorage.get("AUDIT_APPLICATION_DETAIL")||{offset:0,limit:5,sortOrder:"DESC"}}),v=f.register,p=f.control,m=f.handleSubmit,y=f.setValue,g=f.getValues,b=f.reset,h=function(e){if(null==e||null==e||""==e)return"NA";var t=new Date(e),n=t.getMonth()+1,r=t.getDate(),o=t.getFullYear();return n=(n>9?"":"0")+n,"".concat(r=(r>9?"":"0")+r,"/").concat(n,"/").concat(o)},O=function(e){if(null==e||null==e||""==e)return"NA";var t=new Date(e),n=t.getHours(),r=t.getMinutes(),o=n>12?"PM":"AM";return r=(r>9?"":"0")+r,"".concat(n=((n=n>12?n-12:n)>9?"":"0")+n,":").concat(r," ").concat(o)},S=(o=(0,t.useState)([]),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Wr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wr(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=S[0],j=S[1],w=function(e){return(0,u.jsx)("div",{onClick:e.onClick,children:(0,u.jsx)(A.DownloadBtnCommon,{})})};(0,t.useEffect)(function(){v("offset",0),v("limit",5),v("sortOrder","DESC")},[v]),(0,t.useEffect)(function(){(null==c?void 0:c.length)>0&&j([null==c?void 0:c.map(function(e){var t={};return t[l("AUDIT_DATE_LABEL")]=h(null==e?void 0:e.timestamp),t[l("AUDIT_TIME_LABEL")]=O(null==e?void 0:e.timestamp),t[l("AUDIT_DATAVIEWED_LABEL")]=(null==e?void 0:e.dataView[0])+","+(null==e?void 0:e.dataView[1]),t[l("AUDIT_DATAVIEWED_BY_LABEL")]=null==e?void 0:e.dataViewedBy,t[l("AUDIT_ROLE_LABEL")]=null==e?void 0:e.roles.map(function(e){return e.name}).join(","),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach(function(t){Hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t)})])},[c]);var _=(0,t.useCallback)(function(e){0!==e.length&&(y("sortBy",e.id),y("sortOrder",e.desc?"DESC":"ASC"))},[]);function E(){y("offset",g("offset")-g("limit")),m(s)()}var C=window.Digit.Utils.browser.isMobile();if(C)return(0,u.jsx)(Fr,{Controller:Qn,register:v,control:p,t:l,reset:b,previousPage:E,handleSubmit:m,tenantId:a,data:c,onSubmit:s});var N=function(e){return(0,u.jsx)("span",{className:"cell-text",children:e})},I=(0,t.useMemo)(function(){return[{Header:l("AUDIT_DATE_LABEL"),disableSortBy:!0,accessor:function(e){var t="NA"===e.timestamp?l("WS_NA"):h(e.timestamp);return N("".concat(t))}},{Header:l("AUDIT_TIME_LABEL"),disableSortBy:!0,accessor:function(e){var t="NA"===e.timestamp?l("WS_NA"):O(e.timestamp);return N("".concat(t))}},{Header:l(C?"AUDIT_DATAVIEWED_LABEL":"AUDIT_DATAVIEWED_PRIVACY"),disableSortBy:!0,accessor:function(e){return N("".concat(null==e?void 0:e.dataView))}},{Header:l(C?"AUDIT_DATAVIEWED_BY_LABEL":"AUDIT_DATAVIEWED_BY_PRIVACY"),disableSortBy:!0,accessor:function(e){return N("".concat(null==e?void 0:e.dataViewedBy))}},{Header:l("AUDIT_ROLE_LABEL"),disableSortBy:!0,accessor:function(e){var t;return N("".concat(null==e||null===(t=e.roles.slice(0,3))||void 0===t?void 0:t.map(function(e){return e.name})))}}]},[]);return(0,u.jsxs)(n().Fragment,{children:[(0,u.jsxs)("div",{style:{marginRight:"-70px"},children:[" ",(0,u.jsx)(e.BackButton,{})," "]}),(0,u.jsxs)("div",{style:{marginTop:"30px",marginLeft:"30px"},children:[" ",(0,u.jsx)(e.HeaderComponent,{children:l("PRIVACY_AUDIT_REPORT")})," "]}),(0,u.jsx)(e.SearchForm,{className:"audit-card",onSubmit:s,handleSubmit:m,children:(0,u.jsx)(Ar,{register:v,control:p,reset:b,tenantId:a,t:l,previousPage:E})}),(0,u.jsx)("div",{style:{marginTop:"240px",marginLeft:"-55%",maxWidth:"80%",marginRight:"52px"},children:null!=c&&c.display?(0,u.jsx)("div",{style:{marginTop:"20x",width:"1025px",marginLeft:"25px",backgroundColor:"white",height:"60px"},children:l(c.display).split("\\n").map(function(e,t){return(0,u.jsx)("p",{style:{textAlign:"center"},children:e},t)})}):""!==c?(0,u.jsxs)("div",{style:{backgroundColor:"white",marginRight:"-30px",marginLeft:"30px"},children:[(0,u.jsx)("div",{className:"sideContent",style:{float:"right",padding:"10px 30px"},children:(0,u.jsx)(w,{className:"mrlg cursorPointer",onClick:function(){return function(e){if(void 0!==(null==e?void 0:e[0]))return Digit.Download.Excel(null==e?void 0:e[0],"AuditReport")}(x)}})}),(0,u.jsx)(A.Table,{t:l,data:c,totalRecords:d,columns:I,getCellProps:function(e){return{style:{minWidth:e.column.Header===l("ES_INBOX_APPLICATION_NO")?"240px":"",padding:"20px 18px",fontSize:"16px"}}},onPageSizeChange:function(e){y("limit",Number(e.target.value)),m(s)()},currentPage:g("offset")/g("limit"),onNextPage:function(){y("offset",g("offset")+g("limit")),m(s)()},onPrevPage:E,manualPagination:!1,pageSizeLimit:g("limit"),onSort:_,disableSort:!1,sortParams:[{id:g("sortBy"),desc:"DESC"===g("sortOrder")}]})]}):(0,u.jsx)(e.Loader,{})})]})};function Xr(e){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(e)}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach(function(t){Zr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Xr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Kr=function(e){e.path;var n,o,i,a,l=(0,r.useTranslation)().t,s=Digit.ULBService.getCitizenCurrentTenant(),c=(i=(0,t.useState)({}),a=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(i,a)||function(e,t){if(e){if("string"==typeof e)return Yr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(e,t):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=c[0],f=c[1],v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dayend";try{var n=e.match(/(\d{4})-(\d{1,2})-(\d{1,2})/),r=new Date(Date.UTC(n[1],n[2]-1,n[3]));return r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),"dayend"===t&&(r.setHours(r.getHours()+24),r.setSeconds(r.getSeconds()-1)),r.getTime()}catch(t){return e}};(0,t.useEffect)(function(){var e=Digit.SessionStorage.get("AUDIT_APPLICATION_DETAIL")||{};if(e){var t=Qr({},e);f(Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,n){return Qr(Qr({},e),{},Zr({},n,"object"===Xr(t[n])?t[n].code:t[n]))},{}))}},[]);var p={enabled:!!(d&&Object.keys(d).length>0)},m=Qr({},d),y=Digit.Hooks.useAudit({tenantId:s,filters:Qr({},m),config:p}),g=y.isLoading,b=y.data;return(0,u.jsx)(zr,{t:l,tenantId:s,onSubmit:function(e){Digit.SessionStorage.set("AUDIT_APPLICATION_DETAIL",{offset:0,limit:5,sortBy:"commencementDate",sortOrder:"DESC"});var t=Qr(Qr({},e),{},{fromDate:v(null==e?void 0:e.fromDate),toDate:v(null==e?void 0:e.toDate)});f(Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,n){return Qr(Qr({},e),{},Zr({},n,(Xr(t[n]),t[n])))},{}))},data:g?"":(null==b||null===(n=b.ElasticSearchData)||void 0===n?void 0:n.length)>0?null==b?void 0:b.ElasticSearchData:{display:"ES_COMMON_NO_DATA"},count:null==b||null===(o=b.ElasticSearchData)||void 0===o?void 0:o.length})},Jr=function(t){var o,i,a,l,s,c,d,f,v,p,m,y,g,b,h,O=t.moduleCode,S=(0,r.useTranslation)().t,x=Digit.ULBService.getCitizenCurrentTenant(),j=Digit.Hooks.useStaticData(Digit.ULBService.getStateId()),w=j.isLoading,_=j.data,E=Digit.Hooks.useDynamicData({moduleCode:O,tenantId:x,filters:{},t:S}),C=E.isLoading,N=E.error,I=E.data,A=(E.isSuccess,function(t){var n=t.module,r=t.styles;switch(n){case"TL":default:return(0,u.jsx)(e.CaseIcon,{className:"fill-path-primary-main",styles:r});case"PT":return(0,u.jsx)(e.PTIcon,{className:"fill-path-primary-main",styles:r});case"MCOLLECT":return(0,u.jsx)(e.MCollectIcon,{className:"fill-path-primary-main",styles:r});case"PGR":return(0,u.jsx)(e.ComplaintIcon,{className:"fill-path-primary-main",styles:r})}}),D=null==_||null===(o=_.MdmsRes["common-masters"])||void 0===o||null===(o=o.StaticData[0])||void 0===o?void 0:o["".concat(O)],T=function(t){switch(t.module){case"PT":case"WS":return(0,u.jsx)("span",{className:"timerIcon",children:(0,u.jsx)(e.TimerIcon,{})});default:return null}},P=function(t){switch(t.module){case"PT":return(0,u.jsx)("span",{className:"rupeeSymbol",children:(0,u.jsx)(e.RupeeSymbol,{})});case"WS":return(0,u.jsx)("span",{className:"timerIcon",children:(0,u.jsx)(e.TimerIcon,{})});default:return null}},L=function(e){switch(e){case"TL":case"PT":case"MCOLLECT":return{staticCommonContent:S("COMMON_VALIDITY"),validity:(null==D?void 0:D.validity)+("1"===(null==D?void 0:D.validity)?S("COMMON_DAY"):S("COMMON_DAYS"))};case"PGR":return{staticCommonContent:S("ACTION_TEST_COMPLAINT_TYPES")};case"OBPS":return{staticCommonContent:S("BUILDING_PLAN_PERMIT_VALIDITY"),validity:(null==D?void 0:D.validity)+" "+("1"===(null==D?void 0:D.validity)?S("COMMON_DAY"):S("COMMON_DAYS"))};default:return{staticCommonContent:""}}},R=function(e){switch(e){case"PT":return{staticDataOne:(null==D?void 0:D.staticDataOne)+" "+S("COMMON_DAYS"),staticDataOneHeader:S("APPLICATION_PROCESSING_TIME"),staticDataTwo:null==D?void 0:D.staticDataTwo,staticDataTwoHeader:S("APPLICATION_PROCESSING_FEE")};case"WS":return{staticDataOne:"",staticDataOneHeader:S("PAY_WATER_CHARGES_BY")+" "+(null==D?void 0:D.staticDataOne)+" "+S("COMMON_DAYS")+" "+S("OF_BILL_GEN_TO_AVOID_LATE_FEE"),staticDataTwo:(null==D?void 0:D.staticDataTwo)+" "+S("COMMON_DAYS"),staticDataTwoHeader:S("APPLICATION_PROCESSING_TIME")};default:return{}}};return w||C?(0,u.jsx)(e.Loader,{}):D?(0,u.jsxs)(n().Fragment,{children:[D&&null!=D&&D.payViaWhatsApp?(0,u.jsx)(e.Card,{style:{margin:"16px",padding:"16px",maxWidth:"unset"},children:(0,u.jsxs)("div",{className:"pay-whatsapp-card",onClick:function(){return e=null==D?void 0:D.payViaWhatsApp,void window.open(e);var e},children:[(0,u.jsx)("div",{className:"pay-whatsapp-text",children:S("PAY_VIA_WHATSAPP")}),(0,u.jsx)("div",{className:"whatsAppIconG",children:(0,u.jsx)(e.WhatsappIconGreen,{})})]})}):null,D&&null!=D&&D.helpline?(0,u.jsxs)(e.Card,{style:{margin:"16px",padding:"16px",maxWidth:"unset"},children:[(0,u.jsxs)("div",{className:"static-home-Card",children:[(0,u.jsx)("div",{className:"static-home-Card-header",children:S("CALL_CENTER_HELPLINE")}),(0,u.jsx)("div",{className:"helplineIcon",children:(0,u.jsx)(e.HelpLineIcon,{})})]}),(0,u.jsxs)("div",{className:"call-center-card-text",children:[null!=D&&null!==(i=D.helpline)&&void 0!==i&&i.contactOne?(0,u.jsx)("div",{className:"call-center-card-content",children:(0,u.jsx)("a",{href:"tel:".concat(null==D||null===(a=D.helpline)||void 0===a?void 0:a.contactOne),children:null==D||null===(l=D.helpline)||void 0===l?void 0:l.contactOne})}):null,null!=D&&null!==(s=D.helpline)&&void 0!==s&&s.contactTwo?(0,u.jsx)("div",{className:"call-center-card-content",children:(0,u.jsx)("a",{href:"tel:".concat(null==D||null===(c=D.helpline)||void 0===c?void 0:c.contactTwo),children:null==D||null===(d=D.helpline)||void 0===d?void 0:d.contactTwo})}):null]})]}):null,D&&null!=D&&D.serviceCenter?(0,u.jsxs)(e.Card,{style:{margin:"16px",padding:"16px",maxWidth:"unset"},children:[(0,u.jsxs)("div",{className:"static-home-Card",children:[(0,u.jsx)("div",{className:"static-home-Card-header",children:S("CITIZEN_SERVICE_CENTER")}),(0,u.jsx)("div",{className:"serviceCentrIcon",children:(0,u.jsx)(e.ServiceCenterIcon,{})})]}),(0,u.jsx)("div",{className:"service-center-details-card",children:(0,u.jsx)("div",{className:"service-center-details-text",children:null==D?void 0:D.serviceCenter})}),null!=D&&D.viewMapLocation?(0,u.jsx)("div",{className:"link",children:(0,u.jsx)("a",{href:null==D?void 0:D.viewMapLocation,children:S("VIEW_ON_MAP")})}):null]}):(0,u.jsx)("div",{}),(0,u.jsxs)(e.Card,{style:{margin:"16px",padding:"16px",maxWidth:"unset"},children:[N||null==I||null===(null==I?void 0:I.dynamicDataOne)?(0,u.jsx)("div",{}):(0,u.jsx)("div",{className:"dynamicDataCard",children:(0,u.jsxs)("div",{className:"dynamicData",children:[(0,u.jsx)(A,{module:O,styles:{width:"24px",height:"24px"}}),(0,u.jsx)("span",{className:"dynamicData-content",children:null==I?void 0:I.dynamicDataOne})]})}),N||null==I||null===(null==I?void 0:I.dynamicDataTwo)?(0,u.jsx)("div",{}):(0,u.jsx)("div",{className:"dynamicDataCard",children:(0,u.jsxs)("div",{className:"dynamicData",children:[(0,u.jsx)(A,{module:O,styles:{width:"24px",height:"24px"}}),(0,u.jsx)("span",{className:"dynamicData-content",children:null==I?void 0:I.dynamicDataTwo})]})}),D&&null!=D&&D.staticDataOne?(0,u.jsx)("div",{className:"staticDataCard",children:(0,u.jsxs)("div",{className:"staticData",children:[(0,u.jsx)(T,{module:O}),(0,u.jsxs)("span",{className:"static-data-content",children:[(0,u.jsx)("span",{className:"static-data-content-first",style:{marginTop:""===(null===(f=R(O))||void 0===f?void 0:f.staticDataOne)?"8px":"unset"},children:null===(v=R(O))||void 0===v?void 0:v.staticDataOneHeader}),(0,u.jsx)("span",{className:"static-data-content-second",children:"".concat(null===(p=R(O))||void 0===p?void 0:p.staticDataOne)})]})]})}):(0,u.jsx)("div",{}),D&&null!=D&&D.staticDataTwo?(0,u.jsx)("div",{className:"staticDataCard",children:(0,u.jsxs)("div",{className:"staticData",children:[(0,u.jsx)(P,{module:O}),(0,u.jsxs)("span",{className:"static-data-content",children:[(0,u.jsx)("span",{className:"static-data-content-first",children:null===(m=R(O))||void 0===m?void 0:m.staticDataTwoHeader}),(0,u.jsx)("span",{className:"static-data-content-second",children:null===(y=R(O))||void 0===y?void 0:y.staticDataTwo})]})]})}):(0,u.jsx)("div",{}),D&&null!=D&&D.validity?(0,u.jsx)("div",{className:"staticDataCard",children:(0,u.jsxs)("div",{className:"staticData",children:[(0,u.jsx)("span",{className:"validityIcon",children:(0,u.jsx)(e.ValidityTimeIcon,{})}),(0,u.jsxs)("span",{className:"static-data-content",children:[(0,u.jsx)("span",{className:"static-data-content-first",children:null===(g=L(O))||void 0===g?void 0:g.staticCommonContent}),(0,u.jsx)("span",{className:"static-data-content-second",children:null===(b=L(O))||void 0===b?void 0:b.validity})]})]})}):(0,u.jsx)("div",{}),N||null==I||null==I||!I.staticData||null===(null==I?void 0:I.staticData)?(0,u.jsx)("div",{}):(0,u.jsx)("div",{className:"staticDataCard",children:(0,u.jsxs)("div",{className:"staticData",children:["PGR"===O?(0,u.jsx)(A,{module:O,styles:{width:"24px",height:"24px",marginLeft:"13px",marginTop:"12px"}}):(0,u.jsx)("span",{className:"validityIcon",children:(0,u.jsx)(e.ValidityTimeIcon,{})}),(0,u.jsxs)("span",{className:"static-data-content",children:[(0,u.jsx)("span",{className:"static-data-content-first",children:null===(h=L(O))||void 0===h?void 0:h.staticCommonContent}),(0,u.jsx)("span",{className:"static-data-content-second",children:null==I?void 0:I.staticData})]})]})})]})]}):(0,u.jsx)(n().Fragment,{})};var $r,eo,to,no,ro;function oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var io=["".concat(null===($r=window)||void 0===$r?void 0:$r.contextPath,"/citizen/register/name"),"/".concat(null===(eo=window)||void 0===eo?void 0:eo.contextPath,"/citizen/select-language"),"/".concat(null===(to=window)||void 0===to?void 0:to.contextPath,"/citizen/select-location"),"/".concat(null===(no=window)||void 0===no?void 0:no.contextPath,"/citizen/login"),"/".concat(null===(ro=window)||void 0===ro?void 0:ro.contextPath,"/citizen/register/otp")],ao=function(e,t){return t.filter(function(t){return e.map(function(e){return e.code}).includes(t.code)})};const lo=function(t){var o,i,l=t.stateInfo,s=t.userDetails,c=t.CITIZEN,d=t.cityDetails,f=t.mobileView,v=t.handleUserDropdownSelection,p=t.logoUrl,m=(t.DSO,t.stateCode),y=t.modules,g=t.appTenants,h=(t.sourceUrl,t.pathname),O=t.initData,x=Digit.Hooks.useCustomMDMS(Digit.ULBService.getStateId(),"ACCESSCONTROL-ACTIONS-TEST",[{name:"actions-test",filter:"[?(@.url == '".concat(Digit.Utils.getMultiRootTenant()?window.globalPath:window.contextPath,"-card')]")}],{select:function(e){var t;return null==e||null===(t=e["ACCESSCONTROL-ACTIONS-TEST"])||void 0===t||null===(t=t["actions-test"])||void 0===t?void 0:t.filter(function(e){return!0===e.enabled}).reduce(function(e,t){var n,r;return e[t.parentModule]=(null===(n=e[t.parentModule])||void 0===n?void 0:n.length)>0?[t].concat(function(e){if(Array.isArray(e))return oo(e)}(r=e[t.parentModule])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return oo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oo(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):[t],e},{})}}),j=x.isLoading,w=x.data,_=x.isFetched,E=Digit.Hooks.useRouteSubscription(h),C=(0,r.useTranslation)().t,N=(0,a.useNavigate)(),I=((0,a.useLocation)(),io.some(function(e){return window.location.href.includes(e)})),A=y.map(function(e,t){var n=e.code,r=e.tenants,o=Digit.ComponentRegistryService.getComponent("".concat(n,"Module"));return o?(0,u.jsx)(a.Route,{path:"".concat(n.toLowerCase(),"/*"),element:(0,u.jsx)(o,{stateCode:m,moduleCode:n,userType:"citizen",tenants:ao(r,g)})},t):null}),D=y.map(function(t,r){var o=t.code,i=t.bannerImage,s=(Digit.ComponentRegistryService.getComponent("".concat(o,"Links")),_?X(w,o,C):void 0);return"ACTION_TEST_WS"===(null==s?void 0:s.header)&&(null==s||s.links.sort(function(e,t){return t.orderNumber-e.orderNumber})),(0,u.jsxs)(n().Fragment,{children:[" ",(0,u.jsx)(a.Route,{path:"".concat(o.toLowerCase(),"-home"),element:(0,u.jsxs)("div",{className:"moduleLinkHomePage",children:[(0,u.jsx)(b,{src:i||(null==l?void 0:l.bannerUrl),alt:"noimagefound"}),(0,u.jsx)(e.BackLink,{className:"moduleLinkHomePageBackButton",onClick:function(){return N(-1)}})," ",(0,u.jsx)("h1",{children:C("MODULE_"+o.toUpperCase())}),(0,u.jsx)("div",{className:"moduleLinkHomePageModuleLinks",children:s&&(0,u.jsx)(e.CitizenHomeCard,{header:C(null==s?void 0:s.header),links:null==s?void 0:s.links,Icon:function(){return(0,u.jsx)("span",{})},Info:"OBPS"===o?function(){return(0,u.jsx)(e.CitizenInfoLabel,{style:{margin:"0px",padding:"10px"},info:C("CS_FILE_APPLICATION_INFO_LABEL"),text:C("BPA_CITIZEN_HOME_STAKEHOLDER_INCLUDES_INFO_LABEL")})}:null,isInfo:"OBPS"===o})}),(0,u.jsx)(Jr,{moduleCode:null==o?void 0:o.toUpperCase()})]})}),(0,u.jsx)(a.Route,{path:"".concat(o.toLowerCase(),"-faq"),element:(0,u.jsx)(it,{module:null==o?void 0:o.toUpperCase()})}),(0,u.jsx)(a.Route,{path:"".concat(o.toLowerCase(),"-how-it-works"),element:(0,u.jsx)(Ht,{module:null==o?void 0:o.toUpperCase()})})]},o+"-routes")});return(0,u.jsxs)("div",{className:E,children:[(0,u.jsx)(nt,{t:C,stateInfo:l,userDetails:s,CITIZEN:c,cityDetails:d,mobileView:f,handleUserDropdownSelection:v,logoUrl:p,showSidebar:!!c,linkData:w,islinkDataLoading:j}),(0,u.jsxs)("div",{className:"main center-container citizen-home-container mb-25",children:[I?null:(0,u.jsx)("div",{className:"SideBarStatic",children:(0,u.jsx)(he,{linkData:w,islinkDataLoading:j})}),(0,u.jsxs)(a.Routes,{children:[" ",(0,u.jsx)(a.Route,{path:"/",element:(0,u.jsx)(ct,{})})," ",(0,u.jsx)(a.Route,{path:"select-language",element:(0,u.jsx)(mt,{})}),(0,u.jsx)(a.Route,{path:"select-location",element:(0,u.jsx)(xt,{})}),(0,u.jsx)(a.Route,{path:"error",element:(0,u.jsx)(S,{initData:O,goToHome:function(){var e,t,n;N("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/").concat(null===(t=Digit)||void 0===t||null===(t=t.UserService)||void 0===t||null===(n=t.getType)||void 0===n?void 0:n.call(t)))}})}),(0,u.jsx)(a.Route,{path:"all-services",element:(0,u.jsx)(Z,{userType:"citizen",modules:y,getCitizenMenu:w,fetchedCitizen:_,isLoading:j})}),(0,u.jsx)(a.Route,{path:"login/*",element:(0,u.jsx)(mn,{stateCode:m})})," ",(0,u.jsx)(a.Route,{path:"register/*",element:(0,u.jsx)(mn,{stateCode:m,isUserRegistered:!1})})," ",(0,u.jsx)(a.Route,{path:"user/profile",element:(0,u.jsx)(Ft,{stateCode:m,userType:"citizen",cityDetails:d})}),(0,u.jsx)(a.Route,{path:"Audit",element:(0,u.jsx)(Kr,{})}),A,D]})]}),(0,u.jsx)("div",{className:"citizen-home-footer",style:window.location.href.includes("citizen/obps")?{zIndex:"-1"}:{},children:(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(o=window)||void 0===o||null===(o=o.globalConfigs)||void 0===o||null===(i=o.getConfig)||void 0===i?void 0:i.call(o,"DIGIT_FOOTER"),style:{height:"1.2em",cursor:"pointer"},onClick:function(){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()}})})]})};f(8142);const so=function(e){var t=e.children;return(0,u.jsx)("div",{className:"banner banner-container",children:t})},uo=function(t){var n,o=t.showTenant,i=void 0===o||o,a=Digit.Hooks.useStore.getInitData(),l=a.data,s=a.isLoading,c=(l||{}).stateInfo,d=(0,r.useTranslation)().t;return s?(0,u.jsx)(e.Loader,{}):(0,u.jsxs)("div",{className:"bannerHeader",children:[(0,u.jsx)(b,{className:"bannerLogo",src:null==c?void 0:c.logoUrl,style:i?{}:{borderRight:"unset"},alt:"Digit Banner"}),i&&(null==c?void 0:c.code)&&(0,u.jsx)("p",{children:d("TENANT_TENANTS_".concat(null==c||null===(n=c.code)||void 0===n?void 0:n.toUpperCase()))})]})};function co(e){return co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},co(e)}function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach(function(t){po(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function po(e,t,n){return(t=function(e){var t=function(e){if("object"!=co(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==co(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return yo(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(yo(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,yo(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,yo(d,"constructor",u),yo(u,"constructor",s),s.displayName="GeneratorFunction",yo(u,o,"GeneratorFunction"),yo(d),yo(d,o,"Generator"),yo(d,r,function(){return this}),yo(d,"toString",function(){return"[object Generator]"}),(mo=function(){return{w:i,m:f}})()}function yo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yo=function(e,t,n,r){function i(t,n){yo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yo(e,t,n,r)}function go(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){go(i,r,o,a,l,"next",e)}function l(e){go(i,r,o,a,l,"throw",e)}a(void 0)})}}function ho(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var So=function(n){var r,o,i=n.config,l=n.t,s=ho((0,t.useState)(null),2),c=s[0],d=(s[1],Digit.Hooks.useQueryParams()),f=d.mobile_number,v=d.tenantId,p=(0,a.useNavigate)(),m=ho((0,t.useState)(""),2),y=m[0],g=m[1],h=ho((0,t.useState)(!0),2),O=h[0],S=(h[1],ho((0,t.useState)(null),2)),x=S[0],j=S[1],w=function(){return Digit.UserService.getType()};(0,t.useEffect)(function(){var e,t;if(c){Digit.UserService.setUser(c);var n=(null===(e=location.state)||void 0===e?void 0:e.from)||"/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/employee");p(n,{replace:!0})}else Digit.UserService.setType("employee")},[c]);var _=function(){j(null)},E=function(){var e=bo(mo().m(function e(){var t,n,r;return mo().w(function(e){for(;;)switch(e.p=e.n){case 0:return t={otp:{mobileNumber:f,userType:w().toUpperCase(),type:"passwordreset",tenantId:v}},e.p=1,e.n=2,Digit.UserService.sendOtp(t,v);case 2:j(l("ES_OTP_RESEND")),e.n=4;break;case 3:e.p=3,r=e.v,j((null==r||null===(n=r.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.error_description)||l("ES_INVALID_LOGIN_CREDENTIALS"));case 4:setTimeout(_,5e3);case 5:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=bo(mo().m(function e(t){var n,r,o;return mo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,t.newPassword===t.confirmPassword){e.n=1;break}return e.a(2,j(l("ERR_PASSWORD_DO_NOT_MATCH")));case 1:return n=vo(vo({},t),{},{otpReference:y,tenantId:v,type:w().toUpperCase()}),e.n=2,Digit.UserService.changePassword(n,v);case 2:e.v,N(),e.n=4;break;case 3:e.p=3,o=e.v,j((null==o||null===(r=o.response)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.error)||void 0===r||null===(r=r.fields)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.message)||l("ES_SOMETHING_WRONG")),setTimeout(_,5e3);case 4:return e.a(2)}},e,null,[[0,3]])}));return function(t){return e.apply(this,arguments)}}(),N=function(){var e;p("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/employee/user/login"),{replace:!0})},I=ho(i.inputs,3),D=I[0],T=I[1],P=I[2],L=[{body:[{label:l(D.label),type:D.type,populators:{name:D.name},isMandatory:!0},{label:l(T.label),type:T.type,populators:{name:T.name},isMandatory:!0},{label:l(P.label),type:P.type,populators:{name:P.name},isMandatory:!0}]}];return(0,u.jsxs)(so,{children:[(0,u.jsx)("div",{className:"employeeBackbuttonAlign",children:(0,u.jsx)(e.BackLink,{variant:"primary",style:{borderBottom:"none"}})}),(0,u.jsxs)(A.FormComposer,{onSubmit:C,noBoxShadow:!0,inline:!0,submitInForm:!0,config:L,label:i.texts.submitButtonLabel,cardStyle:{maxWidth:"408px",margin:"auto"},className:"employeeChangePassword",children:[(0,u.jsx)(uo,{}),(0,u.jsxs)(A.CardSubHeader,{style:{textAlign:"center"},children:[" ",i.texts.header," "]}),(0,u.jsxs)(A.CardText,{children:["".concat(l("CS_LOGIN_OTP_TEXT")," "),(0,u.jsxs)("b",{children:[" ","".concat(l("+ 91 - "))," ",f]})]}),(0,u.jsx)(Zt,{t:l,userType:"employee",otp:y,onOtpChange:g,error:O,onResend:E})]}),x&&(0,u.jsx)(e.Toast,{type:"error",label:l(x),onClose:_}),(0,u.jsxs)("div",{className:"EmployeeLoginFooter",children:[(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(r=window)||void 0===r||null===(r=r.globalConfigs)||void 0===r||null===(o=r.getConfig)||void 0===o?void 0:o.call(r,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})," "]})]})};So.propTypes={loginParams:s().any},So.defaultProps={loginParams:null};const xo=So;var jo=[{texts:{header:"CORE_COMMON_RESET_PASSWORD_LABEL",submitButtonLabel:"CORE_COMMON_CHANGE_PASSWORD"},inputs:[{label:"CORE_LOGIN_USERNAME",type:"text",name:"userName",error:"ERR_HRMS_INVALID_USERNAME"},{label:"CORE_LOGIN_NEW_PASSWORD",type:"password",name:"newPassword",error:"CORE_COMMON_REQUIRED_ERRMSG"},{label:"CORE_LOGIN_CONFIRM_NEW_PASSWORD",type:"password",name:"confirmPassword",error:"CORE_COMMON_REQUIRED_ERRMSG"}]}];function wo(e){return wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wo(e)}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){Co(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Co(e,t,n){return(t=function(e){var t=function(e){if("object"!=wo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const No=function(){var e=(0,r.useTranslation)().t,n=(0,t.useMemo)(function(){return jo.map(function(t){var n={};for(var r in t.texts)n[r]=e(t.texts[r]);return Eo(Eo({},t),{},{texts:n})})},[jo]);return(0,u.jsx)(a.Routes,{children:(0,u.jsx)(a.Route,{path:"",element:(0,u.jsx)(xo,{config:n[0],t:e})})})};var Io=[{texts:{header:"CORE_COMMON_FORGOT_PASSWORD_LABEL",description:"ES_FORGOT_PASSWORD_DESC",submitButtonLabel:"CORE_COMMON_CONTINUE"},inputs:[{label:"CORE_COMMON_MOBILE_NUMBER",type:"mobileNumber",name:"mobileNumber",error:"ERR_HRMS_INVALID_MOBILE_NUMBER"},{label:"CORE_COMMON_CITY",type:"dropdown",name:"city",error:"ERR_HRMS_INVALID_CITY"}]}],Ao=[{texts:{header:"CORE_COMMON_LOGIN",submitButtonLabel:"CORE_COMMON_LOGIN",secondaryButtonLabel:"CORE_COMMON_FORGOT_PASSWORD"},inputs:[{label:"CORE_LOGIN_USERNAME",type:"text",key:"username",isMandatory:!0,populators:{name:"username",validation:{required:!0},error:"ERR_USERNAME_REQUIRED"}},{label:"CORE_LOGIN_PASSWORD",type:"password",key:"password",isMandatory:!0,populators:{name:"password",validation:{required:!0},error:"ERR_PASSWORD_REQUIRED"}},{isMandatory:!0,type:"dropdown",key:"city",label:"CORE_COMMON_CITY",disable:!1,populators:{name:"city",optionsKey:"name",error:"ERR_HRMS_INVALID_CITY",mdmsConfig:{masterName:"tenants",moduleName:"tenant",localePrefix:"TENANT_TENANTS",select:"(data)=>{ return Array.isArray(data['tenant'].tenants) && Digit.Utils.getUnique(data['tenant'].tenants).map(ele=>({code:ele.code,name:Digit.Utils.locale.getTransformedLocale('TENANT_TENANTS_'+ele.code)}))}"}}},{key:"check",type:"component",disable:!1,component:"PrivacyComponent",populators:{name:"check"},customProps:{module:"HCM"},isMandatory:!1,withoutLabel:!0}]}];function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const To=function(e){var n,o,i,a=e.bannerImages,l=void 0===a?[]:a,s=(o=(0,t.useState)(0),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Do(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Do(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],d=s[1],f=(0,r.useTranslation)().t,v=l||(null===(n=Ao[0])||void 0===n?void 0:n.bannerImages)||[],p=function(){d(function(e){return e===v.length-1?0:e+1})};return(0,t.useEffect)(function(){var e=setInterval(function(){p()},5e3);return function(){return clearInterval(e)}},[v.length]),(0,u.jsx)(t.Fragment,{children:(0,u.jsxs)("div",{className:"carousel-container",children:[v.sort(function(e,t){return(null==e?void 0:e.id)-(null==t?void 0:t.id)}).map(function(e,t){return(0,u.jsx)("div",{className:"carousel-slide ".concat(t===c?"active":""),style:{backgroundImage:"url(".concat(e.image,")")},children:(0,u.jsxs)("div",{className:"carousel-content",children:[(0,u.jsx)("h2",{children:f(e.title)}),(0,u.jsx)("p",{children:f(e.description)})]})},e.id)}),(0,u.jsxs)("div",{className:"carousel-controls",children:[(0,u.jsx)("button",{className:"carousel-nav",onClick:function(){d(function(e){return 0===e?v.length-1:e-1})},children:"<"}),(0,u.jsx)("div",{className:"carousel-indicators",children:v.map(function(e,t){return(0,u.jsx)("button",{className:"indicator ".concat(t===c?"active":""),onClick:function(){return function(e){d(e)}(t)}},t)})}),(0,u.jsx)("button",{className:"carousel-nav",onClick:p,children:">"})]})]})})};var Po=function(e){var t=Digit.Utils.getConfigModuleName();return Digit.Hooks.useCommonMDMS(e,t,["LoginConfig"],{select:function(e){var n;return{config:null==e||null===(n=e[t])||void 0===n?void 0:n.LoginConfig}},retry:!1})};function Lo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Ro(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Ro(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ro(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,Ro(d,"constructor",u),Ro(u,"constructor",s),s.displayName="GeneratorFunction",Ro(u,o,"GeneratorFunction"),Ro(d),Ro(d,o,"Generator"),Ro(d,r,function(){return this}),Ro(d,"toString",function(){return"[object Generator]"}),(Lo=function(){return{w:i,m:f}})()}function Ro(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ro=function(e,t,n,r){function i(t,n){Ro(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ro(e,t,n,r)}function ko(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bo=function(r){var o,i,l,s,c=r.config,d=r.t,f=r.stateCode,v=Digit.Hooks.useTenants(),p=v.data,m=v.isLoading,y=Mo((0,t.useState)(null),2),g=y[0],h=(y[1],(0,a.useNavigate)()),O=Mo((0,t.useState)(null),2),S=O[0],x=O[1],j=function(){return Digit.UserService.getType()},w=Po(f).data;if(null!=w&&w.config){var _,E=null==w||null===(_=w.config[0])||void 0===_?void 0:_.bannerImages;c.bannerImages=E}(0,t.useEffect)(function(){var e,t;if(g){Digit.UserService.setUser(g);var n=(null===(e=location.state)||void 0===e?void 0:e.from)||"/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/employee");h(n,{replace:!0})}else Digit.UserService.setType("employee")},[g]);var C=function(){x(null)},N=function(){var e,t=(e=Lo().m(function e(t){var n,r,o,i;return Lo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.city){e.n=1;break}return alert("Please Select City!"),e.a(2);case 1:return n={otp:{mobileNumber:t.mobileNumber,userType:j().toUpperCase(),type:"passwordreset",tenantId:t.city.code}},e.p=2,e.n=3,Digit.UserService.sendOtp(n,t.city.code);case 3:h("/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/employee/user/change-password?mobile_number=").concat(t.mobileNumber,"&tenantId=").concat(t.city.code)),e.n=5;break;case 4:e.p=4,i=e.v,x((null==i||null===(o=i.response)||void 0===o||null===(o=o.data)||void 0===o||null===(o=o.error)||void 0===o||null===(o=o.fields)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.message)||"Invalid login credentials!"),setTimeout(C,5e3);case 5:return e.a(2)}},e,null,[[2,4]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ko(i,r,o,a,l,"next",e)}function l(e){ko(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),I=function(){var e;h("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/employee/login"))},A=Mo(c.inputs,2),D=A[0],T=A[1],P=[{body:[{label:d(D.label),type:D.type,populators:{name:D.name},isMandatory:!0},{label:d(T.label),type:T.type,populators:{name:T.name,optionsKey:"name",required:!0,options:p},isMandatory:!0}]}];return m?(0,u.jsx)(e.Loader,{page:!0,variant:"PageLoader"}):null!=c&&c.bannerImages?(0,u.jsx)(n().Fragment,{children:(0,u.jsxs)("div",{className:"login-container",children:[(0,u.jsx)(To,{bannerImages:null==c?void 0:c.bannerImages}),(0,u.jsxs)("div",{className:"login-form-container",children:[(0,u.jsx)(e.FormComposerV2,{onSubmit:N,noBoxShadow:!0,inline:!0,submitInForm:!0,config:P,label:c.texts.submitButtonLabel,secondaryActionLabel:c.texts.secondaryButtonLabel,onSecondayActionClick:I,heading:c.texts.header,description:c.texts.description,headingStyle:{textAlign:"center",fontWeight:"bold",color:"#363636"},descriptionStyles:{color:"#787878",textAlign:"center"},cardStyle:{maxWidth:"408px",margin:"auto"},className:"employeeForgotPassword",children:(0,u.jsx)(uo,{})}),S&&(0,u.jsx)(e.Toast,{type:"error",label:d(S),onClose:C}),(0,u.jsxs)("div",{className:"EmployeeLoginFooter",children:[(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(o=window)||void 0===o||null===(o=o.globalConfigs)||void 0===o||null===(i=o.getConfig)||void 0===i?void 0:i.call(o,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})," "]})]})]})}):(0,u.jsxs)(so,{children:[(0,u.jsx)("div",{className:"employeeBackbuttonAlign",children:(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}})}),(0,u.jsx)(e.FormComposerV2,{onSubmit:N,noBoxShadow:!0,inline:!0,submitInForm:!0,config:P,label:c.texts.submitButtonLabel,secondaryActionLabel:c.texts.secondaryButtonLabel,onSecondayActionClick:I,heading:c.texts.header,description:c.texts.description,headingStyle:{textAlign:"center",fontWeight:"bold",color:"#363636"},descriptionStyles:{color:"#787878",textAlign:"center"},cardStyle:{maxWidth:"408px",margin:"auto"},className:"employeeForgotPassword",children:(0,u.jsx)(uo,{})}),S&&(0,u.jsx)(e.Toast,{type:"error",label:d(S),onClose:C}),(0,u.jsxs)("div",{className:"EmployeeLoginFooter",children:[(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(l=window)||void 0===l||null===(l=l.globalConfigs)||void 0===l||null===(s=l.getConfig)||void 0===s?void 0:s.call(l,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})," "]})]})};Bo.propTypes={loginParams:s().any},Bo.defaultProps={loginParams:null};const Fo=Bo;function Go(e){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Go(e)}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach(function(t){Wo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wo(e,t,n){return(t=function(e){var t=function(e){if("object"!=Go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Go(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zo=function(e){var n=e.stateCode,o=(0,r.useTranslation)().t,i=(0,t.useMemo)(function(){return Io.map(function(e){var t={};for(var n in e.texts)t[n]=o(e.texts[n]);return Ho(Ho({},e),{},{texts:t})})},[Io]);return(0,u.jsx)(a.Routes,{children:(0,u.jsx)(a.Route,{path:"",element:(0,u.jsx)(Fo,{config:i[0],t:o,stateCode:n})})})};var Xo=function(e,t){return t.filter(function(t){var n;return null==e||null===(n=e.map)||void 0===n?void 0:n.call(e,function(e){return e.code}).includes(t.code)})},qo=function(e){var t,n,r=e.stateCode,o=e.userType,i=e.modules,l=e.appTenants,s=e.additionalComponent,c=(Digit.Contexts.ComponentProvider,(0,a.useLocation)()),d=Digit.UserService.getUser();if(!d||null==d||!d.access_token||null==d||!d.info)return(0,u.jsx)(a.Navigate,{to:{pathname:"/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/employee/user/login"),state:{from:c.pathname+c.search}},replace:!0});var f=null==i?void 0:i.map(function(e,t){var n,i=e.code,s=e.tenants,c=Digit.ComponentRegistryService.getComponent("".concat(i,"Module"));return c?(0,u.jsx)(a.Route,{path:"".concat(i.toLowerCase(),"/*"),element:(0,u.jsx)(c,{stateCode:r,moduleCode:i,userType:o,tenants:Xo(s,l)})},t):(0,u.jsx)(a.Route,{path:"".concat(i.toLowerCase(),"/*"),element:(0,u.jsx)(a.Navigate,{to:"/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/employee/user/error?type=notfound&module=").concat(i),replace:!0})},t)});return(0,u.jsx)("div",{className:"ground-container digit-home-ground",children:(0,u.jsxs)(a.Routes,{children:[" ",f,(0,u.jsx)(a.Route,{path:"login",element:(0,u.jsx)(a.Navigate,{to:{pathname:"/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/employee/user/login"),state:{from:c.pathname+c.search}},replace:!0})}),(0,u.jsx)(a.Route,{path:"forgot-password",element:(0,u.jsx)(zo,{})}),(0,u.jsx)(a.Route,{path:"change-password",element:(0,u.jsx)(No,{})}),(0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(Z,{userType:o,modules:i,additionalComponent:s})})]})})};function Qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zo={label:"English",value:Digit.Utils.getDefaultLanguage()};const Yo=function(){var n,o,i,l,s=Digit.Hooks.useStore.getInitData(),c=s.data,d=s.isLoading,f=(0,r.useTranslation)().t,v=(0,a.useNavigate)(),p=c||{},m=p.languages,y=p.stateInfo,g=m;g&&0!=(null===(n=g)||void 0===n?void 0:n.length)||(g=[Zo]);var h,O,S=Digit.StoreData.getCurrentLanguage(),x=(h=(0,t.useState)(S),O=2,function(e){if(Array.isArray(e))return e}(h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(h,O)||function(e,t){if(e){if("string"==typeof e)return Qo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qo(e,t):void 0}}(h,O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=x[0],w=x[1];return d?(0,u.jsx)(e.Loader,{}):(0,u.jsxs)(so,{children:[(0,u.jsxs)(e.Card,{className:"bannerCard removeBottomMargin languageSelection",children:[(0,u.jsxs)("div",{className:"bannerHeader",children:[(0,u.jsx)(b,{className:"bannerLogo",src:null==y?void 0:y.logoUrl,alt:"Digit Banner Image"}),(0,u.jsx)("p",{children:f("TENANT_TENANTS_".concat(null==y||null===(o=y.code)||void 0===o?void 0:o.toUpperCase()))})]}),(0,u.jsx)("div",{className:"language-selector",style:{justifyContent:"space-around",marginBottom:"24px",padding:"0 5%"},children:g.map(function(e,t){return(0,u.jsx)("div",{className:"language-button-container",children:(0,u.jsx)(A.CustomButton,{selected:e.value===j,text:f(e.label),onClick:function(){return function(e){w(e.value),Digit.LocalizationService.changeLanguage(e.value,y.code)}(e)}})},t)})}),(0,u.jsx)(e.SubmitBar,{style:{width:"100%"},label:f("CORE_COMMON_CONTINUE"),onSubmit:function(e){var t;v("/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/employee/user/login"))}})]}),(0,u.jsxs)("div",{className:"EmployeeLoginFooter",children:[(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(i=window)||void 0===i||null===(i=i.globalConfigs)||void 0===i||null===(l=i.getConfig)||void 0===l?void 0:l.call(i,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})," "]})]})};var Ko=[{texts:{header:"CORE_COMMON_LOGIN",submitButtonLabel:"CORE_COMMON_CONTINUE"},inputs:[{label:"CORE_SIGNUP_EMAILID",type:"text",key:"email",isMandatory:!0,populators:{name:"email",validation:{required:!0,pattern:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/},error:"ERR_EMAIL_REQUIRED"}},{isMandatory:!0,key:"check",type:"component",component:"PrivacyComponent",withoutLabel:!0,disable:!1,customProps:{module:"Sandbox"},populators:{name:"check"}}]}];function Jo(e){return Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(e)}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=Jo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ti=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".digit-home-main";return function(r){return(0,t.useEffect)(function(){var e=function(t){if("Tab"===t.key){var r=document.querySelector(n);r&&(r.setAttribute("tabindex","-1"),r.style.outline="none",r.focus()),window.removeEventListener("keydown",e)}};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[]),(0,u.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach(function(t){ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r))}};function ni(e){return ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(e)}var ri=["UserRequest"];function oi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return ii(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(ii(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ii(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,ii(d,"constructor",u),ii(u,"constructor",s),s.displayName="GeneratorFunction",ii(u,o,"GeneratorFunction"),ii(d),ii(d,o,"Generator"),ii(d,r,function(){return this}),ii(d,"toString",function(){return"[object Generator]"}),(oi=function(){return{w:i,m:f}})()}function ii(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ii=function(e,t,n,r){function i(t,n){ii(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ii(e,t,n,r)}function ai(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach(function(t){ui(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ui(e,t,n){return(t=function(e){var t=function(e){if("object"!=ni(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ni(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ni(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function di(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ci(i,r,o,a,l,"next",e)}function l(e){ci(i,r,o,a,l,"throw",e)}a(void 0)})}}function fi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var pi=function(n){var r,o,i,l=n.config,s=n.t,c=n.isDisabled,d=n.loginOTPBased,f=Digit.Hooks.useTenants(),v=(f.data,f.isLoading),p=Digit.Hooks.useStore.getInitData(),m=p.data,y=p.isLoading,g=(m||{}).stateInfo,h=fi((0,t.useState)(null),2),O=h[0],S=h[1],x=fi((0,t.useState)(null),2),j=x[0],w=x[1],_=fi((0,t.useState)(!1),2),E=_[0],C=_[1],N=(0,a.useNavigate)();(0,t.useEffect)(function(){var e,t,n,r,o,i,a,l,s,u;if(O){Digit.SessionStorage.set("citizen.userRequestObject",O);var c=null==O||null===(e=O.info)||void 0===e||null===(e=e.roles)||void 0===e?void 0:e.filter(function(e){return e.tenantId===Digit.SessionStorage.get("Employee.tenantId")});(null==O||null===(t=O.info)||void 0===t||null===(t=t.roles)||void 0===t?void 0:t.length)>0&&(O.info.roles=c),Digit.UserService.setUser(O),function(e,t){var n;if(!Digit.Utils.getMultiRootTenant()){var r=(null===(n=JSON.parse(sessionStorage.getItem("Digit.locale")))||void 0===n?void 0:n.value)||Digit.Utils.getDefaultLanguage();localStorage.setItem("Employee.tenant-id",null==e?void 0:e.tenantId),localStorage.setItem("tenant-id",null==e?void 0:e.tenantId),localStorage.setItem("citizen.userRequestObject",JSON.stringify(e)),localStorage.setItem("locale",r),localStorage.setItem("Employee.locale",r),localStorage.setItem("token",t),localStorage.setItem("Employee.token",t),localStorage.setItem("user-info",JSON.stringify(e)),localStorage.setItem("Employee.user-info",JSON.stringify(e))}}(null==O?void 0:O.info,null==O?void 0:O.access_token);var d,f,v,p,m="/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/employee");null!==(r=window)&&void 0!==r&&null!==(r=r.location)&&void 0!==r&&null!==(r=r.href)&&void 0!==r&&r.includes("from=")&&(m=decodeURIComponent(null===(d=window)||void 0===d||null===(d=d.location)||void 0===d||null===(d=d.href)||void 0===d||null===(d=d.split("from="))||void 0===d?void 0:d[1])||"/".concat(null===(f=window)||void 0===f?void 0:f.contextPath,"/employee")),null!=O&&null!==(o=O.info)&&void 0!==o&&o.roles&&(null==O||null===(i=O.info)||void 0===i||null===(i=i.roles)||void 0===i?void 0:i.length)>0&&null!=O&&null!==(a=O.info)&&void 0!==a&&null!==(a=a.roles)&&void 0!==a&&a.every(function(e){return"NATADMIN"===e.code})&&(m="/".concat(null===(v=window)||void 0===v?void 0:v.contextPath,"/employee/dss/landing/NURT_DASHBOARD")),null!=O&&null!==(l=O.info)&&void 0!==l&&l.roles&&(null==O||null===(s=O.info)||void 0===s||null===(s=s.roles)||void 0===s?void 0:s.length)>0&&null!=O&&null!==(u=O.info)&&void 0!==u&&null!==(u=u.roles)&&void 0!==u&&u.every(function(e){return"STADMIN"===e.code})&&(m="/".concat(null===(p=window)||void 0===p?void 0:p.contextPath,"/employee/dss/landing/home")),N(m,{replace:!0})}},[O]);var I=function(){var e=di(oi().m(function e(t){var n,r,o,i,a,l,u,c;return oi().w(function(e){for(;;)switch(e.p=e.n){case 0:return null!=t&&t.username&&(t.username=t.username.trim()),null!=t&&t.password&&(t.password=t.password.trim()),C(!0),(o=si(si(si({},t),U),{},{userType:"EMPLOYEE"})).tenantId=(null==o||null===(n=o.city)||void 0===n?void 0:n.code)||(null===(r=Digit)||void 0===r||null===(r=r.ULBService)||void 0===r?void 0:r.getStateId()),delete o.city,e.p=1,e.n=2,Digit.UserService.authenticate(o);case 2:i=e.v,a=i.UserRequest,l=ai(i,ri),Digit.SessionStorage.set("Employee.tenantId",null==a?void 0:a.tenantId),S(si({info:a},l)),e.n=4;break;case 3:e.p=3,c=e.v,w((null==c||null===(u=c.response)||void 0===u||null===(u=u.data)||void 0===u?void 0:u.error_description)||"ES_ERROR_USER_NOT_PERMITTED"==(null==c?void 0:c.message)&&s("ES_ERROR_USER_NOT_PERMITTED")||s("INVALID_LOGIN_CREDENTIALS")),setTimeout(P,5e3);case 4:C(!1);case 5:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),A={url:"/user-otp/v1/_send",params:{tenantId:null===(r=Digit)||void 0===r||null===(r=r.ULBService)||void 0===r?void 0:r.getStateId()},body:{},config:{enable:!1}},D=Digit.Hooks.useCustomAPIMutationHook(A),T=function(){var e=di(oi().m(function e(t){var n,r;return oi().w(function(e){for(;;)switch(e.n){case 0:return r=t.email,e.n=1,D.mutate({body:{otp:{userName:t.email,type:"login",tenantId:null===(n=Digit)||void 0===n||null===(n=n.ULBService)||void 0===n?void 0:n.getStateId(),userType:"EMPLOYEE"}},config:{enable:!0}},{onError:function(e,t){var n,r;w(null!=e&&null!==(n=e.response)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&null!==(n=n.Errors)&&void 0!==n&&n[0].code?"SANDBOX_RESEND_OTP".concat(null==e||null===(r=e.response)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.Errors)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code):"SANDBOX_RESEND_OTP_ERROR"),setTimeout(P,5e3)},onSuccess:function(){var e=di(oi().m(function e(t){var n,o;return oi().w(function(e){for(;;)switch(e.n){case 0:N("/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/employee/user/login/otp"),{state:{email:r,tenant:null===(o=Digit)||void 0===o||null===(o=o.ULBService)||void 0===o?void 0:o.getStateId()}});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),P=function(){w(null)},L=function(){var e;N("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/employee/user/forgot-password"))},R=Digit.ULBService.getStateId(),k={code:R,name:Digit.Utils.locale.getTransformedLocale("TENANT_TENANTS_".concat(R))},M=[{body:null==l?void 0:l.inputs}];"admin"===Digit.Hooks.useQueryParams().mode&&0==(null==M||null===(o=M[0])||void 0===o||null===(o=o.body)||void 0===o||null===(o=o[2])||void 0===o?void 0:o.disable)&&null==(null==M||null===(i=M[0])||void 0===i||null===(i=i.body)||void 0===i||null===(i=i[2])||void 0===i||null===(i=i.populators)||void 0===i?void 0:i.defaultValue)&&(M[0].body[2].disable=!0,M[0].body[2].isMandatory=!1,M[0].body[2].populators.defaultValue=k);var U=(0,t.useMemo)(function(){return Object.fromEntries(M[0].body.filter(function(e){var t,n;return(null==e||null===(t=e.populators)||void 0===t?void 0:t.defaultValue)&&(null==e||null===(n=e.populators)||void 0===n?void 0:n.name)}).map(function(e){return[e.populators.name,e.populators.defaultValue]}))},[]),B=function(e,t,n){var r=M[0].body.filter(function(e){return null==e?void 0:e.isMandatory}).map(function(e){return null==e?void 0:e.key}).some(function(e){var n=t[e];return null==n||""===n||!1===n});C(r)},F=function(){var t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,u.jsx)(e.FormComposerV2,{onSubmit:d?T:I,isDisabled:c||E,noBoxShadow:!0,inline:!0,submitInForm:!0,config:M,label:null==l||null===(t=l.texts)||void 0===t?void 0:t.submitButtonLabel,secondaryActionLabel:(null==l||null===(n=l.texts)||void 0===n?void 0:n.secondaryButtonLabel)+(o.includes("login-form-container")?"?":""),onSecondayActionClick:L,onFormValueChange:B,heading:null==l||null===(r=l.texts)||void 0===r?void 0:r.header,className:"".concat(a),cardSubHeaderClassName:"loginCardSubHeaderClassName",cardClassName:i,buttonClassName:"buttonClassName",defaultValues:U,children:null!=g&&g.code?(0,u.jsx)(uo,{}):(0,u.jsx)(uo,{showTenant:!1})})},G=function(e){var t,n;return(0,u.jsx)("div",{className:e,style:{backgroundColor:"unset"},children:(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(t=window)||void 0===t||null===(t=t.globalConfigs)||void 0===t||null===(n=t.getConfig)||void 0===n?void 0:n.call(t,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})})};return v||y?(0,u.jsx)(e.Loader,{page:!0,variant:"PageLoader"}):null!=l&&l.bannerImages?(0,u.jsxs)("div",{className:"login-container",children:[(0,u.jsx)(To,{bannerImages:null==l?void 0:l.bannerImages}),(0,u.jsxs)("div",{className:"login-form-container",children:[F("login-form-container","",d?"sandbox-onboarding-wrapper":""),j&&(0,u.jsx)(e.Toast,{type:"error",label:s(j),onClose:P}),G("EmployeeLoginFooter")]})]}):(0,u.jsxs)(so,{children:[(0,u.jsx)("div",{className:"employeeBackbuttonAlign",children:(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}})}),F("loginFormStyleEmployee","loginCardClassName",d?"sandbox-onboarding-wrapper":""),j&&(0,u.jsx)(e.Toast,{type:"error",label:s(j),onClose:P}),G("employee-login-home-footer")]})};pi.propTypes={loginParams:s().any},pi.defaultProps={loginParams:null};const mi=ti(pi,".login-form-container");function yi(e){return yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yi(e)}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(t){hi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hi(e,t,n){return(t=function(e){var t=function(e){if("object"!=yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Si(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Si(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const xi=function(n){var o,i=n.stateCode,l=(0,r.useTranslation)().t,s=Oi((0,t.useState)(Ao),2),c=s[0],d=s[1],f=Oi((0,t.useState)(Ko),2),v=f[0],p=(f[1],Digit.StoreData.getCurrentLanguage()),m=(null===(o=window)||void 0===o||null===(o=o.globalConfigs)||void 0===o?void 0:o.getConfig("OTP_BASED_LOGIN"))||!1,y=Po(i),g=y.data,b=y.isLoading;Digit.Services.useStore({stateCode:i,moduleCode:["privacy-policy"],language:p,modulePrefix:"digit"}).data,(0,t.useEffect)(function(){!b&&null!=g&&g.config?d(null==g?void 0:g.config):d(Ao)},[g,b]);var h=(0,t.useMemo)(function(){return c.map(function(e){var t={};for(var n in e.texts)t[n]=l(e.texts[n]);return bi(bi({},e),{},{texts:t})},[c])}),O=(0,t.useMemo)(function(){return v.map(function(e){var t={};for(var n in e.texts)t[n]=l(e.texts[n]);return bi(bi({},e),{},{texts:t})},[v])});return b?(0,u.jsx)(e.Loader,{page:!1,variant:"PageLoader"}):(0,u.jsxs)(a.Routes,{children:[" ",(0,u.jsx)(a.Route,{path:"/",element:m?(0,u.jsx)(mi,{config:O[0],t:l,loginOTPBased:m}):(0,u.jsx)(mi,{config:h[0],t:l})})]})};var ji=[{texts:{header:"CORE_COMMON_SIGN_UP",submitButtonLabel:"CORE_COMMON_SIGN_UP_BUTTON"},inputs:[{label:"CORE_SIGNUP_EMAILID",type:"text",key:"email",isMandatory:!0,populators:{name:"email",validation:{required:!0,pattern:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,maxLength:64},error:"ERR_EMAIL_REQUIRED"}},{label:"CORE_SIGNUP_ACCOUNT_NAME",type:"text",key:"accountName",isMandatory:!0,populators:{name:"accountName",validation:{required:!0,pattern:/^[A-Za-z]+( [A-Za-z]+)*$/,maxLength:50},error:"ERR_ACCOUNT_NAME_REQUIRED"},infoMessage:"SANDBOX_SIGNUP_ACCOUNT_NAME_TOOLTIP"},{isMandatory:!1,key:"check",type:"component",component:"PrivacyComponent",withoutLabel:!0,disable:!1,customProps:{module:"SandboxSignUp"},populators:{name:"check"}}]}];function wi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return _i(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_i(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_i(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,_i(d,"constructor",u),_i(u,"constructor",s),s.displayName="GeneratorFunction",_i(u,o,"GeneratorFunction"),_i(d),_i(d,o,"Generator"),_i(d,r,function(){return this}),_i(d,"toString",function(){return"[object Generator]"}),(wi=function(){return{w:i,m:f}})()}function _i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_i=function(e,t,n,r){function i(t,n){_i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_i(e,t,n,r)}function Ei(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ci(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ei(i,r,o,a,l,"next",e)}function l(e){Ei(i,r,o,a,l,"throw",e)}a(void 0)})}}function Ni(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ii(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ii(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ai=function(n){var r,o,i,l,s,c,d,f=n.config,v=n.t,p=n.isDisabled,m=Digit.Hooks.useTenants(),y=(m.data,m.isLoading),g=Digit.Hooks.useStore.getInitData(),b=g.data,h=g.isLoading,O=((b||{}).stateInfo,Ni((0,t.useState)(null),2)),S=O[0],x=O[1],j=Ni((0,t.useState)(!1),2),w=j[0],_=j[1],E=(0,a.useNavigate)(),C=Digit.Hooks.useCustomAPIMutationHook({url:"/tenant-management/tenant/_create",params:{},body:{},config:{enable:!1}}),N=function(){var e=Ci(wi().m(function e(t){return wi().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,C.mutate({body:{tenant:{name:t.accountName,email:t.email}},config:{enable:!0}},{onError:function(e,t){var n,r;x({key:"error",label:null!=e&&null!==(n=e.response)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&null!==(n=n.Errors)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.code?"SANDBOX_SIGNUP_".concat(null==e||null===(r=e.response)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.Errors)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code):"SANDBOX_SIGNUP_ERROR"})},onSuccess:function(){var e=Ci(wi().m(function e(t){var n,r,o;return wi().w(function(e){for(;;)switch(e.n){case 0:E({pathname:"/".concat(null===(n=window)||void 0===n?void 0:n.globalPath,"/user/otp"),state:{email:null==t||null===(r=t.Tenants[0])||void 0===r?void 0:r.email,tenant:null==t||null===(o=t.Tenants[0])||void 0===o?void 0:o.code}});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),I=[{body:null==f?void 0:f.inputs}];return"admin"===Digit.Hooks.useQueryParams().mode&&0==(null==I||null===(r=I[0])||void 0===r||null===(r=r.body)||void 0===r||null===(r=r[2])||void 0===r?void 0:r.disable)&&null==(null==I||null===(o=I[0])||void 0===o||null===(o=o.body)||void 0===o||null===(o=o[2])||void 0===o||null===(o=o.populators)||void 0===o?void 0:o.defaultValue)&&(I[0].body[2].disable=!0,I[0].body[2].isMandatory=!1,I[0].body[2].populators.defaultValue=defaultValue),y||h?(0,u.jsx)(e.Loader,{}):(0,u.jsxs)(so,{children:[(0,u.jsx)("div",{className:"employeeBackbuttonAlign",children:(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}})}),(0,u.jsx)(e.FormComposerV2,{onSubmit:N,isDisabled:p||w,noBoxShadow:!0,inline:!0,submitInForm:!0,config:I,label:null==f||null===(i=f.texts)||void 0===i?void 0:i.submitButtonLabel,secondaryActionLabel:null==f||null===(l=f.texts)||void 0===l?void 0:l.secondaryButtonLabel,onFormValueChange:function(e,t,n){var r=I[0].body.map(function(e){return e.key}).some(function(e){var n=t[e];return null==n||""===n||"check"===e&&!1===n||"captcha"===e&&!1===n});_(r)},heading:null==f||null===(s=f.texts)||void 0===s?void 0:s.header,className:"sandbox-signup-form",cardSubHeaderClassName:"signupCardSubHeaderClassName",cardClassName:"signupCardClassName sandbox-onboarding-wrapper",buttonClassName:"buttonClassName",children:(0,u.jsx)(uo,{showTenant:!1})}),S&&(0,u.jsx)(e.Toast,{type:"error",label:v(null==S?void 0:S.label),onClose:function(){x(null)}}),(0,u.jsx)("div",{className:"employee-login-home-footer",style:{backgroundColor:"unset"},children:(0,u.jsx)("img",{alt:"Powered by DIGIT",src:null===(c=window)||void 0===c||null===(c=c.globalConfigs)||void 0===c||null===(d=c.getConfig)||void 0===d?void 0:d.call(c,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})})]})};Ai.propTypes={loginParams:s().any},Ai.defaultProps={loginParams:null};const Di=Ai;function Ti(e){return Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ti(e)}function Pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach(function(t){Ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ri(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ti(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ti(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Mi=function(e){var n,o,i=e.stateCode,l=(0,r.useTranslation)().t,s=(n=(0,t.useState)(ji),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return ki(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ki(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],d=s[1],f=Digit.StoreData.getCurrentLanguage(),v=(Digit.Services.useStore({stateCode:i,moduleCode:["privacy-policy"],language:f,modulePrefix:"digit"}).data,Digit.Hooks.useCommonMDMS(i,"commonUiConfig",["SignUpConfig"],{select:function(e){var t;return{config:null==e||null===(t=e.commonUiConfig)||void 0===t?void 0:t.SignUpConfig}},retry:!1})),p=v.data,m=v.isLoading;(0,t.useEffect)(function(){!m&&null!=p&&p.config?d(p.config):d(ji)},[p,m]);var y=(0,t.useMemo)(function(){return c.map(function(e){var t={};for(var n in e.texts)t[n]=l(e.texts[n]);return Li(Li({},e),{},{texts:t})})},[c]);return(0,u.jsx)(a.Routes,{children:(0,u.jsx)(a.Route,{path:"",element:(0,u.jsx)(Di,{config:y[0],t:l})})})};function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}var Bi=["UserRequest"];function Fi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Gi(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Gi(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Gi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,Gi(d,"constructor",u),Gi(u,"constructor",s),s.displayName="GeneratorFunction",Gi(u,o,"GeneratorFunction"),Gi(d),Gi(d,o,"Generator"),Gi(d,r,function(){return this}),Gi(d,"toString",function(){return"[object Generator]"}),(Fi=function(){return{w:i,m:f}})()}function Gi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Gi=function(e,t,n,r){function i(t,n){Gi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Gi(e,t,n,r)}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){Wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wi(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ui(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xi(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Zi=function(n){var o,i,l,s=n.isLogin,c=void 0!==s&&s,d=(0,r.useTranslation)().t,f=(0,a.useNavigate)(),v=(0,a.useLocation)(),p=qi((0,t.useState)(null),2),m=p[0],y=p[1],g=qi((0,t.useState)(!1),2),h=g[0],O=g[1],S=qi((0,t.useState)(null),2),x=S[0],j=S[1],w=qi((0,t.useState)((null==v||null===(o=v.state)||void 0===o?void 0:o.data)||{}),2),_=(w[0],w[1],qi((0,t.useState)(!1),2)),E=(_[0],_[1],v.state||{}),C=E.email,N=E.tenant,I=Digit.Hooks.useCustomMDMS(N,"SandBoxLanding",[{name:"LandingPageRoles"}],{enabled:!0,staleTime:0,cacheTime:0,select:function(e){var t;return null==e||null===(t=e.SandBoxLanding)||void 0===t?void 0:t.LandingPageRoles}}).data,D=null==I?void 0:I[0].url,T=[{body:[{type:"component",component:"OtpComponent",key:"OtpComponent",withoutLabel:!0,isMandatory:!1,customProps:{email:C,tenant:N},populators:{required:!0}}]}],P=[{texts:{header:d("SANDBOX_OTP_VERIFICATION"),submitButtonLabel:"CORE_COMMON_SUBMIT"}}],L=function(){y(null)};(0,t.useEffect)(function(){var e,t,n;if(x){Digit.SessionStorage.set("citizen.userRequestObject",x);var r=null==x||null===(e=x.info)||void 0===e||null===(e=e.roles)||void 0===e?void 0:e.filter(function(e){return e.tenantId===Digit.SessionStorage.get("Employee.tenantId")});(null==x||null===(t=x.info)||void 0===t||null===(t=t.roles)||void 0===t?void 0:t.length)>0&&(x.info.roles=r),Digit.UserService.setUser(x),function(e,t){var n;if(!Digit.Utils.getMultiRootTenant()){var r=(null===(n=JSON.parse(sessionStorage.getItem("Digit.locale")))||void 0===n?void 0:n.value)||Digit.Utils.getDefaultLanguage();localStorage.setItem("Employee.tenant-id",null==e?void 0:e.tenantId),localStorage.setItem("tenant-id",null==e?void 0:e.tenantId),localStorage.setItem("citizen.userRequestObject",JSON.stringify(e)),localStorage.setItem("locale",r),localStorage.setItem("Employee.locale",r),localStorage.setItem("token",t),localStorage.setItem("Employee.token",t),localStorage.setItem("user-info",JSON.stringify(e)),localStorage.setItem("Employee.user-info",JSON.stringify(e))}}(null==x?void 0:x.info,null==x?void 0:x.access_token);var o="/".concat(null===(n=window)||void 0===n?void 0:n.globalPath,"/user/setup"),i=function(e,t,n,r){var o,i,a,l="SUPERUSER"===(null==t||null===(o=t.info)||void 0===o||null===(o=o.roles)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.code),s=null===(i=window)||void 0===i?void 0:i.contextPath;switch(!0){case"/sandbox-ui/user/otp"===e&&l:return"/".concat(s,"/employee/sandbox/landing");case l&&(null==n||null===(a=n[0])||void 0===a||null===(a=a.rolesForLandingPage)||void 0===a?void 0:a.includes("SUPERUSER")):return"/".concat(s).concat(r);default:return"/".concat(s,"/employee")}}(v.pathname,x,I,D);return c?void f(i):void f({pathname:o},{state:{tenant:N}})}},[x]);var R=function(){var e,t=(e=Fi().m(function e(t){var n,r,o,i,a,l,s;return Fi().w(function(e){for(;;)switch(e.p=e.n){case 0:return r={username:C,password:null==t||null===(n=t.OtpComponent)||void 0===n?void 0:n.otp,tenantId:N,userType:"EMPLOYEE"},e.p=1,e.n=2,Digit.UserService.authenticate(r);case 2:o=e.v,i=o.UserRequest,a=zi(o,Bi),Digit.SessionStorage.set("Employee.tenantId",null==i?void 0:i.tenantId),j(Hi({info:i},a)),e.n=4;break;case 3:e.p=3,s=e.v,y((null==s||null===(l=s.response)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.error_description)||"ES_ERROR_USER_NOT_PERMITTED"==(null==s?void 0:s.message)&&d("ES_ERROR_USER_NOT_PERMITTED")||d("INVALID_LOGIN_CREDENTIALS")),setTimeout(L,5e3);case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Xi(i,r,o,a,l,"next",e)}function l(e){Xi(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return(0,u.jsxs)(so,{children:[(0,u.jsxs)("div",{className:"employeeBackbuttonAlign",children:[(0,u.jsx)(e.BackLink,{onClick:function(){return f(-1)}})," "]}),(0,u.jsx)(A.FormComposerV2,{onSubmit:R,noBoxShadow:!0,inline:!0,submitInForm:!0,onFormValueChange:function(e,t){var n,r=t.OtpComponent;6===(null==r||null===(n=r.otp)||void 0===n?void 0:n.length)?O(!0):O(!1)},isDisabled:!h,config:T,label:P[0].texts.submitButtonLabel,heading:P[0].texts.header,headingStyle:{textAlign:"center"},cardStyle:{maxWidth:"408px",margin:"auto"},className:"sandbox-onboarding-wrapper",children:(0,u.jsx)(uo,{showTenant:!1})}),m&&(0,u.jsx)(e.Toast,{type:"error",label:d(m),onClose:L}),(0,u.jsxs)("div",{className:"EmployeeLoginFooter",children:[(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(i=window)||void 0===i||null===(i=i.globalConfigs)||void 0===i||null===(l=i.getConfig)||void 0===l?void 0:l.call(i,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})," "]})]})};function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ki=function(){var n,o,i,l,s,c,d=(0,r.useTranslation)().t,f=((0,a.useLocation)().state||{}).tenant,v=(0,t.useRef)(null),p=null===(n=Digit.SessionStorage.get("User"))||void 0===n||null===(n=n.info)||void 0===n?void 0:n.roles,m=(s=(0,t.useState)(!0),c=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(s,c)||function(e,t){if(e){if("string"==typeof e)return Yi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(e,t):void 0}}(s,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=m[0],g=m[1],h=Digit.Hooks.useCustomMDMS(f,"SandBoxLanding",[{name:"LandingPageRoles"}],{enabled:!0,staleTime:0,gcTime:0,select:function(e){var t;return null==e||null===(t=e.SandBoxLanding)||void 0===t?void 0:t.LandingPageRoles}}).data;(0,t.useEffect)(function(){null!=h&&h[0].url&&g(!1)},[h]);var O=null==h?void 0:h[0].url;return(0,u.jsxs)(so,{children:[(0,u.jsx)("div",{className:"employeeBackbuttonAlign",children:(0,u.jsx)(e.BackLink,{onClick:function(){return window.history.back()}})}),(0,u.jsxs)(e.Card,{className:"card-sandbox",children:[(0,u.jsx)(uo,{showTenant:!1}),(0,u.jsx)("div",{className:"sandbox-success-signup",children:(0,u.jsx)(e.SVG.TickMark,{fill:"#fff",height:30,width:70})}),(0,u.jsx)(e.CardHeader,{className:"cardHeader-sandbox",styles:{color:"#00703c"},children:d("SANDBOX_HEADER")}),(0,u.jsx)(e.CardText,{className:"cardText-sandbox",children:d("SAMDBOX_URL_SUB")}),(0,u.jsxs)(e.CardLabel,{children:[" ",d("SANDBOX_URL")," "]}),(0,u.jsxs)("div",{className:"sandbox-url-wrapper",children:[(0,u.jsx)(e.TextInput,{inputRef:v,className:"urlInputText",onChange:function(){},nonEditable:!0,value:"".concat(window.location.host,"/").concat(null===(o=window)||void 0===o?void 0:o.globalPath,"/").concat(f,"/employee")}),(0,u.jsx)(e.Button,{className:"copyButton",variation:"secondary",onClick:function(){navigator.clipboard.writeText(v.current.value)},label:d("COPY_URL")})]}),(0,u.jsx)("div",{className:"sandbox-url-footer",children:d("SANDBOX_URL_FOOT")}),(0,u.jsx)(e.Button,{isDisabled:y,onClick:function(){var e,t;!function(e,t){var n;return"SUPERUSER"===(null==e||null===(n=e[0])||void 0===n?void 0:n.code)&&t.some(function(e){return e.rolesForLandingPage.includes("SUPERUSER")})}(p,h)?window.location.href="/".concat(null===(t=window)||void 0===t?void 0:t.globalPath,"/").concat(f,"/employee"):window.location.href="/".concat(null===(e=window)||void 0===e?void 0:e.globalPath,"/").concat(f).concat(O)},label:d("SIGN_IN")})]}),(0,u.jsx)("div",{className:"EmployeeLoginFooter",children:(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(i=window)||void 0===i||null===(i=i.globalConfigs)||void 0===i||null===(l=i.getConfig)||void 0===l?void 0:l.call(i,"DIGIT_FOOTER_BW"),style:{cursor:"pointer"},onClick:function(){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()}})})]})};var Ji=["user/landing","user/profile","user/error","user/productPage"];const $i=ti(function(n){var o,i,l,s,c=n.stateInfo,d=n.userDetails,f=n.CITIZEN,v=n.cityDetails,p=n.mobileView,m=n.handleUserDropdownSelection,y=n.logoUrl,g=n.logoUrlWhite,h=n.DSO,O=n.stateCode,x=n.modules,j=n.appTenants,w=(n.sourceUrl,n.pathname,n.initData),_=n.noTopBar,E=void 0!==_&&_,C=(0,a.useNavigate)(),N=(0,r.useTranslation)().t,A=(0,a.useLocation)(),D=null==A||null===(o=A.pathname)||void 0===o?void 0:o.includes("language-selection"),T=Ji.some(function(e){var t;return null==A||null===(t=A.pathname)||void 0===t?void 0:t.includes(e)});(0,t.useEffect)(function(){Digit.UserService.setType("employee")},[]);var P=null==w||null===(i=w.modules)||void 0===i||null===(i=i.filter(function(e){return null==e?void 0:e.additionalComponent}))||void 0===i?void 0:i.map(function(e){return null==e?void 0:e.additionalComponent});return(0,u.jsx)("div",{className:"employee",children:(0,u.jsxs)(a.Routes,{children:[" ",(0,u.jsx)(a.Route,{path:"user/*",element:(0,u.jsxs)(u.Fragment,{children:[T&&(0,u.jsx)(nt,{t:N,stateInfo:c,userDetails:d,CITIZEN:f,cityDetails:v,mobileView:p,handleUserDropdownSelection:m,logoUrl:y,logoUrlWhite:g,showSidebar:!!T,showLanguageChange:!D}),(0,u.jsx)("div",{className:T?"grounded-container":"loginContainer",style:T?{padding:0,paddingTop:"0",marginLeft:"0"}:{"--banner-url":"url(".concat(null==c?void 0:c.bannerUrl,")"),padding:"0px"},children:(0,u.jsxs)(a.Routes,{children:[" ",(0,u.jsx)(a.Route,{path:"login",element:(0,u.jsx)(xi,{stateCode:O})})," ",(0,u.jsx)(a.Route,{path:"login/otp",element:(0,u.jsx)(Zi,{isLogin:!0})})," ",(0,u.jsx)(a.Route,{path:"forgot-password",element:(0,u.jsx)(zo,{stateCode:O})})," ",(0,u.jsx)(a.Route,{path:"change-password",element:(0,u.jsx)(No,{})})," ",(0,u.jsx)(a.Route,{path:"profile",element:(0,u.jsx)(e.PrivateRoute,{component:function(){return(0,u.jsx)(Ft,{stateCode:O,userType:"employee",cityDetails:v})}})}),(0,u.jsx)(a.Route,{path:"error",element:(0,u.jsx)(S,{initData:w,goToHome:function(){var e,t,n;C("/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/").concat(null===(t=Digit)||void 0===t||null===(t=t.UserService)||void 0===t||null===(n=t.getType)||void 0===n?void 0:n.call(t)))}})}),(0,u.jsx)(a.Route,{path:"language-selection",element:(0,u.jsx)(Yo,{})})," ",(0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(a.Navigate,{to:"language-selection",replace:!0})})," "]})})]})}),(0,u.jsx)(a.Route,{path:"*",element:(0,u.jsxs)(u.Fragment,{children:[!E&&(0,u.jsx)(nt,{t:N,stateInfo:c,userDetails:d,CITIZEN:f,cityDetails:v,mobileView:p,handleUserDropdownSelection:m,logoUrl:y,logoUrlWhite:g,modules:x}),(0,u.jsxs)("div",{className:E?"":"main ".concat(h?"m-auto":""," digit-home-main"),children:[(0,u.jsx)("div",{className:"employee-app-wrapper digit-home-app-wrapper",children:(0,u.jsx)(I,{initData:w,children:(0,u.jsx)(qo,{stateCode:O,userType:"employee",modules:x,appTenants:j,additionalComponent:P})})}),(0,u.jsx)("div",{className:"employee-home-footer",children:(0,u.jsx)(b,{alt:"Powered by DIGIT",src:null===(l=window)||void 0===l||null===(l=l.globalConfigs)||void 0===l||null===(s=l.getConfig)||void 0===s?void 0:s.call(l,"DIGIT_FOOTER"),style:{height:"1.1em",cursor:"pointer"},onClick:function(){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()}})})]})]})}),(0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(a.Navigate,{to:"user/language-selection",replace:!0})})]})})},".digit-home-main"),ea=function(t){(0,a.useLocation)().state;var n=(0,r.useTranslation)().t,o=(t.stateInfo,(0,a.useNavigate)()),i={imgUrl:"https://s3.ap-south-1.amazonaws.com/egov-qa-assets/error-image.png",infoHeader:"WRONG_TENANT_SIGN_UP",infoMessage:"WRONG_TENANT_SIGN_UP_MESSAGE",buttonInfo:"WRONG_TENANT_SIGN_UP_BUTTON",action:function(){o("/".concat(window.globalPath,"/"))}};return(0,u.jsx)(so,{children:(0,u.jsxs)(e.Card,{className:"digit-employee-card customError",children:[(0,u.jsx)(uo,{showTenant:!1}),(0,u.jsx)(e.CardHeader,{className:"center",children:n(i.infoHeader)}),(0,u.jsx)(e.CardText,{className:"center",children:n(i.infoMessage)}),(0,u.jsx)(e.Button,{className:"customErrorButton",label:n(null==i?void 0:i.buttonInfo),variation:"primary",isSuffix:!0,onClick:function(e){e.preventDefault(),null==i||i.action()}})]})})};function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const na=function(){var e,n,o=(e=(0,t.useState)(0),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||function(e,t){if(e){if("string"==typeof e)return ta(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ta(e,t):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],s=(0,a.useNavigate)(),c=(0,a.useLocation)(),d=(0,r.useTranslation)().t,f=(c.state||{}).tenant,v=["SANDBOX_GUIDE_SETUP_ACCOUNT","SANDBOX_GUIDE_DEFAULT_MASTER_DATA","SANDBOX_GUIDE_CONFIGURING_COMPLAINTS","SANDBOX_GUIDE_CONFIGURING_EMPLOYEE_MANAGEMENT","SANDBOX_GUIDE_SETTING_UP_CITIZEN_PORTAL","SANDBOX_GUIDE_SETTING_UP_EMPLOYEE_PORTAL","SANDBOX_GUIDE_LOADING_CONFIGURATION_INTERFACE","SANDBOX_GUIDE_CREATING_DASHBOARD","SANDBOX_GUIDE_ALL_SETUP_DONE"];return(0,t.useEffect)(function(){var e,t;return i<v.length?e=setInterval(function(){l(function(e){return e<v.length-1?e+1:e})},2e3):i===v.length&&(t=setTimeout(function(){var e,t="undefined"!=typeof window?null===(e=window)||void 0===e?void 0:e.globalPath:"";s({pathname:"/".concat(t,"/user/url"),state:{tenant:f}})},1e3)),function(){e&&clearInterval(e),t&&clearTimeout(t)}},[i,v.length,s,f]),(0,u.jsxs)("div",{className:"sandbox-loader-screen",children:[(0,u.jsx)("div",{className:"sandbox-loader"}),(0,u.jsx)("ul",{className:"sandbox-installation-steps",children:v.map(function(e,t){return(0,u.jsxs)("li",{className:"sandbox-step ".concat(t<i?"sandbox-visible":""),children:[(0,u.jsx)("span",{className:"sandbox-step-text",children:d(e)}),t<i&&(0,u.jsx)(M.CheckCircle,{fill:"#00703C"})]},t)})})]})};function ra(e){return ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ra(e)}function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach(function(t){aa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aa(e,t,n){return(t=function(e){var t=function(e){if("object"!=ra(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ra(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var la=function(e){var n,r,o,i,l,s=e.stateCode,c=e.modules,d=e.appTenants,f=e.logoUrl,v=e.logoUrlWhite,p=e.initData,m=e.defaultLanding,y=void 0===m?"citizen":m,g=e.allowedUserTypes,b=void 0===g?["citizen","employee"]:g,h=((0,a.useNavigate)(),(0,a.useLocation)().pathname),O=window.innerWidth,S=Digit.ULBService.getCurrentUlb(),x=Digit.UserService.getUser(),j=(Digit.Hooks.useStore.getInitData().data||{}).stateInfo,w=Digit.UserService.hasAccess(["FSM_DSO"]),_="CITIZEN"===(null==x||null===(n=x.info)||void 0===n?void 0:n.type)||!window.location.pathname.split("/").includes("employee");window.location.pathname.split("/").includes("employee")&&(_=!1),(0,t.useEffect)(function(){var e,t,n;null!=h&&h.includes("application-details")||(null!=h&&h.includes("inbox")||Digit.SessionStorage.del("fsm/inbox/searchParams"),null!=h&&h.includes("search")&&Digit.SessionStorage.del("fsm/search/searchParams")),null!=h&&h.includes("dss")||Digit.SessionStorage.del("DSS_FILTERS"),(null==h?void 0:h.toString())==="/".concat(null===(e=window)||void 0===e?void 0:e.contextPath,"/employee")&&(Digit.SessionStorage.del("SEARCH_APPLICATION_DETAIL"),Digit.SessionStorage.del("WS_EDIT_APPLICATION_DETAILS")),(null==h?void 0:h.toString())!=="/".concat(null===(t=window)||void 0===t?void 0:t.contextPath,"/citizen")&&(null==h?void 0:h.toString())!=="/".concat(null===(n=window)||void 0===n?void 0:n.contextPath,"/employee")||Digit.SessionStorage.del("WS_DISCONNECTION")},[h]);var E={stateInfo:j,userDetails:x,CITIZEN:_,cityDetails:S,mobileView:O<=640,handleUserDropdownSelection:function(e){e.func()},logoUrl:f,logoUrlWhite:v,DSO:w,stateCode:s,modules:c,appTenants:d,sourceUrl:"".concat(window.location.origin,"/citizen"),pathname:h,initData:p};return(0,u.jsxs)(a.Routes,{children:[(null==b?void 0:b.includes("employee"))&&(0,u.jsx)(a.Route,{path:"/".concat(null===(r=window)||void 0===r?void 0:r.contextPath,"/employee/*"),element:(0,u.jsx)($i,ia({},E))}),(null==b?void 0:b.includes("citizen"))&&(0,u.jsx)(a.Route,{path:"/".concat(null===(o=window)||void 0===o?void 0:o.contextPath,"/citizen/*"),element:(0,u.jsx)(lo,ia({},E))}),(null==b?void 0:b.includes("employee"))&&(0,u.jsx)(a.Route,{path:"/".concat(null===(i=window)||void 0===i?void 0:i.contextPath,"/no-top-bar/employee"),element:(0,u.jsx)($i,ia(ia({},E),{},{noTopBar:!0}))}),(0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(a.Navigate,{to:"/".concat(null===(l=window)||void 0===l?void 0:l.contextPath,"/").concat(y)})})]})},sa=function(e){var t,n,r,o,i,l,s,c,d,f,v=e.stateCode,p=e.modules,m=e.appTenants,y=e.logoUrl,g=e.logoUrlWhite,b=e.initData,h=e.defaultLanding,O=void 0===h?"citizen":h,S=e.allowedUserTypes,x=(Digit.Hooks.useStore.getInitData().data||{}).stateInfo,j=["user/error"].some(function(e){var t;return null===(t=location)||void 0===t||null===(t=t.pathname)||void 0===t?void 0:t.includes(e)}),w=Digit.UserService.getUser(),_="CITIZEN"===(null==w||null===(t=w.info)||void 0===t?void 0:t.type)||!window.location.pathname.split("/").includes("employee"),E=window.innerWidth<=640;return(0,u.jsx)("div",{className:j?"grounded-container":"loginContainer",style:j?{padding:0,paddingTop:_?"0":E&&!_?"3rem":"80px",marginLeft:_||E?"0":"40px"}:{"--banner-url":"url(".concat(null==x?void 0:x.bannerUrl,")"),padding:"0px"},children:(0,u.jsxs)(a.Routes,{children:[(0,u.jsx)(a.Route,{path:"/".concat(null===(n=window)||void 0===n?void 0:n.globalPath,"/user/invalid-url"),element:(0,u.jsx)(ea,{})}),(0,u.jsx)(a.Route,{path:"/".concat(null===(r=window)||void 0===r?void 0:r.globalPath,"/user/sign-up"),element:(0,u.jsx)(Mi,{stateCode:v})}),(0,u.jsx)(a.Route,{path:"/".concat(null===(o=window)||void 0===o?void 0:o.globalPath,"/user/otp"),element:(0,u.jsx)(Zi,{})}),(0,u.jsx)(a.Route,{path:"/".concat(null===(i=window)||void 0===i?void 0:i.globalPath,"/user/setup"),element:(0,u.jsx)(na,{})}),(0,u.jsx)(a.Route,{path:"/".concat(null===(l=window)||void 0===l?void 0:l.globalPath,"/user/url"),element:(0,u.jsx)(Ki,{})}),(null===(s=window)||void 0===s?void 0:s.globalPath)!==(null===(c=window)||void 0===c?void 0:c.contextPath)&&(0,u.jsx)(a.Route,{path:"/".concat(null===(d=window)||void 0===d?void 0:d.contextPath,"/*"),element:(0,u.jsx)(la,{stateCode:v,modules:p,appTenants:m,logoUrl:y,logoUrlWhite:g,initData:b,defaultLanding:O,allowedUserTypes:S})}),(0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(a.Navigate,{to:"/".concat(null===(f=window)||void 0===f?void 0:f.globalPath,"/user/sign-up")})})]})})},ua=f(1954),ca=f(2247);function da(e){return da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},da(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(t){pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pa(e,t,n){return(t=function(e){var t=function(e){if("object"!=da(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=da(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==da(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ma(e){return ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ma(e)}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ga(e,t,n){return(t=function(e){var t=function(e){if("object"!=ma(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ma(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ma(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ba=[f.n(ca)()],ha=(0,ua.compose)(ua.applyMiddleware.apply(void 0,ba));const Oa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ua.createStore)(function(e,t){return(0,ua.combineReducers)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(t){ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({common:(n=e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0;return"LANGUAGE_SELECT"===t.type?va(va({},e),{},{selectedLanguage:t.payload}):e})},t));var n}(e,t),ha)};var Sa=["onSelect","formData","control","formState"];function xa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ja(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ja(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const wa=function(o){var i=o.onSelect,a=(o.formData,o.control,o.formState,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,Sa)),l=(0,r.useTranslation)().t,s=Digit.ULBService.getCurrentTenantId(),c=xa((0,t.useState)(!1),2),d=c[0],f=c[1],v=xa((0,t.useState)(!1),2),p=v[0],m=v[1],y=Digit.Utils.getConfigModuleName(),g=Digit.Hooks.useCustomMDMS(s,y,[{name:"PrivacyPolicy"}],{select:function(e){var t;return null==e||null===(t=e[y])||void 0===t?void 0:t.PrivacyPolicy.find(function(e){var t;return e.module===(null==a||null===(t=a.props)||void 0===t?void 0:t.module)})}}).data;return(0,t.useEffect)(function(){i("check",d)},[d]),(0,u.jsxs)(n().Fragment,{children:[(0,u.jsxs)("div",{className:"digit-privacy-checkbox",children:[(0,u.jsx)(e.CheckBox,{label:l("ES_BY_CLICKING"),checked:d,onChange:function(e){f(e.target.checked)},id:"privacy-component-check"}),(0,u.jsx)(e.Button,{label:l("ES_PRIVACY_POLICY"),variation:"link",size:"medium",onClick:function(){m(!0)},style:{marginBottom:"1.18rem",paddingLeft:"0.2rem"}})]}),p&&(0,u.jsxs)(e.PopUp,{type:"default",className:"privacy-popUpClass",footerclassName:"popUpFooter",heading:l(null==g?void 0:g.header),onOverlayClick:function(){m(!1)},footerChildren:[(0,u.jsx)(e.Button,{type:"button",size:"large",variation:"secondary",label:l("DIGIT_I_DO_NOT_ACCEPT"),onClick:function(){f(!1),m(!1)}}),(0,u.jsx)(e.Button,{type:"button",size:"large",variation:"primary",label:l("DIGIT_I_ACCEPT"),className:"accept-class",onClick:function(){f(!0),m(!1)}})],sortFooterChildren:!0,onClose:function(){m(!1)},children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"privacy-table",children:l("DIGIT_TABLE_OF_CONTENTS")}),(0,u.jsx)("ul",{children:null==g?void 0:g.contents.map(function(t,n){return(0,u.jsxs)("li",{style:{display:"flex",alignItems:"center"},children:[(0,u.jsxs)("span",{style:{marginRight:"0.5rem"},children:[n+1,". "]}),(0,u.jsx)(e.Button,{label:l(t.header),variation:"link",size:"medium",onClick:function(e){var n,r;e.preventDefault(),n=null==t?void 0:t.header,(r=document.getElementById(n))&&r.scrollIntoView({behavior:"smooth"})},style:{justifyContent:"flex-start"}})]},n)})})]}),null==g?void 0:g.contents.map(function(e,t){return(0,u.jsxs)("div",{id:null==e?void 0:e.header,children:[(0,u.jsx)("div",{style:{fontWeight:"bold",paddingLeft:null!=e&&e.isSpaceRequired?"1rem":"0"},children:l(e.header)}),e.descriptions.map(function(e,t){return(0,u.jsxs)("div",{style:{paddingLeft:e.isSpaceRequired?"1rem":"0",marginBottom:"0.5rem"},children:[(0,u.jsxs)("div",{style:{fontWeight:null!=e&&e.isBold?700:400,display:"flex",alignItems:"center"},children:["points"===e.type&&(0,u.jsx)("span",{style:{marginRight:"0.5rem",listStyleType:"disc"},children:"•"}),"step"===e.type&&(0,u.jsxs)("span",{style:{marginRight:"0.5rem",listStyleType:"decimal"},children:[t+1,". "]}),l(e.text)]}),(null==e?void 0:e.subDescriptions)&&(null==e?void 0:e.subDescriptions.length)>0&&(0,u.jsx)("div",{className:"policy-subdescription",children:e.subDescriptions.map(function(e,t){return(0,u.jsxs)("div",{className:"policy-subdescription-points",children:["points"===e.type&&(0,u.jsx)("span",{style:{marginRight:"0.5rem",listStyleType:"disc",paddingLeft:"1rem"},children:"•"}),"step"===e.type&&(0,u.jsxs)("span",{style:{marginRight:"0.5rem",listStyleType:"decimal",paddingLeft:"1rem"},children:[t+1,". "]}),null===e.type&&(0,u.jsx)("span",{style:{marginRight:"0.5rem",paddingLeft:"1rem"},children:" "}),l(e.text)]},t)})})]},t)})]},t)})]})]})};function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}var Ea=["onSelect","formData","control","formState"];function Ca(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Na(u,"_invoke",function(n,r,o){var i,l,s,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function v(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],v=f.p,p=i[2];n>3?(o=p===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=n<2&&v<i[1])?(l=0,f.v=r,f.n=i[1]):v<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,p),l=c,s=p;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Na(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Na(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,Na(d,"constructor",u),Na(u,"constructor",s),s.displayName="GeneratorFunction",Na(u,o,"GeneratorFunction"),Na(d),Na(d,o,"Generator"),Na(d,r,function(){return this}),Na(d,"toString",function(){return"[object Generator]"}),(Ca=function(){return{w:i,m:f}})()}function Na(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Na=function(e,t,n,r){function i(t,n){Na(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Na(e,t,n,r)}function Ia(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Aa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ia(i,r,o,a,l,"next",e)}function l(e){Ia(i,r,o,a,l,"throw",e)}a(void 0)})}}function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach(function(t){Pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pa(e,t,n){return(t=function(e){var t=function(e){if("object"!=_a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function La(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ra(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ra(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ka(e){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(e)}function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(t){Ba(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=ka(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ka(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ga(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ga(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Va=function(t){var n,o,l,s=t.stateCode,c=t.enabledModules,d=t.defaultLanding,f=t.allowedUserTypes,v=Digit.Hooks.useInitStore(s,c),p=v.isLoading,m=v.data,y=void 0===m?{}:m;if(p)return(0,u.jsx)(e.Loader,{page:!0,variant:"PageLoader"});var g=Oa(y)||{};return(0,r.getI18n)(),Digit.ComponentRegistryService.getComponent("PrivacyComponent")||Digit.ComponentRegistryService.setComponent("PrivacyComponent",wa),(0,u.jsx)(i.Provider,{store:g,children:(0,u.jsx)(a.BrowserRouter,{children:(0,u.jsx)(e.BodyContainer,{children:Digit.Utils.getMultiRootTenant()?(0,u.jsx)(sa,{initData:y,stateCode:s,modules:null==y?void 0:y.modules,appTenants:y.tenants,logoUrl:null==y||null===(n=y.stateInfo)||void 0===n?void 0:n.logoUrl,logoUrlWhite:null==y||null===(o=y.stateInfo)||void 0===o?void 0:o.logoUrlWhite,defaultLanding:d,allowedUserTypes:f}):(0,u.jsx)(la,{initData:y,stateCode:s,modules:null==y?void 0:y.modules,appTenants:y.tenants,logoUrl:null==y||null===(l=y.stateInfo)||void 0===l?void 0:l.logoUrl,defaultLanding:d,allowedUserTypes:f})})})})},Ha=function(e){var n=e.stateCode,r=e.registry,i=e.enabledModules,a=e.defaultLanding,l=e.allowedUserTypes,s=(0,t.useMemo)(function(){return Digit.Utils.getPrivacyObject()||{}},[]),c=Fa((0,t.useState)(s),2),d=c[0],f=c[1],v=(Digit.UserService.getType(),(0,t.useMemo)(function(){return new o.QueryClient({defaultOptions:{queries:{staleTime:9e5,gcTime:3e6,retry:!1,retryDelay:function(e){return 1/0}}}})},[])),p=Digit.Contexts.ComponentProvider,m=Digit.Contexts.PrivacyProvider,y=(Digit.UserService.hasAccess(["FSM_DSO"]),(0,t.useCallback)(function(e){Digit.Utils.setPrivacyObject({}),f({})},[])),g=(0,t.useCallback)(function(){var e=Digit.Utils.getPrivacyObject();return f(e),e},[]),b=(0,t.useCallback)(function(e){var t=Digit.Utils.getAllPrivacyObject(),n="undefined"!=typeof window?window.location.pathname:"",r=Ua(Ua({},t),{},Ba({},n,e));Digit.Utils.setPrivacyObject(Ua({},r)),f((null==t?void 0:t[n])||{})},[]),h=(0,t.useCallback)(function(e,t){f(Digit.Utils.updatePrivacy(e,t)||{})},[]),O=(0,t.useMemo)(function(){return{privacy:"undefined"!=typeof window?null==d?void 0:d[window.location.pathname]:d,resetPrivacy:y,getPrivacy:g,updatePrivacyDescoped:b,updatePrivacy:h}},[d,y,g,b,h]);return(0,u.jsx)("div",{children:(0,u.jsx)(I,{children:(0,u.jsx)(o.QueryClientProvider,{client:v,children:(0,u.jsx)(p.Provider,{value:r,children:(0,u.jsx)(m.Provider,{value:O,children:(0,u.jsx)(Va,{stateCode:n,enabledModules:i,defaultLanding:a,allowedUserTypes:l})})})})})})},Wa={SelectOtp:Zt,ChangeCity:$,ChangeLanguage:te,PrivacyComponent:wa,OtpComponent:function(n){var o,i,l=n.onSelect,s=(n.formData,n.control,n.formState,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Ea)),c=(0,r.useTranslation)().t,d=((0,a.useLocation)(),La((0,t.useState)(null),2)),f=d[0],v=d[1],p=La((0,t.useState)({}),2),m=p[0],y=p[1],g=La((0,t.useState)(!0),2),b=g[0],h=(g[1],La((0,t.useState)(30),2)),O=h[0],S=h[1],x=function(){v(null)};qt(function(){S(O-1)},O>0?1e3:null),(0,t.useEffect)(function(){l("OtpComponent",m)},[m]);var j={url:"/user-otp/v1/_send",params:{tenantId:null==s||null===(o=s.props)||void 0===o?void 0:o.code},body:{},config:{enable:!1}},w=Digit.Hooks.useCustomAPIMutationHook(j),_=function(){var e=Aa(Ca().m(function e(){var t,n;return Ca().w(function(e){for(;;)switch(e.n){case 0:return S(30),e.n=1,w.mutate({body:{otp:{userName:null==s||null===(t=s.props)||void 0===t?void 0:t.email,type:"login",tenantId:null==s||null===(n=s.props)||void 0===n?void 0:n.tenant,userType:"EMPLOYEE"}},config:{enable:!0}},{onError:function(e,t){var n,r;v({key:"error",label:null!=e&&null!==(n=e.response)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&null!==(n=n.Errors)&&void 0!==n&&n[0].code?"SANDBOX_RESEND_OTP".concat(null==e||null===(r=e.response)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.Errors)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.code):"SANDBOX_RESEND_OTP_ERROR"}),setTimeout(x,5e3)},onSuccess:function(){var e=Aa(Ca().m(function e(t){return Ca().w(function(e){for(;;)switch(e.n){case 0:v({key:"info",label:c("OTP_RESNED_SUCCESFULL")}),setTimeout(x,5e3);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(e.CardLabel,{className:"sandbox-custom-otp-header",children:c("CS_OTP_EMAIL")}),(0,u.jsx)(e.CardLabel,{className:"sandbox-custom-otp-email",children:null==s||null===(i=s.props)||void 0===i?void 0:i.email}),(0,u.jsx)(e.CardLabel,{className:"sandbox-custom-otp-subheader",children:c("SANDBOX_ENTER_OTP")}),(0,u.jsx)(A.OTPInput,{className:"sandbox-otp-input",length:6,onChange:function(e){y(Ta(Ta({},m),{},{otp:e}))},value:null==m?void 0:m.otp}),O>0?(0,u.jsx)(e.CardText,{className:"sandbox-resend-otp",children:"".concat(c("CS_RESEND_ANOTHER_OTP")," ").concat(O," ").concat(c("CS_RESEND_SECONDS"))}):(0,u.jsx)("p",{className:"card-text-button sandbox-otp-input",onClick:_,children:c("CS_RESEND_OTP")}),!b&&(0,u.jsx)(e.CardLabelError,{children:c("CS_INVALID_OTP")}),f&&(0,u.jsx)(e.Toast,{type:null==f?void 0:f.key,label:c(null==f?void 0:f.label),onClose:x})]})}},za=function(){Object.entries(Wa).forEach(function(e){var t=Fa(e,2),n=t[0],r=t[1];Digit.ComponentRegistryService.setComponent(n,r)})}})(),v})());
|
|
3
3
|
//# sourceMappingURL=main.js.map
|