@strapi/admin 4.14.5 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/StrapiApp.js +13 -12
- package/admin/src/components/AuthenticatedApp.tsx +187 -0
- package/admin/src/components/ConfigurationProvider.tsx +2 -1
- package/admin/src/components/GuidedTour/Homepage.tsx +111 -0
- package/admin/src/components/GuidedTour/Modal.tsx +303 -0
- package/admin/src/components/GuidedTour/Ornaments.tsx +74 -0
- package/admin/src/components/GuidedTour/Provider.tsx +253 -0
- package/admin/src/components/GuidedTour/{layout.js → constants.ts} +13 -3
- package/admin/src/components/LanguageProvider.tsx +1 -0
- package/admin/src/components/Providers.tsx +125 -0
- package/admin/src/components/RBACProvider.tsx +124 -0
- package/admin/src/components/Theme.tsx +4 -2
- package/admin/src/components/ThemeToggleProvider.tsx +23 -9
- package/admin/src/components/__mocks__/{LanguageProvider.js → LanguageProvider.ts} +2 -0
- package/admin/src/{constants.js → constants.ts} +48 -0
- package/admin/src/content-manager/components/BlocksEditor/Toolbar/index.js +75 -51
- package/admin/src/content-manager/components/BlocksEditor/hooks/useBlocksStore.js +72 -14
- package/admin/src/content-manager/pages/App/selectors.js +1 -1
- package/admin/src/content-manager/pages/App/useContentManagerInitData.js +3 -1
- package/admin/src/content-manager/pages/EditView/selectors.js +1 -1
- package/admin/src/content-manager/pages/EditViewLayoutManager/index.js +3 -1
- package/admin/src/content-manager/pages/ListView/components/Body/index.js +53 -56
- package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/SelectedEntriesModal/index.js +5 -3
- package/admin/src/content-manager/pages/ListView/components/TableRows/index.js +1 -1
- package/admin/src/content-manager/pages/ListView/index.js +33 -50
- package/admin/src/content-manager/pages/ListView/selectors.js +1 -1
- package/admin/src/contexts/admin.ts +1 -0
- package/admin/src/contexts/apiTokenPermissions.tsx +64 -0
- package/admin/src/contexts/themeToggle.ts +3 -1
- package/admin/src/core/store/configure.ts +91 -0
- package/admin/src/core/store/hooks.ts +15 -0
- package/admin/src/hooks/index.js +0 -1
- package/admin/src/hooks/{useContentTypes/useContentTypes.js → useContentTypes.ts} +39 -16
- package/admin/src/hooks/useSettingsForm/index.js +14 -2
- package/admin/src/hooks/useSettingsMenu/constants.js +39 -0
- package/admin/src/index.js +2 -4
- package/admin/src/layouts/{AppLayout/index.js → AppLayout.tsx} +7 -10
- package/admin/src/layouts/UnauthenticatedLayout.tsx +77 -0
- package/admin/src/pages/Admin/index.js +11 -5
- package/admin/src/pages/App/index.js +7 -4
- package/admin/src/pages/App/selectors.js +1 -1
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +2 -1
- package/admin/src/pages/AuthPage/components/ForgotPasswordSuccess/index.js +2 -1
- package/admin/src/pages/AuthPage/components/Login/index.js +1 -1
- package/admin/src/pages/AuthPage/components/Oops/index.js +2 -1
- package/admin/src/pages/AuthPage/components/Register/index.js +1 -1
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +2 -1
- package/admin/src/pages/AuthPage/index.js +2 -3
- package/admin/src/pages/HomePage/index.js +6 -3
- package/admin/src/pages/{InternalErrorPage/index.js → InternalErrorPage.tsx} +10 -6
- package/admin/src/pages/{NotFoundPage/index.js → NotFoundPage.tsx} +9 -7
- package/admin/src/pages/ProfilePage/components/Preferences/index.js +23 -9
- package/admin/src/pages/ProfilePage/index.js +1 -1
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +20 -0
- package/admin/src/pages/SettingsPage/constants.js +33 -0
- package/admin/src/pages/SettingsPage/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/CollapsableContentType/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/AuditLogs/SalesPage.js +50 -0
- package/admin/src/pages/SettingsPage/pages/ReviewWorkflows/SalesPage.js +53 -0
- package/admin/src/pages/SettingsPage/pages/SingleSignOn/SalesPage.js +53 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +2 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js +1 -1
- package/admin/src/pages/{UseCasePage/index.js → UseCasePage.tsx} +10 -12
- package/admin/src/translations/en.json +5 -0
- package/admin/src/utils/createRoute.tsx +54 -0
- package/admin/src/utils/formatAPIErrors.ts +18 -0
- package/admin/src/utils/getFullName.ts +3 -0
- package/admin/src/utils/{uniqueAdminHash.js → hashAdminUserEmail.ts} +6 -3
- package/admin/src/utils/makeUniqueRoutes.ts +11 -0
- package/build/{1049.9236e785.chunk.js → 1049.ecc10c97.chunk.js} +1 -1
- package/build/1217.96155682.chunk.js +35 -0
- package/build/{1227.e0f7447b.chunk.js → 1227.947ceaf9.chunk.js} +1 -1
- package/build/1306.2699df52.chunk.js +79 -0
- package/build/{1386.07f2bbb3.chunk.js → 1386.eabd8a1e.chunk.js} +1 -1
- package/build/{2379.b0bc4013.chunk.js → 2379.7ce8e110.chunk.js} +1 -1
- package/build/{2395.d37b1025.chunk.js → 2395.acb961a8.chunk.js} +3 -3
- package/build/{2801.12522720.chunk.js → 2801.4711ea5a.chunk.js} +1 -1
- package/build/{3019.0d74d080.chunk.js → 3019.fde2e1be.chunk.js} +2 -2
- package/build/3460.8644e608.chunk.js +146 -0
- package/build/{3483.8f1b25f8.chunk.js → 3483.db8c1520.chunk.js} +1 -1
- package/build/{4174.2c4f958e.chunk.js → 4174.49cedb6a.chunk.js} +1 -1
- package/build/4732.149f5f8f.chunk.js +1 -0
- package/build/{502.b845473a.chunk.js → 502.f536f78b.chunk.js} +1 -1
- package/build/{7464.91341b4f.chunk.js → 7464.579564ac.chunk.js} +1 -1
- package/build/7811.fdbe09af.chunk.js +103 -0
- package/build/{7897.dffa5ad5.chunk.js → 7897.63ba0a00.chunk.js} +1 -1
- package/build/{8276.e9698944.chunk.js → 8276.9abe4679.chunk.js} +3 -3
- package/build/8773.ee67141c.chunk.js +48 -0
- package/build/9077.2cc01ac8.chunk.js +105 -0
- package/build/{9218.306ad178.chunk.js → 9218.b2d367f8.chunk.js} +1 -1
- package/build/Admin-authenticatedApp.059dc48f.chunk.js +79 -0
- package/build/Admin_InternalErrorPage.06eeef20.chunk.js +1 -0
- package/build/Admin_homePage.56b9eb3f.chunk.js +81 -0
- package/build/{Admin_marketplace.0db78604.chunk.js → Admin_marketplace.d693a435.chunk.js} +1 -1
- package/build/{Admin_pluginsPage.1083f7f0.chunk.js → Admin_pluginsPage.ae2c872a.chunk.js} +1 -1
- package/build/Admin_profilePage.89099d5b.chunk.js +13 -0
- package/build/Admin_settingsPage.88c45586.chunk.js +12 -0
- package/build/{Upload_ConfigureTheView.3cfeb108.chunk.js → Upload_ConfigureTheView.44f28145.chunk.js} +1 -1
- package/build/admin-app.990e112f.chunk.js +69 -0
- package/build/{admin-edit-roles-page.556fac52.chunk.js → admin-edit-roles-page.4e1eb4a9.chunk.js} +3 -3
- package/build/admin-edit-users.5b91404e.chunk.js +10 -0
- package/build/{admin-roles-list.15918328.chunk.js → admin-roles-list.89dd94fe.chunk.js} +1 -1
- package/build/{admin-users.74fddc87.chunk.js → admin-users.7be4fc5f.chunk.js} +2 -2
- package/build/{api-tokens-create-page.c08ae118.chunk.js → api-tokens-create-page.571920e5.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.ce18efdc.chunk.js → api-tokens-edit-page.cbdc81b1.chunk.js} +1 -1
- package/build/{api-tokens-list-page.783b7569.chunk.js → api-tokens-list-page.de0c49e8.chunk.js} +2 -2
- package/build/audit-logs-sales-page.2955db88.chunk.js +1 -0
- package/build/{audit-logs-settings-page.12aeea8c.chunk.js → audit-logs-settings-page.b0cb5164.chunk.js} +1 -1
- package/build/content-manager.de7ae330.chunk.js +1241 -0
- package/build/{content-type-builder-list-view.38ed3935.chunk.js → content-type-builder-list-view.6c8d3213.chunk.js} +1 -1
- package/build/{content-type-builder-translation-en-json.43f9d7bc.chunk.js → content-type-builder-translation-en-json.74d80f18.chunk.js} +1 -1
- package/build/{content-type-builder.758a9d23.chunk.js → content-type-builder.0bc97051.chunk.js} +13 -23
- package/build/{email-settings-page.e08a587e.chunk.js → email-settings-page.07712efc.chunk.js} +1 -1
- package/build/en-json.5b907f67.chunk.js +1 -0
- package/build/{i18n-settings-page.3186e3e9.chunk.js → i18n-settings-page.5c34f012.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.f84563f1.js +2665 -0
- package/build/review-workflows-sales-page.f46a8f00.chunk.js +1 -0
- package/build/{review-workflows-settings-create-view.5cdc4d64.chunk.js → review-workflows-settings-create-view.d0544fb0.chunk.js} +1 -1
- package/build/{review-workflows-settings-edit-view.53bf7865.chunk.js → review-workflows-settings-edit-view.aabf49ef.chunk.js} +1 -1
- package/build/review-workflows-settings-list-view.8b0525ab.chunk.js +56 -0
- package/build/runtime~main.270fd45f.js +2 -0
- package/build/sso-sales-page.ef22e469.chunk.js +1 -0
- package/build/sso-settings-page.21e16ae4.chunk.js +1 -0
- package/build/{transfer-tokens-create-page.2662d519.chunk.js → transfer-tokens-create-page.3366204d.chunk.js} +1 -1
- package/build/{transfer-tokens-edit-page.f64d8d8c.chunk.js → transfer-tokens-edit-page.15cf0f73.chunk.js} +1 -1
- package/build/{transfer-tokens-list-page.e6fd5f87.chunk.js → transfer-tokens-list-page.0bc0e682.chunk.js} +2 -2
- package/build/{upload-settings.450a1de0.chunk.js → upload-settings.1319dca0.chunk.js} +1 -1
- package/build/{upload.0d53e7a3.chunk.js → upload.1ced11be.chunk.js} +1 -1
- package/build/{users-advanced-settings-page.4a1f1f6d.chunk.js → users-advanced-settings-page.8e657084.chunk.js} +1 -1
- package/build/{users-email-settings-page.ea81fe82.chunk.js → users-email-settings-page.e57745e5.chunk.js} +1 -1
- package/build/{users-providers-settings-page.10280cdb.chunk.js → users-providers-settings-page.55796d13.chunk.js} +1 -1
- package/build/{users-roles-settings-page.4a7158be.chunk.js → users-roles-settings-page.57079245.chunk.js} +1 -1
- package/build/webhook-edit-page.3a28b2e7.chunk.js +33 -0
- package/build/{webhook-list-page.f57285ca.chunk.js → webhook-list-page.ee80767b.chunk.js} +1 -1
- package/ee/admin/pages/AuthPage/components/Login/index.js +1 -1
- package/ee/admin/pages/AuthPage/components/Providers/index.js +2 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/selectors.js +1 -1
- package/ee/server/bootstrap.js +1 -1
- package/ee/server/controllers/admin.js +1 -1
- package/ee/server/controllers/user.js +1 -1
- package/ee/server/destroy.js +1 -1
- package/ee/server/register.js +1 -1
- package/ee/server/routes/utils.js +1 -1
- package/ee/server/services/audit-logs.js +1 -1
- package/ee/server/services/passport/sso.js +1 -1
- package/ee/server/services/passport.js +1 -1
- package/ee/server/services/seat-enforcement.js +1 -1
- package/ee/server/utils/sso-lock.js +1 -1
- package/ee/server/validation/role.js +1 -1
- package/ee/server/validation/user.js +1 -1
- package/package.json +15 -16
- package/server/controllers/admin.js +1 -1
- package/shared/entities.ts +1 -1
- package/shared/permissions.ts +35 -35
- package/shared/schema.ts +9 -0
- package/admin/src/components/AuthenticatedApp/index.js +0 -116
- package/admin/src/components/AuthenticatedApp/utils/api.js +0 -47
- package/admin/src/components/AuthenticatedApp/utils/checkLatestStrapiVersion.ts +0 -13
- package/admin/src/components/AuthenticatedApp/utils/fetchStrapiLatestRelease.ts +0 -19
- package/admin/src/components/GuidedTour/Homepage/components/Step.js +0 -61
- package/admin/src/components/GuidedTour/Homepage/components/Stepper.js +0 -61
- package/admin/src/components/GuidedTour/Homepage/index.js +0 -71
- package/admin/src/components/GuidedTour/Modal/components/Content.js +0 -66
- package/admin/src/components/GuidedTour/Modal/components/Modal.js +0 -72
- package/admin/src/components/GuidedTour/Modal/components/StepNumberWithPadding.js +0 -26
- package/admin/src/components/GuidedTour/Modal/components/Stepper.js +0 -118
- package/admin/src/components/GuidedTour/Modal/index.js +0 -94
- package/admin/src/components/GuidedTour/Modal/reducer.js +0 -29
- package/admin/src/components/GuidedTour/Stepper/StepLine.js +0 -29
- package/admin/src/components/GuidedTour/Stepper/StepNumber.js +0 -71
- package/admin/src/components/GuidedTour/constants.js +0 -3
- package/admin/src/components/GuidedTour/index.js +0 -102
- package/admin/src/components/GuidedTour/init.js +0 -37
- package/admin/src/components/GuidedTour/reducer.js +0 -50
- package/admin/src/components/GuidedTour/utils/arePreviousSectionsDone.js +0 -13
- package/admin/src/components/GuidedTour/utils/arePreviousStepsDone.js +0 -12
- package/admin/src/components/GuidedTour/utils/isGuidedTourCompleted.js +0 -6
- package/admin/src/components/GuidedTour/utils/persistStateToLocaleStorage.js +0 -34
- package/admin/src/components/Providers/index.js +0 -156
- package/admin/src/components/RBACProvider/actions.js +0 -10
- package/admin/src/components/RBACProvider/constants.js +0 -2
- package/admin/src/components/RBACProvider/index.js +0 -39
- package/admin/src/components/RBACProvider/reducer.js +0 -51
- package/admin/src/contexts/ApiTokenPermissions/index.js +0 -25
- package/admin/src/core/store/configureStore.js +0 -47
- package/admin/src/exposedHooks.js +0 -27
- package/admin/src/hooks/useContentTypes/index.js +0 -1
- package/admin/src/injectionZones.js +0 -25
- package/admin/src/layouts/UnauthenticatedLayout/LocaleToggle/index.js +0 -29
- package/admin/src/layouts/UnauthenticatedLayout/index.js +0 -55
- package/admin/src/reducers.js +0 -23
- package/admin/src/utils/checkFormValidity.js +0 -15
- package/admin/src/utils/createRoute.js +0 -50
- package/admin/src/utils/formatAPIErrors.js +0 -17
- package/admin/src/utils/getAttributesToDisplay.js +0 -19
- package/admin/src/utils/getExistingActions.js +0 -32
- package/admin/src/utils/getFullName.js +0 -9
- package/admin/src/utils/index.js +0 -9
- package/admin/src/utils/makeUniqueRoutes.js +0 -6
- package/admin/src/utils/sortLinks.js +0 -5
- package/build/1222.fe92c653.chunk.js +0 -35
- package/build/2225.a2147b8f.chunk.js +0 -79
- package/build/3021.33ad47fb.chunk.js +0 -103
- package/build/6373.1a21d665.chunk.js +0 -105
- package/build/8894.5ca4852a.chunk.js +0 -26
- package/build/9302.550cf5b7.chunk.js +0 -146
- package/build/Admin-authenticatedApp.e897fccb.chunk.js +0 -79
- package/build/Admin_InternalErrorPage.e2431a95.chunk.js +0 -1
- package/build/Admin_homePage.71ef8d06.chunk.js +0 -81
- package/build/Admin_profilePage.61704b7d.chunk.js +0 -13
- package/build/Admin_settingsPage.39cb9fca.chunk.js +0 -111
- package/build/admin-app.06f5e70a.chunk.js +0 -69
- package/build/admin-edit-users.64fd1318.chunk.js +0 -10
- package/build/content-manager.2e3f660b.chunk.js +0 -1220
- package/build/en-json.bd611a8e.chunk.js +0 -1
- package/build/main.00ea6f5a.js +0 -2665
- package/build/review-workflows-settings-list-view.b4a8aefb.chunk.js +0 -56
- package/build/runtime~main.e3bf3980.js +0 -2
- package/build/sso-settings-page.6a35d473.chunk.js +0 -1
- package/build/webhook-edit-page.65ac30ee.chunk.js +0 -33
- /package/admin/src/hooks/{useContentTypes/__mocks__/index.js → __mocks__/useContentTypes.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7897],{4468:function(G,u,t){t.d(u,{I:function(){return e},U:function(){return n}});const e="strapi_stage",n="strapi_assignee"},8291:function(G,u,t){t.r(u),t.d(u,{InformationBoxEE:function(){return ee}});var e=t(32735),n=t(
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7897],{4468:function(G,u,t){t.d(u,{I:function(){return e},U:function(){return n}});const e="strapi_stage",n="strapi_assignee"},8291:function(G,u,t){t.r(u),t.d(u,{InformationBoxEE:function(){return ee}});var e=t(32735),n=t(96192),l=t(98865),v=t(750),s=t(84642),T=t(70843),d=t(8241),i=t(67879),g=t(20108),A=t(40986),m=t(69997),S=t(62089),M=t(30305),a=t(4468);function N(){const{initialData:f,layout:{uid:W},isSingleType:C,onChange:K}=(0,n.Wq)(),$=(0,A.v9)(M._),{formatMessage:r}=(0,i.Z)(),{formatAPIError:Y}=(0,n.So)(),p=(0,n.lm)(),{put:Z}=(0,n.kY)(),{allowedActions:{canReadUsers:w},isLoading:R}=(0,n.ss)({readUsers:$.settings.users.read}),{users:U,isLoading:F,isError:H}=(0,S.R)({},{enabled:!R&&w}),I=f?.[a.U]??null,L=async({value:c})=>{E.mutate({entityId:f.id,assigneeId:parseInt(c,10),uid:W})},E=(0,g.useMutation)(async({entityId:c,assigneeId:z,uid:J})=>{const h=C?"single-types":"collection-types",{data:{data:y}}=await Z(`/admin/content-manager/${h}/${J}/${c}/assignee`,{data:{id:z}});return K({target:{name:a.U,value:y[a.U]}},!0),y},{onSuccess(){p({type:"success",message:{id:"content-manager.reviewWorkflows.assignee.notification.saved",defaultMessage:"Assignee updated"}})}});return e.createElement(v.g,{name:a.U,id:a.U},e.createElement(s.k,{direction:"column",gap:2,alignItems:"stretch"},e.createElement(T.hQ,{clearLabel:r({id:"content-manager.reviewWorkflows.assignee.clear",defaultMessage:"Clear assignee"}),error:H&&w&&r({id:"content-manager.reviewWorkflows.assignee.error",defaultMessage:"An error occurred while fetching users"})||E.error&&Y(E.error),disabled:!R&&!F&&U.length===0,name:a.U,id:a.U,value:I?I.id:null,onChange:c=>L({value:c}),onClear:()=>L({value:null}),placeholder:r({id:"content-manager.reviewWorkflows.assignee.placeholder",defaultMessage:"Select \u2026"}),label:r({id:"content-manager.reviewWorkflows.assignee.label",defaultMessage:"Assignee"}),loading:F||R||E.isLoading},U.map(c=>e.createElement(d.O,{key:c.id,value:c.id,textValue:(0,m.Gf)(c,r)},(0,m.Gf)(c,r))))))}var k=t(4987),B=t(8365),D=t(35547),P=t(74925),x=t(15667),b=t(98866),O=t(90562),o=t(2121);function V({id:f,layout:W}={},C={}){const{kind:K,uid:$}=W,r=K==="collectionType"?"collection-types":"single-types",{get:Y}=(0,n.kY)(),{data:p,isLoading:Z,refetch:w}=(0,g.useQuery)(["content-manager",r,W.uid,f,"stages"],async()=>{const{data:F}=await Y(`/admin/content-manager/${r}/${$}/${f}/stages`);return F},C),R=e.useMemo(()=>p?.meta??{},[p?.meta]),U=e.useMemo(()=>p?.data??[],[p?.data]);return{meta:R,stages:U,isLoading:Z,refetch:w}}var j=t(68886);function X(){const{initialData:f,layout:W,isSingleType:C,onChange:K}=(0,n.Wq)(),{put:$}=(0,n.kY)(),{formatMessage:r}=(0,i.Z)(),{formatAPIError:Y}=(0,n.So)(),p=(0,n.lm)(),{meta:Z,stages:w,isLoading:R,refetch:U}=V({id:f.id,layout:W},{enabled:!!f?.id}),{getFeature:F}=(0,b.q)(),[H,I]=e.useState(!1),L=F("review-workflows"),E=f?.[a.I]??null,c=(0,g.useMutation)(async({entityId:h,stageId:y,uid:Q})=>{const q=C?"single-types":"collection-types",{data:{data:_}}=await $(`/admin/content-manager/${q}/${Q}/${h}/stage`,{data:{id:y}});return K({target:{name:a.I,value:_[a.I]}},!0),await U(),_},{onSuccess(){p({type:"success",message:{id:"content-manager.reviewWorkflows.stage.notification.saved",defaultMessage:"Review stage updated"}})}}),z=async({value:h})=>{try{L?.[o.Ef]&&parseInt(L[o.Ef],10)<Z.workflowCount?I("workflow"):L?.[o._X]&&parseInt(L[o._X],10)<w.length?I("stage"):c.mutateAsync({entityId:f.id,stageId:h,uid:W.uid})}catch{}},{themeColorName:J}=E?.color?(0,j.k)(E?.color):{};return e.createElement(e.Fragment,null,e.createElement(v.g,{hint:w.length===0&&r({id:"content-manager.reviewWorkflows.stages.no-transition",defaultMessage:"You don\u2019t have the permission to update this stage."}),name:a.I,id:a.I},e.createElement(s.k,{direction:"column",gap:2,alignItems:"stretch"},e.createElement(k.q4,{disabled:w.length===0,error:c.error&&Y(c.error)||null,name:a.I,id:a.I,value:E?.id,onChange:h=>z({value:h}),label:r({id:"content-manager.reviewWorkflows.stage.label",defaultMessage:"Review stage"}),startIcon:E&&e.createElement(s.k,{as:"span",height:2,background:E?.color,borderColor:J==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2,marginRight:"-3px"}),customizeContent:()=>e.createElement(s.k,{as:"span",justifyContent:"space-between",alignItems:"center",width:"100%"},e.createElement(B.Z,{textColor:"neutral800",ellipsis:!0},E?.name??""),R?e.createElement(D.a,{small:!0,style:{display:"flex"},"data-testid":"loader"}):null)},w.map(({id:h,color:y,name:Q})=>{const{themeColorName:q}=(0,j.k)(y);return e.createElement(k.ag,{key:h,startIcon:e.createElement(s.k,{height:2,background:y,borderColor:q==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),value:h,textValue:Q},Q)})),e.createElement(P.J,null),e.createElement(x.c,null))),e.createElement(O.fC,{isOpen:H==="workflow",onClose:()=>I(!1)},e.createElement(O.Dx,null,r({id:"content-manager.reviewWorkflows.workflows.limit.title",defaultMessage:"You\u2019ve reached the limit of workflows in your plan"})),e.createElement(O.uT,null,r({id:"content-manager.reviewWorkflows.workflows.limit.body",defaultMessage:"Delete a workflow or contact Sales to enable more workflows."}))),e.createElement(O.fC,{isOpen:H==="stage",onClose:()=>I(!1)},e.createElement(O.Dx,null,r({id:"content-manager.reviewWorkflows.stages.limit.title",defaultMessage:"You have reached the limit of stages for this workflow in your plan"})),e.createElement(O.uT,null,r({id:"content-manager.reviewWorkflows.stages.limit.body",defaultMessage:"Try deleting some stages or contact Sales to enable more stages."}))))}function ee(){const{isCreatingEntry:f,layout:{options:W}}=(0,n.Wq)(),C=W?.reviewWorkflows??!1;return e.createElement(l.d.Root,null,e.createElement(l.d.Title,null),C&&!f&&e.createElement(e.Fragment,null,e.createElement(X,null),e.createElement(N,null)),e.createElement(l.d.Body,null))}},98866:function(G,u,t){t.d(u,{q:function(){return v}});var e=t(32735),n=t(96192),l=t(20108);function v({enabled:s}={enabled:!0}){const{get:T}=(0,n.kY)(),{data:d,isError:i,isLoading:g}=(0,l.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:S}}=await T("/admin/license-limit-information");return S},{enabled:s}),A=e.useMemo(()=>d??{},[d]),m=e.useCallback(S=>(A?.features??[]).find(a=>a.name===S)?.options??{},[A?.features]);return{license:A,getFeature:m,isError:i,isLoading:g}}},90562:function(G,u,t){t.d(u,{uT:function(){return P},fC:function(){return O},Dx:function(){return D}});var e=t(32735),n=t(8365),l=t(84642),v=t(21223),s=t(87674),T=t(77981),d=t(14763),i=t(90431),g=t(98610),A=t(60216),m=t.n(A),S=t(67879),M=t(8471),a=t.p+"0cd5f8915b265d5b1856.png";const N="limits-title",k="https://strapi.io/pricing-cloud",B="https://strapi.io/contact-sales";function D({children:o}){return e.createElement(n.Z,{variant:"alpha",id:N},o)}D.propTypes={children:m().node.isRequired};function P({children:o}){return e.createElement(n.Z,{variant:"omega"},o)}P.propTypes={children:m().node.isRequired};function x(){const{formatMessage:o}=(0,S.Z)();return e.createElement(l.k,{gap:2,paddingTop:4},e.createElement(i.Q,{variant:"default",isExternal:!0,href:k},o({id:"Settings.review-workflows.limit.cta.learn",defaultMessage:"Learn more"})),e.createElement(i.Q,{variant:"tertiary",isExternal:!0,href:B},o({id:"Settings.review-workflows.limit.cta.sales",defaultMessage:"Contact Sales"})))}const b=M.ZP.img`
|
|
2
2
|
// Margin top|right reverse the padding of ModalBody
|
|
3
3
|
margin-right: ${({theme:o})=>`-${o.spaces[7]}`};
|
|
4
4
|
margin-top: ${({theme:o})=>`-${o.spaces[7]}`};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8276],{70606:function(M,d,e){e.d(d,{p:function(){return o}});var t=e(32735),u=e(
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8276],{70606:function(M,d,e){e.d(d,{p:function(){return o}});var t=e(32735),u=e(96192),c=e(20108);const o=(l={})=>{const{get:r}=(0,u.kY)(),{data:m,isLoading:a}=(0,c.useQuery)(["ee","providers"],async()=>{const{data:g}=await r("/admin/providers");return g},l);return{providers:t.useMemo(()=>m??[],[m]),isLoading:a}}},68726:function(M,d,e){var t=e(32735),u=e(84642),c=e(11349),o=e(8365),l=e(10710),r=e(97037),m=e(60216),a=e.n(m),h=e(67879),g=e(14911),P=e(8471);const O=P.ZP.a`
|
|
2
2
|
width: ${136/16}rem;
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
& a:last-child {
|
|
22
22
|
margin-left: ${({theme:n})=>n.spaces[2]};
|
|
23
23
|
}
|
|
24
|
-
`,i=({provider:n})=>t.createElement(c.u,{label:n.displayName},t.createElement(O,{href:`${window.strapi.backendURL}/admin/connect/${n.uid}`},n.icon?t.createElement("img",{src:n.icon,"aria-hidden":!0,alt:"",height:"32px"}):t.createElement(o.Z,null,n.displayName)));i.propTypes={provider:a().shape({icon:a().string,displayName:a().string.isRequired,uid:a().string.isRequired}).isRequired};const v=({providers:n,displayAllProviders:p})=>{const{formatMessage:D}=(0,h.Z)();return p?t.createElement(l.r,{gap:4},n.map(s=>t.createElement(r.P,{key:s.uid,col:4},t.createElement(i,{provider:s})))):n.length>2&&!p?t.createElement(l.r,{gap:4},n.slice(0,2).map(s=>t.createElement(r.P,{key:s.uid,col:4},t.createElement(i,{provider:s}))),t.createElement(r.P,{col:4},t.createElement(c.u,{label:D({id:"global.see-more"})},t.createElement(O,{as:g.rU,to:"/auth/providers"},t.createElement("span",{"aria-hidden":!0},"\u2022\u2022\u2022"))))):t.createElement(f,{justifyContent:"center"},n.map(s=>t.createElement(i,{key:s.uid,provider:s})))};v.defaultProps={displayAllProviders:!0},v.propTypes={providers:a().arrayOf(a().object).isRequired,displayAllProviders:a().bool},d.Z=v},18276:function(M,d,e){e.r(d),e.d(d,{FORMS:function(){return R}});var t=e(32735),u=e(2775),c=e(95162),o=e(77981),l=e(8365),r=e(84642),m=e(35547),a=e(91779),h=e(
|
|
24
|
+
`,i=({provider:n})=>t.createElement(c.u,{label:n.displayName},t.createElement(O,{href:`${window.strapi.backendURL}/admin/connect/${n.uid}`},n.icon?t.createElement("img",{src:n.icon,"aria-hidden":!0,alt:"",height:"32px"}):t.createElement(o.Z,null,n.displayName)));i.propTypes={provider:a().shape({icon:a().string,displayName:a().string.isRequired,uid:a().string.isRequired}).isRequired};const v=({providers:n,displayAllProviders:p})=>{const{formatMessage:D}=(0,h.Z)();return p?t.createElement(l.r,{gap:4},n.map(s=>t.createElement(r.P,{key:s.uid,col:4},t.createElement(i,{provider:s})))):n.length>2&&!p?t.createElement(l.r,{gap:4},n.slice(0,2).map(s=>t.createElement(r.P,{key:s.uid,col:4},t.createElement(i,{provider:s}))),t.createElement(r.P,{col:4},t.createElement(c.u,{label:D({id:"global.see-more"})},t.createElement(O,{as:g.rU,to:"/auth/providers"},t.createElement("span",{"aria-hidden":!0},"\u2022\u2022\u2022"))))):t.createElement(f,{justifyContent:"center"},n.map(s=>t.createElement(i,{key:s.uid,provider:s})))};v.defaultProps={displayAllProviders:!0},v.propTypes={providers:a().arrayOf(a().object).isRequired,displayAllProviders:a().bool},d.Z=v},18276:function(M,d,e){e.r(d),e.d(d,{FORMS:function(){return R}});var t=e(32735),u=e(2775),c=e(95162),o=e(77981),l=e(8365),r=e(84642),m=e(35547),a=e(91779),h=e(96192),g=e(67879),P=e(53038),O=e(8471),f=e(1211),i=e(74338),v=e(70606),n=e(68726);const p=(0,O.ZP)(u.i)`
|
|
25
25
|
flex: 1;
|
|
26
|
-
`;var s=()=>{const{push:A}=(0,P.k6)(),{formatMessage:E}=(0,g.Z)(),{isLoading:y,providers:C}=(0,v.p)({enabled:window.strapi.features.isEnabled(window.strapi.features.SSO)}),L=()=>{A("/auth/login")};return!window.strapi.features.isEnabled(window.strapi.features.SSO)||!y&&C.length===0?t.createElement(P.l_,{to:"/auth/login"}):t.createElement(i.
|
|
26
|
+
`;var s=()=>{const{push:A}=(0,P.k6)(),{formatMessage:E}=(0,g.Z)(),{isLoading:y,providers:C}=(0,v.p)({enabled:window.strapi.features.isEnabled(window.strapi.features.SSO)}),L=()=>{A("/auth/login")};return!window.strapi.features.isEnabled(window.strapi.features.SSO)||!y&&C.length===0?t.createElement(P.l_,{to:"/auth/login"}):t.createElement(i.Md,null,t.createElement(c.o,null,t.createElement(i.bU,null,t.createElement(i.sg,null,t.createElement(f.T,null),t.createElement(o.x,{paddingTop:6,paddingBottom:1},t.createElement(l.Z,{as:"h1",variant:"alpha"},E({id:"Auth.form.welcome.title"}))),t.createElement(o.x,{paddingBottom:7},t.createElement(l.Z,{variant:"epsilon",textColor:"neutral600"},E({id:"Auth.login.sso.subtitle"})))),t.createElement(r.k,{direction:"column",alignItems:"stretch",gap:7},y?t.createElement(r.k,{justifyContent:"center"},t.createElement(m.a,null,E({id:"Auth.login.sso.loading"}))):t.createElement(n.Z,{providers:C}),t.createElement(r.k,null,t.createElement(p,null),t.createElement(o.x,{paddingLeft:3,paddingRight:3},t.createElement(l.Z,{variant:"sigma",textColor:"neutral600"},E({id:"or"}))),t.createElement(p,null)),t.createElement(a.z,{fullWidth:!0,size:"L",onClick:L},E({id:"Auth.form.button.login.strapi"})))),t.createElement(r.k,{justifyContent:"center"},t.createElement(o.x,{paddingTop:4},t.createElement(h.rU,{to:"/auth/forgot-password"},t.createElement(l.Z,{variant:"pi"},E({id:"Auth.link.forgot-password"})))))))};const R={providers:{Component:s,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""}}}}]);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8773],{82049:function(X,V,m){"use strict";m.d(V,{xC:function(){return P}});var v=m(97889),C=m(6680);function B(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(d){return function(p){return typeof p=="function"?p(a,i,e):d(p)}}};return r}var L=B();L.withExtraArgument=B;var F=L,z=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),I=function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,d;return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(c){return function(g){return S([c,g])}}function S(c){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,a=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){t.label=c[1];break}if(c[0]===6&&t.label<i[1]){t.label=i[1],i=c;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(c);break}i[2]&&t.ops.pop(),t.trys.pop();continue}c=r.call(e,t)}catch(g){c=[6,g],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Q=function(e,r){for(var t=0,n=r.length,a=e.length;t<n;t++,a++)e[a]=r[t];return e},Y=Object.defineProperty,ie=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,H=function(e,r,t){return r in e?Y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},k=function(e,r){for(var t in r||(r={}))R.call(r,t)&&H(e,t,r[t]);if(te)for(var n=0,a=te(r);n<a.length;n++){var t=a[n];Z.call(r,t)&&H(e,t,r[t])}return e},$=function(e,r){return ie(e,oe(r))},_=function(e,r,t){return new Promise(function(n,a){var i=function(S){try{p(t.next(S))}catch(c){a(c)}},d=function(S){try{p(t.throw(S))}catch(c){a(c)}},p=function(S){return S.done?n(S.value):Promise.resolve(S.value).then(i,d)};p((t=t.apply(e,r)).next())})},ee=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=createSelector.apply(void 0,e),n=function(a){for(var i=[],d=1;d<arguments.length;d++)i[d-1]=arguments[d];return t.apply(void 0,Q([isDraft(a)?current(a):a],i))};return n},ge=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?C.compose:C.compose.apply(null,arguments)},be=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function se(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return r===t}var de=function(e){return e&&typeof e.match=="function"};function ae(e,r){function t(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return k(k({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(n){return n.type===e},t}function Re(e){return se(e)&&"type"in e}function Ue(e){return typeof e=="function"&&"type"in e&&de(e)}function ze(e){return Re(e)&&typeof e.type=="string"&&Object.keys(e).every(Ke)}function Ke(e){return["type","payload","error","meta"].indexOf(e)>-1}function ir(e){return""+e}function Ze(e){var r=e?(""+e).split("/"):[],t=r[r.length-1]||"actionCreator";return'Detected an action creator with type "'+(e||"unknown")+`" being dispatched.
|
|
2
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(`+t+"())` instead of `dispatch("+t+")`. This is necessary even if the action has no payload."}function or(e){return e===void 0&&(e={}),function(){return function(n){return function(a){return n(a)}}};var r=e.isActionCreator,t=r===void 0?Ue:r;return function(){return function(n){return function(a){return t(a)&&console.warn(Ze(a.type)),n(a)}}}}function Te(e,r){var t=0;return{measureTime:function(n){var a=Date.now();try{return n()}finally{var i=Date.now();t+=i-a}},warnIfExceeded:function(){t>e&&console.warn(r+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
3
|
+
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
4
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Ge=function(e){z(r,e);function r(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=e.apply(this,t)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},r.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(r.bind.apply(r,Q([void 0],t[0].concat(this)))):new(r.bind.apply(r,Q([void 0],t.concat(this))))},r}(Array),Ve=function(e){z(r,e);function r(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=e.apply(this,t)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},r.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(r.bind.apply(r,Q([void 0],t[0].concat(this)))):new(r.bind.apply(r,Q([void 0],t.concat(this))))},r}(Array);function we(e){return isDraftable(e)?createNextState(e,function(){}):e}var Qe=null,De="Invariant failed";function Le(e,r){if(!e)throw Qe?new Error(De):new Error(De+": "+(r||""))}function $e(e,r,t,n){return JSON.stringify(e,Xe(r,n),t)}function Xe(e,r){var t=[],n=[];return r||(r=function(a,i){return t[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(i)).join(".")+"]"}),function(a,i){if(t.length>0){var d=t.indexOf(this);~d?t.splice(d+1):t.push(this),~d?n.splice(d,1/0,a):n.push(a),~t.indexOf(i)&&(i=r.call(this,a,i))}else t.push(i);return e==null?i:e.call(this,a,i)}}function He(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function xe(e,r,t){var n=Se(e,r,t);return{detectMutations:function(){return Ae(e,r,n,t)}}}function Se(e,r,t,n,a){r===void 0&&(r=[]),n===void 0&&(n=""),a===void 0&&(a=new Set);var i={value:t};if(!e(t)&&!a.has(t)){a.add(t),i.children={};for(var d in t){var p=n?n+"."+d:d;r.length&&r.indexOf(p)!==-1||(i.children[d]=Se(e,r,t[d],p))}}return i}function Ae(e,r,t,n,a,i){r===void 0&&(r=[]),a===void 0&&(a=!1),i===void 0&&(i="");var d=t?t.value:void 0,p=d===n;if(a&&!p&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(d)||e(n))return{wasMutated:!1};var S={};for(var c in t.children)S[c]=!0;for(var c in n)S[c]=!0;var g=r.length>0,T=function(b){var u=i?i+"."+b:b;if(g){var l=r.some(function(x){return x instanceof RegExp?x.test(u):u===x});if(l)return"continue"}var M=Ae(e,r,t.children[b],n[b],p,u);if(M.wasMutated)return{value:M}};for(var c in S){var A=T(c);if(typeof A=="object")return A.value}return{wasMutated:!1}}function Je(e){return e===void 0&&(e={}),function(){return function(S){return function(c){return S(c)}}};var r=e.isImmutable,t=r===void 0?He:r,n=e.ignoredPaths,a=e.warnAfter,i=a===void 0?32:a,d=e.ignore;n=n||d;var p=xe.bind(null,t,n);return function(S){var c=S.getState,g=c(),T=p(g),A;return function(b){return function(u){var l=Te(i,"ImmutableStateInvariantMiddleware");l.measureTime(function(){g=c(),A=T.detectMutations(),T=p(g),Le(!A.wasMutated,"A state mutation was detected between dispatches, in the path '"+(A.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var M=b(u);return l.measureTime(function(){g=c(),A=T.detectMutations(),T=p(g),A.wasMutated&&Le(!A.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(A.path||"")+". Take a look at the reducer(s) handling the action "+$e(u)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),l.warnIfExceeded(),M}}}}function ke(e){var r=typeof e;return e==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||se(e)}function je(e,r,t,n,a,i){r===void 0&&(r=""),t===void 0&&(t=ke),a===void 0&&(a=[]);var d;if(!t(e))return{keyPath:r||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;for(var p=n!=null?n(e):Object.entries(e),S=a.length>0,c=function(M,x){var h=r?r+"."+M:M;if(S){var O=a.some(function(j){return j instanceof RegExp?j.test(h):h===j});if(O)return"continue"}if(!t(x))return{value:{keyPath:h,value:x}};if(typeof x=="object"&&(d=je(x,h,t,n,a,i),d))return{value:d}},g=0,T=p;g<T.length;g++){var A=T[g],b=A[0],u=A[1],l=c(b,u);if(typeof l=="object")return l.value}return i&&o(e)&&i.add(e),!1}function o(e){if(!Object.isFrozen(e))return!1;for(var r=0,t=Object.values(e);r<t.length;r++){var n=t[r];if(!(typeof n!="object"||n===null)&&!o(n))return!1}return!0}function E(e){return e===void 0&&(e={}),function(){return function(O){return function(j){return O(j)}}};var r=e.isSerializable,t=r===void 0?ke:r,n=e.getEntries,a=e.ignoredActions,i=a===void 0?[]:a,d=e.ignoredActionPaths,p=d===void 0?["meta.arg","meta.baseQueryMeta"]:d,S=e.ignoredPaths,c=S===void 0?[]:S,g=e.warnAfter,T=g===void 0?32:g,A=e.ignoreState,b=A===void 0?!1:A,u=e.ignoreActions,l=u===void 0?!1:u,M=e.disableCache,x=M===void 0?!1:M,h=!x&&WeakSet?new WeakSet:void 0;return function(O){return function(j){return function(N){var G=j(N),J=Te(T,"SerializableStateInvariantMiddleware");return!l&&!(i.length&&i.indexOf(N.type)!==-1)&&J.measureTime(function(){var q=je(N,"",t,n,p,h);if(q){var re=q.keyPath,Me=q.value;console.error("A non-serializable value was detected in an action, in the path: `"+re+"`. Value:",Me,`
|
|
5
|
+
Take a look at the logic that dispatched this action: `,N,`
|
|
6
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
7
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),b||(J.measureTime(function(){var q=O.getState(),re=je(q,"",t,n,c,h);if(re){var Me=re.keyPath,pe=re.value;console.error("A non-serializable value was detected in the state, in the path: `"+Me+"`. Value:",pe,`
|
|
8
|
+
Take a look at the reducer(s) handling this action type: `+N.type+`.
|
|
9
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),J.warnIfExceeded()),G}}}}function f(e){return typeof e=="boolean"}function s(){return function(r){return w(r)}}function w(e){e===void 0&&(e={});var r=e.thunk,t=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,d=i===void 0?!0:i,p=e.actionCreatorCheck,S=p===void 0?!0:p,c=new Ge;if(t&&(f(t)?c.push(F):c.push(F.withExtraArgument(t.extraArgument))),!1)var g,T,A;return c}var y=!0;function P(e){var r=s(),t=e||{},n=t.reducer,a=n===void 0?void 0:n,i=t.middleware,d=i===void 0?r():i,p=t.devTools,S=p===void 0?!0:p,c=t.preloadedState,g=c===void 0?void 0:c,T=t.enhancers,A=T===void 0?void 0:T,b;if(typeof a=="function")b=a;else if(se(a))b=(0,C.combineReducers)(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var u=d;if(typeof u=="function"&&(u=u(r),!y&&!Array.isArray(u)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!y&&u.some(function(j){return typeof j!="function"}))throw new Error("each middleware provided to configureStore must be a function");var l=C.applyMiddleware.apply(void 0,u),M=C.compose;S&&(M=ge(k({trace:!y},typeof S=="object"&&S)));var x=new Ve(l),h=x;Array.isArray(A)?h=Q([l],A):typeof A=="function"&&(h=A(x));var O=M.apply(void 0,h);return(0,C.createStore)(b,g,O)}function D(e){var r={},t=[],n,a={addCase:function(i,d){var p=typeof i=="string"?i:i.type;if(!p)throw new Error("`builder.addCase` cannot be called with an empty action type");if(p in r)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return r[p]=d,a},addMatcher:function(i,d){return t.push({matcher:i,reducer:d}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,t,n]}function W(e){return typeof e=="function"}var fe=!1;function K(e,r,t,n){t===void 0&&(t=[]);var a=typeof r=="function"?D(r):[r,t,n],i=a[0],d=a[1],p=a[2],S;if(W(e))S=function(){return we(e())};else{var c=we(e);S=function(){return c}}function g(T,A){T===void 0&&(T=S());var b=Q([i[A.type]],d.filter(function(u){var l=u.matcher;return l(A)}).map(function(u){var l=u.reducer;return l}));return b.filter(function(u){return!!u}).length===0&&(b=[p]),b.reduce(function(u,l){if(l)if(isDraft2(u)){var M=u,x=l(M,A);return x===void 0?u:x}else{if(isDraftable2(u))return createNextState2(u,function(h){return l(h,A)});var x=l(u,A);if(x===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return u},T)}return g.getInitialState=S,g}var me=!1;function he(e,r){return e+"/"+r}function Ye(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof e.initialState=="function"?e.initialState:we(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},d={},p={};a.forEach(function(g){var T=n[g],A=he(r,g),b,u;"reducer"in T?(b=T.reducer,u=T.prepare):b=T,i[g]=b,d[A]=b,p[g]=u?ae(A,u):ae(A)});function S(){var g=typeof e.extraReducers=="function"?D(e.extraReducers):[e.extraReducers],T=g[0],A=T===void 0?{}:T,b=g[1],u=b===void 0?[]:b,l=g[2],M=l===void 0?void 0:l,x=k(k({},A),d);return K(t,function(h){for(var O in x)h.addCase(O,x[O]);for(var j=0,N=u;j<N.length;j++){var G=N[j];h.addMatcher(G.matcher,G.reducer)}M&&h.addDefaultCase(M)})}var c;return{name:r,reducer:function(g,T){return c||(c=S()),c(g,T)},actions:p,caseReducers:i,getInitialState:function(){return c||(c=S()),c.getInitialState()}}}function Fe(){return{ids:[],entities:{}}}function ue(){function e(r){return r===void 0&&(r={}),Object.assign(Fe(),r)}return{getInitialState:e}}function ve(){function e(r){var t=function(c){return c.ids},n=function(c){return c.entities},a=ee(t,n,function(c,g){return c.map(function(T){return g[T]})}),i=function(c,g){return g},d=function(c,g){return c[g]},p=ee(t,function(c){return c.length});if(!r)return{selectIds:t,selectEntities:n,selectAll:a,selectTotal:p,selectById:ee(n,i,d)};var S=ee(r,n);return{selectIds:ee(r,t),selectEntities:S,selectAll:ee(r,a),selectTotal:ee(r,p),selectById:ee(S,i,d)}}return{getSelectors:e}}function ne(e){var r=U(function(t,n){return e(n)});return function(n){return r(n,void 0)}}function U(e){return function(t,n){function a(d){return ze(d)}var i=function(d){a(n)?e(n.payload,d):e(n,d)};return isDraft3(t)?(i(t),t):createNextState3(t,i)}}function le(e,r){var t=r(e);return t}function ye(e){return Array.isArray(e)||(e=Object.values(e)),e}function ur(e,r,t){e=ye(e);for(var n=[],a=[],i=0,d=e;i<d.length;i++){var p=d[i],S=le(p,r);S in t.entities?a.push({id:S,changes:p}):n.push(p)}return[n,a]}function sr(e){function r(u,l){var M=le(u,e);M in l.entities||(l.ids.push(M),l.entities[M]=u)}function t(u,l){u=ye(u);for(var M=0,x=u;M<x.length;M++){var h=x[M];r(h,l)}}function n(u,l){var M=le(u,e);M in l.entities||l.ids.push(M),l.entities[M]=u}function a(u,l){u=ye(u);for(var M=0,x=u;M<x.length;M++){var h=x[M];n(h,l)}}function i(u,l){u=ye(u),l.ids=[],l.entities={},t(u,l)}function d(u,l){return p([u],l)}function p(u,l){var M=!1;u.forEach(function(x){x in l.entities&&(delete l.entities[x],M=!0)}),M&&(l.ids=l.ids.filter(function(x){return x in l.entities}))}function S(u){Object.assign(u,{ids:[],entities:{}})}function c(u,l,M){var x=M.entities[l.id],h=Object.assign({},x,l.changes),O=le(h,e),j=O!==l.id;return j&&(u[l.id]=O,delete M.entities[l.id]),M.entities[O]=h,j}function g(u,l){return T([u],l)}function T(u,l){var M={},x={};u.forEach(function(j){j.id in l.entities&&(x[j.id]={id:j.id,changes:k(k({},x[j.id]?x[j.id].changes:null),j.changes)})}),u=Object.values(x);var h=u.length>0;if(h){var O=u.filter(function(j){return c(M,j,l)}).length>0;O&&(l.ids=Object.keys(l.entities))}}function A(u,l){return b([u],l)}function b(u,l){var M=ur(u,e,l),x=M[0],h=M[1];T(h,l),t(x,l)}return{removeAll:ne(S),addOne:U(r),addMany:U(t),setOne:U(n),setMany:U(a),setAll:U(i),updateOne:U(g),updateMany:U(T),upsertOne:U(A),upsertMany:U(b),removeOne:U(d),removeMany:U(p)}}function Sr(e,r){var t=sr(e),n=t.removeOne,a=t.removeMany,i=t.removeAll;function d(h,O){return p([h],O)}function p(h,O){h=ye(h);var j=h.filter(function(N){return!(le(N,e)in O.entities)});j.length!==0&&M(j,O)}function S(h,O){return c([h],O)}function c(h,O){h=ye(h),h.length!==0&&M(h,O)}function g(h,O){h=ye(h),O.entities={},O.ids=[],p(h,O)}function T(h,O){return A([h],O)}function A(h,O){for(var j=!1,N=0,G=h;N<G.length;N++){var J=G[N],q=O.entities[J.id];if(q){j=!0,Object.assign(q,J.changes);var re=e(q);J.id!==re&&(delete O.entities[J.id],O.entities[re]=q)}}j&&x(O)}function b(h,O){return u([h],O)}function u(h,O){var j=ur(h,e,O),N=j[0],G=j[1];A(G,O),p(N,O)}function l(h,O){if(h.length!==O.length)return!1;for(var j=0;j<h.length&&j<O.length;j++)if(h[j]!==O[j])return!1;return!0}function M(h,O){h.forEach(function(j){O.entities[e(j)]=j}),x(O)}function x(h){var O=Object.values(h.entities);O.sort(r);var j=O.map(e),N=h.ids;l(N,j)||(h.ids=j)}return{removeOne:n,removeMany:a,removeAll:i,addOne:U(d),updateOne:U(T),upsertOne:U(b),setOne:U(S),setMany:U(c),setAll:U(g),addMany:U(p),updateMany:U(A),upsertMany:U(u)}}function Yr(e){e===void 0&&(e={});var r=k({sortComparer:!1,selectId:function(p){return p.id}},e),t=r.selectId,n=r.sortComparer,a=ue(),i=ve(),d=n?Sr(t,n):sr(t);return k(k(k({selectId:t,sortComparer:n},a),i),d)}var Ar="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fr=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=Ar[Math.random()*64|0];return r},jr=["name","message","stack","code"],qe=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),lr=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Pr=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,n=jr;t<n.length;t++){var a=n[t];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},qr=function(){function e(r,t,n){var a=ae(r+"/fulfilled",function(g,T,A,b){return{payload:g,meta:$(k({},b||{}),{arg:A,requestId:T,requestStatus:"fulfilled"})}}),i=ae(r+"/pending",function(g,T,A){return{payload:void 0,meta:$(k({},A||{}),{arg:T,requestId:g,requestStatus:"pending"})}}),d=ae(r+"/rejected",function(g,T,A,b,u){return{payload:b,error:(n&&n.serializeError||Pr)(g||"Rejected"),meta:$(k({},u||{}),{arg:A,requestId:T,rejectedWithValue:!!b,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),p=!1,S=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function c(g){return function(T,A,b){var u=n?.idGenerator?n.idGenerator(g):fr(),l=new S,M,x=!1;function h(j){M=j,l.abort()}var O=function(){return _(this,null,function(){var j,N,G,J,q,re,Me;return I(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,4,,5]),J=(j=n?.condition)==null?void 0:j.call(n,g,{getState:A,extra:b}),Cr(J)?[4,J]:[3,2];case 1:J=pe.sent(),pe.label=2;case 2:if(J===!1||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,q=new Promise(function(ce,Ce){return l.signal.addEventListener("abort",function(){return Ce({name:"AbortError",message:M||"Aborted"})})}),T(i(u,g,(N=n?.getPendingMeta)==null?void 0:N.call(n,{requestId:u,arg:g},{getState:A,extra:b}))),[4,Promise.race([q,Promise.resolve(t(g,{dispatch:T,getState:A,extra:b,requestId:u,signal:l.signal,abort:h,rejectWithValue:function(ce,Ce){return new qe(ce,Ce)},fulfillWithValue:function(ce,Ce){return new lr(ce,Ce)}})).then(function(ce){if(ce instanceof qe)throw ce;return ce instanceof lr?a(ce.payload,u,g,ce.meta):a(ce,u,g)})])];case 3:return G=pe.sent(),[3,5];case 4:return re=pe.sent(),G=re instanceof qe?d(null,u,g,re.payload,re.meta):d(re,u,g),[3,5];case 5:return Me=n&&!n.dispatchConditionRejection&&d.match(G)&&G.meta.condition,Me||T(G),[2,G]}})})}();return Object.assign(O,{abort:h,requestId:u,arg:g,unwrap:function(){return O.then(Ir)}})}}return Object.assign(c,{pending:i,rejected:d,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Ir(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Cr(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cr=function(e,r){return de(e)?e.match(r):e(r)};function Ne(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(n){return cr(n,t)})}}function dr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.every(function(n){return cr(n,t)})}}function Be(e,r){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",n=r.indexOf(e.meta.requestStatus)>-1;return t&&n}function Pe(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Rr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Be(t,["pending"])}:Pe(e)?function(t){var n=e.map(function(i){return i.pending}),a=Ne.apply(void 0,n);return a(t)}:Rr()(e[0])}function er(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Be(t,["rejected"])}:Pe(e)?function(t){var n=e.map(function(i){return i.rejected}),a=Ne.apply(void 0,n);return a(t)}:er()(e[0])}function Dr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=function(n){return n&&n.meta&&n.meta.rejectedWithValue};return e.length===0?function(n){var a=dr(er.apply(void 0,e),t);return a(n)}:Pe(e)?function(n){var a=dr(er.apply(void 0,e),t);return a(n)}:Dr()(e[0])}function Lr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Be(t,["fulfilled"])}:Pe(e)?function(t){var n=e.map(function(i){return i.fulfilled}),a=Ne.apply(void 0,n);return a(t)}:Lr()(e[0])}function kr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Be(t,["pending","fulfilled","rejected"])}:Pe(e)?function(t){for(var n=[],a=0,i=e;a<i.length;a++){var d=i[a];n.push(d.pending,d.rejected,d.fulfilled)}var p=Ne.apply(void 0,n);return p(t)}:kr()(e[0])}var rr=function(e,r){if(typeof e!="function")throw new TypeError(r+" is not a function")},tr=function(){},vr=function(e,r){return r===void 0&&(r=tr),e.catch(r),e},mr=function(e,r){return e.addEventListener("abort",r,{once:!0}),function(){return e.removeEventListener("abort",r)}},Ee=function(e,r){var t=e.signal;t.aborted||("reason"in t||Object.defineProperty(t,"reason",{enumerable:!0,value:r,configurable:!0,writable:!0}),e.abort(r))},Fr="task",hr="listener",gr="completed",nr="cancelled",Nr="task-"+nr,Br="task-"+gr,pr=hr+"-"+nr,Wr=hr+"-"+gr,We=function(){function e(r){this.code=r,this.name="TaskAbortError",this.message=Fr+" "+nr+" (reason: "+r+")"}return e}(),Oe=function(e){if(e.aborted)throw new We(e.reason)};function yr(e,r){var t=tr;return new Promise(function(n,a){var i=function(){return a(new We(e.reason))};if(e.aborted){i();return}t=mr(e,i),r.finally(function(){return t()}).then(n,a)}).finally(function(){t=tr})}var _r=function(e,r){return _(void 0,null,function(){var t,n;return I(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return a.sent(),[4,e()];case 2:return t=a.sent(),[2,{status:"ok",value:t}];case 3:return n=a.sent(),[2,{status:n instanceof We?"cancelled":"rejected",error:n}];case 4:return r?.(),[7];case 5:return[2]}})})},_e=function(e){return function(r){return vr(yr(e,r).then(function(t){return Oe(e),t}))}},br=function(e){var r=_e(e);return function(t){return r(new Promise(function(n){return setTimeout(n,t)}))}},Ur=Object.assign,wr={},Ie="listenerMiddleware",zr=function(e,r){var t=function(n){return mr(e,function(){return Ee(n,e.reason)})};return function(n,a){rr(n,"taskExecutor");var i=new AbortController;t(i);var d=_r(function(){return _(void 0,null,function(){var p;return I(this,function(S){switch(S.label){case 0:return Oe(e),Oe(i.signal),[4,n({pause:_e(i.signal),delay:br(i.signal),signal:i.signal})];case 1:return p=S.sent(),Oe(i.signal),[2,p]}})})},function(){return Ee(i,Br)});return a?.autoJoin&&r.push(d),{result:_e(e)(d),cancel:function(){Ee(i,Nr)}}}},Kr=function(e,r){var t=function(n,a){return _(void 0,null,function(){var i,d,p,S;return I(this,function(c){switch(c.label){case 0:Oe(r),i=function(){},d=new Promise(function(g,T){var A=e({predicate:n,effect:function(b,u){u.unsubscribe(),g([b,u.getState(),u.getOriginalState()])}});i=function(){A(),T()}}),p=[d],a!=null&&p.push(new Promise(function(g){return setTimeout(g,a,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,yr(r,Promise.race(p))];case 2:return S=c.sent(),Oe(r),[2,S];case 3:return i(),[7];case 4:return[2]}})})};return function(n,a){return vr(t(n,a))}},Er=function(e){var r=e.type,t=e.actionCreator,n=e.matcher,a=e.predicate,i=e.effect;if(r)a=ae(r).match;else if(t)r=t.type,a=t.match;else if(n)a=n;else if(!a)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return rr(i,"options.listener"),{predicate:a,type:r,effect:i}},Zr=function(e){var r=Er(e),t=r.type,n=r.predicate,a=r.effect,i=fr(),d={id:i,effect:a,type:t,predicate:n,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return d},ar=function(e){e.pending.forEach(function(r){Ee(r,pr)})},Gr=function(e){return function(){e.forEach(ar),e.clear()}},Or=function(e,r,t){try{e(r,t)}catch(n){setTimeout(function(){throw n},0)}},Vr=ae(Ie+"/add"),Qr=ae(Ie+"/removeAll"),$r=ae(Ie+"/remove"),Xr=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];console.error.apply(console,Q([Ie+"/error"],e))};function et(e){var r=this;e===void 0&&(e={});var t=new Map,n=e.extra,a=e.onError,i=a===void 0?Xr:a;rr(i,"onError");var d=function(b){return b.unsubscribe=function(){return t.delete(b.id)},t.set(b.id,b),function(u){b.unsubscribe(),u?.cancelActive&&ar(b)}},p=function(b){for(var u=0,l=Array.from(t.values());u<l.length;u++){var M=l[u];if(b(M))return M}},S=function(b){var u=p(function(l){return l.effect===b.effect});return u||(u=Zr(b)),d(u)},c=function(b){var u=Er(b),l=u.type,M=u.effect,x=u.predicate,h=p(function(O){var j=typeof l=="string"?O.type===l:O.predicate===x;return j&&O.effect===M});return h&&(h.unsubscribe(),b.cancelActive&&ar(h)),!!h},g=function(b,u,l,M){return _(r,null,function(){var x,h,O,j;return I(this,function(N){switch(N.label){case 0:x=new AbortController,h=Kr(S,x.signal),O=[],N.label=1;case 1:return N.trys.push([1,3,4,6]),b.pending.add(x),[4,Promise.resolve(b.effect(u,Ur({},l,{getOriginalState:M,condition:function(G,J){return h(G,J).then(Boolean)},take:h,delay:br(x.signal),pause:_e(x.signal),extra:n,signal:x.signal,fork:zr(x.signal,O),unsubscribe:b.unsubscribe,subscribe:function(){t.set(b.id,b)},cancelActiveListeners:function(){b.pending.forEach(function(G,J,q){G!==x&&(Ee(G,pr),q.delete(G))})}})))];case 2:return N.sent(),[3,6];case 3:return j=N.sent(),j instanceof We||Or(i,j,{raisedBy:"effect"}),[3,6];case 4:return[4,Promise.allSettled(O)];case 5:return N.sent(),Ee(x,Wr),b.pending.delete(x),[7];case 6:return[2]}})})},T=Gr(t),A=function(b){return function(u){return function(l){if(!Re(l))return u(l);if(Vr.match(l))return S(l.payload);if(Qr.match(l)){T();return}if($r.match(l))return c(l.payload);var M=b.getState(),x=function(){if(M===wr)throw new Error(Ie+": getOriginalState can only be called synchronously");return M},h;try{if(h=u(l),t.size>0)for(var O=b.getState(),j=Array.from(t.values()),N=0,G=j;N<G.length;N++){var J=G[N],q=!1;try{q=J.predicate(l,O,M)}catch(re){q=!1,Or(i,re,{raisedBy:"predicate"})}q&&g(J,l,b,x)}}finally{M=wr}return h}}};return{middleware:A,startListening:S,stopListening:c,clearListeners:T}}var Mr="RTK_autoBatch",rt=function(){return function(e){var r;return{payload:e,meta:(r={},r[Mr]=!0,r)}}},Tr,Hr=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof m.g<"u"?m.g:globalThis):function(e){return(Tr||(Tr=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},xr=function(e){return function(r){setTimeout(r,e)}},Jr=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xr(10),tt=function(e){return e===void 0&&(e={type:"raf"}),function(r){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=r.apply(void 0,t),i=!0,d=!1,p=!1,S=new Set,c=e.type==="tick"?Hr:e.type==="raf"?Jr:e.type==="callback"?e.queueNotification:xr(e.timeout),g=function(){p=!1,d&&(d=!1,S.forEach(function(T){return T()}))};return Object.assign({},a,{subscribe:function(T){var A=function(){return i&&T()},b=a.subscribe(A);return S.add(T),function(){b(),S.delete(T)}},dispatch:function(T){var A;try{return i=!((A=T?.meta)!=null&&A[Mr]),d=!i,d&&(p||(p=!0,c(g))),a.dispatch(T)}finally{i=!0}}})}}};(0,v.pV)()},37410:function(X,V,m){var v=m(96621),C=m(33646);function B(L,F){return v(L,F,function(z,I){return C(L,I)})}X.exports=B},96621:function(X,V,m){var v=m(80166),C=m(58116),B=m(18422);function L(F,z,I){for(var Q=-1,Y=z.length,ie={};++Q<Y;){var oe=z[Q],te=v(F,oe);I(te,oe)&&C(ie,B(oe,F),te)}return ie}X.exports=L},72245:function(X,V,m){var v=m(63920),C=m(85973);function B(L,F,z,I,Q,Y){return C(L)&&C(F)&&(Y.set(F,L),v(L,F,void 0,B,Y),Y.delete(F)),L}X.exports=B},58732:function(X,V,m){var v=m(85198),C=m(94569),B=m(72245),L=m(54754),F=C(function(z){return z.push(void 0,B),v(L,void 0,z)});X.exports=F},54754:function(X,V,m){var v=m(63920),C=m(32544),B=C(function(L,F,z,I){v(L,F,z,I)});X.exports=B},88423:function(X,V,m){var v=m(37410),C=m(83368),B=C(function(L,F){return L==null?{}:v(L,F)});X.exports=B},78023:function(X,V,m){"use strict";m.d(V,{Z:function(){return je}});var v=m(31191),C=m(32735),B=m(72067),L=m(42447),F=m(26356),z=m(75461),I=m(68833),Q=m(20552);function Y(o,E){return Object.keys(o).reduce(function(f,s){return f[s]=(0,v.pi)({timeZone:E},o[s]),f},{})}function ie(o,E){var f=Object.keys((0,v.pi)((0,v.pi)({},o),E));return f.reduce(function(s,w){return s[w]=(0,v.pi)((0,v.pi)({},o[w]||{}),E[w]||{}),s},{})}function oe(o,E){if(!E)return o;var f=z.C.formats;return(0,v.pi)((0,v.pi)((0,v.pi)({},f),o),{date:ie(Y(f.date,E),Y(o.date||{},E)),time:ie(Y(f.time,E),Y(o.time||{},E))})}var te=function(o,E,f,s,w){var y=o.locale,P=o.formats,D=o.messages,W=o.defaultLocale,fe=o.defaultFormats,K=o.fallbackOnEmptyString,me=o.onError,he=o.timeZone,Ye=o.defaultRichTextElements;f===void 0&&(f={id:""});var Fe=f.id,ue=f.defaultMessage;(0,F.kG)(!!Fe,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var ve=String(Fe),ne=D&&Object.prototype.hasOwnProperty.call(D,ve)&&D[ve];if(Array.isArray(ne)&&ne.length===1&&ne[0].type===Q.wD.literal)return ne[0].value;if(!s&&ne&&typeof ne=="string"&&!Ye)return ne.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=(0,v.pi)((0,v.pi)({},Ye),s||{}),P=oe(P,he),fe=oe(fe,he),!ne){if(K===!1&&ne==="")return ne;if((!ue||y&&y.toLowerCase()!==W.toLowerCase())&&me(new I.$6(f,y)),ue)try{var U=E.getMessageFormat(ue,W,fe,w);return U.format(s)}catch(le){return me(new I.X9('Error formatting default message for: "'.concat(ve,'", rendering default message verbatim'),y,f,le)),typeof ue=="string"?ue:ve}return ve}try{var U=E.getMessageFormat(ne,y,P,(0,v.pi)({formatters:E},w||{}));return U.format(s)}catch(le){me(new I.X9('Error formatting message: "'.concat(ve,'", using ').concat(ue?"default message":"id"," as fallback."),y,f,le))}if(ue)try{var U=E.getMessageFormat(ue,W,fe,w);return U.format(s)}catch(le){me(new I.X9('Error formatting the default message for: "'.concat(ve,'", rendering message verbatim'),y,f,le))}return typeof ne=="string"?ne:typeof ue=="string"?ue:ve},R=m(32409),Z=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function H(o,E,f){var s=o.locale,w=o.formats,y=o.onError;f===void 0&&(f={});var P=f.format,D=P&&(0,R.TB)(w,"number",P,y)||{},W=(0,R.L6)(f,Z,D);return E(s,W)}function k(o,E,f,s){s===void 0&&(s={});try{return H(o,E,s).format(f)}catch(w){o.onError(new I.Qe("Error formatting number.",o.locale,w))}return String(f)}function $(o,E,f,s){s===void 0&&(s={});try{return H(o,E,s).formatToParts(f)}catch(w){o.onError(new I.Qe("Error formatting number.",o.locale,w))}return[]}var _=m(14979),ee=["numeric","style"];function ge(o,E,f){var s=o.locale,w=o.formats,y=o.onError;f===void 0&&(f={});var P=f.format,D=!!P&&(0,R.TB)(w,"relative",P,y)||{},W=(0,R.L6)(f,ee,D);return E(s,W)}function be(o,E,f,s,w){w===void 0&&(w={}),s||(s="second");var y=Intl.RelativeTimeFormat;y||o.onError(new _.u_(`Intl.RelativeTimeFormat is not available in this environment.
|
|
10
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
11
|
+
`,_.jK.MISSING_INTL_API));try{return ge(o,E,w).format(f,s)}catch(P){o.onError(new I.Qe("Error formatting relative time.",o.locale,P))}return String(f)}var se=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function de(o,E,f,s){var w=o.locale,y=o.formats,P=o.onError,D=o.timeZone;s===void 0&&(s={});var W=s.format,fe=(0,v.pi)((0,v.pi)({},D&&{timeZone:D}),W&&(0,R.TB)(y,E,W,P)),K=(0,R.L6)(s,se,fe);return E==="time"&&!K.hour&&!K.minute&&!K.second&&!K.timeStyle&&!K.dateStyle&&(K=(0,v.pi)((0,v.pi)({},K),{hour:"numeric",minute:"numeric"})),f(w,K)}function ae(o,E){for(var f=[],s=2;s<arguments.length;s++)f[s-2]=arguments[s];var w=f[0],y=f[1],P=y===void 0?{}:y,D=typeof w=="string"?new Date(w||0):w;try{return de(o,"date",E,P).format(D)}catch(W){o.onError(new I.Qe("Error formatting date.",o.locale,W))}return String(D)}function Re(o,E){for(var f=[],s=2;s<arguments.length;s++)f[s-2]=arguments[s];var w=f[0],y=f[1],P=y===void 0?{}:y,D=typeof w=="string"?new Date(w||0):w;try{return de(o,"time",E,P).format(D)}catch(W){o.onError(new I.Qe("Error formatting time.",o.locale,W))}return String(D)}function Ue(o,E){for(var f=[],s=2;s<arguments.length;s++)f[s-2]=arguments[s];var w=f[0],y=f[1],P=f[2],D=P===void 0?{}:P,W=o.timeZone,fe=o.locale,K=o.onError,me=(0,R.L6)(D,se,W?{timeZone:W}:{});try{return E(fe,me).formatRange(w,y)}catch(he){K(new I.Qe("Error formatting date time range.",o.locale,he))}return String(w)}function ze(o,E){for(var f=[],s=2;s<arguments.length;s++)f[s-2]=arguments[s];var w=f[0],y=f[1],P=y===void 0?{}:y,D=typeof w=="string"?new Date(w||0):w;try{return de(o,"date",E,P).formatToParts(D)}catch(W){o.onError(new I.Qe("Error formatting date.",o.locale,W))}return[]}function Ke(o,E){for(var f=[],s=2;s<arguments.length;s++)f[s-2]=arguments[s];var w=f[0],y=f[1],P=y===void 0?{}:y,D=typeof w=="string"?new Date(w||0):w;try{return de(o,"time",E,P).formatToParts(D)}catch(W){o.onError(new I.Qe("Error formatting time.",o.locale,W))}return[]}var ir=["type"];function Ze(o,E,f,s){var w=o.locale,y=o.onError;s===void 0&&(s={}),Intl.PluralRules||y(new _.u_(`Intl.PluralRules is not available in this environment.
|
|
12
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
13
|
+
`,_.jK.MISSING_INTL_API));var P=(0,R.L6)(s,ir);try{return E(w,P).select(f)}catch(D){y(new I.Qe("Error formatting plural.",w,D))}return"other"}var or=["type","style"],Te=Date.now();function Ge(o){return"".concat(Te,"_").concat(o,"_").concat(Te)}function Ve(o,E,f,s){s===void 0&&(s={});var w=we(o,E,f,s).reduce(function(y,P){var D=P.value;return typeof D!="string"?y.push(D):typeof y[y.length-1]=="string"?y[y.length-1]+=D:y.push(D),y},[]);return w.length===1?w[0]:w.length===0?"":w}function we(o,E,f,s){var w=o.locale,y=o.onError;s===void 0&&(s={});var P=Intl.ListFormat;P||y(new _.u_(`Intl.ListFormat is not available in this environment.
|
|
14
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
15
|
+
`,_.jK.MISSING_INTL_API));var D=(0,R.L6)(s,or);try{var W={},fe=f.map(function(K,me){if(typeof K=="object"){var he=Ge(me);return W[he]=K,he}return String(K)});return E(w,D).formatToParts(fe).map(function(K){return K.type==="literal"?K:(0,v.pi)((0,v.pi)({},K),{value:W[K.value]||K.value})})}catch(K){y(new I.Qe("Error formatting list.",w,K))}return f}var Qe=["style","type","fallback","languageDisplay"];function De(o,E,f,s){var w=o.locale,y=o.onError,P=Intl.DisplayNames;P||y(new _.u_(`Intl.DisplayNames is not available in this environment.
|
|
16
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
17
|
+
`,_.jK.MISSING_INTL_API));var D=(0,R.L6)(s,Qe);try{return E(w,D).of(f)}catch(W){y(new I.Qe("Error formatting display name.",w,W))}}function Le(o){var E=o?o[Object.keys(o)[0]]:void 0;return typeof E=="string"}function $e(o){o.onWarn&&o.defaultRichTextElements&&Le(o.messages||{})&&o.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
18
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
19
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Xe(o,E){var f=(0,R.ax)(E),s=(0,v.pi)((0,v.pi)({},R.Z0),o),w=s.locale,y=s.defaultLocale,P=s.onError;return w?!Intl.NumberFormat.supportedLocalesOf(w).length&&P?P(new I.gb('Missing locale data for locale: "'.concat(w,'" in Intl.NumberFormat. Using default locale: "').concat(y,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(w).length&&P&&P(new I.gb('Missing locale data for locale: "'.concat(w,'" in Intl.DateTimeFormat. Using default locale: "').concat(y,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(P&&P(new I.OV('"locale" was not configured, using "'.concat(y,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),$e(s),(0,v.pi)((0,v.pi)({},s),{formatters:f,formatNumber:k.bind(null,s,f.getNumberFormat),formatNumberToParts:$.bind(null,s,f.getNumberFormat),formatRelativeTime:be.bind(null,s,f.getRelativeTimeFormat),formatDate:ae.bind(null,s,f.getDateTimeFormat),formatDateToParts:ze.bind(null,s,f.getDateTimeFormat),formatTime:Re.bind(null,s,f.getDateTimeFormat),formatDateTimeRange:Ue.bind(null,s,f.getDateTimeFormat),formatTimeToParts:Ke.bind(null,s,f.getDateTimeFormat),formatPlural:Ze.bind(null,s,f.getPluralRules),formatMessage:te.bind(null,s,f),$t:te.bind(null,s,f),formatList:Ve.bind(null,s,f.getListFormat),formatListToParts:we.bind(null,s,f.getListFormat),formatDisplayName:De.bind(null,s,f.getDisplayNames)})}var He=m(33961);function xe(o){return{locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,textComponent:o.textComponent,messages:o.messages,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,onError:o.onError,onWarn:o.onWarn,wrapRichTextChunksInFragment:o.wrapRichTextChunksInFragment,defaultRichTextElements:o.defaultRichTextElements}}function Se(o){return o&&Object.keys(o).reduce(function(E,f){var s=o[f];return E[f]=(0,He.Gt)(s)?(0,L.dt)(s):s,E},{})}var Ae=function(o,E,f,s){for(var w=[],y=4;y<arguments.length;y++)w[y-4]=arguments[y];var P=Se(s),D=te.apply(void 0,(0,v.ev)([o,E,f,P],w,!1));return Array.isArray(D)?C.Children.toArray(D):D},Je=function(o,E){var f=o.defaultRichTextElements,s=(0,v._T)(o,["defaultRichTextElements"]),w=Se(f),y=Xe((0,v.pi)((0,v.pi)((0,v.pi)({},L.Z0),s),{defaultRichTextElements:w}),E),P={locale:y.locale,timeZone:y.timeZone,fallbackOnEmptyString:y.fallbackOnEmptyString,formats:y.formats,defaultLocale:y.defaultLocale,defaultFormats:y.defaultFormats,messages:y.messages,onError:y.onError,defaultRichTextElements:w};return(0,v.pi)((0,v.pi)({},y),{formatMessage:Ae.bind(null,P,y.formatters),$t:Ae.bind(null,P,y.formatters)})},ke=function(o){(0,v.ZT)(E,o);function E(){var f=o!==null&&o.apply(this,arguments)||this;return f.cache=(0,R.Sn)(),f.state={cache:f.cache,intl:Je(xe(f.props),f.cache),prevConfig:xe(f.props)},f}return E.getDerivedStateFromProps=function(f,s){var w=s.prevConfig,y=s.cache,P=xe(f);return(0,L.wU)(w,P)?null:{intl:Je(P,y),prevConfig:P}},E.prototype.render=function(){return(0,L.lq)(this.state.intl),C.createElement(B.zt,{value:this.state.intl},this.props.children)},E.displayName="IntlProvider",E.defaultProps=L.Z0,E}(C.PureComponent),je=ke},56932:function(X,V,m){"use strict";m.d(V,{D:function(){return B}});var v=m(74512),C=m(77981);const B=({children:L})=>(0,v.jsx)(C.x,{paddingLeft:10,paddingRight:10,children:L})},64092:function(X,V,m){"use strict";m.d(V,{T:function(){return ie}});var v=m(74512),C=m(32735),B=m(8471);const L=R=>{const Z=(0,C.useRef)(null),[H,k]=(0,C.useState)(!0),$=([_])=>{k(_.isIntersecting)};return(0,C.useEffect)(()=>{const _=Z.current,ee=new IntersectionObserver($,R);return _&&ee.observe(Z.current),()=>{_&&ee.disconnect()}},[Z,R]),[Z,H]};var F=m(81957);const z=(R,Z)=>{const H=(0,F.W)(Z);(0,C.useLayoutEffect)(()=>{const k=new ResizeObserver(H);return Array.isArray(R)?R.forEach($=>{$.current&&k.observe($.current)}):R.current&&k.observe(R.current),()=>{k.disconnect()}},[R,H])};var I=m(77981),Q=m(84642),Y=m(8365);const ie=R=>{const Z=(0,C.useRef)(null),[H,k]=(0,C.useState)(null),[$,_]=L({root:null,rootMargin:"0px",threshold:0});return z($,()=>{$.current&&k($.current.getBoundingClientRect())}),(0,C.useEffect)(()=>{Z.current&&k(Z.current.getBoundingClientRect())},[Z]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{style:{height:H?.height},ref:$,children:_&&(0,v.jsx)(te,{ref:Z,...R})}),!_&&(0,v.jsx)(te,{...R,sticky:!0,width:H?.width})]})};ie.displayName="HeaderLayout";const oe=(0,B.ZP)(I.x)`
|
|
20
|
+
width: ${({width:R})=>R?`${R/16}rem`:void 0};
|
|
21
|
+
z-index: ${({theme:R})=>R.zIndices[1]};
|
|
22
|
+
`,te=C.forwardRef(({navigationAction:R,primaryAction:Z,secondaryAction:H,subtitle:k,title:$,sticky:_,width:ee,...ge},be)=>{const se=typeof k=="string";return _?(0,v.jsx)(oe,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:ee,"data-strapi-header-sticky":!0,children:(0,v.jsxs)(Q.k,{justifyContent:"space-between",children:[(0,v.jsxs)(Q.k,{children:[R&&(0,v.jsx)(I.x,{paddingRight:3,children:R}),(0,v.jsxs)(I.x,{children:[(0,v.jsx)(Y.Z,{variant:"beta",as:"h1",...ge,children:$}),se?(0,v.jsx)(Y.Z,{variant:"pi",textColor:"neutral600",children:k}):k]}),H?(0,v.jsx)(I.x,{paddingLeft:4,children:H}):null]}),(0,v.jsx)(Q.k,{children:Z?(0,v.jsx)(I.x,{paddingLeft:2,children:Z}):void 0})]})}):(0,v.jsxs)(I.x,{ref:be,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:R?6:8,background:"neutral100","data-strapi-header":!0,children:[R?(0,v.jsx)(I.x,{paddingBottom:2,children:R}):null,(0,v.jsxs)(Q.k,{justifyContent:"space-between",children:[(0,v.jsxs)(Q.k,{minWidth:0,children:[(0,v.jsx)(Y.Z,{as:"h1",variant:"alpha",...ge,children:$}),H?(0,v.jsx)(I.x,{paddingLeft:4,children:H}):null]}),Z]}),se?(0,v.jsx)(Y.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:k}):k]})})},18101:function(X,V,m){"use strict";m.d(V,{Q:function(){return ie}});var v=m(74512),C=m(32735),B=m(14911),L=m(8471),F=m(73290),z=m(65351),I=m(84642),Q=m(8365);const Y=(0,L.ZP)(z.G)`
|
|
23
|
+
&[aria-disabled='true'] {
|
|
24
|
+
${F.sg}
|
|
25
|
+
&:active {
|
|
26
|
+
${F.sg}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&:hover {
|
|
30
|
+
${F.yP}
|
|
31
|
+
}
|
|
32
|
+
&:active {
|
|
33
|
+
${F.tB}
|
|
34
|
+
}
|
|
35
|
+
${F.PD}
|
|
36
|
+
`,ie=C.forwardRef(({variant:oe="default",startIcon:te,endIcon:R,disabled:Z=!1,children:H,size:k="S",href:$,to:_,...ee},ge)=>{const be=$?"_blank":void 0,se=$?"noreferrer noopener":void 0,de=k==="S"?2:"10px",ae=4;return(0,v.jsxs)(Y,{ref:ge,"aria-disabled":Z,size:k,variant:oe,target:be,rel:se,to:Z?void 0:_,href:Z?"#":$,background:"buttonPrimary600",borderColor:"buttonPrimary600",hasRadius:!0,gap:2,inline:!0,paddingBottom:de,paddingLeft:ae,paddingRight:ae,paddingTop:de,pointerEvents:Z?"none":void 0,...ee,as:_&&!Z?B.OL:"a",children:[te&&(0,v.jsx)(I.k,{"aria-hidden":!0,children:te}),(0,v.jsx)(Q.Z,{variant:k==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:H}),R&&(0,v.jsx)(I.k,{"aria-hidden":!0,children:R})]})})},95162:function(X,V,m){"use strict";m.d(V,{o:function(){return F}});var v=m(74512),C=m(8471),B=m(77981);const L=(0,C.ZP)(B.x)`
|
|
37
|
+
// To prevent global outline on focus visible to force an outline when Main is focused
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
`,F=({labelledBy:z="main-content-title",...I})=>(0,v.jsx)(L,{"aria-labelledby":z,as:"main",id:"main-content",tabIndex:-1,...I})},34197:function(X,V,m){"use strict";m.d(V,{z:function(){return F}});var v=m(74512),C=m(8471),B=m(77981);const L=(0,C.ZP)(B.x)`
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
left: ${({theme:z})=>z.spaces[3]};
|
|
46
|
+
top: ${({theme:z})=>z.spaces[3]};
|
|
47
|
+
}
|
|
48
|
+
`,F=({children:z})=>(0,v.jsx)(L,{as:"a",href:"#main-content",background:"primary600",color:"neutral0",left:"-100%",padding:3,position:"absolute",top:"-100%",hasRadius:!0,zIndex:9999,children:z})},88492:function(X,V,m){"use strict";m.d(V,{$:function(){return L}});const v={color:{alternative100:"#181826",alternative200:"#4a4a6a",alternative500:"#ac73e6",alternative600:"#ac73e6",alternative700:"#e0c1f4",buttonNeutral0:"#ffffff",buttonPrimary500:"#7b79ff",buttonPrimary600:"#4945ff",danger100:"#181826",danger200:"#4a4a6a",danger500:"#ee5e52",danger600:"#ee5e52",danger700:"#ee5e52",neutral0:"#212134",neutral100:"#181826",neutral1000:"#ffffff",neutral150:"#32324d",neutral200:"#4a4a6a",neutral300:"#666687",neutral400:"#a5a5ba",neutral500:"#c0c0cf",neutral600:"#a5a5ba",neutral700:"#eaeaef",neutral800:"#ffffff",neutral900:"#ffffff",primary100:"#181826",primary200:"#4a4a6a",primary500:"#4945ff",primary600:"#7b79ff",primary700:"#7b79ff",secondary100:"#181826",secondary200:"#4a4a6a",secondary500:"#66b7f1",secondary600:"#66b7f1",secondary700:"#b8e1ff",success100:"#181826",success200:"#4a4a6a",success500:"#5cb176",success600:"#5cb176",success700:"#c6f0c2",warning100:"#181826",warning200:"#4a4a6a",warning500:"#f29d41",warning600:"#f29d41",warning700:"#fae7b9"}},C={shadow:{filterShadow:"1px 1px 10px rgba(3, 3, 5, 0.35)",focus:"inset 2px 0px 0px rgb(39, 31, 224), inset 0px 2px 0px rgb(39, 31, 224), inset -2px 0px 0px rgb(39, 31, 224), inset 0px -2px 0px rgb(39, 31, 224)",focusShadow:"0px 0px 6px rgba(76, 191, 255, 0.75)",popupShadow:"1px 1px 10px rgba(3, 3, 5, 0.35)",tableShadow:"1px 1px 10px rgba(3, 3, 5, 0.2)"}};var B=m(30987);const L={colors:v.color,shadows:C.shadow,...B.x}},25919:function(X,V,m){"use strict";m.d(V,{Z:function(){return B}});var v=m(74512);const C=L=>(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...L,children:(0,v.jsx)("path",{fill:"#212134",d:"M0 10.7c0-.11.09-.2.2-.2h18.06l-8.239-8.239a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L23.86 11.86a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L10.02 22.02a.2.2 0 0 1 0-.282L18.26 13.5H.2a.2.2 0 0 1-.2-.2v-2.6Z"})}),B=C}}]);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[9077],{13272:function(m,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isSafari=l.isFirefox=void 0;var r=t(17611);const c=r.memoize(()=>/firefox/i.test(navigator.userAgent));l.isFirefox=c;const d=r.memoize(()=>Boolean(window.safari));l.isSafari=d},24284:function(m,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=t(17611);class c{enter(E){const f=this.entered.length,v=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(E));return this.entered=r.union(this.entered.filter(v),[E]),f===0&&this.entered.length>0}leave(E){const f=this.entered.length;return this.entered=r.without(this.entered.filter(this.isNodeInDocument),E),f>0&&this.entered.length===0}reset(){this.entered=[]}constructor(E){this.entered=[],this.isNodeInDocument=E}}l.EnterLeaveCounter=c},32022:function(m,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=t(24284),c=t(5782),d=t(54935),E=a(t(9689)),f=t(44444);function v(u,e,n){return e in u?Object.defineProperty(u,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):u[e]=n,u}function a(u){if(u&&u.__esModule)return u;var e={};if(u!=null){for(var n in u)if(Object.prototype.hasOwnProperty.call(u,n)){var s=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(u,n):{};s.get||s.set?Object.defineProperty(e,n,s):e[n]=u[n]}}return e.default=u,e}function o(u){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},s=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),s.forEach(function(i){v(u,i,n[i])})}return u}class g{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,s){return this.sourcePreviewNodeOptions.set(e,s),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,s){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,s);const i=h=>this.handleDragStart(h,e),_=h=>this.handleSelectStart(h);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",_),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",_),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const s=h=>this.handleDragEnter(h,e),i=h=>this.handleDragOver(h,e),_=h=>this.handleDrop(h,e);return n.addEventListener("dragenter",s),n.addEventListener("dragover",i),n.addEventListener("drop",_),()=>{n.removeEventListener("dragenter",s),n.removeEventListener("dragover",i),n.removeEventListener("drop",_)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return o({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return o({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(E).some(n=>E[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=d.createNativeDragSource(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var s;return(s=this.rootElement)===null||s===void 0?void 0:s.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,s){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const _=this.sourceNodes.get(i);return _&&c.getNodeClientOffset(_)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>Boolean(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:_}=this;this.dragStartSourceIds=null;const h=c.getEventClientOffset(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(_||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:h});const{dataTransfer:p}=i,D=d.matchNativeItemType(p);if(this.monitor.isDragging()){if(p&&typeof p.setDragImage=="function"){const I=this.monitor.getSourceId(),T=this.sourceNodes.get(I),L=this.sourcePreviewNodes.get(I)||T;if(L){const{anchorX:N,anchorY:R,offsetX:M,offsetY:P}=this.getCurrentSourcePreviewNodeOptions(),A={anchorX:N,anchorY:R},C={offsetX:M,offsetY:P},x=c.getDragPreviewOffset(T,L,h,A,C);p.setDragImage(L,x.x,x.y)}}try{p?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:O}=this.getCurrentSourcePreviewNodeOptions();O?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(D)this.beginDragNativeItem(D);else{if(p&&!p.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var _;(_=this.currentNativeSource)===null||_===void 0||_.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:p}=i,D=d.matchNativeItemType(p);D&&this.beginDragNativeItem(D,p)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:_}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,_.length>0&&this.actions.hover(_,{clientOffset:c.getEventClientOffset(i)}),_.some(p=>this.monitor.canDropOnTarget(p))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var _;(_=this.currentNativeSource)===null||_===void 0||_.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:_}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=c.getEventClientOffset(i),this.scheduleHover(_),(_||[]).some(p=>this.monitor.canDropOnTarget(p))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var _;i.preventDefault(),(_=this.currentNativeSource)===null||_===void 0||_.loadDataTransfer(i.dataTransfer)}else d.matchNativeItemType(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:_}=this;this.dropTargetIds=[],this.actions.hover(_,{clientOffset:c.getEventClientOffset(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const _=i.target;typeof _.dragDrop=="function"&&(_.tagName==="INPUT"||_.tagName==="SELECT"||_.tagName==="TEXTAREA"||_.isContentEditable||(i.preventDefault(),_.dragDrop()))},this.options=new f.OptionsReader(n,s),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new r.EnterLeaveCounter(this.isNodeInDocument)}}l.HTML5BackendImpl=g},80557:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});class t{interpolate(c){const{xs:d,ys:E,c1s:f,c2s:v,c3s:a}=this;let o=d.length-1;if(c===d[o])return E[o];let g=0,u=a.length-1,e;for(;g<=u;){e=Math.floor(.5*(g+u));const i=d[e];if(i<c)g=e+1;else if(i>c)u=e-1;else return E[e]}o=Math.max(0,u);const n=c-d[o],s=n*n;return E[o]+f[o]*n+v[o]*s+a[o]*n*s}constructor(c,d){const{length:E}=c,f=[];for(let _=0;_<E;_++)f.push(_);f.sort((_,h)=>c[_]<c[h]?-1:1);const v=[],a=[],o=[];let g,u;for(let _=0;_<E-1;_++)g=c[_+1]-c[_],u=d[_+1]-d[_],a.push(g),v.push(u),o.push(u/g);const e=[o[0]];for(let _=0;_<a.length-1;_++){const h=o[_],p=o[_+1];if(h*p<=0)e.push(0);else{g=a[_];const D=a[_+1],O=g+D;e.push(3*O/((O+D)/h+(O+g)/p))}}e.push(o[o.length-1]);const n=[],s=[];let i;for(let _=0;_<e.length-1;_++){i=o[_];const h=e[_],p=1/a[_],D=h+e[_+1]-i-i;n.push((i-h-D)*p),s.push(D*p*p)}this.xs=c,this.ys=d,this.c1s=e,this.c2s=n,this.c3s=s}}l.MonotonicInterpolant=t},81061:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});class t{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(c=>{Object.defineProperty(this.item,c,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${c}" until the drop event.`),null}})})}loadDataTransfer(c){if(c){const d={};Object.keys(this.config.exposeProperties).forEach(E=>{const f=this.config.exposeProperties[E];f!=null&&(d[E]={value:f(c,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,d)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(c,d){return d===c.getSourceId()}endDrag(){}constructor(c){this.config=c,this.item={},this.initializeExposedProperties()}}l.NativeDragSource=t},17892:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getDataFromDataTransfer=t;function t(r,c,d){const E=c.reduce((f,v)=>f||r.getData(v),"");return E??d}},54935:function(m,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.createNativeDragSource=d,l.matchNativeItemType=E;var r=t(66826),c=t(81061);function d(f,v){const a=r.nativeTypesConfig[f];if(!a)throw new Error(`native type ${f} has no configuration`);const o=new c.NativeDragSource(a);return o.loadDataTransfer(v),o}function E(f){if(!f)return null;const v=Array.prototype.slice.call(f.types||[]);return Object.keys(r.nativeTypesConfig).filter(a=>{const o=r.nativeTypesConfig[a];return o?.matchesTypes?o.matchesTypes.some(g=>v.indexOf(g)>-1):!1})[0]||null}},66826:function(m,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.nativeTypesConfig=void 0;var r=d(t(9689)),c=t(17892);function d(f){if(f&&f.__esModule)return f;var v={};if(f!=null){for(var a in f)if(Object.prototype.hasOwnProperty.call(f,a)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(f,a):{};o.get||o.set?Object.defineProperty(v,a,o):v[a]=f[a]}}return v.default=f,v}const E={[r.FILE]:{exposeProperties:{files:f=>Array.prototype.slice.call(f.files),items:f=>f.items,dataTransfer:f=>f},matchesTypes:["Files"]},[r.HTML]:{exposeProperties:{html:(f,v)=>c.getDataFromDataTransfer(f,v,""),dataTransfer:f=>f},matchesTypes:["Html","text/html"]},[r.URL]:{exposeProperties:{urls:(f,v)=>c.getDataFromDataTransfer(f,v,"").split(`
|
|
2
|
+
`),dataTransfer:f=>f},matchesTypes:["Url","text/uri-list"]},[r.TEXT]:{exposeProperties:{text:(f,v)=>c.getDataFromDataTransfer(f,v,""),dataTransfer:f=>f},matchesTypes:["Text","text/plain"]}};l.nativeTypesConfig=E},9689:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.HTML=l.TEXT=l.URL=l.FILE=void 0;const t="__NATIVE_FILE__";l.FILE=t;const r="__NATIVE_URL__";l.URL=r;const c="__NATIVE_TEXT__";l.TEXT=c;const d="__NATIVE_HTML__";l.HTML=d},5782:function(m,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getNodeClientOffset=E,l.getEventClientOffset=f,l.getDragPreviewOffset=o;var r=t(13272),c=t(80557);const d=1;function E(g){const u=g.nodeType===d?g:g.parentElement;if(!u)return null;const{top:e,left:n}=u.getBoundingClientRect();return{x:n,y:e}}function f(g){return{x:g.clientX,y:g.clientY}}function v(g){var u;return g.nodeName==="IMG"&&(r.isFirefox()||!(!((u=document.documentElement)===null||u===void 0)&&u.contains(g)))}function a(g,u,e,n){let s=g?u.width:e,i=g?u.height:n;return r.isSafari()&&g&&(i/=window.devicePixelRatio,s/=window.devicePixelRatio),{dragPreviewWidth:s,dragPreviewHeight:i}}function o(g,u,e,n,s){const i=v(u),h=E(i?g:u),p={x:e.x-h.x,y:e.y-h.y},{offsetWidth:D,offsetHeight:O}=g,{anchorX:I,anchorY:T}=n,{dragPreviewWidth:L,dragPreviewHeight:N}=a(i,u,D,O),R=()=>{let S=new c.MonotonicInterpolant([0,.5,1],[p.y,p.y/O*N,p.y+N-O]).interpolate(T);return r.isSafari()&&i&&(S+=(window.devicePixelRatio-1)*N),S},M=()=>new c.MonotonicInterpolant([0,.5,1],[p.x,p.x/D*L,p.x+L-D]).interpolate(I),{offsetX:P,offsetY:A}=s,C=P===0||P,x=A===0||A;return{x:C?P:M(),y:x?A:R()}}},44444:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});class t{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var c;return!((c=this.globalContext)===null||c===void 0)&&c.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var c;return((c=this.optionsArgs)===null||c===void 0?void 0:c.rootElement)||this.window}constructor(c,d){this.ownerDocument=null,this.globalContext=c,this.optionsArgs=d}}l.OptionsReader=t},15970:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getEmptyImage=r;let t;function r(){return t||(t=new Image,t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),t}},51968:function(m,l,t){"use strict";var r;r={value:!0},Object.defineProperty(l,"rX",{enumerable:!0,get:function(){return E.getEmptyImage}}),l.PD=r=void 0;var c=t(32022),d=f(t(9689)),E=t(15970);r=d;function f(a){if(a&&a.__esModule)return a;var o={};if(a!=null){for(var g in a)if(Object.prototype.hasOwnProperty.call(a,g)){var u=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,g):{};u.get||u.set?Object.defineProperty(o,g,u):o[g]=a[g]}}return o.default=a,o}const v=function(o,g,u){return new c.HTML5BackendImpl(o,g,u)};l.PD=v},17611:function(m,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.memoize=t,l.without=r,l.union=c;function t(d){let E=null;return()=>(E==null&&(E=d()),E)}function r(d,E){return d.filter(f=>f!==E)}function c(d,E){const f=new Set,v=o=>f.add(o);d.forEach(v),E.forEach(v);const a=[];return f.forEach(o=>a.push(o)),a}},98178:function(m,l,t){"use strict";t.d(l,{P1:function(){return g}});var r="NOT_FOUND";function c(e){var n;return{get:function(i){return n&&e(n.key,i)?n.value:r},put:function(i,_){n={key:i,value:_}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function d(e,n){var s=[];function i(D){var O=s.findIndex(function(T){return n(D,T.key)});if(O>-1){var I=s[O];return O>0&&(s.splice(O,1),s.unshift(I)),I.value}return r}function _(D,O){i(D)===r&&(s.unshift({key:D,value:O}),s.length>e&&s.pop())}function h(){return s}function p(){s=[]}return{get:i,put:_,getEntries:h,clear:p}}var E=function(n,s){return n===s};function f(e){return function(s,i){if(s===null||i===null||s.length!==i.length)return!1;for(var _=s.length,h=0;h<_;h++)if(!e(s[h],i[h]))return!1;return!0}}function v(e,n){var s=typeof n=="object"?n:{equalityCheck:n},i=s.equalityCheck,_=i===void 0?E:i,h=s.maxSize,p=h===void 0?1:h,D=s.resultEqualityCheck,O=f(_),I=p===1?c(O):d(p,O);function T(){var L=I.get(arguments);if(L===r){if(L=e.apply(null,arguments),D){var N=I.getEntries(),R=N.find(function(M){return D(M.value,L)});R&&(L=R.value)}I.put(arguments,L)}return L}return T.clearCache=function(){return I.clear()},T}function a(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(i){return typeof i=="function"})){var s=n.map(function(i){return typeof i=="function"?"function "+(i.name||"unnamed")+"()":typeof i}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+s+"]")}return n}function o(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];var _=function(){for(var p=arguments.length,D=new Array(p),O=0;O<p;O++)D[O]=arguments[O];var I=0,T,L={memoizeOptions:void 0},N=D.pop();if(typeof N=="object"&&(L=N,N=D.pop()),typeof N!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof N+"]");var R=L,M=R.memoizeOptions,P=M===void 0?s:M,A=Array.isArray(P)?P:[P],C=a(D),x=e.apply(void 0,[function(){return I++,N.apply(null,arguments)}].concat(A)),w=e(function(){for(var j=[],$=C.length,y=0;y<$;y++)j.push(C[y].apply(null,arguments));return T=x.apply(null,j),T});return Object.assign(w,{resultFunc:N,memoizedResultFunc:x,dependencies:C,lastResult:function(){return T},recomputations:function(){return I},resetRecomputations:function(){return I=0}}),w};return _}var g=o(v),u=function(n,s){if(s===void 0&&(s=g),typeof n!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof n));var i=Object.keys(n),_=s(i.map(function(h){return n[h]}),function(){for(var h=arguments.length,p=new Array(h),D=0;D<h;D++)p[D]=arguments[D];return p.reduce(function(O,I,T){return O[i[T]]=I,O},{})});return _}},39405:function(m,l,t){const r=t(33843),{MAX_LENGTH:c,MAX_SAFE_INTEGER:d}=t(88202),{safeRe:E,t:f}=t(90887),v=t(30156),{compareIdentifiers:a}=t(31630);class o{constructor(u,e){if(e=v(e),u instanceof o){if(u.loose===!!e.loose&&u.includePrerelease===!!e.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>c)throw new TypeError(`version is longer than ${c} characters`);r("SemVer",u,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const n=u.trim().match(e.loose?E[f.LOOSE]:E[f.FULL]);if(!n)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i<d)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(r("SemVer.compare",this.version,this.options,u),!(u instanceof o)){if(typeof u=="string"&&u===this.version)return 0;u=new o(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof o||(u=new o(u,this.options)),a(this.major,u.major)||a(this.minor,u.minor)||a(this.patch,u.patch)}comparePre(u){if(u instanceof o||(u=new o(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let e=0;do{const n=this.prerelease[e],s=u.prerelease[e];if(r("prerelease compare",e,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return a(n,s)}while(++e)}compareBuild(u){u instanceof o||(u=new o(u,this.options));let e=0;do{const n=this.build[e],s=u.build[e];if(r("prerelease compare",e,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return a(n,s)}while(++e)}inc(u,e,n){switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const s=Number(n)?1:0;if(!e&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(e===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(e){let i=[e,s];n===!1&&(i=[e]),a(this.prerelease[0],e)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}m.exports=o},73308:function(m,l,t){const r=t(39405),c=(d,E,f)=>new r(d,f).compare(new r(E,f));m.exports=c},63433:function(m,l,t){const r=t(73308),c=(d,E,f)=>r(d,E,f)<0;m.exports=c},15497:function(m,l,t){const r=t(39405),c=(d,E,f=!1)=>{if(d instanceof r)return d;try{return new r(d,E)}catch(v){if(!f)return null;throw v}};m.exports=c},34512:function(m,l,t){const r=t(15497),c=(d,E)=>{const f=r(d,E);return f?f.version:null};m.exports=c},88202:function(m){const l="2.0.0",r=Number.MAX_SAFE_INTEGER||9007199254740991,c=16,d=256-6,E=["major","premajor","minor","preminor","patch","prepatch","prerelease"];m.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:c,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:r,RELEASE_TYPES:E,SEMVER_SPEC_VERSION:l,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},33843:function(m){const l=typeof process=="object"&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}&&{ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}.NODE_DEBUG&&/\bsemver\b/i.test({ADMIN_PATH:"/admin/",NODE_ENV:"production",STRAPI_ADMIN_BACKEND_URL:"http://localhost:1337",STRAPI_TELEMETRY_DISABLED:!1}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};m.exports=l},31630:function(m){const l=/^[0-9]+$/,t=(c,d)=>{const E=l.test(c),f=l.test(d);return E&&f&&(c=+c,d=+d),c===d?0:E&&!f?-1:f&&!E?1:c<d?-1:1},r=(c,d)=>t(d,c);m.exports={compareIdentifiers:t,rcompareIdentifiers:r}},30156:function(m){const l=Object.freeze({loose:!0}),t=Object.freeze({}),r=c=>c?typeof c!="object"?l:c:t;m.exports=r},90887:function(m,l,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:c,MAX_LENGTH:d}=t(88202),E=t(33843);l=m.exports={};const f=l.re=[],v=l.safeRe=[],a=l.src=[],o=l.t={};let g=0;const u="[a-zA-Z0-9-]",e=[["\\s",1],["\\d",d],[u,c]],n=i=>{for(const[_,h]of e)i=i.split(`${_}*`).join(`${_}{0,${h}}`).split(`${_}+`).join(`${_}{1,${h}}`);return i},s=(i,_,h)=>{const p=n(_),D=g++;E(i,D,_),o[i]=D,a[D]=_,f[D]=new RegExp(_,h?"g":void 0),v[D]=new RegExp(p,h?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","\\d+"),s("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),s("MAINVERSION",`(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})\\.(${a[o.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})\\.(${a[o.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${a[o.NUMERICIDENTIFIER]}|${a[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${a[o.NUMERICIDENTIFIERLOOSE]}|${a[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${a[o.PRERELEASEIDENTIFIER]}(?:\\.${a[o.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${a[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[o.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER",`${u}+`),s("BUILD",`(?:\\+(${a[o.BUILDIDENTIFIER]}(?:\\.${a[o.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${a[o.MAINVERSION]}${a[o.PRERELEASE]}?${a[o.BUILD]}?`),s("FULL",`^${a[o.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${a[o.MAINVERSIONLOOSE]}${a[o.PRERELEASELOOSE]}?${a[o.BUILD]}?`),s("LOOSE",`^${a[o.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${a[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${a[o.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:\\.(${a[o.XRANGEIDENTIFIER]})(?:${a[o.PRERELEASE]})?${a[o.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[o.XRANGEIDENTIFIERLOOSE]})(?:${a[o.PRERELEASELOOSE]})?${a[o.BUILD]}?)?)?`),s("XRANGE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${a[o.GTLT]}\\s*${a[o.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),s("COERCERTL",a[o.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${a[o.LONETILDE]}\\s+`,!0),l.tildeTrimReplace="$1~",s("TILDE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${a[o.LONETILDE]}${a[o.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${a[o.LONECARET]}\\s+`,!0),l.caretTrimReplace="$1^",s("CARET",`^${a[o.LONECARET]}${a[o.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${a[o.LONECARET]}${a[o.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${a[o.GTLT]}\\s*(${a[o.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${a[o.GTLT]}\\s*(${a[o.LOOSEPLAIN]}|${a[o.XRANGEPLAIN]})`,!0),l.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${a[o.XRANGEPLAIN]})\\s+-\\s+(${a[o.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${a[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[o.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},27277:function(m,l,t){"use strict";t.d(l,{$:function(){return v}});var r=t(74512),c=t(8471),d=t(58634),E=t(84642);const f=(0,c.ZP)(E.k)`
|
|
3
|
+
width: ${({condensed:a})=>a?"max-content":`${224/16}rem`};
|
|
4
|
+
border-right: 1px solid ${({theme:a})=>a.colors.neutral150};
|
|
5
|
+
`,v=({condensed:a=!1,...o})=>(0,r.jsx)(d.f.Provider,{value:a,children:(0,r.jsx)(f,{alignItems:"normal",as:"nav",background:"neutral0",condensed:a,direction:"column",height:"100vh",position:"sticky",top:0,zIndex:2,...o})})},58634:function(m,l,t){"use strict";t.d(l,{S:function(){return d},f:function(){return c}});var r=t(32735);const c=(0,r.createContext)(!1),d=()=>(0,r.useContext)(c)},65213:function(m,l,t){"use strict";t.d(l,{D:function(){return n}});var r=t(74512),c=t(32735),d=t(8471),E=t(58634),f=t(42561),v=t(77981),a=t(99320),o=t(84642),g=t(8365);const u=d.ZP.div`
|
|
6
|
+
border-radius: ${({theme:s})=>s.borderRadius};
|
|
7
|
+
|
|
8
|
+
svg,
|
|
9
|
+
img {
|
|
10
|
+
height: ${({condensed:s})=>s?`${40/16}rem`:`${32/16}rem`};
|
|
11
|
+
width: ${({condensed:s})=>s?`${40/16}rem`:`${32/16}rem`};
|
|
12
|
+
}
|
|
13
|
+
`,e=(0,d.ZP)(f.f)`
|
|
14
|
+
text-decoration: unset;
|
|
15
|
+
color: inherit;
|
|
16
|
+
`,n=c.forwardRef(({workplace:s,title:i,icon:_,...h},p)=>{const D=(0,E.S)();return h.to=h?.to??"/",D?(0,r.jsx)(f.f,{ref:p,...h,children:(0,r.jsx)(v.x,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:(0,r.jsxs)(u,{condensed:!0,children:[_,(0,r.jsxs)(a.T,{children:[(0,r.jsx)("span",{children:i}),(0,r.jsx)("span",{children:s})]})]})})}):(0,r.jsx)(e,{ref:p,...h,children:(0,r.jsx)(v.x,{paddingLeft:3,paddingRight:3,paddingTop:4,paddingBottom:4,children:(0,r.jsxs)(o.k,{children:[(0,r.jsx)(u,{"aria-hidden":!0,tabIndex:-1,children:_}),(0,r.jsxs)(v.x,{paddingLeft:2,children:[(0,r.jsxs)(g.Z,{fontWeight:"bold",textColor:"neutral800",as:"span",children:[i,(0,r.jsx)(a.T,{as:"span",children:s})]}),(0,r.jsx)(g.Z,{variant:"pi",as:"p",textColor:"neutral600","aria-hidden":!0,children:s})]})]})})})})},19546:function(m,l,t){"use strict";t.d(l,{w:function(){return u}});var r=t(74512),c=t(51939),d=t(40329),E=t(8471),f=t(58634),v=t(84642),a=t(18129),o=t(99320);const g=(0,E.ZP)(v.k).attrs(e=>({justifyContent:"center",...e}))`
|
|
17
|
+
background: ${({theme:e})=>e.colors.neutral0};
|
|
18
|
+
border: 1px solid ${({theme:e})=>e.colors.neutral150};
|
|
19
|
+
border-radius: ${({theme:e})=>e.borderRadius};
|
|
20
|
+
position: absolute;
|
|
21
|
+
bottom: ${(9+4)/16}rem; // 9 is the height of the svg and 4 is the padding below
|
|
22
|
+
right: ${({theme:e,condensed:n})=>n?0:e.spaces[5]};
|
|
23
|
+
transform: ${({condensed:e})=>e?"translateX(50%)":void 0};
|
|
24
|
+
z-index: 2;
|
|
25
|
+
width: ${18/16}rem;
|
|
26
|
+
height: ${25/16}rem;
|
|
27
|
+
|
|
28
|
+
svg {
|
|
29
|
+
width: ${6/16}rem;
|
|
30
|
+
height: ${9/16}rem;
|
|
31
|
+
}
|
|
32
|
+
`,u=({children:e,...n})=>{const s=(0,f.S)();return(0,r.jsxs)(g,{as:"button",condensed:s,...n,children:[(0,r.jsx)(a.J,{as:s?c.Z:d.Z,"aria-hidden":!0,color:"neutral600"}),(0,r.jsx)(o.T,{children:e})]})}},52242:function(m,l,t){"use strict";t.d(l,{q:function(){return d}});var r=t(74512),c=t(77981);const d=({children:E})=>(0,r.jsx)(c.x,{position:"relative",children:E})},14848:function(m,l,t){"use strict";t.d(l,{O:function(){return _}});var r=t(74512),c=t(32735),d=t(8471),E=t(58634),f=t(77981),v=t(42561),a=t(8365),o=t(84642),g=t(14298),u=t(11349);const e=(0,d.ZP)(f.x)`
|
|
33
|
+
svg {
|
|
34
|
+
width: 1rem;
|
|
35
|
+
height: 1rem;
|
|
36
|
+
}
|
|
37
|
+
`,n=(0,d.ZP)(v.f)`
|
|
38
|
+
position: relative;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
display: block;
|
|
41
|
+
border-radius: ${({theme:h})=>h.borderRadius};
|
|
42
|
+
background: ${({theme:h})=>h.colors.neutral0};
|
|
43
|
+
|
|
44
|
+
${a.Z} {
|
|
45
|
+
color: ${({theme:h})=>h.colors.neutral600};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
svg path {
|
|
49
|
+
fill: ${({theme:h})=>h.colors.neutral500};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
background: ${({theme:h})=>h.colors.neutral100};
|
|
54
|
+
|
|
55
|
+
${a.Z} {
|
|
56
|
+
color: ${({theme:h})=>h.colors.neutral700};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
svg path {
|
|
60
|
+
fill: ${({theme:h})=>h.colors.neutral600};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.active {
|
|
65
|
+
background: ${({theme:h})=>h.colors.primary100};
|
|
66
|
+
|
|
67
|
+
svg path {
|
|
68
|
+
fill: ${({theme:h})=>h.colors.primary600};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
${a.Z} {
|
|
72
|
+
color: ${({theme:h})=>h.colors.primary600};
|
|
73
|
+
font-weight: 500;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`,s=(0,d.ZP)(o.k)`
|
|
77
|
+
padding: ${({theme:h})=>`${h.spaces[2]} ${h.spaces[3]}`};
|
|
78
|
+
`,i=(0,d.ZP)(g.C)`
|
|
79
|
+
${({theme:h,condensed:p})=>p&&`
|
|
80
|
+
position: absolute;
|
|
81
|
+
// Values based on visual aspect
|
|
82
|
+
top: -${h.spaces[3]};
|
|
83
|
+
right: -${h.spaces[1]};
|
|
84
|
+
`}
|
|
85
|
+
|
|
86
|
+
${a.Z} {
|
|
87
|
+
//find a solution to remove !important
|
|
88
|
+
color: ${({theme:h})=>h.colors.neutral0} !important;
|
|
89
|
+
line-height: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
min-width: ${({theme:h})=>h.spaces[6]};
|
|
96
|
+
height: ${({theme:h})=>h.spaces[5]};
|
|
97
|
+
padding: ${({theme:h})=>`0 ${h.spaces[2]}`};
|
|
98
|
+
border-radius: ${({theme:h})=>h.spaces[10]};
|
|
99
|
+
background: ${({theme:h})=>h.colors.primary600};
|
|
100
|
+
`,_=c.forwardRef(({children:h,icon:p,badgeContent:D,badgeAriaLabel:O,...I},T)=>(0,E.S)()?(0,r.jsx)(n,{ref:T,...I,children:(0,r.jsx)(u.u,{position:"right",label:h,children:(0,r.jsxs)(s,{as:"span",justifyContent:"center",children:[(0,r.jsx)(e,{"aria-hidden":!0,paddingRight:0,as:"span",children:p}),D&&(0,r.jsx)(i,{condensed:!0,"aria-label":O,children:D})]})})}):(0,r.jsx)(n,{ref:T,...I,children:(0,r.jsxs)(s,{as:"span",justifyContent:"space-between",children:[(0,r.jsxs)(o.k,{children:[(0,r.jsx)(e,{"aria-hidden":!0,paddingRight:3,as:"span",children:p}),(0,r.jsx)(a.Z,{children:h})]}),D&&(0,r.jsx)(i,{justifyContent:"center","aria-label":O,children:D})]})}))},17681:function(m,l,t){"use strict";t.d(l,{y:function(){return g}});var r=t(74512),c=t(32735),d=t(58634),E=t(84642),f=t(77981),v=t(2775),a=t(99320),o=t(8365);const g=({label:u,children:e,horizontal:n=!1,spacing:s=2,...i})=>(0,d.S)()?(0,r.jsxs)(E.k,{direction:"column",alignItems:"stretch",gap:2,children:[(0,r.jsxs)(f.x,{paddingTop:1,paddingBottom:1,background:"neutral0",hasRadius:!0,as:"span",children:[(0,r.jsx)(v.i,{}),(0,r.jsx)(a.T,{children:(0,r.jsx)("span",{children:u})})]}),(0,r.jsx)(E.k,{as:"ul",gap:s,direction:n?"row":"column",alignItems:n?"center":"stretch",...i,children:c.Children.map(e,(h,p)=>(0,r.jsx)("li",{children:h},p))})]}):(0,r.jsxs)(E.k,{direction:"column",alignItems:"stretch",gap:2,children:[(0,r.jsx)(f.x,{paddingTop:1,paddingBottom:1,background:"neutral0",paddingRight:3,paddingLeft:3,hasRadius:!0,as:"span",children:(0,r.jsx)(o.Z,{variant:"sigma",textColor:"neutral600",children:u})}),(0,r.jsx)(E.k,{as:"ul",gap:s,direction:n?"row":"column",alignItems:n?"center":"stretch",...i,children:c.Children.map(e,(h,p)=>(0,r.jsx)("li",{children:h},p))})]})},42203:function(m,l,t){"use strict";t.d(l,{_:function(){return a}});var r=t(74512),c=t(32735),d=t(8471),E=t(77981),f=t(84642);const v=(0,d.ZP)(E.x)`
|
|
101
|
+
flex-grow: 1;
|
|
102
|
+
overflow-y: auto;
|
|
103
|
+
`,a=({children:o,spacing:g=4,horizontal:u=!1,...e})=>(0,r.jsx)(v,{paddingLeft:3,paddingRight:2,paddingTop:3,paddingBottom:8,children:(0,r.jsx)(f.k,{as:"ul",gap:g,direction:u?"row":"column",alignItems:u?"center":"stretch",...e,children:c.Children.map(o,(n,s)=>(0,r.jsx)("li",{children:n},s))})})},86267:function(m,l,t){"use strict";t.d(l,{r:function(){return e}});var r=t(74512),c=t(32735),d=t(8471),E=t(58634),f=t(77981),v=t(84642),a=t(246),o=t(99320),g=t(8365);const u=(0,d.ZP)(f.x)`
|
|
104
|
+
border-top: 1px solid ${({theme:n})=>n.colors.neutral150};
|
|
105
|
+
`,e=c.forwardRef(({src:n,children:s,initials:i,..._},h)=>{const p=(0,E.S)();return(0,r.jsx)(u,{paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5,..._,children:(0,r.jsxs)(v.k,{as:"button",justifyContent:p?"center":void 0,ref:h,children:[n?(0,r.jsx)(a.q,{src:n,alt:"","aria-hidden":!0}):(0,r.jsx)(a.L,{children:i}),p?(0,r.jsx)(o.T,{children:(0,r.jsx)("span",{children:s})}):(0,r.jsx)(f.x,{width:`${130/16}rem`,paddingLeft:2,as:"span",children:(0,r.jsx)(g.Z,{ellipsis:!0,textColor:"neutral600",children:s})})]})})})},19999:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M13 21v2.5l-3-2-3 2V21h-.5A3.5 3.5 0 0 1 3 17.5V5a3 3 0 0 1 3-3h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-7Zm-6-2v-2h6v2h6v-3H6.5a1.5 1.5 0 1 0 0 3H7ZM7 5v2h2V5H7Zm0 3v2h2V8H7Zm0 3v2h2v-2H7Z"})}),d=c},19594:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M2.68 9.192c-.6.276-2.114 1.18-2.306 1.303a.792.792 0 0 0-.374.68v1.65a.797.797 0 0 0 .384.687c.254.16 1.73 1.042 2.306 1.303l.744 1.8c-.24.634-.67 2.333-.72 2.554a.797.797 0 0 0 .216.744l1.167 1.166a.801.801 0 0 0 .744.216l.03-.008c.36-.092 1.946-.498 2.523-.712l1.8.744c.276.6 1.181 2.115 1.304 2.307a.805.805 0 0 0 .679.374h1.649a.797.797 0 0 0 .686-.384c.16-.254 1.042-1.73 1.303-2.306l1.8-.744c.634.24 2.333.67 2.554.72a.797.797 0 0 0 .744-.216l1.166-1.167a.803.803 0 0 0 .216-.744l-.008-.03c-.092-.36-.498-1.946-.712-2.523l.744-1.8c.6-.276 2.115-1.181 2.307-1.304a.804.804 0 0 0 .374-.679v-1.649a.796.796 0 0 0-.382-.679c-.254-.16-1.73-1.041-2.306-1.303l-.744-1.8c.24-.634.67-2.333.72-2.554a.796.796 0 0 0-.216-.744l-1.166-1.173a.802.802 0 0 0-.744-.216l-.03.008c-.361.092-1.947.498-2.524.712l-1.8-.744c-.276-.6-1.18-2.115-1.303-2.307a.803.803 0 0 0-.68-.374h-1.65a.797.797 0 0 0-.68.382c-.16.254-1.041 1.73-1.303 2.306l-1.8.744c-.634-.24-2.333-.67-2.554-.72a.797.797 0 0 0-.744.216L2.921 4.094a.802.802 0 0 0-.216.744l.008.03c.092.361.498 1.947.712 2.524l-.744 1.8ZM12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z",clipRule:"evenodd"})}),d=c},32880:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:[(0,r.jsx)("path",{fill:"#212134",d:"M11.987 23.036v-.964H1.876V1.876h10.111V0H0v24h11.987v-.964Z"}),(0,r.jsx)("path",{fill:"#212134",d:"M8 11.2c0-.11.09-.2.2-.2h11.973l-5.445-5.445a.2.2 0 0 1 0-.283l1.13-1.13a.2.2 0 0 1 .283 0l7.718 7.717a.2.2 0 0 1 0 .282L16.14 19.86a.2.2 0 0 1-.282 0l-1.13-1.13a.2.2 0 0 1 0-.284L20.172 13H8.2a.2.2 0 0 1-.2-.2v-1.6Z"})]}),d=c},18981:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M6.455 19 2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455ZM7 10v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Z"})}),d=c},39544:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.53-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685Z"})}),d=c},58518:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 8 8",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M2 .93c0-.4.45-.63.78-.41l4.6 3.06c.3.2.3.64 0 .84l-4.6 3.06A.5.5 0 0 1 2 7.07V.93Z"})}),d=c},601:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 25 25",...E,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"m13.58.448 3.177 3.176L18.66 1.72a3.267 3.267 0 1 1 4.62 4.62l-1.904 1.904 3.175 3.175a1.528 1.528 0 0 1 0 2.162l-3.175 3.175L20.2 15.58a3.267 3.267 0 1 0-4.62 4.62l1.177 1.177-3.176 3.176a1.528 1.528 0 0 1-2.162 0l-3.175-3.175-1.902 1.902a3.267 3.267 0 1 1-4.62-4.62l1.902-1.902-3.176-3.176a1.528 1.528 0 0 1 0-2.162l3.176-3.176L4.8 9.42a3.267 3.267 0 0 0 4.62-4.62L8.244 3.623 11.419.448a1.528 1.528 0 0 1 2.162 0Z",clipRule:"evenodd"})}),d=c},47372:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 15 14",...E,children:(0,r.jsx)("path",{fill:"#212134",d:"M5.08 4.1c0-1.19 1.18-2.17 2.42-2.17s2.43.98 2.43 2.17c0 1.1-.56 1.61-1.31 2.28l-.03.03c-.75.65-1.66 1.47-1.66 3.09a.57.57 0 1 0 1.15 0c0-1.08.55-1.6 1.3-2.26l.02-.02c.75-.66 1.67-1.48 1.67-3.12C11.07 2.13 9.22.78 7.5.78 5.78.78 3.93 2.13 3.93 4.1a.57.57 0 1 0 1.15 0Zm2.42 9.26a.88.88 0 1 0 0-1.75.88.88 0 0 0 0 1.75Z"})}),d=c},90230:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.12 3.907c-.025 0-.055-.005-.087-.011a.72.72 0 0 0-.13-.016H5.929l-.27-1.805A2.413 2.413 0 0 0 3.26 0H1.078C.485 0 0 .485 0 1.078c0 .593.485 1.078 1.078 1.078H3.26c.135 0 .243.107.27.242L5.2 13.77a2.954 2.954 0 0 0 2.91 2.506h11.21c1.401 0 2.614-.997 2.91-2.371l1.752-8.757a1.065 1.065 0 0 0-.863-1.24Zm-4.932 13.927a2.8 2.8 0 0 0-2.802 2.802 2.8 2.8 0 0 0 2.802 2.802 2.8 2.8 0 0 0 2.803-2.802c-.027-1.536-1.267-2.802-2.803-2.802Zm-9.646 0a2.786 2.786 0 0 1 2.775 2.667c.081 1.536-1.132 2.83-2.667 2.91h-.054a2.762 2.762 0 0 1-2.749-2.667 2.819 2.819 0 0 1 2.695-2.91Z",clipRule:"evenodd"})}),d=c},22356:function(m,l,t){"use strict";t.d(l,{Z:function(){return d}});var r=t(74512);const c=E=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...E,children:(0,r.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M23.707.297A1 1 0 0 0 23 .004h-2a13.907 13.907 0 0 0-5.38 1.077 1 1 0 0 0-.615.923V4.92a.035.035 0 0 1-.022.038l-2-1.47a1 1 0 0 0-1.265.052A14 14 0 0 0 7 14.004v1.585l-2.707 2.707a1 1 0 1 0 1.415 1.415l2.707-2.708H10a14.014 14.014 0 0 0 14-14v-2a1 1 0 0 0-.293-.706ZM18 23.999H3a3 3 0 0 1-3-3V6A3 3 0 0 1 3 3h3a1 1 0 1 1 0 2H3a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-3a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3Z",clipRule:"evenodd"})}),d=c}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[9218],{61575:function(N,L,n){n.d(L,{r:function(){return C}});var f=n(74512),T=n(77981),v=n(74506),M=n.n(v);function x(A,b,O){if(!A||!b||!O)return{display:"none"};const{x:g,y:P}=O;return{transform:`translate(${g}px, ${P}px)`}}const C=({renderItem:A})=>{const{itemType:b,isDragging:O,item:g,initialOffset:P,currentOffset:Z,mouseOffset:U}=(0,v.useDragLayer)(k=>({item:k.getItem(),itemType:k.getItemType(),initialOffset:k.getInitialSourceClientOffset(),currentOffset:k.getSourceClientOffset(),isDragging:k.isDragging(),mouseOffset:k.getClientOffset()}));return O?(0,f.jsx)(T.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%",children:(0,f.jsx)(T.x,{style:x(P,Z,U),children:A({type:b,item:g})})}):null}},75430:function(N,L,n){var f=n(32735);const T=(0,f.createContext)();var v=null},69242:function(N,L,n){n.d(L,{PL:function(){return x},Y9:function(){return C.Y},zE:function(){return oe},Ky:function(){return Q},fi:function(){return ne},zH:function(){return le},r5:function(){return a}});var f=n(32735),T=n(15062),v=n(53634),x=()=>{const e=(0,T.v9)(v.Z),t=(0,f.useCallback)(r=>e?.components?.[r]??{},[e]);return{...e,getComponentLayout:t}},C=n(77622),A=n(59407),b=n(84306),O=n(20716),g=n(97889);const P={error:null,isLoading:!0,layout:{},layouts:{}};var U=(e,t)=>(0,g.ZP)(e,r=>{switch(t.type){case"GET_DATA":{r.isLoading=!0,r.error=null,r.layout={};break}case"GET_DATA_SUCCEEDED":{const o=t.data.contentType.uid;r.layout=t.data,r.layouts[o]=t.data,r.isLoading=!1;break}case"GET_DATA_ERROR":{r.isLoading=!1,r.error=t.error;break}case"SET_LAYOUT_FROM_STATE":{r.error=null,r.layout=e.layouts[t.uid];break}case"UPDATE_LAYOUT":{const o=e.layout;r.layout={...o,contentType:{uid:o.contentType.uid,...t.newLayout.contentType}},r.layouts[o.contentType.uid]={...o,contentType:{uid:o.contentType.uid,...t.newLayout.contentType}};break}default:return r}}),k=n(99381),F=n.n(k),H=n(33795),I=n.n(H),se=n(3040),j=n.n(se),_=n(69997);const $=(e,t)=>t.find(r=>r.uid===e),ie=(e,t)=>{const r=q(e,t),o=R(r.contentType,t),u=ee(r.contentType,r.components);return j()(r,["contentType","layouts","edit"],o),j()(r,["contentType","layouts","list"],u),Object.keys(r.components).forEach(l=>{const m=R(r.components[l],t);j()(r,["components",l,"layouts","edit"],m)}),r},q=(e,t)=>{const r=(0,_.w8)(F()(e),t,"contentType"),{components:o,contentType:u}=r,l=m=>Object.keys(m.metadatas).reduce((D,h)=>{const W=I()(m,["attributes",h],{});let S=m.metadatas[h];if(W.type==="relation"){const ye=$(W.targetModel,t),K=S.edit.mainField,G={name:K,schema:I()(ye,["attributes",K])};S={list:{...S.list,mainField:G},edit:{...S.edit,mainField:G}}}return D[h]=S,D},{});return j()(r,["contentType","metadatas"],l(u)),Object.keys(o).forEach(m=>{const D=o[m],h=l(D);j()(r,["components",m,"metadatas"],h)}),r},R=(e,t)=>e.layouts.edit.reduce((r,o)=>{const u=o.map(l=>{const m=I()(e,["attributes",l.name],{}),D={...l,fieldSchema:m,metadatas:I()(e,["metadatas",l.name,"edit"],{})};if(m.type==="relation"){const W=$(m.targetModel,t).pluginOptions||{};j()(D,"targetModelPluginOptions",W),j()(D,"queryInfos",{shouldDisplayRelationLink:Y(e,l.name,t)})}return D});return r.push(u),r},[]),ee=(e,t)=>e.layouts.list.reduce((o,u)=>{const l=I()(e,["attributes",u],{}),m=I()(e,["metadatas",u,"list"],{}),D=l.type;if(D==="relation")return o.push({key:`__${u}_key__`,name:u,fieldSchema:l,metadatas:m}),o;if(D==="component"){const h=t[l.component],W=h.settings.mainField,S=h.attributes[W];return o.push({key:`__${u}_key__`,name:u,fieldSchema:l,metadatas:{...m,mainField:{...S,name:W}}}),o}return o.push({key:`__${u}_key__`,name:u,fieldSchema:l,metadatas:m}),o},[]),Y=(e,t,r)=>{const o=I()(e,["attributes",t,"targetModel"],"");return B(r).includes(o)},B=e=>e.filter(t=>t.isDisplayed).map(({uid:t})=>t);var V=ie,oe=e=>{const[{error:t,isLoading:r,layout:o,layouts:u},l]=(0,f.useReducer)(U,P),m=(0,f.useMemo)(O.Vo,[]),{schemas:D}=(0,T.v9)(K=>m(K),T.wU),h=(0,f.useRef)(!0),{get:W}=(0,A.kY)(),S=(0,f.useCallback)(async(K,G)=>{if(u[K]){l({type:"SET_LAYOUT_FROM_STATE",uid:K});return}l({type:"GET_DATA"});try{const{data:{data:re}}=await W(`/content-manager/content-types/${K}/configuration`,{cancelToken:G.token});l({type:"GET_DATA_SUCCEEDED",data:V(re,D)})}catch(re){if(b.default.isCancel(re))return;h.current&&console.error(re),h.current&&l({type:"GET_DATA_ERROR",error:re})}},[u,D,W]);(0,f.useEffect)(()=>()=>{h.current=!1},[]),(0,f.useEffect)(()=>{const G=b.default.CancelToken.source();return S(e,G),()=>{G.cancel("Operation canceled by the user.")}},[e,S]);const ye=(0,f.useCallback)(K=>{l({type:"UPDATE_LAYOUT",newLayout:V(K,D)})},[D]);return{error:t,isLoading:r,layout:o,updateLayout:ye}},ge=e=>e["content-manager_app"].collectionTypeLinks,ue=n(85973),p=n.n(ue),X=n(33348);const ae=(e,t)=>Object.keys(e).reduce((r,o)=>{const u=e[o],l=I()(t,[o],u);return p()(u)?{...r,[o]:ae(u,l)}:(r[o]=l,r)},{});var ce=(e,t,r)=>{const o=e.find(({to:S})=>S.includes(t));if(!o)return"/";const{to:u,search:l}=o,m=(0,X.parse)(l),D=(0,X.parse)(r.substring(1)),h=ae(m,D);return`${u}?${(0,X.stringify)(h,{encode:!1})}`},Q=e=>{const[{rawQuery:t}]=(0,A.Kx)(),r=(0,T.v9)(ge);return ce(r,e,t)},De=n(15655),z=n(53038),ne=()=>{const{search:e}=(0,z.TH)(),t=e?(0,X.parse)(e.substring(1)):{};return t.plugins?(0,X.stringify)({plugins:t.plugins},{encode:!1}):""};const le=e=>{const t=(0,f.useRef)();return(0,f.useEffect)(()=>{t.current=e},[e]),t.current};var w=n(85149);const de=(e,t,r)=>({type:w.m,permissions:e,__meta__:{plugins:t,containerName:r}}),fe=()=>({type:w.Q}),me=e=>e["content-manager_rbacManager"].permissions,s=e=>e.rbacProvider.collectionTypesRelatedPermissions;var a=(e,t,r="listView")=>{const o=(0,T.I0)(),u=(0,T.v9)(s),l=(0,T.v9)(me),m=u[t];(0,f.useEffect)(()=>m?(o(de(m,e?e.plugins:null,r)),()=>{o(fe())}):()=>{},[m,o,e,r]);const D=l?.some(h=>h.subject!==t)??!0;return{isValid:l&&!D,permissions:l}},i=n(75430);const d=()=>useContext(WysiwygContext);var y=null},77622:function(N,L,n){n.d(L,{Y:function(){return x}});var f=n(32735),T=n(74506),v=n.n(T),M=n(15655);const x=(C,{type:A="STRAPI_DND",index:b,item:O={},onStart:g,onEnd:P,onGrabItem:Z,onDropItem:U,onCancel:k,onMoveItem:F,dropSensitivity:H="regular"})=>{const I=(0,f.useRef)(null),[{handlerId:se},j]=(0,T.useDrop)({accept:A,collect(R){return{handlerId:R.getHandlerId()}},hover(R,ee){if(!I.current)return;const Y=R.index,B=b;if(Y!==B){if(H==="regular"){const V=I.current.getBoundingClientRect(),te=(V.bottom-V.top)/2,J=ee.getClientOffset().y-V.top;if(Y<B&&J<te||Y>B&&J>te)return}F(B,Y),R.index=B}}}),[{isDragging:_},$,ie]=(0,T.useDrag)({type:A,item(){g&&g();const{width:R}=I.current?.getBoundingClientRect()??{};return{index:b,width:R,...O}},end(){P&&P()},canDrag:C,isDragging:O.id?R=>O.id===R.getItem().id:void 0,collect:R=>({isDragging:R.isDragging()})}),q=(0,M.A)(C,b,{onGrabItem:Z,onDropItem:U,onCancel:k,onMoveItem:F});return[{handlerId:se,isDragging:_,handleKeyDown:q},I,j,$,ie]}},15655:function(N,L,n){n.d(L,{A:function(){return T}});var f=n(32735);const T=(v,M,{onCancel:x,onDropItem:C,onGrabItem:A,onMoveItem:b})=>{const[O,g]=(0,f.useState)(!1),P=F=>{O&&(F==="UP"?b(M-1,M):F==="DOWN"&&b(M+1,M))},Z=()=>{O?(C&&C(M),g(!1)):(A&&A(M),g(!0))},U=()=>{O&&(g(!1),x&&x(M))};return F=>{if(v&&!(F.key==="Tab"&&!O))switch(F.preventDefault(),F.key){case" ":case"Enter":Z();break;case"Escape":U();break;case"ArrowDown":case"ArrowRight":P("DOWN");break;case"ArrowUp":case"ArrowLeft":P("UP");break;default:}}}},20716:function(N,L,n){n.d(L,{Jg:function(){return b},KQ:function(){return C},Vo:function(){return A},Yg:function(){return v}});var f=n(98178),T=n(60371);const v=()=>g=>g["content-manager_app"]||T.E,M=()=>createSelector(v(),g=>g),x=()=>createSelector(v(),g=>g.models),C=()=>(0,f.P1)(v(),g=>({collectionTypeLinks:g.collectionTypeLinks,singleTypeLinks:g.singleTypeLinks})),A=()=>(0,f.P1)(v(),({components:g,models:P})=>({schemas:[...g,...P]})),b=(0,f.P1)(v(),g=>g.fieldSizes);var O=null},53634:function(N,L){const n=f=>f["content-manager_editViewLayoutManager"].currentLayout;L.Z=n},24381:function(N,L){L.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},48586:function(N,L,n){n.d(L,{G:function(){return f}});const f=({firstname:T,lastname:v,username:M,email:x},C)=>M||(T?C({id:"global.fullname",defaultMessage:"{firstname} {lastname}"},{firstname:T,lastname:v}).trim():x)},7921:function(N,L){const n=f=>`content-manager.${f}`;L.Z=n},69997:function(N,L,n){n.d(L,{_Q:function(){return B.Z},W3:function(){return M},ko:function(){return C},FE:function(){return b},Di:function(){return Z},Ex:function(){return fe},du:function(){return H},TA:function(){return j},Gf:function(){return me.G},Ts:function(){return q},Uo:function(){return ee},OB:function(){return Y.Z},w8:function(){return ue},kc:function(){return ae}});var f=n(99381),T=n.n(f),M=(s,c,a)=>{if(Array.isArray(s)&&c>=0&&a>=0&&c<=s.length-1&&a<=s.length-1){const i=T()(s),d=i.splice(c,1);return i.splice(a,0,d[0]),i}return s},C=s=>{const{type:c}=s;return c==="relation"?!(s?.relationType??"").toLowerCase().includes("morph"):!["json","dynamiczone","richtext","password","blocks"].includes(c)&&!!c};const A=(s,c)=>{typeof s=="function"?s(c):s!=null&&(s.current=c)},b=(...s)=>c=>s.forEach(a=>A(a,c));var O=n(33795),g=n.n(O);const P=(s,c)=>Object.keys(s).reduce((a,i)=>{const d=g()(s,[i],{}),{default:y,component:e,type:t,required:r,min:o,repeatable:u}=d;if(y!==void 0&&(a[i]=y),t==="component"){const l=c?.[e]?.attributes??{},m=P(l,c);if(r===!0&&(a[i]=u===!0?[]:m),o&&u===!0&&r){a[i]=[];for(let D=0;D<o;D+=1)a[i].push(m)}}return t==="dynamiczone"&&r===!0&&(a[i]=[]),a},{});var Z=P,U=n(9086),k=n.n(U),H=({layouts:s,metadatas:c,...a})=>{const i=s.list.map(e=>e.name?e.name:e),d=Object.keys(c).reduce((e,t)=>{const r=g()(c,[t],{});let o=r.edit;return o.mainField&&(o={...o,mainField:r.edit.mainField.name}),{...e,[t]:{edit:o,list:k()(r.list,["mainField"])}}},{}),y=s.edit.map(e=>e.map(({name:t,size:r})=>({name:t,size:r})));return{...a,layouts:{edit:y,list:i},metadatas:d}};const I=(s,c)=>s.map(a=>({...a,subject:c}));var j=s=>{const c={create:[{action:"plugin::content-manager.explorer.create",subject:null}],delete:[{action:"plugin::content-manager.explorer.delete",subject:null}],publish:[{action:"plugin::content-manager.explorer.publish",subject:null}],read:[{action:"plugin::content-manager.explorer.read",subject:null}],update:[{action:"plugin::content-manager.explorer.update",subject:null}]};return Object.keys(c).reduce((a,i)=>(a[i]=I(c[i],s),a),{})},_=n(95919),$=n.n(_),q=s=>s.split(".").filter(c=>$()(parseInt(c,10))),ee=s=>{if(s.length===0)return-1;const c=Math.max.apply(Math,s.map(a=>a.__temp_key__??0));return Number.isNaN(c)?-1:c},Y=n(7921),B=n(24381),V=n(86349),te=n.n(V),oe=n(3040),J=n.n(oe),ue=(s,c,a)=>{const i=t=>c.find(r=>r.uid===t),d=Object.assign({},s),y=s[a].uid,e=i(y);return J()(d,[a],te()({},e,s[a])),Object.keys(s.components).forEach(t=>{const r=i(t);J()(d,["components",t],{...s.components[t],...r})}),d},p=n(59407),ae=(s,c,a)=>{const i=(d,y)=>Object.keys(d).reduce((e,t)=>{const r=(0,p.UN)(y,t),o=g()(d,t),u=(0,p.k2)(y,[t,"component"]),l=(0,p.k2)(y,[t,"repeatable"]);return r==="dynamiczone"?(e[t]=o.map(m=>i(m,a[m.__component])),e):r==="component"?(l?e[t]=o&&o.map(m=>i(m,a[u])):e[t]=o&&i(o,a[u]),e):(r!=="password"&&(e[t]=o),e)},{});return i(s,c)},pe=n(51355),ce=n.n(pe),he=n(86834),Q=n.n(he),De=n(78746),z=n.n(De),E=n(24346),ne=n(73347);E.kM(E.nK,"defined",function(){return this.test("defined",p.I0.required,s=>s!==void 0)}),E.kM(E.IX,"notEmptyMin",function(s){return this.test("notEmptyMin",p.I0.min,c=>Q()(c)?!0:c.length>=s)}),E.kM(E.Z_,"isInferior",function(s,c){return this.test("isInferior",s,function(a){return!a||Number.isNaN(z()(a))?!0:z()(c)>=z()(a)})}),E.kM(E.Z_,"isSuperior",function(s,c){return this.test("isSuperior",s,function(a){return!a||Number.isNaN(z()(a))?!0:z()(a)>=z()(c)})});const le=s=>g()(s,["attributes"],{}),w=(s,{components:c},a={isCreatingEntry:!0,isDraft:!0,isFromComponent:!1,isJSONTestDisabled:!1})=>{const i=le(s);return E.Ry().shape(Object.keys(i).reduce((d,y)=>{const e=i[y];if(e.type!=="relation"&&e.type!=="component"&&e.type!=="dynamiczone"){const t=de(e.type,e,a);d[y]=t}if(e.type==="relation"&&(d[y]=["oneWay","oneToOne","manyToOne","oneToManyMorph","oneToOneMorph"].includes(e.relationType)?E.Ry().nullable():E.IX().nullable()),e.type==="component"){const t=w(c[e.component],{components:c},{...a,isFromComponent:!0});if(e.repeatable===!0){const{min:o,max:u,required:l}=e;let m=E.Vo(D=>{let h=E.IX().of(t);return o?l?h=h.min(o,p.I0.min):l!==!0&&Q()(D)?h=h.nullable():h=h.min(o,p.I0.min):l&&!a.isDraft&&(h=h.min(1,p.I0.required)),u&&(h=h.max(u,p.I0.max)),h});return d[y]=m,d}const r=E.Vo(o=>o!==void 0?e.required===!0&&!a.isDraft?t.defined():t.nullable():e.required===!0?E.Ry().defined():E.Ry().nullable());return d[y]=r,d}if(e.type==="dynamiczone"){let t=E.IX().of(E.Vo(({__component:u})=>w(c[u],{components:c},{...a,isFromComponent:!0})));const{max:r,min:o}=e;o?e.required?t=t.test("min",p.I0.min,u=>a.isCreatingEntry?u&&u.length>=o:u===void 0?!0:u!==null&&u.length>=o).test("required",p.I0.required,u=>a.isCreatingEntry?u!==null||u!==void 0:u===void 0?!0:u!==null):t=t.notEmptyMin(o):e.required&&!a.isDraft&&(t=t.test("required",p.I0.required,u=>a.isCreatingEntry?u!==null||u!==void 0:u===void 0?!0:u!==null)),r&&(t=t.max(r,p.I0.max)),d[y]=t}return d},{}))},de=(s,c,a)=>{let i=E.nK();return["string","uid","text","richtext","email","password","enumeration"].includes(s)&&(i=E.Z_()),s==="blocks"&&(i=E.nK().test("isJSON",p.I0.json,d=>a.isJSONTestDisabled||a.isDraft?!0:!(d&&!Array.isArray(d)))),s==="json"&&(i=E.nK(p.I0.json).test("isJSON",p.I0.json,d=>{if(a.isJSONTestDisabled||!d||!d.length)return!0;try{return JSON.parse(d),!0}catch{return!1}}).nullable().test("required",p.I0.required,d=>!(c.required&&(!d||!d.length)))),s==="email"&&(i=i.email(p.I0.email)),["number","integer","float","decimal"].includes(s)&&(i=E.Rx().transform(d=>$()(d)?void 0:d).typeError()),s==="biginteger"&&(i=E.Z_().matches(/^-?\d*$/)),["date","datetime"].includes(s)&&(i=E.hT()),Object.keys(c).forEach(d=>{const y=c[d];if(y||!ce()(y)&&Number.isInteger(Math.floor(y))||y===0)switch(d){case"required":{a.isDraft||(s==="password"&&a.isCreatingEntry&&(i=i.required(p.I0.required)),s!=="password"&&(a.isCreatingEntry?i=i.required(p.I0.required):i=i.test("required",p.I0.required,e=>e===void 0&&!a.isFromComponent?!0:(0,ne.Z)(s)?e===0?!0:!!e:s==="boolean"?e!=null:s==="date"||s==="datetime"?typeof e=="string"?!Q()(e):!Q()(e?.toString()):!Q()(e))));break}case"max":{s==="biginteger"?i=i.isInferior(p.I0.max,y):i=i.max(y,p.I0.max);break}case"maxLength":i=i.max(y,p.I0.maxLength);break;case"min":{s==="biginteger"?i=i.isSuperior(p.I0.min,y):i=i.min(y,p.I0.min);break}case"minLength":{a.isDraft||(i=i.min(y,p.I0.minLength));break}case"regex":i=i.matches(new RegExp(y),{message:p.I0.regex,excludeEmptyString:!c.required});break;case"lowercase":["text","textarea","email","string"].includes(s)&&(i=i.strict().lowercase());break;case"uppercase":["text","textarea","email","string"].includes(s)&&(i=i.strict().uppercase());break;case"positive":(0,ne.Z)(s)&&(i=i.positive());break;case"negative":(0,ne.Z)(s)&&(i=i.negative());break;default:i=i.nullable()}}),i};var fe=w,me=n(48586)},73347:function(N,L,n){n.d(L,{Z:function(){return f}});function f(T){return["integer","biginteger","decimal","float","number"].includes(T)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[9218],{61575:function(N,L,n){n.d(L,{r:function(){return C}});var f=n(74512),T=n(77981),v=n(74506),M=n.n(v);function x(A,b,O){if(!A||!b||!O)return{display:"none"};const{x:g,y:P}=O;return{transform:`translate(${g}px, ${P}px)`}}const C=({renderItem:A})=>{const{itemType:b,isDragging:O,item:g,initialOffset:P,currentOffset:Z,mouseOffset:U}=(0,v.useDragLayer)(k=>({item:k.getItem(),itemType:k.getItemType(),initialOffset:k.getInitialSourceClientOffset(),currentOffset:k.getSourceClientOffset(),isDragging:k.isDragging(),mouseOffset:k.getClientOffset()}));return O?(0,f.jsx)(T.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%",children:(0,f.jsx)(T.x,{style:x(P,Z,U),children:A({type:b,item:g})})}):null}},75430:function(N,L,n){var f=n(32735);const T=(0,f.createContext)();var v=null},69242:function(N,L,n){n.d(L,{PL:function(){return x},Y9:function(){return C.Y},zE:function(){return oe},Ky:function(){return Q},fi:function(){return ne},zH:function(){return le},r5:function(){return a}});var f=n(32735),T=n(40986),v=n(53634),x=()=>{const e=(0,T.v9)(v.Z),t=(0,f.useCallback)(r=>e?.components?.[r]??{},[e]);return{...e,getComponentLayout:t}},C=n(77622),A=n(96192),b=n(84306),O=n(20716),g=n(97889);const P={error:null,isLoading:!0,layout:{},layouts:{}};var U=(e,t)=>(0,g.ZP)(e,r=>{switch(t.type){case"GET_DATA":{r.isLoading=!0,r.error=null,r.layout={};break}case"GET_DATA_SUCCEEDED":{const o=t.data.contentType.uid;r.layout=t.data,r.layouts[o]=t.data,r.isLoading=!1;break}case"GET_DATA_ERROR":{r.isLoading=!1,r.error=t.error;break}case"SET_LAYOUT_FROM_STATE":{r.error=null,r.layout=e.layouts[t.uid];break}case"UPDATE_LAYOUT":{const o=e.layout;r.layout={...o,contentType:{uid:o.contentType.uid,...t.newLayout.contentType}},r.layouts[o.contentType.uid]={...o,contentType:{uid:o.contentType.uid,...t.newLayout.contentType}};break}default:return r}}),k=n(99381),F=n.n(k),H=n(33795),I=n.n(H),se=n(3040),j=n.n(se),_=n(69997);const $=(e,t)=>t.find(r=>r.uid===e),ie=(e,t)=>{const r=q(e,t),o=R(r.contentType,t),u=ee(r.contentType,r.components);return j()(r,["contentType","layouts","edit"],o),j()(r,["contentType","layouts","list"],u),Object.keys(r.components).forEach(l=>{const m=R(r.components[l],t);j()(r,["components",l,"layouts","edit"],m)}),r},q=(e,t)=>{const r=(0,_.w8)(F()(e),t,"contentType"),{components:o,contentType:u}=r,l=m=>Object.keys(m.metadatas).reduce((D,h)=>{const W=I()(m,["attributes",h],{});let S=m.metadatas[h];if(W.type==="relation"){const ye=$(W.targetModel,t),K=S.edit.mainField,G={name:K,schema:I()(ye,["attributes",K])};S={list:{...S.list,mainField:G},edit:{...S.edit,mainField:G}}}return D[h]=S,D},{});return j()(r,["contentType","metadatas"],l(u)),Object.keys(o).forEach(m=>{const D=o[m],h=l(D);j()(r,["components",m,"metadatas"],h)}),r},R=(e,t)=>e.layouts.edit.reduce((r,o)=>{const u=o.map(l=>{const m=I()(e,["attributes",l.name],{}),D={...l,fieldSchema:m,metadatas:I()(e,["metadatas",l.name,"edit"],{})};if(m.type==="relation"){const W=$(m.targetModel,t).pluginOptions||{};j()(D,"targetModelPluginOptions",W),j()(D,"queryInfos",{shouldDisplayRelationLink:Y(e,l.name,t)})}return D});return r.push(u),r},[]),ee=(e,t)=>e.layouts.list.reduce((o,u)=>{const l=I()(e,["attributes",u],{}),m=I()(e,["metadatas",u,"list"],{}),D=l.type;if(D==="relation")return o.push({key:`__${u}_key__`,name:u,fieldSchema:l,metadatas:m}),o;if(D==="component"){const h=t[l.component],W=h.settings.mainField,S=h.attributes[W];return o.push({key:`__${u}_key__`,name:u,fieldSchema:l,metadatas:{...m,mainField:{...S,name:W}}}),o}return o.push({key:`__${u}_key__`,name:u,fieldSchema:l,metadatas:m}),o},[]),Y=(e,t,r)=>{const o=I()(e,["attributes",t,"targetModel"],"");return B(r).includes(o)},B=e=>e.filter(t=>t.isDisplayed).map(({uid:t})=>t);var V=ie,oe=e=>{const[{error:t,isLoading:r,layout:o,layouts:u},l]=(0,f.useReducer)(U,P),m=(0,f.useMemo)(O.Vo,[]),{schemas:D}=(0,T.v9)(K=>m(K),T.wU),h=(0,f.useRef)(!0),{get:W}=(0,A.kY)(),S=(0,f.useCallback)(async(K,G)=>{if(u[K]){l({type:"SET_LAYOUT_FROM_STATE",uid:K});return}l({type:"GET_DATA"});try{const{data:{data:re}}=await W(`/content-manager/content-types/${K}/configuration`,{cancelToken:G.token});l({type:"GET_DATA_SUCCEEDED",data:V(re,D)})}catch(re){if(b.default.isCancel(re))return;h.current&&console.error(re),h.current&&l({type:"GET_DATA_ERROR",error:re})}},[u,D,W]);(0,f.useEffect)(()=>()=>{h.current=!1},[]),(0,f.useEffect)(()=>{const G=b.default.CancelToken.source();return S(e,G),()=>{G.cancel("Operation canceled by the user.")}},[e,S]);const ye=(0,f.useCallback)(K=>{l({type:"UPDATE_LAYOUT",newLayout:V(K,D)})},[D]);return{error:t,isLoading:r,layout:o,updateLayout:ye}},ge=e=>e["content-manager_app"].collectionTypeLinks,ue=n(85973),p=n.n(ue),X=n(33348);const ae=(e,t)=>Object.keys(e).reduce((r,o)=>{const u=e[o],l=I()(t,[o],u);return p()(u)?{...r,[o]:ae(u,l)}:(r[o]=l,r)},{});var ce=(e,t,r)=>{const o=e.find(({to:S})=>S.includes(t));if(!o)return"/";const{to:u,search:l}=o,m=(0,X.parse)(l),D=(0,X.parse)(r.substring(1)),h=ae(m,D);return`${u}?${(0,X.stringify)(h,{encode:!1})}`},Q=e=>{const[{rawQuery:t}]=(0,A.Kx)(),r=(0,T.v9)(ge);return ce(r,e,t)},De=n(15655),z=n(53038),ne=()=>{const{search:e}=(0,z.TH)(),t=e?(0,X.parse)(e.substring(1)):{};return t.plugins?(0,X.stringify)({plugins:t.plugins},{encode:!1}):""};const le=e=>{const t=(0,f.useRef)();return(0,f.useEffect)(()=>{t.current=e},[e]),t.current};var w=n(85149);const de=(e,t,r)=>({type:w.m,permissions:e,__meta__:{plugins:t,containerName:r}}),fe=()=>({type:w.Q}),me=e=>e["content-manager_rbacManager"].permissions,s=e=>e.rbacProvider.collectionTypesRelatedPermissions;var a=(e,t,r="listView")=>{const o=(0,T.I0)(),u=(0,T.v9)(s),l=(0,T.v9)(me),m=u[t];(0,f.useEffect)(()=>m?(o(de(m,e?e.plugins:null,r)),()=>{o(fe())}):()=>{},[m,o,e,r]);const D=l?.some(h=>h.subject!==t)??!0;return{isValid:l&&!D,permissions:l}},i=n(75430);const d=()=>useContext(WysiwygContext);var y=null},77622:function(N,L,n){n.d(L,{Y:function(){return x}});var f=n(32735),T=n(74506),v=n.n(T),M=n(15655);const x=(C,{type:A="STRAPI_DND",index:b,item:O={},onStart:g,onEnd:P,onGrabItem:Z,onDropItem:U,onCancel:k,onMoveItem:F,dropSensitivity:H="regular"})=>{const I=(0,f.useRef)(null),[{handlerId:se},j]=(0,T.useDrop)({accept:A,collect(R){return{handlerId:R.getHandlerId()}},hover(R,ee){if(!I.current)return;const Y=R.index,B=b;if(Y!==B){if(H==="regular"){const V=I.current.getBoundingClientRect(),te=(V.bottom-V.top)/2,J=ee.getClientOffset().y-V.top;if(Y<B&&J<te||Y>B&&J>te)return}F(B,Y),R.index=B}}}),[{isDragging:_},$,ie]=(0,T.useDrag)({type:A,item(){g&&g();const{width:R}=I.current?.getBoundingClientRect()??{};return{index:b,width:R,...O}},end(){P&&P()},canDrag:C,isDragging:O.id?R=>O.id===R.getItem().id:void 0,collect:R=>({isDragging:R.isDragging()})}),q=(0,M.A)(C,b,{onGrabItem:Z,onDropItem:U,onCancel:k,onMoveItem:F});return[{handlerId:se,isDragging:_,handleKeyDown:q},I,j,$,ie]}},15655:function(N,L,n){n.d(L,{A:function(){return T}});var f=n(32735);const T=(v,M,{onCancel:x,onDropItem:C,onGrabItem:A,onMoveItem:b})=>{const[O,g]=(0,f.useState)(!1),P=F=>{O&&(F==="UP"?b(M-1,M):F==="DOWN"&&b(M+1,M))},Z=()=>{O?(C&&C(M),g(!1)):(A&&A(M),g(!0))},U=()=>{O&&(g(!1),x&&x(M))};return F=>{if(v&&!(F.key==="Tab"&&!O))switch(F.preventDefault(),F.key){case" ":case"Enter":Z();break;case"Escape":U();break;case"ArrowDown":case"ArrowRight":P("DOWN");break;case"ArrowUp":case"ArrowLeft":P("UP");break;default:}}}},20716:function(N,L,n){n.d(L,{Jg:function(){return b},KQ:function(){return C},Vo:function(){return A},Yg:function(){return v}});var f=n(98178),T=n(60371);const v=()=>g=>g["content-manager_app"]||T.E,M=()=>createSelector(v(),g=>g),x=()=>createSelector(v(),g=>g.models),C=()=>(0,f.P1)(v(),g=>({collectionTypeLinks:g.collectionTypeLinks,singleTypeLinks:g.singleTypeLinks})),A=()=>(0,f.P1)(v(),({components:g,models:P})=>({schemas:[...g,...P]})),b=(0,f.P1)(v(),g=>g.fieldSizes);var O=null},53634:function(N,L){const n=f=>f["content-manager_editViewLayoutManager"].currentLayout;L.Z=n},24381:function(N,L){L.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},48586:function(N,L,n){n.d(L,{G:function(){return f}});const f=({firstname:T,lastname:v,username:M,email:x},C)=>M||(T?C({id:"global.fullname",defaultMessage:"{firstname} {lastname}"},{firstname:T,lastname:v}).trim():x)},7921:function(N,L){const n=f=>`content-manager.${f}`;L.Z=n},69997:function(N,L,n){n.d(L,{_Q:function(){return B.Z},W3:function(){return M},ko:function(){return C},FE:function(){return b},Di:function(){return Z},Ex:function(){return fe},du:function(){return H},TA:function(){return j},Gf:function(){return me.G},Ts:function(){return q},Uo:function(){return ee},OB:function(){return Y.Z},w8:function(){return ue},kc:function(){return ae}});var f=n(99381),T=n.n(f),M=(s,c,a)=>{if(Array.isArray(s)&&c>=0&&a>=0&&c<=s.length-1&&a<=s.length-1){const i=T()(s),d=i.splice(c,1);return i.splice(a,0,d[0]),i}return s},C=s=>{const{type:c}=s;return c==="relation"?!(s?.relationType??"").toLowerCase().includes("morph"):!["json","dynamiczone","richtext","password","blocks"].includes(c)&&!!c};const A=(s,c)=>{typeof s=="function"?s(c):s!=null&&(s.current=c)},b=(...s)=>c=>s.forEach(a=>A(a,c));var O=n(33795),g=n.n(O);const P=(s,c)=>Object.keys(s).reduce((a,i)=>{const d=g()(s,[i],{}),{default:y,component:e,type:t,required:r,min:o,repeatable:u}=d;if(y!==void 0&&(a[i]=y),t==="component"){const l=c?.[e]?.attributes??{},m=P(l,c);if(r===!0&&(a[i]=u===!0?[]:m),o&&u===!0&&r){a[i]=[];for(let D=0;D<o;D+=1)a[i].push(m)}}return t==="dynamiczone"&&r===!0&&(a[i]=[]),a},{});var Z=P,U=n(9086),k=n.n(U),H=({layouts:s,metadatas:c,...a})=>{const i=s.list.map(e=>e.name?e.name:e),d=Object.keys(c).reduce((e,t)=>{const r=g()(c,[t],{});let o=r.edit;return o.mainField&&(o={...o,mainField:r.edit.mainField.name}),{...e,[t]:{edit:o,list:k()(r.list,["mainField"])}}},{}),y=s.edit.map(e=>e.map(({name:t,size:r})=>({name:t,size:r})));return{...a,layouts:{edit:y,list:i},metadatas:d}};const I=(s,c)=>s.map(a=>({...a,subject:c}));var j=s=>{const c={create:[{action:"plugin::content-manager.explorer.create",subject:null}],delete:[{action:"plugin::content-manager.explorer.delete",subject:null}],publish:[{action:"plugin::content-manager.explorer.publish",subject:null}],read:[{action:"plugin::content-manager.explorer.read",subject:null}],update:[{action:"plugin::content-manager.explorer.update",subject:null}]};return Object.keys(c).reduce((a,i)=>(a[i]=I(c[i],s),a),{})},_=n(95919),$=n.n(_),q=s=>s.split(".").filter(c=>$()(parseInt(c,10))),ee=s=>{if(s.length===0)return-1;const c=Math.max.apply(Math,s.map(a=>a.__temp_key__??0));return Number.isNaN(c)?-1:c},Y=n(7921),B=n(24381),V=n(86349),te=n.n(V),oe=n(3040),J=n.n(oe),ue=(s,c,a)=>{const i=t=>c.find(r=>r.uid===t),d=Object.assign({},s),y=s[a].uid,e=i(y);return J()(d,[a],te()({},e,s[a])),Object.keys(s.components).forEach(t=>{const r=i(t);J()(d,["components",t],{...s.components[t],...r})}),d},p=n(96192),ae=(s,c,a)=>{const i=(d,y)=>Object.keys(d).reduce((e,t)=>{const r=(0,p.UN)(y,t),o=g()(d,t),u=(0,p.k2)(y,[t,"component"]),l=(0,p.k2)(y,[t,"repeatable"]);return r==="dynamiczone"?(e[t]=o.map(m=>i(m,a[m.__component])),e):r==="component"?(l?e[t]=o&&o.map(m=>i(m,a[u])):e[t]=o&&i(o,a[u]),e):(r!=="password"&&(e[t]=o),e)},{});return i(s,c)},pe=n(51355),ce=n.n(pe),he=n(86834),Q=n.n(he),De=n(78746),z=n.n(De),E=n(24346),ne=n(73347);E.kM(E.nK,"defined",function(){return this.test("defined",p.I0.required,s=>s!==void 0)}),E.kM(E.IX,"notEmptyMin",function(s){return this.test("notEmptyMin",p.I0.min,c=>Q()(c)?!0:c.length>=s)}),E.kM(E.Z_,"isInferior",function(s,c){return this.test("isInferior",s,function(a){return!a||Number.isNaN(z()(a))?!0:z()(c)>=z()(a)})}),E.kM(E.Z_,"isSuperior",function(s,c){return this.test("isSuperior",s,function(a){return!a||Number.isNaN(z()(a))?!0:z()(a)>=z()(c)})});const le=s=>g()(s,["attributes"],{}),w=(s,{components:c},a={isCreatingEntry:!0,isDraft:!0,isFromComponent:!1,isJSONTestDisabled:!1})=>{const i=le(s);return E.Ry().shape(Object.keys(i).reduce((d,y)=>{const e=i[y];if(e.type!=="relation"&&e.type!=="component"&&e.type!=="dynamiczone"){const t=de(e.type,e,a);d[y]=t}if(e.type==="relation"&&(d[y]=["oneWay","oneToOne","manyToOne","oneToManyMorph","oneToOneMorph"].includes(e.relationType)?E.Ry().nullable():E.IX().nullable()),e.type==="component"){const t=w(c[e.component],{components:c},{...a,isFromComponent:!0});if(e.repeatable===!0){const{min:o,max:u,required:l}=e;let m=E.Vo(D=>{let h=E.IX().of(t);return o?l?h=h.min(o,p.I0.min):l!==!0&&Q()(D)?h=h.nullable():h=h.min(o,p.I0.min):l&&!a.isDraft&&(h=h.min(1,p.I0.required)),u&&(h=h.max(u,p.I0.max)),h});return d[y]=m,d}const r=E.Vo(o=>o!==void 0?e.required===!0&&!a.isDraft?t.defined():t.nullable():e.required===!0?E.Ry().defined():E.Ry().nullable());return d[y]=r,d}if(e.type==="dynamiczone"){let t=E.IX().of(E.Vo(({__component:u})=>w(c[u],{components:c},{...a,isFromComponent:!0})));const{max:r,min:o}=e;o?e.required?t=t.test("min",p.I0.min,u=>a.isCreatingEntry?u&&u.length>=o:u===void 0?!0:u!==null&&u.length>=o).test("required",p.I0.required,u=>a.isCreatingEntry?u!==null||u!==void 0:u===void 0?!0:u!==null):t=t.notEmptyMin(o):e.required&&!a.isDraft&&(t=t.test("required",p.I0.required,u=>a.isCreatingEntry?u!==null||u!==void 0:u===void 0?!0:u!==null)),r&&(t=t.max(r,p.I0.max)),d[y]=t}return d},{}))},de=(s,c,a)=>{let i=E.nK();return["string","uid","text","richtext","email","password","enumeration"].includes(s)&&(i=E.Z_()),s==="blocks"&&(i=E.nK().test("isJSON",p.I0.json,d=>a.isJSONTestDisabled||a.isDraft?!0:!(d&&!Array.isArray(d)))),s==="json"&&(i=E.nK(p.I0.json).test("isJSON",p.I0.json,d=>{if(a.isJSONTestDisabled||!d||!d.length)return!0;try{return JSON.parse(d),!0}catch{return!1}}).nullable().test("required",p.I0.required,d=>!(c.required&&(!d||!d.length)))),s==="email"&&(i=i.email(p.I0.email)),["number","integer","float","decimal"].includes(s)&&(i=E.Rx().transform(d=>$()(d)?void 0:d).typeError()),s==="biginteger"&&(i=E.Z_().matches(/^-?\d*$/)),["date","datetime"].includes(s)&&(i=E.hT()),Object.keys(c).forEach(d=>{const y=c[d];if(y||!ce()(y)&&Number.isInteger(Math.floor(y))||y===0)switch(d){case"required":{a.isDraft||(s==="password"&&a.isCreatingEntry&&(i=i.required(p.I0.required)),s!=="password"&&(a.isCreatingEntry?i=i.required(p.I0.required):i=i.test("required",p.I0.required,e=>e===void 0&&!a.isFromComponent?!0:(0,ne.Z)(s)?e===0?!0:!!e:s==="boolean"?e!=null:s==="date"||s==="datetime"?typeof e=="string"?!Q()(e):!Q()(e?.toString()):!Q()(e))));break}case"max":{s==="biginteger"?i=i.isInferior(p.I0.max,y):i=i.max(y,p.I0.max);break}case"maxLength":i=i.max(y,p.I0.maxLength);break;case"min":{s==="biginteger"?i=i.isSuperior(p.I0.min,y):i=i.min(y,p.I0.min);break}case"minLength":{a.isDraft||(i=i.min(y,p.I0.minLength));break}case"regex":i=i.matches(new RegExp(y),{message:p.I0.regex,excludeEmptyString:!c.required});break;case"lowercase":["text","textarea","email","string"].includes(s)&&(i=i.strict().lowercase());break;case"uppercase":["text","textarea","email","string"].includes(s)&&(i=i.strict().uppercase());break;case"positive":(0,ne.Z)(s)&&(i=i.positive());break;case"negative":(0,ne.Z)(s)&&(i=i.negative());break;default:i=i.nullable()}}),i};var fe=w,me=n(48586)},73347:function(N,L,n){n.d(L,{Z:function(){return f}});function f(T){return["integer","biginteger","decimal","float","number"].includes(T)}}}]);
|