(self.webpackChunk_digicms_admin=self.webpackChunk_digicms_admin||[]).push([[5538],{78834:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>xe});var t=e(5173),c=e(88425),a=e(32735),P=e(5636),D=e(60216),M=e.n(D),x=e(9808),N=e(90662),ee=e(16540),Y=e(19192),L=e(44526),K=e(37178),w=e(95602),A=e(83281),S=e(954),k=e(10190);const F=({onSubmit:ne,schema:$e})=>{const{formatMessage:ie}=(0,P.useIntl)();return a.createElement(S.ZP,null,a.createElement(ee.Main,null,a.createElement(S.bU,null,a.createElement(A.Formik,{enableReinitialize:!0,initialValues:{email:""},onSubmit:ne,validationSchema:$e,validateOnChange:!1},({values:ke,errors:je,handleChange:qe})=>a.createElement(c.Form,{noValidate:!0},a.createElement(S.sg,null,a.createElement(k.Z,null),a.createElement(x.Box,{paddingTop:6,paddingBottom:7},a.createElement(w.Typography,{as:"h1",variant:"alpha"},ie({id:"Auth.form.button.password-recovery",defaultMessage:"Password Recovery"}))),je.errorMessage&&a.createElement(w.Typography,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},ie({id:je.errorMessage,defaultMessage:"An error occurred"}))),a.createElement(N.Stack,{spacing:6},a.createElement(K.TextInput,{error:je.email?ie({id:je.email,defaultMessage:"This email is invalid."}):"",value:ke.email,onChange:qe,label:ie({id:"Auth.form.email.label",defaultMessage:"Email"}),placeholder:ie({id:"Auth.form.email.placeholder",defaultMessage:"kai@doe.com"}),name:"email",required:!0}),a.createElement(L.Button,{type:"submit",fullWidth:!0},ie({id:"Auth.form.button.forgot-password",defaultMessage:"Send Email"})))))),a.createElement(Y.Flex,{justifyContent:"center"},a.createElement(x.Box,{paddingTop:4},a.createElement(c.Link,{to:"/auth/login"},ie({id:"Auth.link.ready",defaultMessage:"Ready to sign in?"}))))))};F.defaultProps={onSubmit:ne=>ne.preventDefault()},F.propTypes={onSubmit:M().func,schema:M().shape({type:M().string.isRequired}).isRequired};const $=F,g=()=>{const{formatMessage:ne}=(0,P.useIntl)();return a.createElement(S.ZP,null,a.createElement(ee.Main,null,a.createElement(S.bU,null,a.createElement(S.sg,null,a.createElement(k.Z,null),a.createElement(x.Box,{paddingTop:6,paddingBottom:7},a.createElement(w.Typography,{as:"h1",variant:"alpha"},ne({id:"app.containers.AuthPage.ForgotPasswordSuccess.title",defaultMessage:"Email sent"}))),a.createElement(w.Typography,null,ne({id:"app.containers.AuthPage.ForgotPasswordSuccess.text.email",defaultMessage:"It can take a few minutes to receive your password recovery link."})),a.createElement(x.Box,{paddingTop:4},a.createElement(w.Typography,null,ne({id:"app.containers.AuthPage.ForgotPasswordSuccess.text.contact-admin",defaultMessage:"If you do not receive this link, please contact your administrator."}))))),a.createElement(Y.Flex,{justifyContent:"center"},a.createElement(x.Box,{paddingTop:4},a.createElement(c.Link,{to:"/auth/login"},ne({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))},J=()=>{const{formatMessage:ne}=(0,P.useIntl)(),ie=(0,c.useQuery)().get("info")||ne({id:"Auth.components.Oops.text",defaultMessage:"Your account has been suspended."});return a.createElement(S.ZP,null,a.createElement(ee.Main,null,a.createElement(S.bU,null,a.createElement(S.sg,null,a.createElement(k.Z,null),a.createElement(x.Box,{paddingTop:6,paddingBottom:7},a.createElement(w.Typography,{as:"h1",variant:"alpha"},ne({id:"Auth.components.Oops.title",defaultMessage:"Oops..."}))),a.createElement(w.Typography,null,ie),a.createElement(x.Box,{paddingTop:4},a.createElement(w.Typography,null,ne({id:"Auth.components.Oops.text.admin",defaultMessage:"If this is a mistake, please contact your administrator."}))))),a.createElement(Y.Flex,{justifyContent:"center"},a.createElement(x.Box,{paddingTop:4},a.createElement(c.Link,{to:"/auth/login"},ne({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))};var fe=e(19615),Le=e(33795),be=e.n(Le),l=e(9086),Ye=e.n(l),Ie=e(5141),le=e(43653),oe=e.n(le),ue=e(78330),Ze=e(37341),q=e.n(Ze),ae=e(33912),V=e.n(ae),j=e(72218),_=(ne,$e,ie)=>new Promise((ke,je)=>{var qe=se=>{try{Je(ie.next(se))}catch(He){je(He)}},Oe=se=>{try{Je(ie.throw(se))}catch(He){je(He)}},Je=se=>se.done?ke(se.value):Promise.resolve(se.value).then(qe,Oe);Je((ie=ie.apply(ne,$e)).next())});const U=(0,fe.default)(x.Box)`
  text-align: center;
`,ge=(0,fe.default)(K.TextInput)`
  ::-ms-reveal {
    display: none;
  }
`,G=({authType:ne,fieldsToDisable:$e,noSignin:ie,onSubmit:ke,schema:je})=>{const qe=(0,c.useNotification)(),{push:Oe}=(0,Ie.useHistory)(),[Je,se]=(0,a.useState)(!1),[He,ze]=(0,a.useState)(!1),[et,Gt]=(0,a.useState)(0),[at,Dt]=(0,a.useState)({}),{trackUsage:At}=(0,c.useTracking)(),{formatMessage:Se}=(0,P.useIntl)(),it=(0,c.useQuery)().get("registrationToken");return(0,a.useEffect)(()=>{it&&_(void 0,null,function*(){try{const{data:{data:Pe}}=yield oe().get(`${strapi.backendURL}/admin/registration-info?registrationToken=${it}`);Pe&&Dt(Pe)}catch(Pe){const Fe=be()(Pe,["response","data","message"],"An error occurred");qe({type:"warning",message:Fe}),Oe(`/auth/oops?info=${encodeURIComponent(Fe)}`)}})},[it]),a.createElement(S.ZP,null,a.createElement(S.bU,null,a.createElement(A.Formik,{enableReinitialize:!0,initialValues:{firstname:at.firstname||"",lastname:at.lastname||"",email:at.email||"",password:"",confirmPassword:"",registrationToken:it||void 0,news:!1},onSubmit:(Ue,Pe)=>_(void 0,null,function*(){try{yield je.validate(Ue,{abortEarly:!1}),et>0&&ne==="register-admin"&&At("didSubmitWithErrorsFirstAdmin",{count:et.toString()}),ke(it?{userInfo:Ye()(Ue,["registrationToken"]),registrationToken:it}:Ue,Pe)}catch(Fe){const tt=(0,c.getYupInnerErrors)(Fe);Gt(et+1),Pe.setErrors(tt)}}),validateOnChange:!1},({values:Ue,errors:Pe,handleChange:Fe})=>a.createElement(c.Form,{noValidate:!0},a.createElement(ee.Main,null,a.createElement(S.sg,null,a.createElement(k.Z,null),a.createElement(x.Box,{paddingTop:6,paddingBottom:1},a.createElement(w.Typography,{as:"h1",variant:"alpha"},Se({id:"Auth.form.welcome.title",defaultMessage:"Welcome to Digi!"}))),a.createElement(U,{paddingBottom:7},a.createElement(w.Typography,{variant:"epsilon",textColor:"neutral600"},Se({id:"Auth.form.register.subtitle",defaultMessage:"Credentials are only used to authenticate in Digicommerce. All saved data will be stored in your database."})))),a.createElement(N.Stack,{spacing:6},a.createElement(ue.Grid,{gap:4},a.createElement(ue.GridItem,{col:6},a.createElement(K.TextInput,{name:"firstname",required:!0,value:Ue.firstname,error:Pe.firstname?Se(Pe.firstname):void 0,onChange:Fe,label:Se({id:"Auth.form.firstname.label",defaultMessage:"Firstname"})})),a.createElement(ue.GridItem,{col:6},a.createElement(K.TextInput,{name:"lastname",value:Ue.lastname,onChange:Fe,label:Se({id:"Auth.form.lastname.label",defaultMessage:"Lastname"})}))),a.createElement(K.TextInput,{name:"email",disabled:$e.includes("email"),value:Ue.email,onChange:Fe,error:Pe.email?Se(Pe.email):void 0,required:!0,label:Se({id:"Auth.form.email.label",defaultMessage:"Email"}),type:"email"}),a.createElement(ge,{name:"password",onChange:Fe,value:Ue.password,error:Pe.password?Se(Pe.password):void 0,endAction:a.createElement(j.Z,{onClick:tt=>{tt.preventDefault(),se(ht=>!ht)},label:Se(Je?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},Je?a.createElement(V(),null):a.createElement(q(),null)),hint:Se({id:"Auth.form.password.hint",defaultMessage:"Must be at least 8 characters, 1 uppercase, 1 lowercase & 1 number"}),required:!0,label:Se({id:"global.password",defaultMessage:"Password"}),type:Je?"text":"password"}),a.createElement(ge,{name:"confirmPassword",onChange:Fe,value:Ue.confirmPassword,error:Pe.confirmPassword?Se(Pe.confirmPassword):void 0,endAction:a.createElement(j.Z,{onClick:tt=>{tt.preventDefault(),ze(ht=>!ht)},label:Se(He?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},He?a.createElement(V(),null):a.createElement(q(),null)),required:!0,label:Se({id:"Auth.form.confirmPassword.label",defaultMessage:"Confirmation Password"}),type:He?"text":"password"}),a.createElement(L.Button,{fullWidth:!0,size:"L",type:"submit"},Se({id:"Auth.form.button.register",defaultMessage:"Let's start"})))))),!ie&&a.createElement(x.Box,{paddingTop:4},a.createElement(Y.Flex,{justifyContent:"center"},a.createElement(c.Link,{label:"Auth.link.signin",to:"/auth/login"},Se({id:"Auth.link.signin.account",defaultMessage:"Already have an account?"}))))))};G.defaultProps={fieldsToDisable:[],noSignin:!1,onSubmit:ne=>ne.preventDefault()},G.propTypes={authType:M().string.isRequired,fieldsToDisable:M().array,noSignin:M().bool,onSubmit:M().func,schema:M().shape({validate:M().func.isRequired,type:M().string.isRequired}).isRequired};const Me=G,de=(0,fe.default)(K.TextInput)`
  ::-ms-reveal {
    display: none;
  }
`,W=({onSubmit:ne,schema:$e})=>{const[ie,ke]=(0,a.useState)(!1),[je,qe]=(0,a.useState)(!1),{formatMessage:Oe}=(0,P.useIntl)();return a.createElement(S.ZP,null,a.createElement(ee.Main,null,a.createElement(S.bU,null,a.createElement(A.Formik,{enableReinitialize:!0,initialValues:{password:"",confirmPassword:""},onSubmit:ne,validationSchema:$e,validateOnChange:!1},({values:Je,errors:se,handleChange:He})=>a.createElement(c.Form,{noValidate:!0},a.createElement(S.sg,null,a.createElement(k.Z,null),a.createElement(x.Box,{paddingTop:6,paddingBottom:7},a.createElement(w.Typography,{as:"h1",variant:"alpha"},Oe({id:"global.reset-password",defaultMessage:"Reset password"}))),se.errorMessage&&a.createElement(w.Typography,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},Oe({id:se.errorMessage,defaultMessage:"An error occurred"}))),a.createElement(N.Stack,{spacing:6},a.createElement(de,{name:"password",onChange:He,value:Je.password,error:se.password?Oe({id:se.password,defaultMessage:"This field is required."}):void 0,endAction:a.createElement(j.Z,{onClick:ze=>{ze.preventDefault(),ke(et=>!et)},label:Oe(ie?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},ie?a.createElement(V(),null):a.createElement(q(),null)),hint:Oe({id:"Auth.form.password.hint",defaultMessage:"Password must contain at least 8 characters, 1 uppercase, 1 lowercase and 1 number"}),required:!0,label:Oe({id:"global.password",defaultMessage:"Password"}),type:ie?"text":"password"}),a.createElement(de,{name:"confirmPassword",onChange:He,value:Je.confirmPassword,error:se.confirmPassword?Oe({id:se.confirmPassword,defaultMessage:"This value is required."}):void 0,endAction:a.createElement(j.Z,{onClick:ze=>{ze.preventDefault(),qe(et=>!et)},label:Oe(ie?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},je?a.createElement(V(),null):a.createElement(q(),null)),required:!0,label:Oe({id:"Auth.form.confirmPassword.label",defaultMessage:"Confirmation Password"}),type:je?"text":"password"}),a.createElement(L.Button,{fullwidth:!0,type:"submit"},Oe({id:"global.change-password",defaultMessage:"Change password"})))))),a.createElement(Y.Flex,{justifyContent:"center"},a.createElement(x.Box,{paddingTop:4},a.createElement(c.Link,{to:"/auth/login"},Oe({id:"Auth.link.ready",defaultMessage:"Ready to sign in?"}))))))};W.defaultProps={onSubmit:ne=>ne.preventDefault()},W.propTypes={onSubmit:M().func,schema:M().shape({type:M().string.isRequired}).isRequired};const ce=W;var Ge=function(){return window&&window.strapi&&window.strapi.isEE?e(98768).Z:e(5365).Z}(),Mt={"forgot-password":{Component:$,endPoint:"forgot-password",fieldsToDisable:[],fieldsToOmit:[],schema:t.Ry().shape({email:t.Z_().email(c.translatedErrors.email).required(c.translatedErrors.required)}),inputsPrefix:""},"forgot-password-success":{Component:g,endPoint:"",fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""},login:{Component:Ge,endPoint:"login",fieldsToDisable:[],fieldsToOmit:["rememberMe"],schema:t.Ry().shape({email:t.Z_().email(c.translatedErrors.email).required(c.translatedErrors.required),password:t.Z_().required(c.translatedErrors.required),rememberMe:t.Xg().nullable()}),inputsPrefix:""},oops:{Component:J,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""},register:{Component:Me,endPoint:"register",fieldsToDisable:["email"],fieldsToOmit:["userInfo.confirmPassword","userInfo.news","userInfo.email"],schema:t.Ry().shape({firstname:t.Z_().trim().required(c.translatedErrors.required),lastname:t.Z_(),password:t.Z_().min(8,c.translatedErrors.minLength).matches(/[a-z]/,"components.Input.error.contain.lowercase").matches(/[A-Z]/,"components.Input.error.contain.uppercase").matches(/\d/,"components.Input.error.contain.number").required(c.translatedErrors.required),confirmPassword:t.Z_().oneOf([t.iH("password"),null],"components.Input.error.password.noMatch").required(c.translatedErrors.required),registrationToken:t.Z_().required(c.translatedErrors.required)}),inputsPrefix:"userInfo."},"register-admin":{Component:Me,endPoint:"register-admin",noSignin:!0,fieldsToDisable:[],fieldsToOmit:["confirmPassword","news"],schema:t.Ry().shape({firstname:t.Z_().trim().required(c.translatedErrors.required),lastname:t.Z_(),password:t.Z_().min(8,c.translatedErrors.minLength).matches(/[a-z]/,"components.Input.error.contain.lowercase").matches(/[A-Z]/,"components.Input.error.contain.uppercase").matches(/\d/,"components.Input.error.contain.number").required(c.translatedErrors.required),email:t.Z_().email(c.translatedErrors.email).strict().lowercase(c.translatedErrors.lowercase).required(c.translatedErrors.required),confirmPassword:t.Z_().oneOf([t.iH("password"),null],"components.Input.error.password.noMatch").required(c.translatedErrors.required)}),inputsPrefix:""},"reset-password":{Component:ce,endPoint:"reset-password",fieldsToDisable:[],fieldsToOmit:["confirmPassword"],schema:t.Ry().shape({password:t.Z_().min(8,c.translatedErrors.minLength).matches(/[a-z]/,"components.Input.error.contain.lowercase").matches(/[A-Z]/,"components.Input.error.contain.uppercase").matches(/\d/,"components.Input.error.contain.number").required(c.translatedErrors.required),confirmPassword:t.Z_().oneOf([t.iH("password"),null],"components.Input.error.password.noMatch").required(c.translatedErrors.required)})}};const xe=Mt},83983:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>M});var t=e(92891);const a={contentManager:{main:[],collectionTypesConfigurations:[{action:"plugin::content-manager.collection-types.configure-view",subject:null}],componentsConfigurations:[{action:"plugin::content-manager.components.configure-layout",subject:null}],singleTypesConfigurations:[{action:"plugin::content-manager.single-types.configure-view",subject:null}]},marketplace:{main:[{action:"admin::marketplace.read",subject:null},{action:"admin::marketplace.plugins.install",subject:null},{action:"admin::marketplace.plugins.uninstall",subject:null}],install:[{action:"admin::marketplace.plugins.install",subject:null}],read:[{action:"admin::marketplace.read",subject:null},{action:"admin::marketplace.plugins.uninstall",subject:null}],uninstall:[{action:"admin::marketplace.plugins.uninstall",subject:null}]},settings:{roles:{main:[{action:"admin::roles.create",subject:null},{action:"admin::roles.update",subject:null},{action:"admin::roles.read",subject:null},{action:"admin::roles.delete",subject:null}],create:[{action:"admin::roles.create",subject:null}],delete:[{action:"admin::roles.delete",subject:null}],read:[{action:"admin::roles.read",subject:null}],update:[{action:"admin::roles.update",subject:null}]},users:{main:[{action:"admin::users.create",subject:null},{action:"admin::users.read",subject:null},{action:"admin::users.update",subject:null},{action:"admin::users.delete",subject:null}],create:[{action:"admin::users.create",subject:null}],delete:[{action:"admin::users.delete",subject:null}],read:[{action:"admin::users.read",subject:null}],update:[{action:"admin::users.update",subject:null}]},webhooks:{main:[{action:"admin::webhooks.create",subject:null},{action:"admin::webhooks.read",subject:null},{action:"admin::webhooks.update",subject:null},{action:"admin::webhooks.delete",subject:null}],create:[{action:"admin::webhooks.create",subject:null}],delete:[{action:"admin::webhooks.delete",subject:null}],read:[{action:"admin::webhooks.read",subject:null},{action:"admin::webhooks.update",subject:null},{action:"admin::webhooks.delete",subject:null}],update:[{action:"admin::webhooks.update",subject:null}]},"api-tokens":{main:[{action:"admin::api-tokens.access",subject:null}],create:[{action:"admin::api-tokens.create",subject:null}],delete:[{action:"admin::api-tokens.delete",subject:null}],read:[{action:"admin::api-tokens.read",subject:null}],update:[{action:"admin::api-tokens.update",subject:null}],regenerate:[{action:"admin::api-tokens.regenerate",subject:null}]}}};var P=function(){return window&&window.strapi&&window.strapi.isEE?e(99568).Z:e(26123).Z}(),D=(0,t.merge)(a,P);const M=D},69328:(Q,C,e)=>{"use strict";e.r(C),e.d(C,{default:()=>tr});var t=e(32735),c=e(5141),a=e(10345),P=e(86349),D=e.n(P),M=e(88423),x=e.n(M),N=e(93839),ee=e.n(N),Y=e(56784),L=e.n(Y),K=e(99357),w=e(17247),A=e(13055);const k=i=>(0,A.combineReducers)(i),$=(i,n)=>{let r=A.compose;const f=[];return i.forEach(h=>{f.push(h())}),(0,A.createStore)(k(n),{},r((0,A.applyMiddleware)(...f)))};var re=e(20284),g=e(88425),te=e(43653),J=e.n(te),fe=e(16540),Le=e(5636),be=e(60216),l=e.n(be),Ye=Object.defineProperty,Ie=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ue=(i,n,r)=>n in i?Ye(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,Ze=(i,n)=>{for(var r in n||(n={}))le.call(n,r)&&ue(i,r,n[r]);if(Ie)for(var r of Ie(n))oe.call(n,r)&&ue(i,r,n[r]);return i},q=(i,n)=>{var r={};for(var f in i)le.call(i,f)&&n.indexOf(f)<0&&(r[f]=i[f]);if(i!=null&&Ie)for(var f of Ie(i))n.indexOf(f)<0&&oe.call(i,f)&&(r[f]=i[f]);return r};const ae=i=>{var n=i,{component:r,path:f}=n,h=q(n,["component","path"]);const{pathname:v,search:d}=(0,c.useLocation)();return t.createElement(c.Route,{path:f,render:m=>g.auth.getToken()!==null?t.createElement(r,Ze(Ze({},h),m)):t.createElement(c.Redirect,{to:{pathname:"/auth/login",search:v!=="/"&&`?redirectTo=${encodeURIComponent(`${v}${d}`)}`}})})};ae.propTypes={component:l().any.isRequired,path:l().string.isRequired};const V=(0,t.memo)(ae);var j=e(7602),_=e(20011),U=e(47169),ge=e(18950),G=e(92577),Me=e(82726),de=e(72975),W=e.n(de),ce=e(39935),Ge=e.n(ce),Mt=e(33795),xe=e.n(Mt),ne=e(9086),$e=e.n(ne);const ie="GUIDED_TOUR_CURRENT_STEP",ke="GUIDED_TOUR_COMPLETED_STEPS",je="GUIDED_TOUR_SKIPPED",qe=JSON.parse,Oe=JSON.stringify,se={clear(){localStorage.removeItem(ie),localStorage.removeItem(ke)},addCompletedStep(i){var n;const r=((n=qe(localStorage.getItem(ke)))==null?void 0:n.slice())||[];r.includes(i)||(r.push(i),localStorage.setItem(ke,Oe(r)))},addCurrentStep(i){localStorage.setItem(ie,Oe(i))},setSkipped(i){localStorage.setItem(je,Oe(i))},get(i){return qe(localStorage.getItem(i))}};var He=e(20139),ze=e(41832);const Gt=i=>i;var at=e(49415),Dt=e(92891);const At={formErrors:{},modifiedData:{},requestError:null},Se=(i,n)=>(0,at.default)(i,r=>{switch(n.type){case"ON_CHANGE":{(0,Dt.set)(r.modifiedData,n.keys.split("."),n.value);break}case"RESET_PROPS":return At;case"SET_DATA":{r.modifiedData=n.data;break}case"SET_ERRORS":{r.formErrors=n.errors;break}case"SET_REQUEST_ERROR":{r.requestError={errorMessage:n.errorMessage,errorStatus:n.errorStatus};break}default:return r}});var $t=e(98399),it=["Component","endPoint","fieldsToDisable","fieldsToOmit","inputsPrefix","schema"];function Ue(i,n){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);n&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),r.push.apply(r,f)}return r}function Pe(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ue(Object(r),!0).forEach(function(f){(0,U.Z)(i,f,r[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach(function(f){Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(r,f))})}return i}var Fe=function(){return window&&window.strapi&&window.strapi.isEE?e(7277).Z:e(78834).Z}(),tt=function(n){var r=n.hasAdmin,f=n.setHasAdmin,h=(0,c.useHistory)(),v=h.push,d=h.location.search,m=(0,He.Z)(),E=m.changeLocale,y=(0,g.useGuidedTour)(),X=y.setSkipped,H=(0,g.useTracking)(),z=H.trackUsage,he=(0,c.useRouteMatch)("/auth/:authType"),Z=he.params.authType,ye=(0,g.useQuery)(),Ee=xe()(Fe,Z,{}),Xe=Ee.Component,gt=Ee.endPoint,yt=Ee.fieldsToDisable,zs=Ee.fieldsToOmit,sr=Ee.inputsPrefix,nr=Ee.schema,rr=(0,Me.Z)(Ee,it),or=(0,t.useReducer)(Se,At,Gt),Tn=(0,G.Z)(or,2),Vs=Tn[0],ar=Vs.formErrors,ir=Vs.modifiedData,lr=Vs.requestError,us=Tn[1],ur=J().CancelToken,Zt=ur.source();(0,t.useEffect)(function(){return function(){Zt.cancel("Component unmounted")}},[]),(0,t.useEffect)(function(){us({type:"RESET_PROPS"})},[Z]);var dr=function(De){var me=De.target,_e=me.name,ve=me.value;us({type:"ON_CHANGE",keys:_e,value:ve})},cr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e){var ve,Be,Ke,Ne;return W().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(ve=_e.setSubmitting,Be=_e.setErrors,ve(!0),Ke=$e()(me,zs),Ne="/admin/".concat(gt),Z!=="login"){Ce.next=7;break}return Ce.next=7,pr(me,Ne,{setSubmitting:ve,setErrors:Be});case 7:if(!(Z==="register"||Z==="register-admin")){Ce.next=10;break}return Ce.next=10,fr(me,Ne,{setSubmitting:ve,setErrors:Be});case 10:if(Z!=="forgot-password"){Ce.next=13;break}return Ce.next=13,mr(Ke,Ne,{setSubmitting:ve,setErrors:Be});case 13:if(Z!=="reset-password"){Ce.next=16;break}return Ce.next=16,gr(Ke,Ne,{setSubmitting:ve,setErrors:Be});case 16:case"end":return Ce.stop()}},De)}));return function(me,_e){return nt.apply(this,arguments)}}(),mr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e,ve){var Be,Ke;return W().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Be=ve.setSubmitting,Ke=ve.setErrors,pe.prev=1,pe.next=4,J()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:me,cancelToken:Zt.token});case 4:v("/auth/forgot-password-success"),pe.next=11;break;case 7:pe.prev=7,pe.t0=pe.catch(1),$t.error(pe.t0),Ke({errorMessage:"notification.error"});case 11:return pe.prev=11,Be(!1),pe.finish(11);case 14:case"end":return pe.stop()}},De,null,[[1,7,11,14]])}));return function(me,_e,ve){return nt.apply(this,arguments)}}(),pr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e,ve){var Be,Ke,Ne,pe,Ce,rt,ot;return W().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Be=ve.setSubmitting,Ke=ve.setErrors,Re.prev=1,Re.next=4,J()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:$e()(me,zs),cancelToken:Zt.token});case 4:Ne=Re.sent,pe=Ne.data.data,Ce=pe.token,rt=pe.user,rt.preferedLanguage&&E(rt.preferedLanguage),g.auth.setToken(Ce,me.rememberMe),g.auth.setUserInfo(rt,me.rememberMe),On(),Re.next=23;break;case 14:if(Re.prev=14,Re.t0=Re.catch(1),!Re.t0.response){Re.next=23;break}if(ot=xe()(Re.t0,["response","data","error","message"],"Something went wrong"),Ge()(ot).toLowerCase()!=="usernotactive"){Re.next=22;break}return v("/auth/oops"),us({type:"RESET_PROPS"}),Re.abrupt("return");case 22:Ke({errorMessage:ot});case 23:return Re.prev=23,Be(!1),Re.finish(23);case 26:case"end":return Re.stop()}},De,null,[[1,14,23,26]])}));return function(me,_e,ve){return nt.apply(this,arguments)}}(),fr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e,ve){var Be,Ke,Ne,pe,Ce,rt,ot,Ct,Re,Ae;return W().wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Be=ve.setSubmitting,Ke=ve.setErrors,Qe.prev=1,z("willCreateFirstAdmin"),Qe.next=5,J()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:$e()(me,zs),cancelToken:Zt.token});case 5:if(Ne=Qe.sent,pe=Ne.data.data,Ce=pe.token,rt=pe.user,g.auth.setToken(Ce,!1),g.auth.setUserInfo(rt,!1),Be(!1),f(!0),ot=rt.roles,ot&&(Ct=ot.find(function(hr){var Er=hr.code;return Er==="strapi-super-admin"}),Ct&&(se.setSkipped(!1),X(!1),z("didLaunchGuidedtour"))),!(Z==="register"&&me.userInfo.news===!0||Z==="register-admin"&&me.news===!0)){Qe.next=18;break}return v({pathname:"/usecase",search:"?hasAdmin=".concat(r)}),Qe.abrupt("return");case 18:On(),Qe.next=25;break;case 21:Qe.prev=21,Qe.t0=Qe.catch(1),z("didNotCreateFirstAdmin"),Qe.t0.response&&(Re=Qe.t0.response.data,Ae=(0,ze.Z)(Re),Ke({apiErrors:Ae}));case 25:case"end":return Qe.stop()}},De,null,[[1,21]])}));return function(me,_e,ve){return nt.apply(this,arguments)}}(),gr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e,ve){var Be,Ke,Ne,pe,Ce,rt,ot,Ct;return W().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Be=ve.setErrors,Ke=ve.setSubmitting,Ae.prev=1,Ae.next=4,J()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:Pe(Pe({},me),{},{resetPasswordToken:ye.get("code")}),cancelToken:Zt.token});case 4:Ne=Ae.sent,pe=Ne.data.data,Ce=pe.token,rt=pe.user,g.auth.setToken(Ce,!1),g.auth.setUserInfo(rt,!1),v("/"),Ae.next=16;break;case 13:Ae.prev=13,Ae.t0=Ae.catch(1),Ae.t0.response&&(ot=xe()(Ae.t0,["response","data","message"],"Something went wrong"),Ct=xe()(Ae.t0,["response","data","statusCode"],400),us({type:"SET_REQUEST_ERROR",errorMessage:ot,errorStatus:Ct}),Be({errorMessage:ot}));case 16:return Ae.prev=16,Ke(!1),Ae.finish(16);case 19:case"end":return Ae.stop()}},De,null,[[1,13,16,19]])}));return function(me,_e,ve){return nt.apply(this,arguments)}}(),On=function(){if(Z==="login"){var De=ye.get("redirectTo"),me=De?decodeURIComponent(De):"/";v(me)}else v("/")};return!Fe[Z]||r&&Z==="register-admin"||g.auth.getToken()?t.createElement(c.Redirect,{to:"/"}):!r&&Z!=="register-admin"?t.createElement(c.Redirect,{to:{pathname:"/auth/register-admin",search:d}}):t.createElement(Xe,(0,_.Z)({},rr,{authType:Z,fieldsToDisable:yt,formErrors:ar,inputsPrefix:sr,modifiedData:ir,onChange:dr,onSubmit:cr,requestError:lr,schema:nr}))};tt.defaultProps={hasAdmin:!1},tt.propTypes={hasAdmin:l().bool,setHasAdmin:l().func.isRequired};const ht=tt;var ds=e(53951),lt=e(19615),ct=e(19192),Et=e(9808),Pt=e(90662),Ht=e(95602),zt=e(25716),Vt=e(37178),Xs=e(74201),cs=e(44526),ms=e(10190),ps=e(954);const fs=[{intlLabel:{id:"Usecase.front-end",defaultMessage:"Front-end developer"},value:"front_end_developer"},{intlLabel:{id:"Usecase.back-end",defaultMessage:"Back-end developer"},value:"back_end_developer"},{intlLabel:{id:"Usecase.full-stack",defaultMessage:"Full-stack developer"},value:"full_stack_developer"},{intlLabel:{id:"global.content-manager",defaultMessage:"Content Manager"},value:"content_manager"},{intlLabel:{id:"Usecase.content-creator",defaultMessage:"Content Creator"},value:"content_creator"},{intlLabel:{id:"Usecase.other",defaultMessage:"Other"},value:"other"}],Ve=(0,lt.default)(Ht.Typography)`
  text-align: center;
`,Qs=()=>{const i=(0,g.useNotification)(),{push:n}=(0,c.useHistory)(),{formatMessage:r}=(0,Le.useIntl)(),[f,h]=(0,t.useState)(),[v,d]=(0,t.useState)(""),m=f==="other",E=y=>{try{i({type:"success",message:{id:"Usecase.notification.success.project-created",defaultMessage:"Project has been successfully created"}}),n("/")}catch(X){}};return t.createElement(ps.ZP,null,t.createElement(fe.Main,{labelledBy:"usecase-title"},t.createElement(ps.bU,null,t.createElement("form",{onSubmit:()=>E(!1)},t.createElement(ct.Flex,{direction:"column",paddingBottom:7},t.createElement(ms.Z,null),t.createElement(Et.Box,{paddingTop:6,paddingBottom:1,width:(0,g.pxToRem)(250)},t.createElement(Ve,{variant:"alpha",as:"h1",id:"usecase-title"},r({id:"Usecase.title",defaultMessage:"Tell us a bit more about yourself"})))),t.createElement(Pt.Stack,{spacing:6},t.createElement(zt.Select,{id:"usecase","data-testid":"usecase",label:r({id:"Usecase.input.work-type",defaultMessage:"What type of work do you do?"}),onChange:h,value:f},fs.map(({intlLabel:y,value:X})=>t.createElement(zt.Option,{key:X,value:X},r(y)))),m&&t.createElement(Vt.TextInput,{name:"other",label:r({id:"Usecase.other",defaultMessage:"Other"}),value:v,onChange:y=>d(y.target.value),"data-testid":"other"}),t.createElement(cs.Button,{type:"submit",size:"L",fullWidth:!0,disabled:!f},r({id:"global.finish",defaultMessage:"Finish"}))))),t.createElement(ct.Flex,{justifyContent:"center"},t.createElement(Et.Box,{paddingTop:4},t.createElement(Xs.TextButton,{onClick:()=>E(!0)},r({id:"Usecase.button.skip",defaultMessage:"Skip this question"}))))))};var Xt=e(21930);const hs=[];var Es=function(){return window&&window.strapi&&window.strapi.isEE?e(68944).Z:e(56761).Z}();const vs=[].concat((0,Xt.Z)(Es),(0,Xt.Z)(hs));var ys=e(85539),Ps=Object.defineProperty,Ts=Object.defineProperties,Os=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Rs=Object.prototype.propertyIsEnumerable,Jt=(i,n,r)=>n in i?Ps(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,Lt=(i,n)=>{for(var r in n||(n={}))Yt.call(n,r)&&Jt(i,r,n[r]);if(Qt)for(var r of Qt(n))Rs.call(n,r)&&Jt(i,r,n[r]);return i},bt=(i,n)=>Ts(i,Os(n)),It=(i,n,r)=>new Promise((f,h)=>{var v=E=>{try{m(r.next(E))}catch(y){h(y)}},d=E=>{try{m(r.throw(E))}catch(y){h(y)}},m=E=>E.done?f(E.value):Promise.resolve(E.value).then(v,d);m((r=r.apply(i,n)).next())});const Js=(0,t.lazy)(()=>Promise.all([e.e(3050),e.e(801)]).then(e.bind(e,66244)));function Ss(){const i=(0,g.useNotification)(),{updateProjectSettings:n}=(0,ys.um)(),{formatMessage:r}=(0,Le.useIntl)(),[{isLoading:f,hasAdmin:h,uuid:v},d]=(0,t.useState)({isLoading:!0,hasAdmin:!1}),m=(0,t.useMemo)(()=>(0,j.WW)(vs.map(({to:z,Component:he,exact:Z})=>(0,j.ot)(he,z,Z))),[]),[E,y]=(0,t.useState)(null);(0,t.useEffect)(()=>{const z=g.auth.getToken();z&&(()=>It(this,null,function*(){try{const{data:{token:Z}}=yield(0,g.request)("/admin/renew-token",{method:"POST",body:{token:z}});g.auth.updateToken(Z)}catch(Z){g.auth.clearAppStorage(),window.location.reload()}}))()},[]),(0,t.useEffect)(()=>{(()=>It(this,null,function*(){try{const{data:{data:{uuid:he,hasAdmin:Z,menuLogo:ye}}}=yield J().get(`${strapi.backendURL}/admin/init`);if(n({menuLogo:(0,g.prefixFileUrlWithBackendUrl)(ye)}),he){const{data:{data:Ee}}=yield J().get(`${strapi.backendURL}/admin/telemetry-properties`);y(Ee)}d({isLoading:!1,hasAdmin:Z,uuid:he})}catch(he){i({type:"warning",message:{id:"app.containers.App.notification.error.init"}})}}))()},[i,n]);const X=z=>d(he=>bt(Lt({},he),{hasAdmin:z})),H=(0,t.useMemo)(()=>({uuid:v,telemetryProperties:E}),[v,E]);return f?t.createElement(g.LoadingIndicatorPage,null):t.createElement(t.Suspense,{fallback:t.createElement(g.LoadingIndicatorPage,null)},t.createElement(fe.SkipToContent,null,r({id:"skipToContent"})),t.createElement(g.TrackingProvider,{value:H},t.createElement(c.Switch,null,m,t.createElement(c.Route,{path:"/auth/:authType",render:z=>t.createElement(ht,bt(Lt({},z),{setHasAdmin:X,hasAdmin:h})),exact:!0}),t.createElement(V,{path:"/usecase",component:Qs}),t.createElement(V,{path:"/",component:Js}),t.createElement(c.Route,{path:"",component:ds.default}))))}const qt=Ss;var Cs=e(68507),es=e(84968),Ms=e(4409),jt=e(66694);const ts={menuLogo:null},Ds=(i=ts,n)=>(0,at.default)(i,r=>{switch(n.type){case"UPDATE_PROJECT_SETTINGS":{Object.assign(r,n.values);break}default:return r}}),_t=({children:i,authLogo:n,menuLogo:r,showReleaseNotification:f,showTutorials:h})=>{const[{menuLogo:v},d]=(0,t.useReducer)(Ds,ts),m=({menuLogo:X})=>d({type:"UPDATE_PROJECT_SETTINGS",values:{menuLogo:X||r}}),E=(0,t.useRef)(m),y=(0,t.useMemo)(()=>({logos:{menu:{custom:v,default:r},auth:{custom:null,default:n}},updateProjectSettings:E.current,showReleaseNotification:f,showTutorials:h}),[n,v,f,h,E,r]);return t.createElement(jt._5.Provider,{value:y},i)};_t.propTypes={authLogo:l().string.isRequired,children:l().element.isRequired,menuLogo:l().string.isRequired,showReleaseNotification:l().bool.isRequired,showTutorials:l().bool.isRequired};const As=_t;var Ls=e(58732),ss=e.n(Ls),Bt=e(5985);const Tt=({changeLocale:i,children:n,localeNames:r,messages:f})=>t.createElement(Bt.Z.Provider,{value:{changeLocale:i,localeNames:r,messages:f}},n);Tt.propTypes={changeLocale:l().func.isRequired,children:l().element.isRequired,localeNames:l().object.isRequired,messages:l().object.isRequired};const en=Tt,Ot="strapi-admin-language",bs=i=>{const n=window.localStorage.getItem(Ot);return{locale:i[n]?n:"en",localeNames:i}};var ns=Object.defineProperty,rs=Object.defineProperties,Is=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,js=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable,Ut=(i,n,r)=>n in i?ns(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,Bs=(i,n)=>{for(var r in n||(n={}))js.call(n,r)&&Ut(i,r,n[r]);if(os)for(var r of os(n))_s.call(n,r)&&Ut(i,r,n[r]);return i},Us=(i,n)=>rs(i,Is(n));const wt={localeNames:{en:"English"},locale:"en"},ws=(i=wt,n)=>{switch(n.type){case"CHANGE_LOCALE":{const{locale:r}=n;return i.localeNames[r]?Us(Bs({},i),{locale:r}):i}default:return i}},xs=({children:i,localeNames:n,messages:r})=>{const[{locale:f},h]=(0,t.useReducer)(ws,wt,()=>bs(n));(0,t.useEffect)(()=>{window.localStorage.setItem(Ot,f),document.documentElement.setAttribute("lang",f)},[f]);const v=m=>{h({type:"CHANGE_LOCALE",locale:m})},d=ss()(r[f],r.en);return t.createElement(Le.IntlProvider,{locale:f,defaultLocale:"en",messages:d,textComponent:"span"},t.createElement(en,{changeLocale:v,localeNames:n,messages:d},i))};xs.propTypes={children:l().element.isRequired,localeNames:l().objectOf(l().string).isRequired,messages:l().object.isRequired};const ks=xs,as=(i,n)=>{const r=Object.entries(n),f=r.findIndex(([v])=>v===i);return r.slice(0,f).every(([,v])=>Object.values(v).every(Boolean))},Fs=(i,n)=>{const r=i.split("."),f=r[1],h=Object.entries(n[r[0]]),v=h.findIndex(([m])=>m===f);return h.slice(0,v).every(([,m])=>m)},xt={currentStep:null,guidedTourState:{contentTypeBuilder:{create:!1,success:!1},contentManager:{create:!1,success:!1},apiTokens:{create:!1,success:!1}},isGuidedTourVisible:!1,isSkipped:!0},Ws=(i=xt,n)=>(0,at.default)(i,r=>{switch(n.type){case"SET_CURRENT_STEP":{r.currentStep=n.step;break}case"SET_STEP_STATE":{const[f,h]=n.currentStep.split(".");r.guidedTourState[f][h]=n.value;break}case"SET_SKIPPED":{r.isSkipped=n.value;break}case"SET_GUIDED_TOUR_VISIBILITY":{r.isGuidedTourVisible=n.value;break}default:return r}});var rn=e(3040),kt=e.n(rn),Ks=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,o=(i,n,r)=>n in i?Ks(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,s=(i,n)=>{for(var r in n||(n={}))Zs.call(n,r)&&o(i,r,n[r]);if(Ns)for(var r of Ns(n))u.call(n,r)&&o(i,r,n[r]);return i};const T=i=>{const n=s({},i),r=se.get(ke),f=se.get(ie),h=se.get(je);if(r&&r.forEach(v=>{const[d,m]=v.split(".");kt()(n,["guidedTourState",d,m],!0)}),f){const[v,d]=f.split(".");kt()(n,["guidedTourState",v,d],!0),se.addCompletedStep(f),se.addCurrentStep(null)}return h!==null&&kt()(n,"isSkipped",h),n},B=({children:i})=>{const[{currentStep:n,guidedTourState:r,isGuidedTourVisible:f,isSkipped:h},v]=(0,t.useReducer)(Ws,xt,T),d=H=>{if(H!==null){const z=xe()(r,H),he=Fs(H,r);if(z||h||!he)return null}return se.addCurrentStep(H),v({type:"SET_CURRENT_STEP",step:H})},m=H=>{v({type:"SET_GUIDED_TOUR_VISIBILITY",value:H})},E=(H,z)=>{se.addCompletedStep(H),v({type:"SET_STEP_STATE",currentStep:H,value:z})},y=H=>{const z=r[H];if(z){const he=as(H,r),Z=Object.keys(z)[0],ye=z[Z];if(he&&!n&&!ye)return d(`${H}.${Z}`)}return null},X=H=>{se.setSkipped(H),v({type:"SET_SKIPPED",value:H})};return t.createElement(g.GuidedTourProvider,{guidedTourState:r,currentStep:n,setCurrentStep:d,setGuidedTourVisibility:m,setSkipped:X,setStepState:E,startSection:y,isGuidedTourVisible:f,isSkipped:h},i)};B.propTypes={children:l().element.isRequired};const b=B;var O=e(12788),p=e(70324),I=e.n(p),we=e(23101),mt=e.n(we),ut=e(14983);const pt=(0,lt.default)(Et.Box)`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1140;
  &:before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: ${({theme:i})=>i.colors.neutral0};
    opacity: 0.9;
  }
`,Ft=(0,lt.default)(Pt.Stack)`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: ${(0,g.pxToRem)(160)};
`,Wt=(0,lt.default)(Et.Box)`
  border-radius: 50%;
  svg {
    > path {
      fill: ${({theme:i})=>i.colors.primary600} !important;
    }
  }
`,vt=document.createElement("div"),Kt="autoReloadOverlayBlocker";vt.setAttribute("id",Kt);const ft=lt.keyframes`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,We=(0,lt.default)(mt())`
  animation: ${ft} 1s infinite linear;
`,st=({displayedIcon:i,description:n,title:r,isOpen:f})=>{const{formatMessage:h}=(0,Le.useIntl)();return(0,t.useEffect)(()=>(document.body.appendChild(vt),()=>{document.body.removeChild(vt)}),[]),f?O.createPortal(t.createElement(pt,null,t.createElement(Ft,{spacing:6},t.createElement(Pt.Stack,{spacing:2},t.createElement(ct.Flex,{justifyContent:"center"},t.createElement(Ht.Typography,{as:"h1",variant:"alpha"},h(r))),t.createElement(ct.Flex,{justifyContent:"center"},t.createElement(Ht.Typography,{as:"h2",textColor:"neutral600",fontSize:4,fontWeight:"regular"},h(n)))),t.createElement(ct.Flex,{justifyContent:"center"},i==="reload"&&t.createElement(Wt,{padding:6,background:"primary100",borderColor:"primary200"},t.createElement(We,{width:(0,g.pxToRem)(36),height:(0,g.pxToRem)(36)})),i==="time"&&t.createElement(Wt,{padding:6,background:"primary100",borderColor:"primary200"},t.createElement(I(),{width:(0,g.pxToRem)(40),height:(0,g.pxToRem)(40)}))),t.createElement(ct.Flex,{justifyContent:"center"},t.createElement(Et.Box,{paddingTop:2},t.createElement(ut.Link,{href:"https://docs.strapi.io",isExternal:!0},h({id:"global.documentation",defaultMessage:"Read the documentation"})))))),vt):null};st.propTypes={displayedIcon:l().oneOfType([l().string,l().array]).isRequired,description:l().object.isRequired,isOpen:l().bool.isRequired,title:l().object.isRequired};const dt=st;var Nt=Object.defineProperty,Mn=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,an=(i,n,r)=>n in i?Nt(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,ln=(i,n)=>{for(var r in n||(n={}))An.call(n,r)&&an(i,r,n[r]);if(on)for(var r of on(n))Ln.call(n,r)&&an(i,r,n[r]);return i},un=(i,n)=>Mn(i,Dn(n));const dn=30,cn=({children:i})=>{const[n,r]=(0,t.useState)(!1),[{elapsed:f},h]=(0,t.useState)({elapsed:0,start:0}),[v,d]=(0,t.useState)(void 0),m=(ye=void 0)=>{r(!0),d(ye),h(Ee=>un(ln({},Ee),{start:Date.now()}))},E=()=>{r(!1),h({start:0,elapsed:0}),d(void 0)},y=(0,t.useRef)(m),X=(0,t.useRef)(E);(0,t.useEffect)(()=>{let ye=null;return n?ye=setInterval(()=>f>dn?(clearInterval(ye),null):(h(Ee=>un(ln({},Ee),{elapsed:Math.round(Date.now()-Ee.start)/1e3})),null),1e3):clearInterval(ye),()=>{clearInterval(ye)}},[n,f]);let H=(v==null?void 0:v.icon)||"reload",z={id:(v==null?void 0:v.description)||"components.OverlayBlocker.description",defaultMessage:"You're using a feature that needs the server to restart. Please wait until the server is up."},he={id:(v==null?void 0:v.title)||"components.OverlayBlocker.title",defaultMessage:"Waiting for restart"};f>dn&&(H="time",z={id:"components.OverlayBlocker.description.serverError",defaultMessage:"The server should have restarted, please check your logs in the terminal."},he={id:"components.OverlayBlocker.title.serverError",defaultMessage:"The restart is taking longer than expected"});const Z=(0,t.useMemo)(()=>({lockApp:y.current,unlockApp:X.current}),[y,X]);return t.createElement(g.AutoReloadOverlayBockerContext.Provider,{value:Z},t.createElement(dt,{displayedIcon:H,isOpen:n,description:z,title:he}),i)};cn.propTypes={children:l().element.isRequired};const bn=cn;var In=e(63568);const Gs=({dispatch:i,notification:n})=>{var r,f,h;const{formatMessage:v}=(0,Le.useIntl)(),{message:d,link:m,type:E,id:y,onClose:X,timeout:H,blockTransition:z}=n,he=Xe=>typeof Xe=="string"?Xe:v(Xe,Xe.values),Z=(0,t.useCallback)(()=>{X&&X(),i({type:"HIDE_NOTIFICATION",id:y})},[y]);(0,t.useEffect)(()=>{let Xe;return z||(Xe=setTimeout(()=>{Z()},H||2500)),()=>clearTimeout(Xe)},[z,Z,H]);let ye,Ee;return E==="info"?(ye="default",Ee=v({id:"notification.default.title",defaultMessage:"Information:"})):E==="warning"?(Ee=v({id:"notification.warning.title",defaultMessage:"Warning:"}),ye="danger"):(Ee=v({id:"notification.success.title",defaultMessage:"Success:"}),ye="success"),t.createElement(In.Alert,{action:m?t.createElement(ut.Link,{href:m.url,isExternal:!0},v({id:((r=m.label)==null?void 0:r.id)||m.label,defaultMessage:((f=m.label)==null?void 0:f.defaultMessage)||((h=m.label)==null?void 0:h.id)||m.label})):void 0,onClose:Z,closeLabel:"Close",title:Ee,variant:ye},he({id:(d==null?void 0:d.id)||d,defaultMessage:(d==null?void 0:d.defaultMessage)||(d==null?void 0:d.id)||d}))};Gs.defaultProps={notification:{id:1,type:"success",message:{id:"notification.success.saved",defaultMessage:"Saved"},onClose:()=>null,timeout:2500,blockTransition:!1}},Gs.propTypes={dispatch:l().func.isRequired,notification:l().shape({id:l().number,message:l().oneOfType([l().string,l().shape({id:l().string.isRequired,defaultMessage:l().string,values:l().object})]),link:l().shape({target:l().string,url:l().string.isRequired,label:l().oneOfType([l().string,l().shape({id:l().string.isRequired,defaultMessage:l().string,values:l().object})]).isRequired}),type:l().string,onClose:l().func,timeout:l().number,blockTransition:l().bool})};const jn=Gs,mn={notifId:0,notifications:[]},_n=(i=mn,n)=>(0,at.default)(i,r=>{switch(n.type){case"SHOW_NOTIFICATION":{r.notifications.push({id:i.notifId,type:xe()(n,["config","type"],"success"),message:xe()(n,["config","message"],{id:"notification.success.saved",defaultMessage:"Saved"}),link:xe()(n,["config","link"],null),timeout:xe()(n,["config","timeout"],2500),blockTransition:xe()(n,["config","blockTransition"],!1),onClose:xe()(n,["config","onClose"],null)}),r.notifId=i.notifId+1;break}case"HIDE_NOTIFICATION":{const f=i.notifications.findIndex(h=>h.id===n.id);f!==-1&&r.notifications.splice(f,1);break}default:return r}}),pn=({children:i})=>{const[{notifications:n},r]=(0,t.useReducer)(_n,mn),f=h=>{r({type:"SHOW_NOTIFICATION",config:h})};return t.createElement(g.NotificationsProvider,{toggleNotification:f},t.createElement(Pt.Stack,{left:"50%",marginLeft:"-250px",position:"fixed",spacing:2,top:`${46/16}rem`,width:`${500/16}rem`,zIndex:10},n.map(h=>t.createElement(jn,{key:h.id,dispatch:r,notification:h}))),i)};pn.propTypes={children:l().element.isRequired};const Bn=pn,is=document.createElement("div");is.setAttribute("id","overlayBlocker");const Un=lt.default.div`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1140;
`,fn=({isOpen:i})=>((0,t.useEffect)(()=>(document.body.appendChild(is),()=>{document.body.removeChild(is)}),[]),i?O.createPortal(t.createElement(Un,null),is):null);fn.propTypes={isOpen:l().bool.isRequired};const gn=({children:i})=>{const[n,r]=(0,t.useState)(!1),f=()=>{r(!0)},h=()=>{r(!1)};return t.createElement(g.OverlayBlockerContext.Provider,{value:{lockApp:f,unlockApp:h}},i,t.createElement(fn,{isOpen:n}))};gn.propTypes={children:l().node.isRequired};const wn=gn,$s="STRAPI_THEME",xn=()=>{const i=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",n=localStorage.getItem($s);return n||localStorage.setItem($s,i),n||i},hn=({children:i,themes:n})=>{const[r,f]=(0,t.useState)(xn()),h=(0,t.useCallback)(d=>{f(d),localStorage.setItem($s,d)},[f]),v=(0,t.useMemo)(()=>({currentTheme:r,onChangeTheme:h,themes:n}),[r,h,n]);return t.createElement(jt.Rj.Provider,{value:v},i)};hn.propTypes={children:l().node.isRequired,themes:l().shape({light:l().shape({colors:l().object.isRequired,shadows:l().object.isRequired,sizes:l().object.isRequired,zIndices:l().array.isRequired,spaces:l().array.isRequired,borderRadius:l().string.isRequired,mediaQueries:l().object.isRequired,fontSizes:l().array.isRequired,lineHeights:l().array.isRequired,fontWeights:l().object.isRequired}).isRequired,dark:l().shape({colors:l().object.isRequired,shadows:l().object.isRequired,sizes:l().object.isRequired,zIndices:l().array.isRequired,spaces:l().array.isRequired,borderRadius:l().string.isRequired,mediaQueries:l().object.isRequired,fontSizes:l().array.isRequired,lineHeights:l().array.isRequired,fontWeights:l().object.isRequired}).isRequired,custom:l().object}).isRequired};const kn=hn;var Fn=e(45230),Wn=(i,n,r)=>new Promise((f,h)=>{var v=E=>{try{m(r.next(E))}catch(y){h(y)}},d=E=>{try{m(r.throw(E))}catch(y){h(y)}},m=E=>E.done?f(E.value):Promise.resolve(E.value).then(v,d);m((r=r.apply(i,n)).next())});(()=>Wn(void 0,null,function*(){yield e.e(7723).then(e.bind(e,86797)),yield e.e(7566).then(e.bind(e,18359)),yield e.e(8e3).then(e.t.bind(e,37433,23)),yield e.e(7784).then(e.bind(e,64470))}))();const Kn=lt.createGlobalStyle`
  body {
    background: ${({theme:i})=>i.colors.neutral100};
  }
`,En=({children:i})=>{const{currentTheme:n,themes:r}=(0,ys.M1)();return t.createElement(Fn.ThemeProvider,{theme:r[n]||r.light},i,t.createElement(Kn,null))};En.propTypes={children:l().element.isRequired};const Nn=En,Zn=new es.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),vn=({authLogo:i,children:n,components:r,customFields:f,fields:h,getAdminInjectedComponents:v,getPlugin:d,localeNames:m,menu:E,menuLogo:y,messages:X,plugins:H,runHookParallel:z,runHookSeries:he,runHookWaterfall:Z,settings:ye,showReleaseNotification:Ee,showTutorials:Xe,store:gt,themes:yt})=>t.createElement(kn,{themes:yt},t.createElement(Nn,null,t.createElement(es.QueryClientProvider,{client:Zn},t.createElement(Ms.Provider,{store:gt},t.createElement(jt.ux.Provider,{value:{getAdminInjectedComponents:v}},t.createElement(As,{authLogo:i,menuLogo:y,showReleaseNotification:Ee,showTutorials:Xe},t.createElement(g.StrapiAppProvider,{getPlugin:d,menu:E,plugins:H,runHookParallel:z,runHookWaterfall:Z,runHookSeries:he,settings:ye},t.createElement(g.LibraryProvider,{components:r,fields:h},t.createElement(g.CustomFieldsProvider,{customFields:f},t.createElement(ks,{messages:X,localeNames:m},t.createElement(bn,null,t.createElement(wn,null,t.createElement(b,null,t.createElement(Bn,null,n))))))))))))));vn.propTypes={authLogo:l().oneOfType([l().string,l().any]).isRequired,children:l().element.isRequired,components:l().object.isRequired,customFields:l().object.isRequired,fields:l().object.isRequired,getAdminInjectedComponents:l().func.isRequired,getPlugin:l().func.isRequired,localeNames:l().objectOf(l().string).isRequired,menu:l().arrayOf(l().shape({to:l().string.isRequired,icon:l().func.isRequired,intlLabel:l().shape({id:l().string.isRequired,defaultMessage:l().string.isRequired}).isRequired,permissions:l().array,Component:l().func})).isRequired,menuLogo:l().oneOfType([l().string,l().any]).isRequired,messages:l().object.isRequired,plugins:l().object.isRequired,runHookParallel:l().func.isRequired,runHookWaterfall:l().func.isRequired,runHookSeries:l().func.isRequired,settings:l().object.isRequired,showReleaseNotification:l().bool.isRequired,showTutorials:l().bool.isRequired,store:l().object.isRequired,themes:l().shape({light:l().shape({colors:l().object.isRequired,shadows:l().object.isRequired,sizes:l().object.isRequired,zIndices:l().array.isRequired,spaces:l().array.isRequired,borderRadius:l().string.isRequired,mediaQueries:l().object.isRequired,fontSizes:l().array.isRequired,lineHeights:l().array.isRequired,fontWeights:l().object.isRequired}).isRequired,dark:l().shape({colors:l().object.isRequired,shadows:l().object.isRequired,sizes:l().object.isRequired,zIndices:l().array.isRequired,spaces:l().array.isRequired,borderRadius:l().string.isRequired,mediaQueries:l().object.isRequired,fontSizes:l().array.isRequired,lineHeights:l().array.isRequired,fontWeights:l().object.isRequired}).isRequired,custom:l().object}).isRequired};const Gn=vn,$n={ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",ca:"Catal\xE0",cs:"\u010Ce\u0161tina",de:"Deutsch",dk:"Dansk",en:"English",es:"Espa\xF1ol",fr:"Fran\xE7ais",gu:"Gujarati",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hu:"Magyar",id:"Indonesian",it:"Italiano",ja:"\u65E5\u672C\u8A9E",ko:"\uD55C\uAD6D\uC5B4",ml:"Malayalam",ms:"Melayu",nl:"Nederlands",no:"Norwegian",pl:"Polski","pt-BR":"Portugu\xEAs (Brasil)",pt:"Portugu\xEAs (Portugal)",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sk:"Sloven\u010Dina",sv:"Swedish",th:"\u0E44\u0E17\u0E22",tr:"T\xFCrk\xE7e",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",vi:"Ti\u1EBFng Vi\u1EC7t","zh-Hans":"\u4E2D\u6587 (\u7B80\u4F53)",zh:"\u4E2D\u6587 (\u7E41\u9AD4)",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",hi:"\u0939\u093F\u0928\u094D\u0926\u0940"};var ls=e(70836);const Hn={admin:{tutorials:{links:[]}},contentManager:{editView:{informations:[],"right-links":[]},listView:{actions:[],deleteModalAdditionalInfos:[]}}},zn=e.p+"474a770a55f7d3009513.png";var yn=e(98399),Vn=Object.defineProperty,Xn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Hs=(i,n,r)=>n in i?Vn(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,Rt=(i,n)=>{for(var r in n||(n={}))Yn.call(n,r)&&Hs(i,r,n[r]);if(Pn)for(var r of Pn(n))Jn.call(n,r)&&Hs(i,r,n[r]);return i},qn=(i,n)=>Xn(i,Qn(n)),Te=(i,n,r)=>(Hs(i,typeof n!="symbol"?n+"":n,r),r),St=(i,n,r)=>new Promise((f,h)=>{var v=E=>{try{m(r.next(E))}catch(y){h(y)}},d=E=>{try{m(r.throw(E))}catch(y){h(y)}},m=E=>E.done?f(E.value):Promise.resolve(E.value).then(v,d);m((r=r.apply(i,n)).next())});class er{constructor({adminConfig:n,appPlugins:r,library:f,middlewares:h,reducers:v}){Te(this,"addComponents",d=>{Array.isArray(d)?d.map(m=>this.library.components.add(m)):this.library.components.add(d)}),Te(this,"addCorePluginMenuLink",d=>{var m,E;const y=JSON.stringify(d);L()(d.to,`link.to should be defined for ${y}`),L()(typeof d.to=="string",`Expected link.to to be a string instead received ${typeof d.to}`),L()(["/plugins/content-type-builder","/plugins/upload"].includes(d.to),"This method is not available for your plugin"),L()(((m=d.intlLabel)==null?void 0:m.id)&&((E=d.intlLabel)==null?void 0:E.defaultMessage),`link.intlLabel.id & link.intlLabel.defaultMessage for ${y}`),this.menu.push(d)}),Te(this,"addFields",d=>{Array.isArray(d)?d.map(m=>this.library.fields.add(m)):this.library.fields.add(d)}),Te(this,"addMenuLink",d=>{var m,E;const y=JSON.stringify(d);L()(d.to,`link.to should be defined for ${y}`),L()(typeof d.to=="string",`Expected link.to to be a string instead received ${typeof d.to}`),L()(((m=d.intlLabel)==null?void 0:m.id)&&((E=d.intlLabel)==null?void 0:E.defaultMessage),`link.intlLabel.id & link.intlLabel.defaultMessage for ${y}`),L()(d.Component&&typeof d.Component=="function","link.Component should be a valid React Component"),L()(d.icon&&typeof d.icon=="function","link.Icon should be a valid React Component"),this.menu.push(d)}),Te(this,"addMiddlewares",d=>{d.forEach(m=>{this.middlewares.add(m)})}),Te(this,"addReducers",d=>{Object.keys(d).forEach(m=>{this.reducers.add(m,d[m])})}),Te(this,"addSettingsLink",(d,m)=>{var E,y;L()(this.settings[d],"The section does not exist");const X=JSON.stringify(m);L()(m.id,`link.id should be defined for ${X}`),L()(((E=m.intlLabel)==null?void 0:E.id)&&((y=m.intlLabel)==null?void 0:y.defaultMessage),`link.intlLabel.id & link.intlLabel.defaultMessage for ${X}`),L()(m.to,`link.to should be defined for ${X}`),L()(m.Component&&typeof m.Component=="function","link.Component should be a valid React Component"),this.settings[d].links.push(m)}),Te(this,"addSettingsLinks",(d,m)=>{L()(this.settings[d],"The section does not exist"),L()(Array.isArray(m),"TypeError expected links to be an array"),m.forEach(E=>{this.addSettingsLink(d,E)})}),Te(this,"bootstrapAdmin",()=>St(this,null,function*(){return yield this.createCustomConfigurations(),this.createHook(ls.No),this.createHook(ls.LK),this.createHook(ls.dV),this.createHook(ls.Eo),Promise.resolve()})),Te(this,"createCustomConfigurations",()=>St(this,null,function*(){var d,m,E,y,X,H,z,he,Z,ye,Ee,Xe;if((d=this.customConfigurations)!=null&&d.locales&&(this.configurations.locales=["en",...((m=this.customConfigurations.locales)==null?void 0:m.filter(gt=>gt!=="en"))||[]]),(y=(E=this.customConfigurations)==null?void 0:E.auth)!=null&&y.logo&&(this.configurations.authLogo=this.customConfigurations.auth.logo),(H=(X=this.customConfigurations)==null?void 0:X.menu)!=null&&H.logo&&(this.configurations.menuLogo=this.customConfigurations.menu.logo),(he=(z=this.customConfigurations)==null?void 0:z.head)!=null&&he.favicon&&(this.configurations.head.favicon=this.customConfigurations.head.favicon),(Z=this.customConfigurations)!=null&&Z.theme){const gt=this.customConfigurations.theme.dark,yt=this.customConfigurations.theme.light;!gt&&!yt&&(yn.warn("[deprecated] In future versions, Strapi will stop supporting this theme customization syntax. The theme configuration accepts a light and a dark key to customize each theme separately. See https://docs.strapi.io/developer-docs/latest/development/admin-customization.html#theme-extension."),D()(this.configurations.themes.light,this.customConfigurations.theme)),yt&&D()(this.configurations.themes.light,yt),gt&&D()(this.configurations.themes.dark,gt)}((Ee=(ye=this.customConfigurations)==null?void 0:ye.notifications)==null?void 0:Ee.releases)!==void 0&&(this.configurations.notifications.releases=this.customConfigurations.notifications.releases),((Xe=this.customConfigurations)==null?void 0:Xe.tutorials)!==void 0&&(this.configurations.tutorials=this.customConfigurations.tutorials)})),Te(this,"createHook",d=>{this.hooksDict[d]=(0,w.Bi)()}),Te(this,"createSettingSection",(d,m)=>{var E,y;L()(d.id,"section.id should be defined"),L()(((E=d.intlLabel)==null?void 0:E.id)&&((y=d.intlLabel)==null?void 0:y.defaultMessage),"section.intlLabel should be defined"),L()(Array.isArray(m),"TypeError expected links to be an array"),L()(this.settings[d.id]===void 0,"A similar section already exists"),this.settings[d.id]=qn(Rt({},d),{links:[]}),m.forEach(X=>{this.addSettingsLink(d.id,X)})}),Te(this,"createStore",()=>$(this.middlewares.middlewares,this.reducers.reducers)),Te(this,"getAdminInjectedComponents",(d,m,E)=>{try{return this.admin.injectionZones[d][m][E]||[]}catch(y){return yn.error("Cannot get injected component",y),y}}),Te(this,"getPlugin",d=>this.plugins[d]),Te(this,"injectContentManagerComponent",(d,m,E)=>{var y;L()((y=this.admin.injectionZones.contentManager[d])==null?void 0:y[m],`The ${d} ${m} zone is not defined in the content manager`),L()(E,"A Component must be provided"),this.admin.injectionZones.contentManager[d][m].push(E)}),Te(this,"injectAdminComponent",(d,m,E)=>{var y;L()((y=this.admin.injectionZones.admin[d])==null?void 0:y[m],`The ${d} ${m} zone is not defined in the admin`),L()(E,"A Component must be provided"),this.admin.injectionZones.admin[d][m].push(E)}),Te(this,"registerHook",(d,m)=>{L()(this.hooksDict[d],`The hook ${d} is not defined. You are trying to register a hook that does not exist in the application.`),this.hooksDict[d].register(m)}),Te(this,"registerPlugin",d=>{const m=(0,re.Sy)(d);this.plugins[m.pluginId]=m}),Te(this,"runHookSeries",(d,m=!1)=>m?this.hooksDict[d].runSeriesAsync():this.hooksDict[d].runSeries()),Te(this,"runHookWaterfall",(d,m,E=!1,y)=>E?this.hooksDict[d].runWaterfallAsync(m,y):this.hooksDict[d].runWaterfall(m,y)),Te(this,"runHookParallel",d=>this.hooksDict[d].runParallel()),this.customConfigurations=n.config,this.customBootstrapConfiguration=n.bootstrap,this.configurations={authLogo:Cs,head:{favicon:zn},locales:["en"],menuLogo:Cs,notifications:{releases:!0},themes:{light:a.lightTheme,dark:a.darkTheme},translations:{},tutorials:!0},this.appPlugins=r||{},this.library=f,this.middlewares=h,this.plugins={},this.reducers=v,this.translations={},this.hooksDict={},this.admin={injectionZones:Hn},this.customFields=re.rh,this.menu=[],this.settings={global:{id:"global",intlLabel:{id:"Settings.global",defaultMessage:"Global Settings"},links:[]}}}bootstrap(){return St(this,null,function*(){Object.keys(this.appPlugins).forEach(n=>{const r=this.appPlugins[n].bootstrap;r&&r({addSettingsLink:this.addSettingsLink,addSettingsLinks:this.addSettingsLinks,getPlugin:this.getPlugin,injectContentManagerComponent:this.injectContentManagerComponent,injectAdminComponent:this.injectAdminComponent,registerHook:this.registerHook})}),ee()(this.customBootstrapConfiguration)&&this.customBootstrapConfiguration({addComponents:this.addComponents,addFields:this.addFields,addMenuLink:this.addMenuLink,addReducers:this.addReducers,addSettingsLink:this.addSettingsLink,addSettingsLinks:this.addSettingsLinks,getPlugin:this.getPlugin,injectContentManagerComponent:this.injectContentManagerComponent,injectAdminComponent:this.injectAdminComponent,registerHook:this.registerHook})})}initialize(){return St(this,null,function*(){Object.keys(this.appPlugins).forEach(n=>{this.appPlugins[n].register(this)})})}loadAdminTrads(){return St(this,null,function*(){const n=this.configurations.locales.map(h=>e(48224)(`./${h}.json`).then(({default:v})=>({data:v,locale:h})).catch(()=>({data:null,locale:h})));return(yield Promise.all(n)).reduce((h,v)=>(v.data&&(h[v.locale]=v.data),h),{})})}loadTrads(){return St(this,null,function*(){const n=yield this.loadAdminTrads(),r=Object.keys(this.appPlugins).map(d=>{const m=this.appPlugins[d].registerTrads;return m?m({locales:this.configurations.locales}):null}).filter(d=>d),h=(yield Promise.all(r)).reduce((d,m)=>{const E=m.reduce((y,X)=>(y[X.locale]=X.data,y),{});return Object.keys(E).forEach(y=>{d[y]=Rt(Rt({},d[y]),E[y])}),d},{}),v=this.configurations.locales.reduce((d,m)=>{var E,y;return d[m]=Rt(Rt(Rt({},n[m]),h[m]||{}),(y=(E=this.customConfigurations)==null?void 0:E.translations)==null?void 0:y[m]),d},{});return this.configurations.translations=v,Promise.resolve()})}render(){const n=this.createStore(),r=x()($n,this.configurations.locales||[]),{components:{components:f},fields:{fields:h}}=this.library;return t.createElement(Gn,{authLogo:this.configurations.authLogo,components:f,fields:h,customFields:this.customFields,localeNames:r,getAdminInjectedComponents:this.getAdminInjectedComponents,getPlugin:this.getPlugin,messages:this.configurations.translations,menu:this.menu,menuLogo:this.configurations.menuLogo,plugins:this.plugins,runHookParallel:this.runHookParallel,runHookWaterfall:(v,d,m=!1)=>this.runHookWaterfall(v,d,m,n),runHookSeries:this.runHookSeries,themes:this.configurations.themes,settings:this.settings,showTutorials:this.configurations.tutorials,showReleaseNotification:this.configurations.notifications.releases,store:n},t.createElement(t.Fragment,null,t.createElement(K.Helmet,{link:[{rel:"icon",type:"image/png",href:this.configurations.head.favicon}],htmlAttributes:{lang:localStorage.getItem(Ot)||"en"}}),t.createElement(c.BrowserRouter,{basename:w.EZ},t.createElement(qt,{store:n}))))}}const tr=({adminConfig:i={},appPlugins:n,library:r,middlewares:f,reducers:h})=>new er({adminConfig:i,appPlugins:n,library:r,middlewares:f,reducers:h})},5985:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>a});var t=e(32735);const a=(0,t.createContext)()},20139:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>P});var t=e(32735),c=e(5985);const P=()=>{const{changeLocale:D,localeNames:M,messages:x}=(0,t.useContext)(c.Z);return{changeLocale:D,localeNames:M,messages:x}}},10190:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>M});var t=e(32735),c=e(19615),a=e(85539);const P=c.default.img`
  height: ${72/16}rem;
`,M=()=>{const{logos:{auth:x}}=(0,a.um)();return t.createElement(P,{src:x.default,"aria-hidden":!0,alt:""})}},66694:(Q,C,e)=>{"use strict";e.d(C,{ux:()=>a,_5:()=>D,$l:()=>x,Rj:()=>ee});var t=e(32735);const a=(0,t.createContext)({}),D=(0,t.createContext)({}),x=(0,t.createContext)({}),ee=(0,t.createContext)({})},70836:(Q,C,e)=>{"use strict";e.d(C,{Eo:()=>a,LK:()=>c,No:()=>t,dV:()=>P});const t="Admin/CM/pages/ListView/inject-column-in-table",c="Admin/CM/pages/App/mutate-collection-types-links",a="Admin/CM/pages/EditView/mutate-edit-view-layout",P="Admin/CM/pages/App/mutate-single-types-links"},85539:(Q,C,e)=>{"use strict";e.d(C,{um:()=>t.Z,U_:()=>be,Dq:()=>Me,H9:()=>Se,bP:()=>re,$_:()=>Ws,rW:()=>Zs,bF:()=>fs,G4:()=>Fs,Te:()=>bs,M1:()=>kt});var t=e(19799),c=e(32735),a=e(88425),P=e(49415);const D={collectionTypes:[],components:[],isLoading:!0,singleTypes:[]},x=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"GET_MODELS":{s.collectionTypes=D.collectionTypes,s.singleTypes=D.singleTypes,s.components=D.components,s.isLoading=!0;break}case"GET_MODELS_ERROR":{s.collectionTypes=D.collectionTypes,s.singleTypes=D.singleTypes,s.components=D.components,s.isLoading=!1;break}case"GET_MODELS_SUCCEDED":{const R=T=>o.contentTypes.filter(B=>B.isDisplayed&&B.kind===T);s.isLoading=!1,s.collectionTypes=R("collectionType"),s.singleTypes=R("singleType"),s.components=o.components;break}default:return s}});var N=Object.defineProperty,ee=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,L=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,A=(u,o,s)=>o in u?N(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,S=(u,o)=>{for(var s in o||(o={}))K.call(o,s)&&A(u,s,o[s]);if(L)for(var s of L(o))w.call(o,s)&&A(u,s,o[s]);return u},k=(u,o)=>ee(u,Y(o)),F=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const re=()=>{const u=(0,a.useNotification)(),[o,s]=(0,c.useReducer)(x,D);(0,c.useEffect)(()=>{R()},[]);const R=()=>F(void 0,null,function*(){s({type:"GET_MODELS"});try{const[{data:T},{data:B}]=yield Promise.all(["components","content-types"].map(b=>(0,a.request)(`/content-manager/${b}`,{method:"GET"})));s({type:"GET_MODELS_SUCCEDED",contentTypes:B,components:T})}catch(T){s({type:"GET_MODELS_ERROR"}),u({type:"warning",message:{id:"notification.error"}})}});return k(S({},o),{getData:R})},g={data:{},error:null,isLoading:!0},J=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"GET_DATA":{s.isLoading=!0,s.data={},s.error=null;break}case"GET_DATA_SUCCEEDED":{s.data=o.data,s.isLoading=!1,s.error=null;break}case"GET_DATA_ERROR":{s.isLoading=!1,s.error=o.error;break}default:return s}});var fe=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const be=u=>{const[{data:o,error:s,isLoading:R},T]=(0,c.useReducer)(J,g);return(0,c.useEffect)(()=>{(()=>fe(void 0,null,function*(){T({type:"GET_DATA"});const{data:b}=yield(0,a.request)("/admin/permissions",{method:"GET",params:{role:u}});T({type:"GET_DATA_SUCCEEDED",data:b})}))()},[u]),{data:o,error:s,isLoading:R}},l={role:{},permissions:{},isLoading:!0},Ie=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"GET_DATA_SUCCEEDED":{s.role=o.role,s.permissions=o.permissions,s.isLoading=!1;break}case"GET_DATA_ERROR":{s.isLoading=!1;break}case"ON_SUBMIT_SUCCEEDED":{s.role.name=o.name,s.role.description=o.description;break}default:return s}});var le=e(98399),oe=Object.defineProperty,ue=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,j=(u,o,s)=>o in u?oe(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,_=(u,o)=>{for(var s in o||(o={}))ae.call(o,s)&&j(u,s,o[s]);if(q)for(var s of q(o))V.call(o,s)&&j(u,s,o[s]);return u},U=(u,o)=>ue(u,Ze(o)),ge=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const Me=u=>{const o=(0,a.useNotification)(),[s,R]=(0,c.useReducer)(Ie,l);(0,c.useEffect)(()=>{u?T(u):R({type:"GET_DATA_SUCCEEDED",role:{},permissions:[]})},[u]);const T=b=>ge(void 0,null,function*(){try{const[{data:O},{data:p}]=yield Promise.all([`roles/${b}`,`roles/${b}/permissions`].map(I=>(0,a.request)(`/admin/${I}`,{method:"GET"})));R({type:"GET_DATA_SUCCEEDED",role:O,permissions:p})}catch(O){le.error(O),R({type:"GET_DATA_ERROR"}),o({type:"warning",message:{id:"notification.error"}})}}),B=(0,c.useCallback)(b=>{R(_({type:"ON_SUBMIT_SUCCEEDED"},b))},[]);return U(_({},s),{onSubmitSucceeded:B})},W=(u,o)=>o.map(({permissions:s})=>(0,a.hasPermissions)(u,s));var ce=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const Mt=(u,o)=>ce(void 0,null,function*(){const s=W(u,o),R=yield Promise.all(s);return o.filter((B,b)=>R[b])});var xe=e(99381),ne=e.n(xe),$e=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const ke=(u,o,s)=>$e(void 0,null,function*(){const R=W(u,o),T=yield Promise.all(R),B=o.filter((p,I)=>T[I]),b=B.findIndex(p=>p.to==="/settings");if(b===-1)return[];const O=ne()(B);return O[b].notificationsCount=s?1:0,O});var je=e(42258),qe=e.n(je),Oe=e(45619),Je=e.n(Oe),se=e(20223),He=e.n(se),ze=e(83983);const et={generalSectionLinks:[{icon:Je(),intlLabel:{id:"global.plugins",defaultMessage:"Plugins"},to:"/list-plugins",permissions:ze.Z.marketplace.main},{icon:He(),intlLabel:{id:"global.marketplace",defaultMessage:"Marketplace"},to:"/marketplace",permissions:ze.Z.marketplace.main},{icon:qe(),intlLabel:{id:"global.settings",defaultMessage:"Settings"},to:"/settings",permissions:[],notificationsCount:0}],pluginsSectionLinks:[],isLoading:!0},at=(u=et,o)=>(0,P.default)(u,s=>{switch(o.type){case"SET_SECTION_LINKS":{const{authorizedGeneralSectionLinks:R,authorizedPluginSectionLinks:T}=o.data;s.generalSectionLinks=R,s.pluginsSectionLinks=T;break}case"UNSET_IS_LOADING":{s.isLoading=!1;break}default:return s}});var Dt=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const Se=()=>{const[u,o]=(0,c.useReducer)(at,et),{allPermissions:s}=(0,a.useRBACProvider)(),{shouldUpdateStrapi:R}=(0,a.useAppInfos)(),{menu:T}=(0,a.useStrapiApp)(),B=(0,c.useRef)(u.generalSectionLinks),b=(0,c.useRef)(R),O=(...I)=>Dt(void 0,[...I],function*(we=s){const ut=yield Mt(we,T),pt=yield ke(we,B.current,b.current);o({type:"SET_SECTION_LINKS",data:{authorizedGeneralSectionLinks:pt,authorizedPluginSectionLinks:ut}}),o({type:"UNSET_IS_LOADING"})}),p=(0,c.useRef)(O);return(0,c.useEffect)(()=>{p.current(s)},[s,o]),u};var $t=e(33795),it=e.n($t),Ue=e(17247),Pe=Object.defineProperty,Fe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,ds=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ct=(u,o,s)=>o in u?Pe(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,Et=(u,o)=>{for(var s in o||(o={}))ds.call(o,s)&&ct(u,s,o[s]);if(ht)for(var s of ht(o))lt.call(o,s)&&ct(u,s,o[s]);return u},Pt=(u,o)=>Fe(u,tt(o));const zt=(u,o)=>Pt(Et({},u),{isLoading:o}),Vt={roles:[],isLoading:!0},cs=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"GET_DATA":{s.isLoading=!0,s.roles=[];break}case"GET_DATA_SUCCEEDED":{s.roles=o.data,s.isLoading=!1;break}case"GET_DATA_ERROR":{s.isLoading=!1;break}default:return s}});var ms=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const fs=(u=!0)=>{const o=(0,a.useNotification)(),[{roles:s,isLoading:R},T]=(0,c.useReducer)(cs,Vt,()=>zt(Vt,u));(0,c.useEffect)(()=>{u&&B()},[u]);const B=(0,c.useCallback)(()=>ms(void 0,null,function*(){try{T({type:"GET_DATA"});const{data:{data:b}}=yield Ue.be.get("/admin/roles");T({type:"GET_DATA_SUCCEEDED",data:b})}catch(b){const O=it()(b,["response","payload","message"],"An error occured");T({type:"GET_DATA_ERROR"}),O!=="Forbidden"&&o({type:"warning",message:O})}}),[o]);return{roles:s,isLoading:R,getData:B}};var Ve=e(92891);const gs={menu:[],isLoading:!0},Xt=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"CHECK_PERMISSIONS_SUCCEEDED":{o.data.forEach(R=>{R.hasPermission&&(0,Ve.set)(s,["menu",...R.path.split("."),"isDisplayed"],R.hasPermission)}),s.menu.forEach((R,T)=>{s.menu[T].links=R.links.filter(B=>B.isDisplayed===!0)}),s.isLoading=!1;break}default:return s}});var Ys=e(9086),hs=e.n(Ys),Es=e(98978),vs=e.n(Es);const Ps=u=>vs()(u,o=>o.id);var Ts=Object.defineProperty,Os=Object.defineProperties,Qt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Rs=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Lt=(u,o,s)=>o in u?Ts(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,bt=(u,o)=>{for(var s in o||(o={}))Rs.call(o,s)&&Lt(u,s,o[s]);if(Yt)for(var s of Yt(o))Jt.call(o,s)&&Lt(u,s,o[s]);return u},It=(u,o)=>Os(u,Qt(o));const Ss=u=>u.map(o=>{const s=o.links.map(R=>It(bt({},R),{isDisplayed:!1}));return It(bt({},o),{links:s})});var qt=e(21930);const es=[{intlLabel:{id:"Settings.application.title",defaultMessage:"Overview"},to:"/settings/application-infos",id:"000-application-infos",isDisplayed:!1,permissions:[]},{intlLabel:{id:"Settings.webhooks.title",defaultMessage:"Webhooks"},to:"/settings/webhooks",id:"webhooks",isDisplayed:!1,permissions:ze.Z.settings.webhooks.main},{intlLabel:{id:"Settings.apiTokens.title",defaultMessage:"API Tokens"},to:"/settings/api-tokens?sort=name:ASC",id:"api-tokens",isDisplayed:!1,permissions:ze.Z.settings["api-tokens"].main}];var Ms=function(){return window&&window.strapi&&window.strapi.isEE?e(11545).Z:e(73086).Z}();const jt=[].concat((0,qt.Z)(es),(0,qt.Z)(Ms));var ts=Object.defineProperty,qs=Object.defineProperties,Ds=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,As=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,ss=(u,o,s)=>o in u?ts(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,Bt=(u,o)=>{for(var s in o||(o={}))As.call(o,s)&&ss(u,s,o[s]);if(_t)for(var s of _t(o))Ls.call(o,s)&&ss(u,s,o[s]);return u},Tt=(u,o)=>qs(u,Ds(o));const tn=(u,{settings:o,shouldUpdateStrapi:s})=>{const R=o.global.links,T=Ps([...R,...jt]).map(O=>Tt(Bt({},O),{hasNotification:O.id==="000-application-infos"&&s})),B=Object.values(hs()(o,"global")),b=[Tt(Bt({},o.global),{links:T}),{id:"permissions",intlLabel:{id:"Settings.permissions",defaultMessage:"Administration Panel"},links:[{intlLabel:{id:"global.roles",defaultMessage:"Roles"},to:"/settings/roles",id:"roles",isDisplayed:!1,permissions:ze.Z.settings.roles.main},{intlLabel:{id:"global.users"},to:"/settings/users?pageSize=10&page=1&sort=firstname",id:"users",isDisplayed:!1,permissions:ze.Z.settings.users.main}]},...B];return Tt(Bt({},u),{menu:Ss(b)})};var Ot=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const bs=(u=!1)=>{const{allPermissions:o}=(0,a.useRBACProvider)(),{shouldUpdateStrapi:s}=(0,a.useAppInfos)(),{settings:R}=(0,a.useStrapiApp)(),[{isLoading:T,menu:B},b]=(0,c.useReducer)(Xt,gs,()=>tn(gs,{settings:R,shouldUpdateStrapi:s}));return(0,c.useEffect)(()=>{u||(()=>Ot(void 0,null,function*(){const p=(ut,pt)=>Ot(void 0,null,function*(){return{hasPermission:yield(0,a.hasPermissions)(o,ut),path:pt}}),we=(ut=>ut.reduce((pt,Ft,Wt)=>{const vt=Kt=>Kt.map((ft,We)=>p(Kt[We].permissions,`${Wt}.links.${We}`));return[...pt,...vt(Ft.links)]},[]))(B),mt=yield Promise.all(we);b({type:"CHECK_PERMISSIONS_SUCCEEDED",data:mt})}))()},[o,u]),{isLoading:T,menu:B}};var ns=e(7602);const rs={fieldsToPick:[],formErrors:{},initialData:{},isLoading:!0,modifiedData:{},showHeaderButtonLoader:!1,showHeaderLoader:!0},Is=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"GET_DATA_SUCCEEDED":{s.isLoading=!1,s.showHeaderLoader=!1,s.initialData=(0,Ve.pick)(o.data,u.fieldsToPick),s.modifiedData=(0,Ve.pick)(o.data,u.fieldsToPick);break}case"ON_CANCEL":{s.modifiedData=u.initialData,s.formErrors={};break}case"ON_CHANGE":{o.inputType==="password"&&!o.value?(0,Ve.unset)(s.modifiedData,o.keys.split(".")):o.keys.includes("username")&&!o.value?(0,Ve.set)(s.modifiedData,o.keys.split("."),null):(0,Ve.set)(s.modifiedData,o.keys.split("."),o.value);break}case"ON_SUBMIT":{s.showHeaderButtonLoader=!0;break}case"ON_SUBMIT_SUCCEEDED":{s.initialData=(0,Ve.pick)(o.data,u.fieldsToPick),s.modifiedData=(0,Ve.pick)(o.data,u.fieldsToPick),s.showHeaderButtonLoader=!1;break}case"SET_ERRORS":{s.formErrors=o.errors,s.showHeaderButtonLoader=!1;break}default:return s}});var os=Object.defineProperty,js=Object.defineProperties,_s=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,Bs=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,wt=(u,o,s)=>o in u?os(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,sn=(u,o)=>{for(var s in o||(o={}))Bs.call(o,s)&&wt(u,s,o[s]);if(Ut)for(var s of Ut(o))Us.call(o,s)&&wt(u,s,o[s]);return u},ws=(u,o)=>js(u,_s(o));const ks=(u,o)=>ws(sn({},u),{fieldsToPick:o});var nn=e(98399),as=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const Fs=(u,o,s,R)=>{const[{formErrors:T,initialData:B,isLoading:b,modifiedData:O,showHeaderButtonLoader:p,showHeaderLoader:I},we]=(0,c.useReducer)(Is,rs,()=>ks(rs,R)),mt=(0,a.useNotification)(),{lockApp:ut,unlockApp:pt}=(0,a.useOverlayBlocker)();return(0,c.useEffect)(()=>{u&&(()=>as(void 0,null,function*(){try{const{data:We}=yield(0,a.request)(u,{method:"GET"});we({type:"GET_DATA_SUCCEEDED",data:We,fieldsToPick:R})}catch(We){nn.error(We.response),mt({type:"warning",message:{id:"notification.error"}})}}))()},[u]),[{formErrors:T,initialData:B,isLoading:b,modifiedData:O,showHeaderButtonLoader:p,showHeaderLoader:I},we,{handleCancel:()=>{we({type:"ON_CANCEL"})},handleChange:({target:{name:ft,value:We,type:st}})=>{we({type:"ON_CHANGE",inputType:st,keys:ft,value:We})},handleSubmit:ft=>as(void 0,null,function*(){ft.preventDefault();const We=yield(0,ns.R6)(O,o);if(we({type:"SET_ERRORS",errors:We||{}}),!We)try{ut(),we({type:"ON_SUBMIT"});const st=(0,Ve.omit)(O,["confirmPassword","registrationToken"]);st.roles&&(st.roles=st.roles.map(Nt=>Nt.id));const{data:dt}=yield(0,a.request)(u,{method:"PUT",body:st});s(dt),we({type:"ON_SUBMIT_SUCCEEDED",data:dt}),mt({type:"success",message:{id:"notification.success.saved"}})}catch(st){const dt=(0,Ve.get)(st,"response.payload",{data:{}});(0,Ve.has)(dt,"data")&&typeof dt.data=="string"?mt({type:"warning",message:dt.data}):mt({type:"warning",message:dt.message});const Nt=(0,ns.Iz)(dt);we({type:"SET_ERRORS",errors:Nt})}finally{pt()}}),setField:(ft,We)=>{we({type:"ON_CHANGE",keys:ft,value:We})}}]};var xt=e(66694);const Ws=()=>(0,c.useContext)(xt.$l),kt=()=>(0,c.useContext)(xt.Rj);var Ks=(u,o,s)=>new Promise((R,T)=>{var B=p=>{try{O(s.next(p))}catch(I){T(I)}},b=p=>{try{O(s.throw(p))}catch(I){T(I)}},O=p=>p.done?R(p.value):Promise.resolve(p.value).then(B,b);O((s=s.apply(u,o)).next())});const Zs=(u,o)=>{const[s,R]=(0,c.useState)(!1),T=(0,a.useNotification)();return{regenerateData:()=>Ks(void 0,null,function*(){try{const{data:{data:{accessKey:b}}}=yield Ue.be.post(`/admin/api-tokens/${u}/regenerate`);R(!1),o(b)}catch(b){R(!1),T({type:"warning",message:(0,Ve.get)(b,"response.data.message","notification.error")})}}),isLoadingConfirmation:s}}},19799:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>P});var t=e(32735),c=e(66694);const P=()=>(0,t.useContext)(c._5)},73086:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>t});const t=[]},954:(Q,C,e)=>{"use strict";e.d(C,{sg:()=>w,bU:()=>A,ZP:()=>k});var t=e(32735),c=e(19615),a=e(60216),P=e.n(a),D=e(9808),M=e(19192),x=e(5636),N=e(12611),ee=e(20139);const L=()=>{const{changeLocale:F,localeNames:$}=(0,ee.Z)(),{locale:re}=(0,x.useIntl)();return t.createElement(N.SimpleMenu,{label:$[re]},Object.keys($).map(g=>t.createElement(N.MenuItem,{onClick:()=>F(g),key:g},$[g])))},K=(0,c.default)(D.Box)`
  margin: 0 auto;
  width: 552px;
`,w=(0,c.default)(M.Flex)`
  flex-direction: column;
`,A=({children:F})=>t.createElement(K,{shadow:"tableShadow",hasRadius:!0,paddingTop:9,paddingBottom:9,paddingLeft:10,paddingRight:10,background:"neutral0",justifyContent:"center"},F);A.propTypes={children:P().node.isRequired};const S=({children:F})=>t.createElement("div",null,t.createElement(M.Flex,{as:"header",justifyContent:"flex-end"},t.createElement(D.Box,{paddingTop:6,paddingRight:8},t.createElement(L,null))),t.createElement(D.Box,{paddingTop:2,paddingBottom:11},F));S.propTypes={children:P().node.isRequired};const k=S},56761:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>c});const c=[]},72218:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>D});var t=e(19615),c=e(20001),a=e.n(c);const D=(0,t.default)(c.FieldAction)`
  svg {
    height: 1rem;
    width: 1rem;
    path {
      fill: ${({theme:M})=>M.colors.neutral600};
    }
  }
`},1115:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>ae});var t=e(32735),c=e(88425),a=e.n(c),P=e(37341),D=e.n(P),M=e(33912),x=e.n(M),N=e(9808),ee=e.n(N),Y=e(90662),L=e.n(Y),K=e(16540),w=e.n(K),A=e(19192),S=e.n(A),k=e(44526),F=e.n(k),$=e(37178),re=e.n($),g=e(52111),te=e.n(g),J=e(95602),fe=e.n(J),Le=e(60216),be=e.n(Le),l=e(5636),Ye=e(19615),Ie=e(83281),le=e(954),oe=e(10190),ue=e(72218);const Ze=(0,Ye.default)($.TextInput)`
  ::-ms-reveal {
    display: none;
  }
`,q=({onSubmit:V,schema:j,children:_})=>{const[U,ge]=(0,t.useState)(!1),{formatMessage:G}=(0,l.useIntl)();return t.createElement(K.Main,null,t.createElement(le.bU,null,t.createElement(Ie.Formik,{enableReinitialize:!0,initialValues:{email:"",password:"",rememberMe:!1},onSubmit:V,validationSchema:j,validateOnChange:!1},({values:Me,errors:de,handleChange:W})=>t.createElement(c.Form,{noValidate:!0},t.createElement(le.sg,null,t.createElement(oe.Z,null),t.createElement(N.Box,{paddingTop:6,paddingBottom:1},t.createElement(J.Typography,{variant:"alpha",as:"h1"},G({id:"Auth.form.welcome.title",defaultMessage:"Welcome!"}))),t.createElement(N.Box,{paddingBottom:7},t.createElement(J.Typography,{variant:"epsilon",textColor:"neutral600"},G({id:"Auth.form.welcome.subtitle",defaultMessage:"Log in to your Digicommerce account"}))),de.errorMessage&&t.createElement(J.Typography,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},de.errorMessage)),t.createElement(Y.Stack,{spacing:6},t.createElement($.TextInput,{error:de.email?G({id:de.email,defaultMessage:"This value is required."}):"",value:Me.email,onChange:W,label:G({id:"Auth.form.email.label",defaultMessage:"Email"}),placeholder:G({id:"Auth.form.email.placeholder",defaultMessage:"kai@doe.com"}),name:"email",required:!0}),t.createElement(Ze,{error:de.password?G({id:de.password,defaultMessage:"This value is required."}):"",onChange:W,value:Me.password,label:G({id:"global.password",defaultMessage:"Password"}),name:"password",type:U?"text":"password",endAction:t.createElement(ue.Z,{onClick:ce=>{ce.stopPropagation(),ge(Ge=>!Ge)},label:G(U?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},U?t.createElement(x(),null):t.createElement(D(),null)),required:!0}),t.createElement(g.Checkbox,{onValueChange:ce=>{W({target:{value:ce,name:"rememberMe"}})},value:Me.rememberMe,"aria-label":"rememberMe",name:"rememberMe"},G({id:"Auth.form.rememberMe.label",defaultMessage:"Remember me"})),t.createElement(k.Button,{fullWidth:!0,type:"submit"},G({id:"Auth.form.button.login",defaultMessage:"Login"}))))),_),t.createElement(A.Flex,{justifyContent:"center"},t.createElement(N.Box,{paddingTop:4},t.createElement(c.Link,{to:"/auth/forgot-password"},G({id:"Auth.link.forgot-password",defaultMessage:"Forgot your password?"})))))};q.defaultProps={children:null,onSubmit(){}},q.propTypes={children:be().node,onSubmit:be().func,schema:be().shape({type:be().string.isRequired}).isRequired};const ae=q},5365:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>w});var t=e(32735),c=e(60216),a=e.n(c),P=e(1115),D=e(954),M=Object.defineProperty,x=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Y=(A,S,k)=>S in A?M(A,S,{enumerable:!0,configurable:!0,writable:!0,value:k}):A[S]=k,L=(A,S)=>{for(var k in S||(S={}))N.call(S,k)&&Y(A,k,S[k]);if(x)for(var k of x(S))ee.call(S,k)&&Y(A,k,S[k]);return A};const K=A=>t.createElement(D.ZP,null,t.createElement(P.Z,L({},A)));K.defaultProps={onSubmit:A=>A.preventDefault()},K.propTypes={onSubmit:a().func};const w=K},53951:(Q,C,e)=>{"use strict";e.r(C),e.d(C,{default:()=>k});var t=e(32735),c=e(88425),a=e.n(c),P=e(16540),D=e.n(P),M=e(11856),x=e.n(M),N=e(64354),ee=e.n(N),Y=e(70733),L=e.n(Y),K=e(30345),w=e.n(K),A=e(5636);const k=()=>{const{formatMessage:F}=(0,A.useIntl)();return(0,c.useFocusWhenNavigate)(),t.createElement(P.Main,{labelledBy:"title"},t.createElement(M.HeaderLayout,{id:"title",title:F({id:"content-manager.pageNotFound",defaultMessage:"Page not found"})}),t.createElement(M.ContentLayout,null,t.createElement(N.EmptyStateLayout,{action:t.createElement(c.LinkButton,{variant:"secondary",endIcon:t.createElement(w(),null),to:"/"},F({id:"app.components.NotFoundPage.back",defaultMessage:"Back to homepage"})),content:F({id:"app.page.not.found",defaultMessage:"Oops! We can't seem to find the page you're looging for..."}),hasRadius:!0,icon:t.createElement(L(),{width:"10rem"}),shadow:"tableShadow"})))}},26123:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>t});const t={}},41832:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>c});const c=({data:a})=>{try{return Object.keys(a).reduce((P,D)=>{const M=a[D][0];return P[D]={id:M,defaultMessage:M},P},{})}catch(P){return{}}}},7602:(Q,C,e)=>{"use strict";e.d(C,{R6:()=>P,ot:()=>w,Iz:()=>A.Z,Pp:()=>V,IF:()=>ae,WW:()=>Ie});var t=e(88425),c=(j,_,U)=>new Promise((ge,G)=>{var Me=ce=>{try{W(U.next(ce))}catch(Ge){G(Ge)}},de=ce=>{try{W(U.throw(ce))}catch(Ge){G(Ge)}},W=ce=>ce.done?ge(ce.value):Promise.resolve(ce.value).then(Me,de);W((U=U.apply(j,_)).next())});const P=(j,_)=>c(void 0,null,function*(){let U=null;try{yield _.validate(j,{abortEarly:!1})}catch(ge){U=(0,t.getYupInnerErrors)(ge)}return U});var D=e(32735),M=e(60216),x=e.n(M),N=e(5141),ee=e(98399),Y=(j,_,U)=>new Promise((ge,G)=>{var Me=ce=>{try{W(U.next(ce))}catch(Ge){G(Ge)}},de=ce=>{try{W(U.throw(ce))}catch(Ge){G(Ge)}},W=ce=>ce.done?ge(ce.value):Promise.resolve(ce.value).then(Me,de);W((U=U.apply(j,_)).next())});const L=({loadComponent:j})=>{const[_,U]=(0,D.useState)(null);return(0,D.useEffect)(()=>{(()=>Y(void 0,null,function*(){try{const G=yield j();U(()=>G.default)}catch(G){ee.log(G)}}))()},[j]),_?D.createElement(_,null):D.createElement(t.LoadingIndicatorPage,null)},K=(j,_,U)=>D.createElement(N.Route,{render:()=>D.createElement(L,{loadComponent:j}),key:_,path:_,exact:U||!1});L.propTypes={loadComponent:x().func.isRequired};const w=K;var A=e(41832),S=e(92891),k=Object.defineProperty,F=Object.defineProperties,$=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,J=(j,_,U)=>_ in j?k(j,_,{enumerable:!0,configurable:!0,writable:!0,value:U}):j[_]=U,fe=(j,_)=>{for(var U in _||(_={}))g.call(_,U)&&J(j,U,_[U]);if(re)for(var U of re(_))te.call(_,U)&&J(j,U,_[U]);return j},Le=(j,_)=>F(j,$(_));const be=j=>{const _=get(j,["options","timestamps"]);let U=Array.isArray(_)?_:[];const G=[...["id","_id"],...U,"publishedAt"],Me=get(j,["attributes"],{});return Object.keys(Me).reduce((de,W)=>(G.includes(W)||de.push(Le(fe({},Me[W]),{attributeName:W})),de),[])},l=null,Ie=j=>j.filter((_,U,ge)=>ge.findIndex(G=>G.key===_.key)===U),le=j=>sortBy(j,_=>_.name),oe=null,ue=j=>Array.from(new Set(Object.entries(j).reduce((_,U)=>{const ge=G=>G.reduce((Me,de)=>{let W=Me;return de.actions&&(W=[...W,...de.actions]),typeof de=="object"&&!de.actions&&(W=[...W,...Object.keys(de)]),W},[]);return[..._,...ge([...Object.values(U[1].attributes||{}),get(U[1],"contentTypeActions",{})])]},[]))),Ze=null,ae=j=>`/admin/${j}`,V=(j,_="")=>[j,_].filter(U=>U).join(" ")},58414:(Q,C,e)=>{"use strict";e.d(C,{p:()=>L});var t=e(32735),c=e(88425),a=e(7602),P=e(49415);const D={data:[],isLoading:!0},x=(K,w)=>(0,P.default)(K,A=>{switch(w.type){case"GET_DATA_SUCCEEDED":{A.data=w.data,A.isLoading=!1;break}case"GET_DATA_ERROR":{A.isLoading=!1;break}default:return A}});var N=e(98399),ee=(K,w,A)=>new Promise((S,k)=>{var F=g=>{try{re(A.next(g))}catch(te){k(te)}},$=g=>{try{re(A.throw(g))}catch(te){k(te)}},re=g=>g.done?S(g.value):Promise.resolve(g.value).then(F,$);re((A=A.apply(K,w)).next())});const L=({ssoEnabled:K})=>{const[w,A]=(0,t.useReducer)(x,D),S=(0,c.useNotification)();(0,t.useEffect)(()=>{k()},[]);const k=()=>ee(void 0,null,function*(){try{if(!K){A({type:"GET_DATA_SUCCEEDED",data:[]});return}const F=(0,a.IF)("providers"),$=yield(0,c.request)(F,{method:"GET"});A({type:"GET_DATA_SUCCEEDED",data:$})}catch(F){N.error(F),A({type:"GET_DATA_ERROR"}),S({type:"warning",message:{id:"notification.error"}})}});return w}},11545:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>P});var t=e(83983);const P=[...strapi.features.isEnabled(strapi.features.SSO)?[{intlLabel:{id:"Settings.sso.title",defaultMessage:"Single Sign-On"},to:"/settings/single-sign-on",id:"sso",isDisplayed:!1,permissions:t.Z.settings.sso.main}]:[]]},68944:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>K});var t=e(32735),c=e(5141),a=e(5636),P=e(49189),D=e.n(P),M=e(88425),x=e(7602),N=(w,A,S)=>new Promise((k,F)=>{var $=te=>{try{g(S.next(te))}catch(J){F(J)}},re=te=>{try{g(S.throw(te))}catch(J){F(J)}},g=te=>te.done?k(te.value):Promise.resolve(te.value).then($,re);g((S=S.apply(w,A)).next())});const Y=()=>{const{params:{authResponse:w}}=(0,c.useRouteMatch)("/auth/login/:authResponse"),{formatMessage:A}=(0,a.useIntl)(),{push:S}=(0,c.useHistory)(),k=(0,t.useRef)(A);let F=(0,t.useCallback)(()=>{S(`/auth/oops?info=${encodeURIComponent(k.current({id:"Auth.form.button.login.providers.error",defaultMessage:"We cannot connect you through the selected provider."}))}`)},[S]);const $=(0,t.useCallback)(()=>N(void 0,null,function*(){try{const re=D().get("jwtToken");if(M.auth.clearAppStorage(),re){M.auth.setToken(re,!0);const g=(0,x.IF)("users/me"),{data:te}=yield(0,M.request)(g,{method:"GET"});M.auth.setUserInfo(te,!0),D().remove("jwtToken"),S("/auth/login")}}catch(re){F()}}),[S,F]);return(0,t.useEffect)(()=>{w==="error"&&F(),w==="success"&&$()},[w,$,F]),t.createElement(M.LoadingIndicatorPage,null)},K=[{Component:()=>({default:Y}),to:"/auth/login/:authResponse",exact:!0}]},98768:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>Ie});var t=e(32735),c=e(60216),a=e.n(c),P=e(19615),D=e(9808),M=e.n(D),x=e(19192),N=e.n(x),ee=e(27635),Y=e.n(ee),L=e(90662),K=e.n(L),w=e(95602),A=e.n(w),S=e(5636),k=e(1115),F=e(58414),$=e(954),re=e(33205),g=Object.defineProperty,te=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Le=(le,oe,ue)=>oe in le?g(le,oe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):le[oe]=ue,be=(le,oe)=>{for(var ue in oe||(oe={}))J.call(oe,ue)&&Le(le,ue,oe[ue]);if(te)for(var ue of te(oe))fe.call(oe,ue)&&Le(le,ue,oe[ue]);return le};const l=(0,P.default)(ee.Divider)`
  flex: 1;
`,Ye=le=>{const oe=strapi.features.isEnabled(strapi.features.SSO),{isLoading:ue,data:Ze}=(0,F.p)({ssoEnabled:oe}),{formatMessage:q}=(0,S.useIntl)();return!oe||!ue&&Ze.length===0?t.createElement($.ZP,null,t.createElement(k.Z,be({},le))):t.createElement($.ZP,null,t.createElement(k.Z,be({},le),t.createElement(D.Box,{paddingTop:7},t.createElement(L.Stack,{spacing:7},t.createElement(x.Flex,null,t.createElement(l,null),t.createElement(D.Box,{paddingLeft:3,paddingRight:3},t.createElement(w.Typography,{variant:"sigma",textColor:"neutral600"},q({id:"Auth.login.sso.divider"}))),t.createElement(l,null)),t.createElement(re.Z,{providers:Ze,displayAllProviders:!1})))))};Ye.defaultProps={onSubmit:le=>le.preventDefault(),requestError:null},Ye.propTypes={formErrors:a().object.isRequired,modifiedData:a().object.isRequired,onChange:a().func.isRequired,onSubmit:a().func,requestError:a().object};const Ie=Ye},33205:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>re});var t=e(32735),c=e(60216),a=e.n(c),P=e(78330),D=e.n(P),M=e(19192),x=e.n(M),N=e(95602),ee=e.n(N),Y=e(44826),L=e.n(Y),K=e(19615),w=e(5636),A=e(5141);const S=K.default.a`
  width: ${136/16}rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: ${48/16}rem;
  border: 1px solid ${({theme:g})=>g.colors.neutral150};
  border-radius: ${({theme:g})=>g.borderRadius};
  text-decoration: inherit;
  &:link {
    text-decoration: none;
  }
  color: ${({theme:g})=>g.colors.neutral600};
`,k=(0,K.default)(M.Flex)`
  & a:not(:first-child):not(:last-child) {
    margin: 0 ${({theme:g})=>g.spaces[2]};
  }
  & a:first-child {
    margin-right: ${({theme:g})=>g.spaces[2]};
  }
  & a:last-child {
    margin-left: ${({theme:g})=>g.spaces[2]};
  }
`,F=({provider:g})=>t.createElement(Y.Tooltip,{label:g.displayName},t.createElement(S,{href:`${strapi.backendURL}/admin/connect/${g.uid}`},g.icon?t.createElement("img",{src:g.icon,"aria-hidden":!0,alt:"",height:"32px"}):t.createElement(N.Typography,null,g.displayName)));F.propTypes={provider:a().shape({icon:a().string,displayName:a().string.isRequired,uid:a().string.isRequired}).isRequired};const $=({providers:g,displayAllProviders:te})=>{const{formatMessage:J}=(0,w.useIntl)();return te?t.createElement(P.Grid,{gap:4},g.map(fe=>t.createElement(P.GridItem,{key:fe.uid,col:4},t.createElement(F,{provider:fe})))):g.length>2&&!te?t.createElement(P.Grid,{gap:4},g.slice(0,2).map(fe=>t.createElement(P.GridItem,{key:fe.uid,col:4},t.createElement(F,{provider:fe}))),t.createElement(P.GridItem,{col:4},t.createElement(Y.Tooltip,{label:J({id:"global.see-more"})},t.createElement(S,{as:A.Link,to:"/auth/providers"},t.createElement("span",{"aria-hidden":!0},"\u2022\u2022\u2022"))))):t.createElement(k,{justifyContent:"center"},g.map(fe=>t.createElement(F,{key:fe.uid,provider:fe})))};$.defaultProps={displayAllProviders:!0},$.propTypes={providers:a().arrayOf(a().object).isRequired,displayAllProviders:a().bool};const re=$},7277:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>Ze});var t=e(32735),c=e(5141),a=e(19615),P=e(88425),D=e(27635),M=e(90662),x=e(19192),N=e(9808),ee=e(44526),Y=e(82910),L=e(95602),K=e(16540),w=e(5636),A=e(58414),S=e(954),k=e(33205),F=e(10190);const $=(0,a.default)(D.Divider)`
  flex: 1;
`,g=()=>{const q=strapi.features.isEnabled(strapi.features.SSO),{push:ae}=(0,c.useHistory)(),{formatMessage:V}=(0,w.useIntl)(),{isLoading:j,data:_}=(0,A.p)({ssoEnabled:q}),U=()=>{ae("/auth/login")};return!q||!j&&_.length===0?t.createElement(c.Redirect,{to:"/auth/login"}):t.createElement(S.ZP,null,t.createElement(K.Main,null,t.createElement(S.bU,null,t.createElement(S.sg,null,t.createElement(F.Z,null),t.createElement(N.Box,{paddingTop:6,paddingBottom:1},t.createElement(L.Typography,{as:"h1",variant:"alpha"},V({id:"Auth.form.welcome.title"}))),t.createElement(N.Box,{paddingBottom:7},t.createElement(L.Typography,{variant:"epsilon",textColor:"neutral600"},V({id:"Auth.login.sso.subtitle"})))),t.createElement(M.Stack,{spacing:7},j?t.createElement(x.Flex,{justifyContent:"center"},t.createElement(Y.Loader,null,V({id:"Auth.login.sso.loading"}))):t.createElement(k.Z,{providers:_}),t.createElement(x.Flex,null,t.createElement($,null),t.createElement(N.Box,{paddingLeft:3,paddingRight:3},t.createElement(L.Typography,{variant:"sigma",textColor:"neutral600"},V({id:"or"}))),t.createElement($,null)),t.createElement(ee.Button,{fullWidth:!0,size:"L",onClick:U},V({id:"Auth.form.button.login.strapi"})))),t.createElement(x.Flex,{justifyContent:"center"},t.createElement(N.Box,{paddingTop:4},t.createElement(P.Link,{to:"/auth/forgot-password"},t.createElement(L.Typography,{variant:"pi"},V({id:"Auth.link.forgot-password"})))))))};var te=e(78834),J=Object.defineProperty,fe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ie=(q,ae,V)=>ae in q?J(q,ae,{enumerable:!0,configurable:!0,writable:!0,value:V}):q[ae]=V,le=(q,ae)=>{for(var V in ae||(ae={}))l.call(ae,V)&&Ie(q,V,ae[V]);if(be)for(var V of be(ae))Ye.call(ae,V)&&Ie(q,V,ae[V]);return q},oe=(q,ae)=>fe(q,Le(ae));const Ze=oe(le({},te.Z),{providers:{Component:g,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""}})},99568:(Q,C,e)=>{"use strict";e.d(C,{Z:()=>c});const c={settings:{sso:{main:[{action:"admin::provider-login.read",subject:null}],read:[{action:"admin::provider-login.read",subject:null}],update:[{action:"admin::provider-login.update",subject:null}]}}}},48224:(Q,C,e)=>{var t={"./ar.json":[38677,7958],"./ca.json":[90169,3516],"./cs.json":[43186,7519],"./de.json":[8343,6901],"./dk.json":[65668,7898],"./en.json":[10329,320],"./es.json":[45445,8367],"./fr.json":[8399,8006],"./gu.json":[10182,2248],"./he.json":[21757,830],"./hi.json":[43206,6332],"./hu.json":[72320,5894],"./id.json":[74221,8897],"./it.json":[90685,6817],"./ja.json":[21727,1312],"./ko.json":[30986,1377],"./ml.json":[11309,9903],"./ms.json":[75973,3025],"./nl.json":[80381,2671],"./no.json":[82446,562],"./pl.json":[84008,7846],"./pt-BR.json":[91417,9647],"./pt.json":[41830,3340],"./ru.json":[57098,123],"./sa.json":[92900,9726],"./sk.json":[52204,606],"./sv.json":[43211,9303],"./th.json":[49582,749],"./tr.json":[99154,395],"./uk.json":[2987,7403],"./vi.json":[50576,3278],"./zh-Hans.json":[35964,2553],"./zh.json":[91999,1011]};function c(a){if(!e.o(t,a))return Promise.resolve().then(()=>{var M=new Error("Cannot find module '"+a+"'");throw M.code="MODULE_NOT_FOUND",M});var P=t[a],D=P[0];return e.e(P[1]).then(()=>e.t(D,19))}c.keys=()=>Object.keys(t),c.id=48224,Q.exports=c},68507:(Q,C,e)=>{"use strict";Q.exports=e.p+"b10a3bda3d2f18d804ad.png"}}]);
