@strapi/admin 4.11.5 → 4.11.6
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/content-manager/components/SingleTypeFormWrapper/index.js +6 -6
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +23 -21
- package/admin/src/content-manager/pages/EditSettingsView/components/ModalForm.js +21 -23
- package/admin/src/content-manager/pages/EditView/Information/index.js +1 -1
- package/admin/src/content-manager/pages/EditView/InformationBox/InformationBoxCE.js +1 -2
- package/admin/src/content-manager/pages/EditView/InformationBox/index.js +1 -3
- package/admin/src/content-manager/pages/EditView/index.js +14 -2
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +24 -22
- package/admin/src/content-manager/pages/ListView/components/CellContent/RelationMultiple/index.js +61 -67
- package/admin/src/content-manager/pages/ListView/components/CellContent/RepeatableComponent/index.js +28 -21
- package/admin/src/content-manager/pages/ListView/components/TableRows/index.js +4 -0
- package/admin/src/layouts/UnauthenticatedLayout/LocaleToggle/index.js +7 -7
- package/admin/src/pages/AuthPage/components/Login/index.js +3 -5
- package/admin/src/pages/AuthPage/constants.js +3 -2
- package/admin/src/pages/AuthPage/index.js +18 -1
- package/admin/src/pages/HomePage/index.js +19 -7
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +17 -1
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +16 -3
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +15 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +36 -5
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js +3 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +16 -1
- package/build/1049.758a01f5.chunk.js +1 -0
- package/build/{3528.4845cf92.chunk.js → 1386.762d6eb8.chunk.js} +1 -1
- package/build/1727.b49f0713.chunk.js +1 -0
- package/build/{5563.27e2de0c.chunk.js → 2225.15d1df72.chunk.js} +2 -2
- package/build/2379.3ba39b61.chunk.js +1 -0
- package/build/2395.c27eb585.chunk.js +26 -0
- package/build/2801.93343c11.chunk.js +1 -0
- package/build/{7394.423886bd.chunk.js → 3100.21c343fa.chunk.js} +1 -1
- package/build/311.cb0884bb.chunk.js +1 -0
- package/build/3483.642d2321.chunk.js +1 -0
- package/build/{970.89601f27.chunk.js → 3739.63e352f1.chunk.js} +52 -20
- package/build/3984.298bdb66.chunk.js +1 -0
- package/build/4546.5aac90fe.chunk.js +1 -0
- package/build/502.f6b78f85.chunk.js +1 -0
- package/build/{5542.c62d0daf.chunk.js → 5542.2415a393.chunk.js} +6 -6
- package/build/6158.f9d82db9.chunk.js +1 -0
- package/build/7030.b98dcedf.chunk.js +1 -0
- package/build/7464.fe31804b.chunk.js +1 -0
- package/build/8276.d03dc679.chunk.js +26 -0
- package/build/918.54414509.chunk.js +1 -0
- package/build/978.bab58f0a.chunk.js +1 -0
- package/build/{9932.9f3790a5.chunk.js → 9932.b5a3bb3a.chunk.js} +2 -2
- package/build/{9944.29289a16.chunk.js → 9944.7af075a5.chunk.js} +1 -1
- package/build/{Admin-authenticatedApp.7f04c595.chunk.js → Admin-authenticatedApp.b3060bbe.chunk.js} +5 -5
- package/build/Admin_InternalErrorPage.f45f2462.chunk.js +1 -0
- package/build/{Admin_homePage.be30ef4e.chunk.js → Admin_homePage.ac9dfb86.chunk.js} +23 -15
- package/build/{Admin_marketplace.74a58e20.chunk.js → Admin_marketplace.f0b87fce.chunk.js} +1 -1
- package/build/{Admin_pluginsPage.ce464189.chunk.js → Admin_pluginsPage.8728ff6e.chunk.js} +1 -1
- package/build/{Admin_profilePage.0adb571e.chunk.js → Admin_profilePage.a968035f.chunk.js} +2 -2
- package/build/Admin_settingsPage.8c600d1a.chunk.js +111 -0
- package/build/Upload_ConfigureTheView.345ac1e0.chunk.js +1 -0
- package/build/admin-app.1c3f7fd6.chunk.js +36 -0
- package/build/{admin-edit-roles-page.3fdd6b9d.chunk.js → admin-edit-roles-page.a49b9f4f.chunk.js} +4 -4
- package/build/admin-edit-users.67704088.chunk.js +10 -0
- package/build/{admin-roles-list.e17b00d7.chunk.js → admin-roles-list.0c129e98.chunk.js} +1 -1
- package/build/admin-users.3279ffb0.chunk.js +11 -0
- package/build/api-tokens-create-page.46c2ea84.chunk.js +1 -0
- package/build/{api-tokens-edit-page.9a1dd2fa.chunk.js → api-tokens-edit-page.58139df9.chunk.js} +1 -1
- package/build/{api-tokens-list-page.a103f526.chunk.js → api-tokens-list-page.505bf7e0.chunk.js} +2 -2
- package/build/audit-logs-settings-page.4b422831.chunk.js +1 -0
- package/build/content-manager.9f7f0cb8.chunk.js +1101 -0
- package/build/{content-type-builder-list-view.82cfadc0.chunk.js → content-type-builder-list-view.bf9be456.chunk.js} +4 -4
- package/build/{content-type-builder-translation-ar-json.56d8fcf4.chunk.js → content-type-builder-translation-ar-json.3e808e2f.chunk.js} +1 -1
- package/build/{content-type-builder-translation-cs-json.a5b299ca.chunk.js → content-type-builder-translation-cs-json.1ef9e106.chunk.js} +1 -1
- package/build/{content-type-builder-translation-de-json.393a76c0.chunk.js → content-type-builder-translation-de-json.63fcff7b.chunk.js} +1 -1
- package/build/{content-type-builder-translation-dk-json.fbd39bb7.chunk.js → content-type-builder-translation-dk-json.fd626b67.chunk.js} +1 -1
- package/build/{content-type-builder-translation-en-json.f592325b.chunk.js → content-type-builder-translation-en-json.9f2b9c49.chunk.js} +1 -1
- package/build/{content-type-builder-translation-es-json.9288474b.chunk.js → content-type-builder-translation-es-json.a4a361a9.chunk.js} +1 -1
- package/build/{content-type-builder-translation-fr-json.d35e269c.chunk.js → content-type-builder-translation-fr-json.499c3a46.chunk.js} +1 -1
- package/build/{content-type-builder-translation-id-json.f0513929.chunk.js → content-type-builder-translation-id-json.65255f93.chunk.js} +1 -1
- package/build/{content-type-builder-translation-it-json.aaf16753.chunk.js → content-type-builder-translation-it-json.e268ab74.chunk.js} +1 -1
- package/build/{content-type-builder-translation-ko-json.8fe21a7f.chunk.js → content-type-builder-translation-ko-json.04cb309d.chunk.js} +1 -1
- package/build/{content-type-builder-translation-ms-json.3b5d2d3e.chunk.js → content-type-builder-translation-ms-json.f6b743b9.chunk.js} +1 -1
- package/build/{content-type-builder-translation-nl-json.225ef5d3.chunk.js → content-type-builder-translation-nl-json.997fe8cc.chunk.js} +1 -1
- package/build/{content-type-builder-translation-pl-json.92f36be2.chunk.js → content-type-builder-translation-pl-json.634f638b.chunk.js} +1 -1
- package/build/{content-type-builder-translation-pt-BR-json.3bd10f89.chunk.js → content-type-builder-translation-pt-BR-json.6a95dc71.chunk.js} +1 -1
- package/build/{content-type-builder-translation-ru-json.9bfe47ce.chunk.js → content-type-builder-translation-ru-json.3af65503.chunk.js} +1 -1
- package/build/{content-type-builder-translation-sk-json.d03cc18a.chunk.js → content-type-builder-translation-sk-json.c6078082.chunk.js} +1 -1
- package/build/{content-type-builder-translation-sv-json.d23dcd32.chunk.js → content-type-builder-translation-sv-json.a6df2462.chunk.js} +1 -1
- package/build/{content-type-builder-translation-th-json.7ad256e2.chunk.js → content-type-builder-translation-th-json.122277cc.chunk.js} +1 -1
- package/build/{content-type-builder-translation-tr-json.926f6191.chunk.js → content-type-builder-translation-tr-json.41f44f77.chunk.js} +1 -1
- package/build/{content-type-builder-translation-uk-json.7bf19546.chunk.js → content-type-builder-translation-uk-json.e1315acd.chunk.js} +1 -1
- package/build/{content-type-builder-translation-zh-Hans-json.415577fb.chunk.js → content-type-builder-translation-zh-Hans-json.6ff57db6.chunk.js} +1 -1
- package/build/{content-type-builder-translation-zh-json.ad24dbeb.chunk.js → content-type-builder-translation-zh-json.3532b962.chunk.js} +1 -1
- package/build/content-type-builder.7a90cece.chunk.js +170 -0
- package/build/{email-settings-page.45695daa.chunk.js → email-settings-page.d494d1eb.chunk.js} +2 -2
- package/build/{i18n-settings-page.29308d0b.chunk.js → i18n-settings-page.47f78016.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.22e2d4ec.js +2856 -0
- package/build/review-workflows-settings.f1104fb9.chunk.js +110 -0
- package/build/runtime~main.437fdcbb.js +2 -0
- package/build/sso-settings-page.ed6f3f15.chunk.js +1 -0
- package/build/transfer-tokens-create-page.1597e6ab.chunk.js +1 -0
- package/build/transfer-tokens-edit-page.8741529f.chunk.js +1 -0
- package/build/{transfer-tokens-list-page.7237443d.chunk.js → transfer-tokens-list-page.22147d2c.chunk.js} +2 -2
- package/build/upload-settings.cac210a0.chunk.js +14 -0
- package/build/upload.cbfeefa5.chunk.js +58 -0
- package/build/{users-advanced-settings-page.750b1f76.chunk.js → users-advanced-settings-page.18379a56.chunk.js} +1 -1
- package/build/users-email-settings-page.a87978e5.chunk.js +9 -0
- package/build/users-providers-settings-page.8876c1ee.chunk.js +14 -0
- package/build/{users-roles-settings-page.d286426a.chunk.js → users-roles-settings-page.0431f48c.chunk.js} +2 -2
- package/build/webhook-edit-page.a91f27a1.chunk.js +33 -0
- package/build/{webhook-list-page.940a40f1.chunk.js → webhook-list-page.65e1b5bb.chunk.js} +1 -1
- package/ee/admin/content-manager/pages/EditView/InformationBox/InformationBoxEE.js +1 -1
- package/ee/admin/content-manager/pages/EditView/InformationBox/index.js +1 -3
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -5
- package/ee/admin/pages/HomePage/index.js +11 -0
- package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +1 -3
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +2 -4
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/index.js +13 -0
- package/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js +3 -5
- package/ee/admin/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +1 -3
- package/index.js +0 -14
- package/package.json +10 -18
- package/webpack.alias.js +0 -3
- package/webpack.config.js +1 -75
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +0 -5
- package/build/1386.3b2aa6a7.chunk.js +0 -3
- package/build/1970.39a2d75e.chunk.js +0 -1
- package/build/2799.cf9b491f.chunk.js +0 -1
- package/build/3269.1ea0f5a6.chunk.js +0 -1
- package/build/539.865446c0.chunk.js +0 -1
- package/build/5932.f8be7e31.chunk.js +0 -1
- package/build/7018.98feed67.chunk.js +0 -1
- package/build/7259.0e25ab5d.chunk.js +0 -1
- package/build/Admin_InternalErrorPage.8911cb49.chunk.js +0 -1
- package/build/Admin_settingsPage.36152558.chunk.js +0 -79
- package/build/Upload_ConfigureTheView.7a1cb9c9.chunk.js +0 -1
- package/build/admin-app.3ea6009c.chunk.js +0 -61
- package/build/admin-edit-users.78552758.chunk.js +0 -10
- package/build/admin-users.c23322fc.chunk.js +0 -11
- package/build/api-tokens-create-page.3dd4e921.chunk.js +0 -1
- package/build/audit-logs-settings-page.37fe915c.chunk.js +0 -1
- package/build/content-manager.552c7418.chunk.js +0 -1094
- package/build/content-type-builder.238687f9.chunk.js +0 -166
- package/build/main.3d752c03.js +0 -2927
- package/build/review-workflows-settings.93808ae0.chunk.js +0 -110
- package/build/runtime~main.87232977.js +0 -2
- package/build/sso-settings-page.0cdb96a6.chunk.js +0 -1
- package/build/transfer-tokens-create-page.de14cad4.chunk.js +0 -1
- package/build/transfer-tokens-edit-page.4f5e39af.chunk.js +0 -1
- package/build/upload-settings.cb6c14c3.chunk.js +0 -14
- package/build/upload.7e629643.chunk.js +0 -26
- package/build/users-email-settings-page.e9bcd865.chunk.js +0 -9
- package/build/users-providers-settings-page.a94253e9.chunk.js +0 -14
- package/build/webhook-edit-page.77ef4f1a.chunk.js +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[4546],{17379:function(W,v,r){r.d(v,{r:function(){return C}});var f=r(32735),T=r(72850),A=r(60216),I=r.n(A),S=r(74506);function k(M,O,p){if(!M||!O)return{display:"none"};const{x:b,y:x}=p;return{transform:`translate(${b}px, ${x}px)`}}function C({renderItem:M}){const{itemType:O,isDragging:p,item:b,initialOffset:x,currentOffset:K,mouseOffset:Z}=(0,S.useDragLayer)(L=>({item:L.getItem(),itemType:L.getItemType(),initialOffset:L.getInitialSourceClientOffset(),currentOffset:L.getSourceClientOffset(),isDragging:L.isDragging(),mouseOffset:L.getClientOffset()}));return p?f.createElement(T.x,{height:"100%",left:0,position:"fixed",pointerEvents:"none",top:0,zIndex:100,width:"100%"},f.createElement(T.x,{style:k(x,K,Z)},M({type:O,item:b}))):null}C.propTypes={renderItem:I().func.isRequired}},75430:function(W,v,r){var f=r(32735);const T=(0,f.createContext)();var A=null},69242:function(W,v,r){r.d(v,{PL:function(){return S},Y9:function(){return k.Y},zE:function(){return oe},Ky:function(){return ce},fi:function(){return B},zH:function(){return h},r5:function(){return l}});var f=r(32735),T=r(15062),A=r(53634),S=()=>{const n=(0,T.v9)(A.Z),e=(0,f.useCallback)(t=>n?.components?.[t]??{},[n]);return{...n,getComponentLayout:e}},k=r(77622),C=r(19565),M=r(84306),O=r(20716),p=r(97889);const b={error:null,isLoading:!0,layout:{},layouts:{}};var K=(n,e)=>(0,p.ZP)(n,t=>{switch(e.type){case"GET_DATA":{t.isLoading=!0,t.error=null,t.layout={};break}case"GET_DATA_SUCCEEDED":{const i=e.data.contentType.uid;t.layout=e.data,t.layouts[i]=e.data,t.isLoading=!1;break}case"GET_DATA_ERROR":{t.isLoading=!1,t.error=e.error;break}case"SET_LAYOUT_FROM_STATE":{t.error=null,t.layout=n.layouts[e.uid];break}case"UPDATE_LAYOUT":{const i=n.layout;t.layout={...i,contentType:{uid:i.contentType.uid,...e.newLayout.contentType}},t.layouts[i.contentType.uid]={...i,contentType:{uid:i.contentType.uid,...e.newLayout.contentType}};break}default:return t}}),Z=r(99381),L=r.n(Z),H=r(33795),R=r.n(H),J=r(3040),N=r.n(J),se=r(97724);const X=(n,e)=>e.find(t=>t.uid===n),q=(n,e)=>{const t=w(n,e),i=P(t.contentType,e),c=_(t.contentType,t.components);return N()(t,["contentType","layouts","edit"],i),N()(t,["contentType","layouts","list"],c),Object.keys(t.components).forEach(a=>{const m=P(t.components[a],e);N()(t,["components",a,"layouts","edit"],m)}),t},w=(n,e)=>{const t=(0,se.w8)(L()(n),e,"contentType"),{components:i,contentType:c}=t,a=m=>Object.keys(m.metadatas).reduce((g,E)=>{const D=R()(m,["attributes",E],{});let F=m.metadatas[E];if(D.type==="relation"){const me=X(D.targetModel,e),j=F.edit.mainField,Q={name:j,schema:R()(me,["attributes",j])};F={list:{...F.list,mainField:Q},edit:{...F.edit,mainField:Q}}}return g[E]=F,g},{});return N()(t,["contentType","metadatas"],a(c)),Object.keys(i).forEach(m=>{const g=i[m],E=a(g);N()(t,["components",m,"metadatas"],E)}),t},P=(n,e)=>n.layouts.edit.reduce((t,i)=>{const c=i.map(a=>{const m=R()(n,["attributes",a.name],{}),g={...a,fieldSchema:m,metadatas:R()(n,["metadatas",a.name,"edit"],{})};if(m.type==="relation"){const D=X(m.targetModel,e).pluginOptions||{};N()(g,"targetModelPluginOptions",D),N()(g,"queryInfos",{shouldDisplayRelationLink:Y(n,a.name,e)})}return g});return t.push(c),t},[]),_=(n,e)=>n.layouts.list.reduce((i,c)=>{const a=R()(n,["attributes",c],{}),m=R()(n,["metadatas",c,"list"],{}),g=a.type;if(g==="relation")return i.push({key:`__${c}_key__`,name:c,fieldSchema:a,metadatas:m}),i;if(g==="component"){const E=e[a.component],D=E.settings.mainField,F=E.attributes[D];return i.push({key:`__${c}_key__`,name:c,fieldSchema:a,metadatas:{...m,mainField:{...F,name:D}}}),i}return i.push({key:`__${c}_key__`,name:c,fieldSchema:a,metadatas:m}),i},[]),Y=(n,e,t)=>{const i=R()(n,["attributes",e,"targetModel"],"");return U(t).includes(i)},U=n=>n.filter(e=>e.isDisplayed).map(({uid:e})=>e);var $=q,oe=n=>{const[{error:e,isLoading:t,layout:i,layouts:c},a]=(0,f.useReducer)(K,b),m=(0,f.useMemo)(O.Vo,[]),{schemas:g}=(0,T.v9)(j=>m(j),T.wU),E=(0,f.useRef)(!0),{get:D}=(0,C.kY)(),F=(0,f.useCallback)(async(j,Q)=>{if(c[j]){a({type:"SET_LAYOUT_FROM_STATE",uid:j});return}a({type:"GET_DATA"});try{const{data:{data:re}}=await D(`/content-manager/content-types/${j}/configuration`,{cancelToken:Q.token});a({type:"GET_DATA_SUCCEEDED",data:$(re,g)})}catch(re){if(M.default.isCancel(re))return;E.current&&console.error(re),E.current&&a({type:"GET_DATA_ERROR",error:re})}},[c,g,D]);(0,f.useEffect)(()=>()=>{E.current=!1},[]),(0,f.useEffect)(()=>{const Q=M.default.CancelToken.source();return F(n,Q),()=>{Q.cancel("Operation canceled by the user.")}},[n,F]);const me=(0,f.useCallback)(j=>{a({type:"UPDATE_LAYOUT",newLayout:$(j,g)})},[g]);return{error:e,isLoading:t,layout:i,updateLayout:me}},ae=n=>n["content-manager_app"].collectionTypeLinks,ie=r(85973),ye=r.n(ie),z=r(33348);const y=(n,e)=>Object.keys(n).reduce((t,i)=>{const c=n[i],a=R()(e,[i],c);return ye()(c)?{...t,[i]:y(c,a)}:(t[i]=a,t)},{});var ue=(n,e,t)=>{const i=n.find(({to:F})=>F.includes(e));if(!i)return"/";const{to:c,search:a}=i,m=(0,z.parse)(a),g=(0,z.parse)(t.substring(1)),E=y(m,g);return`${c}?${(0,z.stringify)(E,{encode:!1})}`},ce=n=>{const[{rawQuery:e}]=(0,C.Kx)(),t=(0,T.v9)(ae);return ue(t,n,e)},pe=r(15655),V=r(53038),B=()=>{const{search:n}=(0,V.TH)(),e=n?(0,z.parse)(n.substring(1)):{};return e.plugins?(0,z.stringify)({plugins:e.plugins},{encode:!1}):""};const h=n=>{const e=(0,f.useRef)();return(0,f.useEffect)(()=>{e.current=n},[n]),e.current};var G=r(85149);const le=(n,e,t)=>({type:G.m,permissions:n,__meta__:{plugins:e,containerName:t}}),ne=()=>({type:G.Q}),de=n=>n["content-manager_rbacManager"].permissions,fe=n=>n.rbacProvider.collectionTypesRelatedPermissions;var l=(n,e,t="listView")=>{const i=(0,T.v9)(fe),c=(0,T.v9)(de),a=(0,T.I0)(),m=i[e];return(0,f.useEffect)(()=>m?(a(le(m,n?n.plugins:null,t)),()=>{a(ne())}):()=>{},[m,a,n,t]),c},u=r(75430);const o=()=>useContext(WysiwygContext);var d=null},77622:function(W,v,r){r.d(v,{Y:function(){return S}});var f=r(32735),T=r(74506),A=r.n(T),I=r(15655);const S=(k,{type:C="STRAPI_DND",index:M,item:O={},onStart:p,onEnd:b,onGrabItem:x,onDropItem:K,onCancel:Z,onMoveItem:L,dropSensitivity:H="regular"})=>{const R=(0,f.useRef)(null),[{handlerId:J},N]=(0,T.useDrop)({accept:C,collect(P){return{handlerId:P.getHandlerId()}},hover(P,_){if(!R.current)return;const Y=P.index,U=M;if(Y!==U){if(H==="regular"){const $=R.current.getBoundingClientRect(),ee=($.bottom-$.top)/2,te=_.getClientOffset().y-$.top;if(Y<U&&te<ee||Y>U&&te>ee)return}L(U,Y),P.index=U}}}),[{isDragging:se},X,q]=(0,T.useDrag)({type:C,item(){p&&p();const{width:P}=R.current?.getBoundingClientRect()??{};return{index:M,width:P,...O}},end(){b&&b()},canDrag:k,isDragging:O.id?P=>O.id===P.getItem().id:void 0,collect:P=>({isDragging:P.isDragging()})}),w=(0,I.A)(k,M,{onGrabItem:x,onDropItem:K,onCancel:Z,onMoveItem:L});return[{handlerId:J,isDragging:se,handleKeyDown:w},R,N,X,q]}},15655:function(W,v,r){r.d(v,{A:function(){return T}});var f=r(32735);const T=(A,I,{onCancel:S,onDropItem:k,onGrabItem:C,onMoveItem:M})=>{const[O,p]=(0,f.useState)(!1),b=L=>{O&&(L==="UP"?M(I-1,I):L==="DOWN"&&M(I+1,I))},x=()=>{O?(k&&k(I),p(!1)):(C&&C(I),p(!0))},K=()=>{O&&(p(!1),S&&S(I))};return L=>{if(A&&!(L.key==="Tab"&&!O))switch(L.preventDefault(),L.key){case" ":case"Enter":x();break;case"Escape":K();break;case"ArrowDown":case"ArrowRight":b("DOWN");break;case"ArrowUp":case"ArrowLeft":b("UP");break;default:}}}},20716:function(W,v,r){r.d(v,{Jg:function(){return M},KQ:function(){return k},Vo:function(){return C},Yg:function(){return A}});var f=r(98178),T=r(60371);const A=()=>p=>p["content-manager_app"]||T.E,I=()=>createSelector(A(),p=>p),S=()=>createSelector(A(),p=>p.models),k=()=>(0,f.P1)(A(),p=>({collectionTypeLinks:p.collectionTypeLinks,singleTypeLinks:p.singleTypeLinks})),C=()=>(0,f.P1)(A(),({components:p,models:b})=>({schemas:[...p,...b]})),M=(0,f.P1)(A(),p=>p.fieldSizes);var O=null},53634:function(W,v){const r=f=>f["content-manager_editViewLayoutManager"].currentLayout;v.Z=r},24381:function(W,v){v.Z={COMPONENT:"component",EDIT_FIELD:"editField",FIELD:"field",DYNAMIC_ZONE:"dynamicZone",RELATION:"relation"}},7921:function(W,v){const r=f=>`content-manager.${f}`;v.Z=r},97724:function(W,v,r){r.d(v,{_Q:function(){return te.Z},W3:function(){return I},ko:function(){return M},FE:function(){return p},Di:function(){return Z},Ex:function(){return fe},du:function(){return J},TA:function(){return X},Ts:function(){return _},Uo:function(){return U},IF:function(){return ee},OB:function(){return oe.Z},w8:function(){return z},kc:function(){return ue}});var f=r(99381),T=r.n(f),I=(s,l,u)=>{if(Array.isArray(s)&&l>=0&&u>=0&&l<=s.length-1&&u<=s.length-1){const o=T()(s),d=o.splice(l,1);return o.splice(u,0,d[0]),o}return s},S=r(59578),k=r.n(S),M=s=>{const l=s.type;return l==="relation"?!k()(s.relationType).includes("morph"):!["json","dynamiczone","richtext","password"].includes(l)&&!!l};const O=(s,l)=>{typeof s=="function"?s(l):s!=null&&(s.current=l)},p=(...s)=>l=>s.forEach(u=>O(u,l));var b=r(33795),x=r.n(b);const K=(s,l)=>Object.keys(s).reduce((u,o)=>{const d=x()(s,[o],{}),{default:n,component:e,type:t,required:i,min:c,repeatable:a}=d;if(n!==void 0&&(u[o]=n),t==="component"){const m=l?.[e]?.attributes??{},g=K(m,l);if(i===!0&&(u[o]=a===!0?[]:g),c&&a===!0&&i){u[o]=[];for(let E=0;E<c;E+=1)u[o].push(g)}}return t==="dynamiczone"&&i===!0&&(u[o]=[]),u},{});var Z=K,L=r(9086),H=r.n(L),J=({layouts:s,metadatas:l,...u})=>{const o=s.list.map(e=>e.name?e.name:e),d=Object.keys(l).reduce((e,t)=>{const i=x()(l,[t],{});let c=i.edit;return c.mainField&&(c={...c,mainField:i.edit.mainField.name}),{...e,[t]:{edit:c,list:H()(i.list,["mainField"])}}},{}),n=s.edit.map(e=>e.map(({name:t,size:i})=>({name:t,size:i})));return{...u,layouts:{edit:n,list:o},metadatas:d}};const N=(s,l)=>s.map(u=>({...u,subject:l}));var X=s=>{const l={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(l).reduce((u,o)=>(u[o]=N(l[o],s),u),{})},q=r(95919),w=r.n(q),_=s=>s.split(".").filter(l=>w()(parseInt(l,10))),U=s=>{if(s.length===0)return-1;const l=Math.max.apply(Math,s.map(u=>u.__temp_key__??0));return Number.isNaN(l)?-1:l},ee=s=>`/content-manager/${s}`,oe=r(7921),te=r(24381),ae=r(3040),ie=r.n(ae),z=(s,l,u)=>{const o=t=>l.find(i=>i.uid===t),d=Object.assign({},s),n=s[u].uid,e=o(n);return ie()(d,[u],{...s[u],...e}),Object.keys(s.components).forEach(t=>{const i=o(t);ie()(d,["components",t],{...s.components[t],...i})}),d},y=r(19565),ue=(s,l,u)=>{const o=(d,n)=>Object.keys(d).reduce((e,t)=>{const i=(0,y.UN)(n,t),c=x()(d,t),a=(0,y.k2)(n,[t,"component"]),m=(0,y.k2)(n,[t,"repeatable"]);return i==="dynamiczone"?(e[t]=c.map(g=>o(g,u[g.__component])),e):i==="component"?(m?e[t]=c&&c.map(g=>o(g,u[a])):e[t]=c&&o(c,u[a]),e):(i!=="password"&&(e[t]=c),e)},{});return o(s,l)},ge=r(51355),ce=r.n(ge),pe=r(86834),V=r.n(pe),he=r(78746),B=r.n(he),h=r(24346),G=r(73347);h.kM(h.nK,"defined",function(){return this.test("defined",y.I0.required,s=>s!==void 0)}),h.kM(h.IX,"notEmptyMin",function(s){return this.test("notEmptyMin",y.I0.min,l=>V()(l)?!0:l.length>=s)}),h.kM(h.Z_,"isInferior",function(s,l){return this.test("isInferior",s,function(u){return!u||Number.isNaN(B()(u))?!0:B()(l)>=B()(u)})}),h.kM(h.Z_,"isSuperior",function(s,l){return this.test("isSuperior",s,function(u){return!u||Number.isNaN(B()(u))?!0:B()(u)>=B()(l)})});const le=s=>x()(s,["attributes"],{}),ne=(s,{components:l},u={isCreatingEntry:!0,isDraft:!0,isFromComponent:!1})=>{const o=le(s);return h.Ry().shape(Object.keys(o).reduce((d,n)=>{const e=o[n];if(e.type!=="relation"&&e.type!=="component"&&e.type!=="dynamiczone"){const t=de(e.type,e,u);d[n]=t}if(e.type==="relation"&&(d[n]=["oneWay","oneToOne","manyToOne","oneToManyMorph","oneToOneMorph"].includes(e.relationType)?h.Ry().nullable():h.IX().nullable()),e.type==="component"){const t=ne(l[e.component],{components:l},{...u,isFromComponent:!0});if(e.repeatable===!0){const{min:c,max:a,required:m}=e;let g=h.Vo(E=>{let D=h.IX().of(t);return c?m?D=D.min(c,y.I0.min):m!==!0&&V()(E)?D=D.nullable():D=D.min(c,y.I0.min):m&&!u.isDraft&&(D=D.min(1,y.I0.required)),a&&(D=D.max(a,y.I0.max)),D});return d[n]=g,d}const i=h.Vo(c=>c!==void 0?e.required===!0&&!u.isDraft?t.defined():t.nullable():e.required===!0?h.Ry().defined():h.Ry().nullable());return d[n]=i,d}if(e.type==="dynamiczone"){let t=h.IX().of(h.Vo(({__component:a})=>ne(l[a],{components:l},{...u,isFromComponent:!0})));const{max:i,min:c}=e;c?e.required?t=t.test("min",y.I0.min,a=>u.isCreatingEntry?a&&a.length>=c:a===void 0?!0:a!==null&&a.length>=c).test("required",y.I0.required,a=>u.isCreatingEntry?a!==null||a!==void 0:a===void 0?!0:a!==null):t=t.notEmptyMin(c):e.required&&!u.isDraft&&(t=t.test("required",y.I0.required,a=>u.isCreatingEntry?a!==null||a!==void 0:a===void 0?!0:a!==null)),i&&(t=t.max(i,y.I0.max)),d[n]=t}return d},{}))},de=(s,l,u)=>{let o=h.nK();return["string","uid","text","richtext","email","password","enumeration"].includes(s)&&(o=h.Z_()),s==="json"&&(o=h.nK(y.I0.json).test("isJSON",y.I0.json,d=>{if(!d||!d.length)return!0;try{return JSON.parse(d),!0}catch{return!1}}).nullable().test("required",y.I0.required,d=>!(l.required&&(!d||!d.length)))),s==="email"&&(o=o.email(y.I0.email)),["number","integer","float","decimal"].includes(s)&&(o=h.Rx().transform(d=>w()(d)?void 0:d).typeError()),s==="biginteger"&&(o=h.Z_().matches(/^-?\d*$/)),["date","datetime"].includes(s)&&(o=h.hT()),Object.keys(l).forEach(d=>{const n=l[d];if(n||!ce()(n)&&Number.isInteger(Math.floor(n))||n===0)switch(d){case"required":{u.isDraft||(s==="password"&&u.isCreatingEntry&&(o=o.required(y.I0.required)),s!=="password"&&(u.isCreatingEntry?o=o.required(y.I0.required):o=o.test("required",y.I0.required,e=>e===void 0&&!u.isFromComponent?!0:(0,G.Z)(s)?e===0?!0:!!e:s==="boolean"?e!=null:s==="date"||s==="datetime"?typeof e=="string"?!V()(e):!V()(e?.toString()):!V()(e))));break}case"max":{s==="biginteger"?o=o.isInferior(y.I0.max,n):o=o.max(n,y.I0.max);break}case"maxLength":o=o.max(n,y.I0.maxLength);break;case"min":{s==="biginteger"?o=o.isSuperior(y.I0.min,n):o=o.min(n,y.I0.min);break}case"minLength":{u.isDraft||(o=o.min(n,y.I0.minLength));break}case"regex":o=o.matches(new RegExp(n),{message:y.I0.regex,excludeEmptyString:!l.required});break;case"lowercase":["text","textarea","email","string"].includes(s)&&(o=o.strict().lowercase());break;case"uppercase":["text","textarea","email","string"].includes(s)&&(o=o.strict().uppercase());break;case"positive":(0,G.Z)(s)&&(o=o.positive());break;case"negative":(0,G.Z)(s)&&(o=o.negative());break;default:o=o.nullable()}}),o};var fe=ne},73347:function(W,v,r){r.d(v,{Z:function(){return f}});function f(T){return["integer","biginteger","decimal","float","number"].includes(T)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[502],{27005:function(Z,I,t){t.d(I,{pl:function(){return v},aY:function(){return B},q5:function(){return g}});var e=t(32735),r=t(19565),f=t(86209),p=t(97889);const O={data:[],isLoading:!0};var T=(i,n)=>(0,p.ZP)(i,s=>{switch(n.type){case"GET_DATA_SUCCEEDED":{s.data=n.data,s.isLoading=!1;break}case"GET_DATA_ERROR":{s.isLoading=!1;break}default:return s}}),v=({ssoEnabled:i})=>{const[n,s]=(0,e.useReducer)(T,O),l=(0,r.lm)(),{get:c}=(0,r.kY)();return(0,e.useEffect)(()=>{(async()=>{try{if(!i){s({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:o}=await c((0,f.IF)("providers"));s({type:"GET_DATA_SUCCEEDED",data:o})}catch(o){console.error(o),s({type:"GET_DATA_ERROR"}),l({type:"warning",message:{id:"notification.error"}})}})()},[c,i,l]),n},M=t(36866),C=t.n(M),h=t(67879),P=t(53038),R=t(20108),S=t(15062),u=t(30305);function U(){const i=(0,S.v9)(u._),{get:n}=(0,r.kY)(),{isLoading:s,allowedActions:{canRead:l,canCreate:c,canUpdate:m,canDelete:o}}=(0,r.ss)(i.settings.users),L=l&&c&&m&&o,{data:a,isError:A,isLoading:W}=(0,R.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:K}}=await n("/admin/license-limit-information");return K},{enabled:!s&&L}),d=a??{},H=e.useCallback(K=>(d?.features??[]).find(x=>x.name===K)?.options??{},[d?.features]);return{license:d,getFeature:H,isError:A,isLoading:W}}var g=U;const E="strapi-notification-seat-limit",D="https://cloud.strapi.io/profile/billing",y="https://strapi.io/billing/request-seats";var B=()=>{const{formatMessage:i}=(0,h.Z)();let{license:n,isError:s,isLoading:l}=g();const c=(0,r.lm)(),{pathname:m}=(0,P.TH)(),{enforcementUserCount:o,permittedSeats:L,licenseLimitStatus:a,isHostedOnStrapiCloud:A}=n;(0,e.useEffect)(()=>{if(s||l)return;const W=!C()(L)&&!window.sessionStorage.getItem(`${E}-${m}`)&&(a==="AT_LIMIT"||a==="OVER_LIMIT");let d;a==="OVER_LIMIT"?d="warning":a==="AT_LIMIT"&&(d="softWarning"),W&&c({type:d,message:i({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:a}),title:i({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:a,enforcementUserCount:o,permittedSeats:L}),link:{url:A?D:y,label:i({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:A})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${E}-${m}`,!0)}})},[c,n,m,i,l,L,a,o,A,s])}},50502:function(Z,I,t){t.r(I),t.d(I,{AdminSeatInfoEE:function(){return S}});var e=t(32735),r=t(5803),f=t(49372),p=t(87933),O=t(63919),N=t(99140),T=t(41502),_=t(19565),v=t(69932),M=t(47361),C=t(67879),h=t(27005);const P="https://cloud.strapi.io/profile/billing",R="https://strapi.io/billing/request-seats",S=()=>{const{formatMessage:u}=(0,C.Z)(),{license:{licenseLimitStatus:U,enforcementUserCount:g,permittedSeats:E,isHostedOnStrapiCloud:D},isError:y,isLoading:G}=(0,h.q5)();return y||G||!E?null:e.createElement(r.P,{col:6,s:12},e.createElement(f.Z,{variant:"sigma",textColor:"neutral600"},u({id:"Settings.application.admin-seats",defaultMessage:"Admin seats"})),e.createElement(p.k,{gap:2},e.createElement(p.k,null,e.createElement(f.Z,{as:"p"},u({id:"Settings.application.ee.admin-seats.count",defaultMessage:"<text>{enforcementUserCount}</text>/{permittedSeats}"},{permittedSeats:E,enforcementUserCount:g,text:B=>e.createElement(f.Z,{fontWeight:"semiBold",textColor:g>E?"danger500":null},B)}))),U==="OVER_LIMIT"&&e.createElement(O.u,{description:u({id:"Settings.application.ee.admin-seats.at-limit-tooltip",defaultMessage:"At limit: add seats to invite more users"})},e.createElement(N.J,{width:`${(0,_.Q1)(14)}rem`,height:`${(0,_.Q1)(14)}rem`,color:"danger500",as:v.Z}))),e.createElement(T.r,{href:D?P:R,isExternal:!0,endIcon:e.createElement(M.Z,null)},u({id:"Settings.application.ee.admin-seats.add-seats",defaultMessage:"{isHostedOnStrapiCloud, select, true {Add seats} other {Contact sales}}"},{isHostedOnStrapiCloud:D})))}}}]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5542],{88058:function(o,u,n){var t=n(87650);function r(e,s){var i=e==null?0:e.length;return!!i&&t(e,s,0)>-1}o.exports=r},37431:function(o){function u(n,t,r){for(var e=-1,s=n==null?0:n.length;++e<s;)if(r(t,n[e]))return!0;return!1}o.exports=u},91096:function(o,u,n){var t=n(61124),r=n(88058),e=n(37431),s=n(26460),i=n(76535),d=n(30555),a=200;function x(g,
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5542],{88058:function(o,u,n){var t=n(87650);function r(e,s){var i=e==null?0:e.length;return!!i&&t(e,s,0)>-1}o.exports=r},37431:function(o){function u(n,t,r){for(var e=-1,s=n==null?0:n.length;++e<s;)if(r(t,n[e]))return!0;return!1}o.exports=u},91096:function(o,u,n){var t=n(61124),r=n(88058),e=n(37431),s=n(26460),i=n(76535),d=n(30555),a=200;function x(g,v,E,m){var c=-1,l=r,p=!0,h=g.length,f=[],M=v.length;if(!h)return f;E&&(v=s(v,i(E))),m?(l=e,p=!1):v.length>=a&&(l=d,p=!1,v=new t(v));n:for(;++c<h;){var j=g[c],P=E==null?j:E(j);if(j=m||j!==0?j:0,p&&P===P){for(var _=M;_--;)if(v[_]===P)continue n;f.push(j)}else l(v,P,m)||f.push(j)}return f}o.exports=x},56671:function(o,u,n){var t=n(35897),r=n(74741),e=r(t);o.exports=e},60528:function(o){function u(n,t,r,e){for(var s=n.length,i=r+(e?1:-1);e?i--:++i<s;)if(t(n[i],i,n))return i;return-1}o.exports=u},87650:function(o,u,n){var t=n(60528),r=n(25556),e=n(54256);function s(i,d,a){return d===d?e(i,d,a):t(i,r,a)}o.exports=s},25556:function(o){function u(n){return n!==n}o.exports=u},52920:function(o,u,n){var t=n(56671),r=n(81580);function e(s,i){var d=-1,a=r(s)?Array(s.length):[];return t(s,function(x,g,v){a[++d]=i(x,g,v)}),a}o.exports=e},50690:function(o,u,n){var t=n(26460),r=n(80166),e=n(88904),s=n(52920),i=n(36024),d=n(76535),a=n(1397),x=n(15362),g=n(77236);function v(E,m,c){m.length?m=t(m,function(h){return g(h)?function(f){return r(f,h.length===1?h[0]:h)}:h}):m=[x];var l=-1;m=t(m,d(e));var p=s(E,function(h,f,M){var j=t(m,function(P){return P(h)});return{criteria:j,index:++l,value:h}});return i(p,function(h,f){return a(h,f,c)})}o.exports=v},36024:function(o){function u(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}o.exports=u},40709:function(o,u,n){var t=n(22945);function r(e,s){if(e!==s){var i=e!==void 0,d=e===null,a=e===e,x=t(e),g=s!==void 0,v=s===null,E=s===s,m=t(s);if(!v&&!m&&!x&&e>s||x&&g&&E&&!v&&!m||d&&g&&E||!i&&E||!a)return 1;if(!d&&!x&&!m&&e<s||m&&i&&a&&!d&&!x||v&&i&&a||!g&&a||!E)return-1}return 0}o.exports=r},1397:function(o,u,n){var t=n(40709);function r(e,s,i){for(var d=-1,a=e.criteria,x=s.criteria,g=a.length,v=i.length;++d<g;){var E=t(a[d],x[d]);if(E){if(d>=v)return E;var m=i[d];return E*(m=="desc"?-1:1)}}return e.index-s.index}o.exports=r},74741:function(o,u,n){var t=n(81580);function r(e,s){return function(i,d){if(i==null)return i;if(!t(i))return e(i,d);for(var a=i.length,x=s?a:-1,g=Object(i);(s?x--:++x<a)&&d(g[x],x,g)!==!1;);return i}}o.exports=r},54256:function(o){function u(n,t,r){for(var e=r-1,s=n.length;++e<s;)if(n[e]===t)return e;return-1}o.exports=u},37213:function(o,u,n){var t=n(26460),r=n(88904),e=n(52920),s=n(77236);function i(d,a){var x=s(d)?t:e;return x(d,r(a,3))}o.exports=i},98978:function(o,u,n){var t=n(40314),r=n(50690),e=n(94569),s=n(63108),i=e(function(d,a){if(d==null)return[];var x=a.length;return x>1&&s(d,a[0],a[1])?a=[]:x>2&&s(a[0],a[1],a[2])&&(a=[a[0]]),r(d,t(a,1),[])});o.exports=i},15738:function(o,u,n){var t=n(4293);function r(e){var s=e==null?0:e.length;return s?t(e,1,s):[]}o.exports=r},88708:function(o,u,n){var t=n(4293),r=n(25225);function e(s,i,d){return s&&s.length?(i=d||i===void 0?1:r(i),t(s,0,i<0?0:i)):[]}o.exports=e},86205:function(o,u,n){var t=n(91096),r=n(94569),e=n(99747),s=r(function(i,d){return e(i)?t(i,d):[]});o.exports=s},83828:function(o,u,n){"use strict";n.d(u,{U:function(){return m},y:function(){return v}});var t=n(74512),r=n(32735),e=n(8471),s=n(91045),i=n(74971),d=n(49372),a=n(87933),x=n(72850);const g=({theme:c,expanded:l,variant:p,disabled:h,error:f})=>f?`1px solid ${c.colors.danger600} !important`:h?`1px solid ${c.colors.neutral150}`:l?`1px solid ${c.colors.primary600}`:p==="primary"?`1px solid ${c.colors.neutral0}`:`1px solid ${c.colors.neutral100}`,v=(0,e.ZP)(d.Z)``,E=(0,e.ZP)(x.x)`
|
|
2
2
|
border: ${g};
|
|
3
3
|
|
|
4
4
|
&:hover:not([aria-disabled='true']) {
|
|
5
5
|
border: 1px solid ${({theme:c})=>c.colors.primary600};
|
|
6
6
|
|
|
7
|
-
${
|
|
7
|
+
${v} {
|
|
8
8
|
color: ${({theme:c,expanded:l})=>l?void 0:c.colors.primary700};
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
background: ${({theme:c})=>c.colors.primary200};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`,m=({children:c,disabled:l=!1,error:p,expanded:h=!1,hasErrorMessage:f=!0,id:M,onToggle:j,toggle:P,size:_="M",variant:O="primary",shadow:y})=>{const b=(0,i.M)(M),A=r.useMemo(()=>({expanded:h,onToggle:j,toggle:P,id:b,size:_,variant:O,disabled:l}),[l,h,b,j,_,P,O]);return(0,t.jsxs)(s.S.Provider,{value:A,children:[(0,t.jsx)(E,{"data-strapi-expanded":h,disabled:l,"aria-disabled":l,expanded:h,hasRadius:!0,variant:O,error:p,shadow:y,children:c}),p&&f&&(0,t.jsx)(x.x,{paddingTop:1,children:(0,t.jsx)(d.Z,{variant:"pi",textColor:"danger600",children:p})})]})}},89966:function(o,u,n){"use strict";n.d(u,{v:function(){return s}});var t=n(74512),r=n(91045),e=n(72850);const s=({children:i,...d})=>{const{expanded:a,id:x}=(0,r.A)();if(!a)return null;const g=`accordion-content-${x}`,v=`accordion-label-${x}`,E=`accordion-desc-${x}`;return(0,t.jsx)(e.x,{role:"region",id:g,"aria-labelledby":v,"aria-describedby":E,...d,children:i})}},91045:function(o,u,n){"use strict";n.d(u,{A:function(){return e},S:function(){return r}});var t=n(32735);const r=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(r)},61762:function(o,u,n){"use strict";n.d(u,{B:function(){return c}});var t=n(74512),r=n(16899),e=n(8471),s=n(83828),i=n(91045);const d=({expanded:l,disabled:p,variant:h})=>{let f="neutral100";return l?f="primary100":p?f="neutral150":h==="primary"&&(f="neutral0"),f};var a=n(7563),x=n(99140),g=n(87933),v=n(49372);const E=(0,e.ZP)(a.A)`
|
|
24
24
|
text-align: left;
|
|
25
25
|
|
|
26
26
|
// necessary to make the ellipsis prop work on the title
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
fill: ${({theme:l,expanded:p})=>p?l.colors.primary600:l.colors.neutral500};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,m=(0,e.ZP)(g.k)`
|
|
40
40
|
min-height: ${({theme:l,size:p})=>l.sizes.accordions[p]};
|
|
41
41
|
border-radius: ${({theme:l,expanded:p})=>p?`${l.borderRadius} ${l.borderRadius} 0 0`:l.borderRadius};
|
|
42
42
|
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,c=({title:l,description:p,as:h="span",togglePosition:f="right",action:M,...j})=>{const{onToggle:P,toggle:
|
|
50
|
+
`,c=({title:l,description:p,as:h="span",togglePosition:f="right",action:M,...j})=>{const{onToggle:P,toggle:_,expanded:O,id:y,size:b,variant:A,disabled:B}=(0,i.A)(),w=`accordion-content-${y}`,D=`accordion-label-${y}`,W=`accordion-desc-${y}`,C=b==="M"?6:4,L=b==="M"?C:C-2,U=d({expanded:O,disabled:B,variant:A}),I={as:h,fontWeight:b==="S"?"bold":void 0,id:D,textColor:O?"primary600":"neutral700",ellipsis:!0,variant:b==="M"?"delta":void 0},K=O?"primary600":"neutral600",Z=O?"primary200":"neutral200",T=b==="M"?`${32/16}rem`:`${24/16}rem`,R=()=>{B||(_&&!P?(console.warn('Deprecation warning: Usage of "toggle" prop in Accordion component is deprecated. This is discouraged and will be removed in the next major release. Please use "onToggle" instead'),_()):P&&P())},$=(0,t.jsx)(g.k,{justifyContent:"center",borderRadius:"50%",height:T,width:T,transform:O?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:Z,cursor:B?"not-allowed":"pointer",onClick:R,shrink:0,children:(0,t.jsx)(x.J,{as:r.Z,width:b==="M"?`${11/16}rem`:`${8/16}rem`,color:O?"primary600":"neutral600"})});return(0,t.jsx)(m,{paddingBottom:L,paddingLeft:C,paddingRight:C,paddingTop:L,background:U,expanded:O,size:b,justifyContent:"space-between",cursor:B?"not-allowed":"",children:(0,t.jsxs)(g.k,{gap:3,flex:1,maxWidth:"100%",children:[f==="left"&&$,(0,t.jsx)(E,{onClick:R,"aria-disabled":B,"aria-expanded":O,"aria-controls":w,"aria-labelledby":D,"data-strapi-accordion-toggle":!0,expanded:O,type:"button",flex:1,minWidth:0,...j,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.y,{...I,children:l}),p&&(0,t.jsx)(v.Z,{as:"p",id:W,textColor:K,children:p})]})}),f==="right"&&(0,t.jsxs)(g.k,{gap:3,children:[$,M]}),f==="left"&&M]})})}},99223:function(o,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512),r=n(87933);const e=({startActions:s,endActions:i})=>!s&&!i?null:(0,t.jsxs)(r.k,{justifyContent:"space-between",alignItems:"flex-start",paddingBottom:4,paddingLeft:10,paddingRight:10,children:[(0,t.jsx)(r.k,{gap:2,wrap:"wrap",children:s}),(0,t.jsx)(r.k,{gap:2,shrink:0,wrap:"wrap",children:i})]})},17e3:function(o,u,n){"use strict";n.d(u,{D:function(){return e}});var t=n(74512),r=n(72850);const e=({children:s})=>(0,t.jsx)(r.x,{paddingLeft:10,paddingRight:10,children:s})},82055:function(o,u,n){"use strict";n.d(u,{T:function(){return v}});var t=n(74512),r=n(32735),e=n(8471);const s=c=>{const l=(0,r.useRef)(null),[p,h]=(0,r.useState)(!0),f=([M])=>{h(M.isIntersecting)};return(0,r.useEffect)(()=>{const M=l.current,j=new IntersectionObserver(f,c);return M&&j.observe(l.current),()=>{M&&j.disconnect()}},[l,c]),[l,p]};var i=n(81957);const d=(c,l)=>{const p=(0,i.W)(l);(0,r.useLayoutEffect)(()=>{const h=new ResizeObserver(p);return Array.isArray(c)?c.forEach(f=>{f.current&&h.observe(f.current)}):c.current&&h.observe(c.current),()=>{h.disconnect()}},[c,p])};var a=n(72850),x=n(87933),g=n(49372);const v=c=>{const l=(0,r.useRef)(null),[p,h]=(0,r.useState)(null),[f,M]=s({root:null,rootMargin:"0px",threshold:0});return d(f,()=>{f.current&&h(f.current.getBoundingClientRect())}),(0,r.useEffect)(()=>{l.current&&h(l.current.getBoundingClientRect())},[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:p?.height},ref:f,children:M&&(0,t.jsx)(m,{ref:l,...c})}),!M&&(0,t.jsx)(m,{...c,sticky:!0,width:p?.width})]})};v.displayName="HeaderLayout";const E=(0,e.ZP)(a.x)`
|
|
51
51
|
width: ${({width:c})=>c?`${c/16}rem`:void 0};
|
|
52
52
|
z-index: ${({theme:c})=>c.zIndices[1]};
|
|
53
|
-
`,
|
|
53
|
+
`,m=r.forwardRef(({navigationAction:c,primaryAction:l,secondaryAction:p,subtitle:h,title:f,sticky:M,width:j,...P},_)=>{const O=typeof h=="string";return M?(0,t.jsx)(E,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:j,"data-strapi-header-sticky":!0,children:(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{children:[c&&(0,t.jsx)(a.x,{paddingRight:3,children:c}),(0,t.jsxs)(a.x,{children:[(0,t.jsx)(g.Z,{variant:"beta",as:"h1",...P,children:f}),O?(0,t.jsx)(g.Z,{variant:"pi",textColor:"neutral600",children:h}):h]}),p?(0,t.jsx)(a.x,{paddingLeft:4,children:p}):null]}),(0,t.jsx)(x.k,{children:l?(0,t.jsx)(a.x,{paddingLeft:2,children:l}):void 0})]})}):(0,t.jsxs)(a.x,{ref:_,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:c?6:8,background:"neutral100","data-strapi-header":!0,children:[c?(0,t.jsx)(a.x,{paddingBottom:2,children:c}):null,(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{minWidth:0,children:[(0,t.jsx)(g.Z,{as:"h1",variant:"alpha",...P,children:f}),p?(0,t.jsx)(a.x,{paddingLeft:4,children:p}):null]}),l]}),O?(0,t.jsx)(g.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:h}):h]})})},96709:function(o,u,n){"use strict";n.d(u,{A:function(){return d}});var t=n(74512),r=n(8471),e=n(72850);const s=(0,r.ZP)(e.x)`
|
|
54
54
|
display: grid;
|
|
55
55
|
grid-template-columns: ${({hasSideNav:a})=>a?"auto 1fr":"1fr"};
|
|
56
56
|
`,i=(0,r.ZP)(e.x)`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6158],{76158:function(n,a,e){e.r(a),e.d(a,{REVIEW_WORKFLOW_COLUMNS_EE:function(){return t}});var s=e(7921);const t={key:"__strapi_reviewWorkflows_stage_temp_key__",name:"strapi_reviewWorkflows_stage",fieldSchema:{type:"relation"},metadatas:{label:{id:(0,s.Z)("containers.ListPage.table-headers.reviewWorkflows.stage"),defaultMessage:"Review stage"},searchable:!1,sortable:!0,mainField:{name:"name",schema:{type:"string"}}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7030],{61442:function(d,a,n){n.r(a),n.d(a,{EventTableEE:function(){return s}});var e=n(32735),t=n(36795);const r={"review-workflows":["review-workflows.updateEntryStage"]},l=()=>[{id:"review-workflows.updateEntryStage",defaultMessage:"Stage Change"}];function s(){return e.createElement(t.Z.Root,null,e.createElement(t.Z.Headers,null),e.createElement(t.Z.Body,null),e.createElement(t.Z.Headers,{getHeaders:l}),e.createElement(t.Z.Body,{providedEvents:r}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7464],{27005:function(I,E,t){t.d(E,{pl:function(){return p},aY:function(){return B},q5:function(){return v}});var l=t(32735),o=t(19565),g=t(86209),L=t(97889);const C={data:[],isLoading:!0};var D=(s,i)=>(0,L.ZP)(s,e=>{switch(i.type){case"GET_DATA_SUCCEEDED":{e.data=i.data,e.isLoading=!1;break}case"GET_DATA_ERROR":{e.isLoading=!1;break}default:return e}}),p=({ssoEnabled:s})=>{const[i,e]=(0,l.useReducer)(D,C),r=(0,o.lm)(),{get:c}=(0,o.kY)();return(0,l.useEffect)(()=>{(async()=>{try{if(!s){e({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:a}=await c((0,g.IF)("providers"));e({type:"GET_DATA_SUCCEEDED",data:a})}catch(a){console.error(a),e({type:"GET_DATA_ERROR"}),r({type:"warning",message:{id:"notification.error"}})}})()},[c,s,r]),i},R=t(36866),P=t.n(R),O=t(67879),S=t(53038),y=t(20108),M=t(15062),U=t(30305);function N(){const s=(0,M.v9)(U._),{get:i}=(0,o.kY)(),{isLoading:e,allowedActions:{canRead:r,canCreate:c,canUpdate:d,canDelete:a}}=(0,o.ss)(s.settings.users),f=r&&c&&d&&a,{data:n,isError:m,isLoading:A}=(0,y.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:T}}=await i("/admin/license-limit-information");return T},{enabled:!e&&f}),u=n??{},Y=l.useCallback(T=>(u?.features??[]).find(F=>F.name===T)?.options??{},[u?.features]);return{license:u,getFeature:Y,isError:m,isLoading:A}}var v=N;const h="strapi-notification-seat-limit",G="https://cloud.strapi.io/profile/billing",H="https://strapi.io/billing/request-seats";var B=()=>{const{formatMessage:s}=(0,O.Z)();let{license:i,isError:e,isLoading:r}=v();const c=(0,o.lm)(),{pathname:d}=(0,S.TH)(),{enforcementUserCount:a,permittedSeats:f,licenseLimitStatus:n,isHostedOnStrapiCloud:m}=i;(0,l.useEffect)(()=>{if(e||r)return;const A=!P()(f)&&!window.sessionStorage.getItem(`${h}-${d}`)&&(n==="AT_LIMIT"||n==="OVER_LIMIT");let u;n==="OVER_LIMIT"?u="warning":n==="AT_LIMIT"&&(u="softWarning"),A&&c({type:u,message:s({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:n}),title:s({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:n,enforcementUserCount:a,permittedSeats:f}),link:{url:m?G:H,label:s({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:m})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${h}-${d}`,!0)}})},[c,i,d,s,r,f,n,a,m,e])}},37363:function(I,E,t){t.r(E),t.d(E,{HomePageEE:function(){return L}});var l=t(32735),o=t(83555),g=t(27005);function L(){return(0,g.aY)(),l.createElement(o.HomePageCE,null)}}}]);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8276],{27005:function($,O,e){e.d(O,{pl:function(){return R},aY:function(){return f},q5:function(){return S}});var t=e(32735),c=e(19565),T=e(86209),E=e(97889);const d={data:[],isLoading:!0};var C=(a,o)=>(0,E.ZP)(a,s=>{switch(o.type){case"GET_DATA_SUCCEEDED":{s.data=o.data,s.isLoading=!1;break}case"GET_DATA_ERROR":{s.isLoading=!1;break}default:return s}}),R=({ssoEnabled:a})=>{const[o,s]=(0,t.useReducer)(C,d),L=(0,c.lm)(),{get:P}=(0,c.kY)();return(0,t.useEffect)(()=>{(async()=>{try{if(!a){s({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:g}=await P((0,T.IF)("providers"));s({type:"GET_DATA_SUCCEEDED",data:g})}catch(g){console.error(g),s({type:"GET_DATA_ERROR"}),L({type:"warning",message:{id:"notification.error"}})}})()},[P,a,L]),o},M=e(36866),h=e.n(M),y=e(67879),I=e(53038),l=e(20108),v=e(15062),n=e(30305);function p(){const a=(0,v.v9)(n._),{get:o}=(0,c.kY)(),{isLoading:s,allowedActions:{canRead:L,canCreate:P,canUpdate:D,canDelete:g}}=(0,c.ss)(a.settings.users),U=L&&P&&D&&g,{data:m,isError:B,isLoading:N}=(0,l.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:W}}=await o("/admin/license-limit-information");return W},{enabled:!s&&U}),A=m??{},F=t.useCallback(W=>(A?.features??[]).find(G=>G.name===W)?.options??{},[A?.features]);return{license:A,getFeature:F,isError:B,isLoading:N}}var S=p;const i="strapi-notification-seat-limit",x="https://cloud.strapi.io/profile/billing",Z="https://strapi.io/billing/request-seats";var f=()=>{const{formatMessage:a}=(0,y.Z)();let{license:o,isError:s,isLoading:L}=S();const P=(0,c.lm)(),{pathname:D}=(0,I.TH)(),{enforcementUserCount:g,permittedSeats:U,licenseLimitStatus:m,isHostedOnStrapiCloud:B}=o;(0,t.useEffect)(()=>{if(s||L)return;const N=!h()(U)&&!window.sessionStorage.getItem(`${i}-${D}`)&&(m==="AT_LIMIT"||m==="OVER_LIMIT");let A;m==="OVER_LIMIT"?A="warning":m==="AT_LIMIT"&&(A="softWarning"),N&&P({type:A,message:a({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:m}),title:a({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:m,enforcementUserCount:g,permittedSeats:U}),link:{url:B?x:Z,label:a({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:B})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${i}-${D}`,!0)}})},[P,o,D,a,L,U,m,g,B,s])}},68726:function($,O,e){var t=e(32735),c=e(87933),T=e(63919),E=e(49372),d=e(15335),u=e(5803),C=e(60216),r=e.n(C),R=e(67879),M=e(14911),h=e(8471);const y=h.ZP.a`
|
|
2
|
+
width: ${136/16}rem;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
height: ${48/16}rem;
|
|
7
|
+
border: 1px solid ${({theme:n})=>n.colors.neutral150};
|
|
8
|
+
border-radius: ${({theme:n})=>n.borderRadius};
|
|
9
|
+
text-decoration: inherit;
|
|
10
|
+
&:link {
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
}
|
|
13
|
+
color: ${({theme:n})=>n.colors.neutral600};
|
|
14
|
+
`,I=(0,h.ZP)(c.k)`
|
|
15
|
+
& a:not(:first-child):not(:last-child) {
|
|
16
|
+
margin: 0 ${({theme:n})=>n.spaces[2]};
|
|
17
|
+
}
|
|
18
|
+
& a:first-child {
|
|
19
|
+
margin-right: ${({theme:n})=>n.spaces[2]};
|
|
20
|
+
}
|
|
21
|
+
& a:last-child {
|
|
22
|
+
margin-left: ${({theme:n})=>n.spaces[2]};
|
|
23
|
+
}
|
|
24
|
+
`,l=({provider:n})=>t.createElement(T.u,{label:n.displayName},t.createElement(y,{href:`${window.strapi.backendURL}/admin/connect/${n.uid}`},n.icon?t.createElement("img",{src:n.icon,"aria-hidden":!0,alt:"",height:"32px"}):t.createElement(E.Z,null,n.displayName)));l.propTypes={provider:r().shape({icon:r().string,displayName:r().string.isRequired,uid:r().string.isRequired}).isRequired};const v=({providers:n,displayAllProviders:p})=>{const{formatMessage:S}=(0,R.Z)();return p?t.createElement(d.r,{gap:4},n.map(i=>t.createElement(u.P,{key:i.uid,col:4},t.createElement(l,{provider:i})))):n.length>2&&!p?t.createElement(d.r,{gap:4},n.slice(0,2).map(i=>t.createElement(u.P,{key:i.uid,col:4},t.createElement(l,{provider:i}))),t.createElement(u.P,{col:4},t.createElement(T.u,{label:S({id:"global.see-more"})},t.createElement(y,{as:M.rU,to:"/auth/providers"},t.createElement("span",{"aria-hidden":!0},"\u2022\u2022\u2022"))))):t.createElement(I,{justifyContent:"center"},n.map(i=>t.createElement(l,{key:i.uid,provider:i})))};v.defaultProps={displayAllProviders:!0},v.propTypes={providers:r().arrayOf(r().object).isRequired,displayAllProviders:r().bool},O.Z=v},18276:function($,O,e){e.r(O),e.d(O,{FORMS:function(){return x}});var t=e(32735),c=e(9026),T=e(27649),E=e(72850),d=e(49372),u=e(87933),C=e(23866),r=e(41415),R=e(19565),M=e(67879),h=e(53038),y=e(8471),I=e(73678),l=e(11060),v=e(27005),n=e(68726);const p=(0,y.ZP)(c.i)`
|
|
25
|
+
flex: 1;
|
|
26
|
+
`;var i=()=>{const Z=window.strapi.features.isEnabled(window.strapi.features.SSO),{push:K}=(0,h.k6)(),{formatMessage:f}=(0,M.Z)(),{isLoading:a,data:o}=(0,v.pl)({ssoEnabled:Z}),s=()=>{K("/auth/login")};return!Z||!a&&o.length===0?t.createElement(h.l_,{to:"/auth/login"}):t.createElement(l.ZP,null,t.createElement(T.o,null,t.createElement(l.bU,null,t.createElement(l.sg,null,t.createElement(I.Z,null),t.createElement(E.x,{paddingTop:6,paddingBottom:1},t.createElement(d.Z,{as:"h1",variant:"alpha"},f({id:"Auth.form.welcome.title"}))),t.createElement(E.x,{paddingBottom:7},t.createElement(d.Z,{variant:"epsilon",textColor:"neutral600"},f({id:"Auth.login.sso.subtitle"})))),t.createElement(u.k,{direction:"column",alignItems:"stretch",gap:7},a?t.createElement(u.k,{justifyContent:"center"},t.createElement(C.a,null,f({id:"Auth.login.sso.loading"}))):t.createElement(n.Z,{providers:o}),t.createElement(u.k,null,t.createElement(p,null),t.createElement(E.x,{paddingLeft:3,paddingRight:3},t.createElement(d.Z,{variant:"sigma",textColor:"neutral600"},f({id:"or"}))),t.createElement(p,null)),t.createElement(r.z,{fullWidth:!0,size:"L",onClick:s},f({id:"Auth.form.button.login.strapi"})))),t.createElement(u.k,{justifyContent:"center"},t.createElement(E.x,{paddingTop:4},t.createElement(R.rU,{to:"/auth/forgot-password"},t.createElement(d.Z,{variant:"pi"},f({id:"Auth.link.forgot-password"})))))))};const x={providers:{Component:i,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[918],{50918:function(t,e,s){s.r(e),s.d(e,{LINKS_EE:function(){return i}});const i={global:[...window.strapi.features.isEnabled(window.strapi.features.SSO)?[{intlLabel:{id:"Settings.sso.title",defaultMessage:"Single Sign-On"},to:"/settings/single-sign-on",id:"sso"}]:[],...window.strapi.features.isEnabled(window.strapi.features.REVIEW_WORKFLOWS)?[{intlLabel:{id:"Settings.review-workflows.page.title",defaultMessage:"Review Workflows"},to:"/settings/review-workflows",id:"review-workflows"}]:[]],admin:[...window.strapi.features.isEnabled(window.strapi.features.AUDIT_LOGS)?[{intlLabel:{id:"global.auditLogs",defaultMessage:"Audit Logs"},to:"/settings/audit-logs?pageSize=50&page=1&sort=date:DESC",id:"auditLogs"}]:[]]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[978],{90978:function(y,u,t){t.r(u),t.d(u,{InformationBoxEE:function(){return v}});var e=t(32735),a=t(77035),l=t(87933),d=t(49372),r=t(23866),o=t(19565),i=t(67879),s=t(20108),n=t(98865),m=t(32329),O=t(68886);const c="strapi_reviewWorkflows_stage";function v(){const{initialData:g,isCreatingEntry:S,layout:{uid:R},isSingleType:k,onChange:D}=(0,o.Wq)(),{put:I}=(0,o.kY)(),E=g?.[c]??null,P=Object.prototype.hasOwnProperty.call(g,c),{formatMessage:h}=(0,i.Z)(),{formatAPIError:L}=(0,o.So)(),M=(0,o.lm)(),{workflows:N,isLoading:G}=(0,m.n)(),C=N?.[0]??null,{error:W,isLoading:U,mutateAsync:_}=(0,s.useMutation)(async({entityId:f,stageId:w,uid:T})=>{const A=k?"single-types":"collection-types",{data:{data:p}}=await I(`/admin/content-manager/${A}/${T}/${f}/stage`,{data:{id:w}});return D({target:{name:c,value:p[c]}},!0),p},{onSuccess(){M({type:"success",message:{id:"content-manager.reviewWorkflows.stage.notification.saved",defaultMessage:"Review stage updated"}})}}),B=E===null&&!G&&!S&&h({id:"content-manager.reviewWorkflows.stage.select.placeholder",defaultMessage:"Select a stage"}),K=W&&L(W)||B||null,F=async({value:f})=>{try{await _({entityId:g.id,stageId:f,uid:R})}catch{}},{themeColorName:x}=E?.color?(0,O.k)(E?.color):{};return e.createElement(n.d.Root,null,e.createElement(n.d.Title,null),P&&!S&&e.createElement(a.q4,{error:K,name:c,id:c,value:E?.id,onChange:f=>F({value:f}),label:h({id:"content-manager.reviewWorkflows.stage.label",defaultMessage:"Review stage"}),startIcon:e.createElement(l.k,{as:"span",height:2,background:E?.color,borderColor:x==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2,marginRight:"-3px"}),customizeContent:()=>e.createElement(l.k,{as:"span",justifyContent:"space-between",alignItems:"center",width:"100%"},e.createElement(d.Z,{textColor:"neutral800",ellipsis:!0},E?.name),U?e.createElement(r.a,{small:!0,style:{display:"flex"}}):null)},C?C.stages.map(({id:f,color:w,name:T})=>{const{themeColorName:A}=(0,O.k)(w);return e.createElement(a.ag,{startIcon:e.createElement(l.k,{height:2,background:w,borderColor:A==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),value:f,textValue:T},T)}):[]),e.createElement(n.d.Body,null))}},2121:function(y,u,t){t.d(u,{$k:function(){return i},FT:function(){return n},Nj:function(){return o},Ot:function(){return r},QM:function(){return l},lv:function(){return s},sN:function(){return a},uL:function(){return m},x4:function(){return d}});var e=t(12301);const a="settings_review-workflows",l="Settings/Review_Workflows/SET_WORKFLOWS",d="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",r="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",o="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",i="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",s={primary600:"Blue",primary200:"Lilac",alternative600:"Violet",alternative200:"Lavender",success600:"Green",success200:"Pale Green",danger500:"Cherry",danger200:"Pink",warning600:"Orange",warning200:"Yellow",secondary600:"Teal",secondary200:"Baby Blue",neutral400:"Gray",neutral0:"White"},n=e.W.colors.primary600,m={STAGE:"stage"}},32329:function(y,u,t){t.d(u,{n:function(){return l}});var e=t(19565),a=t(20108);function l(d={}){const{id:r="",...o}=d,i={populate:"stages"},{get:s}=(0,e.kY)(),{data:n,isLoading:m,status:O,refetch:c}=(0,a.useQuery)(["review-workflows","workflows",r],async()=>{try{const{data:{data:g}}=await s(`/admin/review-workflows/workflows/${r}`,{params:{...i,...o}});return g}catch{return null}});let v=[];return r&&n?v=[n]:Array.isArray(n)&&(v=n),{workflows:v,isLoading:m,status:O,refetch:c}}},68886:function(y,u,t){t.d(u,{k:function(){return l},s:function(){return d}});var e=t(12301),a=t(2121);function l(r){if(!r)return null;const i=Object.entries(e.W.colors).filter(([,s])=>s.toUpperCase()===r.toUpperCase()).reduce((s,[n])=>(a.lv?.[n]&&(s=n),s),null);return i?{themeColorName:i,name:a.lv[i]}:null}function d(){return Object.entries(a.lv).map(([r,o])=>({hex:e.W.colors[r].toUpperCase(),name:o}))}}}]);
|