@strapi/admin 4.12.0-beta.3 → 4.12.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +13 -35
  2. package/admin/src/content-manager/pages/ListView/components/TableRows/index.js +304 -0
  3. package/admin/src/pages/AuthPage/components/Register/index.js +4 -0
  4. package/build/2379.0ca87a89.chunk.js +1 -0
  5. package/build/2395.df7a044a.chunk.js +26 -0
  6. package/build/2801.b1140c9b.chunk.js +1 -0
  7. package/build/{3100.21c343fa.chunk.js → 3100.2ba4df95.chunk.js} +1 -1
  8. package/build/{3483.ddd2d6df.chunk.js → 3483.e2ee2547.chunk.js} +1 -1
  9. package/build/3984.dda474f7.chunk.js +1 -0
  10. package/build/502.8ae8ef60.chunk.js +1 -0
  11. package/build/5483.6dd2e776.chunk.js +6 -0
  12. package/build/7065.ec811562.chunk.js +114 -0
  13. package/build/7464.8a6c1e6c.chunk.js +1 -0
  14. package/build/8276.6c7b8e6e.chunk.js +26 -0
  15. package/build/{9806.91360bb6.chunk.js → 9806.aa25371d.chunk.js} +10 -10
  16. package/build/{Admin-authenticatedApp.36b3826c.chunk.js → Admin-authenticatedApp.6b8dfa45.chunk.js} +1 -1
  17. package/build/{admin-app.1c3f7fd6.chunk.js → admin-app.c2e4e128.chunk.js} +8 -8
  18. package/build/content-manager.8772445b.chunk.js +1103 -0
  19. package/build/index.html +1 -1
  20. package/build/{main.a12c4c0f.js → main.af84ad9c.js} +281 -281
  21. package/build/review-workflows-settings-create-view.05758184.chunk.js +1 -0
  22. package/build/review-workflows-settings-edit-view.c33f7c58.chunk.js +1 -0
  23. package/build/review-workflows-settings-list-view.3ee9190d.chunk.js +56 -0
  24. package/build/{runtime~main.d197f488.js → runtime~main.a65ca6fb.js} +2 -2
  25. package/build/sso-settings-page.7c9b2fd9.chunk.js +1 -0
  26. package/ee/admin/constants.js +3 -0
  27. package/ee/admin/content-manager/pages/EditView/InformationBox/InformationBoxEE.js +12 -4
  28. package/ee/admin/hooks/index.js +1 -1
  29. package/ee/admin/hooks/useLicenseLimitNotification/index.js +1 -1
  30. package/ee/admin/hooks/useLicenseLimits/__mocks__/index.js +8 -0
  31. package/ee/admin/hooks/useLicenseLimits/index.js +1 -3
  32. package/ee/admin/hooks/useLicenseLimits/useLicenseLimits.js +3 -13
  33. package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +19 -4
  34. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +7 -0
  35. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stages.js +20 -16
  36. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/WorkflowAttributes/WorkflowAttributes.js +120 -29
  37. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/constants.js +3 -0
  38. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/CreateView/CreateView.js +108 -31
  39. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/CreateView/index.js +8 -3
  40. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/EditView/EditView.js +138 -61
  41. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/EditView/index.js +8 -3
  42. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/ListView/ListView.js +72 -55
  43. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/pages/ListView/index.js +8 -3
  44. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/reducer/index.js +2 -8
  45. package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +2 -8
  46. package/ee/admin/pages/SettingsPage/pages/SingleSignOn/utils/schema.js +8 -5
  47. package/ee/server/services/review-workflows/review-workflows.js +1 -1
  48. package/ee/server/services/review-workflows/validation.js +6 -4
  49. package/ee/server/services/review-workflows/workflows/content-types.js +28 -19
  50. package/ee/server/services/review-workflows/workflows/index.js +14 -2
  51. package/ee/server/validation/authentication.js +20 -9
  52. package/package.json +9 -9
  53. package/build/2379.d33a2e16.chunk.js +0 -1
  54. package/build/2395.b0419a54.chunk.js +0 -26
  55. package/build/2801.18f38baf.chunk.js +0 -1
  56. package/build/3984.ea7b8036.chunk.js +0 -1
  57. package/build/502.ccb38223.chunk.js +0 -1
  58. package/build/5483.ed2c7efa.chunk.js +0 -6
  59. package/build/7464.c6d0565c.chunk.js +0 -1
  60. package/build/8276.23e0763b.chunk.js +0 -26
  61. package/build/8298.fd253c9f.chunk.js +0 -117
  62. package/build/content-manager.b8d593d4.chunk.js +0 -1103
  63. package/build/review-workflows-settings-create-view.dfd87e1f.chunk.js +0 -1
  64. package/build/review-workflows-settings-edit-view.53c00afe.chunk.js +0 -1
  65. package/build/review-workflows-settings-list-view.a34be805.chunk.js +0 -56
  66. package/build/sso-settings-page.ed6f3f15.chunk.js +0 -1
  67. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/ProtectedPage/ProtectedPage.js +0 -21
  68. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/ProtectedPage/index.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[801],{63546:function(K,T,n){n.r(T),n.d(T,{default:function(){return jt}});var e=n(32735),s=n(19565),b=n(33795),Z=n.n(b),y=n(20108),M=JSON.parse('{"i8":"4.12.0-beta.3"}'),S=n(2160),L=n(86209),P=n(74506),F=n(51968),D=n(15062),f=n(53038),Re=n(88311),ee=n.n(Re),Ae=n(75974),m=n(87933),te=n(71933),ne=n(67563),Le=n(50563),v=n(72850),V=n(41415),ae=n(35331),Oe=n(60216),r=n.n(Oe),B=n(67879),C=n(8471);const xe=(0,C.ZP)(m.k)`
1
+ "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[801],{63546:function(K,T,n){n.r(T),n.d(T,{default:function(){return jt}});var e=n(32735),s=n(19565),b=n(33795),Z=n.n(b),y=n(20108),M=JSON.parse('{"i8":"4.12.0-beta.5"}'),S=n(2160),L=n(86209),P=n(74506),F=n(51968),D=n(15062),f=n(53038),Re=n(88311),ee=n.n(Re),Ae=n(75974),m=n(87933),te=n(71933),ne=n(67563),Le=n(50563),v=n(72850),V=n(41415),ae=n(35331),Oe=n(60216),r=n.n(Oe),B=n(67879),C=n(8471);const xe=(0,C.ZP)(m.k)`
2
2
  position: fixed;
3
3
  z-index: 4;
4
4
  inset: 0;
@@ -1,22 +1,22 @@
1
- (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5538],{58917:function(G,y,t){"use strict";t.r(y),t.d(y,{default:function(){return Ds}});var e=t(32735),E=t(12301),P=t(65810),v=t(56784),m=t.n(v),h=t(93839),N=t.n(h),X=t(86349),O=t.n(X),oe=t(88423),z=t.n(oe),ge=t(74758),V=t(14911),$=t(47750),Ae="strapi-admin-language",i=t(19565),ke=t(60216),a=t.n(ke),pe=t(20108),fe=t(15062),R=t(76402),D=t(97889);const Y={menuLogo:null,authLogo:null};var ye=(o=Y,s)=>(0,D.ZP)(o,n=>{switch(s.type){case"UPDATE_PROJECT_SETTINGS":{Object.assign(n,s.values);break}default:return n}});const ie=({children:o,authLogo:s,menuLogo:n,showReleaseNotification:r,showTutorials:l})=>{const[{menuLogo:p,authLogo:g},f]=(0,e.useReducer)(ye,Y),A=(0,e.useCallback)(({menuLogo:j,authLogo:T})=>f({type:"UPDATE_PROJECT_SETTINGS",values:{menuLogo:j||n,authLogo:T||s}}),[s,n]),M=(0,e.useMemo)(()=>({logos:{menu:{custom:p,default:n},auth:{custom:g,default:s}},updateProjectSettings:A,showReleaseNotification:r,showTutorials:l}),[p,n,g,s,A,r,l]);return e.createElement(R._5.Provider,{value:M},o)};ie.propTypes={authLogo:a().string.isRequired,children:a().element.isRequired,menuLogo:a().string.isRequired,showReleaseNotification:a().bool.isRequired,showTutorials:a().bool.isRequired};var xe=ie,Oe=t(33795),Le=t.n(Oe),Ve=t(3040),je=t.n(Ve);const _e="GUIDED_TOUR_CURRENT_STEP",$e="GUIDED_TOUR_COMPLETED_STEPS",mt="GUIDED_TOUR_SKIPPED",et=JSON.parse,qe=JSON.stringify;var be={clear(){localStorage.removeItem(_e),localStorage.removeItem($e)},addCompletedStep(o){const s=et(localStorage.getItem($e))?.slice()||[];s.includes(o)||(s.push(o),localStorage.setItem($e,qe(s)))},addCurrentStep(o){localStorage.setItem(_e,qe(o))},setSkipped(o){localStorage.setItem(mt,qe(o))},get(o){return et(localStorage.getItem(o))}},gt=o=>{const s={...o},n=be.get($e),r=be.get(_e),l=be.get(mt);if(n&&n.forEach(p=>{const[g,f]=p.split(".");je()(s,["guidedTourState",g,f],!0)}),r){const[p,g]=r.split(".");je()(s,["guidedTourState",p,g],!0),be.addCompletedStep(r),be.addCurrentStep(null)}return l!==null&&je()(s,"isSkipped",l),s};const pt={currentStep:null,guidedTourState:{contentTypeBuilder:{create:!1,success:!1},contentManager:{create:!1,success:!1},apiTokens:{create:!1,success:!1}},isGuidedTourVisible:!1,isSkipped:!0};var tt=(o=pt,s)=>(0,D.ZP)(o,n=>{switch(s.type){case"SET_CURRENT_STEP":{n.currentStep=s.step;break}case"SET_STEP_STATE":{const[r,l]=s.currentStep.split(".");n.guidedTourState[r][l]=s.value;break}case"SET_SKIPPED":{n.isSkipped=s.value;break}case"SET_GUIDED_TOUR_VISIBILITY":{n.isGuidedTourVisible=s.value;break}default:return n}}),ft=(o,s)=>{const n=Object.entries(s),r=n.findIndex(([p])=>p===o);return n.slice(0,r).every(([,p])=>Object.values(p).every(Boolean))},ht=(o,s)=>{const n=o.split("."),r=n[1],l=Object.entries(s[n[0]]),p=l.findIndex(([f])=>f===r);return l.slice(0,p).every(([,f])=>f)};const st=({children:o})=>{const[{currentStep:s,guidedTourState:n,isGuidedTourVisible:r,isSkipped:l},p]=(0,e.useReducer)(tt,pt,gt),g=T=>{if(T!==null){const q=Le()(n,T),_=ht(T,n);if(q||l||!_)return null}return be.addCurrentStep(T),p({type:"SET_CURRENT_STEP",step:T})},f=T=>{p({type:"SET_GUIDED_TOUR_VISIBILITY",value:T})},A=(T,q)=>{be.addCompletedStep(T),p({type:"SET_STEP_STATE",currentStep:T,value:q})},M=T=>{const q=n[T];if(q){const _=ft(T,n),H=Object.keys(q)[0],de=q[H];if(_&&!s&&!de)return g(`${T}.${H}`)}return null},j=T=>{be.setSkipped(T),p({type:"SET_SKIPPED",value:T})};return e.createElement(i.Zc,{guidedTourState:n,currentStep:s,setCurrentStep:g,setGuidedTourVisibility:f,setSkipped:j,setStepState:A,startSection:M,isGuidedTourVisible:r,isSkipped:l},o)};st.propTypes={children:a().element.isRequired};var Et=st,nt=t(58732),Gt=t.n(nt),vt=t(78023),yt=t(33229);const Ze=({changeLocale:o,children:s,localeNames:n})=>e.createElement(yt.Z.Provider,{value:{changeLocale:o,localeNames:n}},s);Ze.propTypes={changeLocale:a().func.isRequired,children:a().element.isRequired,localeNames:a().object.isRequired};var Pt=Ze,Rt=o=>{const s=window.localStorage.getItem(Ae);return{locale:o[s]?s:"en",localeNames:o}};const at={localeNames:{en:"English"},locale:"en"};var St=(o=at,s)=>{switch(s.type){case"CHANGE_LOCALE":{const{locale:n}=s;return o.localeNames[n]?{...o,locale:n}:o}default:return o}};const At=({children:o,localeNames:s,messages:n})=>{const[{locale:r},l]=(0,e.useReducer)(St,at,()=>Rt(s));(0,e.useEffect)(()=>{window.localStorage.setItem(Ae,r),document.documentElement.setAttribute("lang",r)},[r]);const p=f=>{l({type:"CHANGE_LOCALE",locale:f})},g=Gt()(n[r],n.en);return e.createElement(vt.Z,{locale:r,defaultLocale:"en",messages:g,textComponent:"span"},e.createElement(Pt,{changeLocale:p,localeNames:s},o))};At.propTypes={children:a().element.isRequired,localeNames:a().objectOf(a().string).isRequired,messages:a().object.isRequired};var Mt=At,Lt=t(24854),De=t(67879),bt=t(2160),Be=t(8471),Dt=(0,Be.vJ)`
1
+ (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5538],{58917:function(G,y,t){"use strict";t.r(y),t.d(y,{default:function(){return Ds}});var e=t(32735),E=t(12301),P=t(65810),v=t(56784),m=t.n(v),h=t(93839),W=t.n(h),X=t(86349),O=t.n(X),oe=t(88423),z=t.n(oe),ge=t(74758),V=t(14911),$=t(47750),Ae="strapi-admin-language",i=t(19565),ke=t(60216),a=t.n(ke),pe=t(20108),fe=t(15062),R=t(76402),D=t(97889);const Y={menuLogo:null,authLogo:null};var Pe=(o=Y,s)=>(0,D.ZP)(o,n=>{switch(s.type){case"UPDATE_PROJECT_SETTINGS":{Object.assign(n,s.values);break}default:return n}});const ie=({children:o,authLogo:s,menuLogo:n,showReleaseNotification:r,showTutorials:l})=>{const[{menuLogo:p,authLogo:g},f]=(0,e.useReducer)(Pe,Y),A=(0,e.useCallback)(({menuLogo:j,authLogo:T})=>f({type:"UPDATE_PROJECT_SETTINGS",values:{menuLogo:j||n,authLogo:T||s}}),[s,n]),M=(0,e.useMemo)(()=>({logos:{menu:{custom:p,default:n},auth:{custom:g,default:s}},updateProjectSettings:A,showReleaseNotification:r,showTutorials:l}),[p,n,g,s,A,r,l]);return e.createElement(R._5.Provider,{value:M},o)};ie.propTypes={authLogo:a().string.isRequired,children:a().element.isRequired,menuLogo:a().string.isRequired,showReleaseNotification:a().bool.isRequired,showTutorials:a().bool.isRequired};var xe=ie,Oe=t(33795),Le=t.n(Oe),Ve=t(3040),je=t.n(Ve);const _e="GUIDED_TOUR_CURRENT_STEP",$e="GUIDED_TOUR_COMPLETED_STEPS",mt="GUIDED_TOUR_SKIPPED",et=JSON.parse,qe=JSON.stringify;var be={clear(){localStorage.removeItem(_e),localStorage.removeItem($e)},addCompletedStep(o){const s=et(localStorage.getItem($e))?.slice()||[];s.includes(o)||(s.push(o),localStorage.setItem($e,qe(s)))},addCurrentStep(o){localStorage.setItem(_e,qe(o))},setSkipped(o){localStorage.setItem(mt,qe(o))},get(o){return et(localStorage.getItem(o))}},gt=o=>{const s={...o},n=be.get($e),r=be.get(_e),l=be.get(mt);if(n&&n.forEach(p=>{const[g,f]=p.split(".");je()(s,["guidedTourState",g,f],!0)}),r){const[p,g]=r.split(".");je()(s,["guidedTourState",p,g],!0),be.addCompletedStep(r),be.addCurrentStep(null)}return l!==null&&je()(s,"isSkipped",l),s};const pt={currentStep:null,guidedTourState:{contentTypeBuilder:{create:!1,success:!1},contentManager:{create:!1,success:!1},apiTokens:{create:!1,success:!1}},isGuidedTourVisible:!1,isSkipped:!0};var tt=(o=pt,s)=>(0,D.ZP)(o,n=>{switch(s.type){case"SET_CURRENT_STEP":{n.currentStep=s.step;break}case"SET_STEP_STATE":{const[r,l]=s.currentStep.split(".");n.guidedTourState[r][l]=s.value;break}case"SET_SKIPPED":{n.isSkipped=s.value;break}case"SET_GUIDED_TOUR_VISIBILITY":{n.isGuidedTourVisible=s.value;break}default:return n}}),ft=(o,s)=>{const n=Object.entries(s),r=n.findIndex(([p])=>p===o);return n.slice(0,r).every(([,p])=>Object.values(p).every(Boolean))},ht=(o,s)=>{const n=o.split("."),r=n[1],l=Object.entries(s[n[0]]),p=l.findIndex(([f])=>f===r);return l.slice(0,p).every(([,f])=>f)};const st=({children:o})=>{const[{currentStep:s,guidedTourState:n,isGuidedTourVisible:r,isSkipped:l},p]=(0,e.useReducer)(tt,pt,gt),g=T=>{if(T!==null){const q=Le()(n,T),_=ht(T,n);if(q||l||!_)return null}return be.addCurrentStep(T),p({type:"SET_CURRENT_STEP",step:T})},f=T=>{p({type:"SET_GUIDED_TOUR_VISIBILITY",value:T})},A=(T,q)=>{be.addCompletedStep(T),p({type:"SET_STEP_STATE",currentStep:T,value:q})},M=T=>{const q=n[T];if(q){const _=ft(T,n),F=Object.keys(q)[0],de=q[F];if(_&&!s&&!de)return g(`${T}.${F}`)}return null},j=T=>{be.setSkipped(T),p({type:"SET_SKIPPED",value:T})};return e.createElement(i.Zc,{guidedTourState:n,currentStep:s,setCurrentStep:g,setGuidedTourVisibility:f,setSkipped:j,setStepState:A,startSection:M,isGuidedTourVisible:r,isSkipped:l},o)};st.propTypes={children:a().element.isRequired};var Et=st,nt=t(58732),Gt=t.n(nt),vt=t(78023),yt=t(33229);const Ze=({changeLocale:o,children:s,localeNames:n})=>e.createElement(yt.Z.Provider,{value:{changeLocale:o,localeNames:n}},s);Ze.propTypes={changeLocale:a().func.isRequired,children:a().element.isRequired,localeNames:a().object.isRequired};var Pt=Ze,Rt=o=>{const s=window.localStorage.getItem(Ae);return{locale:o[s]?s:"en",localeNames:o}};const at={localeNames:{en:"English"},locale:"en"};var St=(o=at,s)=>{switch(s.type){case"CHANGE_LOCALE":{const{locale:n}=s;return o.localeNames[n]?{...o,locale:n}:o}default:return o}};const At=({children:o,localeNames:s,messages:n})=>{const[{locale:r},l]=(0,e.useReducer)(St,at,()=>Rt(s));(0,e.useEffect)(()=>{window.localStorage.setItem(Ae,r),document.documentElement.setAttribute("lang",r)},[r]);const p=f=>{l({type:"CHANGE_LOCALE",locale:f})},g=Gt()(n[r],n.en);return e.createElement(vt.Z,{locale:r,defaultLocale:"en",messages:g,textComponent:"span"},e.createElement(Pt,{changeLocale:p,localeNames:s},o))};At.propTypes={children:a().element.isRequired,localeNames:a().objectOf(a().string).isRequired,messages:a().object.isRequired};var Mt=At,Lt=t(24854),De=t(67879),bt=t(2160),Be=t(8471),Dt=(0,Be.vJ)`
2
2
  body {
3
3
  background: ${({theme:o})=>o.colors.neutral100};
4
4
  }
5
- `;const It=({children:o})=>{const{currentTheme:s,themes:n}=(0,bt.M1)(),{locale:r}=(0,De.Z)();return e.createElement(Lt.h,{locale:r,theme:n[s]||n.light},o,e.createElement(Dt,null))};It.propTypes={children:a().element.isRequired};var kt=It;const ot="STRAPI_THEME",Ot=()=>{const o=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",s=localStorage.getItem(ot);return s||localStorage.setItem(ot,o),s||o},wt=({children:o,themes:s})=>{const[n,r]=(0,e.useState)(Ot()),l=(0,e.useCallback)(g=>{r(g),localStorage.setItem(ot,g)},[r]),p=(0,e.useMemo)(()=>({currentTheme:n,onChangeTheme:l,themes:s}),[n,l,s]);return e.createElement(R.Rj.Provider,{value:p},o)};wt.propTypes={children:a().node.isRequired,themes:a().shape({light:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,dark:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,custom:a().object}).isRequired};var jt=wt;const d=new pe.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),c=({authLogo:o,children:s,components:n,customFields:r,fields:l,getAdminInjectedComponents:p,getPlugin:g,localeNames:f,menu:A,menuLogo:M,messages:j,plugins:T,runHookParallel:q,runHookSeries:_,runHookWaterfall:H,settings:de,showReleaseNotification:S,showTutorials:Ke,store:ze,themes:J})=>e.createElement(Mt,{messages:j,localeNames:f},e.createElement(jt,{themes:J},e.createElement(kt,null,e.createElement(pe.QueryClientProvider,{client:d},e.createElement(fe.zt,{store:ze},e.createElement(R.ux.Provider,{value:{getAdminInjectedComponents:p}},e.createElement(xe,{authLogo:o,menuLogo:M,showReleaseNotification:S,showTutorials:Ke},e.createElement(i._Y,{getPlugin:g,menu:A,plugins:T,runHookParallel:q,runHookWaterfall:H,runHookSeries:_,settings:de},e.createElement(i.rt,{components:n,fields:l},e.createElement(i.MG,{customFields:r},e.createElement(i.m$,null,e.createElement(i.w7,null,e.createElement(Et,null,e.createElement(i.N$,null,s))))))))))))));c.propTypes={authLogo:a().oneOfType([a().string,a().any]).isRequired,children:a().element.isRequired,components:a().object.isRequired,customFields:a().object.isRequired,fields:a().object.isRequired,getAdminInjectedComponents:a().func.isRequired,getPlugin:a().func.isRequired,localeNames:a().objectOf(a().string).isRequired,menu:a().arrayOf(a().shape({to:a().string.isRequired,icon:a().func.isRequired,intlLabel:a().shape({id:a().string.isRequired,defaultMessage:a().string.isRequired}).isRequired,permissions:a().array,Component:a().func})).isRequired,menuLogo:a().oneOfType([a().string,a().any]).isRequired,messages:a().object.isRequired,plugins:a().object.isRequired,runHookParallel:a().func.isRequired,runHookWaterfall:a().func.isRequired,runHookSeries:a().func.isRequired,settings:a().object.isRequired,showReleaseNotification:a().bool.isRequired,showTutorials:a().bool.isRequired,store:a().object.isRequired,themes:a().shape({light:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,dark:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,custom:a().object}).isRequired};var u=c,C=t(59883),L=t(6680);const I=(o,s)=>{let n=L.compose;const r=[];o.forEach(p=>{r.push(p())});const l=(0,L.createStore)(U(s,{}),{},n((0,L.applyMiddleware)(...r)));return l.asyncReducers={},l.injectReducer=(p,g)=>{l.asyncReducers[p]=g,l.replaceReducer(U(s,l.asyncReducers))},l},U=(o,s)=>(0,L.combineReducers)({...o,...s});var k=I,K=t(35231),x=()=>{const o=[];return{register(s){o.push(s)},delete(s){o.splice(o.indexOf(s),1)},runWaterfall(s,n){return o.reduce((r,l)=>l(r,n),s)},async runWaterfallAsync(s,n){let r=s;for(const l of o)r=await l(r,n);return r},runSeries(...s){return o.map(n=>n(...s))},async runSeriesAsync(...s){const n=[];for(const r of o)n.push(await r(...s));return n},runParallel(...s){return Promise.all(o.map(n=>n(...s)))}}},W=t(66941),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAXVBMVEUAAABIRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9JRf9IRf9IRP5IRP5JRP9JRf////+Vk/+zsv++vf9mY/9taf9/fP+Jh//c3P9RTf/Ibar2AAAAFHRSTlMA/MJX+fPt48cahaff1dMaGqcahSpTPmAAAAEvSURBVFjD7dfNTsMwEATgXcf5cdKEtixtcYH3f0xEibIguba1g8Slc+58iqUedmhNaMbJzX3Xema5G2bfdv3iprE50s80g7Yqw0Oz1Z+cmOL2a38nxuy+BSfmuNv7BUhDRAMCDESBEYCDvsD6hmcMGGnCgIkcBjhaMGCmHgN66jCgoxYDWvIY4IkxgHFAkrmeU7kmfpkG4uUllXMtEE82QPs2QPs2QPs2QPs2QPsAoH0DoH0LoH0QeN3ydtnyXg38ok76MQ/gAfwf8JH8V18LQOljomBAFAyIkga4CGT7XAtEuQf4IpDri6e2BoiZA6OrAGLuxOnLQMweWXMRyPVlwQ/NAwZMNGLACJ/76ODYo5MHHl3o7EOHZ6BbjtbpG/5kfOv8P7ilbv7PX/M/rMVPqrI3XI3nd3sAAAAASUVORK5CYII=",Ye={admin:{tutorials:{links:[]}},contentManager:{editView:{informations:[],"right-links":[]},listView:{actions:[],deleteModalAdditionalInfos:[],publishModalAdditionalInfos:[],unpublishModalAdditionalInfos:[]}}},Ne=t(10728),le=t(53038);const We=({component:o,path:s,...n})=>{const{pathname:r,search:l}=(0,le.TH)();return e.createElement(le.AW,{path:s,render:p=>i.I8.getToken()!==null?e.createElement(o,{...n,...p}):e.createElement(le.l_,{to:{pathname:"/auth/login",search:r!=="/"&&`?redirectTo=${encodeURIComponent(`${r}${l}`)}`}})})};We.propTypes={component:a().any.isRequired,path:a().string.isRequired};var Ue=(0,e.memo)(We);const He={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}],read:[{action:"admin::marketplace.read",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}]},"transfer-tokens":{main:[{action:"admin::transfer.tokens.access",subject:null}],create:[{action:"admin::transfer.tokens.create",subject:null}],delete:[{action:"admin::transfer.tokens.delete",subject:null}],read:[{action:"admin::transfer.tokens.read",subject:null}],update:[{action:"admin::transfer.tokens.update",subject:null}],regenerate:[{action:"admin::transfer.tokens.regenerate",subject:null}]},"project-settings":{read:[{action:"admin::project-settings.read",subject:null}],update:[{action:"admin::project-settings.update",subject:null}]}}};var ue=t(9592),se=t(86209),ne=t(84306),ce=t(39935),Fe=t.n(ce),ns=t(9086),it=t.n(ns),as=t(51399),os=t(5074),ae=t(11060),rs=t(24436);const Ut=o=>e.createElement(ae.ZP,null,e.createElement(rs.Z,{...o}));Ut.defaultProps={onSubmit:o=>o.preventDefault()},Ut.propTypes={onSubmit:a().func};var w=t(24346),Je=t(27649),Ee=t(72850),ve=t(49372),Pe=t(87933),Ge=t(10369),lt=t(41415),xt=t(92802),Qe=t(73678);const Zt=({onSubmit:o,schema:s})=>{const{formatMessage:n}=(0,De.Z)();return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(xt.J9,{enableReinitialize:!0,initialValues:{email:""},onSubmit:o,validationSchema:s,validateOnChange:!1},({values:r,errors:l,handleChange:p})=>e.createElement(i.l0,{noValidate:!0},e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},n({id:"Auth.form.button.password-recovery",defaultMessage:"Password Recovery"}))),l.errorMessage&&e.createElement(ve.Z,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},n({id:l.errorMessage,defaultMessage:"An error occurred"}))),e.createElement(Pe.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(Ge.o,{error:l.email?n({id:l.email,defaultMessage:"This email is invalid."}):"",value:r.email,onChange:p,label:n({id:"Auth.form.email.label",defaultMessage:"Email"}),placeholder:n({id:"Auth.form.email.placeholder",defaultMessage:"kai@doe.com"}),name:"email",required:!0}),e.createElement(lt.z,{type:"submit",fullWidth:!0},n({id:"Auth.form.button.forgot-password",defaultMessage:"Send Email"})))))),e.createElement(Pe.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},n({id:"Auth.link.ready",defaultMessage:"Ready to sign in?"}))))))};Zt.defaultProps={onSubmit:o=>o.preventDefault()},Zt.propTypes={onSubmit:a().func,schema:a().shape({type:a().string.isRequired}).isRequired};var is=Zt,ls=()=>{const{formatMessage:o}=(0,De.Z)();return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},o({id:"app.containers.AuthPage.ForgotPasswordSuccess.title",defaultMessage:"Email sent"}))),e.createElement(ve.Z,null,o({id:"app.containers.AuthPage.ForgotPasswordSuccess.text.email",defaultMessage:"It can take a few minutes to receive your password recovery link."})),e.createElement(Ee.x,{paddingTop:4},e.createElement(ve.Z,null,o({id:"app.containers.AuthPage.ForgotPasswordSuccess.text.contact-admin",defaultMessage:"If you do not receive this link, please contact your administrator."}))))),e.createElement(Pe.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},o({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))},us=()=>{const{formatMessage:o}=(0,De.Z)(),n=(0,i.aM)().get("info")||o({id:"Auth.components.Oops.text",defaultMessage:"Your account has been suspended."});return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},o({id:"Auth.components.Oops.title",defaultMessage:"Oops..."}))),e.createElement(ve.Z,null,n),e.createElement(Ee.x,{paddingTop:4},e.createElement(ve.Z,null,o({id:"Auth.components.Oops.text.admin",defaultMessage:"If this is a mistake, please contact your administrator."}))))),e.createElement(Pe.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},o({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))},cs=t(15335),zt=t(5803),ds=t(8284),ut=t(54894),ct=t(60492),dt=t(24018);const Vt=Be.ZP.a`
5
+ `;const It=({children:o})=>{const{currentTheme:s,themes:n}=(0,bt.M1)(),{locale:r}=(0,De.Z)();return e.createElement(Lt.h,{locale:r,theme:n[s]||n.light},o,e.createElement(Dt,null))};It.propTypes={children:a().element.isRequired};var kt=It;const ot="STRAPI_THEME",Ot=()=>{const o=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",s=localStorage.getItem(ot);return s||localStorage.setItem(ot,o),s||o},wt=({children:o,themes:s})=>{const[n,r]=(0,e.useState)(Ot()),l=(0,e.useCallback)(g=>{r(g),localStorage.setItem(ot,g)},[r]),p=(0,e.useMemo)(()=>({currentTheme:n,onChangeTheme:l,themes:s}),[n,l,s]);return e.createElement(R.Rj.Provider,{value:p},o)};wt.propTypes={children:a().node.isRequired,themes:a().shape({light:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,dark:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,custom:a().object}).isRequired};var jt=wt;const d=new pe.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),c=({authLogo:o,children:s,components:n,customFields:r,fields:l,getAdminInjectedComponents:p,getPlugin:g,localeNames:f,menu:A,menuLogo:M,messages:j,plugins:T,runHookParallel:q,runHookSeries:_,runHookWaterfall:F,settings:de,showReleaseNotification:S,showTutorials:Ke,store:ze,themes:J})=>e.createElement(Mt,{messages:j,localeNames:f},e.createElement(jt,{themes:J},e.createElement(kt,null,e.createElement(pe.QueryClientProvider,{client:d},e.createElement(fe.zt,{store:ze},e.createElement(R.ux.Provider,{value:{getAdminInjectedComponents:p}},e.createElement(xe,{authLogo:o,menuLogo:M,showReleaseNotification:S,showTutorials:Ke},e.createElement(i._Y,{getPlugin:g,menu:A,plugins:T,runHookParallel:q,runHookWaterfall:F,runHookSeries:_,settings:de},e.createElement(i.rt,{components:n,fields:l},e.createElement(i.MG,{customFields:r},e.createElement(i.m$,null,e.createElement(i.w7,null,e.createElement(Et,null,e.createElement(i.N$,null,s))))))))))))));c.propTypes={authLogo:a().oneOfType([a().string,a().any]).isRequired,children:a().element.isRequired,components:a().object.isRequired,customFields:a().object.isRequired,fields:a().object.isRequired,getAdminInjectedComponents:a().func.isRequired,getPlugin:a().func.isRequired,localeNames:a().objectOf(a().string).isRequired,menu:a().arrayOf(a().shape({to:a().string.isRequired,icon:a().func.isRequired,intlLabel:a().shape({id:a().string.isRequired,defaultMessage:a().string.isRequired}).isRequired,permissions:a().array,Component:a().func})).isRequired,menuLogo:a().oneOfType([a().string,a().any]).isRequired,messages:a().object.isRequired,plugins:a().object.isRequired,runHookParallel:a().func.isRequired,runHookWaterfall:a().func.isRequired,runHookSeries:a().func.isRequired,settings:a().object.isRequired,showReleaseNotification:a().bool.isRequired,showTutorials:a().bool.isRequired,store:a().object.isRequired,themes:a().shape({light:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,dark:a().shape({colors:a().object.isRequired,shadows:a().object.isRequired,sizes:a().object.isRequired,zIndices:a().array.isRequired,spaces:a().array.isRequired,borderRadius:a().string.isRequired,mediaQueries:a().object.isRequired,fontSizes:a().array.isRequired,lineHeights:a().array.isRequired,fontWeights:a().object.isRequired}).isRequired,custom:a().object}).isRequired};var u=c,C=t(59883),L=t(6680);const I=(o,s)=>{let n=L.compose;const r=[];o.forEach(p=>{r.push(p())});const l=(0,L.createStore)(U(s,{}),{},n((0,L.applyMiddleware)(...r)));return l.asyncReducers={},l.injectReducer=(p,g)=>{l.asyncReducers[p]=g,l.replaceReducer(U(s,l.asyncReducers))},l},U=(o,s)=>(0,L.combineReducers)({...o,...s});var k=I,K=t(35231),x=()=>{const o=[];return{register(s){o.push(s)},delete(s){o.splice(o.indexOf(s),1)},runWaterfall(s,n){return o.reduce((r,l)=>l(r,n),s)},async runWaterfallAsync(s,n){let r=s;for(const l of o)r=await l(r,n);return r},runSeries(...s){return o.map(n=>n(...s))},async runSeriesAsync(...s){const n=[];for(const r of o)n.push(await r(...s));return n},runParallel(...s){return Promise.all(o.map(n=>n(...s)))}}},H=t(66941),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAXVBMVEUAAABIRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9IRP9JRf9IRf9IRP5IRP5JRP9JRf////+Vk/+zsv++vf9mY/9taf9/fP+Jh//c3P9RTf/Ibar2AAAAFHRSTlMA/MJX+fPt48cahaff1dMaGqcahSpTPmAAAAEvSURBVFjD7dfNTsMwEATgXcf5cdKEtixtcYH3f0xEibIguba1g8Slc+58iqUedmhNaMbJzX3Xema5G2bfdv3iprE50s80g7Yqw0Oz1Z+cmOL2a38nxuy+BSfmuNv7BUhDRAMCDESBEYCDvsD6hmcMGGnCgIkcBjhaMGCmHgN66jCgoxYDWvIY4IkxgHFAkrmeU7kmfpkG4uUllXMtEE82QPs2QPs2QPs2QPs2QPsAoH0DoH0LoH0QeN3ydtnyXg38ok76MQ/gAfwf8JH8V18LQOljomBAFAyIkga4CGT7XAtEuQf4IpDri6e2BoiZA6OrAGLuxOnLQMweWXMRyPVlwQ/NAwZMNGLACJ/76ODYo5MHHl3o7EOHZ6BbjtbpG/5kfOv8P7ilbv7PX/M/rMVPqrI3XI3nd3sAAAAASUVORK5CYII=",Ye={admin:{tutorials:{links:[]}},contentManager:{editView:{informations:[],"right-links":[]},listView:{actions:[],deleteModalAdditionalInfos:[],publishModalAdditionalInfos:[],unpublishModalAdditionalInfos:[]}}},Ne=t(10728),le=t(53038);const We=({component:o,path:s,...n})=>{const{pathname:r,search:l}=(0,le.TH)();return e.createElement(le.AW,{path:s,render:p=>i.I8.getToken()!==null?e.createElement(o,{...n,...p}):e.createElement(le.l_,{to:{pathname:"/auth/login",search:r!=="/"&&`?redirectTo=${encodeURIComponent(`${r}${l}`)}`}})})};We.propTypes={component:a().any.isRequired,path:a().string.isRequired};var Ue=(0,e.memo)(We);const He={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}],read:[{action:"admin::marketplace.read",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}]},"transfer-tokens":{main:[{action:"admin::transfer.tokens.access",subject:null}],create:[{action:"admin::transfer.tokens.create",subject:null}],delete:[{action:"admin::transfer.tokens.delete",subject:null}],read:[{action:"admin::transfer.tokens.read",subject:null}],update:[{action:"admin::transfer.tokens.update",subject:null}],regenerate:[{action:"admin::transfer.tokens.regenerate",subject:null}]},"project-settings":{read:[{action:"admin::project-settings.read",subject:null}],update:[{action:"admin::project-settings.update",subject:null}]}}};var ue=t(9592),se=t(86209),ne=t(84306),ce=t(39935),Fe=t.n(ce),ns=t(9086),it=t.n(ns),as=t(51399),os=t(5074),ae=t(11060),rs=t(24436);const Ut=o=>e.createElement(ae.ZP,null,e.createElement(rs.Z,{...o}));Ut.defaultProps={onSubmit:o=>o.preventDefault()},Ut.propTypes={onSubmit:a().func};var w=t(24346),Je=t(27649),Ee=t(72850),ve=t(49372),Te=t(87933),Ge=t(10369),lt=t(41415),xt=t(92802),Qe=t(73678);const Zt=({onSubmit:o,schema:s})=>{const{formatMessage:n}=(0,De.Z)();return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(xt.J9,{enableReinitialize:!0,initialValues:{email:""},onSubmit:o,validationSchema:s,validateOnChange:!1},({values:r,errors:l,handleChange:p})=>e.createElement(i.l0,{noValidate:!0},e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},n({id:"Auth.form.button.password-recovery",defaultMessage:"Password Recovery"}))),l.errorMessage&&e.createElement(ve.Z,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},n({id:l.errorMessage,defaultMessage:"An error occurred"}))),e.createElement(Te.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(Ge.o,{error:l.email?n({id:l.email,defaultMessage:"This email is invalid."}):"",value:r.email,onChange:p,label:n({id:"Auth.form.email.label",defaultMessage:"Email"}),placeholder:n({id:"Auth.form.email.placeholder",defaultMessage:"kai@doe.com"}),name:"email",required:!0}),e.createElement(lt.z,{type:"submit",fullWidth:!0},n({id:"Auth.form.button.forgot-password",defaultMessage:"Send Email"})))))),e.createElement(Te.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},n({id:"Auth.link.ready",defaultMessage:"Ready to sign in?"}))))))};Zt.defaultProps={onSubmit:o=>o.preventDefault()},Zt.propTypes={onSubmit:a().func,schema:a().shape({type:a().string.isRequired}).isRequired};var is=Zt,ls=()=>{const{formatMessage:o}=(0,De.Z)();return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},o({id:"app.containers.AuthPage.ForgotPasswordSuccess.title",defaultMessage:"Email sent"}))),e.createElement(ve.Z,null,o({id:"app.containers.AuthPage.ForgotPasswordSuccess.text.email",defaultMessage:"It can take a few minutes to receive your password recovery link."})),e.createElement(Ee.x,{paddingTop:4},e.createElement(ve.Z,null,o({id:"app.containers.AuthPage.ForgotPasswordSuccess.text.contact-admin",defaultMessage:"If you do not receive this link, please contact your administrator."}))))),e.createElement(Te.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},o({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))},us=()=>{const{formatMessage:o}=(0,De.Z)(),n=(0,i.aM)().get("info")||o({id:"Auth.components.Oops.text",defaultMessage:"Your account has been suspended."});return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},o({id:"Auth.components.Oops.title",defaultMessage:"Oops..."}))),e.createElement(ve.Z,null,n),e.createElement(Ee.x,{paddingTop:4},e.createElement(ve.Z,null,o({id:"Auth.components.Oops.text.admin",defaultMessage:"If this is a mistake, please contact your administrator."}))))),e.createElement(Te.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},o({id:"Auth.link.signin",defaultMessage:"Sign in"}))))))},cs=t(15335),zt=t(5803),ds=t(8284),ut=t(54894),ct=t(60492),dt=t(24018);const Vt=Be.ZP.a`
6
6
  color: ${({theme:o})=>o.colors.primary600};
7
7
  `,$t=(0,Be.ZP)(Ge.o)`
8
8
  ::-ms-reveal {
9
9
  display: none;
10
10
  }
11
- `,Bt=({authType:o,fieldsToDisable:s,noSignin:n,onSubmit:r,schema:l})=>{const p=(0,i.lm)(),{push:g}=(0,le.k6)(),[f,A]=(0,e.useState)(!1),[M,j]=(0,e.useState)(!1),[T,q]=(0,e.useState)(0),[_,H]=(0,e.useState)({}),{trackUsage:de}=(0,i.rS)(),{formatMessage:S}=(0,De.Z)(),Ke=(0,i.aM)(),{formatAPIError:ze}=(0,i.So)(),{get:J}=(0,i.kY)(),ee=Ke.get("registrationToken");(0,e.useEffect)(()=>{ee&&(async()=>{try{const{data:{data:b}}=await J("/admin/registration-info",{params:{registrationToken:ee}});b&&H(b)}catch(b){const F=ze(b);p({type:"warning",message:F}),g(`/auth/oops?info=${encodeURIComponent(F)}`)}})()},[ee]);function Te(me){return Object.entries(me).reduce((b,[F,te])=>{let Ce=te;return!["password","confirmPassword"].includes(F)&&typeof te=="string"&&(Ce=Ce.trim()),b[F]=Ce,b},{})}return e.createElement(ae.ZP,null,e.createElement(ae.bU,null,e.createElement(xt.J9,{enableReinitialize:!0,initialValues:{firstname:_.firstname||"",lastname:_.lastname||"",email:_.email||"",password:"",confirmPassword:"",registrationToken:ee||void 0,news:!1},onSubmit:async(me,b)=>{const F=Te(me);try{await l.validate(F,{abortEarly:!1}),T>0&&o==="register-admin"&&de("didSubmitWithErrorsFirstAdmin",{count:T.toString()}),r(ee?{userInfo:it()(F,["registrationToken"]),registrationToken:ee}:F,b)}catch(te){const Ce=(0,i.CJ)(te);q(T+1),b.setErrors(Ce)}},validateOnChange:!1},({values:me,errors:b,handleChange:F})=>e.createElement(i.l0,{noValidate:!0},e.createElement(Je.o,null,e.createElement(Pe.k,{direction:"column",alignItems:"center",gap:3},e.createElement(Qe.Z,null),e.createElement(ve.Z,{as:"h1",variant:"alpha",textAlign:"center"},S({id:"Auth.form.welcome.title",defaultMessage:"Welcome to Strapi!"})),e.createElement(ve.Z,{variant:"epsilon",textColor:"neutral600",textAlign:"center"},S({id:"Auth.form.register.subtitle",defaultMessage:"Credentials are only used to authenticate in Strapi. All saved data will be stored in your database."}))),e.createElement(Pe.k,{direction:"column",alignItems:"stretch",gap:6,marginTop:7},e.createElement(cs.r,{gap:4},e.createElement(zt.P,{col:6},e.createElement(Ge.o,{name:"firstname",required:!0,value:me.firstname,error:b.firstname?S(b.firstname):void 0,onChange:F,label:S({id:"Auth.form.firstname.label",defaultMessage:"Firstname"})})),e.createElement(zt.P,{col:6},e.createElement(Ge.o,{name:"lastname",value:me.lastname,onChange:F,label:S({id:"Auth.form.lastname.label",defaultMessage:"Lastname"})}))),e.createElement(Ge.o,{name:"email",disabled:s.includes("email"),value:me.email,onChange:F,error:b.email?S(b.email):void 0,required:!0,label:S({id:"Auth.form.email.label",defaultMessage:"Email"}),type:"email"}),e.createElement($t,{name:"password",onChange:F,value:me.password,error:b.password?S(b.password):void 0,endAction:e.createElement(dt.Z,{onClick:te=>{te.preventDefault(),A(Ce=>!Ce)},label:S(f?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},f?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),hint:S({id:"Auth.form.password.hint",defaultMessage:"Must be at least 8 characters, 1 uppercase, 1 lowercase & 1 number"}),required:!0,label:S({id:"global.password",defaultMessage:"Password"}),type:f?"text":"password"}),e.createElement($t,{name:"confirmPassword",onChange:F,value:me.confirmPassword,error:b.confirmPassword?S(b.confirmPassword):void 0,endAction:e.createElement(dt.Z,{onClick:te=>{te.preventDefault(),j(Ce=>!Ce)},label:S(M?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},M?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),required:!0,label:S({id:"Auth.form.confirmPassword.label",defaultMessage:"Confirm Password"}),type:M?"text":"password"}),e.createElement(ds.X,{onValueChange:te=>{F({target:{value:te,name:"news"}})},value:me.news,name:"news","aria-label":"news"},S({id:"Auth.form.register.news.label",defaultMessage:"Keep me updated about new features & upcoming improvements (by doing this you accept the {terms} and the {policy})."},{terms:e.createElement(Vt,{target:"_blank",href:"https://strapi.io/terms",rel:"noreferrer"},S({id:"Auth.privacy-policy-agreement.terms",defaultMessage:"terms"})),policy:e.createElement(Vt,{target:"_blank",href:"https://strapi.io/privacy",rel:"noreferrer"},S({id:"Auth.privacy-policy-agreement.policy",defaultMessage:"policy"}))})),e.createElement(lt.z,{fullWidth:!0,size:"L",type:"submit"},S({id:"Auth.form.button.register",defaultMessage:"Let's start"})))))),!n&&e.createElement(Ee.x,{paddingTop:4},e.createElement(Pe.k,{justifyContent:"center"},e.createElement(i.rU,{label:"Auth.link.signin",to:"/auth/login"},S({id:"Auth.link.signin.account",defaultMessage:"Already have an account?"}))))))};Bt.defaultProps={fieldsToDisable:[],noSignin:!1,onSubmit:o=>o.preventDefault()},Bt.propTypes={authType:a().string.isRequired,fieldsToDisable:a().array,noSignin:a().bool,onSubmit:a().func,schema:a().shape({validate:a().func.isRequired,type:a().string.isRequired}).isRequired};var Yt=Bt;const Jt=(0,Be.ZP)(Ge.o)`
11
+ `,Bt=({authType:o,fieldsToDisable:s,noSignin:n,onSubmit:r,schema:l})=>{const p=(0,i.lm)(),{push:g}=(0,le.k6)(),[f,A]=(0,e.useState)(!1),[M,j]=(0,e.useState)(!1),[T,q]=(0,e.useState)(0),[_,F]=(0,e.useState)({}),{trackUsage:de}=(0,i.rS)(),{formatMessage:S}=(0,De.Z)(),Ke=(0,i.aM)(),{formatAPIError:ze}=(0,i.So)(),{get:J}=(0,i.kY)(),ee=Ke.get("registrationToken");(0,e.useEffect)(()=>{ee&&(async()=>{try{const{data:{data:b}}=await J("/admin/registration-info",{params:{registrationToken:ee}});b&&F(b)}catch(b){const Z=ze(b);p({type:"warning",message:Z}),g(`/auth/oops?info=${encodeURIComponent(Z)}`)}})()},[ee]);function Re(me){return Object.entries(me).reduce((b,[Z,te])=>{let ye=te;return!["password","confirmPassword"].includes(Z)&&typeof te=="string"&&(ye=ye.trim(),Z==="lastname"&&(ye=ye||null)),b[Z]=ye,b},{})}return e.createElement(ae.ZP,null,e.createElement(ae.bU,null,e.createElement(xt.J9,{enableReinitialize:!0,initialValues:{firstname:_.firstname||"",lastname:_.lastname||"",email:_.email||"",password:"",confirmPassword:"",registrationToken:ee||void 0,news:!1},onSubmit:async(me,b)=>{const Z=Re(me);try{await l.validate(Z,{abortEarly:!1}),T>0&&o==="register-admin"&&de("didSubmitWithErrorsFirstAdmin",{count:T.toString()}),r(ee?{userInfo:it()(Z,["registrationToken"]),registrationToken:ee}:Z,b)}catch(te){const ye=(0,i.CJ)(te);q(T+1),b.setErrors(ye)}},validateOnChange:!1},({values:me,errors:b,handleChange:Z})=>e.createElement(i.l0,{noValidate:!0},e.createElement(Je.o,null,e.createElement(Te.k,{direction:"column",alignItems:"center",gap:3},e.createElement(Qe.Z,null),e.createElement(ve.Z,{as:"h1",variant:"alpha",textAlign:"center"},S({id:"Auth.form.welcome.title",defaultMessage:"Welcome to Strapi!"})),e.createElement(ve.Z,{variant:"epsilon",textColor:"neutral600",textAlign:"center"},S({id:"Auth.form.register.subtitle",defaultMessage:"Credentials are only used to authenticate in Strapi. All saved data will be stored in your database."}))),e.createElement(Te.k,{direction:"column",alignItems:"stretch",gap:6,marginTop:7},e.createElement(cs.r,{gap:4},e.createElement(zt.P,{col:6},e.createElement(Ge.o,{name:"firstname",required:!0,value:me.firstname,error:b.firstname?S(b.firstname):void 0,onChange:Z,label:S({id:"Auth.form.firstname.label",defaultMessage:"Firstname"})})),e.createElement(zt.P,{col:6},e.createElement(Ge.o,{name:"lastname",value:me.lastname,onChange:Z,label:S({id:"Auth.form.lastname.label",defaultMessage:"Lastname"})}))),e.createElement(Ge.o,{name:"email",disabled:s.includes("email"),value:me.email,onChange:Z,error:b.email?S(b.email):void 0,required:!0,label:S({id:"Auth.form.email.label",defaultMessage:"Email"}),type:"email"}),e.createElement($t,{name:"password",onChange:Z,value:me.password,error:b.password?S(b.password):void 0,endAction:e.createElement(dt.Z,{onClick:te=>{te.preventDefault(),A(ye=>!ye)},label:S(f?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},f?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),hint:S({id:"Auth.form.password.hint",defaultMessage:"Must be at least 8 characters, 1 uppercase, 1 lowercase & 1 number"}),required:!0,label:S({id:"global.password",defaultMessage:"Password"}),type:f?"text":"password"}),e.createElement($t,{name:"confirmPassword",onChange:Z,value:me.confirmPassword,error:b.confirmPassword?S(b.confirmPassword):void 0,endAction:e.createElement(dt.Z,{onClick:te=>{te.preventDefault(),j(ye=>!ye)},label:S(M?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},M?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),required:!0,label:S({id:"Auth.form.confirmPassword.label",defaultMessage:"Confirm Password"}),type:M?"text":"password"}),e.createElement(ds.X,{onValueChange:te=>{Z({target:{value:te,name:"news"}})},value:me.news,name:"news","aria-label":"news"},S({id:"Auth.form.register.news.label",defaultMessage:"Keep me updated about new features & upcoming improvements (by doing this you accept the {terms} and the {policy})."},{terms:e.createElement(Vt,{target:"_blank",href:"https://strapi.io/terms",rel:"noreferrer"},S({id:"Auth.privacy-policy-agreement.terms",defaultMessage:"terms"})),policy:e.createElement(Vt,{target:"_blank",href:"https://strapi.io/privacy",rel:"noreferrer"},S({id:"Auth.privacy-policy-agreement.policy",defaultMessage:"policy"}))})),e.createElement(lt.z,{fullWidth:!0,size:"L",type:"submit"},S({id:"Auth.form.button.register",defaultMessage:"Let's start"})))))),!n&&e.createElement(Ee.x,{paddingTop:4},e.createElement(Te.k,{justifyContent:"center"},e.createElement(i.rU,{label:"Auth.link.signin",to:"/auth/login"},S({id:"Auth.link.signin.account",defaultMessage:"Already have an account?"}))))))};Bt.defaultProps={fieldsToDisable:[],noSignin:!1,onSubmit:o=>o.preventDefault()},Bt.propTypes={authType:a().string.isRequired,fieldsToDisable:a().array,noSignin:a().bool,onSubmit:a().func,schema:a().shape({validate:a().func.isRequired,type:a().string.isRequired}).isRequired};var Yt=Bt;const Jt=(0,Be.ZP)(Ge.o)`
12
12
  ::-ms-reveal {
13
13
  display: none;
14
14
  }
15
- `,Nt=({onSubmit:o,schema:s})=>{const[n,r]=(0,e.useState)(!1),[l,p]=(0,e.useState)(!1),{formatMessage:g}=(0,De.Z)();return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(xt.J9,{enableReinitialize:!0,initialValues:{password:"",confirmPassword:""},onSubmit:o,validationSchema:s,validateOnChange:!1},({values:f,errors:A,handleChange:M})=>e.createElement(i.l0,{noValidate:!0},e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},g({id:"global.reset-password",defaultMessage:"Reset password"}))),A.errorMessage&&e.createElement(ve.Z,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},g({id:A.errorMessage,defaultMessage:"An error occurred"}))),e.createElement(Pe.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(Jt,{name:"password",onChange:M,value:f.password,error:A.password?g({id:A.password,defaultMessage:"This field is required."}):void 0,endAction:e.createElement(dt.Z,{onClick:j=>{j.preventDefault(),r(T=>!T)},label:g(n?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},n?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),hint:g({id:"Auth.form.password.hint",defaultMessage:"Password must contain at least 8 characters, 1 uppercase, 1 lowercase and 1 number"}),required:!0,label:g({id:"global.password",defaultMessage:"Password"}),type:n?"text":"password"}),e.createElement(Jt,{name:"confirmPassword",onChange:M,value:f.confirmPassword,error:A.confirmPassword?g({id:A.confirmPassword,defaultMessage:"This value is required."}):void 0,endAction:e.createElement(dt.Z,{onClick:j=>{j.preventDefault(),p(T=>!T)},label:g(n?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},l?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),required:!0,label:g({id:"Auth.form.confirmPassword.label",defaultMessage:"Confirm Password"}),type:l?"text":"password"}),e.createElement(lt.z,{fullwidth:!0,type:"submit"},g({id:"global.change-password",defaultMessage:"Change password"})))))),e.createElement(Pe.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},g({id:"Auth.link.ready",defaultMessage:"Ready to sign in?"}))))))};Nt.defaultProps={onSubmit:o=>o.preventDefault()},Nt.propTypes={onSubmit:a().func,schema:a().shape({type:a().string.isRequired}).isRequired};var ms=Nt;const Qt={"forgot-password":{Component:is,endPoint:"forgot-password",fieldsToDisable:[],fieldsToOmit:[],schema:w.Ry().shape({email:w.Z_().email(i.I0.email).required(i.I0.required)}),inputsPrefix:""},"forgot-password-success":{Component:ls,endPoint:"",fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""},login:{endPoint:"login",fieldsToDisable:[],fieldsToOmit:["rememberMe"],schema:w.Ry().shape({email:w.Z_().email(i.I0.email).required(i.I0.required),password:w.Z_().required(i.I0.required),rememberMe:w.Xg().nullable()}),inputsPrefix:""},oops:{Component:us,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""},register:{Component:Yt,endPoint:"register",fieldsToDisable:["email"],fieldsToOmit:["userInfo.confirmPassword","userInfo.news","userInfo.email"],schema:w.Ry().shape({firstname:w.Z_().trim().required(i.I0.required),lastname:w.Z_(),password:w.Z_().min(8,i.I0.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(i.I0.required),confirmPassword:w.Z_().oneOf([w.iH("password"),null],"components.Input.error.password.noMatch").required(i.I0.required),registrationToken:w.Z_().required(i.I0.required)}),inputsPrefix:"userInfo."},"register-admin":{Component:Yt,endPoint:"register-admin",noSignin:!0,fieldsToDisable:[],fieldsToOmit:["confirmPassword","news"],schema:w.Ry().shape({firstname:w.Z_().trim().required(i.I0.required),lastname:w.Z_(),password:w.Z_().min(8,i.I0.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(i.I0.required),email:w.Z_().email(i.I0.email).strict().lowercase(i.I0.lowercase).required(i.I0.required),confirmPassword:w.Z_().oneOf([w.iH("password"),null],"components.Input.error.password.noMatch").required(i.I0.required)}),inputsPrefix:""},"reset-password":{Component:ms,endPoint:"reset-password",fieldsToDisable:[],fieldsToOmit:["confirmPassword"],schema:w.Ry().shape({password:w.Z_().min(8,i.I0.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(i.I0.required),confirmPassword:w.Z_().oneOf([w.iH("password"),null],"components.Input.error.password.noMatch").required(i.I0.required)})}};var gs=o=>o;const Xt={formErrors:{},modifiedData:{},requestError:null},ps=(o,s)=>(0,D.ZP)(o,n=>{switch(s.type){case"ON_CHANGE":{je()(n.modifiedData,s.keys.split("."),s.value);break}case"RESET_PROPS":return Xt;case"SET_DATA":{n.modifiedData=s.data;break}case"SET_ERRORS":{n.formErrors=s.errors;break}case"SET_REQUEST_ERROR":{n.requestError={errorMessage:s.errorMessage,errorStatus:s.errorStatus};break}default:return n}}),Wt=({hasAdmin:o,setHasAdmin:s})=>{const{push:n,location:{search:r}}=(0,le.k6)(),{changeLocale:l}=(0,as.Z)(),{setSkipped:p}=(0,i.c1)(),{trackUsage:g}=(0,i.rS)(),{params:{authType:f}}=(0,le.$B)("/auth/:authType"),A=(0,i.aM)(),M=(0,ue.c)(Ut,async()=>(await t.e(2395).then(t.bind(t,82395))).LoginEE),j=(0,ue.c)(Qt,async()=>(await t.e(8276).then(t.bind(t,18276))).FORMS,{combine(Z,Q){return{...Z,...Q}},defaultValue:Qt}),[{formErrors:T,modifiedData:q,requestError:_},H]=(0,e.useReducer)(ps,Xt,gs),S=ne.default.CancelToken.source(),{endPoint:Ke,fieldsToDisable:ze,fieldsToOmit:J,inputsPrefix:ee,schema:Te,...me}=j?.[f]??{};(0,e.useEffect)(()=>()=>{S.cancel("Component unmounted")},[]);const{post:b}=(0,i.kY)();(0,e.useEffect)(()=>{H({type:"RESET_PROPS"})},[f]);const F=({target:{name:Z,value:Q}})=>{H({type:"ON_CHANGE",keys:Z,value:Q})},te=async(Z,{setSubmitting:Q,setErrors:Re})=>{Q(!0);const Ie=it()(Z,J),B=`/admin/${Ke}`;f==="login"&&await Is(Z,B,{setSubmitting:Q,setErrors:Re}),(f==="register"||f==="register-admin")&&await ks(Z,B,{setSubmitting:Q,setErrors:Re}),f==="forgot-password"&&await Ce(Ie,B,{setSubmitting:Q,setErrors:Re}),f==="reset-password"&&await Os(Ie,B,{setSubmitting:Q,setErrors:Re})},Ce=async(Z,Q,{setSubmitting:Re,setErrors:Ie})=>{try{await b(Q,Z,{cancelToken:S.token}),n("/auth/forgot-password-success")}catch(B){console.error(B),Ie({errorMessage:"notification.error"})}finally{Re(!1)}},Is=async(Z,Q,{setSubmitting:Re,setErrors:Ie})=>{try{const{data:{data:{token:B,user:re}}}=await b(Q,it()(Z,J),{cancelToken:S.token});re.preferedLanguage&&l(re.preferedLanguage),i.I8.setToken(B,Z.rememberMe),i.I8.setUserInfo(re,Z.rememberMe),_t()}catch(B){if(B.response){const re=Le()(B,["response","data","error","message"],"Something went wrong");if(Fe()(re).toLowerCase()==="usernotactive"){n("/auth/oops"),H({type:"RESET_PROPS"});return}Ie({errorMessage:re})}}finally{Re(!1)}},ks=async(Z,Q,{setSubmitting:Re,setErrors:Ie})=>{try{g("willCreateFirstAdmin");const{data:{data:{token:B,user:re}}}=await b(Q,it()(Z,J),{cancelToken:S.token});i.I8.setToken(B,!1),i.I8.setUserInfo(re,!1),Re(!1),s(!0);const{roles:Xe}=re;if(Xe&&Xe.find(({code:js})=>js==="strapi-super-admin")&&(be.setSkipped(!1),p(!1),g("didLaunchGuidedtour")),f==="register"&&Z.userInfo.news===!0||f==="register-admin"&&Z.news===!0){n({pathname:"/usecase",search:`?hasAdmin=${o}`});return}_t()}catch(B){if(g("didNotCreateFirstAdmin"),B.response){const{data:re}=B.response,Xe=(0,os.Z)(re);Ie({apiErrors:Xe})}}},Os=async(Z,Q,{setErrors:Re,setSubmitting:Ie})=>{try{const{data:{data:{token:B,user:re}}}=await b(Q,{...Z,resetPasswordToken:A.get("code")},{cancelToken:S.token});i.I8.setToken(B,!1),i.I8.setUserInfo(re,!1),n("/")}catch(B){if(B.response){const re=Le()(B,["response","data","message"],"Something went wrong"),Xe=Le()(B,["response","data","statusCode"],400);H({type:"SET_REQUEST_ERROR",errorMessage:re,errorStatus:Xe}),Re({errorMessage:re})}}finally{Ie(!1)}},_t=()=>{if(f==="login"){const Z=A.get("redirectTo"),Q=Z?decodeURIComponent(Z):"/";n(Q)}else n("/")};if(!j[f]||o&&f==="register-admin"||i.I8.getToken())return e.createElement(le.l_,{to:"/"});if(!o&&f!=="register-admin")return e.createElement(le.l_,{to:{pathname:"/auth/register-admin",search:r}});if(M&&(j.login.Component=M),!M)return null;const{Component:ws}=j?.[f]??{};return e.createElement(ws,{...me,authType:f,fieldsToDisable:ze,formErrors:T,inputsPrefix:ee,modifiedData:q,onChange:F,onSubmit:te,requestError:_,schema:Te})};Wt.defaultProps={hasAdmin:!1},Wt.propTypes={hasAdmin:a().bool,setHasAdmin:a().func.isRequired};var fs=Wt,hs=t(33248),Es=t(68465),vs=t(84967),ys=t(7563),Ps=t(33348);const Ts=[{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"}],Rs=(0,Be.ZP)(ve.Z)`
15
+ `,Nt=({onSubmit:o,schema:s})=>{const[n,r]=(0,e.useState)(!1),[l,p]=(0,e.useState)(!1),{formatMessage:g}=(0,De.Z)();return e.createElement(ae.ZP,null,e.createElement(Je.o,null,e.createElement(ae.bU,null,e.createElement(xt.J9,{enableReinitialize:!0,initialValues:{password:"",confirmPassword:""},onSubmit:o,validationSchema:s,validateOnChange:!1},({values:f,errors:A,handleChange:M})=>e.createElement(i.l0,{noValidate:!0},e.createElement(ae.sg,null,e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:7},e.createElement(ve.Z,{as:"h1",variant:"alpha"},g({id:"global.reset-password",defaultMessage:"Reset password"}))),A.errorMessage&&e.createElement(ve.Z,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},g({id:A.errorMessage,defaultMessage:"An error occurred"}))),e.createElement(Te.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(Jt,{name:"password",onChange:M,value:f.password,error:A.password?g({id:A.password,defaultMessage:"This field is required."}):void 0,endAction:e.createElement(dt.Z,{onClick:j=>{j.preventDefault(),r(T=>!T)},label:g(n?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},n?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),hint:g({id:"Auth.form.password.hint",defaultMessage:"Password must contain at least 8 characters, 1 uppercase, 1 lowercase and 1 number"}),required:!0,label:g({id:"global.password",defaultMessage:"Password"}),type:n?"text":"password"}),e.createElement(Jt,{name:"confirmPassword",onChange:M,value:f.confirmPassword,error:A.confirmPassword?g({id:A.confirmPassword,defaultMessage:"This value is required."}):void 0,endAction:e.createElement(dt.Z,{onClick:j=>{j.preventDefault(),p(T=>!T)},label:g(n?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},l?e.createElement(ut.Z,null):e.createElement(ct.Z,null)),required:!0,label:g({id:"Auth.form.confirmPassword.label",defaultMessage:"Confirm Password"}),type:l?"text":"password"}),e.createElement(lt.z,{fullwidth:!0,type:"submit"},g({id:"global.change-password",defaultMessage:"Change password"})))))),e.createElement(Te.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(i.rU,{to:"/auth/login"},g({id:"Auth.link.ready",defaultMessage:"Ready to sign in?"}))))))};Nt.defaultProps={onSubmit:o=>o.preventDefault()},Nt.propTypes={onSubmit:a().func,schema:a().shape({type:a().string.isRequired}).isRequired};var ms=Nt;const Qt={"forgot-password":{Component:is,endPoint:"forgot-password",fieldsToDisable:[],fieldsToOmit:[],schema:w.Ry().shape({email:w.Z_().email(i.I0.email).required(i.I0.required)}),inputsPrefix:""},"forgot-password-success":{Component:ls,endPoint:"",fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""},login:{endPoint:"login",fieldsToDisable:[],fieldsToOmit:["rememberMe"],schema:w.Ry().shape({email:w.Z_().email(i.I0.email).required(i.I0.required),password:w.Z_().required(i.I0.required),rememberMe:w.Xg().nullable()}),inputsPrefix:""},oops:{Component:us,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""},register:{Component:Yt,endPoint:"register",fieldsToDisable:["email"],fieldsToOmit:["userInfo.confirmPassword","userInfo.news","userInfo.email"],schema:w.Ry().shape({firstname:w.Z_().trim().required(i.I0.required),lastname:w.Z_(),password:w.Z_().min(8,i.I0.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(i.I0.required),confirmPassword:w.Z_().oneOf([w.iH("password"),null],"components.Input.error.password.noMatch").required(i.I0.required),registrationToken:w.Z_().required(i.I0.required)}),inputsPrefix:"userInfo."},"register-admin":{Component:Yt,endPoint:"register-admin",noSignin:!0,fieldsToDisable:[],fieldsToOmit:["confirmPassword","news"],schema:w.Ry().shape({firstname:w.Z_().trim().required(i.I0.required),lastname:w.Z_(),password:w.Z_().min(8,i.I0.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(i.I0.required),email:w.Z_().email(i.I0.email).strict().lowercase(i.I0.lowercase).required(i.I0.required),confirmPassword:w.Z_().oneOf([w.iH("password"),null],"components.Input.error.password.noMatch").required(i.I0.required)}),inputsPrefix:""},"reset-password":{Component:ms,endPoint:"reset-password",fieldsToDisable:[],fieldsToOmit:["confirmPassword"],schema:w.Ry().shape({password:w.Z_().min(8,i.I0.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(i.I0.required),confirmPassword:w.Z_().oneOf([w.iH("password"),null],"components.Input.error.password.noMatch").required(i.I0.required)})}};var gs=o=>o;const Xt={formErrors:{},modifiedData:{},requestError:null},ps=(o,s)=>(0,D.ZP)(o,n=>{switch(s.type){case"ON_CHANGE":{je()(n.modifiedData,s.keys.split("."),s.value);break}case"RESET_PROPS":return Xt;case"SET_DATA":{n.modifiedData=s.data;break}case"SET_ERRORS":{n.formErrors=s.errors;break}case"SET_REQUEST_ERROR":{n.requestError={errorMessage:s.errorMessage,errorStatus:s.errorStatus};break}default:return n}}),Wt=({hasAdmin:o,setHasAdmin:s})=>{const{push:n,location:{search:r}}=(0,le.k6)(),{changeLocale:l}=(0,as.Z)(),{setSkipped:p}=(0,i.c1)(),{trackUsage:g}=(0,i.rS)(),{params:{authType:f}}=(0,le.$B)("/auth/:authType"),A=(0,i.aM)(),M=(0,ue.c)(Ut,async()=>(await t.e(2395).then(t.bind(t,82395))).LoginEE),j=(0,ue.c)(Qt,async()=>(await t.e(8276).then(t.bind(t,18276))).FORMS,{combine(B,Q){return{...B,...Q}},defaultValue:Qt}),[{formErrors:T,modifiedData:q,requestError:_},F]=(0,e.useReducer)(ps,Xt,gs),S=ne.default.CancelToken.source(),{endPoint:Ke,fieldsToDisable:ze,fieldsToOmit:J,inputsPrefix:ee,schema:Re,...me}=j?.[f]??{};(0,e.useEffect)(()=>()=>{S.cancel("Component unmounted")},[]);const{post:b}=(0,i.kY)();(0,e.useEffect)(()=>{F({type:"RESET_PROPS"})},[f]);const Z=({target:{name:B,value:Q}})=>{F({type:"ON_CHANGE",keys:B,value:Q})},te=async(B,{setSubmitting:Q,setErrors:Ce})=>{Q(!0);const Ie=it()(B,J),N=`/admin/${Ke}`;f==="login"&&await Is(B,N,{setSubmitting:Q,setErrors:Ce}),(f==="register"||f==="register-admin")&&await ks(B,N,{setSubmitting:Q,setErrors:Ce}),f==="forgot-password"&&await ye(Ie,N,{setSubmitting:Q,setErrors:Ce}),f==="reset-password"&&await Os(Ie,N,{setSubmitting:Q,setErrors:Ce})},ye=async(B,Q,{setSubmitting:Ce,setErrors:Ie})=>{try{await b(Q,B,{cancelToken:S.token}),n("/auth/forgot-password-success")}catch(N){console.error(N),Ie({errorMessage:"notification.error"})}finally{Ce(!1)}},Is=async(B,Q,{setSubmitting:Ce,setErrors:Ie})=>{try{const{data:{data:{token:N,user:re}}}=await b(Q,it()(B,J),{cancelToken:S.token});re.preferedLanguage&&l(re.preferedLanguage),i.I8.setToken(N,B.rememberMe),i.I8.setUserInfo(re,B.rememberMe),_t()}catch(N){if(N.response){const re=Le()(N,["response","data","error","message"],"Something went wrong");if(Fe()(re).toLowerCase()==="usernotactive"){n("/auth/oops"),F({type:"RESET_PROPS"});return}Ie({errorMessage:re})}}finally{Ce(!1)}},ks=async(B,Q,{setSubmitting:Ce,setErrors:Ie})=>{try{g("willCreateFirstAdmin");const{data:{data:{token:N,user:re}}}=await b(Q,it()(B,J),{cancelToken:S.token});i.I8.setToken(N,!1),i.I8.setUserInfo(re,!1),Ce(!1),s(!0);const{roles:Xe}=re;if(Xe&&Xe.find(({code:js})=>js==="strapi-super-admin")&&(be.setSkipped(!1),p(!1),g("didLaunchGuidedtour")),f==="register"&&B.userInfo.news===!0||f==="register-admin"&&B.news===!0){n({pathname:"/usecase",search:`?hasAdmin=${o}`});return}_t()}catch(N){if(g("didNotCreateFirstAdmin"),N.response){const{data:re}=N.response,Xe=(0,os.Z)(re);Ie({apiErrors:Xe})}}},Os=async(B,Q,{setErrors:Ce,setSubmitting:Ie})=>{try{const{data:{data:{token:N,user:re}}}=await b(Q,{...B,resetPasswordToken:A.get("code")},{cancelToken:S.token});i.I8.setToken(N,!1),i.I8.setUserInfo(re,!1),n("/")}catch(N){if(N.response){const re=Le()(N,["response","data","message"],"Something went wrong"),Xe=Le()(N,["response","data","statusCode"],400);F({type:"SET_REQUEST_ERROR",errorMessage:re,errorStatus:Xe}),Ce({errorMessage:re})}}finally{Ie(!1)}},_t=()=>{if(f==="login"){const B=A.get("redirectTo"),Q=B?decodeURIComponent(B):"/";n(Q)}else n("/")};if(!j[f]||o&&f==="register-admin"||i.I8.getToken())return e.createElement(le.l_,{to:"/"});if(!o&&f!=="register-admin")return e.createElement(le.l_,{to:{pathname:"/auth/register-admin",search:r}});if(M&&(j.login.Component=M),!M)return null;const{Component:ws}=j?.[f]??{};return e.createElement(ws,{...me,authType:f,fieldsToDisable:ze,formErrors:T,inputsPrefix:ee,modifiedData:q,onChange:Z,onSubmit:te,requestError:_,schema:Re})};Wt.defaultProps={hasAdmin:!1},Wt.propTypes={hasAdmin:a().bool,setHasAdmin:a().func.isRequired};var fs=Wt,hs=t(33248),Es=t(68465),vs=t(84967),ys=t(7563),Ps=t(33348);const Ts=[{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"}],Rs=(0,Be.ZP)(ve.Z)`
16
16
  text-align: center;
17
- `;var Cs=()=>{const o=(0,i.lm)(),{push:s,location:n}=(0,le.k6)(),{formatMessage:r}=(0,De.Z)(),[l,p]=(0,e.useState)(),[g,f]=(0,e.useState)(""),{post:A}=(0,i.kY)(),{firstname:M,email:j}=i.I8.getUserInfo(),{hasAdmin:T}=(0,Ps.parse)(n?.search,{ignoreQueryPrefix:!0}),q=l==="other",_=async(H,de)=>{H.preventDefault();try{await A("https://analytics.strapi.io/register",{email:j,username:M,firstAdmin:Boolean(!T),persona:{role:de?void 0:l,otherRole:de?void 0:g}}),o({type:"success",message:{id:"Usecase.notification.success.project-created",defaultMessage:"Project has been successfully created"}}),s("/")}catch{}};return e.createElement(ae.ZP,null,e.createElement(Je.o,{labelledBy:"usecase-title"},e.createElement(ae.bU,null,e.createElement("form",{onSubmit:H=>_(H,!1)},e.createElement(Pe.k,{direction:"column",paddingBottom:7},e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:1,width:(0,i.Q1)(250)},e.createElement(Rs,{variant:"alpha",as:"h1",id:"usecase-title"},r({id:"Usecase.title",defaultMessage:"Tell us a bit more about yourself"})))),e.createElement(Pe.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(Es.P,{id:"usecase","data-testid":"usecase",label:r({id:"Usecase.input.work-type",defaultMessage:"What type of work do you do?"}),onChange:p,value:l},Ts.map(({intlLabel:H,value:de})=>e.createElement(vs.W,{key:de,value:de},r(H)))),q&&e.createElement(Ge.o,{name:"other",label:r({id:"Usecase.other",defaultMessage:"Other"}),value:g,onChange:H=>f(H.target.value),"data-testid":"other"}),e.createElement(lt.z,{type:"submit",size:"L",fullWidth:!0,disabled:!l},r({id:"global.finish",defaultMessage:"Finish"}))))),e.createElement(Pe.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(ys.A,{onClick:()=>_(!0)},r({id:"Usecase.button.skip",defaultMessage:"Skip this question"}))))))},qt=t(4556);const Ss=(0,e.lazy)(()=>Promise.all([t.e(6691),t.e(801)]).then(t.bind(t,63546)));function As(){const o=(0,ue.c)(He,async()=>(await t.e(3100).then(t.bind(t,73100))).ADMIN_PERMISSIONS_EE,{combine(J,ee){return O()({},J,ee)},defaultValue:He}),s=(0,ue.c)(qt.y3,async()=>(await t.e(1386).then(t.bind(t,31386))).ROUTES_EE,{defaultValue:[]}),n=(0,i.lm)(),{updateProjectSettings:r}=(0,bt.um)(),{formatMessage:l}=(0,De.Z)(),[{isLoading:p,hasAdmin:g,uuid:f,deviceId:A},M]=(0,e.useState)({isLoading:!0,hasAdmin:!1}),j=(0,fe.I0)(),T=(0,i.L7)(),{get:q,post:_}=(0,i.kY)(),H=(0,e.useMemo)(()=>(0,se.WW)(s.map(({to:J,Component:ee,exact:Te})=>(0,se.ot)(ee,J,Te))),[s]),[de,S]=(0,e.useState)(null);(0,e.useEffect)(()=>{j({type:qt.XS,payload:o})},[o,j]),(0,e.useEffect)(()=>{const J=i.I8.getToken();J&&(async()=>{try{const{data:{data:{token:Te}}}=await _("/admin/renew-token",{token:J});i.I8.updateToken(Te)}catch{i.I8.clearAppStorage(),window.location.reload()}})()},[_]),(0,e.useEffect)(()=>{(async()=>{try{const{data:{data:{hasAdmin:ee,uuid:Te,menuLogo:me,authLogo:b}}}=await q("/admin/init");if(r({menuLogo:(0,i.CR)(me),authLogo:(0,i.CR)(b)}),Te){const{data:{data:F}}=await q("/admin/telemetry-properties",{validateStatus:te=>te<500});S(F);try{const te="didInitializeAdministration";await _("https://analytics.strapi.io/api/v2/track",{event:te,userId:"",deviceId:A,eventPropeties:{},userProperties:{environment:T.currentEnvironment},groupProperties:{...F,projectId:Te}},{headers:{"X-Strapi-Event":te}})}catch{}}M({isLoading:!1,hasAdmin:ee,uuid:Te,deviceId:A})}catch{n({type:"warning",message:{id:"app.containers.App.notification.error.init"}})}})()},[n,r]);const Ke=J=>M(ee=>({...ee,hasAdmin:J})),ze=(0,e.useMemo)(()=>({uuid:f,telemetryProperties:de,deviceId:A}),[f,de,A]);return p?e.createElement(i.dO,null):e.createElement(e.Suspense,{fallback:e.createElement(i.dO,null)},e.createElement(Ne.z,null,l({id:"skipToContent"})),e.createElement(i.L8,{value:ze},e.createElement(le.rs,null,H,e.createElement(le.AW,{path:"/auth/:authType",render:J=>e.createElement(fs,{...J,setHasAdmin:Ke,hasAdmin:g}),exact:!0}),e.createElement(Ue,{path:"/usecase",component:Cs}),e.createElement(Ue,{path:"/",component:Ss}),e.createElement(le.AW,{path:"",component:hs.default}))))}var Ms=As,Ls={ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",ca:"Catal\xE0",cs:"\u010Ce\u0161tina",de:"Deutsch",dk:"Dansk",en:"English",es:"Espa\xF1ol",eu:"Euskara",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"};class bs{constructor({adminConfig:s,appPlugins:n,library:r,middlewares:l,reducers:p}){this.customConfigurations=s.config,this.customBootstrapConfiguration=s.bootstrap,this.configurations={authLogo:$,head:{favicon:we},locales:["en"],menuLogo:$,notifications:{releases:!0},themes:{light:E.W,dark:P.$},translations:{},tutorials:!0},this.appPlugins=n||{},this.library=r,this.middlewares=l,this.plugins={},this.reducers=p,this.translations={},this.hooksDict={},this.admin={injectionZones:Ye},this.customFields=C.rh,this.menu=[],this.settings={global:{id:"global",intlLabel:{id:"Settings.global",defaultMessage:"Global Settings"},links:[]}}}addComponents=s=>{Array.isArray(s)?s.map(n=>this.library.components.add(n)):this.library.components.add(s)};addCorePluginMenuLink=s=>{const n=JSON.stringify(s);m()(s.to,`link.to should be defined for ${n}`),m()(typeof s.to=="string",`Expected link.to to be a string instead received ${typeof s.to}`),m()(["/plugins/content-type-builder","/plugins/upload"].includes(s.to),"This method is not available for your plugin"),m()(s.intlLabel?.id&&s.intlLabel?.defaultMessage,`link.intlLabel.id & link.intlLabel.defaultMessage for ${n}`),this.menu.push(s)};addFields=s=>{Array.isArray(s)?s.map(n=>this.library.fields.add(n)):this.library.fields.add(s)};addMenuLink=s=>{const n=JSON.stringify(s);m()(s.to,`link.to should be defined for ${n}`),m()(typeof s.to=="string",`Expected link.to to be a string instead received ${typeof s.to}`),m()(s.intlLabel?.id&&s.intlLabel?.defaultMessage,`link.intlLabel.id & link.intlLabel.defaultMessage for ${n}`),m()(s.Component&&typeof s.Component=="function","link.Component should be a valid React Component"),m()(s.icon&&typeof s.icon=="function","link.Icon should be a valid React Component"),this.menu.push(s)};addMiddlewares=s=>{s.forEach(n=>{this.middlewares.add(n)})};addReducers=s=>{Object.keys(s).forEach(n=>{this.reducers.add(n,s[n])})};addSettingsLink=(s,n)=>{m()(this.settings[s],"The section does not exist");const r=JSON.stringify(n);m()(n.id,`link.id should be defined for ${r}`),m()(n.intlLabel?.id&&n.intlLabel?.defaultMessage,`link.intlLabel.id & link.intlLabel.defaultMessage for ${r}`),m()(n.to,`link.to should be defined for ${r}`),m()(n.Component&&typeof n.Component=="function","link.Component should be a valid React Component"),this.settings[s].links.push(n)};addSettingsLinks=(s,n)=>{m()(this.settings[s],"The section does not exist"),m()(Array.isArray(n),"TypeError expected links to be an array"),n.forEach(r=>{this.addSettingsLink(s,r)})};async bootstrap(){Object.keys(this.appPlugins).forEach(s=>{const n=this.appPlugins[s].bootstrap;n&&n({addSettingsLink:this.addSettingsLink,addSettingsLinks:this.addSettingsLinks,getPlugin:this.getPlugin,injectContentManagerComponent:this.injectContentManagerComponent,injectAdminComponent:this.injectAdminComponent,registerHook:this.registerHook})}),N()(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})}bootstrapAdmin=async()=>(await this.createCustomConfigurations(),this.createHook(W.No),this.createHook(W.LK),this.createHook(W.dV),this.createHook(W.Eo),Promise.resolve());createCustomConfigurations=async()=>{if(this.customConfigurations?.locales&&(this.configurations.locales=["en",...this.customConfigurations.locales?.filter(s=>s!=="en")||[]]),this.customConfigurations?.auth?.logo&&(this.configurations.authLogo=this.customConfigurations.auth.logo),this.customConfigurations?.menu?.logo&&(this.configurations.menuLogo=this.customConfigurations.menu.logo),this.customConfigurations?.head?.favicon&&(this.configurations.head.favicon=this.customConfigurations.head.favicon),this.customConfigurations?.theme){const s=this.customConfigurations.theme.dark,n=this.customConfigurations.theme.light;!s&&!n&&(console.warn("[deprecated] In future versions, Strapi will stop supporting this theme customization syntax. The theme configuration accepts a light and a dark key to customize each theme separately. See https://docs.strapi.io/developer-docs/latest/development/admin-customization.html#theme-extension."),O()(this.configurations.themes.light,this.customConfigurations.theme)),n&&O()(this.configurations.themes.light,n),s&&O()(this.configurations.themes.dark,s)}this.customConfigurations?.notifications?.releases!==void 0&&(this.configurations.notifications.releases=this.customConfigurations.notifications.releases),this.customConfigurations?.tutorials!==void 0&&(this.configurations.tutorials=this.customConfigurations.tutorials)};createHook=s=>{this.hooksDict[s]=x()};createSettingSection=(s,n)=>{m()(s.id,"section.id should be defined"),m()(s.intlLabel?.id&&s.intlLabel?.defaultMessage,"section.intlLabel should be defined"),m()(Array.isArray(n),"TypeError expected links to be an array"),m()(this.settings[s.id]===void 0,"A similar section already exists"),this.settings[s.id]={...s,links:[]},n.forEach(r=>{this.addSettingsLink(s.id,r)})};createStore=()=>k(this.middlewares.middlewares,this.reducers.reducers);getAdminInjectedComponents=(s,n,r)=>{try{return this.admin.injectionZones[s][n][r]||[]}catch(l){return console.error("Cannot get injected component",l),l}};getPlugin=s=>this.plugins[s];async initialize(){Object.keys(this.appPlugins).forEach(s=>{this.appPlugins[s].register(this)})}injectContentManagerComponent=(s,n,r)=>{m()(this.admin.injectionZones.contentManager[s]?.[n],`The ${s} ${n} zone is not defined in the content manager`),m()(r,"A Component must be provided"),this.admin.injectionZones.contentManager[s][n].push(r)};injectAdminComponent=(s,n,r)=>{m()(this.admin.injectionZones.admin[s]?.[n],`The ${s} ${n} zone is not defined in the admin`),m()(r,"A Component must be provided"),this.admin.injectionZones.admin[s][n].push(r)};async loadAdminTrads(){const s=this.configurations.locales.map(l=>t(48224)(`./${l}.json`).then(({default:p})=>({data:p,locale:l})).catch(()=>({data:null,locale:l})));return(await Promise.all(s)).reduce((l,p)=>(p.data&&(l[p.locale]=p.data),l),{})}async loadTrads(){const s=await this.loadAdminTrads(),n=Object.keys(this.appPlugins).map(g=>{const f=this.appPlugins[g].registerTrads;return f?f({locales:this.configurations.locales}):null}).filter(g=>g),l=(await Promise.all(n)).reduce((g,f)=>{const A=f.reduce((M,j)=>(M[j.locale]=j.data,M),{});return Object.keys(A).forEach(M=>{g[M]={...g[M],...A[M]}}),g},{}),p=this.configurations.locales.reduce((g,f)=>(g[f]={...s[f],...l[f]||{},...this.customConfigurations?.translations?.[f]},g),{});return this.configurations.translations=p,Promise.resolve()}registerHook=(s,n)=>{m()(this.hooksDict[s],`The hook ${s} is not defined. You are trying to register a hook that does not exist in the application.`),this.hooksDict[s].register(n)};registerPlugin=s=>{const n=(0,C.Sy)(s);this.plugins[n.pluginId]=n};runHookSeries=(s,n=!1)=>n?this.hooksDict[s].runSeriesAsync():this.hooksDict[s].runSeries();runHookWaterfall=(s,n,r=!1,l)=>r?this.hooksDict[s].runWaterfallAsync(n,l):this.hooksDict[s].runWaterfall(n,l);runHookParallel=s=>this.hooksDict[s].runParallel();render(){const s=this.createStore(),n=z()(Ls,this.configurations.locales||[]),{components:{components:r},fields:{fields:l}}=this.library;return e.createElement(u,{authLogo:this.configurations.authLogo,components:r,fields:l,customFields:this.customFields,localeNames:n,getAdminInjectedComponents:this.getAdminInjectedComponents,getPlugin:this.getPlugin,messages:this.configurations.translations,menu:this.menu,menuLogo:this.configurations.menuLogo,plugins:this.plugins,runHookParallel:this.runHookParallel,runHookWaterfall:(p,g,f=!1)=>this.runHookWaterfall(p,g,f,s),runHookSeries:this.runHookSeries,themes:this.configurations.themes,settings:this.settings,showTutorials:this.configurations.tutorials,showReleaseNotification:this.configurations.notifications.releases,store:s},e.createElement(e.Fragment,null,e.createElement(ge.q,{link:[{rel:"icon",type:"image/png",href:this.configurations.head.favicon}],htmlAttributes:{lang:localStorage.getItem(Ae)||"en"}}),e.createElement(V.VK,{basename:K.Z},e.createElement(Ms,{store:s}))))}}var Ds=({adminConfig:o={},appPlugins:s,library:n,middlewares:r,reducers:l})=>new bs({adminConfig:o,appPlugins:s,library:n,middlewares:r,reducers:l})},33229:function(G,y,t){"use strict";var e=t(32735);const E=(0,e.createContext)();y.Z=E},51399:function(G,y,t){"use strict";var e=t(32735),E=t(33229);const P=()=>{const{changeLocale:v,localeNames:m,messages:h}=(0,e.useContext)(E.Z);return{changeLocale:v,localeNames:m,messages:h}};y.Z=P},73678:function(G,y,t){"use strict";var e=t(32735),E=t(8471),P=t(2160);const v=E.ZP.img`
17
+ `;var Cs=()=>{const o=(0,i.lm)(),{push:s,location:n}=(0,le.k6)(),{formatMessage:r}=(0,De.Z)(),[l,p]=(0,e.useState)(),[g,f]=(0,e.useState)(""),{post:A}=(0,i.kY)(),{firstname:M,email:j}=i.I8.getUserInfo(),{hasAdmin:T}=(0,Ps.parse)(n?.search,{ignoreQueryPrefix:!0}),q=l==="other",_=async(F,de)=>{F.preventDefault();try{await A("https://analytics.strapi.io/register",{email:j,username:M,firstAdmin:Boolean(!T),persona:{role:de?void 0:l,otherRole:de?void 0:g}}),o({type:"success",message:{id:"Usecase.notification.success.project-created",defaultMessage:"Project has been successfully created"}}),s("/")}catch{}};return e.createElement(ae.ZP,null,e.createElement(Je.o,{labelledBy:"usecase-title"},e.createElement(ae.bU,null,e.createElement("form",{onSubmit:F=>_(F,!1)},e.createElement(Te.k,{direction:"column",paddingBottom:7},e.createElement(Qe.Z,null),e.createElement(Ee.x,{paddingTop:6,paddingBottom:1,width:(0,i.Q1)(250)},e.createElement(Rs,{variant:"alpha",as:"h1",id:"usecase-title"},r({id:"Usecase.title",defaultMessage:"Tell us a bit more about yourself"})))),e.createElement(Te.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(Es.P,{id:"usecase","data-testid":"usecase",label:r({id:"Usecase.input.work-type",defaultMessage:"What type of work do you do?"}),onChange:p,value:l},Ts.map(({intlLabel:F,value:de})=>e.createElement(vs.W,{key:de,value:de},r(F)))),q&&e.createElement(Ge.o,{name:"other",label:r({id:"Usecase.other",defaultMessage:"Other"}),value:g,onChange:F=>f(F.target.value),"data-testid":"other"}),e.createElement(lt.z,{type:"submit",size:"L",fullWidth:!0,disabled:!l},r({id:"global.finish",defaultMessage:"Finish"}))))),e.createElement(Te.k,{justifyContent:"center"},e.createElement(Ee.x,{paddingTop:4},e.createElement(ys.A,{onClick:()=>_(!0)},r({id:"Usecase.button.skip",defaultMessage:"Skip this question"}))))))},qt=t(4556);const Ss=(0,e.lazy)(()=>Promise.all([t.e(6691),t.e(801)]).then(t.bind(t,63546)));function As(){const o=(0,ue.c)(He,async()=>(await t.e(3100).then(t.bind(t,73100))).ADMIN_PERMISSIONS_EE,{combine(J,ee){return O()({},J,ee)},defaultValue:He}),s=(0,ue.c)(qt.y3,async()=>(await t.e(1386).then(t.bind(t,31386))).ROUTES_EE,{defaultValue:[]}),n=(0,i.lm)(),{updateProjectSettings:r}=(0,bt.um)(),{formatMessage:l}=(0,De.Z)(),[{isLoading:p,hasAdmin:g,uuid:f,deviceId:A},M]=(0,e.useState)({isLoading:!0,hasAdmin:!1}),j=(0,fe.I0)(),T=(0,i.L7)(),{get:q,post:_}=(0,i.kY)(),F=(0,e.useMemo)(()=>(0,se.WW)(s.map(({to:J,Component:ee,exact:Re})=>(0,se.ot)(ee,J,Re))),[s]),[de,S]=(0,e.useState)(null);(0,e.useEffect)(()=>{j({type:qt.XS,payload:o})},[o,j]),(0,e.useEffect)(()=>{const J=i.I8.getToken();J&&(async()=>{try{const{data:{data:{token:Re}}}=await _("/admin/renew-token",{token:J});i.I8.updateToken(Re)}catch{i.I8.clearAppStorage(),window.location.reload()}})()},[_]),(0,e.useEffect)(()=>{(async()=>{try{const{data:{data:{hasAdmin:ee,uuid:Re,menuLogo:me,authLogo:b}}}=await q("/admin/init");if(r({menuLogo:(0,i.CR)(me),authLogo:(0,i.CR)(b)}),Re){const{data:{data:Z}}=await q("/admin/telemetry-properties",{validateStatus:te=>te<500});S(Z);try{const te="didInitializeAdministration";await _("https://analytics.strapi.io/api/v2/track",{event:te,userId:"",deviceId:A,eventPropeties:{},userProperties:{environment:T.currentEnvironment},groupProperties:{...Z,projectId:Re}},{headers:{"X-Strapi-Event":te}})}catch{}}M({isLoading:!1,hasAdmin:ee,uuid:Re,deviceId:A})}catch{n({type:"warning",message:{id:"app.containers.App.notification.error.init"}})}})()},[n,r]);const Ke=J=>M(ee=>({...ee,hasAdmin:J})),ze=(0,e.useMemo)(()=>({uuid:f,telemetryProperties:de,deviceId:A}),[f,de,A]);return p?e.createElement(i.dO,null):e.createElement(e.Suspense,{fallback:e.createElement(i.dO,null)},e.createElement(Ne.z,null,l({id:"skipToContent"})),e.createElement(i.L8,{value:ze},e.createElement(le.rs,null,F,e.createElement(le.AW,{path:"/auth/:authType",render:J=>e.createElement(fs,{...J,setHasAdmin:Ke,hasAdmin:g}),exact:!0}),e.createElement(Ue,{path:"/usecase",component:Cs}),e.createElement(Ue,{path:"/",component:Ss}),e.createElement(le.AW,{path:"",component:hs.default}))))}var Ms=As,Ls={ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",ca:"Catal\xE0",cs:"\u010Ce\u0161tina",de:"Deutsch",dk:"Dansk",en:"English",es:"Espa\xF1ol",eu:"Euskara",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"};class bs{constructor({adminConfig:s,appPlugins:n,library:r,middlewares:l,reducers:p}){this.customConfigurations=s.config,this.customBootstrapConfiguration=s.bootstrap,this.configurations={authLogo:$,head:{favicon:we},locales:["en"],menuLogo:$,notifications:{releases:!0},themes:{light:E.W,dark:P.$},translations:{},tutorials:!0},this.appPlugins=n||{},this.library=r,this.middlewares=l,this.plugins={},this.reducers=p,this.translations={},this.hooksDict={},this.admin={injectionZones:Ye},this.customFields=C.rh,this.menu=[],this.settings={global:{id:"global",intlLabel:{id:"Settings.global",defaultMessage:"Global Settings"},links:[]}}}addComponents=s=>{Array.isArray(s)?s.map(n=>this.library.components.add(n)):this.library.components.add(s)};addCorePluginMenuLink=s=>{const n=JSON.stringify(s);m()(s.to,`link.to should be defined for ${n}`),m()(typeof s.to=="string",`Expected link.to to be a string instead received ${typeof s.to}`),m()(["/plugins/content-type-builder","/plugins/upload"].includes(s.to),"This method is not available for your plugin"),m()(s.intlLabel?.id&&s.intlLabel?.defaultMessage,`link.intlLabel.id & link.intlLabel.defaultMessage for ${n}`),this.menu.push(s)};addFields=s=>{Array.isArray(s)?s.map(n=>this.library.fields.add(n)):this.library.fields.add(s)};addMenuLink=s=>{const n=JSON.stringify(s);m()(s.to,`link.to should be defined for ${n}`),m()(typeof s.to=="string",`Expected link.to to be a string instead received ${typeof s.to}`),m()(s.intlLabel?.id&&s.intlLabel?.defaultMessage,`link.intlLabel.id & link.intlLabel.defaultMessage for ${n}`),m()(s.Component&&typeof s.Component=="function","link.Component should be a valid React Component"),m()(s.icon&&typeof s.icon=="function","link.Icon should be a valid React Component"),this.menu.push(s)};addMiddlewares=s=>{s.forEach(n=>{this.middlewares.add(n)})};addReducers=s=>{Object.keys(s).forEach(n=>{this.reducers.add(n,s[n])})};addSettingsLink=(s,n)=>{m()(this.settings[s],"The section does not exist");const r=JSON.stringify(n);m()(n.id,`link.id should be defined for ${r}`),m()(n.intlLabel?.id&&n.intlLabel?.defaultMessage,`link.intlLabel.id & link.intlLabel.defaultMessage for ${r}`),m()(n.to,`link.to should be defined for ${r}`),m()(n.Component&&typeof n.Component=="function","link.Component should be a valid React Component"),this.settings[s].links.push(n)};addSettingsLinks=(s,n)=>{m()(this.settings[s],"The section does not exist"),m()(Array.isArray(n),"TypeError expected links to be an array"),n.forEach(r=>{this.addSettingsLink(s,r)})};async bootstrap(){Object.keys(this.appPlugins).forEach(s=>{const n=this.appPlugins[s].bootstrap;n&&n({addSettingsLink:this.addSettingsLink,addSettingsLinks:this.addSettingsLinks,getPlugin:this.getPlugin,injectContentManagerComponent:this.injectContentManagerComponent,injectAdminComponent:this.injectAdminComponent,registerHook:this.registerHook})}),W()(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})}bootstrapAdmin=async()=>(await this.createCustomConfigurations(),this.createHook(H.No),this.createHook(H.LK),this.createHook(H.dV),this.createHook(H.Eo),Promise.resolve());createCustomConfigurations=async()=>{if(this.customConfigurations?.locales&&(this.configurations.locales=["en",...this.customConfigurations.locales?.filter(s=>s!=="en")||[]]),this.customConfigurations?.auth?.logo&&(this.configurations.authLogo=this.customConfigurations.auth.logo),this.customConfigurations?.menu?.logo&&(this.configurations.menuLogo=this.customConfigurations.menu.logo),this.customConfigurations?.head?.favicon&&(this.configurations.head.favicon=this.customConfigurations.head.favicon),this.customConfigurations?.theme){const s=this.customConfigurations.theme.dark,n=this.customConfigurations.theme.light;!s&&!n&&(console.warn("[deprecated] In future versions, Strapi will stop supporting this theme customization syntax. The theme configuration accepts a light and a dark key to customize each theme separately. See https://docs.strapi.io/developer-docs/latest/development/admin-customization.html#theme-extension."),O()(this.configurations.themes.light,this.customConfigurations.theme)),n&&O()(this.configurations.themes.light,n),s&&O()(this.configurations.themes.dark,s)}this.customConfigurations?.notifications?.releases!==void 0&&(this.configurations.notifications.releases=this.customConfigurations.notifications.releases),this.customConfigurations?.tutorials!==void 0&&(this.configurations.tutorials=this.customConfigurations.tutorials)};createHook=s=>{this.hooksDict[s]=x()};createSettingSection=(s,n)=>{m()(s.id,"section.id should be defined"),m()(s.intlLabel?.id&&s.intlLabel?.defaultMessage,"section.intlLabel should be defined"),m()(Array.isArray(n),"TypeError expected links to be an array"),m()(this.settings[s.id]===void 0,"A similar section already exists"),this.settings[s.id]={...s,links:[]},n.forEach(r=>{this.addSettingsLink(s.id,r)})};createStore=()=>k(this.middlewares.middlewares,this.reducers.reducers);getAdminInjectedComponents=(s,n,r)=>{try{return this.admin.injectionZones[s][n][r]||[]}catch(l){return console.error("Cannot get injected component",l),l}};getPlugin=s=>this.plugins[s];async initialize(){Object.keys(this.appPlugins).forEach(s=>{this.appPlugins[s].register(this)})}injectContentManagerComponent=(s,n,r)=>{m()(this.admin.injectionZones.contentManager[s]?.[n],`The ${s} ${n} zone is not defined in the content manager`),m()(r,"A Component must be provided"),this.admin.injectionZones.contentManager[s][n].push(r)};injectAdminComponent=(s,n,r)=>{m()(this.admin.injectionZones.admin[s]?.[n],`The ${s} ${n} zone is not defined in the admin`),m()(r,"A Component must be provided"),this.admin.injectionZones.admin[s][n].push(r)};async loadAdminTrads(){const s=this.configurations.locales.map(l=>t(48224)(`./${l}.json`).then(({default:p})=>({data:p,locale:l})).catch(()=>({data:null,locale:l})));return(await Promise.all(s)).reduce((l,p)=>(p.data&&(l[p.locale]=p.data),l),{})}async loadTrads(){const s=await this.loadAdminTrads(),n=Object.keys(this.appPlugins).map(g=>{const f=this.appPlugins[g].registerTrads;return f?f({locales:this.configurations.locales}):null}).filter(g=>g),l=(await Promise.all(n)).reduce((g,f)=>{const A=f.reduce((M,j)=>(M[j.locale]=j.data,M),{});return Object.keys(A).forEach(M=>{g[M]={...g[M],...A[M]}}),g},{}),p=this.configurations.locales.reduce((g,f)=>(g[f]={...s[f],...l[f]||{},...this.customConfigurations?.translations?.[f]},g),{});return this.configurations.translations=p,Promise.resolve()}registerHook=(s,n)=>{m()(this.hooksDict[s],`The hook ${s} is not defined. You are trying to register a hook that does not exist in the application.`),this.hooksDict[s].register(n)};registerPlugin=s=>{const n=(0,C.Sy)(s);this.plugins[n.pluginId]=n};runHookSeries=(s,n=!1)=>n?this.hooksDict[s].runSeriesAsync():this.hooksDict[s].runSeries();runHookWaterfall=(s,n,r=!1,l)=>r?this.hooksDict[s].runWaterfallAsync(n,l):this.hooksDict[s].runWaterfall(n,l);runHookParallel=s=>this.hooksDict[s].runParallel();render(){const s=this.createStore(),n=z()(Ls,this.configurations.locales||[]),{components:{components:r},fields:{fields:l}}=this.library;return e.createElement(u,{authLogo:this.configurations.authLogo,components:r,fields:l,customFields:this.customFields,localeNames:n,getAdminInjectedComponents:this.getAdminInjectedComponents,getPlugin:this.getPlugin,messages:this.configurations.translations,menu:this.menu,menuLogo:this.configurations.menuLogo,plugins:this.plugins,runHookParallel:this.runHookParallel,runHookWaterfall:(p,g,f=!1)=>this.runHookWaterfall(p,g,f,s),runHookSeries:this.runHookSeries,themes:this.configurations.themes,settings:this.settings,showTutorials:this.configurations.tutorials,showReleaseNotification:this.configurations.notifications.releases,store:s},e.createElement(e.Fragment,null,e.createElement(ge.q,{link:[{rel:"icon",type:"image/png",href:this.configurations.head.favicon}],htmlAttributes:{lang:localStorage.getItem(Ae)||"en"}}),e.createElement(V.VK,{basename:K.Z},e.createElement(Ms,{store:s}))))}}var Ds=({adminConfig:o={},appPlugins:s,library:n,middlewares:r,reducers:l})=>new bs({adminConfig:o,appPlugins:s,library:n,middlewares:r,reducers:l})},33229:function(G,y,t){"use strict";var e=t(32735);const E=(0,e.createContext)();y.Z=E},51399:function(G,y,t){"use strict";var e=t(32735),E=t(33229);const P=()=>{const{changeLocale:v,localeNames:m,messages:h}=(0,e.useContext)(E.Z);return{changeLocale:v,localeNames:m,messages:h}};y.Z=P},73678:function(G,y,t){"use strict";var e=t(32735),E=t(8471),P=t(2160);const v=E.ZP.img`
18
18
  height: ${72/16}rem;
19
- `,m=()=>{const{logos:{auth:h}}=(0,P.um)();return e.createElement(v,{src:h?.custom??h.default,"aria-hidden":!0,alt:""})};y.Z=m},76402:function(G,y,t){"use strict";t.d(y,{ux:function(){return P},_5:function(){return m},$l:function(){return N},Rj:function(){return O}});var e=t(32735),P=(0,e.createContext)({}),m=(0,e.createContext)({}),N=(0,e.createContext)({}),O=(0,e.createContext)({})},35231:function(G,y){"use strict";const t="/admin/".replace(window.location.origin,"");y.Z=t},66941:function(G,y,t){"use strict";t.d(y,{Eo:function(){return P},LK:function(){return E},No:function(){return e},dV:function(){return v}});const e="Admin/CM/pages/ListView/inject-column-in-table",E="Admin/CM/pages/App/mutate-collection-types-links",P="Admin/CM/pages/EditView/mutate-edit-view-layout",v="Admin/CM/pages/App/mutate-single-types-links"},2160:function(G,y,t){"use strict";t.d(y,{um:function(){return v},U_:function(){return ge},Dq:function(){return i},H9:function(){return je},$_:function(){return $e},rW:function(){return et},bF:function(){return ht},G4:function(){return Mt},Te:function(){return Ot},M1:function(){return jt}});var e=t(32735),E=t(76402),v=()=>(0,e.useContext)(E._5),m=t(90769),h=t(19565),N=t(97889);const X={data:{},error:null,isLoading:!0};var oe=(d,c)=>(0,N.ZP)(d,u=>{switch(c.type){case"GET_DATA":{u.isLoading=!0,u.data={},u.error=null;break}case"GET_DATA_SUCCEEDED":{u.data=c.data,u.isLoading=!1,u.error=null;break}case"GET_DATA_ERROR":{u.isLoading=!1,u.error=c.error;break}default:return u}}),ge=d=>{const[{data:c,error:u,isLoading:C},L]=(0,e.useReducer)(oe,X),{get:I}=(0,h.kY)();return(0,e.useEffect)(()=>{(async()=>{try{L({type:"GET_DATA"});const{data:{data:k}}=await I("/admin/permissions",{params:{role:d}});L({type:"GET_DATA_SUCCEEDED",data:k})}catch{}})()},[d,I]),{data:c,error:u,isLoading:C}};const V={role:{},permissions:{},isLoading:!0};var Se=(d,c)=>(0,N.ZP)(d,u=>{switch(c.type){case"GET_DATA_SUCCEEDED":{u.role=c.role,u.permissions=c.permissions,u.isLoading=!1;break}case"GET_DATA_ERROR":{u.isLoading=!1;break}case"ON_SUBMIT_SUCCEEDED":{u.role.name=c.name,u.role.description=c.description;break}default:return u}}),i=d=>{const c=(0,h.lm)(),[u,C]=(0,e.useReducer)(Se,V),{get:L}=(0,h.kY)();(0,e.useEffect)(()=>{d?(async k=>{try{const[{data:{data:K}},{data:{data:he}}]=await Promise.all([`roles/${k}`,`roles/${k}/permissions`].map(x=>L(`/admin/${x}`)));C({type:"GET_DATA_SUCCEEDED",role:K,permissions:he})}catch(K){console.error(K),C({type:"GET_DATA_ERROR"}),c({type:"warning",message:{id:"notification.error"}})}})(d):C({type:"GET_DATA_SUCCEEDED",role:{},permissions:[]})},[L,d,c]);const I=(0,e.useCallback)(U=>{C({type:"ON_SUBMIT_SUCCEEDED",...U})},[]);return{...u,onSubmitSucceeded:I}},ke=t(2287),a=t(36919),pe=t(45112),fe=t(15062),R=t(30305),D=t(99381),Y=t.n(D),ye=(d,c)=>c.map(({permissions:u})=>(0,h.qX)(d,u)),xe=async(d,c,u)=>{const C=ye(d,c),L=await Promise.all(C),I=c.filter((K,he)=>L[he]),U=I.findIndex(K=>K.to==="/settings");if(U===-1)return[];const k=Y()(I);return k[U].notificationsCount=u?1:0,k},Le=async(d,c)=>{const u=ye(d,c),C=await Promise.all(u);return c.filter((I,U)=>C[U])},je=()=>{const{allPermissions:d}=(0,h.vn)(),{shouldUpdateStrapi:c}=(0,h.L7)(),{menu:u}=(0,h.j1)(),C=(0,fe.v9)(R._),[L,I]=e.useState({generalSectionLinks:[{icon:ke.Z,intlLabel:{id:"global.plugins",defaultMessage:"Plugins"},to:"/list-plugins",permissions:C.marketplace.main},{icon:a.Z,intlLabel:{id:"global.marketplace",defaultMessage:"Marketplace"},to:"/marketplace",permissions:C.marketplace.main},{icon:pe.Z,intlLabel:{id:"global.settings",defaultMessage:"Settings"},to:"/settings",permissions:[],notificationsCount:0}],pluginsSectionLinks:[],isLoading:!0}),U=e.useRef(L.generalSectionLinks);return e.useEffect(()=>{async function k(){const K=await Le(d,u),he=await xe(d,U.current,c);I(x=>({...x,generalSectionLinks:he,pluginsSectionLinks:K,isLoading:!1}))}k()},[I,U,d,u,C,c]),L},$e=()=>(0,e.useContext)(E.$l),et=(d,c,u,C)=>{const[L,I]=(0,e.useState)(!1),U=(0,h.lm)(),{post:k}=(0,h.kY)(),{formatAPIError:K}=(0,h.So)();return{regenerateData:async()=>{try{const{data:{data:{accessKey:x}}}=await k(`${d}${c}/regenerate`);I(!1),u(x)}catch(x){I(!1),C?C(x):U({type:"warning",message:K(x)})}},isLoadingConfirmation:L}};const qe=!JSON.parse(localStorage.getItem("STRAPI_UPDATE_NOTIF")),es=()=>{const{latestStrapiReleaseTag:d,shouldUpdateStrapi:c}=useAppInfo(),u=useNotification();return useEffect(()=>{c&&qe&&u({type:"info",message:{id:"notification.version.update.message"},link:{url:`https://github.com/strapi/strapi/releases/tag/${d}`,label:{id:"global.see-more"}},blockTransition:!0,onClose:()=>localStorage.setItem("STRAPI_UPDATE_NOTIF",!0)})},[d,c,u]),null};var be=null,Ht=t(33795),gt=t.n(Ht),Ft=(d,c)=>({...d,isLoading:c});const tt={roles:[],isLoading:!0};var ft=(d,c)=>(0,N.ZP)(d,u=>{switch(c.type){case"GET_DATA":{u.isLoading=!0,u.roles=[];break}case"GET_DATA_SUCCEEDED":{u.roles=c.data,u.isLoading=!1;break}case"GET_DATA_ERROR":{u.isLoading=!1;break}default:return u}}),ht=(d=!0)=>{const c=(0,h.lm)(),[{roles:u,isLoading:C},L]=(0,e.useReducer)(ft,tt,()=>Ft(tt,d));(0,e.useEffect)(()=>{d&&I()},[d]);const I=(0,e.useCallback)(async()=>{const U=(0,h.tg)();try{L({type:"GET_DATA"});const{data:{data:k}}=await U.get("/admin/roles");L({type:"GET_DATA_SUCCEEDED",data:k})}catch(k){const K=gt()(k,["response","payload","message"],"An error occured");L({type:"GET_DATA_ERROR"}),K!=="Forbidden"&&c({type:"warning",message:K})}},[c]);return{roles:u,isLoading:C,getData:I}},st=t(9086),Et=t.n(st),nt=t(86209),vt=(d,c)=>({...d,fieldsToPick:c}),yt=t(88423),Ze=t.n(yt),Pt=t(3040),Tt=t.n(Pt),Rt=t(56236),at=t.n(Rt);const Ct={fieldsToPick:[],formErrors:{},initialData:{},isLoading:!0,modifiedData:{},showHeaderButtonLoader:!1,showHeaderLoader:!0},St=(d,c)=>(0,N.ZP)(d,u=>{switch(c.type){case"GET_DATA_SUCCEEDED":{u.isLoading=!1,u.showHeaderLoader=!1,u.initialData=Ze()(c.data,d.fieldsToPick),u.modifiedData=Ze()(c.data,d.fieldsToPick);break}case"ON_CANCEL":{u.modifiedData=d.initialData,u.formErrors={};break}case"ON_CHANGE":{c.inputType==="password"&&!c.value?at()(u.modifiedData,c.keys.split(".")):c.keys.includes("username")&&!c.value?Tt()(u.modifiedData,c.keys.split("."),null):Tt()(u.modifiedData,c.keys.split("."),c.value);break}case"ON_SUBMIT":{u.showHeaderButtonLoader=!0;break}case"ON_SUBMIT_SUCCEEDED":{u.initialData=Ze()(c.data,d.fieldsToPick),u.modifiedData=Ze()(c.data,d.fieldsToPick),u.showHeaderButtonLoader=!1;break}case"SET_ERRORS":{u.formErrors=c.errors,u.showHeaderButtonLoader=!1;break}default:return u}});var Mt=(d,c,u,C)=>{const[{formErrors:L,initialData:I,isLoading:U,modifiedData:k,showHeaderButtonLoader:K,showHeaderLoader:he},x]=(0,e.useReducer)(St,Ct,()=>vt(Ct,C)),W=(0,h.lm)(),{lockApp:we,unlockApp:rt}=(0,h.o1)(),{get:Ye,put:Ne}=(0,h.kY)();return(0,e.useEffect)(()=>{d&&(async()=>{try{const{data:{data:se}}=await Ye(d);x({type:"GET_DATA_SUCCEEDED",data:se,fieldsToPick:C})}catch(se){console.error(se.response),W({type:"warning",message:{id:"notification.error"}})}})()},[d]),[{formErrors:L,initialData:I,isLoading:U,modifiedData:k,showHeaderButtonLoader:K,showHeaderLoader:he},x,{handleCancel:()=>{x({type:"ON_CANCEL"})},handleChange:({target:{name:ue,value:se,type:ne}})=>{x({type:"ON_CHANGE",inputType:ne,keys:ue,value:se})},handleSubmit:async ue=>{ue.preventDefault();const se=await(0,nt.R6)(k,c);if(x({type:"SET_ERRORS",errors:se||{}}),!se)try{we(),x({type:"ON_SUBMIT"});const ne=Et()(k,["confirmPassword","registrationToken"]);ne.roles&&(ne.roles=ne.roles.map(Fe=>Fe.id)),ne.ssoLockedRoles&&(ne.ssoLockedRoles=[...new Set(ne.ssoLockedRoles)]);const{data:{data:ce}}=await Ne(d,ne);u(ce),x({type:"ON_SUBMIT_SUCCEEDED",data:ce}),W({type:"success",message:{id:"notification.success.saved"}})}catch(ne){const ce=ne?.response?.payload??{data:{}};ce?.data&&typeof ce.data=="string"?W({type:"warning",message:ce.data}):W({type:"warning",message:ce.message});const Fe=(0,nt.Iz)(ce);x({type:"SET_ERRORS",errors:Fe})}finally{rt()}},setField:(ue,se)=>{x({type:"ON_CHANGE",keys:ue,value:se})}}]},Lt=t(9592);const De={global:[{intlLabel:{id:"Settings.application.title",defaultMessage:"Overview"},to:"/settings/application-infos",id:"000-application-infos",permissions:[]},{intlLabel:{id:"Settings.webhooks.title",defaultMessage:"Webhooks"},to:"/settings/webhooks",id:"webhooks"},{intlLabel:{id:"Settings.apiTokens.title",defaultMessage:"API Tokens"},to:"/settings/api-tokens?sort=name:ASC",id:"api-tokens"},{intlLabel:{id:"Settings.transferTokens.title",defaultMessage:"Transfer Tokens"},to:"/settings/transfer-tokens?sort=name:ASC",id:"transfer-tokens"}],admin:[{intlLabel:{id:"global.roles",defaultMessage:"Roles"},to:"/settings/roles",id:"roles"},{intlLabel:{id:"global.users"},to:"/settings/users?pageSize=10&page=1&sort=firstname",id:"users"}]};var Be=d=>d.map(c=>{const u=c.links.map(C=>({...C,isDisplayed:!1}));return{...c,links:u}}),Kt=t(98978),Dt=t.n(Kt),kt=d=>Dt()(d,c=>c.id),Ot=()=>{const[{isLoading:d,menu:c},u]=(0,e.useState)({isLoading:!0,menu:[]}),{allPermissions:C}=(0,h.vn)(),{shouldUpdateStrapi:L}=(0,h.L7)(),{settings:I}=(0,h.j1)(),U=(0,fe.v9)(R._),{global:k,admin:K}=(0,Lt.c)(De,async()=>(await t.e(918).then(t.bind(t,50918))).LINKS_EE,{combine(W,we){return{admin:[...we.admin,...W.admin],global:[...W.global,...we.global]}},defaultValue:{admin:[],global:[]}}),he=(0,e.useCallback)(W=>{if(!W.id)throw new Error("The settings menu item must have an id attribute.");return{...W,permissions:U.settings?.[W.id]?.main}},[U.settings]);(0,e.useEffect)(()=>{const W=async()=>{const le=await(We=>Promise.all(We.reduce((Ue,He,ue)=>{const se=ne=>ne.map(async(ce,Fe)=>({hasPermission:await(0,h.qX)(C,ce.permissions),sectionIndex:ue,linkIndex:Fe}));return[...Ue,...se(He.links)]},[])))(Ye);u(We=>({...We,isLoading:!1,menu:Ye.map((Ue,He)=>({...Ue,links:Ue.links.map((ue,se)=>{const ne=le.find(ce=>ce.sectionIndex===He&&ce.linkIndex===se);return{...ue,isDisplayed:Boolean(ne.hasPermission)}})}))}))},{global:we,...rt}=I,Ye=Be([{...I.global,links:kt([...I.global.links,...k.map(he)]).map(Ne=>({...Ne,hasNotification:Ne.id==="000-application-infos"&&L}))},{id:"permissions",intlLabel:{id:"Settings.permissions",defaultMessage:"Administration Panel"},links:K.map(he)},...Object.values(rt)]);W()},[K,k,C,I,L,he]);const x=W=>({...W,links:W.links.filter(we=>we.isDisplayed)});return{isLoading:d,menu:c.map(x)}},jt=()=>(0,e.useContext)(E.Rj)},90769:function(G,y,t){"use strict";t.d(y,{G:function(){return P}});var e=t(19565),E=t(20108);function P(){const{get:v}=(0,e.kY)(),{formatAPIError:m}=(0,e.So)(),h=(0,e.lm)(),N=(0,E.useQueries)(["components","content-types"].map(V=>({queryKey:["content-manager",V],async queryFn(){const{data:{data:$}}=await v(`/content-manager/${V}`);return $},onError($){h({type:"warning",message:m($)})}}))),[X,O]=N,oe=X.isLoading||O.isLoading,z=(O?.data??[]).filter(V=>V.kind==="collectionType"&&V.isDisplayed),ge=(O?.data??[]).filter(V=>V.kind!=="collectionType"&&V.isDisplayed);return{isLoading:oe,components:X?.data??[],collectionTypes:z,singleTypes:ge}}},9592:function(G,y,t){"use strict";t.d(y,{c:function(){return v}});var e=t(32735),E=t(19565);function P(){return window.strapi.isEE}function v(m,h,{defaultValue:N=null,combine:X=(oe,z)=>z,enabled:O=!0}={}){const oe=(0,E.W6)(h),z=(0,E.W6)(X),[{data:ge},V]=e.useState({data:P()&&O?N:m});return e.useEffect(()=>{async function $(){const Se=await oe();V({data:z(m,Se)})}P()&&O&&$()},[m,oe,z,O]),ge}},11060:function(G,y,t){"use strict";t.d(y,{sg:function(){return V},bU:function(){return $},ZP:function(){return Ae}});var e=t(32735),E=t(72850),P=t(87933),v=t(60216),m=t.n(v),h=t(8471),N=t(77035),X=t(67879),O=t(51399),z=()=>{const{changeLocale:i,localeNames:ke}=(0,O.Z)(),{locale:a}=(0,X.Z)();return e.createElement(N.q4,{value:a,onChange:pe=>i(pe)},Object.entries(ke).map(([pe,fe])=>e.createElement(N.ag,{key:pe,value:pe},fe)))};const ge=(0,h.ZP)(E.x)`
19
+ `,m=()=>{const{logos:{auth:h}}=(0,P.um)();return e.createElement(v,{src:h?.custom??h.default,"aria-hidden":!0,alt:""})};y.Z=m},76402:function(G,y,t){"use strict";t.d(y,{ux:function(){return P},_5:function(){return m},$l:function(){return W},Rj:function(){return O}});var e=t(32735),P=(0,e.createContext)({}),m=(0,e.createContext)({}),W=(0,e.createContext)({}),O=(0,e.createContext)({})},35231:function(G,y){"use strict";const t="/admin/".replace(window.location.origin,"");y.Z=t},66941:function(G,y,t){"use strict";t.d(y,{Eo:function(){return P},LK:function(){return E},No:function(){return e},dV:function(){return v}});const e="Admin/CM/pages/ListView/inject-column-in-table",E="Admin/CM/pages/App/mutate-collection-types-links",P="Admin/CM/pages/EditView/mutate-edit-view-layout",v="Admin/CM/pages/App/mutate-single-types-links"},2160:function(G,y,t){"use strict";t.d(y,{um:function(){return v},U_:function(){return ge},Dq:function(){return i},H9:function(){return je},$_:function(){return $e},rW:function(){return et},bF:function(){return ht},G4:function(){return Mt},Te:function(){return Ot},M1:function(){return jt}});var e=t(32735),E=t(76402),v=()=>(0,e.useContext)(E._5),m=t(90769),h=t(19565),W=t(97889);const X={data:{},error:null,isLoading:!0};var oe=(d,c)=>(0,W.ZP)(d,u=>{switch(c.type){case"GET_DATA":{u.isLoading=!0,u.data={},u.error=null;break}case"GET_DATA_SUCCEEDED":{u.data=c.data,u.isLoading=!1,u.error=null;break}case"GET_DATA_ERROR":{u.isLoading=!1,u.error=c.error;break}default:return u}}),ge=d=>{const[{data:c,error:u,isLoading:C},L]=(0,e.useReducer)(oe,X),{get:I}=(0,h.kY)();return(0,e.useEffect)(()=>{(async()=>{try{L({type:"GET_DATA"});const{data:{data:k}}=await I("/admin/permissions",{params:{role:d}});L({type:"GET_DATA_SUCCEEDED",data:k})}catch{}})()},[d,I]),{data:c,error:u,isLoading:C}};const V={role:{},permissions:{},isLoading:!0};var Se=(d,c)=>(0,W.ZP)(d,u=>{switch(c.type){case"GET_DATA_SUCCEEDED":{u.role=c.role,u.permissions=c.permissions,u.isLoading=!1;break}case"GET_DATA_ERROR":{u.isLoading=!1;break}case"ON_SUBMIT_SUCCEEDED":{u.role.name=c.name,u.role.description=c.description;break}default:return u}}),i=d=>{const c=(0,h.lm)(),[u,C]=(0,e.useReducer)(Se,V),{get:L}=(0,h.kY)();(0,e.useEffect)(()=>{d?(async k=>{try{const[{data:{data:K}},{data:{data:he}}]=await Promise.all([`roles/${k}`,`roles/${k}/permissions`].map(x=>L(`/admin/${x}`)));C({type:"GET_DATA_SUCCEEDED",role:K,permissions:he})}catch(K){console.error(K),C({type:"GET_DATA_ERROR"}),c({type:"warning",message:{id:"notification.error"}})}})(d):C({type:"GET_DATA_SUCCEEDED",role:{},permissions:[]})},[L,d,c]);const I=(0,e.useCallback)(U=>{C({type:"ON_SUBMIT_SUCCEEDED",...U})},[]);return{...u,onSubmitSucceeded:I}},ke=t(2287),a=t(36919),pe=t(45112),fe=t(15062),R=t(30305),D=t(99381),Y=t.n(D),Pe=(d,c)=>c.map(({permissions:u})=>(0,h.qX)(d,u)),xe=async(d,c,u)=>{const C=Pe(d,c),L=await Promise.all(C),I=c.filter((K,he)=>L[he]),U=I.findIndex(K=>K.to==="/settings");if(U===-1)return[];const k=Y()(I);return k[U].notificationsCount=u?1:0,k},Le=async(d,c)=>{const u=Pe(d,c),C=await Promise.all(u);return c.filter((I,U)=>C[U])},je=()=>{const{allPermissions:d}=(0,h.vn)(),{shouldUpdateStrapi:c}=(0,h.L7)(),{menu:u}=(0,h.j1)(),C=(0,fe.v9)(R._),[L,I]=e.useState({generalSectionLinks:[{icon:ke.Z,intlLabel:{id:"global.plugins",defaultMessage:"Plugins"},to:"/list-plugins",permissions:C.marketplace.main},{icon:a.Z,intlLabel:{id:"global.marketplace",defaultMessage:"Marketplace"},to:"/marketplace",permissions:C.marketplace.main},{icon:pe.Z,intlLabel:{id:"global.settings",defaultMessage:"Settings"},to:"/settings",permissions:[],notificationsCount:0}],pluginsSectionLinks:[],isLoading:!0}),U=e.useRef(L.generalSectionLinks);return e.useEffect(()=>{async function k(){const K=await Le(d,u),he=await xe(d,U.current,c);I(x=>({...x,generalSectionLinks:he,pluginsSectionLinks:K,isLoading:!1}))}k()},[I,U,d,u,C,c]),L},$e=()=>(0,e.useContext)(E.$l),et=(d,c,u,C)=>{const[L,I]=(0,e.useState)(!1),U=(0,h.lm)(),{post:k}=(0,h.kY)(),{formatAPIError:K}=(0,h.So)();return{regenerateData:async()=>{try{const{data:{data:{accessKey:x}}}=await k(`${d}${c}/regenerate`);I(!1),u(x)}catch(x){I(!1),C?C(x):U({type:"warning",message:K(x)})}},isLoadingConfirmation:L}};const qe=!JSON.parse(localStorage.getItem("STRAPI_UPDATE_NOTIF")),es=()=>{const{latestStrapiReleaseTag:d,shouldUpdateStrapi:c}=useAppInfo(),u=useNotification();return useEffect(()=>{c&&qe&&u({type:"info",message:{id:"notification.version.update.message"},link:{url:`https://github.com/strapi/strapi/releases/tag/${d}`,label:{id:"global.see-more"}},blockTransition:!0,onClose:()=>localStorage.setItem("STRAPI_UPDATE_NOTIF",!0)})},[d,c,u]),null};var be=null,Ht=t(33795),gt=t.n(Ht),Ft=(d,c)=>({...d,isLoading:c});const tt={roles:[],isLoading:!0};var ft=(d,c)=>(0,W.ZP)(d,u=>{switch(c.type){case"GET_DATA":{u.isLoading=!0,u.roles=[];break}case"GET_DATA_SUCCEEDED":{u.roles=c.data,u.isLoading=!1;break}case"GET_DATA_ERROR":{u.isLoading=!1;break}default:return u}}),ht=(d=!0)=>{const c=(0,h.lm)(),[{roles:u,isLoading:C},L]=(0,e.useReducer)(ft,tt,()=>Ft(tt,d));(0,e.useEffect)(()=>{d&&I()},[d]);const I=(0,e.useCallback)(async()=>{const U=(0,h.tg)();try{L({type:"GET_DATA"});const{data:{data:k}}=await U.get("/admin/roles");L({type:"GET_DATA_SUCCEEDED",data:k})}catch(k){const K=gt()(k,["response","payload","message"],"An error occured");L({type:"GET_DATA_ERROR"}),K!=="Forbidden"&&c({type:"warning",message:K})}},[c]);return{roles:u,isLoading:C,getData:I}},st=t(9086),Et=t.n(st),nt=t(86209),vt=(d,c)=>({...d,fieldsToPick:c}),yt=t(88423),Ze=t.n(yt),Pt=t(3040),Tt=t.n(Pt),Rt=t(56236),at=t.n(Rt);const Ct={fieldsToPick:[],formErrors:{},initialData:{},isLoading:!0,modifiedData:{},showHeaderButtonLoader:!1,showHeaderLoader:!0},St=(d,c)=>(0,W.ZP)(d,u=>{switch(c.type){case"GET_DATA_SUCCEEDED":{u.isLoading=!1,u.showHeaderLoader=!1,u.initialData=Ze()(c.data,d.fieldsToPick),u.modifiedData=Ze()(c.data,d.fieldsToPick);break}case"ON_CANCEL":{u.modifiedData=d.initialData,u.formErrors={};break}case"ON_CHANGE":{c.inputType==="password"&&!c.value?at()(u.modifiedData,c.keys.split(".")):c.keys.includes("username")&&!c.value?Tt()(u.modifiedData,c.keys.split("."),null):Tt()(u.modifiedData,c.keys.split("."),c.value);break}case"ON_SUBMIT":{u.showHeaderButtonLoader=!0;break}case"ON_SUBMIT_SUCCEEDED":{u.initialData=Ze()(c.data,d.fieldsToPick),u.modifiedData=Ze()(c.data,d.fieldsToPick),u.showHeaderButtonLoader=!1;break}case"SET_ERRORS":{u.formErrors=c.errors,u.showHeaderButtonLoader=!1;break}default:return u}});var Mt=(d,c,u,C)=>{const[{formErrors:L,initialData:I,isLoading:U,modifiedData:k,showHeaderButtonLoader:K,showHeaderLoader:he},x]=(0,e.useReducer)(St,Ct,()=>vt(Ct,C)),H=(0,h.lm)(),{lockApp:we,unlockApp:rt}=(0,h.o1)(),{get:Ye,put:Ne}=(0,h.kY)();return(0,e.useEffect)(()=>{d&&(async()=>{try{const{data:{data:se}}=await Ye(d);x({type:"GET_DATA_SUCCEEDED",data:se,fieldsToPick:C})}catch(se){console.error(se.response),H({type:"warning",message:{id:"notification.error"}})}})()},[d]),[{formErrors:L,initialData:I,isLoading:U,modifiedData:k,showHeaderButtonLoader:K,showHeaderLoader:he},x,{handleCancel:()=>{x({type:"ON_CANCEL"})},handleChange:({target:{name:ue,value:se,type:ne}})=>{x({type:"ON_CHANGE",inputType:ne,keys:ue,value:se})},handleSubmit:async ue=>{ue.preventDefault();const se=await(0,nt.R6)(k,c);if(x({type:"SET_ERRORS",errors:se||{}}),!se)try{we(),x({type:"ON_SUBMIT"});const ne=Et()(k,["confirmPassword","registrationToken"]);ne.roles&&(ne.roles=ne.roles.map(Fe=>Fe.id)),ne.ssoLockedRoles&&(ne.ssoLockedRoles=[...new Set(ne.ssoLockedRoles)]);const{data:{data:ce}}=await Ne(d,ne);u(ce),x({type:"ON_SUBMIT_SUCCEEDED",data:ce}),H({type:"success",message:{id:"notification.success.saved"}})}catch(ne){const ce=ne?.response?.payload??{data:{}};ce?.data&&typeof ce.data=="string"?H({type:"warning",message:ce.data}):H({type:"warning",message:ce.message});const Fe=(0,nt.Iz)(ce);x({type:"SET_ERRORS",errors:Fe})}finally{rt()}},setField:(ue,se)=>{x({type:"ON_CHANGE",keys:ue,value:se})}}]},Lt=t(9592);const De={global:[{intlLabel:{id:"Settings.application.title",defaultMessage:"Overview"},to:"/settings/application-infos",id:"000-application-infos",permissions:[]},{intlLabel:{id:"Settings.webhooks.title",defaultMessage:"Webhooks"},to:"/settings/webhooks",id:"webhooks"},{intlLabel:{id:"Settings.apiTokens.title",defaultMessage:"API Tokens"},to:"/settings/api-tokens?sort=name:ASC",id:"api-tokens"},{intlLabel:{id:"Settings.transferTokens.title",defaultMessage:"Transfer Tokens"},to:"/settings/transfer-tokens?sort=name:ASC",id:"transfer-tokens"}],admin:[{intlLabel:{id:"global.roles",defaultMessage:"Roles"},to:"/settings/roles",id:"roles"},{intlLabel:{id:"global.users"},to:"/settings/users?pageSize=10&page=1&sort=firstname",id:"users"}]};var Be=d=>d.map(c=>{const u=c.links.map(C=>({...C,isDisplayed:!1}));return{...c,links:u}}),Kt=t(98978),Dt=t.n(Kt),kt=d=>Dt()(d,c=>c.id),Ot=()=>{const[{isLoading:d,menu:c},u]=(0,e.useState)({isLoading:!0,menu:[]}),{allPermissions:C}=(0,h.vn)(),{shouldUpdateStrapi:L}=(0,h.L7)(),{settings:I}=(0,h.j1)(),U=(0,fe.v9)(R._),{global:k,admin:K}=(0,Lt.c)(De,async()=>(await t.e(918).then(t.bind(t,50918))).LINKS_EE,{combine(H,we){return{admin:[...we.admin,...H.admin],global:[...H.global,...we.global]}},defaultValue:{admin:[],global:[]}}),he=(0,e.useCallback)(H=>{if(!H.id)throw new Error("The settings menu item must have an id attribute.");return{...H,permissions:U.settings?.[H.id]?.main}},[U.settings]);(0,e.useEffect)(()=>{const H=async()=>{const le=await(We=>Promise.all(We.reduce((Ue,He,ue)=>{const se=ne=>ne.map(async(ce,Fe)=>({hasPermission:await(0,h.qX)(C,ce.permissions),sectionIndex:ue,linkIndex:Fe}));return[...Ue,...se(He.links)]},[])))(Ye);u(We=>({...We,isLoading:!1,menu:Ye.map((Ue,He)=>({...Ue,links:Ue.links.map((ue,se)=>{const ne=le.find(ce=>ce.sectionIndex===He&&ce.linkIndex===se);return{...ue,isDisplayed:Boolean(ne.hasPermission)}})}))}))},{global:we,...rt}=I,Ye=Be([{...I.global,links:kt([...I.global.links,...k.map(he)]).map(Ne=>({...Ne,hasNotification:Ne.id==="000-application-infos"&&L}))},{id:"permissions",intlLabel:{id:"Settings.permissions",defaultMessage:"Administration Panel"},links:K.map(he)},...Object.values(rt)]);H()},[K,k,C,I,L,he]);const x=H=>({...H,links:H.links.filter(we=>we.isDisplayed)});return{isLoading:d,menu:c.map(x)}},jt=()=>(0,e.useContext)(E.Rj)},90769:function(G,y,t){"use strict";t.d(y,{G:function(){return P}});var e=t(19565),E=t(20108);function P(){const{get:v}=(0,e.kY)(),{formatAPIError:m}=(0,e.So)(),h=(0,e.lm)(),W=(0,E.useQueries)(["components","content-types"].map(V=>({queryKey:["content-manager",V],async queryFn(){const{data:{data:$}}=await v(`/content-manager/${V}`);return $},onError($){h({type:"warning",message:m($)})}}))),[X,O]=W,oe=X.isLoading||O.isLoading,z=(O?.data??[]).filter(V=>V.kind==="collectionType"&&V.isDisplayed),ge=(O?.data??[]).filter(V=>V.kind!=="collectionType"&&V.isDisplayed);return{isLoading:oe,components:X?.data??[],collectionTypes:z,singleTypes:ge}}},9592:function(G,y,t){"use strict";t.d(y,{c:function(){return v}});var e=t(32735),E=t(19565);function P(){return window.strapi.isEE}function v(m,h,{defaultValue:W=null,combine:X=(oe,z)=>z,enabled:O=!0}={}){const oe=(0,E.W6)(h),z=(0,E.W6)(X),[{data:ge},V]=e.useState({data:P()&&O?W:m});return e.useEffect(()=>{async function $(){const Se=await oe();V({data:z(m,Se)})}P()&&O&&$()},[m,oe,z,O]),ge}},11060:function(G,y,t){"use strict";t.d(y,{sg:function(){return V},bU:function(){return $},ZP:function(){return Ae}});var e=t(32735),E=t(72850),P=t(87933),v=t(60216),m=t.n(v),h=t(8471),W=t(77035),X=t(67879),O=t(51399),z=()=>{const{changeLocale:i,localeNames:ke}=(0,O.Z)(),{locale:a}=(0,X.Z)();return e.createElement(W.q4,{value:a,onChange:pe=>i(pe)},Object.entries(ke).map(([pe,fe])=>e.createElement(W.ag,{key:pe,value:pe},fe)))};const ge=(0,h.ZP)(E.x)`
20
20
  margin: 0 auto;
21
21
  width: 552px;
22
22
  `,V=(0,h.ZP)(P.k)`
@@ -29,8 +29,8 @@
29
29
  fill: ${({theme:v})=>v.colors.neutral600};
30
30
  }
31
31
  }
32
- `;y.Z=P},24436:function(G,y,t){"use strict";var e=t(32735),E=t(10369),P=t(27649),v=t(72850),m=t(49372),h=t(87933),N=t(8284),X=t(41415),O=t(19565),oe=t(54894),z=t(60492),ge=t(92802),V=t(60216),$=t.n(V),Se=t(67879),Ae=t(8471),i=t(73678),ke=t(11060),a=t(24018);const pe=(0,Ae.ZP)(E.o)`
32
+ `;y.Z=P},24436:function(G,y,t){"use strict";var e=t(32735),E=t(10369),P=t(27649),v=t(72850),m=t(49372),h=t(87933),W=t(8284),X=t(41415),O=t(19565),oe=t(54894),z=t(60492),ge=t(92802),V=t(60216),$=t.n(V),Se=t(67879),Ae=t(8471),i=t(73678),ke=t(11060),a=t(24018);const pe=(0,Ae.ZP)(E.o)`
33
33
  ::-ms-reveal {
34
34
  display: none;
35
35
  }
36
- `,fe=({onSubmit:R,schema:D,children:Y})=>{const[Me,ye]=(0,e.useState)(!1),{formatMessage:ie}=(0,Se.Z)();return e.createElement(P.o,null,e.createElement(ke.bU,null,e.createElement(ge.J9,{enableReinitialize:!0,initialValues:{email:"",password:"",rememberMe:!1},onSubmit:R,validationSchema:D,validateOnChange:!1},({values:xe,errors:Oe,handleChange:Le})=>e.createElement(O.l0,{noValidate:!0},e.createElement(ke.sg,null,e.createElement(i.Z,null),e.createElement(v.x,{paddingTop:6,paddingBottom:1},e.createElement(m.Z,{variant:"alpha",as:"h1"},ie({id:"Auth.form.welcome.title",defaultMessage:"Welcome!"}))),e.createElement(v.x,{paddingBottom:7},e.createElement(m.Z,{variant:"epsilon",textColor:"neutral600"},ie({id:"Auth.form.welcome.subtitle",defaultMessage:"Log in to your Strapi account"}))),Oe.errorMessage&&e.createElement(m.Z,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},Oe.errorMessage)),e.createElement(h.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(E.o,{error:Oe.email?ie({id:Oe.email,defaultMessage:"This value is required."}):"",value:xe.email,onChange:Le,label:ie({id:"Auth.form.email.label",defaultMessage:"Email"}),placeholder:ie({id:"Auth.form.email.placeholder",defaultMessage:"kai@doe.com"}),name:"email",required:!0}),e.createElement(pe,{error:Oe.password?ie({id:Oe.password,defaultMessage:"This value is required."}):"",onChange:Le,value:xe.password,label:ie({id:"global.password",defaultMessage:"Password"}),name:"password",type:Me?"text":"password",endAction:e.createElement(a.Z,{onClick:Ve=>{Ve.stopPropagation(),ye(je=>!je)},label:ie(Me?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},Me?e.createElement(oe.Z,null):e.createElement(z.Z,null)),required:!0}),e.createElement(N.X,{onValueChange:Ve=>{Le({target:{value:Ve,name:"rememberMe"}})},value:xe.rememberMe,"aria-label":"rememberMe",name:"rememberMe"},ie({id:"Auth.form.rememberMe.label",defaultMessage:"Remember me"})),e.createElement(X.z,{fullWidth:!0,type:"submit"},ie({id:"Auth.form.button.login",defaultMessage:"Login"}))))),Y),e.createElement(h.k,{justifyContent:"center"},e.createElement(v.x,{paddingTop:4},e.createElement(O.rU,{to:"/auth/forgot-password"},ie({id:"Auth.link.forgot-password",defaultMessage:"Forgot your password?"})))))};fe.defaultProps={children:null,onSubmit(){}},fe.propTypes={children:$().node,onSubmit:$().func,schema:$().shape({type:$().string.isRequired}).isRequired},y.Z=fe},33248:function(G,y,t){"use strict";t.r(y);var e=t(32735),E=t(27649),P=t(82055),v=t(17e3),m=t(9695),h=t(19565),N=t(8482),X=t(25386),O=t(67879);const oe=()=>{const{formatMessage:z}=(0,O.Z)();return(0,h.go)(),e.createElement(E.o,{labelledBy:"title"},e.createElement(P.T,{id:"title",title:z({id:"content-manager.pageNotFound",defaultMessage:"Page not found"})}),e.createElement(v.D,null,e.createElement(m.x,{action:e.createElement(h.Qj,{variant:"secondary",endIcon:e.createElement(N.Z,null),to:"/"},z({id:"app.components.NotFoundPage.back",defaultMessage:"Back to homepage"})),content:z({id:"app.page.not.found",defaultMessage:"Oops! We can't seem to find the page you're looging for..."}),hasRadius:!0,icon:e.createElement(X.Z,{width:"10rem"}),shadow:"tableShadow"})))};y.default=oe},5074:function(G,y){"use strict";const t=({data:e})=>{try{return Object.keys(e).reduce((E,P)=>{const v=e[P][0];return E[P]={id:v,defaultMessage:v},E},{})}catch{return{}}};y.Z=t},86209:function(G,y,t){"use strict";t.d(y,{R6:function(){return P},ot:function(){return oe},Iz:function(){return z.Z},Pp:function(){return ge},IF:function(){return $},Qy:function(){return fe},WW:function(){return Ae}});var e=t(19565),P=async(R,D)=>{let Y=null;try{await D.validate(R,{abortEarly:!1})}catch(Me){Y=(0,e.CJ)(Me)}return Y},v=t(32735),m=t(60216),h=t.n(m),N=t(53038);const X=({loadComponent:R})=>{const[D,Y]=(0,v.useState)(null);return(0,v.useEffect)(()=>{(async()=>{try{const ye=await R();Y(()=>ye.default)}catch(ye){console.log(ye)}})()},[R]),D?v.createElement(D,null):v.createElement(e.dO,null)},O=(R,D,Y)=>v.createElement(N.AW,{render:()=>v.createElement(X,{loadComponent:R}),key:D,path:D,exact:Y||!1});X.propTypes={loadComponent:h().func.isRequired};var oe=O,z=t(5074),ge=(R,D="")=>[R,D].filter(Y=>Y).join(" "),$=R=>`/admin/${R}`,Ae=R=>R.filter((D,Y,Me)=>Me.findIndex(ye=>ye.key===D.key)===Y),i=t(98978);const ke=R=>sortBy(R,D=>D.name);var a=null;const pe={bufferToHex(R){return[...new Uint8Array(R)].map(D=>D.toString(16).padStart(2,"0")).join("")},async digestMessage(R){const D=new TextEncoder().encode(R),Y=await crypto.subtle.digest("SHA-256",D);return this.bufferToHex(Y)}};async function fe(R){if(!R)return null;try{return await pe.digestMessage(R.email)}catch{return null}}},48224:function(G,y,t){var e={"./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],"./eu.json":[69511,8360],"./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 E(P){if(!t.o(e,P))return Promise.resolve().then(function(){var h=new Error("Cannot find module '"+P+"'");throw h.code="MODULE_NOT_FOUND",h});var v=e[P],m=v[0];return t.e(v[1]).then(function(){return t.t(m,19)})}E.keys=function(){return Object.keys(e)},E.id=48224,G.exports=E},47750:function(G,y,t){"use strict";G.exports=t.p+"70674f63fc3904c20de0.svg"}}]);
36
+ `,fe=({onSubmit:R,schema:D,children:Y})=>{const[Me,Pe]=(0,e.useState)(!1),{formatMessage:ie}=(0,Se.Z)();return e.createElement(P.o,null,e.createElement(ke.bU,null,e.createElement(ge.J9,{enableReinitialize:!0,initialValues:{email:"",password:"",rememberMe:!1},onSubmit:R,validationSchema:D,validateOnChange:!1},({values:xe,errors:Oe,handleChange:Le})=>e.createElement(O.l0,{noValidate:!0},e.createElement(ke.sg,null,e.createElement(i.Z,null),e.createElement(v.x,{paddingTop:6,paddingBottom:1},e.createElement(m.Z,{variant:"alpha",as:"h1"},ie({id:"Auth.form.welcome.title",defaultMessage:"Welcome!"}))),e.createElement(v.x,{paddingBottom:7},e.createElement(m.Z,{variant:"epsilon",textColor:"neutral600"},ie({id:"Auth.form.welcome.subtitle",defaultMessage:"Log in to your Strapi account"}))),Oe.errorMessage&&e.createElement(m.Z,{id:"global-form-error",role:"alert",tabIndex:-1,textColor:"danger600"},Oe.errorMessage)),e.createElement(h.k,{direction:"column",alignItems:"stretch",gap:6},e.createElement(E.o,{error:Oe.email?ie({id:Oe.email,defaultMessage:"This value is required."}):"",value:xe.email,onChange:Le,label:ie({id:"Auth.form.email.label",defaultMessage:"Email"}),placeholder:ie({id:"Auth.form.email.placeholder",defaultMessage:"kai@doe.com"}),name:"email",required:!0}),e.createElement(pe,{error:Oe.password?ie({id:Oe.password,defaultMessage:"This value is required."}):"",onChange:Le,value:xe.password,label:ie({id:"global.password",defaultMessage:"Password"}),name:"password",type:Me?"text":"password",endAction:e.createElement(a.Z,{onClick:Ve=>{Ve.stopPropagation(),Pe(je=>!je)},label:ie(Me?{id:"Auth.form.password.show-password",defaultMessage:"Show password"}:{id:"Auth.form.password.hide-password",defaultMessage:"Hide password"})},Me?e.createElement(oe.Z,null):e.createElement(z.Z,null)),required:!0}),e.createElement(W.X,{onValueChange:Ve=>{Le({target:{value:Ve,name:"rememberMe"}})},value:xe.rememberMe,"aria-label":"rememberMe",name:"rememberMe"},ie({id:"Auth.form.rememberMe.label",defaultMessage:"Remember me"})),e.createElement(X.z,{fullWidth:!0,type:"submit"},ie({id:"Auth.form.button.login",defaultMessage:"Login"}))))),Y),e.createElement(h.k,{justifyContent:"center"},e.createElement(v.x,{paddingTop:4},e.createElement(O.rU,{to:"/auth/forgot-password"},ie({id:"Auth.link.forgot-password",defaultMessage:"Forgot your password?"})))))};fe.defaultProps={children:null,onSubmit(){}},fe.propTypes={children:$().node,onSubmit:$().func,schema:$().shape({type:$().string.isRequired}).isRequired},y.Z=fe},33248:function(G,y,t){"use strict";t.r(y);var e=t(32735),E=t(27649),P=t(82055),v=t(17e3),m=t(9695),h=t(19565),W=t(8482),X=t(25386),O=t(67879);const oe=()=>{const{formatMessage:z}=(0,O.Z)();return(0,h.go)(),e.createElement(E.o,{labelledBy:"title"},e.createElement(P.T,{id:"title",title:z({id:"content-manager.pageNotFound",defaultMessage:"Page not found"})}),e.createElement(v.D,null,e.createElement(m.x,{action:e.createElement(h.Qj,{variant:"secondary",endIcon:e.createElement(W.Z,null),to:"/"},z({id:"app.components.NotFoundPage.back",defaultMessage:"Back to homepage"})),content:z({id:"app.page.not.found",defaultMessage:"Oops! We can't seem to find the page you're looging for..."}),hasRadius:!0,icon:e.createElement(X.Z,{width:"10rem"}),shadow:"tableShadow"})))};y.default=oe},5074:function(G,y){"use strict";const t=({data:e})=>{try{return Object.keys(e).reduce((E,P)=>{const v=e[P][0];return E[P]={id:v,defaultMessage:v},E},{})}catch{return{}}};y.Z=t},86209:function(G,y,t){"use strict";t.d(y,{R6:function(){return P},ot:function(){return oe},Iz:function(){return z.Z},Pp:function(){return ge},IF:function(){return $},Qy:function(){return fe},WW:function(){return Ae}});var e=t(19565),P=async(R,D)=>{let Y=null;try{await D.validate(R,{abortEarly:!1})}catch(Me){Y=(0,e.CJ)(Me)}return Y},v=t(32735),m=t(60216),h=t.n(m),W=t(53038);const X=({loadComponent:R})=>{const[D,Y]=(0,v.useState)(null);return(0,v.useEffect)(()=>{(async()=>{try{const Pe=await R();Y(()=>Pe.default)}catch(Pe){console.log(Pe)}})()},[R]),D?v.createElement(D,null):v.createElement(e.dO,null)},O=(R,D,Y)=>v.createElement(W.AW,{render:()=>v.createElement(X,{loadComponent:R}),key:D,path:D,exact:Y||!1});X.propTypes={loadComponent:h().func.isRequired};var oe=O,z=t(5074),ge=(R,D="")=>[R,D].filter(Y=>Y).join(" "),$=R=>`/admin/${R}`,Ae=R=>R.filter((D,Y,Me)=>Me.findIndex(Pe=>Pe.key===D.key)===Y),i=t(98978);const ke=R=>sortBy(R,D=>D.name);var a=null;const pe={bufferToHex(R){return[...new Uint8Array(R)].map(D=>D.toString(16).padStart(2,"0")).join("")},async digestMessage(R){const D=new TextEncoder().encode(R),Y=await crypto.subtle.digest("SHA-256",D);return this.bufferToHex(Y)}};async function fe(R){if(!R)return null;try{return await pe.digestMessage(R.email)}catch{return null}}},48224:function(G,y,t){var e={"./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],"./eu.json":[69511,8360],"./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 E(P){if(!t.o(e,P))return Promise.resolve().then(function(){var h=new Error("Cannot find module '"+P+"'");throw h.code="MODULE_NOT_FOUND",h});var v=e[P],m=v[0];return t.e(v[1]).then(function(){return t.t(m,19)})}E.keys=function(){return Object.keys(e)},E.id=48224,G.exports=E},47750:function(G,y,t){"use strict";G.exports=t.p+"70674f63fc3904c20de0.svg"}}]);