tocco-admin 1.0.59 → 1.0.62

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[531],{7081:(e,n,t)=>{t.d(n,{Z:()=>Fn});var r,o,i,a,c,s,u=t(59713),l=t.n(u),p=t(45697),d=t.n(p),f=t(34871),g=t(22731),h=t(90358),m=t(45430),y=t(47490),v=t(74806),x=t(46458),b="two-factor-connector/INITIALIZE",w="two-factor-connector/SET_TWO_STEP_ACTIVE",O="two-factor-connector/SET_SECRET",j="two-factor-connector/SET_USER_NAME",P="two-factor-connector/REQUEST_SECRET",Z="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",E="two-factor-connector/GO_TO_SECRET",k="two-factor-connector/VERIFY_CODE",C="root/SUCCESS",T="root/SET_SETUP_SUCCESSFUL",D="root/GO_TO_RESULT",R=function(){return{type:b}},N=function(e){return{type:w,payload:{twoFactorActive:e}}},A=function(e){return{type:O,payload:{secret:e}}},I=function(e){return{type:j,payload:{username:e}}},_=function(){return{type:S}},L=function(e){return{type:T,payload:{setupSuccessful:e}}},U=t(1024),F=t(50258),M=t(44012),z=t(88162),W=t(34206),B=t(65035),G=t(28655),q=t.n(G),V=t(32678),H=t(7281),Y=t(36589),K=V.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(r||(r=q()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),H.Z.space(.5),Y.Z),$=t(88601),Q=V.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(o||(o=q()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),H.Z.space(-.5)),X=V.ZP.span.withConfig({displayName:"StyledIconWrapper"})(i||(i=q()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?$.Z.color("signal.success.text"):$.Z.color("signal.danger.text")}),H.Z.font(10)),J=V.ZP.div.withConfig({displayName:"StyledTextWrapper"})(a||(a=q()(["\n display: flex;\n align-items: center;\n"]))),ee=t(85893);const ne=function(e){var n=e.success,t=e.goToStart,r=e.setupSuccessful,o=e.intl,i=function(e){return o.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[c||(c=(0,ee.jsxs)(Q,{children:[(0,ee.jsx)(X,{isSuccessful:!0,children:(0,ee.jsx)(z.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(W.ZP.P,{children:(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(B.Z,{label:i("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]}):(0,ee.jsxs)(ee.Fragment,{children:[s||(s=(0,ee.jsxs)(Q,{children:[(0,ee.jsx)(X,{isSuccessful:!1,children:(0,ee.jsx)(z.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(W.ZP.P,{children:(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(B.Z,{label:i("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]})};var te={success:function(){return{type:C}},goToStart:_};const re=(0,x.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),te)((0,v.ZP)(ne));var oe,ie,ae,ce,se,ue,le=t(12684),pe=V.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(oe||(oe=q()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),H.Z.space(1.2),H.Z.space(1),H.Z.space(1.5),H.Z.space(1)),de=V.ZP.div.withConfig({displayName:"StyledParagraph"})(ie||(ie=q()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),H.Z.space(-1),H.Z.space(-.9));const fe=function(e){var n=e.secret,t=e.goToSecretVerification;return(0,ee.jsxs)(ee.Fragment,{children:[ae||(ae=(0,ee.jsx)(W.ZP.P,{children:(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,ee.jsx)(pe,{children:(0,ee.jsx)(le.Z,{value:n.uri})}),ce||(ce=(0,ee.jsx)(W.ZP.P,{children:(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,ee.jsx)(de,{children:(0,ee.jsx)(W.ZP.B,{children:n.secret})}),se||(se=(0,ee.jsx)(W.ZP.P,{children:(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,ee.jsx)(K,{children:(0,ee.jsx)(B.Z,{ink:"primary",look:"raised",onClick:t,children:ue||(ue=(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var ge={goToSecretVerification:function(){return{type:Z}}};const he=(0,x.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),ge)((0,v.ZP)(fe));var me;const ye=function(e){var n=e.twoFactorActive,t=e.forced,r=e.requestSecret,o=e.intl,i=function(e){return o.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(W.ZP.P,{children:n?me||(me=(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.overwriteInfo"})):t?(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:i("client.two-factor-connector.forcedInfo")}}):(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:i("client.two-factor-connector.info")}})}),(0,ee.jsx)(K,{children:(0,ee.jsx)(B.Z,{label:i("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var ve={initialize:R,requestSecret:function(){return{type:P}}};const xe=(0,x.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),ve)((0,v.ZP)(ye));var be,we,Oe=t(63038),je=t.n(Oe),Pe=t(76367),Ze=t(26681),Se=t(51032),Ee=V.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(be||(be=q()(["\n && {\n ","\n }\n"])),Se.yP);const ke=function(e){var n=e.verifyCode,t=e.intl,r=(0,U.useState)(null),o=je()(r,2),i=o[0],a=o[1],c=function(e){return t.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[we||(we=(0,ee.jsx)(W.ZP.P,{children:(0,ee.jsx)(M.Z,{id:"client.two-factor-connector.verificationText"})})),(0,ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),i&&i.toString().length>=6&&n(i)},children:[(0,ee.jsx)(Pe.Z,{hasValue:!!i,id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,ee.jsx)(Ee,{children:(0,ee.jsx)(Ze.Z,{type:"integer",value:i,events:{onChange:a},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,ee.jsx)(K,{children:(0,ee.jsx)(B.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!i||i.toString().length<6})})]})]})};var Ce={verifyCode:function(e){return{type:k,payload:{userCode:e}}}};const Te=(0,x.connect)((function(e,n){return{}}),Ce)((0,v.ZP)(ke));var De,Re,Ne,Ae,Ie,_e,Le=0,Ue=1,Fe=2,Me=3;const ze=function(e){var n=e.initialize,t=e.stage;(0,U.useEffect)((function(){n()}),[n]);return(0,ee.jsxs)(ee.Fragment,{children:[_e||(_e=(0,ee.jsx)(y.Z.Notifications,{})),function(){switch(t){case Le:return De||(De=(0,ee.jsx)(xe,{}));case Ue:return Re||(Re=(0,ee.jsx)(he,{}));case Fe:return Ne||(Ne=(0,ee.jsx)(Te,{}));case Me:return Ae||(Ae=(0,ee.jsx)(re,{}));default:return Ie||(Ie=(0,ee.jsx)(F.Z,{}))}}()]})};var We={initialize:R};const Be=(0,x.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),We)((0,v.ZP)(ze));var Ge,qe=t(81770);function Ve(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ve(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ye=function(e){return function(n){return He(He({},n),{},{stage:e})}},Ke=(Ge={},l()(Ge,w,qe.Z.singleTransferReducer("twoFactorActive")),l()(Ge,O,qe.Z.singleTransferReducer("secret")),l()(Ge,j,qe.Z.singleTransferReducer("username")),l()(Ge,T,qe.Z.singleTransferReducer("setupSuccessful")),l()(Ge,S,Ye(0)),l()(Ge,E,Ye(1)),l()(Ge,Z,Ye(2)),l()(Ge,D,Ye(3)),Ge),$e={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Qe=t(87757),Xe=t.n(Qe),Je=t(27361),en=t.n(Je),nn=t(34857),tn=t(63094),rn=t(54159),on=Xe().mark(xn),an=Xe().mark(wn),cn=Xe().mark(On),sn=Xe().mark(jn),un=Xe().mark(Pn),ln=Xe().mark(Zn),pn=Xe().mark(Sn),dn=Xe().mark(En),fn=Xe().mark(kn),gn=Xe().mark(Cn),hn="relTwo_step_login_status",mn=function(e){return e.twoFactorConnector.username},yn=function(e){return e.twoFactorConnector.secret},vn=function(e){return e.input};function xn(){var e,n,t,r,o,i;return Xe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,nn.Ys)(vn);case 2:if(e=a.sent,e.secret){a.next=14;break}return a.next=7,(0,nn.Ys)(mn);case 7:return n=a.sent,a.next=10,(0,nn.RE)(tn.Z.requestSaga,"principals/".concat(n,"/two-factor"),{method:"GET"});case 10:return t=a.sent,r=t.body,o=r.secret,i=r.totpUri,a.next=14,(0,nn.gz)(A({secret:o,uri:i}));case 14:return a.next=16,(0,nn.gz)({type:E});case 16:case"end":return a.stop()}}),on)}function bn(e,n){return rn.Z.executeRequest(e,n).then(rn.Z.extractBody)}function wn(e,n,t,r){var o,i;return Xe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o={secret:e,userCode:n,username:t,password:r},a.next=3,(0,nn.RE)(bn,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return i=a.sent,a.next=6,(0,nn.gz)(L(en()(i,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return a.stop()}}),an)}function On(e,n,t){var r;return Xe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,nn.RE)(tn.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:n,code:t},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,nn.gz)(L(204===r.status));case 5:case"end":return o.stop()}}),cn)}function jn(e){var n,t,r,o,i,a;return Xe().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e.payload.userCode,c.next=3,(0,nn.Ys)(mn);case 3:return t=c.sent,c.next=6,(0,nn.Ys)(yn);case 6:return r=c.sent,o=r.secret,c.next=10,(0,nn.Ys)(vn);case 10:if(i=c.sent,a=i.password,!i.forced){c.next=18;break}return c.next=16,(0,nn.RE)(wn,o,n,t,a);case 16:c.next=20;break;case 18:return c.next=20,(0,nn.RE)(On,t,o,n);case 20:return c.next=22,(0,nn.gz)({type:D});case 22:case"end":return c.stop()}}),sn)}function Pn(){var e,n;return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,nn.RE)(Sn);case 2:return t.next=4,(0,nn.Ys)(vn);case 4:if(e=t.sent,!(n=e.secret)){t.next=9;break}return t.next=9,(0,nn.gz)(A(n));case 9:return t.next=11,(0,nn.gz)(_());case 11:case"end":return t.stop()}}),un)}function Zn(){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,nn.gz)(m.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),ln)}function Sn(){var e,n,t,r,o;return Xe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,nn.RE)(En);case 2:return e=i.sent,i.next=5,(0,nn.gz)(I(e));case 5:return n='username === "'.concat(e,'"'),i.next=8,(0,nn.RE)(tn.Z.fetchEntities,"Principal",{where:n,paths:[hn]});case 8:if(!((t=i.sent).length>1)){i.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=en()(t,"[0].paths.".concat(hn,".value.key")),o="1"===r,i.next=15,(0,nn.gz)(N(o));case 15:case"end":return i.stop()}}),pn)}function En(){var e,n,t;return Xe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,nn.Ys)(vn);case 2:if(e=r.sent,!(n=e.username)){r.next=8;break}return r.abrupt("return",n);case 8:return r.next=10,(0,nn.RE)(tn.Z.requestSaga,"principals");case 10:return t=r.sent,r.abrupt("return",t.body.username);case 12:case"end":return r.stop()}}),dn)}function kn(){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,nn.gz)(m.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),fn)}function Cn(){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,nn.$6)([(0,nn.Fm)(P,xn),(0,nn.Fm)(k,jn),(0,nn.Fm)(b,Pn),(0,nn.Fm)(C,Zn),(0,nn.Fm)(S,kn),(0,nn.Fm)(E,kn),(0,nn.Fm)(Z,kn),(0,nn.Fm)(D,kn)]);case 2:case"end":return e.stop()}}),gn)}const Tn={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$e,n=arguments.length>1?arguments[1]:void 0,t=Ke[n.type];return t?t(e,n):e}};var Dn,Rn=[Cn];function Nn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(t),!0).forEach((function(n){l()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var In="two-factor-connector",_n=function(e,n,t,r){var o=Dn||(Dn=(0,ee.jsx)(Be,{})),i=f.Z.createStore(Tn,Rn,n,In);return y.Z.addToStore(i,!0),h.Z.addToStore(i,!0,["console","remote","notification"]),m.Z.addToStore(i,t),g.Z.addToStore(i),f.Z.createApp(In,o,i,{input:n,events:t,actions:[],publicPath:r,textResourceModules:["component","common",In]})},Ln=["onSuccess","onCancel","onResize"],Un=function(e){return f.Z.useApp({initApp:_n,props:e,packageName:In,externalEvents:Ln}).component};Un.propTypes=An(An({},Ln.reduce((function(e,n){return An(An({},e),{},l()({},n,d().func))}),{})),{},{username:d().string,password:d().string,secret:d().shape({secret:d().string.isRequired,uri:d().string.isRequired}),forced:d().bool});const Fn=Un},39233:(e,n,t)=>{t.d(n,{Z:()=>m});var r,o,i,a=t(28655),c=t.n(a),s=(t(9230),t(32678)),u=t(7281),l=t(88601),p=t(88162),d=t(34206),f=t(85893),g=s.ZP.div.withConfig({displayName:"StyledErrorView"})(r||(r=c()(["\n width: 50vw;\n max-width: 650px;\n padding: ",";\n text-align: center;\n margin: 20vh auto auto;\n\n h1 {\n margin: 0 auto;\n }\n"])),u.Z.space(1)),h=s.ZP.span.withConfig({displayName:"StyledIconWrapper"})(o||(o=c()(["\n color: ",";\n font-size: ",";\n"])),l.Z.color("signal.danger.text"),u.Z.font(13.4));const m=function(e){var n=e.title,t=e.message;return(0,f.jsxs)(g,{children:[i||(i=(0,f.jsx)(h,{children:(0,f.jsx)(p.Z,{icon:"times"})})),(0,f.jsx)(d.ZP.H1,{children:n}),(0,f.jsx)(d.ZP.Span,{children:t})]})}},88531:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ao});var r=t(74806),o=t(46458),i=t(47490),a=t(28542),c=(t(9230),t(1024)),s=t.n(c),u=t(64593),l=t(50258),p=t(88757),d=t(63038),f=t.n(d),g=t(99353),h=t(44012),m=t(34871),y=t(59713),v=t.n(y),x=t(10317),b=t.n(x),w=t(22731),O=t(90358),j=t(45430),P=t(23369),Z=t(65378),S=t(28485),E=t(97324),k=t(56746),C=t(83676),T=t(74483),D=t(85893);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var N="login",A=["loginSuccess","resize"],I=function(e,n,t,r,o){var i=[C.FO(!1),C.ZX(!1),k.Dn(!!n.passwordRequest),E.b6(n.username||"")],a=!!n.showTitle,c=(0,D.jsx)(S.Z,{showTitle:a}),s=m.Z.createStore(T.Z,T.v,n,N);return P.Z.setInputEnvs(n),j.Z.addToStore(s,t),O.Z.addToStore(s,!0,["console","remote"]),w.Z.addToStore(s),m.Z.createApp(N,c,s,{input:n,actions:i,publicPath:r,textResourceModules:["login"],customTheme:o})},_=function(e){return m.Z.useApp({initApp:I,props:e,packageName:N,externalEvents:A}).component};_.propTypes=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({showTitle:b().bool,locale:b().string,passwordRequest:b().bool,username:b().string,setLocale:b().func,backendUrl:b().string,appContext:Z.Z.propTypes},A.reduce((function(e,n){return e[n]=b().func,e}),{}));var L=t(74653);const U=_;var F=t(36026);const M=t.p+"imgs/tocco_white.5c80050a55945844e89ffaf71395e64b.svg";var z=t(28655),W=t.n(z),B=t(32678),G=t(54608),q=t(7281),V=t(69829),H=t(88601);const Y=t.p+"imgs/tocco-circle.7ab925bf473f813493f00f069ed9746e.svg";var K,$,Q,X,J,ee,ne,te,re,oe,ie,ae,ce,se,ue,le,pe=(0,B.vJ)(K||(K=W()(["\n @media (max-width: 1024px) {\n body {\n overflow: auto !important;\n }\n }\n"]))),de=B.ZP.div.withConfig({displayName:"StyledLogin"})($||($=W()(["\n height: 100vh;\n width: 100vw;\n background-image: url(",");\n background-repeat: no-repeat;\n background-size: 61vw;\n background-position-y: -25vw;\n background-position-x: -41vw;\n\n .tocco-sso-login {\n display: flex;\n justify-content: space-between;\n margin-bottom: 1.8rem;\n }\n\n @media (max-width: 1024px) {\n background-size: 2000px;\n background-position: 50% -1850px;\n }\n\n @media (max-width: 425px) {\n background-position: 50% -1890px;\n }\n"])),Y),fe=(0,B.ZP)(G.XU).withConfig({displayName:"StyledHeadingLogin"})(Q||(Q=W()(["\n && {\n font-size: ",";\n }\n"])),q.Z.font(11)),ge=(0,B.ZP)(V.Fe).withConfig({displayName:"StyledSpanLogin"})(X||(X=W()(["\n && {\n text-align: center;\n font-size: ",";\n display: inline-block;\n width: 100%;\n margin: 1rem 0 1.8rem;\n }\n"])),q.Z.font(1.3)),he=B.ZP.div.withConfig({displayName:"StyledLoginWrapper"})(J||(J=W()(["\n max-width: 410px;\n margin: 6% 5% 0 28%;\n\n && {\n .tocco-login * {\n font-size: ",";\n }\n\n @media (max-width: 1024px) {\n margin: 14rem auto 0;\n padding-left: 2rem;\n padding-right: 2rem;\n }\n\n @media (max-width: 425px) {\n margin-top: 12rem;\n }\n }\n"])),q.Z.font(1.3)),me=B.ZP.img.withConfig({displayName:"StyledSloganImg"})(ee||(ee=W()(["\n transform: rotate(270deg);\n position: relative;\n top: 12.5vw;\n left: -8%;\n width: 25vw;\n\n @media (max-width: 1024px) {\n display: none;\n }\n"]))),ye=B.ZP.img.withConfig({displayName:"StyledMobileSloganImg"})(ne||(ne=W()(["\n display: none;\n max-width: 400px;\n width: 95%;\n height: auto;\n position: relative;\n margin: auto;\n top: 45px;\n\n @media (max-width: 1024px) {\n display: block;\n }\n\n @media (max-width: 425px) {\n max-width: 280px;\n }\n"]))),ve=(0,B.ZP)(V.Fe).withConfig({displayName:"StyledSsoMsg"})(te||(te=W()(["\n && {\n display: inline-block;\n text-align: center;\n font-weight: ",";\n width: 100%;\n color: ",";\n }\n"])),H.Z.fontWeight("bold"),H.Z.color("signal.info.text")),xe=(0,B.ZP)(ve).withConfig({displayName:"StyledSsoError"})(re||(re=W()(["\n && {\n color: ",";\n }\n"])),H.Z.color("signal.danger.text"));const be=function(e){var n,t=e.ssoAvailable,r=e.loginSuccessful,o=e.checkSsoAvailable,i=(0,c.useState)(!1),a=f()(i,2),s=a[0],u=a[1],l=(0,c.useState)(!1),p=f()(l,2),d=p[0],m=p[1],y=g.Z.get("sso-autologin");(0,c.useEffect)((function(){o()}),[o]);var v=function(e){var n=e.successful,t=e.provider,o=e.registration;n?(g.Z.set("sso-autologin",t,{expires:365}),r(30)):!n&&o?m(!0):u(!0)},x=function(){return(0,D.jsxs)(D.Fragment,{children:[n||(n=(0,D.jsx)(F.Z,{ssoLoginEndpoint:"/sso",loginCompleted:v,autoLogin:y})),d&&(oe||(oe=(0,D.jsx)(ve,{breakWords:!0,children:(0,D.jsx)(h.Z,{id:"client.sso-login.registration"})}))),s&&(ie||(ie=(0,D.jsx)(xe,{breakWords:!0,children:(0,D.jsx)(h.Z,{id:"client.sso-login.error"})}))),ae||(ae=(0,D.jsx)(ge,{children:(0,D.jsx)(h.Z,{id:"client.admin.loginChoice"})}))]})};return(0,D.jsxs)(D.Fragment,{children:[ce||(ce=(0,D.jsx)(pe,{})),(0,D.jsxs)(de,{children:[se||(se=(0,D.jsx)(ye,{src:M,alt:"Tocco Slogan",height:"42.3",width:"460"})),ue||(ue=(0,D.jsx)(me,{src:M,alt:"Tocco Slogan",height:"42.3",width:"460"})),(0,D.jsxs)(he,{children:[le||(le=(0,D.jsx)(fe,{children:(0,D.jsx)(h.Z,{id:"client.admin.welcomeTitle"})})),t&&(0,D.jsx)(x,{}),(0,D.jsx)(U,{loginSuccess:function(e){var n=e.timeout;r(n)},showTitle:!1})]})]})]})};var we={loginSuccessful:p.lm,checkSsoAvailable:p.Wy};const Oe=(0,o.connect)((function(e,n){return{ssoAvailable:e.session.ssoAvailable}}),we)((0,r.ZP)(be));var je,Pe,Ze,Se,Ee,ke=t(23887),Ce=t(29785),Te=t(36392),De=t(80467),Re=(t(46444),t(91411)),Ne=B.ZP.div.withConfig({displayName:"StyledBurgerButton"})(je||(je=(0,Re.Z)(["\n width: 24px;\n height: 24px;\n position: absolute;\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),H.Z.color("paper"),(function(e){return e.isOpen&&(0,B.iv)(Pe||(Pe=(0,Re.Z)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));const Ae=(0,r.ZP)((function(e){var n,t=e.isOpen,r=e.intl;return(0,D.jsxs)(Ne,{isOpen:t,"aria-label":(n="client.component.burgerButton.Label",r.formatMessage({id:n})),children:[Ze||(Ze=(0,D.jsx)("span",{})),Se||(Se=(0,D.jsx)("span",{})),Ee||(Ee=(0,D.jsx)("span",{}))]})}));var Ie=t(47580),_e=t(29441),Le=t(98235),Ue=t(96801);function Fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}const Me=function(e){var n=(0,o.useStore)(),r=(0,c.useMemo)((function(){return Ue.Z.loadRoute(n,{},(function(){return Promise.all([t.e(884),t.e(85)]).then(t.bind(t,57387))}),"docs")}),[n]);return(0,D.jsx)(r,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fe(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))};var ze=t(57557),We=t.n(ze),Be=t(14176),Ge=t.n(Be),qe=t(70696);function Ve(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var He=["location.key","location.search","location.hash"];function Ye(e,n){var t=qe.Z.difference(e,n),r=Ge()(We()(t,He),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length}const Ke=(0,c.memo)((function(e){return(0,D.jsx)(o.ReactReduxContext.Consumer,{children:function(n){var r=n.store,o=Ue.Z.loadRoute(r,{},(function(){return Promise.all([t.e(884),t.e(935)]).then(t.bind(t,38935))}));return(0,D.jsx)(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ve(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))}})}),Ye);var $e,Qe=t(34206);const Xe=function(e){return $e||($e=(0,D.jsx)(Qe.ZP.H2,{children:"Settings"}))};var Je,en=t(39233),nn=t(7081),tn=t(87686),rn=t(46927),on=t(88162),an=t(78958),cn=t(96559),sn=t(40917);const un=(0,B.ZP)(cn.rU).withConfig({displayName:"StyledRouterLinkButton"})(Je||(Je=(0,Re.Z)(["\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),sn.j);function ln(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function pn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ln(Object(t),!0).forEach((function(n){(0,rn.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const dn=s().forwardRef((function(e,n){var t=e.aria,r=e.icon,o=e.ink,i=e.label,a=e.iconOnly,c=e.children;return(0,D.jsxs)(un,pn(pn(pn({ref:n},t),e),{},{ink:o||an.Z.ink.BASE,"data-cy":e["data-cy"],title:i,children:[r&&(0,D.jsx)(on.Z,{icon:r}),!a&&i?(0,D.jsx)("span",{children:i}):c||"​"]}))}));var fn=t(57210),gn=t(5399),hn=t(41291);const mn=t.p+"imgs/tocco_red.cb14a8eb6c3356bd83b114c13267546d.svg";var yn,vn,xn,bn,wn,On,jn,Pn,Zn,Sn,En,kn,Cn,Tn,Dn,Rn=B.ZP.div.withConfig({displayName:"StyledFormattedMessageWrapper"})(yn||(yn=W()(["\n font-size: ",";\n margin-top: ",";\n"])),q.Z.font(-1.5),q.Z.space(.5)),Nn=B.ZP.div.withConfig({displayName:"StyledBlockWrapper"})(vn||(vn=W()(["\n margin-top: ",";\n"])),q.Z.space(.5)),An=B.ZP.img.withConfig({displayName:"StyledLogo"})(xn||(xn=W()(["\n margin-top: ",";\n width: 80%;\n height: auto;\n"])),q.Z.space(1));const In=function(e){var n=e.niceVersion,r=e.niceRevision,o=e.intl,i=function(e){return o.formatMessage({id:e})},a=t(38655);return(0,D.jsxs)(Qe.ZP.Span,{children:[bn||(bn=(0,D.jsx)(An,{src:mn,height:"53.34",width:"580",alt:"tocco-logo"})),(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:i("client.admin.tocco.address")}}),(0,D.jsxs)(Qe.ZP.P,{children:[(0,D.jsx)(hn.Z,{href:i("client.admin.tocco.homepage"),neutral:!0,target:"_blank",children:wn||(wn=(0,D.jsx)(h.Z,{id:"client.admin.tocco.homepage"}))}),On||(On=(0,D.jsx)("br",{})),(0,D.jsx)(hn.Z,{href:"mailto:"+i("client.admin.tocco.email"),neutral:!0,target:"_blank",children:jn||(jn=(0,D.jsx)(h.Z,{id:"client.admin.tocco.email"}))}),Pn||(Pn=(0,D.jsx)("br",{})),(0,D.jsx)(hn.Z,{href:"tel:"+i("client.admin.tocco.phone"),neutral:!0,target:"_blank",children:Zn||(Zn=(0,D.jsx)(h.Z,{id:"client.admin.tocco.phone"}))})]}),(0,D.jsx)(Nn,{children:(0,D.jsxs)(Qe.ZP.P,{children:[Sn||(Sn=(0,D.jsx)(h.Z,{id:"client.admin.about.versionLabel"})),":  ",n,En||(En=(0,D.jsx)("br",{})),kn||(kn=(0,D.jsx)(h.Z,{id:"client.admin.about.revisionLabel"})),":  ",r,Cn||(Cn=(0,D.jsx)("br",{})),Tn||(Tn=(0,D.jsx)(h.Z,{id:"client.admin.about.clientVersionLabel"})),":  ",a.version]})}),Dn||(Dn=(0,D.jsx)(Rn,{children:(0,D.jsx)(h.Z,{id:"client.admin.copyright"})}))]})};const _n=(0,o.connect)((function(e){return{niceVersion:e.preferences.serverSettings.niceVersion,niceRevision:e.preferences.serverSettings.niceRevision}}),null)((0,r.ZP)(In));var Ln,Un,Fn,Mn,zn,Wn,Bn,Gn,qn,Vn,Hn=t(30314),Yn=t.n(Hn),Kn=t(77294),$n=t(90169),Qn=t(36589),Xn=t(2091),Jn=t(6699),et=B.ZP.div.withConfig({displayName:"StyledBackgroundCover"})(Ln||(Ln=W()(["\n position: absolute;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n height: 40px;\n width: 100%;\n background-color: ",";\n"])),H.Z.color("paper")),nt=B.ZP.div.withConfig({displayName:"StyledHeader"})(Un||(Un=W()(["\n grid-area: header;\n height: 40px;\n padding-right: 10px;\n padding-left: 40px;\n position: relative;\n z-index: 3; // higher than StyledBackgroundCover to enable button interactions\n\n "," {\n overflow: hidden;\n\n "," {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n }\n"])),Qn.Z,Qn.s),tt=B.ZP.div.withConfig({displayName:"StyledConfig"})(Fn||(Fn=W()(["\n z-index: 2;\n display: flex;\n justify-content: flex-end;\n padding: 7px;\n"]))),rt=B.ZP.div.withConfig({displayName:"StyledBackgroundLogo"})(Mn||(Mn=W()(["\n position: absolute;\n z-index: 3; // higher than StyledBackgroundCover to prevent coverage\n height: 40px;\n width: 100%;\n background-color: ",";\n mask-image: url(",");\n mask-repeat: no-repeat;\n mask-position: -300px -900px;\n"])),(function(e){var n=e.runEnv,t=e.theme;return"PRODUCTION"===n?t.colors.primary:t.colors.secondary}),Y),ot=B.ZP.div.withConfig({displayName:"StyledPopper"})(zn||(zn=W()(["\n width: 350px;\n z-index: 1001; // higher than bm-overlay\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);\n"]))),it=B.ZP.span.withConfig({displayName:"StyledNotificationBellWrapper"})(Wn||(Wn=W()(["\n position: relative;\n"]))),at=(0,B.ZP)(Xn.Z).withConfig({displayName:"StyledBall"})(Bn||(Bn=W()(["\n margin-left: ",";\n"])),q.Z.space(-.5)),ct=B.ZP.span.withConfig({displayName:"StyledRedDot"})(Gn||(Gn=W()(["\n width: 7px;\n height: 7px;\n position: absolute;\n top: 3px;\n left: 21.5px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),H.Z.color("secondaryLight")),st=((0,B.ZP)(Jn.Z).withConfig({displayName:"StyledHeaderLink"})(qn||(qn=W()(["\n display: inline-block;\n padding: "," ",";\n"])),q.Z.space(-2.1),q.Z.space(0)),B.ZP.span.withConfig({displayName:"StyledBallMenuWrapper"})(Vn||(Vn=W()(["\n display: flex;\n margin-top: 2px;\n\n "," {\n font-size: ",";\n }\n"])),at,q.Z.font(1)));const ut=function(e){var n=e.unreadNotificationKeys,t=e.onClick,r=e.innerRef;return n.length>0&&(0,D.jsx)(ct,{onClick:t,ref:r})};const lt=(0,o.connect)((function(e){return{unreadNotificationKeys:e.notification.center.unreadNotificationKeys}}),null)((0,r.ZP)(ut));function pt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function dt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ft=[{name:"offset",options:{offset:[0,3]}},{name:"preventOverflow",options:{padding:35}}];const gt=function(){var e=(0,c.useState)(!1),n=f()(e,2),t=n[0],r=n[1],o=(0,c.useRef)(null),a=(0,c.useRef)(null),s=(0,c.useRef)(null),u=function(e){a.current&&!a.current.contains(e.target)&&o.current&&!o.current.contains(e.target)&&s.current&&!s.current.contains(e.target)&&r(!1)};(0,c.useEffect)((function(){return document.addEventListener("mousedown",u),function(){document.removeEventListener("mousedown",u)}}),[o,a]);var l=(0,Kn.D)(o.current,a.current,{modifiers:ft}),p=l.styles,d=l.attributes;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(it,{title:"notifications",children:[(0,D.jsx)(at,{onClick:function(){return r(!t)},icon:"bell",ref:o}),(0,D.jsx)("span",{ref:s,children:(0,D.jsx)(lt,{onClick:function(){return r(!t)}})})]}),Yn().createPortal((0,D.jsx)(ot,dt(dt({ref:a,style:p.popper},d.popper),{},{children:t&&(0,D.jsx)(i.Z.NotificationCenter,{navigationStrategy:(0,$n.ZP)()})})),document.body)]})};var ht,mt,yt,vt,xt,bt,wt,Ot,jt,Pt;const Zt=function(e){var n,t=e.username,r=e.currentBusinessUnit,o=e.businessUnits,i=e.loadBusinessUnits,a=e.changeBusinessUnit,c=e.doLogout,s=e.runEnv,u=e.niceVersion,l=e.openModalComponent,p=e.removeModalComponent,d=e.info,f=e.intl,g=e.setMenuOpen,m=o.map((function(e){return(0,D.jsx)(tn.Z,{disabled:e.id===r.id,onClick:function(){return a(e.id)},children:e.label},"buMenu-".concat(e.id))})),y=u&&(0,D.jsx)(tn.Z,{onClick:function(){window.open(function(e){var n=e.split(".").map((function(e,n){return 0===n?e:e.padStart(2,"0")})).join("");return"https://".concat(n,".docs.tocco.ch/de/")}(u),"_blank")},children:ht||(ht=(0,D.jsx)(h.Z,{id:"client.admin.menu.doc"}))}),v=(0,D.jsx)(tn.Z,{onClick:function(){window.open("/nice2/swagger","_blank")},children:mt||(mt=(0,D.jsx)(h.Z,{id:"client.admin.menu.restDoc"}))}),x=(0,D.jsx)(tn.Z,{onClick:function(){l("about",null,null,(function(){return yt||(yt=(0,D.jsx)(_n,{}))}),!0)},children:vt||(vt=(0,D.jsx)(h.Z,{id:"client.admin.menu.aboutToccoTitle"}))});return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(rt,{runEnv:s}),xt||(xt=(0,D.jsx)(et,{})),(0,D.jsx)(nt,{children:(0,D.jsxs)(tt,{children:[(0,D.jsx)(dn,{to:"/dashboard/reload",onClick:function(){return g(!1)},children:bt||(bt=(0,D.jsx)(h.Z,{id:"client.admin.dashboard"}))}),(0,D.jsx)(fn.Z,{label:r.label,onOpen:function(){0===o.length&&i()},children:m}),(0,D.jsxs)(fn.Z,{label:t,children:[(0,D.jsx)(tn.Z,{onClick:function(){var e,n=function(){p("passwordUpdateModal"),d("success","client.login.passwordUpdate.success")};l("passwordUpdateModal","client.login.passwordUpdate.title",null,(function(){return e||(e=(0,D.jsx)(L.L,{username:t,success:n}))}),!0)},children:wt||(wt=(0,D.jsx)(h.Z,{id:"client.admin.menu.passwordUpdate"}))}),(0,D.jsx)(tn.Z,{onClick:function(){var e,n=function(){p("passwordUpdateModal")};l("passwordUpdateModal","client.actions.two-factor-connector.title",null,(function(){return e||(e=(0,D.jsx)(nn.Z,{onSuccess:n}))}),!0)},children:Ot||(Ot=(0,D.jsx)(h.Z,{id:"client.admin.menu.twoFactorConnector"}))}),(0,D.jsx)(tn.Z,{onClick:c,children:jt||(jt=(0,D.jsx)(h.Z,{id:"client.admin.menu.logout"}))})]}),(0,D.jsxs)(st,{children:[(0,D.jsxs)(gn.Z,{buttonProps:{icon:"question-circle",title:(n="client.admin.header.help",f.formatMessage({id:n}))},children:[y,v,x]}),Pt||(Pt=(0,D.jsx)(gt,{}))]})]})})]})};var St={doLogout:p.Qk,loadBusinessUnits:p.CB,changeBusinessUnit:p.EW,openModalComponent:i.Z.modal,removeModalComponent:i.Z.removeModal,info:i.Z.toaster,setMenuOpen:ke.gG};const Et=(0,o.connect)((function(e,n){return{username:e.session.username,currentBusinessUnit:e.session.currentBusinessUnit,businessUnits:e.session.businessUnits,runEnv:e.preferences.serverSettings.runEnv,niceVersion:e.preferences.serverSettings.niceVersion}}),St)((0,r.ZP)(Zt));var kt,Ct,Tt,Dt,Rt,Nt,At,It,_t=t(319),Lt=t.n(_t),Ut=t(51554),Ft=t(20534),Mt=t(30759),zt=B.ZP.div.withConfig({displayName:"StyledMenuEntry"})(kt||(kt=W()(["\n ","\n position: relative;\n\n && {\n padding-left: calc("," * ",");\n line-height: ",";\n }\n ","\n"])),(0,Mt.Z)(),(function(e){return e.level}),q.Z.space(.75),H.Z.lineHeight("light"),(function(e){return 0===e.childrenCount&&"margin-bottom: 0 !important"})),Wt=B.ZP.div.withConfig({displayName:"StyledMenuEntryWrapper"})(Ct||(Ct=W()(["\n margin-bottom: ",";\n margin-top: ",";\n\n > div {\n margin-bottom: ",";\n }\n"])),q.Z.space(.6),q.Z.space(.6),q.Z.space(.5)),Bt=B.ZP.div.withConfig({displayName:"StyledExtendedSearchWrapper"})(Tt||(Tt=W()(["\n margin-top: -",";\n"])),q.Z.space(.6)),Gt=B.ZP.div.withConfig({displayName:"StyledTitle"})(Dt||(Dt=W()(["\n && {\n ","\n font-weight: ",";\n }\n"])),(0,Mt.Z)(),H.Z.fontWeight("bold")),qt=B.ZP.div.withConfig({displayName:"StyledMenuItemsWrapper"})(Rt||(Rt=W()(["\n position: relative;\n left: calc(1 * ","); // level one of indentation\n"])),q.Z.space(.75)),Vt=B.ZP.div.withConfig({displayName:"StyledNoSearchResultsTxt"})(Nt||(Nt=W()(["\n ","\n font-style: italic;\n"])),(0,Mt.Z)()),Ht=B.ZP.div.withConfig({displayName:"StyledIconTitleWrapper"})(At||(At=W()(["\n position: relative;\n margin-bottom: ",";\n margin-top: ",";\n margin-left: ",";\n"])),q.Z.space(-1.2),q.Z.space(.8),q.Z.space(.8)),Yt=B.ZP.div.withConfig({displayName:"StyledIconWrapper"})(It||(It=W()(["\n position: absolute;\n font-size: ",";\n left: -",";\n"])),q.Z.font(2),q.Z.space(1));function Kt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Kt(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Kt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Qt=function e(n){var t,r,o=n.item,i=n.menuTreePath,a=void 0===i?"":i,c=n.typeMapping,s=c[o.menuType];if(!s)return null;var u=s.component,l=s.childrenWrapperComponent,p=null===(t=o.children)||void 0===t?void 0:t.map((function(n){return(0,D.jsx)(e,{item:n,typeMapping:c,menuTreePath:"".concat(a,".").concat(n.name)},n.name)}));return(0,D.jsxs)(zt,$t($t({},o),{},{childrenCount:(null===(r=o.children)||void 0===r?void 0:r.length)||0,"data-cy":"admin-menuitem-".concat(o.name),children:[(0,D.jsx)(u,$t({item:o,menuTreePath:a},s.props)),(null==p?void 0:p.length)>0&&(0,D.jsx)(l,$t($t({item:o,menuTreePath:a},s.props),{},{children:p}))]}))};var Xt,Jt,er=function(e){var n=e.items,t=e.extendedSearchItems,r=e.searchFilter,o=e.typeMapping;if(e.requireSearch&&!r)return null;if(!n||0===n.length)return null;var i=(0,Ft.Xd)(n,r,o),a=t?(0,Ft.Xd)(t,r,o):[],c=i.map((function(e,n){return(0,D.jsx)(Qt,{item:e,typeMapping:o,menuTreePath:e.name},n)})),s=a.map((function(e,n){return(0,D.jsx)(Qt,{item:e,typeMapping:o,menuTreePath:e.name},n)})),u=r&&0===i.length,l=a.length>0,p=(0,D.jsxs)(Bt,{children:[Xt||(Xt=(0,D.jsx)(Vt,{children:(0,D.jsx)(h.Z,{id:"client.admin.navigation.noResults"})})),l&&(0,D.jsxs)(D.Fragment,{children:[Jt||(Jt=(0,D.jsxs)(Ht,{children:[(0,D.jsx)(Yt,{children:(0,D.jsx)(on.Z,{icon:"lightbulb-exclamation"})}),(0,D.jsx)(Gt,{children:(0,D.jsx)(h.Z,{id:"client.admin.navigation.moreResults"})})]})),(0,D.jsx)(qt,{children:s})]})]});return(0,D.jsxs)(Wt,{children:[c,u&&p]})};const nr=s().memo(er);var tr,rr,or,ir,ar,cr,sr,ur=t(27361),lr=t.n(ur),pr=function(e,n){var t=n.canCollapse,r=n.preferencesPrefix,o=n.menuTreePath;return t?!lr()(e.preferences.userPreferences,(0,Ft.f6)(r,o),!0):void 0},dr=H.Z.color("secondaryLight"),fr=(0,B.ZP)(cn.rU).withConfig({displayName:"StyledMenuLink"})(tr||(tr=W()(["\n color: ",";\n text-decoration: none;\n\n &:hover {\n color: ",";\n text-decoration: none; // nice2 reset\n }\n\n &:focus {\n outline: none;\n text-decoration: none; // nice2 reset\n font-weight: ",";\n color: ",";\n }\n\n &.active {\n text-decoration: underline;\n }\n"])),H.Z.color("text"),H.Z.color("secondaryLight"),H.Z.fontWeight("bold"),dr),gr=(0,B.ZP)(cn.rU).withConfig({displayName:"StyledIconLink"})(rr||(rr=W()(["\n opacity: 0;\n color: ",";\n text-decoration: none;\n position: relative;\n margin-left: ",";\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:focus {\n opacity: 1;\n outline: none;\n }\n"])),H.Z.color("text"),q.Z.space(-1),H.Z.color("secondaryLight")),hr=B.ZP.span.withConfig({displayName:"StyledMenuLinkWrapper"})(or||(or=W()(["\n display: inline-block;\n padding-top: ",";\n padding-bottom: ",";\n\n &:hover "," {\n opacity: 1;\n }\n"])),q.Z.space(-2),q.Z.space(-2),gr),mr=B.ZP.span.withConfig({displayName:"StyledTogglerIconWrapper"})(ir||(ir=W()(["\n display: none;\n margin-left: ",";\n\n &:hover {\n color: ",";\n }\n"])),q.Z.space(-1),H.Z.color("secondaryLight")),yr=B.ZP.span.withConfig({displayName:"StyledMenuEntry"})(ar||(ar=W()(["\n color: ",";\n font-weight: ",";\n margin-bottom: ",";\n margin-top: ",";\n display: flex;\n\n &:hover {\n ","\n\n "," {\n display: block;\n }\n }\n"])),H.Z.color("text"),H.Z.fontWeight("bold"),q.Z.space(-1.2),q.Z.space(-1.2),(function(e){return e.onClick?"cursor: pointer;":"cursor: auto;"}),mr),vr=B.ZP.span.withConfig({displayName:"StyledMenuIconWrapper"})(cr||(cr=W()(["\n margin-right: ",";\n"])),q.Z.space(-1.2)),xr=B.ZP.div.withConfig({displayName:"StyledMenuChildrenWrapper"})(sr||(sr=W()(["\n display: ",";\n"])),(function(e){return e.isOpen?"block":"none"}));function br(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function wr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?br(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):br(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Or=function(e){var n=e.item,t=e.isOpen,r=e.canCollapse,o=e.preferencesPrefix,i=e.menuTreePath,a=e.saveUserPreferences,c=n.icon,s=n.label,u=function(){return a(v()({},(0,Ft.f6)(o,i),t))};return(0,D.jsxs)(yr,wr(wr({},r?{onClick:u}:{}),{},{children:[(0,D.jsxs)("span",{children:[c&&(0,D.jsx)(vr,{children:(0,D.jsx)(on.Z,{icon:c})}),s]}),r&&(0,D.jsx)(mr,{children:(0,D.jsx)(on.Z,{icon:t?"chevron-up":"chevron-down",onClick:u})})]}))};var jr={saveUserPreferences:Ce.RK};const Pr=(0,o.connect)((function(e,n){return{isOpen:pr(e,n)}}),jr)((0,r.ZP)(Or));const Zr=function(e){var n=e.isOpen,t=e.canCollapse,r=e.children;return(0,D.jsx)(xr,{isOpen:!t||n,children:(!t||n)&&r})};const Sr=(0,o.connect)((function(e,n){return{isOpen:pr(e,n)}}))((0,r.ZP)(Zr));var Er;const kr=function(e){var n=e.onClick,t=e.item,r="entity"===t.matchingAttribute?(0,D.jsxs)(D.Fragment,{children:[" (",t.entity,")"]}):"";return(0,D.jsxs)(hr,{children:[(0,D.jsxs)(fr,{"data-quick-navigation":!0,onClick:n,to:"/e/".concat(t.entity),children:[t.label,r]}),(0,D.jsx)(gr,{to:"/e/".concat(t.entity),target:"_blank",rel:"noreferrer",children:Er||(Er=(0,D.jsx)(on.Z,{icon:"external-link"}))})]})};var Cr;const Tr=function(e){var n=e.onClick,t=e.item;return(0,D.jsxs)(hr,{children:[(0,D.jsx)(fr,{"data-quick-navigation":!0,onClick:n,to:"/e/action/".concat(t.name),children:t.label}),(0,D.jsx)(gr,{to:"/e/action/".concat(t.name),target:"_blank",rel:"noreferrer",children:Cr||(Cr=(0,D.jsx)(on.Z,{icon:"external-link"}))})]})};var Dr,Rr,Nr,Ar,Ir,_r,Lr,Ur,Fr,Mr,zr=t(86001),Wr=t(11347),Br=H.Z.color("secondary"),Gr=H.Z.color("secondaryLight"),qr=B.ZP.nav.withConfig({displayName:"StyledNav"})(Dr||(Dr=W()(["\n height: 100%;\n display: flex;\n flex-direction: column;\n\n "," {\n margin: "," "," "," ",";\n }\n"])),zr.I,q.Z.space(.2),q.Z.space(1.25),q.Z.space(.5),q.Z.space(.5)),Vr=(B.ZP.span.withConfig({displayName:"StyledMenuEntry"})(Rr||(Rr=W()(["\n display: inline-block;\n color: ",";\n font-weight: ",";\n margin-bottom: ",";\n margin-top: ",";\n"])),H.Z.color("text"),H.Z.fontWeight("bold"),q.Z.space(-1.2),q.Z.space(-1.2)),B.ZP.div.withConfig({displayName:"StyledTabsContainer"})(Nr||(Nr=W()(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: ",";\n padding: 0 ",";\n border-bottom: 3px solid ",";\n\n &:focus {\n background-color: transparent;\n }\n"])),q.Z.space(-.37),q.Z.space(.6),H.Z.color("backgroundBody"))),Hr=B.ZP.div.withConfig({displayName:"StyledActiveTabLabel"})(Ar||(Ar=W()(["\n ","\n flex-grow: 1;\n"])),(0,Mt.Z)({fontSize:q.Z.font(2.9),fontWeight:H.Z.fontWeight("bold"),color:H.Z.color("secondary")})),Yr=(0,B.ZP)(Xn.Z).withConfig({displayName:"StyledNavIconButton"})(Ir||(Ir=W()(["\n overflow: hidden;\n flex: ",";\n justify-content: center;\n border-radius: 0;\n margin: ",";\n border-top: 5px solid ",";\n font-weight: ",";\n font-size: ",";\n padding-top: ",";\n padding-bottom: calc("," - 5px); /* subtract border-top width of 5px */\n ",";\n\n &:hover {\n border-color: ",";\n background-color: transparent;\n color: ",";\n }\n\n &:focus {\n background-color: transparent;\n }\n\n & > * {\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),(function(e){return e.narrow?.2:1}),q.Z.space(-.7),(function(e){return e.active?Br:"transparent"}),H.Z.fontWeight("bold"),q.Z.font(3),q.Z.space(-1.1),q.Z.space(-1.1),(function(e){return e.active&&(0,B.iv)(_r||(_r=W()(["\n color: ",";\n "])),Br)}),(function(e){return e.active?Br:Gr}),(function(e){return e.active?Br:Gr})),Kr=B.ZP.div.withConfig({displayName:"StyledSearchBoxWrapper"})(Lr||(Lr=W()(["\n height: 50px;\n padding-bottom: ",";\n"])),q.Z.space(-.5)),$r=B.ZP.div.withConfig({displayName:"StyledMenuWrapper"})(Ur||(Ur=W()(["\n height: 100%;\n overflow: auto;\n padding: "," "," 0 ",";\n ","\n"])),q.Z.space(.6),q.Z.space(.6),q.Z.space(.6),Wr.C),Qr=B.ZP.div.withConfig({displayName:"StyledMenuButtonsWrapper"})(Fr||(Fr=W()(["\n position: absolute;\n right: ",";\n z-index: 1;\n display: flex;\n justify-content: flex-end;\n padding: 0;\n"])),q.Z.space(.6)),Xr=(0,B.ZP)(Xn.Z).withConfig({displayName:"StyledMenuButton"})(Mr||(Mr=W()(["\n font-size: ",";\n justify-content: center;\n border-radius: 0;\n padding: 0;\n\n &:hover,\n &:focus {\n background-color: transparent;\n color: ",";\n }\n"])),q.Z.font(0),Gr),Jr=function(e){var n=e.onClick,t=e.hasFilterApplied,r=e.preferencesPrefix,o=!t&&void 0!==r;return{menu:{component:Pr,childrenWrapperComponent:Sr,filterAttributes:["label"],props:{preferencesPrefix:r,canCollapse:o}},"entity-explorer":{component:kr,childrenWrapperComponent:Sr,props:{onClick:n,preferencesPrefix:r,canCollapse:o},filterAttributes:["label","entity"]},action:{component:Tr,childrenWrapperComponent:Sr,props:{onClick:n,preferencesPrefix:r,canCollapse:o},filterAttributes:["label"]}}};const eo=function(e){var n,t=e.modulesMenuTree,r=e.settingsMenuTree,o=e.systemMenuTree,i=e.completeMenuTree,a=e.menuOpen,s=e.onClick,u=e.activeMenuTab,l=e.setActiveMenuTab,p=e.intl,d=e.saveUserPreferences,g=(0,c.useRef)(null),h=(0,c.useRef)(null),m=(0,c.useState)(""),y=f()(m,2),x=y[0],b=y[1],w=Boolean(x),O=!w&&[Ft.LG.MODULES,Ft.LG.SETTINGS].includes(u),j=(0,c.useCallback)((function(e){return p.formatMessage({id:e})}),[p]),P=(0,c.useMemo)((function(){var e;return e={},v()(e,Ft.LG.MODULES,{items:t,preferencesPrefix:"",label:j("client.admin.navigation.modules"),icon:"cube"}),v()(e,Ft.LG.COMPLETE,{items:i,label:j("client.admin.navigation.complete"),icon:"chart-network"}),v()(e,Ft.LG.SETTINGS,{items:r,preferencesPrefix:"settings",label:j("client.admin.navigation.settings"),icon:"cog"}),v()(e,Ft.LG.SYSTEM,{items:o,label:j("client.admin.navigation.system"),icon:"laptop-code"}),e}),[j,t,i,r,o]),Z=(0,c.useMemo)((function(){return Jr({onClick:s,hasFilterApplied:w,preferencesPrefix:P[Ft.LG.MODULES].preferencesPrefix})}),[s,w,P]),S=(0,c.useMemo)((function(){return Jr({onClick:s,hasFilterApplied:w,preferencesPrefix:P[Ft.LG.SETTINGS].preferencesPrefix})}),[s,w,P]),E=(0,c.useMemo)((function(){return Jr({onClick:s,hasFilterApplied:w})}),[s,w]),k=(0,c.useMemo)((function(){return Jr({onClick:s,hasFilterApplied:w})}),[s,w]);(0,c.useEffect)((function(){a&&(u||l(Ft.LG.MODULES),g.current.select())}),[a,u,l]),(0,c.useEffect)((function(){a&&g.current&&setTimeout((function(){g.current.focus()}),10)}),[u,a]);var C=Object.keys(Ft.LG).map((function(e){return Ft.LG[e]})).filter((function(e){var n;return(null===(n=P[e].items)||void 0===n?void 0:n.length)>0})).map((function(e){return(0,D.jsx)(Yr,{active:u===e,onMouseDown:function(n){l(e),n.preventDefault()},title:P[e].label,icon:P[e].icon},e)}));return(0,D.jsxs)(qr,{ref:h,onKeyDown:function(e){var n,t,r;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),n=e.key,t=h.current.querySelectorAll('a[data-quick-navigation="true"], input'),(r=Lt()(t).findIndex((function(e){return document.activeElement.isEqualNode(e)})))>-1&&t[(r+("ArrowDown"===n?1:t.length-1))%t.length].focus())},"data-cy":"admin-nav",children:[(0,D.jsxs)(Vr,{children:[(0,D.jsx)(Hr,{children:null===(n=P[u])||void 0===n?void 0:n.label}),(0,D.jsx)("div",{children:C})]}),(0,D.jsx)(Kr,{children:(0,D.jsx)(Ut.Z,{minInputLength:2,onSearch:b,ref:g,placeholder:j("client.admin.navigation.searchBoxPlaceHolder"),"aria-label":j("client.admin.navigation.searchBoxPlaceHolder")})}),(0,D.jsxs)($r,{children:[O&&(0,D.jsxs)(Qr,{children:[(0,D.jsx)(Xr,{icon:"chevron-double-down",type:"button",onClick:function(){var e=P[u]||{},n=e.items,t=e.preferencesPrefix;if(n&&void 0!==t){var r=(0,Ft.GI)(n,t,!1);d(r)}},title:j("client.admin.navigation.expandAll")}),(0,D.jsx)(Xr,{icon:"chevron-double-up",type:"button",onClick:function(){var e=P[u]||{},n=e.items,t=e.preferencesPrefix;if(n&&void 0!==t){var r=(0,Ft.GI)(n,t,!0);d(r)}},title:j("client.admin.navigation.collapseAll")})]}),u===Ft.LG.MODULES&&(0,D.jsx)(nr,{items:t,searchFilter:x,typeMapping:Z,extendedSearchItems:i}),u===Ft.LG.SETTINGS&&(0,D.jsx)(nr,{items:r,searchFilter:x,typeMapping:S,extendedSearchItems:i}),u===Ft.LG.SYSTEM&&(0,D.jsx)(nr,{items:o,searchFilter:x,typeMapping:E,extendedSearchItems:i}),u===Ft.LG.COMPLETE&&(0,D.jsx)(nr,{items:i,searchFilter:x,typeMapping:k,requireSearch:!0})]})]})};var no={setActiveMenuTab:ke.il,saveUserPreferences:Ce.RK};const to=(0,o.connect)((function(e,n){return{settingsMenuTree:e.navigation.settingsMenuTree,modulesMenuTree:e.navigation.modulesMenuTree,systemMenuTree:e.navigation.systemMenuTree,completeMenuTree:e.navigation.completeMenuTree,menuOpen:e.navigation.menuOpen,activeMenuTab:e.navigation.activeMenuTab}}),no)((0,r.ZP)(eo));var ro,oo,io,ao=t(19755),co=t.n(ao),so=function(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))};so(),window.addEventListener("resize",(function(){return so()})),window.addEventListener("orientationchange",(function(){return so()}));var uo,lo,po,fo,go,ho,mo,yo,vo,xo,bo=B.ZP.div.withConfig({displayName:"StyledWrapper"})(ro||(ro=W()(["\n display: grid;\n grid-template:\n 'header header' auto\n 'menu content' 1fr / auto 1fr;\n background-color: ",";\n height: calc(var(--vh, 1vh) * 100);\n\n .bm-burger-button button:focus {\n outline: 0;\n }\n"])),H.Z.color("paper")),wo=B.ZP.div.withConfig({displayName:"StyledContent"})(oo||(oo=W()(["\n grid-area: content;\n background-color: ",";\n overflow: hidden;\n display: flex;\n"])),H.Z.color("backgroundBody")),Oo=(0,B.ZP)(co()).withConfig({displayName:"StyledMenu"})(io||(io=W()(["\n grid-area: menu;\n"]))),jo={bmBurgerButton:{position:"absolute",outline:"0",width:"24px",height:"24px",left:"17px",top:"12px",zIndex:3},bmMenuWrap:{position:"fixed",height:"100%",width:"16%",minWidth:"350px"},bmMenu:{background:"#fff",padding:"0 0 3rem 0",fontSize:"1.15em",overflow:"hidden"},bmItemList:{height:"100%"},bmItem:{display:"inline-block"},bmOverlay:{background:"rgba(0, 0, 0, 0.3)"}};function Po(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Zo(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Po(Object(t),!0).forEach((function(n){v()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Po(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const So=(0,B.Zz)((function(e){var n=e.initializeNavigation,t=e.setMenuOpen,r=e.menuOpen,o=e.baseRoute,a=e.confirm,s=e.loadPrincipal,u=e.loadSettingsAndPreferences,p=e.adminAllowed,d=(0,c.useState)(null),g=f()(d,2),m=g[0],y=g[1];(0,c.useEffect)((function(){v(),n(),s(),u()}),[]);var v=function(){var e=(0,Te.lX)(Zo(Zo({},o&&{basename:o}),{},{getUserConfirmation:function(e,n){a("",e,uo||(uo=(0,D.jsx)(h.Z,{id:"client.common.ok"})),lo||(lo=(0,D.jsx)(h.Z,{id:"client.common.cancel"})),(function(){return n(!0)}),(function(){return n(!1)}))}}));y(e)},x=p&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Oo,{isOpen:r,onStateChange:function(e){e.isOpen!==r&&t(e.isOpen)},customCrossIcon:!1,customBurgerIcon:(0,D.jsx)(Ae,{isOpen:r}),styles:jo,children:(0,D.jsx)(to,{onClick:function(){t(!1),_e.Z.clearPersistedViews()}})}),(0,D.jsx)(wo,{children:(0,D.jsxs)(De.rs,{children:[(0,D.jsx)(De.AW,{exact:!0,path:"/",render:function(e){var n=e.match;return(0,D.jsx)(De.l_,{to:"".concat(n.url.replace(/\/$/,""),"/dashboard")})}}),po||(po=(0,D.jsx)(De.l_,{exact:!0,from:"/dashboard/reload",to:"/dashboard"})),fo||(fo=(0,D.jsx)(De.AW,{exact:!0,path:"/dashboard",component:Le.Z})),go||(go=(0,D.jsx)(De.AW,{path:"/e",component:Ke})),ho||(ho=(0,D.jsx)(De.AW,{path:"/s",component:Xe})),mo||(mo=(0,D.jsx)(De.AW,{path:"/docs",component:Me})),(0,D.jsx)(De.AW,{render:function(e){var n=e.match;return(0,D.jsx)(De.l_,{to:"".concat(n.url.replace(/\/$/,""),"/dashboard")})}})]})})]}),b=!1===p&&(yo||(yo=(0,D.jsx)(wo,{children:(0,D.jsx)(en.Z,{title:(0,D.jsx)(h.Z,{id:"client.admin.error.no_roles.title"}),message:(0,D.jsx)(h.Z,{id:"client.admin.error.no_roles.message"})})})));return(0,D.jsx)(l.Z,{required:[null!==m],children:(0,D.jsxs)(De.F0,{history:m||{},children:[vo||(vo=(0,D.jsx)(Ie.Z,{})),(0,D.jsx)(i.Z.Notifications,{navigationStrategy:(0,$n.ZP)()}),(0,D.jsxs)(bo,{children:[xo||(xo=(0,D.jsx)(Et,{})),x||b]})]})})}));var Eo={loadPrincipal:p.H8,confirm:i.Z.confirm,initializeNavigation:ke.ai,setMenuOpen:ke.gG,loadSettingsAndPreferences:Ce.R$};const ko=(0,o.connect)((function(e,n){return{baseRoute:e.input.baseRoute,menuOpen:e.navigation.menuOpen,adminAllowed:e.login.adminAllowed}}),Eo)((0,r.ZP)(So));var Co,To,Do;const Ro=function(e){var n=e.doSessionCheck,t=e.loggedIn;return(0,c.useEffect)((function(){n()}),[n]),(0,D.jsxs)("div",{children:[Co||(Co=(0,D.jsx)(u.q,{defer:!1,children:(0,D.jsx)("title",{children:"Tocco"})})),(0,D.jsx)(l.Z,{required:[void 0!==t],loadingText:"Logging in...",children:(0,D.jsx)("div",{children:t?Do||(Do=(0,D.jsx)(ko,{})):To||(To=(0,D.jsx)(Oe,{}))})})]})};var No={doSessionCheck:a.Z.doSessionCheck,confirm:i.Z.confirm};const Ao=(0,o.connect)((function(e,n){return{loggedIn:e.login.loggedIn}}),No)((0,r.ZP)(Ro))},98235:(e,n,t)=>{t.d(n,{Z:()=>vt});var r=t(74806),o=t(46458),i=t(50600),a=(t(9230),t(1024)),c=t.n(a),s=t(59713),u=t.n(s),l=t(45697),p=t.n(l),d=t(34871),f=t(47490),g="dashboard/LOAD_DASHBOARD",h="dashboard/SET_DASHBOARD",m="dashboard/SAVE_INFOBOX_POSITIONS",y="dashboard/SAVE_INFOBOX_HEIGHT",v="dashboard/DISPLAY_INFOBOX_SETTINGS_MODAL",x="dashboard/RESET_INFOBOX_SETTINGS",b=function(e){return{type:h,payload:{infoBoxes:e}}},w=t(319),O=t.n(w),j=t(63038),P=t.n(j),Z=t(50258),S=t(75093),E=t(21147),k=t(40087),C=t.n(k),T=t(59242),D=t.n(T);const R={Column:"Column",InfoBox:"InfoBox"};var N="InfoBox",A="DropPreview";function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L,U,F,M=function(e){return e.sort((function(e,n){return e.col===n.col?e.row-n.row:e.col-n.col}))},z=C()((function(e){return e.reduce((function(e,n){var t=e.index,r=e.boxes,o="number"==typeof t[n.col]?t[n.col]+1:0;return{boxes:[].concat(O()(r),[_(_({},n),{},{row:o})]),index:_(_({},t),{},u()({},n.col,o))}}),{index:{},boxes:[]}).boxes})),W=C()((function(e,n,t,r){var o,i=null===(o=r.find((function(e){return e.id===n})))||void 0===o?void 0:o.col,a=r.find((function(n){return n.id===e}));return z(r.reduce((function(r,o){var c=o.id===n;return o.id===e?r:[].concat(O()(r),O()(t===S.Z.DropPosition.Top&&c?[_(_({},a),{},{col:i,row:-1})]:[]),[o],O()(t===S.Z.DropPosition.Bottom&&c?[_(_({},a),{},{col:i,row:-1})]:[]))}),[]))})),B=t(44012),G=t(5399),q=t(87686),V=t(28655),H=t.n(V),Y=t(32678),K=Y.ZP.div.withConfig({displayName:"StyledMenuWrapper"})(L||(L=H()(["\n display: flex;\n justify-content: flex-end;\n"]))),$=t(85893);const Q=function(e){var n=e.displayInfoBoxSettings,t=e.resetInfoBoxSettings;return(0,$.jsx)(K,{children:(0,$.jsxs)(G.Z,{buttonProps:{icon:"ellipsis-v"},children:[(0,$.jsx)(q.Z,{onClick:n,children:U||(U=(0,$.jsx)(B.Z,{id:"client.dashboard.preferences.show"}))}),(0,$.jsx)(q.Z,{onClick:t,children:F||(F=(0,$.jsx)(B.Z,{id:"client.dashboard.preferences.reset"}))})]})})};var X={displayInfoBoxSettings:function(){return{type:v}},resetInfoBoxSettings:function(){return{type:x}}};const J=(0,o.connect)(null,X)((0,r.ZP)(Q));var ee,ne,te=t(40953),re=t(7281),oe=t(88601),ie="50px",ae=Y.ZP.div.withConfig({displayName:"StyledInfoBoxWrapper"})(ee||(ee=H()(["\n box-sizing: border-box;\n border: 1px solid ",";\n height: ",";\n min-height: ",";\n padding: ",";\n background: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n /**\n * Workaround:\n * so that ghost-image on drag and drop is taken correctly\n * when having an absolute position element inside the InfoBox (e.g. entity-list)\n */\n position: relative;\n z-index: 1;\n"])),te.m.shade1,(function(e){var n=e.height;return n?"".concat(n,"px"):"auto"}),ie,re.Z.space(-.5),oe.Z.color("paper")),ce=Y.ZP.div.withConfig({displayName:"StyledDroppedPreview"})(ne||(ne=H()(["\n border: 2px dashed ",";\n box-sizing: border-box;\n height: ",";\n min-height: ",";\n width: 100%;\n padding: ",";\n margin: ",";\n background: ",";\n"])),oe.Z.color("primary"),(function(e){var n=e.height;return"".concat(n,"px")}),ie,re.Z.space(-.5),re.Z.space(-.5),oe.Z.color("paper"));function se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}const ue=function(e){return(0,$.jsx)(ce,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e))};var le,pe=t(6479),de=t.n(pe),fe=t(34206),ge=t(44759),he=t(91371),me=t(11347),ye=Y.ZP.div.withConfig({displayName:"StyledInfoBoxContentWrapper"})(le||(le=H()(["\n flex: 1;\n ","\n ","\n"])),(function(e){return e.scrollable&&"overflow: auto;"}),me.C);const ve=function(e){var n=e.content.text;return(0,$.jsx)(ye,{scrollable:!0,children:(0,$.jsx)(he.Z,{type:"html",value:n})})};var xe=t(79217),be=t(6699);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var je=(0,r.ZP)((function(e){var n,t=e.entityKey,r=e.entityModel,o=e.children,i=e.intl;return(0,$.jsx)(be.Z,{"aria-label":(n="client.component.navigationStrategy.detailLinkRelative",i.formatMessage({id:n})),to:"/e/".concat(r,"/").concat(t),children:o})})),Pe=function(e){return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return e.split(/\s+/)})).map((function(e){return{field:e[0],order:e[1]||"asc"}})):[]};const Ze=function(e){var n=e.id,t=e.content,r=e.navigationStrategy,o=e.emitAction,i=t.searchFilterUniqueId,a=t.entityName,c=t.scope,s=t.limit,u=t.orderBy;return(0,$.jsx)(ye,{scrollable:!0,children:(0,$.jsx)(xe.ZP,{id:n,limit:s,entityName:a,formName:a,searchFilters:[i],scope:c,showActions:!1,onRowClick:function(e){var n=e.id;r.openDetail(a,n,!1)},searchFormType:"fulltext",searchFormPosition:"top",selectionStyle:"none",sortable:!0,disableSelectionController:!0,emitAction:o,navigationStrategy:Oe(Oe({},r),{},{DetailLinkRelative:je}),showLink:!0,sorting:Pe(u),scrollBehaviour:"inline",tableMinHeight:"240px"})})};var Se={emitAction:function(e){return i.Z.dispatchEmittedAction(e)}};const Ee=(0,o.connect)((function(e){return{navigationStrategy:e.input.navigationStrategy}}),Se)((0,r.ZP)(Ze));var ke;var Ce={htmlfield:ve,searchfilter:Ee},Te=function(e){var n=e.id,t=e.content;return t?function(e,n,t){return Ce[e]?c().createElement(Ce[e],{id:n,content:t}):(ge.Z.logError("No Content mapper defined for type",e,n),ke||(ke=(0,$.jsx)("div",{})))}(t.type,n,t):null};Te.propTypes={id:p().string.isRequired,content:p().object.isRequired};const De=Te;var Re=["id","label","height","content"];function Ne(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ne(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Ie=function(e){var n=e.id,t=e.label,r=e.height,o=e.content,i=de()(e,Re);return(0,$.jsxs)(ae,Ae(Ae({},i),{},{height:r,children:[(0,$.jsx)(fe.ZP.H3,{children:t}),(0,$.jsx)(De,{id:n,content:o})]}))};var _e,Le,Ue,Fe,Me,ze=t(27361),We=t.n(ze),Be=t(58664),Ge=Y.ZP.div.withConfig({displayName:"StyledDashboardWrapper"})(_e||(_e=H()(["\n width: 100%;\n height: calc(100% - 75px); // ~75px the height of header and breadcrumbs\n background: ",";\n padding: "," "," "," ",";\n overflow-y: scroll;\n box-sizing: border-box;\n position: absolute;\n ","\n"])),oe.Z.color("paper"),re.Z.space(-.5),re.Z.space(-2),re.Z.space(-.5),re.Z.space(-.5),me.C),qe=Y.ZP.div.withConfig({displayName:"StyledColumnWrapper"})(Le||(Le=H()(["\n display: flex;\n flex-wrap: nowrap;\n"]))),Ve=Y.ZP.div.withConfig({displayName:"StyledColumn"})(Ue||(Ue=H()(["\n width: 50%;\n display: flex;\n flex-wrap: wrap;\n align-content: flex-start;\n position: relative;\n"]))),He=Y.ZP.div.withConfig({displayName:"StyledInfoBoxWrapper"})(Fe||(Fe=H()(["\n position: relative;\n width: 100%;\n margin: ",";\n"])),re.Z.space(-.5)),Ye=Y.ZP.div.withConfig({displayName:"StyledResizeHandle"})(Me||(Me=H()(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n background: ",";\n opacity: ",";\n height: 3px;\n cursor: row-resize;\n"])),(function(e){var n=e.theme;return(0,Be.HO)(We()(n,"colors.paper"),3)}),(function(e){return e.isReszing?1:0}));const Ke=function(e){var n=e.infoBox,t=e.isResizing,r=e.startResize,o=e.onDragStart,i=e.onDragEnter,a=e.onDragOver,c=e.onDrop,s=n.id,u=n.type,l=n.label,p=n.height,d=n.content;return(0,$.jsxs)(He,{id:"infobox-".concat(s),children:[(0,$.jsx)(Ie,{id:s,label:l,height:p,content:d,draggable:!0,onDragStart:o,onDragEnter:i,onDragOver:a,onDrop:c}),(0,$.jsx)(Ye,{onMouseDown:r,isReszing:t})]},"".concat(u,"-").concat(s))};function $e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$e(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$e(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const Xe=function(e){var n=e.onDragEnter,t=e.onDragOver,r=e.onDrop,o=e.infoBoxes,i=e.resizeState,a=e.startResize,c=e.dndState,s=e.makeDndEvents,u=c.currentlyDragOver,l=i.isResizing,p=i.resizingElement,d=o.map((function(e){var n=e.id,t=e.height,r=e.type;return r===A?(0,$.jsx)(ue,Qe({height:t},s(u)),"".concat(r,"-").concat(n)):(0,$.jsx)(Ke,Qe(Qe({id:"infobox-".concat(n),infoBox:e,isResizing:l&&p===n},s({type:R.InfoBox,id:n})),{},{startResize:a(n)}),"".concat(r,"-").concat(n))}));return(0,$.jsx)(Ve,{onDragEnter:n,onDragOver:t,onDrop:r,children:d})};var Je;function en(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?en(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):en(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const tn=function(e){var n=e.infoBoxes,t=e.saveInfoBoxHeight,r=e.saveInfoBoxPositions,o=(null==n?void 0:n.length)>=0,i=(0,a.useState)(n||[]),c=P()(i,2),s=c[0],u=c[1];(0,a.useEffect)((function(){u(n||[])}),[n]);var l=O()(Array(2).keys()),p=(0,a.useRef)(null),d=(0,a.useCallback)((function(e){return p.current.querySelector("#infobox-".concat(e))}),[]),f=(0,a.useCallback)((function(e){var n,r=null===(n=s.find((function(n){return n.id===e})))||void 0===n?void 0:n.height;t(e,r)}),[s,t]),g=(0,a.useCallback)((function(e,n){var t=n.height;u((function(n){return O()(n.map((function(n){return n.id===e?nn(nn({},n),{},{height:t}):n})))}))}),[]),h=E.Z.useResize(d,g,f),m=h.startResize,y=h.resizingEvents,v=h.resizeState,x=S.Z.useDnD((function(e,n,t){var o=e.id,i=n.type,a=n.id;if(i===R.Column){var c=function(e,n,t){var r=t.find((function(n){return n.id===e}));return z([].concat(O()(M(t).filter((function(n){return n.id!==e}))),[_(_({},r),{},{col:n,row:-1})]))}(o,a,s);u(c),r(c)}else if(o!==a){var l=function(e,n,t,r){return D()([M,W(e,n,t)])(r)}(o,a,t,s);u(l),r(l)}}),s),b=x.dndEvents,w=x.dndState,j=w.currentlyDragOver,k=w.currentlyDragging,C=w.dropPosition,T=(k||{}).id,I=l.map((function(e){var n=b({type:R.Column,id:e}),t=n.onDragEnter,r=n.onDragOver,o=n.onDrop,i=function(e,n,t,r,o){var i=n||{},a=i.type,c=i.id,s=c===e&&a===R.InfoBox,u=_(_({},o.find((function(n){return n.id===e}))),{},{type:A}),l=o.filter((function(n){var t=n.folded,o=n.col,i=n.id;return!(t||o!==r||void 0!==c&&!s&&i===e)})).map((function(e){return _(_({},e),{},{type:N})})).reduce((function(n,r){var o=r.id===c&&a===R.InfoBox&&!s;return[].concat(O()(n),O()(t===S.Z.DropPosition.Top&&o?[u]:[]),[r.id===e&&s?_(_({},r),{},{type:A}):r],O()(t===S.Z.DropPosition.Bottom&&o?[u]:[]))}),[]);return a===R.Column&&c===r&&(l=[].concat(O()(l),[u])),l}(T,j,C,e,s);return(0,$.jsx)(Xe,{onDragEnter:t,onDragOver:r,onDrop:o,infoBoxes:i,resizeState:v,startResize:m,dndState:w,makeDndEvents:b},e)}));return(0,$.jsx)(Ge,nn(nn({ref:p},y),{},{children:(0,$.jsxs)(Z.Z,{required:[o],children:[Je||(Je=(0,$.jsx)(J,{})),(0,$.jsx)(qe,{children:I})]})}))};var rn={saveInfoBoxPositions:function(e){return{type:m,payload:{infoBoxes:e}}},saveInfoBoxHeight:function(e,n){return{type:y,payload:{id:e,height:n}}}};const on=(0,o.connect)((function(e){return{infoBoxes:e.dashboard.infoBoxes}}),rn)((0,r.ZP)(tn));var an=t(81770),cn=u()({},h,an.Z.singleTransferReducer("infoBoxes")),sn={infoBoxes:void 0};const un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sn,n=arguments.length>1?arguments[1]:void 0,t=cn[n.type];return t?t(e,n):e};var ln,pn,dn,fn,gn=t(87757),hn=t.n(gn),mn=t(44422),yn=t(34857),vn=t(63094),xn=t(65035),bn=t(36589),wn=t(69829),On=Y.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(ln||(ln=H()(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),re.Z.space(0),oe.Z.color("paper"),bn.Z),jn=Y.ZP.ul.withConfig({displayName:"StyledUl"})(pn||(pn=H()(["\n list-style-type: none;\n margin-top: ",";\n padding-left: ",";\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0;\n }\n"])),re.Z.space(-.5),re.Z.space(-.5),wn.ar),Pn=Y.ZP.input.withConfig({displayName:"StyledCheckbox"})(dn||(dn=H()(["\n vertical-align: top;\n margin-right: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),re.Z.space(-1));function Zn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Sn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Zn(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Zn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const En=function(e){var n=e.initialInfoBoxes,t=e.onOk,r=(0,a.useState)(n||[]),o=P()(r,2),i=o[0],c=o[1],s=i.map((function(e){return(0,$.jsxs)(fe.ZP.Li,{children:[(0,$.jsx)(Pn,{type:"checkbox",checked:!e.folded,onChange:function(){return n=e.id,void c((function(e){return e.reduce((function(e,t){return[].concat(O()(e),[Sn(Sn({},t),{},{folded:t.id===n?!t.folded:t.folded})])}),[])}));var n},id:e.id}),(0,$.jsx)(fe.ZP.Label,{for:e.id,children:e.label})]},e.id)}));return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(jn,{children:s}),(0,$.jsx)(On,{children:(0,$.jsx)(xn.Z,{type:"button",onClick:function(){return t(i)},look:"raised",children:fn||(fn=(0,$.jsx)(B.Z,{id:"client.common.ok"}))})})]})};function kn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Cn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?kn(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Tn=function(e){return null===e.position},Dn=function(e){var n=e.filter(Tn),t=e.filter((function(e){return!Tn(e)}));return n.reduce((function(e,n){var t=function(e){var n=O()(Array(2).keys()).reduce((function(n,t){return Cn(Cn({},n),{},u()({},t,e.filter((function(e){return e.col===t})).length))}),{}),t=Object.keys(n).reduce((function(e,t){var r=parseInt(t,10);return n[r]<e.numberOfBoxes?{col:r,numberOfBoxes:n[r]}:e}),{col:-1,numberOfBoxes:Number.MAX_VALUE});return-1===t.col?{col:0,numberOfBoxes:0}:t}(e),r=t.col,o=t.numberOfBoxes;return[].concat(O()(e),[Cn(Cn({},n),{},{col:r,row:o})])}),t)},Rn=function(e){return M(Dn(e.map((function(e){return Cn(Cn({},e),function(e){if(!e)return{col:0,row:0};var n=e.split(":"),t=parseInt(n[0],10)-1,r=parseInt(n[1],10);return{col:Math.max(0,t),row:r}}(e.position))}))))};function Nn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var In=hn().mark(Gn),_n=hn().mark(qn),Ln=hn().mark(Vn),Un=hn().mark(Hn),Fn=hn().mark(Yn),Mn=hn().mark(Kn),zn=hn().mark($n),Wn=hn().mark(Qn),Bn=function(e){return e.dashboard};function Gn(){return hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,yn.$6)([(0,yn.RE)(qn),(0,yn.Fm)(g,qn),(0,yn.Fm)(m,Vn),(0,yn.Fm)(y,Hn),(0,yn.ib)(v,Yn),(0,yn.ib)(x,$n)]);case 2:case"end":return e.stop()}}),In)}function qn(){var e,n,t;return hn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={method:"GET"},r.next=3,(0,yn.RE)(vn.Z.requestSaga,"client/dashboard",e);case 3:return n=r.sent,t=n.body.infoboxes,r.next=7,(0,yn.gz)(b(Rn(t)));case 7:return r.abrupt("return",t);case 8:case"end":return r.stop()}}),_n)}function Vn(e){var n,t,r;return hn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=e.payload.infoBoxes,t=n.map((function(e){return An(An({},e),{},{position:(n=e.col,t=e.row,"".concat(n+1,":").concat(t))});var n,t})),r=t.reduce((function(e,n){return An(An({},e),{},u()({},"".concat(n.id,":POSITION"),n.position))}),{}),o.next=5,(0,yn.RE)(Qn,r);case 5:return o.next=7,(0,yn.gz)(b(t));case 7:return o.abrupt("return",t);case 8:case"end":return o.stop()}}),Ln)}function Hn(e){var n,t,r,o,i,a,c;return hn().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return n=e.payload,t=n.id,r=n.height,s.next=3,(0,yn.Ys)(Bn);case 3:return o=s.sent,i=o.infoBoxes,a=i.map((function(e){return An(An({},e),{},{height:e.id===t?r:e.height})})),c=u()({},"".concat(t,":HEIGHT"),r),s.next=9,(0,yn.RE)(Qn,c);case 9:return s.next=11,(0,yn.gz)(b(a));case 11:return s.abrupt("return",a);case 12:case"end":return s.stop()}}),Un)}function Yn(){var e,n,t;return hn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,yn.Ys)(Bn);case 2:return e=r.sent,n=e.infoBoxes,r.next=6,(0,yn.RE)(mn.CE);case 6:return t=r.sent,r.next=9,(0,yn.gz)(f.Z.modal("dashboard-infobox-settings","client.dashboard.preferences.show.title",null,(function(e){var r=e.close;return(0,$.jsx)(En,{initialInfoBoxes:n,onOk:function(e){r(),t.put(e)}})}),!0));case 9:return r.next=11,(0,yn.RE)(Kn,t);case 11:case"end":return r.stop()}}),Fn)}function Kn(e){var n,t;return hn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,yn.qn)(e);case 2:return n=r.sent,t=n.reduce((function(e,n){return An(An({},e),{},u()({},"".concat(n.id,":STATUS"),n.folded?"folded":"open"))}),{}),r.next=6,(0,yn.RE)(Qn,t);case 6:return r.next=8,(0,yn.gz)(b(n));case 8:return r.abrupt("return",n);case 9:case"end":return r.stop()}}),Mn)}function $n(){return hn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,yn.$6)([(0,yn.RE)(vn.Z.deleteUserPreferences,"*:HEIGHT"),(0,yn.RE)(vn.Z.deleteUserPreferences,"*:POSITION"),(0,yn.RE)(vn.Z.deleteUserPreferences,"*:STATUS")]);case 2:return e.next=4,(0,yn.RE)(qn);case 4:case"end":return e.stop()}}),zn)}function Qn(e){return hn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,yn.RE)(vn.Z.savePreferences,e,"/nice2/ui/settings/infoboxes");case 2:case"end":return n.stop()}}),Wn)}const Xn={dashboard:un};var Jn,et=[Gn];function nt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var tt="dashboard",rt=["emitAction"],ot=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=Jn||(Jn=(0,$.jsx)(on,{})),a=d.Z.createStore(Xn,et,n,tt);i.Z.addToStore(a,t.emitAction);var c=!t.emitAction;return f.Z.addToStore(a,c),d.Z.createApp(tt,o,a,{input:n,events:t,actions:[],publicPath:r,textResourceModules:["component","common","entity-list",tt]})},it=function(e){return d.Z.useApp({initApp:ot,props:e,packageName:tt,externalEvents:rt}).component};it.propTypes=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nt(Object(t),!0).forEach((function(n){u()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({navigationStrategy:p().object},rt.reduce((function(e,n){return e[n]=p().func,e}),{}));const at=it;var ct,st,ut,lt=t(98390),pt=t(90169),dt=Y.ZP.div.withConfig({displayName:"StyledWrapper"})(ct||(ct=H()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n height: 100%;\n width: 100%;\n"]))),ft=Y.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(st||(st=H()(["\n grid-area: breadcrumbs;\n"]))),gt=Y.ZP.div.withConfig({displayName:"StyledDashboardWrapper"})(ut||(ut=H()(["\n width: 100%;\n height: 100%;\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n align-items: flex-end;\n grid-area: content;\n\n @media (max-width: 568px) {\n justify-content: center;\n align-items: center;\n }\n"])),oe.Z.color("backgroundBody")),ht=function(e){var n,t=e.match,r=e.history,o=e.emitAction,i=e.intl;return(0,$.jsxs)(dt,{children:[(0,$.jsx)(ft,{children:(0,$.jsx)(lt.Z,{currentView:{display:(n="client.admin.dashboard",i.formatMessage({id:n})),title:"Tocco"},pathPrefix:"/dashboard"})}),(0,$.jsx)(gt,{children:(0,$.jsx)(at,{emitAction:o,navigationStrategy:(0,pt.ZP)(r,t)})})]})};const mt=c().memo(ht,(function(){return!0}));var yt={emitAction:function(e){return i.Z.dispatchEmittedAction(e)}};const vt=(0,o.connect)(null,yt)((0,r.ZP)(mt))},90169:(e,n,t)=>{t.d(n,{ZP:()=>d,z2:()=>u});t(9230);var r=t(74806),o=t(6699),i=t(75354),a=t(87467),c=t(85893),s=(0,r.ZP)((function(e){var n,t=e.entityKey,r=(e.entityModel,e.children),i=e.relation,a=e.intl;return(0,c.jsx)(o.Z,{"aria-label":(n="client.component.navigationStrategy.detailLinkRelative",a.formatMessage({id:n})),to:"".concat(i?i+"/":"").concat(t),children:r})})),u=function(e){var n=e.entityName,t=e.entityKey,r=e.children;return(0,c.jsx)(o.Z,{to:"/e/".concat(n,"/").concat(t),target:"_blank",children:r})},l=function(e){var n=e.entityName,t=e.entityKeys,r=e.children,i=(null==t?void 0:t.length)&&"tql=KEYS("+t.join(",")+")";return(0,c.jsx)(o.Z,{to:{pathname:"/e/".concat(n,"/list"),search:"?".concat(i)},target:"_blank",children:r})},p=function(e){var n=e.entityName,t=e.entityKeys,r=e.children;return 1===(null==t?void 0:t.length)?(0,c.jsx)(u,{entityName:n,entityKey:t[0],children:r}):(0,c.jsx)(l,{entityName:n,entityKeys:t,children:r})};const d=function(e,n){return{DetailLink:u,ListLink:l,ListOrDetailLink:p,DetailLinkRelative:s,navigateToCreateRelative:function(t,r){if(t)e.push({pathname:"".concat(n.url,"/").concat(t,"/create"),state:r});else{var o=(0,a.H)(n.url);e.push({pathname:o+"/create",state:r})}},navigateToActionRelative:function(t,r){var o=(0,a.H)(n.url),c=i.Z.toQueryString({selection:r,actionProperties:t.properties});e.push({pathname:o+"/action/"+t.appId,state:{definition:t,selection:r},search:c})},openDetail:function(n,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o="/e/".concat(n,"/").concat(t);if(r){var i=e.createHref({pathname:o});window.open(i,"_blank")}else e.push({pathname:o})}}}},87467:(e,n,t)=>{t.d(n,{H:()=>r});var r=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=e.replace(/\/$/,""),r=0;r<n;r++)t=t.substring(0,t.lastIndexOf("/"));return t}},12684:(e,n,t)=>{t.d(n,{Z:()=>i});t(46444);var r=t(16159),o=t(85893);const i=function(e){var n=e.value;return(0,o.jsx)(r.ZP,{value:n,renderAs:"svg"})}},75354:(e,n,t)=>{t.d(n,{Z:()=>u});var r=t(13218),o=t.n(r),i=t(66604),a=t.n(i),c=t(17563),s=function(e){if("string"!=typeof e)return!1;try{var n=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(n)}catch(e){return!1}};const u={fromQueryString:function(e){var n=c.parse(e);return a()(n,(function(e){return s(e)?JSON.parse(e):e}))},toQueryString:function(e){var n=a()(e,(function(e){return o()(e)?JSON.stringify(e):e}));return c.stringify(n)}}},74653:(e,n,t)=>{t.d(n,{L:()=>O,r:()=>w});var r=t(59713),o=t.n(r),i=t(10317),a=t.n(i),c=t(34871),s=t(90358),u=t(45430),l=t(44759),p=t(23369),d=t(65378),f=t(28485),g=t(83676),h=t(74483),m=t(85893);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x="password-update",b=["success","resize"],w=function(e,n,t,r,o){var i=!!n.showTitle,a=!!n.forcedUpdate,d=(0,m.jsx)(f.Z,{currentPage:"PASSWORD_UPDATE",showTitle:i});if("string"==typeof n.username&&0!==n.username.length){var y=[g.ak(n.username),g.$3(a)];"boolean"==typeof n.showOldPasswordField&&y.push(g.FO(n.showOldPasswordField));var v=c.Z.createStore(h.Z,h.v,n,x);return p.Z.setInputEnvs(n),u.Z.addToStore(v,t),s.Z.addToStore(v,!0,["console","remote"]),c.Z.createApp(x,d,v,{input:n,actions:y,publicPath:r,textResourceModules:["login"],customTheme:o})}l.Z.logError('Mandatory input "username" is not set on password-update')},O=function(e){return c.Z.useApp({initApp:w,props:e,packageName:x,externalEvents:b}).component};O.propTypes=v({username:a().string,showTitle:a().bool,showOldPasswordField:a().bool,oldPassword:a().string,backendUrl:a().string,appContext:d.Z.propTypes},b.reduce((function(e,n){return v(v({},e),{},o()({},n,a().func))}),{}))},28485:(e,n,t)=>{t.d(n,{Z:()=>qe});var r,o,i,a,c,s,u=t(74806),l=t(46458),p=t(28655),d=t.n(p),f=(t(10317),t(1024)),g=t.n(f),h=t(32678),m=t(48926),y=t.n(m),v=t(63038),x=t.n(v),b=t(87757),w=t.n(b),O=t(98861),j=t(44012),P=t(34206),Z=t(76367),S=t(62510),E=t(35997),k=t(62119),C=t(51032),T=t(65035),D=t(7281),R=t(88601),N=t(32229),A=t(36589),I=h.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(r||(r=d()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n && {\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: 0.7rem;\n padding-bottom: 0.7rem;\n }\n ","\n"])),C.k9),_=h.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(o||(o=d()(["\n && {\n ","\n }\n"])),C.yP),L=(0,h.ZP)(T.Z).withConfig({displayName:"StyledLoginButton"})(i||(i=d()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),D.Z.font(1.3),R.Z.radii("large")),U=(0,h.ZP)(T.Z).withConfig({displayName:"StyledTransparentButton"})(a||(a=d()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),R.Z.color("primary")),F=h.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(c||(c=d()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),N.Z,A.Z),M=t(85893);const z=function(e){var n=e.captchaKey,t=e.changePage,r=e.intl,o=e.login,i=e.loginPending,a=e.message,c=e.password,u=e.recaptchaActivated,l=e.setPassword,p=e.setUsername,d=e.showTitle,h=e.username,m=(0,f.useState)(!1),v=x()(m,2),b=v[0],C=v[1],T=(0,f.useRef)(),D=function(e){return r.formatMessage({id:e})},R=E.Z.usePrevious(u),N=(0,f.useCallback)(function(){var e=y()(w().mark((function e(n){var t;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&n.preventDefault(),t=null,!u){e.next=7;break}return e.next=5,T.current.executeAsync();case 5:t=e.sent,T.current.reset();case 7:o(h,c,t);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[o,h,c,u]),A=function(e){"onAutoFillStart"===e.animationName&&C(!0)};(0,f.useEffect)((function(){u&&!R&&N()}),[u,R,N]);var z=!!h,W=!z;return(0,M.jsxs)(F,{children:[d&&(s||(s=(0,M.jsxs)(g().Fragment,{children:[(0,M.jsx)(P.ZP.H5,{children:(0,M.jsx)(j.Z,{id:"client.login.form.title"})}),(0,M.jsx)(P.ZP.P,{children:(0,M.jsx)(j.Z,{id:"client.login.form.introduction"})})]}))),(0,M.jsxs)("form",{onSubmit:N,children:[(0,M.jsx)(Z.Z,{hasValue:!!h||b,id:"login-username",label:D("client.login.form.userPlaceholder"),children:(0,M.jsx)(_,{children:(0,M.jsx)(I,{autoFocus:W,name:"user","data-cy":"login-form_user-input",onChange:function(e){p(e.target.value),C(!1)},required:!0,type:"text",value:h,onAnimationStart:A,onFocus:function(e){return e.target.select()}})})}),(0,M.jsx)(Z.Z,{hasValue:!!c||b,id:"login-password",label:D("client.login.form.passwordPlaceholder"),children:(0,M.jsx)(_,{children:(0,M.jsx)(I,{autoFocus:z,name:"password","data-cy":"login-form_password-input",onChange:function(e){l(e.target.value),C(!1)},required:!0,type:"password",value:c,onAnimationStart:A,onFocus:function(e){return e.target.select()}})})}),a&&a.text&&(0,M.jsx)(S.ZP.List,{children:(0,M.jsx)(S.ZP.Item,{condition:a.negative?"danger":"base",label:a.text})}),n&&u&&(0,M.jsx)(O.Z,{ref:T,badge:"bottomright",size:"invisible",sitekey:n,hl:r.locale}),(0,M.jsx)(L,{disabled:!b&&(i||""===h||""===c),ink:"primary",look:"raised",label:D("client.login.form.button"),pending:i,type:"submit","data-cy":"login-form_login-button"}),(0,M.jsx)(U,{label:D("client.login.form.forgotLink"),onClick:function(){return t(k.i.PASSWORD_REQUEST)},"data-cy":"login-form_request-button"})]})]})};var W=t(23370),B=t(97324),G={changePage:B.oO,setUsername:B.b6,setPassword:B.FY,login:W.x4};const q=(0,l.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated}}),G)((0,u.ZP)(z));var V,H;const Y=function(e){var n=e.username,t=e.requestPassword,r=e.intl,o=e.showTitle,i=e.pending,a=e.changePage,c=(0,f.useState)(n||""),s=x()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,M.jsxs)(F,{children:[o&&(V||(V=(0,M.jsx)(P.ZP.H5,{children:(0,M.jsx)(j.Z,{id:"client.login.passwordRequest.title"})}))),H||(H=(0,M.jsx)(P.ZP.P,{children:(0,M.jsx)(j.Z,{id:"client.login.passwordRequest.introduction"})})),(0,M.jsxs)("form",{onSubmit:function(e){e.preventDefault(),t(u)},children:[(0,M.jsx)(Z.Z,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,M.jsx)(_,{children:(0,M.jsx)(I,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,M.jsx)(L,{look:"raised",disabled:!u||i,ink:"primary",label:p("client.login.passwordRequest.button"),pending:i,type:"submit","data-cy":"password-request_submit-button"}),(0,M.jsx)(U,{disabled:i,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return a(k.i.LOGIN_FORM)},"data-cy":"password-request_abort-button"})]})]})};var K=t(56746),$={changePage:B.oO,requestPassword:K.GS};const Q=(0,l.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),$)((0,u.ZP)(Y));var X=t(59713),J=t.n(X),ee=t(50258),ne=t(78958),te={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const re=function(e){return(0,M.jsx)(S.ZP.List,{children:(0,M.jsx)(S.ZP.Item,{condition:ne.Z.condition.DANGER,children:(0,M.jsx)(j.Z,{id:(n=e.errorCode,te[n]||"client.login.passwordUpdate.failure")})})});var n};const oe=function(e){return(0,M.jsx)(S.ZP.List,{children:e.rules.map((function(n,t){var r=null,o=n.message;if(e.errors){var i=e.errors[n.name];!0===i?r=ne.Z.condition.DANGER:"string"==typeof i?(r=ne.Z.condition.DANGER,o=i):r=ne.Z.condition.SUCCESS}return(0,M.jsx)(S.ZP.Item,{condition:r,label:o},t)}))})};var ie,ae,ce=h.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(ie||(ie=d()(["\n && {\n ","\n }\n"])),C.k9),se=h.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(ae||(ae=d()(["\n && {\n ","\n }\n"])),C.yP);const ue=function(e){var n=e.value?void 0===e.valid?null:e.valid?ne.Z.condition.SUCCESS:ne.Z.condition.DANGER:null;return(0,M.jsx)(Z.Z,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:n,children:(0,M.jsx)(se,{immutable:!0===e.readOnly,children:(0,M.jsx)(ce,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(n){return e.onChange(n.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var le;const pe=h.ZP.div(le||(le=d()(["\n "," {\n width: 100%;\n }\n"])),A.Z);var de,fe,ge,he,me;function ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(t),!0).forEach((function(n){J()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var xe=h.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(de||(de=d()(["\n margin: 1rem;\n"])));const be=function(e){var n=e.captchaKey,t=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,i=e.intl,a=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,p=e.updateNewPasswordRepeat,d=e.updateOldPassword,g=e.validationRules,h=(0,f.useRef)();(0,f.useEffect)((function(){t()}),[t]),(0,f.useEffect)((function(){g&&o()}),[g,o]);var m=function(){var e=y()(w().mark((function e(n){var t;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),!0!==v()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:t=e.sent,h.current.reset(),c(t);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),v=function(){return!!a.newPasswordRepeat&&(a.newPassword===a.newPasswordRepeat&&!a.passwordUpdatePending)},x=function(e){return i.formatMessage({id:e})};if(!g)return fe||(fe=(0,M.jsx)(ee.Z,{}));var b=a.passwordUpdatePending,Z=!a.oldPassword&&s||a.passwordUpdatePending,E=!a.newPassword||a.passwordUpdatePending||a.newPasswordValidationErrors&&Object.keys(a.newPasswordValidationErrors).length>0;return(0,M.jsxs)(pe,{children:[u&&(ge||(ge=(0,M.jsx)(P.ZP.H5,{children:(0,M.jsx)(j.Z,{id:"client.login.passwordUpdate.title"})}))),r&&(he||(he=(0,M.jsx)(P.ZP.P,{children:(0,M.jsx)(j.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,M.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,M.jsx)(ue,ve({tabIndex:1,label:x("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:a.oldPassword,onChange:d,readOnly:b,autoFocus:!0},a.passwordUpdateFailed&&"INVALID_CREDENTIALS"===a.passwordUpdateErrorCode&&{valid:!1})),(0,M.jsx)(ue,{tabIndex:2,label:x("client.login.passwordUpdate.newPassword"),name:"newPassword",value:a.newPassword,onChange:l,readOnly:Z,autoFocus:!0!==s,valid:!E}),(0,M.jsx)(xe,{children:(0,M.jsx)(oe,{rules:g,errors:a.newPasswordValidationErrors,rulesNeutral:!a.newPassword})}),(0,M.jsx)(ue,{tabIndex:3,label:x("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:a.newPasswordRepeat,onChange:p,readOnly:E,valid:v()}),a.newPasswordRepeat&&a.newPassword!==a.newPasswordRepeat&&(me||(me=(0,M.jsx)(S.ZP.List,{children:(0,M.jsx)(S.ZP.Item,{condition:"danger",label:(0,M.jsx)(j.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===a.passwordUpdateFailed&&(0,M.jsx)(re,{errorCode:a.passwordUpdateErrorCode}),(0,M.jsx)(L,{pending:a.passwordUpdatePending,disabled:!1===v(),ink:"primary",label:x("client.login.passwordUpdate.saveButton"),look:"raised",type:"submit"}),n&&(0,M.jsx)(O.Z,{ref:h,badge:"bottomright",size:"invisible",sitekey:n,hl:i.locale})]})]})};var we=t(38685),Oe=t(12965),je=t(31406),Pe={updateOldPassword:Oe.w6,updateNewPassword:Oe.EI,updateNewPasswordRepeat:Oe.FZ,fetchValidationRules:je.yB,savePassword:Oe.vW,initialized:we.X};const Ze=(0,l.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),Pe)((0,u.ZP)(be));var Se,Ee=t(7081);const ke=function(e){var n=e.username,t=e.password,r=e.secret,o=e.showTitle,i=e.changePage;return(0,M.jsxs)("div",{children:[o&&(Se||(Se=(0,M.jsx)(P.ZP.H5,{children:(0,M.jsx)(j.Z,{id:"client.login.form.title"})}))),(0,M.jsx)(Ee.Z,{username:n,password:t,secret:r,forced:!0,onSuccess:function(){i(k.i.LOGIN_FORM)}})]})};var Ce={changePage:B.oO};const Te=(0,l.connect)((function(e){return{username:e.login.username,password:e.login.password,secret:e.twoStepLogin.secret}}),Ce)(ke);var De,Re,Ne,Ae=t(26681),Ie=h.ZP.div.withConfig({displayName:"StyledTwoStepLogin"})(De||(De=d()(["\n "," {\n width: 100%;\n }\n\n "," {\n ","\n padding-top: .7rem;\n padding-bottom: 0.7rem;\n }\n"])),A.Z,C.ZP,C.k9);const _e=function(e){var n=e.username,t=e.password,r=e.showTitle,o=e.loginPending,i=e.twoStepLogin,a=e.intl,c=(0,f.useState)(null),s=x()(c,2),u=s[0],l=s[1],p=(0,f.useRef)();(0,f.useLayoutEffect)((function(){p.current.querySelector("input").focus()}),[]);var d=function(e){return a.formatMessage({id:e})};return(0,M.jsxs)(Ie,{children:[r&&(Re||(Re=(0,M.jsx)(P.ZP.H5,{children:(0,M.jsx)(j.Z,{id:"client.login.form.title"})}))),(0,M.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i(n,t,u)},ref:p,children:[Ne||(Ne=(0,M.jsx)(P.ZP.P,{children:(0,M.jsx)(j.Z,{id:"client.login.twoStepLogin.introduction"})})),(0,M.jsx)(Z.Z,{hasValue:!!u,id:"twoFactorCode-label",label:d("client.login.twoStepLogin.codePlaceholder"),children:(0,M.jsx)(_,{children:(0,M.jsx)(Ae.Z,{type:"integer",value:u,events:{onChange:l},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,M.jsx)(L,{disabled:!u||u.toString().length<6||o,ink:"primary",label:d("client.login.form.button"),look:"raised",name:"submit",pending:o,type:"submit"})]})]})};var Le={twoStepLogin:t(45798).N9};const Ue=(0,l.connect)((function(e){return{username:e.login.username,password:e.login.password,loginPending:e.loginForm.loginPending}}),Le)((0,u.ZP)(_e));var Fe,Me,ze,We=(0,h.vJ)(Fe||(Fe=d()(["\n .grecaptcha-badge {\n z-index: 9999999;\n opacity: .8;\n }\n"])));const Be=function(e){var n,t,r,o,i=e.initialize,a=e.showTitle,c=e.currentPage;return(0,f.useEffect)((function(){i()}),[i]),(0,M.jsxs)(M.Fragment,{children:[Me||(Me=(0,M.jsx)(We,{})),function(){switch(c){case k.i.PASSWORD_UPDATE:return n||(n=(0,M.jsx)(Ze,{showTitle:a}));case k.i.PASSWORD_REQUEST:return t||(t=(0,M.jsx)(Q,{showTitle:a}));case k.i.TWOSTEPLOGIN:return r||(r=(0,M.jsx)(Ue,{showTitle:a}));case k.i.TWOSTEPLOGIN_ACTIVATION:return ze||(ze=(0,M.jsx)(Te,{}));default:return o||(o=(0,M.jsx)(q,{showTitle:a}))}}()]})};var Ge={initialize:W.j2};const qe=(0,l.connect)((function(e,n){return{currentPage:n.currentPage||e.login.currentPage,showTitle:n.showTitle}}),Ge)((0,u.ZP)(Be))},23370:(e,n,t)=>{t.d(n,{j2:()=>a,qh:()=>r,x4:()=>i,ym:()=>o});var r="login/INITIALIZE",o="Login/LOGIN",i=function(e,n,t){return{type:o,payload:{username:e,password:n,captchaToken:t}}},a=function(){return{type:r}}},97324:(e,n,t)=>{t.d(n,{En:()=>l,FY:()=>u,Wt:()=>o,b6:()=>s,cg:()=>i,gG:()=>r,oO:()=>c,yn:()=>a});var r="Login/CHANGE_PAGE",o="Login/SET_USERNAME",i="Login/SET_PASSWORD",a="login/SET_CAPTCHA_KEY",c=function(e){return{type:r,payload:{page:e}}},s=function(e){return{type:o,payload:{username:e}}},u=function(e){return{type:i,payload:{password:e}}},l=function(e){return{type:a,payload:{captchaKey:e}}}},56746:(e,n,t)=>{t.d(n,{B2:()=>r,Dn:()=>c,GS:()=>a,Vt:()=>o,Wt:()=>i});var r="Login/REQUEST_PASSWORD",o="Login/PASSWORD_REQUEST",i="Login/SET_USERNAME",a=function(e){return{type:r,payload:{username:e}}},c=function(e){return{type:o,payload:{passwordRequest:e}}}},38685:(e,n,t)=>{t.d(n,{X:()=>o,a:()=>r});var r="INITIALIZED",o=function(){return{type:r}}},83676:(e,n,t)=>{t.d(n,{$3:()=>s,FO:()=>c,Fr:()=>i,Ug:()=>a,ZX:()=>u,_Q:()=>o,ak:()=>l,qv:()=>r});var r="PasswordUpdateDialog/SET_SHOW_OLD_PASSWORD",o="PasswordUpdateDialog/SET_STANDALONE",i="PasswordUpdateDialog/SET_FORCED_UPDATE",a="PasswordUpdateDialog/SET_USERNAME_OR_PK",c=function(e){return{type:r,payload:{showOldPasswordField:e}}},s=function(e){return{type:i,payload:{forcedUpdate:e}}},u=function(e){return{type:o,payload:{standalone:e}}},l=function(e){return{type:a,payload:{usernameOrPk:e}}}},12965:(e,n,t)=>{t.d(n,{EI:()=>g,FZ:()=>y,Gu:()=>w,JY:()=>r,Jj:()=>l,LK:()=>x,MC:()=>i,S8:()=>u,VZ:()=>o,dg:()=>a,fh:()=>O,iA:()=>d,jz:()=>m,o_:()=>c,sO:()=>p,vW:()=>v,w6:()=>f,wd:()=>b,yZ:()=>s,ze:()=>h});var r="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",o="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",i="PasswordUpdateDialog/SET_NEW_PASSWORD",a="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",c="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",s="PasswordUpdateDialog/SAVE_PASSWORD",u="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",l="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",p="PasswordUpdateDialog/VALIDATE",d="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",f=function(e){return{type:r,payload:{oldPassword:e}}},g=function(e){return{type:o,payload:{newPassword:e}}},h=function(e){return{type:i,payload:{newPassword:e}}},m=function(e){return{type:a,payload:{errors:e}}},y=function(e){return{type:c,payload:{newPasswordRepeat:e}}},v=function(e){return{type:s,payload:{captchaToken:e}}},x=function(){return{type:u}},b=function(e,n){return{type:l,payload:{errorCode:e,validationMessages:n}}},w=function(){return{type:p}},O=function(){return{type:d}}},31406:(e,n,t)=>{t.d(n,{Pn:()=>a,hZ:()=>o,nt:()=>r,yB:()=>i});var r="PasswordUpdateDialog/FETCH_VALIDATION_RULES",o="PasswordUpdateDialog/SET_VALIDATION_RULES",i=function(){return{type:r}},a=function(e){return{type:o,payload:{rules:e}}}},74483:(e,n,t)=>{t.d(n,{Z:()=>Xn,v:()=>Jn});var r,o=t(319),i=t.n(o),a=t(15857),c=t(59713),s=t.n(c),u=t(81770),l=t(62119),p=t(97324);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=(r={},s()(r,p.gG,(function(e,n){var t=n.payload.page;return f(f({},e),{},{currentPage:t})})),s()(r,p.Wt,(function(e,n){var t=n.payload.username;return f(f({},e),{},{username:t})})),s()(r,p.cg,(function(e,n){var t=n.payload.password;return f(f({},e),{},{password:t})})),s()(r,p.yn,u.Z.singleTransferReducer("captchaKey")),r),h={currentPage:l.i.LOGIN_FORM,username:"",password:"",captchaKey:null};const m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,n=arguments.length>1?arguments[1]:void 0,t=g[n.type];return t?t(e,n):e};var y,v="Login/SET_MESSAGE",x="Login/SET_PENDING",b="loginForm/ACTIVATE_RECAPTCHA",w=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:v,payload:{text:e,negative:n}}},O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:x,payload:{pending:e}}};function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=(y={},s()(y,v,(function(e,n){var t=n.payload,r=t.text,o=t.negative;return P(P({},e),{},{message:{text:r,negative:o}})})),s()(y,x,(function(e,n){var t=n.payload;return P(P({},e),{},{loginPending:t.pending})})),s()(y,b,(function(e){return P(P({},e),{},{recaptchaActivated:!0})})),y),S={message:{},loginPending:!1,recaptchaActivated:!1};const E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,n=arguments.length>1?arguments[1]:void 0,t=Z[n.type];return t?t(e,n):e};var k=t(87757),C=t.n(k),T=t(34857),D=t(56746);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=s()({},D.Wt,(function(e,n){var t=n.payload.username;return N(N({},e),{},{username:t})})),I={username:""};var _=t(63094),L=C().mark(z),U=C().mark(W),F=C().mark(B),M=function(e){return e.intl.messages};function z(e){var n,t;return C().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.payload,r.next=3,(0,T.gz)(O(!0));case 3:return r.next=5,(0,T.RE)(_.Z.requestSaga,"principals/".concat(n.username,"/password-reset"),{method:"POST"});case 5:return r.next=7,(0,T.gz)((0,p.b6)(n.username));case 7:return r.next=9,(0,T.Ys)(M);case 9:return t=r.sent,r.next=12,(0,T.gz)(w(t["client.login.from.passwordRequested"]));case 12:return r.next=14,(0,T.gz)((0,p.oO)(l.i.LOGIN_FORM));case 14:return r.next=16,(0,T.gz)(O(!1));case 16:case"end":return r.stop()}}),L)}function W(e){return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!0!==e.payload.passwordRequest){n.next=4;break}return n.next=4,(0,T.gz)((0,p.oO)(l.i.PASSWORD_REQUEST));case 4:case"end":return n.stop()}}),U)}function B(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.Fm)(D.B2,z),(0,T.Fm)(D.Vt,W)]);case 2:case"end":return e.stop()}}),F)}var G=C().mark(q);function q(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.rM)(B)]);case 2:case"end":return e.stop()}}),G)}const V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,n=arguments.length>1?arguments[1]:void 0,t=A[n.type];return t?t(e,n):e};var H,Y=t(83676);function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?K(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q={showOldPasswordField:!0,forcedUpdate:!1,standalone:!0,usernameOrPk:""},X=function(e){return function(n,t){var r=t.payload[e];return $($({},n),{},s()({},e,r))}},J=(H={},s()(H,Y.qv,X("showOldPasswordField")),s()(H,Y.Fr,X("forcedUpdate")),s()(H,Y._Q,X("standalone")),s()(H,Y.Ug,X("usernameOrPk")),H);const ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,n=arguments.length>1?arguments[1]:void 0,t=J[n.type];return t?t(e,n):e};var ne,te=t(12965);function re(e){var n={};return e.forEach((function(e){n[e.ruleName]=e.message})),n}function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ae={oldPassword:"",newPassword:"",newPasswordRepeat:"",newPasswordValidationErrors:null,passwordUpdatePending:!1,passwordUpdateFailed:!1,passwordUpdateErrorCode:null},ce=(ne={},s()(ne,te.JY,(function(e,n){var t=n.payload;return ie(ie({},e),{},{oldPassword:t.oldPassword})})),s()(ne,te.MC,(function(e,n){var t=n.payload;return ie(ie({},e),{},{newPassword:t.newPassword})})),s()(ne,te.dg,(function(e,n){var t=n.payload;return ie(ie({},e),{},{newPasswordValidationErrors:t.errors})})),s()(ne,te.o_,(function(e,n){var t=n.payload;return ie(ie({},e),{},{newPasswordRepeat:t.newPasswordRepeat})})),s()(ne,te.yZ,(function(e){return ie(ie({},e),{},{passwordUpdatePending:!0,passwordUpdateFailed:!1})})),s()(ne,te.S8,(function(e){return ae})),s()(ne,te.Jj,(function(e,n){var t=n.payload;if(t.validationMessages){var r=re(t.validationMessages);return ie(ie({},e),{},{passwordUpdatePending:!1,newPasswordValidationErrors:r})}return ie(ie({},e),{},{passwordUpdatePending:!1,passwordUpdateFailed:!0,passwordUpdateErrorCode:t.errorCode})})),s()(ne,te.iA,(function(e,n){n.payload;return ie(ie({},e),{},{passwordUpdateFailed:!1})})),ne);const se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,n=arguments.length>1?arguments[1]:void 0,t=ce[n.type];return t?t(e,n):e};var ue=t(45430),le=t(22731),pe=t(44759),de=t(54159),fe=t(79311),ge=t(23370),he=t(45798);function me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?me(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ve,xe=C().mark(Ie),be=C().mark(_e),we=C().mark(Ue),Oe=C().mark(Fe),je=C().mark(Me),Pe=C().mark(ze),Ze=C().mark(We),Se=C().mark(Be),Ee=C().mark(Ge),ke=C().mark(qe),Ce=C().mark(Ve),Te=C().mark(He),De=C().mark(Ye),Re=function(e,n){return e.intl.messages[n]||n},Ne=function(e){return e.login};function Ae(e,n){return new Promise((function(t){de.Z.executeRequest(e,n).then(de.Z.extractBody).then((function(e){return t(e)})).catch((function(e){pe.Z.logError("Failed to execute request",e),t({success:!1})}))}))}function Ie(e){return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.RE)(Ae,"login",Le(e));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),xe)}function _e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.RE)(Ae,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),be)}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(e).filter((function(n){return!!e[n]})).sort().map((function(n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n]))})).join("&")}}function Ue(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.gz)((0,p.oO)(l.i.TWOSTEPLOGIN));case 2:case"end":return e.stop()}}),we)}function Fe(e){var n;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e[l.i.TWOSTEPLOGIN_ACTIVATION],t.next=3,(0,T.gz)((0,he.f5)(n));case 3:return t.next=5,(0,T.gz)((0,p.oO)(l.i.TWOSTEPLOGIN_ACTIVATION));case 5:case"end":return t.stop()}}),Oe)}function Me(){var e;return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.Ys)(Ne);case 2:return e=n.sent,n.next=5,(0,T.gz)((0,te.w6)(e.password));case 5:return n.next=7,(0,T.gz)((0,Y.ak)(e.username));case 7:return n.next=9,(0,T.gz)((0,Y.$3)(!0));case 9:return n.next=11,(0,T.gz)((0,p.oO)(l.i.PASSWORD_UPDATE));case 11:case"end":return n.stop()}}),je)}function ze(){var e;return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.Ys)(Re,"client.login.form.blocked");case 2:return e=n.sent,n.next=5,(0,T.gz)(w(e,!0));case 5:case"end":return n.stop()}}),Pe)}function We(){var e;return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.Ys)(Re,"client.login.form.failed");case 2:return e=n.sent,n.next=5,(0,T.gz)(w(e,!0));case 5:case"end":return n.stop()}}),Ze)}function Be(e){var n;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,T.RE)(le.Z.hasInvalidCache);case 2:if(!t.sent){t.next=8;break}return t.next=6,(0,T.RE)(fe.Z.clearAll);case 6:t.next=10;break;case 8:return t.next=10,(0,T.RE)(fe.Z.clearShortTerm);case 10:return t.next=12,(0,T.gz)((0,p.FY)(""));case 12:return n=e.timeout||30,t.next=15,(0,T.gz)(ue.Z.fireExternalEvent("loginSuccess",{timeout:n}));case 15:case"end":return t.stop()}}),Se)}function Ge(e){var n,t,r,o,i,a,c;return C().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return n=e.payload,t=n.username,r=n.password,o=n.captchaToken,i=n.userCode,a=ye(ye({username:t,password:r},o&&{captchaToken:o}),i&&{userCode:i}),s.next=5,(0,T.gz)(O(!0));case 5:return s.next=7,(0,T.RE)(Ie,a);case 7:if(!(c=s.sent).success){s.next=13;break}return s.next=11,(0,T.RE)(Be,c);case 11:s.next=44;break;case 13:return s.next=15,(0,T.gz)((0,p.oO)(l.i.LOGIN_FORM));case 15:if(!c.CAPTCHA){s.next=20;break}return s.next=18,(0,T.gz)({type:b});case 18:case 23:case 28:case 33:case 38:s.next=42;break;case 20:if(!c.TWOSTEPLOGIN){s.next=25;break}return s.next=23,(0,T.RE)(Ue,c);case 25:if(!c.RESET_PASSWORD_REQUIRED){s.next=30;break}return s.next=28,(0,T.RE)(Me);case 30:if(!c.LOGIN_BLOCKED){s.next=35;break}return s.next=33,(0,T.RE)(ze);case 35:if(!c.TWOSTEPLOGIN_ACTIVATION){s.next=40;break}return s.next=38,(0,T.RE)(Fe,c);case 40:return s.next=42,(0,T.RE)(We);case 42:return s.next=44,(0,T.gz)(O(!1));case 44:case"end":return s.stop()}}),Ee)}function qe(){var e;return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.RE)(_e);case 2:if(!(e=n.sent).success){n.next=6;break}return n.next=6,(0,T.RE)(Be,e);case 6:case"end":return n.stop()}}),ke)}function Ve(){var e;return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.RE)(_.Z.fetchServerSettings);case 2:return e=n.sent,n.next=5,(0,T.gz)(p.En(e.captchaKey));case 5:case"end":return n.stop()}}),Ce)}function He(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.RE)(qe);case 2:return e.next=4,(0,T.RE)(Ve);case 4:case"end":return e.stop()}}),Te)}function Ye(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.Fm)(ge.ym,Ge),(0,T.Fm)(ge.qh,He)]);case 2:case"end":return e.stop()}}),De)}function Ke(e,n,t,r){if("string"!=typeof e)return!1;var o=e.length-e.replace(n,"").length;return(null==t||o>=t)&&(null==r||o<=r)}var $e=(ve={},s()(ve,"PASSWORD_NOT_CHANGED",(function(e,n){return"string"==typeof e&&"string"==typeof n&&e!==n})),s()(ve,"LENGTH",(function(e,n,t){return"string"==typeof e&&(void 0===t.params.min||null===t.params.min||e.length>=t.params.min)&&(void 0===t.params.max||null===t.params.max||e.length<=t.params.max)})),s()(ve,"CHARACTER_INSUFFICIENT_LOWERCASE",(function(e,n,t){return Ke(e,/[a-z]/g,t.params.min,t.params.max)})),s()(ve,"CHARACTER_INSUFFICIENT_UPPERCASE",(function(e,n,t){return Ke(e,/[A-Z]/g,t.params.min,t.params.max)})),s()(ve,"CHARACTER_INSUFFICIENT_DIGIT",(function(e,n,t){return Ke(e,/[0-9]/g,t.params.min,t.params.max)})),ve);const Qe=function(e,n,t){var r={};return t&&t.forEach((function(t){var o=$e[t.name];o&&(!0!==o(e,n,t)&&(r[t.name]=!0))})),r};var Xe=C().mark(mn),Je=C().mark(yn),en=C().mark(vn),nn=C().mark(xn),tn=C().mark(bn),rn=C().mark(wn),on=C().mark(On),an=C().mark(jn),cn=C().mark(Pn);function sn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function un(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?sn(Object(t),!0).forEach((function(n){s()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ln=function(e){return e.passwordUpdate.validationRules},pn=function(e){return e.input},dn=function(e){return e.passwordUpdate.dialog.usernameOrPk},fn=function(e){return e.passwordUpdate.password},gn=function(e){return e.passwordUpdate.dialog.standalone},hn=function(e){return e.intl};function mn(e,n,t){var r,o;return C().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r={method:"POST",acceptedStatusCodes:[400],body:un(un({},n),{},{captchaToken:t})},i.prev=1,i.next=4,(0,T.RE)(_.Z.requestSaga,"principals/".concat(e,"/password-update"),r);case 4:return o=i.sent,i.abrupt("return",o.ok?{error:null}:{error:o.body});case 8:return i.prev=8,i.t0=i.catch(1),i.abrupt("return",{error:{errorCode:"UNEXPECTED_ERROR",exception:i.t0}});case 11:case"end":return i.stop()}}),Xe,null,[[1,8]])}function yn(e,n){var t,r,o,i;return C().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,T.Ys)(hn);case 2:return t=a.sent,r=t.locale,o={method:"POST",body:n,queryParams:{locale:r}},a.prev=5,a.next=8,(0,T.RE)(_.Z.requestSaga,"principals/".concat(e,"/password-validation"),o);case 8:return i=a.sent,a.abrupt("return",i.body);case 12:return a.prev=12,a.t0=a.catch(5),a.abrupt("return",{valid:!0,exception:a.t0});case 15:case"end":return a.stop()}}),Je,null,[[5,12]])}function vn(e){return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.gz)(te.ze(e.payload.newPassword));case 2:return n.next=4,(0,T.gz)(te.Gu());case 4:case"end":return n.stop()}}),en)}function xn(){var e,n,t,r,o,i,a;return C().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,T.Ys)(ln);case 2:return e=c.sent,c.next=5,(0,T.Ys)(fn);case 5:if(n=c.sent,t=Qe(n.newPassword,n.oldPassword,e),s=t,0===Object.keys(s).length&&s.constructor===Object){c.next=12;break}return c.next=10,(0,T.gz)(te.jz(t));case 10:case 24:c.next=29;break;case 12:return c.next=14,(0,T.Ys)(dn);case 14:return r=c.sent,c.next=17,(0,T.RE)(wn);case 17:return o=c.sent,c.next=20,(0,T.RE)(yn,r,o);case 20:if(!0!==(i=c.sent).valid){c.next=26;break}return c.next=24,(0,T.gz)(te.jz({}));case 26:return a=re(i.validationMessages),c.next=29,(0,T.gz)(te.jz(a));case 29:case"end":return c.stop()}var s}),nn)}function bn(e){var n,t,r,o,i;return C().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=e.payload.captchaToken,a.next=3,(0,T.Ys)(dn);case 3:return t=a.sent,a.next=6,(0,T.RE)(wn);case 6:return r=a.sent,a.next=9,(0,T.RE)(mn,t,r,n);case 9:if(!(o=a.sent).error){a.next=20;break}if(!1!==o.error.valid){a.next=16;break}return a.next=14,(0,T.gz)(te.wd(null,o.error.validationMessages));case 14:a.next=18;break;case 16:return a.next=18,(0,T.gz)(te.wd(o.error.errorCode));case 18:a.next=37;break;case 20:return a.next=22,(0,T.Ys)(gn);case 22:if(!a.sent){a.next=28;break}return a.next=26,(0,T.gz)(ue.Z.fireExternalEvent("success",{newPassword:r.newPassword}));case 26:a.next=35;break;case 28:return a.next=30,(0,T.RE)(On);case 30:return i=a.sent,a.next=33,(0,T.gz)((0,p.FY)(i.payload.password));case 33:return a.next=35,(0,T.RE)(Ge,i);case 35:return a.next=37,(0,T.gz)(te.LK());case 37:case"end":return a.stop()}}),tn)}function wn(){var e,n;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,T.Ys)(pn);case 2:return e=t.sent,t.next=5,(0,T.Ys)(fn);case 5:return n=t.sent,t.abrupt("return",{oldPassword:e.oldPassword?e.oldPassword:n.oldPassword,newPassword:n.newPassword});case 7:case"end":return t.stop()}}),rn)}function On(){var e,n;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,T.Ys)(fn);case 2:return e=t.sent,t.next=5,(0,T.Ys)(dn);case 5:return n=t.sent,t.abrupt("return",{payload:{username:n,password:e.newPasswordRepeat}});case 7:case"end":return t.stop()}}),on)}function jn(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.gz)(te.fh());case 2:case"end":return e.stop()}}),an)}function Pn(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.Fm)(te.VZ,vn),(0,T.Fm)(te.sO,xn),(0,T.Fm)(te.yZ,bn),(0,T.Fm)(te.VZ,jn),(0,T.Fm)(te.JY,jn),(0,T.Fm)(te.o_,jn)]);case 2:case"end":return e.stop()}}),cn)}var Zn=t(38685),Sn=C().mark(kn),En=C().mark(Cn);function kn(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.gz)(ue.Z.fireExternalEvent("resize"));case 2:case"end":return e.stop()}}),Sn)}function Cn(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.Fm)(Zn.a,kn)]);case 2:case"end":return e.stop()}}),En)}var Tn=t(31406),Dn=s()({},Tn.hZ,(function(e,n){return n.payload.rules}));const Rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,t=Dn[n.type];return t?t(e,n):e};var Nn=C().mark(Un),An=C().mark(Fn),In=C().mark(Mn),_n=function(e){return e.passwordUpdate.dialog.usernameOrPk},Ln=function(e){return e.intl};function Un(e){var n,t,r,o=arguments;return C().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:"",t="principals/".concat(e,"/password-rules"),i.next=4,(0,T.RE)(_.Z.requestSaga,t,{queryParams:{locale:n}});case 4:return r=i.sent,i.abrupt("return",r.body);case 6:case"end":return i.stop()}}),Nn)}function Fn(){var e,n,t,r;return C().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,T.Ys)(_n);case 2:return e=o.sent,o.next=5,(0,T.Ys)(Ln);case 5:return n=o.sent,t=n.locale,o.next=9,(0,T.RE)(Un,e,t);case 9:return r=o.sent,o.next=12,(0,T.gz)(Tn.Pn(r.rules));case 12:case"end":return o.stop()}}),An)}function Mn(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.Fm)(Tn.nt,Fn)]);case 2:case"end":return e.stop()}}),In)}const zn={dialog:ee,password:se,validationRules:Rn};var Wn=[Cn,Pn,Mn],Bn=s()({},he.I3,u.Z.singleTransferReducer("secret")),Gn={secret:null};var qn=C().mark(Hn),Vn=C().mark(Yn);function Hn(e){return C().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,T.gz)(O(!0));case 2:return n.next=4,(0,T.RE)(Ge,e);case 4:case"end":return n.stop()}}),qn)}function Yn(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.Fm)(he.Fk,Hn)]);case 2:case"end":return e.stop()}}),Vn)}var Kn=C().mark($n);function $n(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.$6)([(0,T.rM)(Yn)]);case 2:case"end":return e.stop()}}),Kn)}const Qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gn,n=arguments.length>1?arguments[1]:void 0,t=Bn[n.type];return t?t(e,n):e},Xn={login:m,loginForm:E,passwordRequest:V,passwordUpdate:(0,a.UY)(zn),twoStepLogin:Qn};var Jn=[Ye,q,$n].concat(i()(Wn))},45798:(e,n,t)=>{t.d(n,{Fk:()=>r,I3:()=>o,N9:()=>i,f5:()=>a});var r="Login/TWOSTEPLOGIN",o="Login/SET_SECRET",i=function(e,n,t){return{type:r,payload:{username:e,password:n,userCode:t}}},a=function(e){return{type:o,payload:{secret:e}}}},62119:(e,n,t)=>{t.d(n,{i:()=>r});var r={LOGIN_FORM:"LOGIN_FORM",PASSWORD_REQUEST:"PASSWORD_REQUEST",TWOSTEPLOGIN:"TWOSTEPLOGIN",PASSWORD_UPDATE:"PASSWORD_UPDATE",TWOSTEPLOGIN_ACTIVATION:"TWOSTEPLOGIN_ACTIVATION"}},36026:(e,n,t)=>{t.d(n,{Z:()=>Pe});var r,o=t(45697),i=t.n(o),a=t(34871),c=t(22731),s=t(45430),u=t(65378),l=t(23369),p=t(46458),d=t(34575),f=t.n(d),g=t(93913),h=t.n(g),m=t(2205),y=t.n(m),v=t(78585),x=t.n(v),b=t(29754),w=t.n(b),O=t(28655),j=t.n(O),P=t(1024),Z=t.n(P),S=t(32678),E=t(319),k=t.n(E),C=t(54061),T=t.n(C),D=function(e,n,t){var r=l.Z.getBackendUrl(),o=encodeURIComponent(window.location.href),i="".concat(r).concat(e,"?provider=").concat(t.unique_id,"&sourceUri=").concat(o),a=window.open(i,t.label,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,t={height:e,width:n,left:window.screen.width/2-n/2,top:window.screen.height/2-e/2,resizable:1,scrollbars:1,status:1};return T()(t,(function(e,n,t){return[].concat(k()(e),["".concat(t,"=").concat(n)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){a.close(),n(e)}},R=t(88162),N=t(27361),A=t.n(N),I=t(36589),_=t(7281),L=t(88601),U=t(58664);const F=(0,S.ZP)(I.Z)(r||(r=j()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n ","\n span {\n margin-left: 0.5em;\n padding: 0.9rem 0;\n }\n }\n"])),_.Z.font(1.3),L.Z.radii("large"),(function(e){return(0,U.al)((0,U.du)(e,{bg:e.primaryColor,fg:e.secondaryColor||"".concat(A()(e.theme,"colors.paper"),", ").concat(A()(e.theme,"colors.text"))}))}));var M=t(85893);const z=function(e){var n=e.provider,t=e.loginCompleted,r=e.loginEndpoint;return(0,M.jsxs)(F,{primaryColor:n.button_primary_color,secondaryColor:n.button_secondary_color,onClick:function(){D(r,t,n)},children:[n.button_icon&&(0,M.jsx)(R.Z,{position:"prepend",icon:n.button_icon}),(0,M.jsx)("span",{children:n.button_label})]})};var W;function B(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=w()(e);if(n){var o=w()(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return x()(this,t)}}var G=S.ZP.div.withConfig({displayName:"StyledButtonContainer"})(W||(W=j()(["\n width: 100%;\n margin-top: 3rem;\n display: grid;\n grid-gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\n @media (max-width: 1024px) {\n margin-top: 1.5rem;\n }\n"])));const q=function(e){y()(t,e);var n=B(t);function t(e){var r;return f()(this,t),r=n.call(this,e),e.loadProviders(),r}return h()(t,[{key:"componentDidUpdate",value:function(e,n,t){var r=this;if(this.props.autoLogin&&0===e.providers.length&&this.props.providers.length>0){var o=this.props.providers.find((function(e){return e.unique_id===r.props.autoLogin}));o&&D(this.props.loginEndpoint,this.props.loginCompleted,o)}}},{key:"render",value:function(){var e=this;return(0,M.jsx)(G,{children:this.props.providers.map((function(n,t){return(0,M.jsx)(z,{provider:n,loginEndpoint:e.props.loginEndpoint,loginCompleted:e.props.loginCompleted},t)}))})}}]),t}(Z().Component);var V="root/LOAD_PROVIDERS",H="root/SET_PROVIDERS",Y="root/LOGIN_COMPLETED",K={loadProviders:function(){return{type:V}},loginCompleted:function(e){return{type:Y,payload:{result:e}}}};const $=(0,p.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),K)(q);var Q=t(59713),X=t.n(Q),J=t(81770),ee=X()({},H,J.Z.singleTransferReducer("providers")),ne={providers:[]};var te=t(87757),re=t.n(te),oe=t(34857),ie=t(63094),ae=t(79311);function ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(t),!0).forEach((function(n){X()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ue=function(e){return e.data.map((function(e){return T()(e.paths,(function(e,n,t){return se(se({},e),{},X()({},t,n.value))}),{})}))},le=re().mark(ge),pe=re().mark(he),de=re().mark(me),fe=function(e){return e.intl};function ge(){var e,n,t;return re().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,oe.Ys)(fe);case 2:return e=r.sent,n={paths:["unique_id","label","button_primary_color","button_secondary_color","button_icon","button_label"],conditions:{locale:e.locale,active:!0}},r.next=6,(0,oe.RE)(ie.Z.fetchEntities,"Openid_provider",n,{method:"GET"},ue);case 6:return t=r.sent,r.next=9,(0,oe.gz)({type:H,payload:{providers:t}});case 9:case"end":return r.stop()}}),le)}function he(e){var n;return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.payload.result,t.next=3,(0,oe.RE)(c.Z.hasInvalidCache);case 3:if(!t.sent){t.next=9;break}return t.next=7,(0,oe.RE)(ae.Z.clearAll);case 7:t.next=11;break;case 9:return t.next=11,(0,oe.RE)(ae.Z.clearShortTerm);case 11:return t.next=13,(0,oe.gz)(s.Z.fireExternalEvent("loginCompleted",n));case 13:case"end":return t.stop()}}),pe)}function me(){return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.$6)([(0,oe.Fm)(V,ge),(0,oe.Fm)(Y,he)]);case 2:case"end":return e.stop()}}),de)}const ye={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,n=arguments.length>1?arguments[1]:void 0,t=ee[n.type];return t?t(e,n):e}};var ve,xe=[me],be="sso-login",we=["loginCompleted"],Oe=function(e,n,t,r){var o=ve||(ve=(0,M.jsx)($,{}));l.Z.setInputEnvs(n);var i=a.Z.createStore(ye,xe,n,be);return s.Z.addToStore(i,t),c.Z.addToStore(i),a.Z.createApp(be,o,i,{input:n,events:t,actions:[],publicPath:r,textResourceModules:["component","common",be]})},je=function(e){return a.Z.useApp({initApp:Oe,props:e,packageName:be,externalEvents:we}).component};je.propTypes={ssoLoginEndpoint:i().string.isRequired,locale:i().string,autoLogin:i().bool,appContext:u.Z.propTypes};const Pe=je},38655:e=>{e.exports=JSON.parse('{"name":"tocco-admin","version":"1.0.62","description":"Alpha version of new tocco admin.","main":"dist/index.js","scripts":{"compile:prod":"cd ../../../ && npm run compile:prod -- --package=admin","prepublish":"npm run compile:prod"},"dependencies":{"js-cookie":"^3.0.1","react-burger-menu":"^3.0.6"},"devDependencies":{"tocco-app-extensions":"*","tocco-connect-principal":"*","tocco-copy":"*","tocco-dashboard":"*","tocco-delete":"*","tocco-docs-browser":"*","tocco-entity-detail":"*","tocco-entity-list":"*","tocco-entity-report":"*","tocco-export":"*","tocco-input-edit":"*","tocco-login":"*","tocco-merge":"*","tocco-resource-scheduler":"*","tocco-sso-login":"*","tocco-test-util":"*","tocco-two-factor-connector":"*","tocco-ui":"*","tocco-user-qr-action":"*","tocco-util":"*","tocco-widget-code-copy":"*","tocco-widget-config-edit":"*"}}')}}]);
@@ -0,0 +1,14 @@
1
+ (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[551],{44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp(t,"gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=i(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var a=n[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},36392:(e,t,r)=>{"use strict";r.d(t,{lX:()=>I});var n=r(30670),o=r.n(n),i=r(41143),a=r.n(i),s=r(14149),c=(r(54545),function(e){return"/"===e.charAt(0)?e:"/"+e}),u=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},l=function(e,t){return u(e,t)?e.substr(t.length):e},f=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},d=function(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o},p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h=function(e,t,r,n){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e),o.state=t):(void 0===(o=p({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(o.key=r),n?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,s.default)(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o};const m=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,i){if(null!=e){var a="function"==typeof e?e(t,r):e;"string"==typeof a?"function"==typeof n?n(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var r=!0,n=function(){r&&e.apply(void 0,arguments)};return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}};var y=!("undefined"==typeof window||!window.document||!window.document.createElement),v=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},g=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},b=function(e,t){return t(window.confirm(e))},w=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},O=function(){return-1===window.navigator.userAgent.indexOf("Trident")},x=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},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},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},N="popstate",S="hashchange",M=function(){try{return window.history.state||{}}catch(e){return{}}};const I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(y,"Browser history needs a DOM");var t=window.history,r=w(),n=!O(),i=e.forceRefresh,s=void 0!==i&&i,p=e.getUserConfirmation,I=void 0===p?b:p,k=e.keyLength,R=void 0===k?6:k,A=e.basename?f(c(e.basename)):"",P=function(e){var t=e||{},r=t.key,n=t.state,i=window.location,a=i.pathname+i.search+i.hash;return o()(!A||u(a,A),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+A+'".'),A&&(a=l(a,A)),h(a,n,r)},j=function(){return Math.random().toString(36).substr(2,R)},L=m(),_=function(e){E(ee,e),ee.length=t.length,L.notifyListeners(ee.location,ee.action)},T=function(e){x(e)||D(P(e.state))},F=function(){D(P(M()))},B=!1,D=function(e){if(B)B=!1,_();else{L.confirmTransitionTo(e,"POP",I,(function(t){t?_({action:"POP",location:e}):U(e)}))}},U=function(e){var t=ee.location,r=z.indexOf(t.key);-1===r&&(r=0);var n=z.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(B=!0,V(o))},H=P(M()),z=[H.key],$=function(e){return A+d(e)},W=function(e,n){o()(!("object"===(void 0===e?"undefined":C(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=h(e,n,j(),ee.location);L.confirmTransitionTo(a,i,I,(function(e){if(e){var n=$(a),c=a.key,u=a.state;if(r)if(t.pushState({key:c,state:u},null,n),s)window.location.href=n;else{var l=z.indexOf(ee.location.key),f=z.slice(0,-1===l?0:l+1);f.push(a.key),z=f,_({action:i,location:a})}else o()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}}))},q=function(e,n){o()(!("object"===(void 0===e?"undefined":C(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=h(e,n,j(),ee.location);L.confirmTransitionTo(a,i,I,(function(e){if(e){var n=$(a),c=a.key,u=a.state;if(r)if(t.replaceState({key:c,state:u},null,n),s)window.location.replace(n);else{var l=z.indexOf(ee.location.key);-1!==l&&(z[l]=a.key),_({action:i,location:a})}else o()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}}))},V=function(e){t.go(e)},Y=function(){return V(-1)},Q=function(){return V(1)},X=0,G=function(e){1===(X+=e)?(v(window,N,T),n&&v(window,S,F)):0===X&&(g(window,N,T),n&&g(window,S,F))},K=!1,Z=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=L.setPrompt(e);return K||(G(1),K=!0),function(){return K&&(K=!1,G(-1)),t()}},J=function(e){var t=L.appendListener(e);return G(1),function(){G(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:$,push:W,replace:q,go:V,goBack:Y,goForward:Q,block:Z,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign},7548:e=>{e.exports=function(){}},28045:e=>{e.exports=function(e){return e}},52157:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=n.length,c=-1,u=r.length,l=t(a-s,0),f=Array(u+l),d=!o;++c<u;)f[c]=r[c];for(;++i<s;)(d||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[c++]=e[i++];return f}},14054:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=-1,c=n.length,u=-1,l=r.length,f=t(a-c,0),d=Array(f+l),p=!o;++i<f;)d[i]=e[i];for(var h=i;++u<l;)d[h+u]=r[u];for(;++s<c;)(p||i<a)&&(d[h+n[s]]=e[i++]);return d}},97991:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},22402:(e,t,r)=>{var n=r(71774),o=r(55639);e.exports=function(e,t,r){var i=1&t,a=n(e);return function t(){var n=this&&this!==o&&this instanceof t?a:e;return n.apply(i?r:this,arguments)}}},71774:(e,t,r)=>{var n=r(3118),o=r(13218);e.exports=function(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),i=e.apply(r,t);return o(i)?i:r}}},46347:(e,t,r)=>{var n=r(96874),o=r(71774),i=r(86935),a=r(94487),s=r(20893),c=r(46460),u=r(55639);e.exports=function(e,t,r){var l=o(e);return function o(){for(var f=arguments.length,d=Array(f),p=f,h=s(o);p--;)d[p]=arguments[p];var m=f<3&&d[0]!==h&&d[f-1]!==h?[]:c(d,h);if((f-=m.length)<r)return a(e,t,i,o.placeholder,void 0,d,m,void 0,void 0,r-f);var y=this&&this!==u&&this instanceof o?l:e;return n(y,this,d)}}},23468:(e,t,r)=>{var n=r(7548),o=r(99021),i=r(66833),a=r(97658),s=r(1469),c=r(86528);e.exports=function(e){return o((function(t){var r=t.length,o=r,u=n.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(u&&!f&&"wrapper"==a(l))var f=new n([],!0)}for(o=f?o:r;++o<r;){l=t[o];var d=a(l),p="wrapper"==d?i(l):void 0;f=p&&c(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?f[a(p[0])].apply(f,p[3]):1==l.length&&c(l)?f[d]():f.thru(l)}return function(){var e=arguments,n=e[0];if(f&&1==e.length&&s(n))return f.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}},86935:(e,t,r)=>{var n=r(52157),o=r(14054),i=r(97991),a=r(71774),s=r(94487),c=r(20893),u=r(90451),l=r(46460),f=r(55639);e.exports=function e(t,r,d,p,h,m,y,v,g,b){var w=128&r,O=1&r,x=2&r,C=24&r,E=512&r,N=x?void 0:a(t);return function S(){for(var M=arguments.length,I=Array(M),k=M;k--;)I[k]=arguments[k];if(C)var R=c(S),A=i(I,R);if(p&&(I=n(I,p,h,C)),m&&(I=o(I,m,y,C)),M-=A,C&&M<b){var P=l(I,R);return s(t,r,e,S.placeholder,d,I,P,v,g,b-M)}var j=O?d:this,L=x?j[t]:t;return M=I.length,v?I=u(I,v):E&&M>1&&I.reverse(),w&&g<M&&(I.length=g),this&&this!==f&&this instanceof S&&(L=N||a(L)),L.apply(j,I)}}},84375:(e,t,r)=>{var n=r(96874),o=r(71774),i=r(55639);e.exports=function(e,t,r,a){var s=1&t,c=o(e);return function t(){for(var o=-1,u=arguments.length,l=-1,f=a.length,d=Array(f+u),p=this&&this!==i&&this instanceof t?c:e;++l<f;)d[l]=a[l];for(;u--;)d[l++]=arguments[++o];return n(p,s?r:this,d)}}},94487:(e,t,r)=>{var n=r(86528),o=r(258),i=r(69255);e.exports=function(e,t,r,a,s,c,u,l,f,d){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?c:void 0,p?u:void 0,p?void 0:c,p?void 0:u,l,f,d],m=r.apply(void 0,h);return n(e)&&o(m,h),m.placeholder=a,i(m,e,t)}},97727:(e,t,r)=>{var n=r(28045),o=r(22402),i=r(46347),a=r(86935),s=r(84375),c=r(66833),u=r(63833),l=r(258),f=r(69255),d=r(40554),p=Math.max;e.exports=function(e,t,r,h,m,y,v,g){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=m=void 0),v=void 0===v?v:p(d(v),0),g=void 0===g?g:d(g),w-=m?m.length:0,64&t){var O=h,x=m;h=m=void 0}var C=b?void 0:c(e),E=[e,t,r,h,m,O,x,y,v,g];if(C&&u(E,C),e=E[0],t=E[1],r=E[2],h=E[3],m=E[4],!(g=E[9]=void 0===E[9]?b?0:e.length:p(E[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)N=8==t||16==t?i(e,t,g):32!=t&&33!=t||m.length?a.apply(void 0,E):s(e,t,r,h);else var N=o(e,t,r);return f((C?n:l)(N,E),e,t)}},66833:e=>{e.exports=function(){}},97658:e=>{e.exports=function(){return""}},20893:e=>{e.exports=function(){}},86528:e=>{e.exports=function(){return!1}},63833:e=>{e.exports=function(e){return e}},90451:(e,t,r)=>{var n=r(278),o=r(65776),i=Math.min;e.exports=function(e,t){for(var r=e.length,a=i(t.length,r),s=n(e);a--;){var c=t[a];e[a]=o(c,r)?s[c]:void 0}return e}},46460:e=>{e.exports=function(){return[]}},258:e=>{e.exports=function(e){return e}},69255:e=>{e.exports=function(e){return e}},40087:(e,t,r)=>{var n=r(97727);function o(e,t,r){var i=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},59242:(e,t,r)=>{var n=r(23468)();e.exports=n},94885:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},14176:(e,t,r)=>{var n=r(67206),o=r(94885),i=r(35937);e.exports=function(e,t){return i(e,o(n(t)))}},40554:e=>{e.exports=function(e){return e}},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),i=r(80500),a=r(92806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function l(e,t){return t.decode?o(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&l(r,e).includes(e.arrayFormatSeparator);r=i?l(r,e):r;const a=o||i?r.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===r?r:l(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?l(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:l(a,t),r(l(e,t),a,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=h(r[e],t);else n[e]=h(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=f(r):e[t]=r,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[",o,"]"].join("")]:[...r,[u(t,e),"[",u(o,e),"]=",u(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[]"].join("")]:[...r,[u(t,e),"[]=",u(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),":list="].join("")]:[...r,[u(t,e),":list=",u(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[u(r,e),t,u(o,e)].join("")]:[[n,u(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,u(t,e)]:[...r,[u(t,e),"=",u(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?u(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(r,t)+"[]":o.reduce(n(r),[]).join("&"):u(r,t)+"="+u(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=d(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let c=t.stringify(a,r);c&&(c=`?${c}`);let l=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(l=`#${r[s]?u(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${c}${l}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:a(i,r),fragmentIdentifier:c},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},77294:(e,t,r)=>{"use strict";r.d(t,{D:()=>be});var n=r(1024);function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof o(e).Element||e instanceof Element}function a(e){return e instanceof o(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}var c=Math.max,u=Math.min,l=Math.round;function f(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,o=1;if(a(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(n=l(r.width)/s||1),i>0&&(o=l(r.height)/i||1)}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function d(e){var t=o(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return f(h(e)).left+d(e).scrollLeft}function y(e){return o(e).getComputedStyle(e)}function v(e){var t=y(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function g(e,t,r){void 0===r&&(r=!1);var n,i,s=a(t),c=a(t)&&function(e){var t=e.getBoundingClientRect(),r=l(t.width)/e.offsetWidth||1,n=l(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),u=h(t),y=f(e,c),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!r)&&(("body"!==p(t)||v(u))&&(g=(n=t)!==o(n)&&a(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:d(n)),a(t)?((b=f(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=m(u))),{x:y.left+g.scrollLeft-b.x,y:y.top+g.scrollTop-b.y,width:y.width,height:y.height}}function b(e){var t=f(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function w(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||h(e)}function O(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:a(e)&&v(e)?e:O(w(e))}function x(e,t){var r;void 0===t&&(t=[]);var n=O(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),a=o(n),s=i?[a].concat(a.visualViewport||[],v(n)?n:[]):n,c=t.concat(s);return i?c:c.concat(x(w(s)))}function C(e){return["table","td","th"].indexOf(p(e))>=0}function E(e){return a(e)&&"fixed"!==y(e).position?e.offsetParent:null}function N(e){for(var t=o(e),r=E(e);r&&C(r)&&"static"===y(r).position;)r=E(r);return r&&("html"===p(r)||"body"===p(r)&&"static"===y(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&a(e)&&"fixed"===y(e).position)return null;var r=w(e);for(s(r)&&(r=r.host);a(r)&&["html","body"].indexOf(p(r))<0;){var n=y(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var S="top",M="bottom",I="right",k="left",R="auto",A=[S,M,I,k],P="start",j="end",L="viewport",_="popper",T=A.reduce((function(e,t){return e.concat([t+"-"+P,t+"-"+j])}),[]),F=[].concat(A,[R]).reduce((function(e,t){return e.concat([t,t+"-"+P,t+"-"+j])}),[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function D(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function z(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?U:o;return function(e,t,r){void 0===r&&(r=a);var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,f={state:c,setOptions:function(r){var o="function"==typeof r?r(c.options):r;d(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:i(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var s=function(e){var t=D(e);return B.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,c.options.modifiers)));return c.orderedModifiers=s.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:f,options:n}),a=function(){};u.push(i||a)}})),f.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,r=e.popper;if(H(t,r)){c.rects={reference:g(t,N(r),"fixed"===c.options.strategy),popper:b(r)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<c.orderedModifiers.length;n++)if(!0!==c.reset){var o=c.orderedModifiers[n],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:u,instance:f})||c)}else c.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){d(),l=!0}};if(!H(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var $={passive:!0};function W(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?W(o):null,a=o?q(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case S:t={x:s,y:r.y-n.height};break;case M:t={x:s,y:r.y+r.height};break;case I:t={x:r.x+r.width,y:c};break;case k:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?V(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case P:t[u]=t[u]-(r[l]/2-n[l]/2);break;case j:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=e.isFixed,m=s.x,v=void 0===m?0:m,g=s.y,b=void 0===g?0:g,w="function"==typeof d?d({x:v,y:b}):{x:v,y:b};v=w.x,b=w.y;var O=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),C=k,E=S,R=window;if(f){var A=N(r),P="clientHeight",L="clientWidth";if(A===o(r)&&"static"!==y(A=h(r)).position&&"absolute"===c&&(P="scrollHeight",L="scrollWidth"),A=A,i===S||(i===k||i===I)&&a===j)E=M,b-=(p&&A===R&&R.visualViewport?R.visualViewport.height:A[P])-n.height,b*=u?1:-1;if(i===k||(i===S||i===M)&&a===j)C=I,v-=(p&&A===R&&R.visualViewport?R.visualViewport.width:A[L])-n.width,v*=u?1:-1}var _,T=Object.assign({position:c},f&&Q),F=!0===d?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:l(t*n)/n||0,y:l(r*n)/n||0}}({x:v,y:b}):{x:v,y:b};return v=F.x,b=F.y,u?Object.assign({},T,((_={})[E]=x?"0":"",_[C]=O?"0":"",_.transform=(R.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",_)):Object.assign({},T,((t={})[E]=x?b+"px":"",t[C]=O?v+"px":"",t.transform="",t))}const G={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=F.reduce((function(e,r){return e[r]=function(e,t,r){var n=W(e),o=[k,S].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[k,I].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var K={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return K[e]}))}var J={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function te(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&s(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ne(e,t){return t===L?re(function(e){var t=o(e),r=h(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,c=n.offsetTop)),{width:i,height:a,x:s+m(e),y:c}}(e)):i(t)?function(e){var t=f(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,r=h(e),n=d(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=c(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=c(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+m(e),u=-n.scrollTop;return"rtl"===y(o||r).direction&&(s+=c(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(h(e)))}function oe(e,t,r){var n="clippingParents"===t?function(e){var t=x(w(e)),r=["absolute","fixed"].indexOf(y(e).position)>=0&&a(e)?N(e):e;return i(r)?t.filter((function(e){return i(e)&&te(e,r)&&"body"!==p(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),s=o[0],l=o.reduce((function(t,r){var n=ne(e,r);return t.top=c(n.top,t.top),t.right=u(n.right,t.right),t.bottom=u(n.bottom,t.bottom),t.left=c(n.left,t.left),t}),ne(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function se(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,s=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?L:c,l=r.elementContext,d=void 0===l?_:l,p=r.altBoundary,m=void 0!==p&&p,y=r.padding,v=void 0===y?0:y,g=ie("number"!=typeof v?v:ae(v,A)),b=d===_?"reference":_,w=e.rects.popper,O=e.elements[m?b:d],x=oe(i(O)?O:O.contextElement||h(e.elements.popper),s,u),C=f(e.elements.reference),E=Y({reference:C,element:w,strategy:"absolute",placement:o}),N=re(Object.assign({},w,E)),k=d===_?N:C,R={top:x.top-k.top+g.top,bottom:k.bottom-x.bottom+g.bottom,left:x.left-k.left+g.left,right:k.right-x.right+g.right},P=e.modifiersData.offset;if(d===_&&P){var j=P[o];Object.keys(R).forEach((function(e){var t=[I,M].indexOf(e)>=0?1:-1,r=[S,M].indexOf(e)>=0?"y":"x";R[e]+=j[r]*t}))}return R}function ce(e,t,r){return c(e,u(t,r))}const ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,m=void 0===h||h,y=r.tetherOffset,v=void 0===y?0:y,g=se(t,{boundary:l,rootBoundary:f,padding:p,altBoundary:d}),w=W(t.placement),O=q(t.placement),x=!O,C=V(w),E="x"===C?"y":"x",R=t.modifiersData.popperOffsets,A=t.rects.reference,j=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,_="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(R){if(i){var B,D="y"===C?S:k,U="y"===C?M:I,H="y"===C?"height":"width",z=R[C],$=z+g[D],Y=z-g[U],Q=m?-j[H]/2:0,X=O===P?A[H]:j[H],G=O===P?-j[H]:-A[H],K=t.elements.arrow,Z=m&&K?b(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[D],te=J[U],re=ce(0,A[H],Z[H]),ne=x?A[H]/2-Q-re-ee-_.mainAxis:X-re-ee-_.mainAxis,oe=x?-A[H]/2+Q+re+te+_.mainAxis:G+re+te+_.mainAxis,ie=t.elements.arrow&&N(t.elements.arrow),ae=ie?"y"===C?ie.clientTop||0:ie.clientLeft||0:0,ue=null!=(B=null==T?void 0:T[C])?B:0,le=z+oe-ue,fe=ce(m?u($,z+ne-ue-ae):$,z,m?c(Y,le):Y);R[C]=fe,F[C]=fe-z}if(s){var de,pe="x"===C?S:k,he="x"===C?M:I,me=R[E],ye="y"===E?"height":"width",ve=me+g[pe],ge=me-g[he],be=-1!==[S,k].indexOf(w),we=null!=(de=null==T?void 0:T[E])?de:0,Oe=be?ve:me-A[ye]-j[ye]-we+_.altAxis,xe=be?me+A[ye]+j[ye]-we-_.altAxis:ge,Ce=m&&be?function(e,t,r){var n=ce(e,t,r);return n>r?r:n}(Oe,me,xe):ce(m?Oe:ve,me,m?xe:ge);R[E]=Ce,F[E]=Ce-me}t.modifiersData[n]=F}},requiresIfExists:["offset"]};const le={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=W(r.placement),c=V(s),u=[k,I].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,A))}(o.padding,r),f=b(i),d="y"===c?S:k,p="y"===c?M:I,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],m=a[c]-r.rects.reference[c],y=N(i),v=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,g=h/2-m/2,w=l[d],O=v-f[u]-l[p],x=v/2-f[u]/2+g,C=ce(w,x,O),E=c;r.modifiersData[n]=((t={})[E]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&te(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function de(e){return[S,I,M,k].some((function(t){return e[t]>=0}))}var pe=z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=void 0===i||i,s=n.resize,c=void 0===s||s,u=o(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",r.update,$)})),c&&u.addEventListener("resize",r.update,$),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",r.update,$)})),c&&u.removeEventListener("resize",r.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:W(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];a(o)&&p(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});a(n)&&p(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},G,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,y=t.options.placement,v=W(y),g=c||(v===y||!h?[Z(y)]:function(e){if(W(e)===R)return[];var t=Z(e);return[ee(e),t,ee(t)]}(y)),b=[y].concat(g).reduce((function(e,r){return e.concat(W(r)===R?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?F:c,l=q(n),f=l?s?T:T.filter((function(e){return q(e)===l})):A,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,r){return t[r]=se(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[W(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,O=t.rects.popper,x=new Map,C=!0,E=b[0],N=0;N<b.length;N++){var j=b[N],L=W(j),_=q(j)===P,B=[S,M].indexOf(L)>=0,D=B?"width":"height",U=se(t,{placement:j,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),H=B?_?I:k:_?M:S;w[D]>O[D]&&(H=Z(H));var z=Z(H),$=[];if(i&&$.push(U[L]<=0),s&&$.push(U[H]<=0,U[z]<=0),$.every((function(e){return e}))){E=j,C=!1;break}x.set(j,$)}if(C)for(var V=function(e){var t=b.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},Y=h?3:1;Y>0;Y--){if("break"===V(Y))break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ue,le,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),c=fe(a,n),u=fe(s,o,i),l=de(c),f=de(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),he=r(69590),me=r.n(he),ye=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},ve="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,ge=[],be=function(e,t,r){void 0===r&&(r={});var o=n.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||ge},a=n.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],u=n.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);c({styles:ye(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ye(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),l=n.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return me()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=n.useRef();return ve((function(){f.current&&f.current.setOptions(l)}),[l]),ve((function(){if(null!=e&&null!=t){var n=(r.createPopper||pe)(e,t,l);return f.current=n,function(){n.destroy(),f.current=null}}}),[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},18311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=r(1024),s=i(a),c=i(r(9230)),u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){for(var n=!0;n;){var o=e,i=t,a=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,r=a,n=!0,s=u=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={hover:!1}}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getLineStyle",value:function(e){return n({position:"absolute",height:"20%",left:0,right:0,top:2*e*20+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var e=this,t=void 0;if(this.props.customIcon){var r={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmIcon)};t=s.default.cloneElement(this.props.customIcon,r)}else t=s.default.createElement("span",null,[0,1,2].map((function(t){return s.default.createElement("span",{key:t,className:("bm-burger-bars "+e.props.barClassName+" "+(e.state.hover?"bm-burger-bars-hover":"")).trim(),style:n({},e.getLineStyle(t),e.props.styles.bmBurgerBars)})})));return s.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:n({zIndex:1e3},this.props.styles.bmBurgerButton)},s.default.createElement("button",{id:"react-burger-menu-btn",onClick:this.props.onClick,onMouseOver:function(){e.setState({hover:!0}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!0})},onMouseOut:function(){e.setState({hover:!1}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!1})},style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"}},"Open Menu"),t)}}]),t}(a.Component);t.default=u,u.propTypes={barClassName:c.default.string,customIcon:c.default.element,styles:c.default.object},u.defaultProps={barClassName:"",className:"",styles:{}},e.exports=t.default},44114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e,t,r){for(var n=!0;n;){var o=e,i=t,a=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,r=a,n=!0,s=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=r(1024),u=a(c),l=a(r(9230)),f=function(e){function t(){s(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getCrossStyle",value:function(e){return{position:"absolute",width:3,height:14,transform:"before"===e?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var e,t=this;if(this.props.customIcon){var r={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmCross)};e=u.default.cloneElement(this.props.customIcon,r)}else e=u.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map((function(e,r){return u.default.createElement("span",{key:r,className:("bm-cross "+t.props.crossClassName).trim(),style:n({},t.getCrossStyle(e),t.props.styles.bmCross)})})));return u.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:n({},{position:"absolute",width:24,height:24,right:8,top:8},this.props.styles.bmCrossButton)},u.default.createElement("button",{id:"react-burger-cross-btn",onClick:this.props.onClick,style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"},tabIndex:this.props.isOpen?0:-1},"Close Menu"),e)}}]),t}(c.Component);t.default=f,f.propTypes={crossClassName:l.default.string,customIcon:l.default.element,isOpen:l.default.bool,styles:l.default.object},f.defaultProps={crossClassName:"",className:"",styles:{},isOpen:!1},e.exports=t.default},67545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={overlay:function(e){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:e?1:0,MozTransform:e?"":"translate3d(100%, 0, 0)",MsTransform:e?"":"translate3d(100%, 0, 0)",OTransform:e?"":"translate3d(100%, 0, 0)",WebkitTransform:e?"":"translate3d(100%, 0, 0)",transform:e?"":"translate3d(100%, 0, 0)",transition:e?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(e,t,r){return{position:"fixed",right:r?0:"inherit",zIndex:1100,width:t,height:"100%",MozTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},e.exports=t.default},24428:(e,t)=>{"use strict";function r(){var e=Array.from(document.getElementsByClassName("bm-item")).shift();e&&e.focus()}function n(){var e=Array.from(document.getElementsByClassName("bm-item")).pop();e&&e.focus()}function o(){var e=document.getElementById("react-burger-cross-btn");e&&e.focus()}function i(e){if(document.activeElement.className.includes("bm-item")){var t=document.activeElement[e];t?t.focus():o()}else"previousElementSibling"===e?n():r()}Object.defineProperty(t,"__esModule",{value:!0}),t.focusOnFirstMenuItem=r,t.focusOnLastMenuItem=n,t.focusOnCrossButton=o,t.focusOnMenuButton=function(){var e=document.getElementById("react-burger-menu-btn");e&&e.focus()},t.focusOnMenuItem=i,t.focusOnNextMenuItem=function(){i("nextElementSibling")},t.focusOnPreviousMenuItem=function(){i("previousElementSibling")}},32994:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(1024)),s=(i(r(30314)),i(r(9230))),c=i(r(67545)),u=r(24428),l=i(r(18311)),f=i(r(44114));t.default=function(e){if(!e)throw new Error("No styles supplied");var t="ArrowDown",r="ArrowUp";var i=function(i){var s,d,p=a.default.useState(!1),h=n(p,2),m=h[0],y=h[1],v=a.default.useRef(),g=a.default.useRef({}),b=(s=i.isOpen,d=a.default.useRef(s),a.default.useEffect((function(){d.current=s})),d.current);function w(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];g.current=e,N(),setTimeout((function(){y((function(t){return void 0!==e.isOpen?e.isOpen:!t}))}))}function O(){"function"==typeof i.onClose?i.onClose():w()}function x(e,t){var r=i.width,n=i.right;return e(m,"string"!=typeof r?r+"px":r,n,t)}function C(t,r,n){var a="bm"+t.replace(t.charAt(0),t.charAt(0).toUpperCase()),s=c.default[t]?x(c.default[t]):{};return e[t]&&(s=o({},s,x(e[t],r+1))),i.styles[a]&&(s=o({},s,i.styles[a])),n&&(s=o({},s,n)),i.noTransition&&delete s.transition,s}function E(e,t,r){var n=document.getElementById(e);if(n){var o=x(t);for(var a in o)o.hasOwnProperty(a)&&(n.style[a]=r?o[a]:"");var s=function(e){return e.style["overflow-x"]=r?"hidden":""};i.htmlClassName||s(document.querySelector("html")),i.bodyClassName||s(document.querySelector("body"))}else console.error("Element with ID '"+e+"' not found")}function N(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0],r=function(e,r){return e.classList[t?"add":"remove"](r)};i.htmlClassName&&r(document.querySelector("html"),i.htmlClassName),i.bodyClassName&&r(document.querySelector("body"),i.bodyClassName),e.pageWrap&&i.pageWrapId&&E(i.pageWrapId,e.pageWrap,t),e.outerContainer&&i.outerContainerId&&E(i.outerContainerId,e.outerContainer,t);var n=document.querySelector(".bm-menu-wrap");n&&(t?n.removeAttribute("hidden"):n.setAttribute("hidden",!0))}function S(){v.current&&clearTimeout(v.current)}function M(e){switch((e=e||window.event).key){case"Escape":i.disableCloseOnEsc||(O(),(0,u.focusOnMenuButton)());break;case t:(0,u.focusOnNextMenuItem)();break;case r:(0,u.focusOnPreviousMenuItem)();break;case"Home":(0,u.focusOnFirstMenuItem)();break;case"End":(0,u.focusOnLastMenuItem)()}}function I(e){if((e=e||window.event).target===document.getElementById("react-burger-menu-btn"))switch(e.key){case t:case" ":w();break;case r:w({focusOnLastItem:!0})}}return a.default.useEffect((function(){return i.isOpen&&w({isOpen:!0,noStateChange:!0}),function(){N(!1),S()}}),[]),a.default.useEffect((function(){var t,r;void 0!==i.isOpen&&i.isOpen!==m&&i.isOpen!==b?w():e.svg&&(t=document.getElementById("bm-morph-shape"),r=e.svg.lib(t).select("path"),m?e.svg.animate(r):setTimeout((function(){r.attr("d",e.svg.pathInitial)}),300))})),a.default.useEffect((function(){var e=g.current,t=e.noStateChange,r=e.focusOnLastItem;t||i.onStateChange({isOpen:m}),i.disableAutoFocus||(m?r?(0,u.focusOnLastMenuItem)():(0,u.focusOnFirstMenuItem)():document.activeElement?document.activeElement.blur():document.body.blur()),S(),v.current=setTimeout((function(){v.current=null,m||N(!1)}),500);var n=m?M:I,o=i.customOnKeyDown||n;return window.addEventListener("keydown",o),function(){window.removeEventListener("keydown",o)}}),[m]),a.default.createElement("div",null,!i.noOverlay&&a.default.createElement("div",{className:("bm-overlay "+i.overlayClassName).trim(),onClick:function(){!0===i.disableOverlayClick||"function"==typeof i.disableOverlayClick&&i.disableOverlayClick()||O()},style:C("overlay")}),!1!==i.customBurgerIcon&&a.default.createElement("div",{style:C("burgerIcon")},a.default.createElement(l.default,{onClick:function(){"function"==typeof i.onOpen?i.onOpen():w()},styles:i.styles,customIcon:i.customBurgerIcon,className:i.burgerButtonClassName,barClassName:i.burgerBarClassName,onIconStateChange:i.onIconStateChange})),a.default.createElement("div",{id:i.id,className:("bm-menu-wrap "+i.className).trim(),style:C("menuWrap"),"aria-hidden":!m},e.svg&&a.default.createElement("div",{id:"bm-morph-shape",className:("bm-morph-shape "+i.morphShapeClassName).trim(),style:C("morphShape")},a.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},a.default.createElement("path",{d:e.svg.pathInitial}))),a.default.createElement("div",{className:("bm-menu "+i.menuClassName).trim(),style:C("menu")},a.default.createElement(i.itemListElement,{className:("bm-item-list "+i.itemListClassName).trim(),style:C("itemList")},a.default.Children.map(i.children,(function(e,t){if(e){var r={key:t,className:["bm-item",i.itemClassName,e.props.className].filter((function(e){return!!e})).join(" "),style:C("item",t,e.props.style),tabIndex:m?0:-1};return a.default.cloneElement(e,r)}})))),!1!==i.customCrossIcon&&a.default.createElement("div",{style:C("closeButton")},a.default.createElement(f.default,{onClick:O,styles:i.styles,customIcon:i.customCrossIcon,className:i.crossButtonClassName,crossClassName:i.crossClassName,isOpen:m}))))};return i.propTypes={bodyClassName:s.default.string,burgerBarClassName:s.default.string,burgerButtonClassName:s.default.string,className:s.default.string,crossButtonClassName:s.default.string,crossClassName:s.default.string,customBurgerIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customCrossIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customOnKeyDown:s.default.func,disableAutoFocus:s.default.bool,disableCloseOnEsc:s.default.bool,disableOverlayClick:s.default.oneOfType([s.default.bool,s.default.func]),htmlClassName:s.default.string,id:s.default.string,isOpen:s.default.bool,itemClassName:s.default.string,itemListClassName:s.default.string,itemListElement:s.default.oneOf(["div","nav"]),menuClassName:s.default.string,morphShapeClassName:s.default.string,noOverlay:s.default.bool,noTransition:s.default.bool,onClose:s.default.func,onIconHoverChange:s.default.func,onOpen:s.default.func,onStateChange:s.default.func,outerContainerId:e&&e.outerContainer?s.default.string.isRequired:s.default.string,overlayClassName:s.default.string,pageWrapId:e&&e.pageWrap?s.default.string.isRequired:s.default.string,right:s.default.bool,styles:s.default.object,width:s.default.oneOfType([s.default.number,s.default.string])},i.defaultProps={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300,onIconHoverChange:function(){},itemListElement:"nav"},i},e.exports=t.default},19755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(32994),i=(n=o)&&n.__esModule?n:{default:n};t.default=(0,i.default)({}),e.exports=t.default},16159:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>x});var n,o=r(1024),i=r.n(o),a=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&l(e,r,t[r]);if(s)for(var r of s(t))u.call(t,r)&&l(e,r,t[r]);return e},d=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&u.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw"Version value out of range";if(o<-1||o>7)throw"Mask value out of range";this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(o=t,e=r),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(r,n){const o=e.QrSegment.makeSegments(r);return t.encodeSegments(o,n)}static encodeBinary(r,n){const o=e.QrSegment.makeBytes(r);return t.encodeSegments([o],n)}static encodeSegments(e,r,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw"Invalid value";let l,f;for(l=o;;l++){const n=8*t.getNumDataCodewords(l,r),o=s.getTotalBits(e,l);if(o<=n){f=o;break}if(l>=a)throw"Data too long"}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(r=e);let d=[];for(const t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(const e of t.getData())d.push(e)}i(d.length==f);const p=8*t.getNumDataCodewords(l,r);i(d.length<=p),n(0,Math.min(4,p-d.length),d),n(0,(8-d.length%8)%8,d),i(d.length%8==0);for(let e=236;d.length<p;e^=253)n(e,8,d);let h=[];for(;8*h.length<d.length;)h.push(0);return d.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);i(n>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(n,e));this.setFunctionModule(8,7,o(n,6)),this.setFunctionModule(8,8,o(n,7)),this.setFunctionModule(7,8,o(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const r=o(t,e),n=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(n,i,r),this.setFunctionModule(i,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),i=e+n,a=t+r;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw"Invalid argument";const o=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],a=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(t.getNumRawDataModules(r)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const f=t.reedSolomonComputeDivisor(a);for(let r=0,n=0;r<o;r++){let o=e.slice(n,n+u-a+(r<c?0:1));n+=o.length;const i=t.reedSolomonComputeRemainder(o,f);r<c&&o.push(0),l.push(o.concat(i))}let d=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,r)=>{(e!=u-a||r>=c)&&d.push(t[e])}));return i(d.length==s),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw"Invalid argument";let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-n:n;!this.isFunction[s][a]&&r<8*e.length&&(this.modules[s][a]=o(e[r>>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw"Mask value out of range";for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw"Unreachable"}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[r][a]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][a],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][r]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[a][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw"Version number out of range";let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return i(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw"Degree out of range";let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let o=0;o<e;o++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const o of e){const e=o^n.shift();n.push(0),r.forEach(((r,o)=>n[o]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw"Byte out of range";let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return i(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw"Value out of range";for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw"Assertion error"}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const a=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw"Invalid argument";this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw"String contains non-numeric characters";let t=[];for(let r=0;r<e.length;){const o=Math.min(e.length-r,3);n(parseInt(e.substr(r,o),10),3*o+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw"String contains unencodable characters in alphanumeric mode";let t,r=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),n(o,11,r)}return t<e.length&&n(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new a(a.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw"ECI assignment value out of range";if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw"ECI assignment value out of range";n(6,3,t),n(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substr(r+1,2),16)),r+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var p=n,h={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},m={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};
2
+ /**
3
+ * @license qrcode.react
4
+ * Copyright (c) Paul O'Shannessy
5
+ * SPDX-License-Identifier: ISC
6
+ */function y(e,t=0){const r=[];return e.forEach((function(e,n){let o=null;e.forEach((function(i,a){if(!i&&null!==o)return r.push(`M${o+t} ${n+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?r.push(`M${a+t},${n+t} h1v1H${a+t}z`):r.push(`M${o+t},${n+t} h${a+1-o}v1H${o+t}z`)}}))})),r.join("")}function v(e,t){return e.slice().map(((e,r)=>r<t.y||r>=t.y+t.h?e:e.map(((e,r)=>(r<t.x||r>=t.x+t.w)&&e))))}function g(e,t){const{imageSettings:r,size:n,includeMargin:o}=e;if(null==r)return null;const i=o?4:0,a=t.length+2*i,s=Math.floor(.1*n),c=a/n,u=(r.width||s)*c,l=(r.height||s)*c,f=null==r.x?t.length/2-u/2:r.x*c,d=null==r.y?t.length/2-l/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(f),t=Math.floor(d);p={x:e,y:t,w:Math.ceil(u+f-e),h:Math.ceil(l+d-t)}}return{x:f,y:d,h:l,w:u,excavation:p}}var b=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function w(e){const t=(0,o.useRef)(null),r=(0,o.useRef)(null);function n(){const{value:n,size:o,level:i,bgColor:a,fgColor:s,includeMargin:c}=e;if(null!=t.current){const u=t.current,l=u.getContext("2d");if(!l)return;let f=p.QrCode.encodeText(n,h[i]).getModules();const d=c?4:0,m=f.length+2*d,w=g(e,f),O=r.current,x=null!=w&&null!==O&&O.complete&&0!==O.naturalHeight&&0!==O.naturalWidth;x&&null!=w.excavation&&(f=v(f,w.excavation));const C=window.devicePixelRatio||1;u.height=u.width=o*C;const E=o/m*C;l.scale(E,E),l.fillStyle=a,l.fillRect(0,0,m,m),l.fillStyle=s,b?l.fill(new Path2D(y(f,d))):f.forEach((function(e,t){e.forEach((function(e,r){e&&l.fillRect(r+d,t+d,1,1)}))})),x&&l.drawImage(O,w.x+d,w.y+d,w.w,w.h)}}(0,o.useEffect)((()=>{n()}));const a=e,{value:s,size:c,level:u,bgColor:l,fgColor:m,style:w,includeMargin:O,imageSettings:x}=a,C=d(a,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),E=f({height:c,width:c},w);let N=null,S=null==x?void 0:x.src;return null!=S&&(N=i().createElement("img",{src:S,key:S,style:{display:"none"},onLoad:()=>{n()},ref:r})),i().createElement(i().Fragment,null,i().createElement("canvas",f({style:E,height:c,width:c,ref:t},C)),N)}function O(e){const t=e,{value:r,size:n,level:o,bgColor:a,fgColor:s,includeMargin:c,imageSettings:u}=t,l=d(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let m=p.QrCode.encodeText(r,h[o]).getModules();const b=c?4:0,w=m.length+2*b,O=g(e,m);let x=null;null!=u&&null!=O&&(null!=O.excavation&&(m=v(m,O.excavation)),x=i().createElement("image",{xlinkHref:u.src,height:O.h,width:O.w,x:O.x+b,y:O.y+b,preserveAspectRatio:"none"}));const C=y(m,b);return i().createElement("svg",f({shapeRendering:"crispEdges",height:n,width:n,viewBox:`0 0 ${w} ${w}`},l),i().createElement("path",{fill:a,d:`M0,0 h${w}v${w}H0z`}),i().createElement("path",{fill:s,d:C}),x)}w.defaultProps=m,O.defaultProps=m;var x=e=>{const t=e,{renderAs:r}=t,n=d(t,["renderAs"]),o="svg"===r?O:w;return i().createElement(o,f({},n))};x.defaultProps=f({renderAs:"canvas"},m)},33188:(e,t,r)=>{"use strict";var n=r(38163),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var g=d(r,v);try{u(t,v,g)}catch(e){}}}}return t}},71534:(e,t,r)=>{"use strict";var n=r(71909);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array: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 r.PropTypes=r,r}},10317:(e,t,r)=>{e.exports=r(71534)()},71909:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98861:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n=r(1024),o=r.n(n),i=r(10317),a=r.n(i);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){var t,r;function n(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},i.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},i.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},n}(o().Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:a().string.isRequired,onChange:a().func,grecaptcha:a().object,theme:a().oneOf(["dark","light"]),type:a().oneOf(["image","audio"]),tabindex:a().number,onExpired:a().func,onErrored:a().func,size:a().oneOf(["compact","normal","invisible"]),stoken:a().string,hl:a().string,badge:a().oneOf(["bottomright","bottomleft","inline"])},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var l=r(33188),f=r.n(l);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}var p={},h=0;var m="onloadcallback";const y=(v=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+m+"&render=explicit"},g=(g={callbackName:m,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function i(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var a=i.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+h++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof v?v():v,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=p[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[g.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=g,o=n.globalName,i=n.callbackName,a=n.scriptId;if(o&&void 0!==window[o]&&(p[t]={loaded:!0,observers:{}}),p[t]){var s=p[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},p[t]={loaded:!1,observers:c};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,g.attributes)u.setAttribute(l,g.attributes[l]);a&&(u.id=a);var f=function(e){if(p[t]){var r=p[t].observers;for(var n in r)e(r[n])&&delete r[n]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=p[t];e&&(e.loaded=!0,f((function(t){return!i&&(t(e),!0)})))},u.onerror=function(){var e=p[t];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===g.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=p[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===g.removeOnUnmount&&delete p[e])},a.render=function(){var t=g.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(i[t]=void 0!==window[t]?window[t]:void 0),i.ref=o,(0,n.createElement)(e,i)},i}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,d({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:a().func},f()(o,e)})(u);var v,g;const b=y},66526:(e,t)=>{"use strict";
7
+ /** @license React v16.13.1
8
+ * react-is.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case y:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return O(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||O(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===y},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},38163:(e,t,r)=>{"use strict";e.exports=r(66526)}}]);
@@ -0,0 +1,7 @@
1
+ (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[611],{70457:(e,t,r)=>{"use strict";r.d(t,{Alc:()=>o,Fyj:()=>i,IJ7:()=>n,Tab:()=>s,pL1:()=>a});
2
+ /*!
3
+ * Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com
4
+ * License - https://fontawesome.com/license (Commercial License)
5
+ * Copyright 2022 Fonticons, Inc.
6
+ */
7
+ var n={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.15C227.7 49.08 218.1 66.9 201.1 71.94C121.8 95.55 64 169.1 64 255.1C64 362 149.1 447.1 256 447.1C362 447.1 448 362 448 255.1C448 169.1 390.2 95.55 310.9 71.94C293.9 66.9 284.3 49.08 289.3 32.15C294.4 15.21 312.2 5.562 329.1 10.6C434.9 42.07 512 139.1 512 255.1C512 397.4 397.4 511.1 256 511.1C114.6 511.1 0 397.4 0 255.1C0 139.1 77.15 42.07 182.9 10.6C199.8 5.562 217.6 15.21 222.7 32.15V32.15z"]},o={prefix:"fas",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M364.2 83.8C339.8 59.39 300.2 59.39 275.8 83.8L91.8 267.8C49.71 309.9 49.71 378.1 91.8 420.2C133.9 462.3 202.1 462.3 244.2 420.2L396.2 268.2C407.1 257.3 424.9 257.3 435.8 268.2C446.7 279.1 446.7 296.9 435.8 307.8L283.8 459.8C219.8 523.8 116.2 523.8 52.2 459.8C-11.75 395.8-11.75 292.2 52.2 228.2L236.2 44.2C282.5-2.08 357.5-2.08 403.8 44.2C450.1 90.48 450.1 165.5 403.8 211.8L227.8 387.8C199.2 416.4 152.8 416.4 124.2 387.8C95.59 359.2 95.59 312.8 124.2 284.2L268.2 140.2C279.1 129.3 296.9 129.3 307.8 140.2C318.7 151.1 318.7 168.9 307.8 179.8L163.8 323.8C157.1 330.5 157.1 341.5 163.8 348.2C170.5 354.9 181.5 354.9 188.2 348.2L364.2 172.2C388.6 147.8 388.6 108.2 364.2 83.8V83.8z"]},a={prefix:"fas",iconName:"square",icon:[448,512,[9723,9724,61590,9632],"f0c8","M0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96z"]},i={prefix:"fas",iconName:"square-full",icon:[512,512,[128997,128998,128999,129e3,129001,129002,129003,11036,11035],"f45c","M0 0H512V512H0V0z"]},s={prefix:"fas",iconName:"star",icon:[576,512,[61446,11088],"f005","M381.2 150.3L524.9 171.5C536.8 173.2 546.8 181.6 550.6 193.1C554.4 204.7 551.3 217.3 542.7 225.9L438.5 328.1L463.1 474.7C465.1 486.7 460.2 498.9 450.2 506C440.3 513.1 427.2 514 416.5 508.3L288.1 439.8L159.8 508.3C149 514 135.9 513.1 126 506C116.1 498.9 111.1 486.7 113.2 474.7L137.8 328.1L33.58 225.9C24.97 217.3 21.91 204.7 25.69 193.1C29.46 181.6 39.43 173.2 51.42 171.5L195 150.3L259.4 17.97C264.7 6.954 275.9-.0391 288.1-.0391C300.4-.0391 311.6 6.954 316.9 17.97L381.2 150.3z"]}},30963:(e,t,r)=>{"use strict";r.d(t,{G:()=>x});var n=r(78947),o=r(2876),a=r.n(o),i=r(1024),s=r.n(i);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){return f="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},f(e)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var d=["style"];function O(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),o=m(t.slice(0,n)),a=t.slice(n+1).trim();return o.startsWith("webkit")?e[(r=o,r.charAt(0).toUpperCase()+r.slice(1))]=a:e[o]=a,e}),{})}var C=!1;try{C=!0}catch(e){}function h(e){return e&&"object"===f(e)&&e.prefix&&e.iconName&&e.icon?e:n.parse.icon?n.parse.icon(e):null===e?null:e&&"object"===f(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function v(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?u({},e,t):{}}var g=["forwardedRef"];function x(e){var t=e.forwardedRef,r=p(e,g),o=r.icon,a=r.mask,i=r.symbol,s=r.className,l=r.title,f=r.titleId,y=r.maskId,m=h(o),d=v("classes",[].concat(b(function(e){var t,r=e.beat,n=e.fade,o=e.beatFade,a=e.bounce,i=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,f=e.spinReverse,p=e.pulse,b=e.fixedWidth,y=e.inverse,m=e.border,d=e.listItem,O=e.flip,C=e.size,h=e.rotation,v=e.pull,g=(u(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":o,"fa-bounce":a,"fa-shake":i,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":p,"fa-fw":b,"fa-inverse":y,"fa-border":m,"fa-li":d,"fa-flip-horizontal":"horizontal"===O||"both"===O,"fa-flip-vertical":"vertical"===O||"both"===O},"fa-".concat(C),null!=C),u(t,"fa-rotate-".concat(h),null!=h&&0!==h),u(t,"fa-pull-".concat(v),null!=v),u(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(g).map((function(e){return g[e]?e:null})).filter((function(e){return e}))}(r)),b(s.split(" ")))),O=v("transform","string"==typeof r.transform?n.parse.transform(r.transform):r.transform),w=v("mask",h(a)),k=(0,n.icon)(m,c(c(c(c({},d),O),w),{},{symbol:i,title:l,titleId:f,maskId:y}));if(!k)return function(){var e;!C&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",m),null;var L=k.abstract,P={ref:t};return Object.keys(r).forEach((function(e){x.defaultProps.hasOwnProperty(e)||(P[e]=r[e])})),j(L[0],P)}x.displayName="FontAwesomeIcon",x.propTypes={beat:a().bool,border:a().bool,bounce:a().bool,className:a().string,fade:a().bool,flash:a().bool,mask:a().oneOfType([a().object,a().array,a().string]),maskId:a().string,fixedWidth:a().bool,inverse:a().bool,flip:a().oneOf(["horizontal","vertical","both"]),icon:a().oneOfType([a().object,a().array,a().string]),listItem:a().bool,pull:a().oneOf(["right","left"]),pulse:a().bool,rotation:a().oneOf([0,90,180,270]),shake:a().bool,size:a().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:a().bool,spinPulse:a().bool,spinReverse:a().bool,symbol:a().oneOfType([a().bool,a().string]),title:a().string,titleId:a().string,transform:a().oneOfType([a().string,a().object]),swapOpacity:a().bool},x.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var j=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var o=(r.children||[]).map((function(r){return e(t,r)})),a=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=O(n);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[m(t)]=n}return e}),{attrs:{}}),i=n.style,s=void 0===i?{}:i,l=p(n,d);return a.attrs.style=c(c({},a.attrs.style),s),t.apply(void 0,[r.tag,c(c({},a.attrs),l)].concat(b(o)))}.bind(null,s().createElement)},3252:(e,t,r)=>{"use strict";var n=r(5771);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={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:a,resetWarningCache:o};return r.PropTypes=r,r}},2876:(e,t,r)=>{e.exports=r(3252)()},5771:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);