(self.webpackChunk_digicommerce_cms_admin=self.webpackChunk_digicommerce_cms_admin||[]).push([[5538],{78834:(q,M,e)=>{"use strict";e.d(M,{Z:()=>xe});var t=e(5173),c=e(88425),a=e(32735),P=e(5636),A=e(60216),C=e.n(A),x=e(9808),N=e(90662),ee=e(16540),Q=e(19192),L=e(44526),K=e(37178),w=e(95602),D=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(D.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(Q.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:C().func,schema:C().shape({type:C().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(Q.Flex,{justifyContent:"center"},a.createElement(x.Box,{paddingTop:4},a.createElement(c.Link,{to:"/auth/login"},ne({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))},Y=()=>{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(Q.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),J=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 B=(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,xt]=(0,a.useState)(0),[at,Rt]=(0,a.useState)({}),{trackUsage:St}=(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&&Rt(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(D.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"&&St("didSubmitWithErrorsFirstAdmin",{count:et.toString()}),ke(it?{userInfo:Ye()(Ue,["registrationToken"]),registrationToken:it}:Ue,Pe)}catch(Fe){const tt=(0,c.getYupInnerErrors)(Fe);xt(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(B,{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(gt=>!gt)},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(J(),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(gt=>!gt)},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(J(),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(Q.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:C().string.isRequired,fieldsToDisable:C().array,noSignin:C().bool,onSubmit:C().func,schema:C().shape({validate:C().func.isRequired,type:C().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(D.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(J(),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(J(),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(Q.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:C().func,schema:C().shape({type:C().string.isRequired}).isRequired};const ce=W;var Ge=function(){return window&&window.strapi&&window.strapi.isEE?e(98768).Z:e(5365).Z}(),Ot={"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:Y,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=Ot},83983:(q,M,e)=>{"use strict";e.d(M,{Z:()=>C});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}(),A=(0,t.merge)(a,P);const C=A},63527:(q,M,e)=>{"use strict";e.r(M),e.d(M,{default:()=>sr});var t=e(32735),c=e(5141),a=e(10345),P=e(86349),A=e.n(P),C=e(88423),x=e.n(C),N=e(93839),ee=e.n(N),Q=e(56784),L=e.n(Q),K=e(99357),w=e(17247),D=e(13055);const k=i=>(0,D.combineReducers)(i),$=(i,n)=>{const r=[];return i.forEach(f=>{r.push(f())}),(0,D.createStore)(k(n),{},(0,D.applyMiddleware)(...r))};var re=e(20284),g=e(88425),te=e(43653),Y=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},J=(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=J(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),B=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),Ot=e(33795),xe=e.n(Ot),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 xt=i=>i;var at=e(49415),Rt=e(92891);const St={formErrors:{},modifiedData:{},requestError:null},Se=(i,n)=>(0,at.default)(i,r=>{switch(n.type){case"ON_CHANGE":{(0,Rt.set)(r.modifiedData,n.keys.split("."),n.value);break}case"RESET_PROPS":return St;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 kt=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,B.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,Ut=Ee.endPoint,$s=Ee.fieldsToDisable,Hs=Ee.fieldsToOmit,nr=Ee.inputsPrefix,rr=Ee.schema,or=(0,Me.Z)(Ee,it),ar=(0,t.useReducer)(Se,St,xt),Rn=(0,G.Z)(ar,2),zs=Rn[0],ir=zs.formErrors,lr=zs.modifiedData,ur=zs.requestError,ms=Rn[1],dr=Y().CancelToken,wt=dr.source();(0,t.useEffect)(function(){return function(){wt.cancel("Component unmounted")}},[]),(0,t.useEffect)(function(){ms({type:"RESET_PROPS"})},[Z]);var cr=function(De){var me=De.target,_e=me.name,ve=me.value;ms({type:"ON_CHANGE",keys:_e,value:ve})},mr=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,Hs),Ne="/admin/".concat(Ut),Z!=="login"){Ce.next=7;break}return Ce.next=7,fr(me,Ne,{setSubmitting:ve,setErrors:Be});case 7:if(!(Z==="register"||Z==="register-admin")){Ce.next=10;break}return Ce.next=10,gr(me,Ne,{setSubmitting:ve,setErrors:Be});case 10:if(Z!=="forgot-password"){Ce.next=13;break}return Ce.next=13,pr(Ke,Ne,{setSubmitting:ve,setErrors:Be});case 13:if(Z!=="reset-password"){Ce.next=16;break}return Ce.next=16,hr(Ke,Ne,{setSubmitting:ve,setErrors:Be});case 16:case"end":return Ce.stop()}},De)}));return function(me,_e){return nt.apply(this,arguments)}}(),pr=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,Y()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:me,cancelToken:wt.token});case 4:v("/auth/forgot-password-success"),pe.next=11;break;case 7:pe.prev=7,pe.t0=pe.catch(1),kt.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)}}(),fr=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,Y()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:$e()(me,Hs),cancelToken:wt.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),Sn(),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"),ms({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)}}(),gr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e,ve){var Be,Ke,Ne,pe,Ce,rt,ot,Tt,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,Y()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:$e()(me,Hs),cancelToken:wt.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&&(Tt=ot.find(function(Er){var vr=Er.code;return vr==="strapi-super-admin"}),Tt&&(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:Sn(),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)}}(),hr=function(){var nt=(0,ge.Z)(W().mark(function De(me,_e,ve){var Be,Ke,Ne,pe,Ce,rt,ot,Tt;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,Y()({method:"POST",url:"".concat(strapi.backendURL).concat(_e),data:Pe(Pe({},me),{},{resetPasswordToken:ye.get("code")}),cancelToken:wt.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"),Tt=xe()(Ae.t0,["response","data","statusCode"],400),ms({type:"SET_REQUEST_ERROR",errorMessage:ot,errorStatus:Tt}),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)}}(),Sn=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)({},or,{authType:Z,fieldsToDisable:$s,formErrors:ir,inputsPrefix:nr,modifiedData:lr,onChange:cr,onSubmit:mr,requestError:ur,schema:rr}))};tt.defaultProps={hasAdmin:!1},tt.propTypes={hasAdmin:l().bool,setHasAdmin:l().func.isRequired};const gt=tt;var ps=e(53951),lt=e(19615),ct=e(19192),Et=e(9808),vt=e(90662),Ft=e(95602),Wt=e(25716),Kt=e(37178),Vs=e(74201),fs=e(44526),gs=e(10190),hs=e(954);const Es=[{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)(Ft.Typography)`
  text-align: center;
`,Xs=()=>{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(hs.ZP,null,t.createElement(fe.Main,{labelledBy:"usecase-title"},t.createElement(hs.bU,null,t.createElement("form",{onSubmit:()=>E(!1)},t.createElement(ct.Flex,{direction:"column",paddingBottom:7},t.createElement(gs.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(vt.Stack,{spacing:6},t.createElement(Wt.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},Es.map(({intlLabel:y,value:X})=>t.createElement(Wt.Option,{key:X,value:X},r(y)))),m&&t.createElement(Kt.TextInput,{name:"other",label:r({id:"Usecase.other",defaultMessage:"Other"}),value:v,onChange:y=>d(y.target.value),"data-testid":"other"}),t.createElement(fs.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(Vs.TextButton,{onClick:()=>E(!0)},r({id:"Usecase.button.skip",defaultMessage:"Skip this question"}))))))};var Nt=e(21930);const ys=[];var Ps=function(){return window&&window.strapi&&window.strapi.isEE?e(68944).Z:e(56761).Z}();const Ts=[].concat((0,Nt.Z)(Ps),(0,Nt.Z)(ys));var Os=e(85539),Rs=Object.defineProperty,Ss=Object.defineProperties,Cs=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,$t=(i,n,r)=>n in i?Rs(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,Ct=(i,n)=>{for(var r in n||(n={}))Gt.call(n,r)&&$t(i,r,n[r]);if(Zt)for(var r of Zt(n))Ms.call(n,r)&&$t(i,r,n[r]);return i},Mt=(i,n)=>Ss(i,Cs(n)),Dt=(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 Ys=(0,t.lazy)(()=>Promise.all([e.e(3050),e.e(801)]).then(e.bind(e,66244)));function Ds(){const i=(0,g.useNotification)(),{updateProjectSettings:n}=(0,Os.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)(Ts.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&&(()=>Dt(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)(()=>{(()=>Dt(this,null,function*(){try{const{data:{data:{uuid:he,hasAdmin:Z,menuLogo:ye}}}=yield Y().get(`${strapi.backendURL}/admin/init`);if(n({menuLogo:(0,g.prefixFileUrlWithBackendUrl)(ye)}),he){const{data:{data:Ee}}=yield Y().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=>Mt(Ct({},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(gt,Mt(Ct({},z),{setHasAdmin:X,hasAdmin:h})),exact:!0}),t.createElement(V,{path:"/usecase",component:Xs}),t.createElement(V,{path:"/",component:Ys}),t.createElement(c.Route,{path:"",component:ps.default}))))}const Ht=Ds,Js=e.p+"b10a3bda3d2f18d804ad.png",As=e.p+"b10a3bda3d2f18d804ad.png";var zt=e(84968),Ls=e(4409),At=e(66694);const Vt={menuLogo:null},Xt=(i=Vt,n)=>(0,at.default)(i,r=>{switch(n.type){case"UPDATE_PROJECT_SETTINGS":{Object.assign(r,n.values);break}default:return r}}),Qt=({children:i,authLogo:n,menuLogo:r,showReleaseNotification:f,showTutorials:h})=>{const[{menuLogo:v},d]=(0,t.useReducer)(Xt,Vt),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(At._5.Provider,{value:y},i)};Qt.propTypes={authLogo:l().string.isRequired,children:l().element.isRequired,menuLogo:l().string.isRequired,showReleaseNotification:l().bool.isRequired,showTutorials:l().bool.isRequired};const bs=Qt;var Yt=e(58732),Lt=e.n(Yt),bt=e(5985);const Is=({changeLocale:i,children:n,localeNames:r,messages:f})=>t.createElement(bt.Z.Provider,{value:{changeLocale:i,localeNames:r,messages:f}},n);Is.propTypes={changeLocale:l().func.isRequired,children:l().element.isRequired,localeNames:l().object.isRequired,messages:l().object.isRequired};const js=Is,Jt="strapi-admin-language",qt=i=>{const n=window.localStorage.getItem(Jt);return{locale:i[n]?n:"en",localeNames:i}};var es=Object.defineProperty,Bs=Object.defineProperties,Us=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,ns=(i,n,r)=>n in i?es(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,xs=(i,n)=>{for(var r in n||(n={}))ws.call(n,r)&&ns(i,r,n[r]);if(ts)for(var r of ts(n))ss.call(n,r)&&ns(i,r,n[r]);return i},rs=(i,n)=>Bs(i,Us(n));const os={localeNames:{en:"English"},locale:"en"},sn=(i=os,n)=>{switch(n.type){case"CHANGE_LOCALE":{const{locale:r}=n;return i.localeNames[r]?rs(xs({},i),{locale:r}):i}default:return i}},as=({children:i,localeNames:n,messages:r})=>{const[{locale:f},h]=(0,t.useReducer)(sn,os,()=>qt(n));(0,t.useEffect)(()=>{window.localStorage.setItem(Jt,f),document.documentElement.setAttribute("lang",f)},[f]);const v=m=>{h({type:"CHANGE_LOCALE",locale:m})},d=Lt()(r[f],r.en);return t.createElement(Le.IntlProvider,{locale:f,defaultLocale:"en",messages:d,textComponent:"span"},t.createElement(js,{changeLocale:v,localeNames:n,messages:d},i))};as.propTypes={children:l().element.isRequired,localeNames:l().objectOf(l().string).isRequired,messages:l().object.isRequired};const ks=as,nn=(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))},is=(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)},Ws={currentStep:null,guidedTourState:{contentTypeBuilder:{create:!1,success:!1},contentManager:{create:!1,success:!1},apiTokens:{create:!1,success:!1}},isGuidedTourVisible:!1,isSkipped:!0},an=(i=Ws,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 Ks=e(3040),It=e.n(Ks),ln=Object.defineProperty,ls=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(i,n,r)=>n in i?ln(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,T=(i,n)=>{for(var r in n||(n={}))u.call(n,r)&&s(i,r,n[r]);if(ls)for(var r of ls(n))o.call(n,r)&&s(i,r,n[r]);return i};const U=i=>{const n=T({},i),r=se.get(ke),f=se.get(ie),h=se.get(je);if(r&&r.forEach(v=>{const[d,m]=v.split(".");It()(n,["guidedTourState",d,m],!0)}),f){const[v,d]=f.split(".");It()(n,["guidedTourState",v,d],!0),se.addCompletedStep(f),se.addCurrentStep(null)}return h!==null&&It()(n,"isSkipped",h),n},b=({children:i})=>{const[{currentStep:n,guidedTourState:r,isGuidedTourVisible:f,isSkipped:h},v]=(0,t.useReducer)(an,Ws,U),d=H=>{if(H!==null){const z=xe()(r,H),he=is(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=nn(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 R=b;var p=e(12788),I=e(70324),we=e.n(I),mt=e(23101),pt=e.n(mt),ut=e(14983);const jt=(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;
  }
`,us=(0,lt.default)(vt.Stack)`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: ${(0,g.pxToRem)(160)};
`,_t=(0,lt.default)(Et.Box)`
  border-radius: 50%;
  svg {
    > path {
      fill: ${({theme:i})=>i.colors.primary600} !important;
    }
  }
`,ht=document.createElement("div"),ft="autoReloadOverlayBlocker";ht.setAttribute("id",ft);const We=lt.keyframes`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`,dt=(0,lt.default)(pt())`
  animation: ${We} 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(ht),()=>{document.body.removeChild(ht)}),[]),f?p.createPortal(t.createElement(jt,null,t.createElement(us,{spacing:6},t.createElement(vt.Stack,{spacing:2},t.createElement(ct.Flex,{justifyContent:"center"},t.createElement(Ft.Typography,{as:"h1",variant:"alpha"},h(r))),t.createElement(ct.Flex,{justifyContent:"center"},t.createElement(Ft.Typography,{as:"h2",textColor:"neutral600",fontSize:4,fontWeight:"regular"},h(n)))),t.createElement(ct.Flex,{justifyContent:"center"},i==="reload"&&t.createElement(_t,{padding:6,background:"primary100",borderColor:"primary200"},t.createElement(dt,{width:(0,g.pxToRem)(36),height:(0,g.pxToRem)(36)})),i==="time"&&t.createElement(_t,{padding:6,background:"primary100",borderColor:"primary200"},t.createElement(we(),{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"})))))),ht):null};st.propTypes={displayedIcon:l().oneOfType([l().string,l().array]).isRequired,description:l().object.isRequired,isOpen:l().bool.isRequired,title:l().object.isRequired};const Bt=st;var Cn=Object.defineProperty,Mn=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,dn=(i,n,r)=>n in i?Cn(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,cn=(i,n)=>{for(var r in n||(n={}))An.call(n,r)&&dn(i,r,n[r]);if(un)for(var r of un(n))Ln.call(n,r)&&dn(i,r,n[r]);return i},mn=(i,n)=>Mn(i,Dn(n));const pn=30,fn=({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=>mn(cn({},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>pn?(clearInterval(ye),null):(h(Ee=>mn(cn({},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>pn&&(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(Bt,{displayedIcon:H,isOpen:n,description:z,title:he}),i)};fn.propTypes={children:l().element.isRequired};const bn=fn;var In=e(63568);const Ns=({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}))};Ns.defaultProps={notification:{id:1,type:"success",message:{id:"notification.success.saved",defaultMessage:"Saved"},onClose:()=>null,timeout:2500,blockTransition:!1}},Ns.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=Ns,gn={notifId:0,notifications:[]},_n=(i=gn,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}}),hn=({children:i})=>{const[{notifications:n},r]=(0,t.useReducer)(_n,gn),f=h=>{r({type:"SHOW_NOTIFICATION",config:h})};return t.createElement(g.NotificationsProvider,{toggleNotification:f},t.createElement(vt.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)};hn.propTypes={children:l().element.isRequired};const Bn=hn,ds=document.createElement("div");ds.setAttribute("id","overlayBlocker");const Un=lt.default.div`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1140;
`,En=({isOpen:i})=>((0,t.useEffect)(()=>(document.body.appendChild(ds),()=>{document.body.removeChild(ds)}),[]),i?p.createPortal(t.createElement(Un,null),ds):null);En.propTypes={isOpen:l().bool.isRequired};const vn=({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(En,{isOpen:n}))};vn.propTypes={children:l().node.isRequired};const wn=vn,Zs="STRAPI_THEME",xn=()=>{const i=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",n=localStorage.getItem(Zs);return n||localStorage.setItem(Zs,i),n||i},yn=({children:i,themes:n})=>{const[r,f]=(0,t.useState)(xn()),h=(0,t.useCallback)(d=>{f(d),localStorage.setItem(Zs,d)},[f]),v=(0,t.useMemo)(()=>({currentTheme:r,onChangeTheme:h,themes:n}),[r,h,n]);return t.createElement(At.Rj.Provider,{value:v},i)};yn.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=yn;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};
  }
`,Pn=({children:i})=>{const{currentTheme:n,themes:r}=(0,Os.M1)();return t.createElement(Fn.ThemeProvider,{theme:r[n]||r.light},i,t.createElement(Kn,null))};Pn.propTypes={children:l().element.isRequired};const Nn=Pn,Zn=new zt.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Tn=({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:Ut,themes:$s})=>t.createElement(kn,{themes:$s},t.createElement(Nn,null,t.createElement(zt.QueryClientProvider,{client:Zn},t.createElement(Ls.Provider,{store:Ut},t.createElement(At.ux.Provider,{value:{getAdminInjectedComponents:v}},t.createElement(bs,{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(R,null,t.createElement(Bn,null,n))))))))))))));Tn.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=Tn,$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 cs=e(70836);const Hn={admin:{tutorials:{links:[]}},contentManager:{editView:{informations:[],"right-links":[]},listView:{actions:[],deleteModalAdditionalInfos:[]}}},zn=e.p+"393580d02eca7cceaef0.ico";var Vn=e(98399),Xn=Object.defineProperty,Qn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Gs=(i,n,r)=>n in i?Xn(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,yt=(i,n)=>{for(var r in n||(n={}))Jn.call(n,r)&&Gs(i,r,n[r]);if(On)for(var r of On(n))qn.call(n,r)&&Gs(i,r,n[r]);return i},er=(i,n)=>Qn(i,Yn(n)),Te=(i,n,r)=>(Gs(i,typeof n!="symbol"?n+"":n,r),r),Pt=(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 tr{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",()=>Pt(this,null,function*(){return yield this.createCustomConfigurations(),this.createHook(cs.No),this.createHook(cs.LK),this.createHook(cs.dV),this.createHook(cs.Eo),Promise.resolve()})),Te(this,"createCustomConfigurations",()=>Pt(this,null,function*(){var d,m,E,y,X,H,z,he,Z,ye,Ee,Xe;(d=this.customConfigurations)!=null&&d.locales&&(this.configurations.locales=["en",...((m=this.customConfigurations.locales)==null?void 0:m.filter(Ut=>Ut!=="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&&A()(this.configurations.themes.light,this.customConfigurations.theme),((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]=er(yt({},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 Vn.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:Js,head:{favicon:zn},locales:["en"],menuLogo:As,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 Pt(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 Pt(this,null,function*(){Object.keys(this.appPlugins).forEach(n=>{this.appPlugins[n].register(this)})})}loadAdminTrads(){return Pt(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 Pt(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]=yt(yt({},d[y]),E[y])}),d},{}),v=this.configurations.locales.reduce((d,m)=>{var E,y;return d[m]=yt(yt(yt({},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(Jt)||"en"}}),t.createElement(c.BrowserRouter,{basename:w.EZ},t.createElement(Ht,{store:n}))))}}const sr=({adminConfig:i={},appPlugins:n,library:r,middlewares:f,reducers:h})=>new tr({adminConfig:i,appPlugins:n,library:r,middlewares:f,reducers:h})},5985:(q,M,e)=>{"use strict";e.d(M,{Z:()=>a});var t=e(32735);const a=(0,t.createContext)()},20139:(q,M,e)=>{"use strict";e.d(M,{Z:()=>P});var t=e(32735),c=e(5985);const P=()=>{const{changeLocale:A,localeNames:C,messages:x}=(0,t.useContext)(c.Z);return{changeLocale:A,localeNames:C,messages:x}}},10190:(q,M,e)=>{"use strict";e.d(M,{Z:()=>C});var t=e(32735),c=e(19615),a=e(85539);const P=c.default.img`
  height: ${72/16}rem;
`,C=()=>{const{logos:{auth:x}}=(0,a.um)();return t.createElement(P,{src:x.default,"aria-hidden":!0,alt:""})}},66694:(q,M,e)=>{"use strict";e.d(M,{ux:()=>a,_5:()=>A,$l:()=>x,Rj:()=>ee});var t=e(32735);const a=(0,t.createContext)({}),A=(0,t.createContext)({}),x=(0,t.createContext)({}),ee=(0,t.createContext)({})},70836:(q,M,e)=>{"use strict";e.d(M,{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,M,e)=>{"use strict";e.d(M,{um:()=>t.Z,U_:()=>be,Dq:()=>Me,H9:()=>Se,bP:()=>re,$_:()=>on,rW:()=>ls,bF:()=>Es,G4:()=>rn,Te:()=>en,M1:()=>Ks});var t=e(19799),c=e(32735),a=e(88425),P=e(49415);const A={collectionTypes:[],components:[],isLoading:!0,singleTypes:[]},x=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"GET_MODELS":{s.collectionTypes=A.collectionTypes,s.singleTypes=A.singleTypes,s.components=A.components,s.isLoading=!0;break}case"GET_MODELS_ERROR":{s.collectionTypes=A.collectionTypes,s.singleTypes=A.singleTypes,s.components=A.components,s.isLoading=!1;break}case"GET_MODELS_SUCCEDED":{const T=O=>o.contentTypes.filter(U=>U.isDisplayed&&U.kind===O);s.isLoading=!1,s.collectionTypes=T("collectionType"),s.singleTypes=T("singleType"),s.components=o.components;break}default:return s}});var N=Object.defineProperty,ee=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,L=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,D=(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)&&D(u,s,o[s]);if(L)for(var s of L(o))w.call(o,s)&&D(u,s,o[s]);return u},k=(u,o)=>ee(u,Q(o)),F=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const re=()=>{const u=(0,a.useNotification)(),[o,s]=(0,c.useReducer)(x,A);(0,c.useEffect)(()=>{T()},[]);const T=()=>F(void 0,null,function*(){s({type:"GET_MODELS"});try{const[{data:O},{data:U}]=yield Promise.all(["components","content-types"].map(b=>(0,a.request)(`/content-manager/${b}`,{method:"GET"})));s({type:"GET_MODELS_SUCCEDED",contentTypes:U,components:O})}catch(O){s({type:"GET_MODELS_ERROR"}),u({type:"warning",message:{id:"notification.error"}})}});return k(S({},o),{getData:T})},g={data:{},error:null,isLoading:!0},Y=(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((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const be=u=>{const[{data:o,error:s,isLoading:T},O]=(0,c.useReducer)(Y,g);return(0,c.useEffect)(()=>{(()=>fe(void 0,null,function*(){O({type:"GET_DATA"});const{data:b}=yield(0,a.request)("/admin/permissions",{method:"GET",params:{role:u}});O({type:"GET_DATA_SUCCEEDED",data:b})}))()},[u]),{data:o,error:s,isLoading:T}},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,J=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(J)for(var s of J(o))V.call(o,s)&&j(u,s,o[s]);return u},B=(u,o)=>ue(u,Ze(o)),ge=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const Me=u=>{const o=(0,a.useNotification)(),[s,T]=(0,c.useReducer)(Ie,l);(0,c.useEffect)(()=>{u?O(u):T({type:"GET_DATA_SUCCEEDED",role:{},permissions:[]})},[u]);const O=b=>ge(void 0,null,function*(){try{const[{data:R},{data:p}]=yield Promise.all([`roles/${b}`,`roles/${b}/permissions`].map(I=>(0,a.request)(`/admin/${I}`,{method:"GET"})));T({type:"GET_DATA_SUCCEEDED",role:R,permissions:p})}catch(R){le.error(R),T({type:"GET_DATA_ERROR"}),o({type:"warning",message:{id:"notification.error"}})}}),U=(0,c.useCallback)(b=>{T(_({type:"ON_SUBMIT_SUCCEEDED"},b))},[]);return B(_({},s),{onSubmitSucceeded:U})},W=(u,o)=>o.map(({permissions:s})=>(0,a.hasPermissions)(u,s));var ce=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const Ot=(u,o)=>ce(void 0,null,function*(){const s=W(u,o),T=yield Promise.all(s);return o.filter((U,b)=>T[b])});var xe=e(99381),ne=e.n(xe),$e=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const ke=(u,o,s)=>$e(void 0,null,function*(){const T=W(u,o),O=yield Promise.all(T),U=o.filter((p,I)=>O[I]),b=U.findIndex(p=>p.to==="/settings");if(b===-1)return[];const R=ne()(U);return R[b].notificationsCount=s?1:0,R});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:T,authorizedPluginSectionLinks:O}=o.data;s.generalSectionLinks=T,s.pluginsSectionLinks=O;break}case"UNSET_IS_LOADING":{s.isLoading=!1;break}default:return s}});var Rt=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const Se=()=>{const[u,o]=(0,c.useReducer)(at,et),{allPermissions:s}=(0,a.useRBACProvider)(),{shouldUpdateStrapi:T}=(0,a.useAppInfos)(),{menu:O}=(0,a.useStrapiApp)(),U=(0,c.useRef)(u.generalSectionLinks),b=(0,c.useRef)(T),R=(...I)=>Rt(void 0,[...I],function*(we=s){const pt=yield Ot(we,O),ut=yield ke(we,U.current,b.current);o({type:"SET_SECTION_LINKS",data:{authorizedGeneralSectionLinks:ut,authorizedPluginSectionLinks:pt}}),o({type:"UNSET_IS_LOADING"})}),p=(0,c.useRef)(R);return(0,c.useEffect)(()=>{p.current(s)},[s,o]),u};var kt=e(33795),it=e.n(kt),Ue=e(17247),Pe=Object.defineProperty,Fe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,ps=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={}))ps.call(o,s)&&ct(u,s,o[s]);if(gt)for(var s of gt(o))lt.call(o,s)&&ct(u,s,o[s]);return u},vt=(u,o)=>Fe(u,tt(o));const Wt=(u,o)=>vt(Et({},u),{isLoading:o}),Kt={roles:[],isLoading:!0},fs=(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 gs=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const Es=(u=!0)=>{const o=(0,a.useNotification)(),[{roles:s,isLoading:T},O]=(0,c.useReducer)(fs,Kt,()=>Wt(Kt,u));(0,c.useEffect)(()=>{u&&U()},[u]);const U=(0,c.useCallback)(()=>gs(void 0,null,function*(){try{O({type:"GET_DATA"});const{data:{data:b}}=yield Ue.be.get("/admin/roles");O({type:"GET_DATA_SUCCEEDED",data:b})}catch(b){const R=it()(b,["response","payload","message"],"An error occured");O({type:"GET_DATA_ERROR"}),R!=="Forbidden"&&o({type:"warning",message:R})}}),[o]);return{roles:s,isLoading:T,getData:U}};var Ve=e(92891);const vs={menu:[],isLoading:!0},Nt=(u,o)=>(0,P.default)(u,s=>{switch(o.type){case"CHECK_PERMISSIONS_SUCCEEDED":{o.data.forEach(T=>{T.hasPermission&&(0,Ve.set)(s,["menu",...T.path.split("."),"isDisplayed"],T.hasPermission)}),s.menu.forEach((T,O)=>{s.menu[O].links=T.links.filter(U=>U.isDisplayed===!0)}),s.isLoading=!1;break}default:return s}});var Qs=e(9086),ys=e.n(Qs),Ps=e(98978),Ts=e.n(Ps);const Rs=u=>Ts()(u,o=>o.id);var Ss=Object.defineProperty,Cs=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Ct=(u,o,s)=>o in u?Ss(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,Mt=(u,o)=>{for(var s in o||(o={}))Ms.call(o,s)&&Ct(u,s,o[s]);if(Gt)for(var s of Gt(o))$t.call(o,s)&&Ct(u,s,o[s]);return u},Dt=(u,o)=>Cs(u,Zt(o));const Ds=u=>u.map(o=>{const s=o.links.map(T=>Dt(Mt({},T),{isDisplayed:!1}));return Dt(Mt({},o),{links:s})});var Ht=e(21930);const As=[{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 zt=function(){return window&&window.strapi&&window.strapi.isEE?e(11545).Z:e(73086).Z}();const Ls=[].concat((0,Ht.Z)(As),(0,Ht.Z)(zt));var At=Object.defineProperty,Vt=Object.defineProperties,qs=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,bs=Object.prototype.propertyIsEnumerable,Yt=(u,o,s)=>o in u?At(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,Lt=(u,o)=>{for(var s in o||(o={}))Qt.call(o,s)&&Yt(u,s,o[s]);if(Xt)for(var s of Xt(o))bs.call(o,s)&&Yt(u,s,o[s]);return u},bt=(u,o)=>Vt(u,qs(o));const js=(u,{settings:o,shouldUpdateStrapi:s})=>{const T=o.global.links,O=Rs([...T,...Ls]).map(R=>bt(Lt({},R),{hasNotification:R.id==="000-application-infos"&&s})),U=Object.values(ys()(o,"global")),b=[bt(Lt({},o.global),{links:O}),{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}]},...U];return bt(Lt({},u),{menu:Ds(b)})};var _s=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const en=(u=!1)=>{const{allPermissions:o}=(0,a.useRBACProvider)(),{shouldUpdateStrapi:s}=(0,a.useAppInfos)(),{settings:T}=(0,a.useStrapiApp)(),[{isLoading:O,menu:U},b]=(0,c.useReducer)(Nt,vs,()=>js(vs,{settings:T,shouldUpdateStrapi:s}));return(0,c.useEffect)(()=>{u||(()=>_s(void 0,null,function*(){const p=(pt,ut)=>_s(void 0,null,function*(){return{hasPermission:yield(0,a.hasPermissions)(o,pt),path:ut}}),we=(pt=>pt.reduce((ut,jt,us)=>{const _t=ht=>ht.map((ft,We)=>p(ht[We].permissions,`${us}.links.${We}`));return[...ut,..._t(jt.links)]},[]))(U),mt=yield Promise.all(we);b({type:"CHECK_PERMISSIONS_SUCCEEDED",data:mt})}))()},[o,u]),{isLoading:O,menu:U}};var qt=e(7602);const es={fieldsToPick:[],formErrors:{},initialData:{},isLoading:!0,modifiedData:{},showHeaderButtonLoader:!1,showHeaderLoader:!0},Bs=(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 Us=Object.defineProperty,ts=Object.defineProperties,ws=Object.getOwnPropertyDescriptors,ss=Object.getOwnPropertySymbols,ns=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable,rs=(u,o,s)=>o in u?Us(u,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[o]=s,os=(u,o)=>{for(var s in o||(o={}))ns.call(o,s)&&rs(u,s,o[s]);if(ss)for(var s of ss(o))xs.call(o,s)&&rs(u,s,o[s]);return u},tn=(u,o)=>ts(u,ws(o));const as=(u,o)=>tn(os({},u),{fieldsToPick:o});var ks=e(98399),Fs=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const rn=(u,o,s,T)=>{const[{formErrors:O,initialData:U,isLoading:b,modifiedData:R,showHeaderButtonLoader:p,showHeaderLoader:I},we]=(0,c.useReducer)(Bs,es,()=>as(es,T)),mt=(0,a.useNotification)(),{lockApp:pt,unlockApp:ut}=(0,a.useOverlayBlocker)();return(0,c.useEffect)(()=>{u&&(()=>Fs(void 0,null,function*(){try{const{data:We}=yield(0,a.request)(u,{method:"GET"});we({type:"GET_DATA_SUCCEEDED",data:We,fieldsToPick:T})}catch(We){ks.error(We.response),mt({type:"warning",message:{id:"notification.error"}})}}))()},[u]),[{formErrors:O,initialData:U,isLoading:b,modifiedData:R,showHeaderButtonLoader:p,showHeaderLoader:I},we,{handleCancel:()=>{we({type:"ON_CANCEL"})},handleChange:({target:{name:ft,value:We,type:dt}})=>{we({type:"ON_CHANGE",inputType:dt,keys:ft,value:We})},handleSubmit:ft=>Fs(void 0,null,function*(){ft.preventDefault();const We=yield(0,qt.R6)(R,o);if(we({type:"SET_ERRORS",errors:We||{}}),!We)try{pt(),we({type:"ON_SUBMIT"});const dt=(0,Ve.omit)(R,["confirmPassword","registrationToken"]);dt.roles&&(dt.roles=dt.roles.map(Bt=>Bt.id));const{data:st}=yield(0,a.request)(u,{method:"PUT",body:dt});s(st),we({type:"ON_SUBMIT_SUCCEEDED",data:st}),mt({type:"success",message:{id:"notification.success.saved"}})}catch(dt){const st=(0,Ve.get)(dt,"response.payload",{data:{}});(0,Ve.has)(st,"data")&&typeof st.data=="string"?mt({type:"warning",message:st.data}):mt({type:"warning",message:st.message});const Bt=(0,qt.Iz)(st);we({type:"SET_ERRORS",errors:Bt})}finally{ut()}}),setField:(ft,We)=>{we({type:"ON_CHANGE",keys:ft,value:We})}}]};var is=e(66694);const on=()=>(0,c.useContext)(is.$l),Ks=()=>(0,c.useContext)(is.Rj);var It=(u,o,s)=>new Promise((T,O)=>{var U=p=>{try{R(s.next(p))}catch(I){O(I)}},b=p=>{try{R(s.throw(p))}catch(I){O(I)}},R=p=>p.done?T(p.value):Promise.resolve(p.value).then(U,b);R((s=s.apply(u,o)).next())});const ls=(u,o)=>{const[s,T]=(0,c.useState)(!1),O=(0,a.useNotification)();return{regenerateData:()=>It(void 0,null,function*(){try{const{data:{data:{accessKey:b}}}=yield Ue.be.post(`/admin/api-tokens/${u}/regenerate`);T(!1),o(b)}catch(b){T(!1),O({type:"warning",message:(0,Ve.get)(b,"response.data.message","notification.error")})}}),isLoadingConfirmation:s}}},19799:(q,M,e)=>{"use strict";e.d(M,{Z:()=>P});var t=e(32735),c=e(66694);const P=()=>(0,t.useContext)(c._5)},73086:(q,M,e)=>{"use strict";e.d(M,{Z:()=>t});const t=[]},954:(q,M,e)=>{"use strict";e.d(M,{sg:()=>w,bU:()=>D,ZP:()=>k});var t=e(32735),c=e(19615),a=e(60216),P=e.n(a),A=e(9808),C=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)(A.Box)`
  margin: 0 auto;
  width: 552px;
`,w=(0,c.default)(C.Flex)`
  flex-direction: column;
`,D=({children:F})=>t.createElement(K,{shadow:"tableShadow",hasRadius:!0,paddingTop:9,paddingBottom:9,paddingLeft:10,paddingRight:10,background:"neutral0",justifyContent:"center"},F);D.propTypes={children:P().node.isRequired};const S=({children:F})=>t.createElement("div",null,t.createElement(C.Flex,{as:"header",justifyContent:"flex-end"},t.createElement(A.Box,{paddingTop:6,paddingRight:8},t.createElement(L,null))),t.createElement(A.Box,{paddingTop:2,paddingBottom:11},F));S.propTypes={children:P().node.isRequired};const k=S},56761:(q,M,e)=>{"use strict";e.d(M,{Z:()=>c});const c=[]},72218:(q,M,e)=>{"use strict";e.d(M,{Z:()=>A});var t=e(19615),c=e(20001),a=e.n(c);const A=(0,t.default)(c.FieldAction)`
  svg {
    height: 1rem;
    width: 1rem;
    path {
      fill: ${({theme:C})=>C.colors.neutral600};
    }
  }
`},1115:(q,M,e)=>{"use strict";e.d(M,{Z:()=>ae});var t=e(32735),c=e(88425),a=e.n(c),P=e(37341),A=e.n(P),C=e(33912),x=e.n(C),N=e(9808),ee=e.n(N),Q=e(90662),L=e.n(Q),K=e(16540),w=e.n(K),D=e(19192),S=e.n(D),k=e(44526),F=e.n(k),$=e(37178),re=e.n($),g=e(52111),te=e.n(g),Y=e(95602),fe=e.n(Y),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;
  }
`,J=({onSubmit:V,schema:j,children:_})=>{const[B,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(Y.Typography,{variant:"alpha",as:"h1"},G({id:"Auth.form.welcome.title",defaultMessage:"Welcome!"}))),t.createElement(N.Box,{paddingBottom:7},t.createElement(Y.Typography,{variant:"epsilon",textColor:"neutral600"},G({id:"Auth.form.welcome.subtitle",defaultMessage:"Log in to your Digicommerce account"}))),de.errorMessage&&t.createElement(Y.Typography,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},de.errorMessage)),t.createElement(Q.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:B?"text":"password",endAction:t.createElement(ue.Z,{onClick:ce=>{ce.stopPropagation(),ge(Ge=>!Ge)},label:G(B?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},B?t.createElement(x(),null):t.createElement(A(),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(D.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?"})))))};J.defaultProps={children:null,onSubmit(){}},J.propTypes={children:be().node,onSubmit:be().func,schema:be().shape({type:be().string.isRequired}).isRequired};const ae=J},5365:(q,M,e)=>{"use strict";e.d(M,{Z:()=>w});var t=e(32735),c=e(60216),a=e.n(c),P=e(1115),A=e(954),C=Object.defineProperty,x=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Q=(D,S,k)=>S in D?C(D,S,{enumerable:!0,configurable:!0,writable:!0,value:k}):D[S]=k,L=(D,S)=>{for(var k in S||(S={}))N.call(S,k)&&Q(D,k,S[k]);if(x)for(var k of x(S))ee.call(S,k)&&Q(D,k,S[k]);return D};const K=D=>t.createElement(A.ZP,null,t.createElement(P.Z,L({},D)));K.defaultProps={onSubmit:D=>D.preventDefault()},K.propTypes={onSubmit:a().func};const w=K},53951:(q,M,e)=>{"use strict";e.r(M),e.d(M,{default:()=>k});var t=e(32735),c=e(88425),a=e.n(c),P=e(16540),A=e.n(P),C=e(11856),x=e.n(C),N=e(64354),ee=e.n(N),Q=e(70733),L=e.n(Q),K=e(30345),w=e.n(K),D=e(5636);const k=()=>{const{formatMessage:F}=(0,D.useIntl)();return(0,c.useFocusWhenNavigate)(),t.createElement(P.Main,{labelledBy:"title"},t.createElement(C.HeaderLayout,{id:"title",title:F({id:"content-manager.pageNotFound",defaultMessage:"Page not found"})}),t.createElement(C.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,M,e)=>{"use strict";e.d(M,{Z:()=>t});const t={}},41832:(q,M,e)=>{"use strict";e.d(M,{Z:()=>c});const c=({data:a})=>{try{return Object.keys(a).reduce((P,A)=>{const C=a[A][0];return P[A]={id:C,defaultMessage:C},P},{})}catch(P){return{}}}},7602:(q,M,e)=>{"use strict";e.d(M,{R6:()=>P,ot:()=>w,Iz:()=>D.Z,Pp:()=>V,IF:()=>ae,WW:()=>Ie});var t=e(88425),c=(j,_,B)=>new Promise((ge,G)=>{var Me=ce=>{try{W(B.next(ce))}catch(Ge){G(Ge)}},de=ce=>{try{W(B.throw(ce))}catch(Ge){G(Ge)}},W=ce=>ce.done?ge(ce.value):Promise.resolve(ce.value).then(Me,de);W((B=B.apply(j,_)).next())});const P=(j,_)=>c(void 0,null,function*(){let B=null;try{yield _.validate(j,{abortEarly:!1})}catch(ge){B=(0,t.getYupInnerErrors)(ge)}return B});var A=e(32735),C=e(60216),x=e.n(C),N=e(5141),ee=e(98399),Q=(j,_,B)=>new Promise((ge,G)=>{var Me=ce=>{try{W(B.next(ce))}catch(Ge){G(Ge)}},de=ce=>{try{W(B.throw(ce))}catch(Ge){G(Ge)}},W=ce=>ce.done?ge(ce.value):Promise.resolve(ce.value).then(Me,de);W((B=B.apply(j,_)).next())});const L=({loadComponent:j})=>{const[_,B]=(0,A.useState)(null);return(0,A.useEffect)(()=>{(()=>Q(void 0,null,function*(){try{const G=yield j();B(()=>G.default)}catch(G){ee.log(G)}}))()},[j]),_?A.createElement(_,null):A.createElement(t.LoadingIndicatorPage,null)},K=(j,_,B)=>A.createElement(N.Route,{render:()=>A.createElement(L,{loadComponent:j}),key:_,path:_,exact:B||!1});L.propTypes={loadComponent:x().func.isRequired};const w=K;var D=e(41832),S=e(92891),k=Object.defineProperty,F=Object.defineProperties,$=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Y=(j,_,B)=>_ in j?k(j,_,{enumerable:!0,configurable:!0,writable:!0,value:B}):j[_]=B,fe=(j,_)=>{for(var B in _||(_={}))g.call(_,B)&&Y(j,B,_[B]);if(re)for(var B of re(_))te.call(_,B)&&Y(j,B,_[B]);return j},Le=(j,_)=>F(j,$(_));const be=j=>{const _=get(j,["options","timestamps"]);let B=Array.isArray(_)?_:[];const G=[...["id","_id"],...B,"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((_,B,ge)=>ge.findIndex(G=>G.key===_.key)===B),le=j=>sortBy(j,_=>_.name),oe=null,ue=j=>Array.from(new Set(Object.entries(j).reduce((_,B)=>{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(B[1].attributes||{}),get(B[1],"contentTypeActions",{})])]},[]))),Ze=null,ae=j=>`/admin/${j}`,V=(j,_="")=>[j,_].filter(B=>B).join(" ")},58414:(q,M,e)=>{"use strict";e.d(M,{p:()=>L});var t=e(32735),c=e(88425),a=e(7602),P=e(49415);const A={data:[],isLoading:!0},x=(K,w)=>(0,P.default)(K,D=>{switch(w.type){case"GET_DATA_SUCCEEDED":{D.data=w.data,D.isLoading=!1;break}case"GET_DATA_ERROR":{D.isLoading=!1;break}default:return D}});var N=e(98399),ee=(K,w,D)=>new Promise((S,k)=>{var F=g=>{try{re(D.next(g))}catch(te){k(te)}},$=g=>{try{re(D.throw(g))}catch(te){k(te)}},re=g=>g.done?S(g.value):Promise.resolve(g.value).then(F,$);re((D=D.apply(K,w)).next())});const L=({ssoEnabled:K})=>{const[w,D]=(0,t.useReducer)(x,A),S=(0,c.useNotification)();(0,t.useEffect)(()=>{k()},[]);const k=()=>ee(void 0,null,function*(){try{if(!K){D({type:"GET_DATA_SUCCEEDED",data:[]});return}const F=(0,a.IF)("providers"),$=yield(0,c.request)(F,{method:"GET"});D({type:"GET_DATA_SUCCEEDED",data:$})}catch(F){N.error(F),D({type:"GET_DATA_ERROR"}),S({type:"warning",message:{id:"notification.error"}})}});return w}},11545:(q,M,e)=>{"use strict";e.d(M,{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,M,e)=>{"use strict";e.d(M,{Z:()=>K});var t=e(32735),c=e(5141),a=e(5636),P=e(49189),A=e.n(P),C=e(88425),x=e(7602),N=(w,D,S)=>new Promise((k,F)=>{var $=te=>{try{g(S.next(te))}catch(Y){F(Y)}},re=te=>{try{g(S.throw(te))}catch(Y){F(Y)}},g=te=>te.done?k(te.value):Promise.resolve(te.value).then($,re);g((S=S.apply(w,D)).next())});const Q=()=>{const{params:{authResponse:w}}=(0,c.useRouteMatch)("/auth/login/:authResponse"),{formatMessage:D}=(0,a.useIntl)(),{push:S}=(0,c.useHistory)(),k=(0,t.useRef)(D);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=A().get("jwtToken");if(C.auth.clearAppStorage(),re){C.auth.setToken(re,!0);const g=(0,x.IF)("users/me"),{data:te}=yield(0,C.request)(g,{method:"GET"});C.auth.setUserInfo(te,!0),A().remove("jwtToken"),S("/auth/login")}}catch(re){F()}}),[S,F]);return(0,t.useEffect)(()=>{w==="error"&&F(),w==="success"&&$()},[w,$,F]),t.createElement(C.LoadingIndicatorPage,null)},K=[{Component:()=>({default:Q}),to:"/auth/login/:authResponse",exact:!0}]},98768:(q,M,e)=>{"use strict";e.d(M,{Z:()=>Ie});var t=e(32735),c=e(60216),a=e.n(c),P=e(19615),A=e(9808),C=e.n(A),x=e(19192),N=e.n(x),ee=e(27635),Q=e.n(ee),L=e(90662),K=e.n(L),w=e(95602),D=e.n(w),S=e(5636),k=e(1115),F=e(58414),$=e(954),re=e(33205),g=Object.defineProperty,te=Object.getOwnPropertySymbols,Y=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={}))Y.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:J}=(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(A.Box,{paddingTop:7},t.createElement(L.Stack,{spacing:7},t.createElement(x.Flex,null,t.createElement(l,null),t.createElement(A.Box,{paddingLeft:3,paddingRight:3},t.createElement(w.Typography,{variant:"sigma",textColor:"neutral600"},J({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,M,e)=>{"use strict";e.d(M,{Z:()=>re});var t=e(32735),c=e(60216),a=e.n(c),P=e(78330),A=e.n(P),C=e(19192),x=e.n(C),N=e(95602),ee=e.n(N),Q=e(44826),L=e.n(Q),K=e(19615),w=e(5636),D=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)(C.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(Q.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:Y}=(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(Q.Tooltip,{label:Y({id:"global.see-more"})},t.createElement(S,{as:D.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,M,e)=>{"use strict";e.d(M,{Z:()=>Ze});var t=e(32735),c=e(5141),a=e(19615),P=e(88425),A=e(27635),C=e(90662),x=e(19192),N=e(9808),ee=e(44526),Q=e(82910),L=e(95602),K=e(16540),w=e(5636),D=e(58414),S=e(954),k=e(33205),F=e(10190);const $=(0,a.default)(A.Divider)`
  flex: 1;
`,g=()=>{const J=strapi.features.isEnabled(strapi.features.SSO),{push:ae}=(0,c.useHistory)(),{formatMessage:V}=(0,w.useIntl)(),{isLoading:j,data:_}=(0,D.p)({ssoEnabled:J}),B=()=>{ae("/auth/login")};return!J||!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(C.Stack,{spacing:7},j?t.createElement(x.Flex,{justifyContent:"center"},t.createElement(Q.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:B},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),Y=Object.defineProperty,fe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ie=(J,ae,V)=>ae in J?Y(J,ae,{enumerable:!0,configurable:!0,writable:!0,value:V}):J[ae]=V,le=(J,ae)=>{for(var V in ae||(ae={}))l.call(ae,V)&&Ie(J,V,ae[V]);if(be)for(var V of be(ae))Ye.call(ae,V)&&Ie(J,V,ae[V]);return J},oe=(J,ae)=>fe(J,Le(ae));const Ze=oe(le({},te.Z),{providers:{Component:g,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""}})},99568:(q,M,e)=>{"use strict";e.d(M,{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,M,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 C=new Error("Cannot find module '"+a+"'");throw C.code="MODULE_NOT_FOUND",C});var P=t[a],A=P[0];return e.e(P[1]).then(()=>e.t(A,19))}c.keys=()=>Object.keys(t),c.id=48224,q.exports=c}}]);
