@strapi/admin 4.10.6 → 4.10.7
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/hooks/index.js +1 -1
- package/admin/src/hooks/useAdminUsers/__mocks__/index.js +5 -0
- package/admin/src/hooks/useAdminUsers/index.js +1 -0
- package/admin/src/hooks/useAdminUsers/useAdminUsers.js +38 -0
- package/admin/src/hooks/useContentTypes/__mocks__/index.js +6 -0
- package/admin/src/hooks/useContentTypes/index.js +1 -0
- package/admin/src/hooks/useContentTypes/useContentTypes.js +45 -0
- package/admin/src/pages/HomePage/index.js +3 -2
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/InstallPluginButton.js +12 -8
- package/admin/src/pages/SettingsPage/components/Tokens/TokenBox/index.js +28 -26
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +36 -26
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/utils/api.js +1 -8
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +6 -7
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +54 -63
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/MagicLinkWrapper.js +11 -9
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/index.js +2 -2
- package/admin/src/translations/ar.json +684 -1
- package/admin/src/translations/en.json +1 -0
- package/build/{1657.ca8562dd.chunk.js → 1657.3f2b2c11.chunk.js} +1 -9
- package/build/3081.7e9329cb.chunk.js +105 -0
- package/build/462.6f8cbd19.chunk.js +71 -0
- package/build/5542.64b623c9.chunk.js +63 -0
- package/build/5563.79950369.chunk.js +79 -0
- package/build/617.1591eeb0.chunk.js +155 -0
- package/build/6970.6a329e15.chunk.js +1 -0
- package/build/7259.5cc67413.chunk.js +1 -0
- package/build/9036.f7ce35cc.chunk.js +211 -0
- package/build/{Admin-authenticatedApp.0318dfb3.chunk.js → Admin-authenticatedApp.ad8a8a15.chunk.js} +1 -1
- package/build/{Admin_homePage.e15dcf28.chunk.js → Admin_homePage.94dc81b1.chunk.js} +16 -16
- package/build/Admin_marketplace.1b0c3d3b.chunk.js +55 -0
- package/build/Admin_pluginsPage.a28b96d5.chunk.js +6 -0
- package/build/{Admin_profilePage.1687246a.chunk.js → Admin_profilePage.a8fa3a56.chunk.js} +1 -1
- package/build/Admin_settingsPage.ee76d19e.chunk.js +79 -0
- package/build/admin-app.bd209f08.chunk.js +63 -0
- package/build/{admin-edit-roles-page.02c3b136.chunk.js → admin-edit-roles-page.0d12b741.chunk.js} +3 -3
- package/build/admin-edit-users.f9ce7844.chunk.js +10 -0
- package/build/admin-roles-list.af53b372.chunk.js +23 -0
- package/build/admin-users.0fc77b35.chunk.js +26 -0
- package/build/ar-json.f530bc3f.chunk.js +1 -0
- package/build/audit-logs-settings-page.dc07596e.chunk.js +121 -0
- package/build/{content-manager.cd71cb6e.chunk.js → content-manager.70548048.chunk.js} +1 -1
- package/build/content-type-builder-list-view.26aab6f3.chunk.js +215 -0
- package/build/email-settings-page.63f269ff.chunk.js +11 -0
- package/build/{en-json.d965e364.chunk.js → en-json.ba3290b8.chunk.js} +1 -1
- package/build/i18n-settings-page.f84c4782.chunk.js +114 -0
- package/build/index.html +1 -1
- package/build/main.4016f4ad.js +2630 -0
- package/build/review-workflows-settings.56cab253.chunk.js +61 -0
- package/build/{runtime~main.0201a49b.js → runtime~main.d7e177e4.js} +2 -2
- package/build/{sso-settings-page.c9d7c8df.chunk.js → sso-settings-page.265e3d72.chunk.js} +1 -1
- package/build/upload-settings.1d187578.chunk.js +14 -0
- package/build/upload.bc340679.chunk.js +26 -0
- package/build/users-advanced-settings-page.7b4bf63a.chunk.js +9 -0
- package/build/users-email-settings-page.035a026c.chunk.js +24 -0
- package/build/users-providers-settings-page.6873dce9.chunk.js +29 -0
- package/build/{webhook-edit-page.cb2cf1a5.chunk.js → webhook-edit-page.ddd5963d.chunk.js} +13 -13
- package/build/webhook-list-page.0861d3e9.chunk.js +63 -0
- package/ee/admin/content-manager/pages/EditView/InformationBox/InformationBoxEE.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/hooks/useAuditLogsData.js +36 -28
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/getDisplayedFilters.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/ReviewWorkflows.js +3 -3
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/useReviewWorkflows.js +32 -21
- package/ee/server/services/audit-logs.js +5 -1
- package/package.json +16 -17
- package/webpack.alias.js +0 -1
- package/admin/src/hooks/useModels/index.js +0 -58
- package/admin/src/hooks/useModels/reducer.js +0 -45
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/api.js +0 -20
- package/build/3081.c2cdfac8.chunk.js +0 -108
- package/build/3816.60f858cf.chunk.js +0 -211
- package/build/462.a073ff1f.chunk.js +0 -71
- package/build/5542.002522eb.chunk.js +0 -71
- package/build/5563.2c8334ef.chunk.js +0 -79
- package/build/617.87b2fe96.chunk.js +0 -155
- package/build/6970.36d3ffff.chunk.js +0 -1
- package/build/7259.116a9960.chunk.js +0 -1
- package/build/Admin_marketplace.f446ba2b.chunk.js +0 -55
- package/build/Admin_pluginsPage.7df6b5a9.chunk.js +0 -6
- package/build/Admin_settingsPage.f8c46a9a.chunk.js +0 -79
- package/build/admin-app.6d48536c.chunk.js +0 -63
- package/build/admin-edit-users.49363035.chunk.js +0 -10
- package/build/admin-roles-list.a323aa9f.chunk.js +0 -31
- package/build/admin-users.69f4900a.chunk.js +0 -34
- package/build/ar-json.39e54aba.chunk.js +0 -1
- package/build/audit-logs-settings-page.482909d7.chunk.js +0 -129
- package/build/content-type-builder-list-view.1e821eb9.chunk.js +0 -215
- package/build/email-settings-page.dba83275.chunk.js +0 -11
- package/build/i18n-settings-page.55628f74.chunk.js +0 -114
- package/build/main.adab8b96.js +0 -2630
- package/build/review-workflows-settings.26409ce4.chunk.js +0 -61
- package/build/upload-settings.63d99bf5.chunk.js +0 -14
- package/build/upload.c50d8c7a.chunk.js +0 -34
- package/build/users-advanced-settings-page.4f49ca57.chunk.js +0 -9
- package/build/users-email-settings-page.d2429d0a.chunk.js +0 -24
- package/build/users-providers-settings-page.50c5ba27.chunk.js +0 -29
- package/build/webhook-list-page.e2fca9f8.chunk.js +0 -71
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3455],{67249:function(H,j,t){t.r(j),t.d(j,{default:function(){return me}});var e=t(32735),s=t(24989),v=t(83983),O=t(47765),D=t(68625),Z=t(4038),x=t(19406),I=t(27649),A=t(82055),u=t(41415),R=t(99223),g=t(17e3),S=t(56755),F=t(73269),G=t(33827),Q=t(94547),C=t(19786),W=t(49372),J=t(3685),Y=t(35658),k=t(33795),w=t.n(k),$=t(67879),q=t(53038),_=t(67927),ee=()=>"todo empty role",te=t(60216),B=t.n(te),ne=t(87933),le=t(72850),se=t(50563);const N=({id:a,name:o,description:n,usersCount:h,icons:r,rowIndex:m,canUpdate:p})=>{const{formatMessage:T}=(0,$.Z)(),[,i]=r,M=T({id:"Roles.RoleRow.user-count",defaultMessage:"{number, plural, =0 {# user} one {# user} other {# users}}"},{number:h});return e.createElement(Q.Tr,{"aria-rowindex":m,key:a,...p?(0,s.X7)({fn:i.onClick}):{}},e.createElement(C.Td,{maxWidth:(0,s.Q1)(130)},e.createElement(W.Z,{ellipsis:!0,textColor:"neutral800"},o)),e.createElement(C.Td,{maxWidth:(0,s.Q1)(250)},e.createElement(W.Z,{ellipsis:!0,textColor:"neutral800"},n)),e.createElement(C.Td,null,e.createElement(W.Z,{textColor:"neutral800"},M)),e.createElement(C.Td,null,e.createElement(ne.k,{justifyContent:"flex-end",...s.UW},r.map((d,P)=>d?e.createElement(le.x,{key:d.label,paddingLeft:P===0?0:1},e.createElement(se.h,{onClick:d.onClick,label:d.label,noBorder:!0,icon:d.icon})):null))))};N.propTypes={id:B().number.isRequired,name:B().string.isRequired,description:B().string.isRequired,usersCount:B().number.isRequired,icons:B().array.isRequired,rowIndex:B().number.isRequired,canUpdate:B().bool},N.defaultProps={canUpdate:!1};var ae=N,oe=t(97889);const re={roleToDelete:null,showModalConfirmButtonLoading:!1,shouldRefetchData:!1};var ie=(a,o)=>(0,oe.ZP)(a,n=>{switch(o.type){case"ON_REMOVE_ROLES":{n.showModalConfirmButtonLoading=!0;break}case"ON_REMOVE_ROLES_SUCCEEDED":{n.shouldRefetchData=!0,n.roleToDelete=null;break}case"RESET_DATA_TO_DELETE":{n.shouldRefetchData=!1,n.roleToDelete=null,n.showModalConfirmButtonLoading=!1;break}case"SET_ROLE_TO_DELETE":{n.roleToDelete=o.id;break}default:return n}});const de=()=>{(0,s.go)();const{locale:a}=(0,$.Z)(),{isLoading:o,allowedActions:{canCreate:n,canDelete:h,canRead:r,canUpdate:m}}=(0,s.ss)(v.Z.settings.roles),{getData:p,roles:T,isLoading:i}=(0,_.bF)(!1),[{query:M}]=(0,s.Kx)(),d=M?._q||"",{includes:P}=(0,s.L0)(a,{sensitivity:"base"}),y=(0,s.Xe)(a,{sensitivity:"base"}),U=(T||[]).filter(f=>P(f.name,d)||P(f.description,d)).sort((f,L)=>y.compare(f.name,L.name)||y.compare(f.description,L.description));return(0,e.useEffect)(()=>{!o&&r&&p()},[o,r,p]),{isLoadingForPermissions:o,canCreate:n,canDelete:h,canRead:r,canUpdate:m,isLoading:i,getData:p,sortedRoles:U,roles:T}},ce=({getData:a,canCreate:o,canDelete:n,canUpdate:h})=>{const{formatMessage:r}=(0,$.Z)(),m=(0,s.lm)(),[p,T]=(0,e.useState)(!1),{push:i}=(0,q.k6)(),[{selectedRoles:M,showModalConfirmButtonLoading:d,roleToDelete:P},y]=(0,e.useReducer)(ie,re),{post:U}=(0,s.tg)(),f=async()=>{try{y({type:"ON_REMOVE_ROLES"}),await U("/admin/roles/batch-delete",{ids:[P]}),await a(),y({type:"RESET_DATA_TO_DELETE"})}catch(l){const c=w()(l,["response","payload","data","ids"],null);if(c&&Array.isArray(c)){const ge=c.join(`
|
|
2
|
-
`);m({type:"warning",message:ge})}else m({type:"warning",message:{id:"notification.error"}})}E()},L=(0,e.useCallback)(l=>{i(`/settings/roles/duplicate/${l}`)},[i]),V=()=>i("/settings/roles/new"),K=(0,e.useCallback)(l=>{y({type:"SET_ROLE_TO_DELETE",id:l}),E()},[]),E=()=>T(l=>!l),b=(0,e.useCallback)(l=>{i(`/settings/roles/${l}`)},[i]),z=(0,e.useCallback)((l,c)=>{l.preventDefault(),l.stopPropagation(),c.usersCount?m({type:"info",message:{id:"Roles.ListPage.notification.delete-not-allowed"}}):K(c.id)},[m,K]),X=(0,e.useCallback)((l,c)=>{l.preventDefault(),l.stopPropagation(),L(c.id)},[L]),Ee=(0,e.useCallback)(l=>[...o?[{onClick:c=>X(c,l),label:r({id:"app.utils.duplicate",defaultMessage:"Duplicate"}),icon:e.createElement(O.Z,null)}]:[],...h?[{onClick:()=>b(l.id),label:r({id:"app.utils.edit",defaultMessage:"Edit"}),icon:e.createElement(D.Z,null)}]:[],...n?[{onClick:c=>z(c,l),label:r({id:"global.delete",defaultMessage:"Delete"}),icon:e.createElement(Z.Z,null)}]:[]],[r,z,X,b,o,h,n]);return{handleNewRoleClick:V,getIcons:Ee,selectedRoles:M,isWarningDeleteAllOpened:p,showModalConfirmButtonLoading:d,handleToggleModal:E,handleDeleteData:f}};var ue=()=>{const{formatMessage:a}=(0,$.Z)(),{isLoadingForPermissions:o,canCreate:n,canRead:h,canDelete:r,canUpdate:m,isLoading:p,getData:T,sortedRoles:i}=de(),{handleNewRoleClick:M,getIcons:d,isWarningDeleteAllOpened:P,showModalConfirmButtonLoading:y,handleToggleModal:U,handleDeleteData:f}=ce({getData:T,canCreate:n,canDelete:r,canUpdate:m}),L=i.length+1,V=6;if(o)return e.createElement(I.o,null,e.createElement(s.dO,null));const K=a({id:"global.roles",defaultMessage:"roles"});return e.createElement(I.o,null,e.createElement(s.SL,{name:"Roles"}),e.createElement(A.T,{primaryAction:n?e.createElement(u.z,{onClick:M,startIcon:e.createElement(x.Z,null),size:"S"},a({id:"Settings.roles.list.button.add",defaultMessage:"Add new role"})):null,title:K,subtitle:a({id:"Settings.roles.list.description",defaultMessage:"List of roles"}),as:"h2"}),h&&e.createElement(R.Z,{startActions:e.createElement(s.m,{label:a({id:"app.component.search.label",defaultMessage:"Search for {target}"},{target:K})})}),h&&e.createElement(g.D,null,e.createElement(S.i,{colCount:V,rowCount:L,footer:n?e.createElement(F.c,{onClick:M,icon:e.createElement(x.Z,null)},a({id:"Settings.roles.list.button.add",defaultMessage:"Add new role"})):null},e.createElement(G.h,null,e.createElement(Q.Tr,{"aria-rowindex":1},e.createElement(C.Th,null,e.createElement(W.Z,{variant:"sigma",textColor:"neutral600"},a({id:"global.name",defaultMessage:"Name"}))),e.createElement(C.Th,null,e.createElement(W.Z,{variant:"sigma",textColor:"neutral600"},a({id:"global.description",defaultMessage:"Description"}))),e.createElement(C.Th,null,e.createElement(W.Z,{variant:"sigma",textColor:"neutral600"},a({id:"global.users",defaultMessage:"Users"}))),e.createElement(C.Th,null,e.createElement(J.T,null,a({id:"global.actions",defaultMessage:"Actions"}))))),e.createElement(Y.p,null,i?.map((E,b)=>e.createElement(ae,{key:E.id,id:E.id,name:E.name,description:E.description,usersCount:E.usersCount,icons:d(E),rowIndex:b+2,canUpdate:m})))),!L&&!p&&e.createElement(ee,null)),e.createElement(s.QH,{isOpen:P,onConfirm:f,isConfirmButtonLoading:y,onToggleDialog:U}))},me=()=>e.createElement(s.O4,{permissions:v.Z.settings.roles.main},e.createElement(ue,null))},99223:function(H,j,t){t.d(j,{Z:function(){return A}});var e=t(74512),s=t(32735),v=t(60216),O=t(8471),D=t(87933),Z=t(72850);const x=(0,O.ZP)(D.k)`
|
|
3
|
-
& > * + * {
|
|
4
|
-
margin-left: ${({theme:u})=>u.spaces[2]};
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
margin-left: ${({pullRight:u})=>u?"auto":void 0};
|
|
8
|
-
`,I=(0,O.ZP)(x)`
|
|
9
|
-
flex-shrink: 0;
|
|
10
|
-
`,A=({startActions:u,endActions:R})=>u||R?(0,e.jsx)(Z.x,{paddingLeft:10,paddingRight:10,children:(0,e.jsx)(Z.x,{paddingBottom:4,children:(0,e.jsxs)(D.k,{justifyContent:"space-between",alignItems:"flex-start",children:[u&&(0,e.jsx)(x,{wrap:"wrap",children:u}),R&&(0,e.jsx)(I,{pullRight:!0,children:R})]})})}):null;A.defaultProps={endActions:void 0,startActions:void 0},A.propTypes={endActions:v.node,startActions:v.node}},73269:function(H,j,t){t.d(j,{c:function(){return R}});var e=t(74512),s=t(32735),v=t(60216),O=t(8471),D=t(72850),Z=t(9026),x=t(87933),I=t(49372);const A=(0,O.ZP)(D.x)`
|
|
11
|
-
height: ${24/16}rem;
|
|
12
|
-
width: ${24/16}rem;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
|
|
18
|
-
svg {
|
|
19
|
-
height: ${10/16}rem;
|
|
20
|
-
width: ${10/16}rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
svg path {
|
|
24
|
-
fill: ${({theme:g})=>g.colors.primary600};
|
|
25
|
-
}
|
|
26
|
-
`,u=(0,O.ZP)(D.x)`
|
|
27
|
-
border-radius: 0 0 ${({theme:g})=>g.borderRadius} ${({theme:g})=>g.borderRadius};
|
|
28
|
-
display: block;
|
|
29
|
-
width: 100%;
|
|
30
|
-
border: none;
|
|
31
|
-
`,R=({children:g,icon:S,...F})=>(0,e.jsxs)("div",{children:[(0,e.jsx)(Z.i,{}),(0,e.jsx)(u,{as:"button",background:"primary100",padding:5,...F,children:(0,e.jsxs)(x.k,{children:[(0,e.jsx)(A,{"aria-hidden":!0,background:"primary200",children:S}),(0,e.jsx)(D.x,{paddingLeft:3,children:(0,e.jsx)(I.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600",children:g})})]})})]});R.propTypes={children:v.string.isRequired,icon:v.node.isRequired}}}]);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5199],{83119:function(f,n){const e=()=>null;n.Z=e},83196:function(f,n,e){var t=e(32735),a=e(60216),s=e.n(a),m=e(67879),c=e(72850),u=e(41415),r=e(5644),E=e(24989);const i=({displayedFilters:l})=>{const[o,O]=(0,t.useState)(!1),{formatMessage:d}=(0,m.Z)(),C=(0,t.useRef)(),y=()=>{O(_=>!_)};return t.createElement(t.Fragment,null,t.createElement(c.x,{paddingTop:1,paddingBottom:1},t.createElement(u.z,{variant:"tertiary",ref:C,startIcon:t.createElement(r.Z,null),onClick:y,size:"S"},d({id:"app.utils.filters",defaultMessage:"Filters"})),o&&t.createElement(E.J5,{displayedFilters:l,isVisible:o,onToggle:y,source:C})),t.createElement(E.W$,{filtersSchema:l}))};i.propTypes={displayedFilters:s().arrayOf(s().shape({name:s().string.isRequired,metadatas:s().shape({label:s().string}),fieldSchema:s().shape({type:s().string})})).isRequired},n.Z=i},9814:function(f,n,e){var t=e(32735),a=e(67879),s=e(60216),m=e.n(s),c=e(41415),u=e(7961);const r=({onClick:E})=>{const{formatMessage:i}=(0,a.Z)();return t.createElement(c.z,{onClick:E,startIcon:t.createElement(u.Z,null),size:"S"},i({id:"Settings.permissions.users.create",defaultMessage:"Invite new user"}))};r.propTypes={onClick:m().func.isRequired},n.Z=r},60509:function(f,n){const e={firstname:"",lastname:"",email:"",roles:[]};n.Z=e},61358:function(f,n){const e=[];n.Z=e},76949:function(f,n,e){e.r(n),e.d(n,{default:function(){return We}});var t=e(32735),a=e(24989),s=e(83983),m=e(94638),c=e(27649),u=e(82055),r=e(99223),E=e(17e3),i=e(53038),l=e(67879),o=e(20108),O=e(60216),d=e.n(O),C=e(35658),y=e(94547),_=e(19786),B=e(82884),U=e(49372),A=e(87933),q=e(50563),x=e(72850),b=e(68625),te=e(4038),J=e(8997);const X=({canDelete:p,headers:D,entriesToDelete:v,onClickDelete:W,onSelectRow:$,withMainAction:L,withBulkActions:S,rows:N})=>{const{push:R,location:{pathname:F}}=(0,i.k6)(),{formatMessage:h}=(0,l.Z)();return t.createElement(C.p,null,N.map(g=>{const z=v.findIndex(T=>T===g.id)!==-1;return t.createElement(y.Tr,{key:g.id,...(0,a.X7)({fn:()=>R(`${F}/${g.id}`),condition:S})},L&&t.createElement(_.Td,{...a.UW},t.createElement(B.C,{"aria-label":h({id:"app.component.table.select.one-entry",defaultMessage:"Select {target}"},{target:(0,J.Pp)(g.firstname,g.lastname)}),checked:z,onChange:()=>{$({name:g.id,value:!z})}})),D.map(({key:T,cellFormatter:H,name:Z,...j})=>t.createElement(_.Td,{key:T},typeof H=="function"?H(g,{key:T,name:Z,formatMessage:h,...j}):t.createElement(U.Z,{textColor:"neutral800"},g[Z]||"-"))),S&&t.createElement(_.Td,null,t.createElement(A.k,{justifyContent:"end"},t.createElement(q.h,{onClick:()=>R(`${F}/${g.id}`),label:h({id:"app.component.table.edit",defaultMessage:"Edit {target}"},{target:(0,J.Pp)(g.firstname,g.lastname)}),noBorder:!0,icon:t.createElement(b.Z,null)}),p&&t.createElement(x.x,{paddingLeft:1,...a.UW},t.createElement(q.h,{onClick:()=>W(g.id),label:h({id:"global.delete-target",defaultMessage:"Delete {target}"},{target:(0,J.Pp)(g.firstname,g.lastname)}),noBorder:!0,icon:t.createElement(te.Z,null)})))))}))};X.defaultProps={canDelete:!1,entriesToDelete:[],onClickDelete(){},onSelectRow(){},rows:[],withBulkActions:!1,withMainAction:!1},X.propTypes={canDelete:d().bool,entriesToDelete:d().array,headers:d().array.isRequired,onClickDelete:d().func,onSelectRow:d().func,rows:d().array,withBulkActions:d().bool,withMainAction:d().bool};var ae=X,se=e(83196),P=e(20011),ne=e(41415),ue=e(85025),Ee=e(55225),de=e(11299),ge=e(31600),ce=e(15335),oe=e(5803),pe=e(11406),Me=e(92802),fe=e(4397),_e=[[{intlLabel:{id:"Auth.form.firstname.label",defaultMessage:"First name"},name:"firstname",placeholder:{id:"Auth.form.firstname.placeholder",defaultMessage:"e.g. Kai"},type:"text",size:{col:6,xs:12},required:!0},{intlLabel:{id:"Auth.form.lastname.label",defaultMessage:"Last name"},name:"lastname",placeholder:{id:"Auth.form.lastname.placeholder",defaultMessage:"e.g. Doe"},type:"text",size:{col:6,xs:12}}],[{intlLabel:{id:"Auth.form.email.label",defaultMessage:"Email"},name:"email",placeholder:{id:"Auth.form.email.placeholder",defaultMessage:"e.g. kai.doe@strapi.io"},type:"email",size:{col:6,xs:12},required:!0}]],Y=e(24346),Pe=Y.Ry().shape({firstname:Y.Z_().trim().required(a.I0.required),lastname:Y.Z_(),email:Y.Z_().email(a.I0.email).required(a.I0.required),roles:Y.IX().min(1,a.I0.required).required(a.I0.required)}),De={create:{buttonSubmitLabel:{id:"app.containers.Users.ModalForm.footer.button-success",defaultMessage:"Invite user"},isDisabled:!1,next:"magic-link"},"magic-link":{buttonSubmitLabel:{id:"global.finish",defaultMessage:"Finish"},isDisabled:!0,next:null}};const ve=(()=>window&&window.strapi&&window.strapi.isEE?e(64746).Z:e(60509).Z)(),he=(()=>window&&window.strapi&&window.strapi.isEE?e(43116).Z:e(61358).Z)(),Oe=(()=>window&&window.strapi&&window.strapi.isEE?e(28890).Z:e(16325).Z)(),me=p=>{let{queryName:D,onToggle:v}=p;const[W,$]=(0,t.useState)("create"),[L,S]=(0,t.useState)(!1),[N,R]=(0,t.useState)(null),F=(0,o.useQueryClient)(),{formatMessage:h}=(0,l.Z)(),g=(0,a.lm)(),{lockApp:z,unlockApp:T}=(0,a.o1)(),{post:H}=(0,a.kY)(),Z=(0,o.useMutation)(K=>H("/admin/users",K),{async onSuccess(K){let{data:V}=K;R(V.data.registrationToken),await F.refetchQueries(D),await F.refetchQueries(["ee","license-limit-info"]),ee(),S(!1)},onError(K){throw S(!1),g({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}}),K},onSettled(){T()}}),j=h({id:"Settings.permissions.users.create",defaultMessage:"Invite new user"}),le=async(K,V)=>{let{setErrors:k}=V;z(),S(!0);try{await Z.mutateAsync(K)}catch(G){T(),G?.response?.data?.error.message==="Email already taken"&&k({email:G.response.data.error.message})}},ee=()=>{M?$(M):v()},{buttonSubmitLabel:w,isDisabled:Q,next:M}=De[W],Se=W==="create"?t.createElement(ne.z,{type:"submit",loading:L},h(w)):t.createElement(ne.z,{type:"button",loading:L,onClick:v},h(w));return t.createElement(ue.P,{onClose:v,labelledBy:"title"},t.createElement(Ee.x,null,t.createElement(de.O,{label:j},t.createElement(de.$,null,j))),t.createElement(Me.J9,{initialValues:ve,onSubmit:le,validationSchema:Pe,validateOnChange:!1},K=>{let{errors:V,handleChange:k,values:G}=K;return t.createElement(a.l0,null,t.createElement(ge.f,null,t.createElement(A.k,{direction:"column",alignItems:"stretch",gap:6},W!=="create"&&t.createElement(Oe,{registrationToken:N}),t.createElement(x.x,null,t.createElement(U.Z,{variant:"beta",as:"h2"},h({id:"app.components.Users.ModalCreateBody.block-title.details",defaultMessage:"User details"})),t.createElement(x.x,{paddingTop:4},t.createElement(A.k,{direction:"column",alignItems:"stretch",gap:1},t.createElement(ce.r,{gap:5},_e.map(ie=>ie.map(I=>t.createElement(oe.P,(0,P.Z)({key:I.name},I.size),t.createElement(a.jm,(0,P.Z)({},I,{disabled:Q,error:V[I.name],onChange:k,value:G[I.name]}))))))))),t.createElement(x.x,null,t.createElement(U.Z,{variant:"beta",as:"h2"},h({id:"global.roles",defaultMessage:"User's role"})),t.createElement(x.x,{paddingTop:4},t.createElement(ce.r,{gap:5},t.createElement(oe.P,{col:6,xs:12},t.createElement(fe.Z,{disabled:Q,error:V.roles,onChange:k,value:G.roles})),he.map(ie=>ie.map(I=>t.createElement(oe.P,(0,P.Z)({key:I.name},I.size),t.createElement(a.jm,(0,P.Z)({},I,{disabled:Q,onChange:k,value:G[I.name]})))))))))),t.createElement(pe.m,{startActions:t.createElement(ne.z,{variant:"tertiary",onClick:v,type:"button"},h({id:"app.components.Button.cancel",defaultMessage:"Cancel"})),endActions:Se}))}))};me.propTypes={onToggle:d().func.isRequired,queryName:d().array.isRequired};var ye=me;const re=({pagination:p})=>t.createElement(x.x,{paddingTop:4},t.createElement(A.k,{alignItems:"flex-end",justifyContent:"space-between"},t.createElement(a.v4,null),t.createElement(a.tU,{pagination:p})));re.defaultProps={pagination:{pageCount:0,pageSize:10,total:0}},re.propTypes={pagination:d().shape({page:d().number,pageCount:d().number,pageSize:d().number,total:d().number})};var Ce=re;const Te=async(p,D)=>{const{get:v}=(0,a.tg)(),{data:{data:W}}=await v(`/admin/users${p}`);return D(),W},Ae=async p=>{const{post:D}=(0,a.tg)();await D("/admin/users/batch-delete",{ids:p})};var Le=[{name:"firstname",metadatas:{label:"Firstname"},fieldSchema:{type:"string"}},{name:"lastname",metadatas:{label:"Lastname"},fieldSchema:{type:"string"}},{name:"email",metadatas:{label:"Email"},fieldSchema:{type:"email"}},{name:"username",metadatas:{label:"Username"},fieldSchema:{type:"string"}},{name:"isActive",metadatas:{label:"Active user"},fieldSchema:{type:"boolean"}}],Re=[{name:"firstname",key:"firstname",metadatas:{label:{id:"Settings.permissions.users.firstname",defaultMessage:"Firstname"},sortable:!0}},{name:"lastname",key:"lastname",metadatas:{label:{id:"Settings.permissions.users.lastname",defaultMessage:"Lastname"},sortable:!0}},{key:"email",name:"email",metadatas:{label:{id:"Settings.permissions.users.email",defaultMessage:"Email"},sortable:!0}},{key:"roles",name:"roles",metadatas:{label:{id:"Settings.permissions.users.roles",defaultMessage:"Roles"},sortable:!1},cellFormatter({roles:p},{formatMessage:D}){return t.createElement(U.Z,{textColor:"neutral800"},p.map(v=>D({id:`Settings.permissions.users.${v.code}`,defaultMessage:v.name})).join(`,
|
|
2
|
-
`))}},{key:"username",name:"username",metadatas:{label:{id:"Settings.permissions.users.username",defaultMessage:"Username"},sortable:!0}},{key:"isActive",name:"isActive",metadatas:{label:{id:"Settings.permissions.users.user-status",defaultMessage:"User status"},sortable:!1},cellFormatter({isActive:p},{formatMessage:D}){return t.createElement(A.k,null,t.createElement(a.qb,{isActive:p,variant:p?"success":"danger"}),t.createElement(U.Z,{textColor:"neutral800"},D({id:p?"Settings.permissions.users.active":"Settings.permissions.users.inactive",defaultMessage:p?"Active":"Inactive"})))}}];const Ie=(()=>window&&window.strapi&&window.strapi.isEE?e(99724).Z:e(9814).Z)(),Be=(()=>window&&window.strapi&&window.strapi.isEE?e(21306).Z:e(83119).Z)();var Ue=()=>{const{formatAPIError:p}=(0,a.So)(),[D,v]=(0,t.useState)(!1),{allowedActions:{canCreate:W,canDelete:$,canRead:L}}=(0,a.ss)(s.Z.settings.users),S=(0,o.useQueryClient)(),N=(0,a.lm)(),{formatMessage:R}=(0,l.Z)(),{search:F}=(0,i.TH)();(0,a.go)(),Be();const{notifyStatus:h}=(0,m.G)(),g=["users",F],z=Re.map(M=>({...M,metadatas:{...M.metadatas,label:R(M.metadatas.label)}})),T=R({id:"global.users",defaultMessage:"Users"}),H=()=>{h(R({id:"app.utils.notify.data-loaded",defaultMessage:"The {target} has loaded"},{target:T}))},{status:Z,data:j,isFetching:le}=(0,o.useQuery)(g,()=>Te(F,H),{enabled:L,retry:!1,onError(M){N({type:"warning",message:{id:"notification.error",message:p(M),defaultMessage:"An error occured"}})}}),ee=()=>{v(M=>!M)},w=(0,o.useMutation)(M=>Ae(M),{async onSuccess(){await S.refetchQueries(g),await S.refetchQueries(["ee","license-limit-info"])},onError(M){N({type:"warning",message:{id:"notification.error",message:p(M),defaultMessage:"An error occured"}})}}),Q=Z!=="success"&&Z!=="error"||Z==="success"&≤return t.createElement(c.o,{"aria-busy":Q},t.createElement(a.SL,{name:"Users"}),t.createElement(u.T,{primaryAction:W&&t.createElement(Ie,{onClick:ee}),title:T,subtitle:R({id:"Settings.permissions.users.listview.header.subtitle",defaultMessage:"All the users who have access to the Strapi admin panel"})}),L&&t.createElement(r.Z,{startActions:t.createElement(t.Fragment,null,t.createElement(a.m,{label:R({id:"app.component.search.label",defaultMessage:"Search for {target}"},{target:T})}),t.createElement(se.Z,{displayedFilters:Le}))}),t.createElement(E.D,{canRead:L},!L&&t.createElement(a.ZF,null),Z==="error"&&t.createElement("div",null,"TODO: An error occurred"),L&&t.createElement(t.Fragment,null,t.createElement(a.tM,{contentType:"Users",isLoading:Q,onConfirmDeleteAll:w.mutateAsync,onConfirmDelete:M=>w.mutateAsync([M]),headers:z,rows:j?.results,withBulkActions:!0,withMainAction:$},t.createElement(ae,{canDelete:$,headers:z,rows:j?.results||[],withBulkActions:!0,withMainAction:$})),t.createElement(Ce,{pagination:j?.pagination}))),D&&t.createElement(ye,{onToggle:ee,queryName:g}))},We=()=>t.createElement(a.O4,{permissions:s.Z.settings.users.main},t.createElement(Ue,null))},76779:function(f,n,e){var t=e(32735),a=e(60216),s=e.n(a),m=e(50563),c=e(24989),u=e(47765),r=e(59087),E=e.n(r),i=e(67879);const l=({children:o,target:O})=>{const d=(0,c.lm)(),{formatMessage:C}=(0,i.Z)(),y=()=>{d({type:"info",message:{id:"notification.link-copied"}})},_=C({id:"app.component.CopyToClipboard.label",defaultMessage:"Copy to clipboard"});return t.createElement(c.Y_,{endAction:t.createElement(r.CopyToClipboard,{onCopy:y,text:O},t.createElement(m.h,{label:_,noBorder:!0,icon:t.createElement(u.Z,null)})),title:O,titleEllipsis:!0,subtitle:o,icon:t.createElement("span",{style:{fontSize:32}},"\u2709\uFE0F"),iconBackground:"neutral100"})};l.propTypes={children:s().oneOfType([s().element,s().string]).isRequired,target:s().string.isRequired},n.Z=l},16325:function(f,n,e){var t=e(32735),a=e(67879),s=e(60216),m=e.n(s),c=e(78246),u=e(76779);const r=({registrationToken:E})=>{const{formatMessage:i}=(0,a.Z)(),l=`${window.location.origin}${c.Z}auth/register?registrationToken=${E}`;return t.createElement(u.Z,{target:l},i({id:"app.components.Users.MagicLink.connect",defaultMessage:"Copy and share this link to give access to this user"}))};r.defaultProps={registrationToken:""},r.propTypes={registrationToken:m().string},n.Z=r},4397:function(f,n,e){var t=e(32735),a=e(60216),s=e.n(a),m=e(67879),c=e(68465),u=e(84967),r=e(20108),E=e(8471),i=e(27169),l=e(24989);const o=E.F4`
|
|
3
|
-
from {
|
|
4
|
-
transform: rotate(0deg);
|
|
5
|
-
}
|
|
6
|
-
to {
|
|
7
|
-
transform: rotate(359deg);
|
|
8
|
-
}
|
|
9
|
-
`,O=E.ZP.div`
|
|
10
|
-
animation: ${o} 2s infinite linear;
|
|
11
|
-
`,d=()=>t.createElement(O,null,t.createElement(i.Z,null)),C=async()=>{const{get:_}=(0,l.tg)(),{data:B}=await _("/admin/roles");return B.data},y=({disabled:_,error:B,onChange:U,value:A})=>{const{status:q,data:x}=(0,r.useQuery)(["roles"],C,{staleTime:5e4}),{formatMessage:b}=(0,m.Z)(),te=B?b({id:B,defaultMessage:B}):"",J=b({id:"app.components.Users.ModalCreateBody.block-title.roles",defaultMessage:"User's roles"}),X=b({id:"app.components.Users.ModalCreateBody.block-title.roles.description",defaultMessage:"A user can have one or several roles"}),ae=b({id:"app.components.Select.placeholder",defaultMessage:"Select"}),se=q==="loading"?t.createElement(d,null):void 0;return t.createElement(c.P,{id:"roles",disabled:_,error:te,hint:X,label:J,name:"roles",onChange:P=>{U({target:{name:"roles",value:P}})},placeholder:ae,multi:!0,startIcon:se,value:A.map(P=>P.toString()),withTags:!0,required:!0},(x||[]).map(P=>t.createElement(u.W,{key:P.id,value:P.id.toString()},b({id:`global.${P.code}`,defaultMessage:P.name}))))};y.defaultProps={disabled:!1,error:void 0},y.propTypes={disabled:s().bool,error:s().string,onChange:s().func.isRequired,value:s().array.isRequired},n.Z=y},99724:function(f,n,e){var t=e(32735),a=e(67879),s=e(60216),m=e.n(s),c=e(87933),u=e(63919),r=e(99140),E=e(41415),i=e(69932),l=e(7961),o=e(36866),O=e.n(o),d=e(58414);const C=({onClick:y})=>{const{formatMessage:_}=(0,a.Z)(),{license:B}=(0,d.q5)(),{permittedSeats:U,shouldStopCreate:A}=B?.data??{};return t.createElement(c.k,{gap:2},!O()(U)&&A&&t.createElement(u.u,{description:_({id:"Settings.application.admin-seats.at-limit-tooltip",defaultMessage:"At limit: add seats to invite more users"}),position:"left"},t.createElement(r.J,{width:`${14/16}rem`,height:`${14/16}rem`,color:"danger500",as:i.Z})),t.createElement(E.z,{"data-testid":"create-user-button",onClick:y,startIcon:t.createElement(l.Z,null),size:"S",disabled:A},_({id:"Settings.permissions.users.create",defaultMessage:"Invite new user"})))};C.propTypes={onClick:m().func.isRequired},n.Z=C},64746:function(f,n,e){var t=e(60509);const a=window.strapi.features.isEnabled(window.strapi.features.SSO)?{useSSORegistration:!0}:{},s={...t.Z,...a};n.Z=s},43116:function(f,n){const e=window.strapi.features.isEnabled(window.strapi.features.SSO)?[[{intlLabel:{id:"Settings.permissions.users.form.sso",defaultMessage:"Connect with SSO"},hint:{id:"Settings.permissions.users.form.sso.description",defaultMessage:"When enabled (ON), users can login via SSO"},name:"useSSORegistration",type:"bool",size:{col:6,xs:12}}]]:[];n.Z=e},28890:function(f,n,e){var t=e(32735),a=e(67879),s=e(60216),m=e.n(s),c=e(78246),u=e(76779);const r=({registrationToken:E})=>{const{formatMessage:i}=(0,a.Z)();return E?t.createElement(u.Z,{target:`${window.location.origin}${c.Z}auth/register?registrationToken=${E}`},i({id:"app.components.Users.MagicLink.connect",defaultMessage:"Copy and share this link to give access to this user"})):t.createElement(u.Z,{target:`${window.location.origin}${c.Z}auth/login`},i({id:"app.components.Users.MagicLink.connect.sso",defaultMessage:"Send this link to the user, the first login can be made via a SSO provider."}))};r.defaultProps={registrationToken:""},r.propTypes={registrationToken:m().string},n.Z=r},11299:function(f,n,e){e.d(n,{$:function(){return i},O:function(){return l}});var t=e(74512),a=e(77277),s=e(8471),m=e(3685),c=e(87933),u=e(72850),r=e(49372);const E=(0,s.ZP)(c.k)`
|
|
12
|
-
svg {
|
|
13
|
-
height: ${10/16}rem;
|
|
14
|
-
width: ${10/16}rem;
|
|
15
|
-
path {
|
|
16
|
-
fill: ${({theme:o})=>o.colors.neutral500};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
:last-of-type ${u.x} {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
:last-of-type ${r.Z} {
|
|
23
|
-
color: ${({theme:o})=>o.colors.neutral800};
|
|
24
|
-
font-weight: ${({theme:o})=>o.fontWeights.bold};
|
|
25
|
-
}
|
|
26
|
-
`,i=({children:o})=>(0,t.jsxs)(E,{inline:!0,as:"li",children:[(0,t.jsx)(r.Z,{variant:"pi",textColor:"neutral600",children:o}),(0,t.jsx)(u.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,t.jsx)(a.Z,{})})]});i.displayName="Crumb";const l=({children:o,label:O,...d})=>(0,t.jsxs)(c.k,{...d,children:[(0,t.jsx)(m.T,{children:O}),(0,t.jsx)("ol",{"aria-hidden":!0,children:o})]});l.displayName="Breadcrumbs"},99223:function(f,n,e){e.d(n,{Z:function(){return i}});var t=e(74512),a=e(32735),s=e(60216),m=e(8471),c=e(87933),u=e(72850);const r=(0,m.ZP)(c.k)`
|
|
27
|
-
& > * + * {
|
|
28
|
-
margin-left: ${({theme:l})=>l.spaces[2]};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
margin-left: ${({pullRight:l})=>l?"auto":void 0};
|
|
32
|
-
`,E=(0,m.ZP)(r)`
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
`,i=({startActions:l,endActions:o})=>l||o?(0,t.jsx)(u.x,{paddingLeft:10,paddingRight:10,children:(0,t.jsx)(u.x,{paddingBottom:4,children:(0,t.jsxs)(c.k,{justifyContent:"space-between",alignItems:"flex-start",children:[l&&(0,t.jsx)(r,{wrap:"wrap",children:l}),o&&(0,t.jsx)(E,{pullRight:!0,children:o})]})})}):null;i.defaultProps={endActions:void 0,startActions:void 0},i.propTypes={endActions:s.node,startActions:s.node}},7961:function(f,n,e){e.d(n,{Z:function(){return s}});var t=e(74512);const a=m=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...m,children:[(0,t.jsx)("path",{fill:"#32324D",d:"M0 2.8A.8.8 0 0 1 .8 2h22.4a.8.8 0 0 1 .8.8v2.71a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2.8Z"}),(0,t.jsx)("path",{fill:"#32324D",d:"M1.922 7.991C.197 6.675 0 6.252 0 5.289h23.953c.305 1.363-1.594 2.506-2.297 3.125-1.953 1.363-6.253 4.36-7.828 5.45-1.575 1.09-3.031.455-3.562 0-2.063-1.41-6.62-4.557-8.344-5.873ZM22.8 18H1.2c-.663 0-1.2.471-1.2 1.053v1.894C0 21.529.537 22 1.2 22h21.6c.663 0 1.2-.471 1.2-1.053v-1.894c0-.582-.537-1.053-1.2-1.053Z"}),(0,t.jsx)("path",{fill:"#32324D",d:"M0 9.555v10.972h24V9.554c-2.633 1.95-8.367 6.113-9.96 7.166-1.595 1.052-3.352.438-4.032 0L0 9.555Z"})]}),s=a}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7958],{38677:function(e){e.exports=JSON.parse('{"Auth.form.button.forgot-password":"\u0625\u0631\u0633\u0627\u0644 \u0644\u0644\u0628\u0631\u064A\u062F","Auth.form.button.login":"\u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644","Auth.form.button.register":"\u0645\u0633\u062A\u0639\u062F \u0644\u0644\u0628\u062F\u0621","Auth.form.email.label":"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0643\u062A\u0631\u0648\u0646\u064A","Auth.form.email.placeholder":"mysuperemail@example.com","Auth.form.error.code.provide":"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0645\u0642\u062F\u0645 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D.","Auth.form.error.email.invalid":"\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0643\u062A\u0631\u0648\u0646\u064A \u063A\u064A\u0631 \u0635\u0627\u0644\u062D.","Auth.form.error.email.provide":"\u064A\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u0623\u0648 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0627\u0644\u062E\u0627\u0635 \u0628\u0643.","Auth.form.error.email.taken":"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0633\u062C\u0644 \u0628\u0627\u0644\u0641\u0639\u0644","Auth.form.error.invalid":"\u0627\u0644\u0645\u0639\u0631\u0651\u0641 \u0623\u0648 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u064A\u0646.","Auth.form.error.params.provide":"\u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0645\u0642\u062F\u0645\u0629 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D\u0629.","Auth.form.error.password.format":"\u0644\u0627 \u064A\u0645\u0643\u0646 \u0623\u0646 \u062A\u062D\u062A\u0648\u064A \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631\u0643 \u0639\u0644\u0649 \u0627\u0644\u0631\u0645\u0632 `$` \u0623\u0643\u062B\u0631 \u0645\u0646 \u062B\u0644\u0627\u062B \u0645\u0631\u0627\u062A.","Auth.form.error.password.local":"\u0644\u0645 \u064A\u0642\u0645 \u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u062A\u0639\u064A\u064A\u0646 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0645\u062D\u0644\u064A\u0629 \u0645\u0637\u0644\u0642\u064B\u0627 \u060C \u0627\u0644\u0631\u062C\u0627\u0621 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0639\u0628\u0631 \u0627\u0644\u0645\u0648\u0641\u0631 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0623\u062B\u0646\u0627\u0621 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062D\u0633\u0627\u0628.","Auth.form.error.password.matching":"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063A\u064A\u0631 \u0645\u0637\u0627\u0628\u0642\u0629.","Auth.form.error.password.provide":"\u064A\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643.","Auth.form.error.user.not-exist":"\u0647\u0630\u0627 \u0627\u0644\u0625\u0645\u064A\u0644 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F.","Auth.form.error.username.taken":"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0645\u0633\u062C\u0644 \u0628\u0627\u0644\u0641\u0639\u0644","Auth.form.forgot-password.email.label":"\u0627\u062F\u062E\u0644 \u0627\u064A\u0645\u064A\u0644\u0643","Auth.form.forgot-password.email.label.success":"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0628\u0646\u062C\u0627\u062D \u0627\u0644\u0649","Auth.form.rememberMe.label":"\u062A\u0630\u0643\u0631\u0646\u064A","Auth.form.username.label":"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645","Auth.form.username.placeholder":"\u0627\u0643\u062A\u0628 \u0627\u0633\u0645\u0643 \u0647\u0646\u0627 (\u0645\u062B\u0644: \u062E\u0627\u0644\u062F \u0633\u0627\u0644\u0645)","Auth.link.forgot-password":"\u0647\u0644 \u0646\u0633\u064A\u062A \u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643\u061F","Auth.link.ready":"\u0645\u0633\u062A\u0639\u062F \u0644\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644\u061F","Content Manager":"\u0645\u062F\u064A\u0631 \u0645\u062D\u062A\u0648\u0649","Email":"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A","Files Upload":"\u0631\u0641\u0639 \u0627\u0644\u0645\u0644\u0641\u0627\u062A","New entry":"\u0625\u062F\u062E\u0627\u0644 \u062C\u062F\u064A\u062F","Password":"\u0643\u0644\u0645\u0629 \u0627\u0644\u0633\u0631","Provider":"\u0645\u0632\u0648\u062F","ResetPasswordToken":"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631","Role":"\u0642\u0627\u0639\u062F\u0629","Username":"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645","Users":"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646","Users & Permissions":"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u0648\u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0627\u062A","app.components.BlockLink.code":"\u0627\u0645\u062B\u0644\u0629 \u0644\u0644\u0634\u0641\u0631\u0629","app.components.Button.cancel":"\u0627\u0644\u063A\u0627\u0621","app.components.ComingSoonPage.comingSoon":"\u0642\u0627\u062F\u0645 \u0642\u0631\u064A\u0628\u064B\u0627","app.components.DownloadInfo.download":"\u0627\u0644\u062A\u0646\u0632\u064A\u0644 \u0642\u064A\u062F \u0627\u0644\u062A\u0642\u062F\u0645...","app.components.DownloadInfo.text":"\u0642\u062F \u064A\u0633\u062A\u063A\u0631\u0642 \u0647\u0630\u0627 \u062F\u0642\u064A\u0642\u0629. \u0634\u0643\u0631\u0627 \u0644\u0635\u0628\u0631\u0643.","app.components.EmptyAttributes.title":"\u0644\u0627 \u064A\u0648\u062C\u062F \u0627\u064A \u062D\u0642\u0648\u0644 \u0628\u0639\u062F","app.components.HomePage.button.blog":"\u0627\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0632\u064A\u062F \u0639\u0644\u0649 \u0627\u0644\u0645\u062F\u0648\u0646\u0629","app.components.HomePage.community":"\u0627\u0644\u0628\u062D\u062B \u0639\u0646 \u0627\u0644\u0645\u062C\u062A\u0645\u0639 \u0641\u064A \u0627\u0644\u0648\u064A\u0628","app.components.HomePage.community.content":"\u0646\u0627\u0642\u0634 \u0645\u0639 \u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0641\u0631\u064A\u0642 \u0648\u0627\u0644\u0645\u0633\u0627\u0647\u0645\u064A\u0646 \u0648\u0627\u0644\u0645\u0637\u0648\u0631\u064A\u0646 \u0639\u0644\u0649 \u0642\u0646\u0648\u0627\u062A \u0645\u062E\u062A\u0644\u0641\u0629.","app.components.HomePage.welcome":"\u0645\u0631\u062D\u0628\u064B\u0627 \u0641\u064A \u0644\u0648\u062D\u062A\u0643!","app.components.HomePage.welcome.again":"\u0645\u0631\u062D\u0628\u064B\u0627 ","app.components.HomePage.welcomeBlock.content":"\u0646\u062D\u0646 \u0633\u0639\u062F\u0627\u0621 \u0628\u0648\u062C\u0648\u062F\u0643 \u0643\u0623\u062D\u062F \u0623\u0641\u0631\u0627\u062F \u0627\u0644\u0645\u062C\u062A\u0645\u0639. \u0646\u062D\u0646 \u0646\u0628\u062D\u062B \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0639\u0646 \u0631\u062F\u0648\u062F \u0627\u0644\u0641\u0639\u0644 \u0644\u0627 \u062A\u062A\u0631\u062F\u062F \u0641\u064A \u0645\u0631\u0627\u0633\u0644\u062A\u0646\u0627 \u0639\u0644\u0649 \u0627\u0644\u062E\u0627\u0635 ","app.components.HomePage.welcomeBlock.content.again":"\u0646\u0623\u0645\u0644 \u0623\u0646 \u062A\u062D\u0642\u0642 \u062A\u0642\u062F\u0645\u064B\u0627 \u0641\u064A \u0645\u0634\u0631\u0648\u0639\u0643 ... \u0644\u0627 \u062A\u062A\u0631\u062F\u062F \u0641\u064A \u0642\u0631\u0627\u0621\u0629 \u0639\u0646 \u0627\u062E\u0631 \u0625\u0635\u062F\u0627\u0631 \u062C\u062F\u064A\u062F \u0645\u0646 Strapi. \u0646\u062D\u0646 \u0646\u0628\u0630\u0644 \u0642\u0635\u0627\u0631\u0649 \u062C\u0647\u062F\u0646\u0627 \u0644\u062A\u062D\u0633\u064A\u0646 \u0627\u0644\u0645\u0646\u062A\u062C \u0628\u0646\u0627\u0621 \u0639\u0644\u0649 \u0645\u0644\u0627\u062D\u0638\u0627\u062A\u0643.","app.components.HomePage.welcomeBlock.content.issues":"issues.","app.components.HomePage.welcomeBlock.content.raise":" \u0623\u0648 \u0631\u0641\u0639 ","app.components.ImgPreview.hint":"\u0627\u0633\u062D\u0628 \u0627\u0644\u0645\u0644\u0641 \u0648\u0627\u0633\u0642\u0637\u0629 \u0641\u064A \u0647\u0630\u0647 \u0627\u0644\u0645\u0633\u0627\u062D\u0629 \u0627\u0648 \u0641\u064A {browse} \u0644\u0631\u0641\u0639\u0629","app.components.ImgPreview.hint.browse":"\u0627\u0644\u0645\u062A\u0635\u0641\u062D","app.components.InputFile.newFile":"\u0625\u0636\u0627\u0641\u0629 \u0645\u0644\u0641 \u062C\u062F\u064A\u062F","app.components.InputFileDetails.open":"\u0641\u062A\u062D \u0641\u064A \u0646\u0627\u0641\u0630\u0629 \u062C\u062F\u064A\u062F\u0629","app.components.InputFileDetails.originalName":"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0627\u0635\u0644\u064A:","app.components.InputFileDetails.remove":"\u062D\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u0644\u0641","app.components.InputFileDetails.size":"\u0627\u0644\u062D\u062C\u0645:","app.components.InstallPluginPage.description":"\u0642\u0645 \u0628\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u062F\u0648\u0646 \u0639\u0646\u0627\u0621.","app.components.LeftMenuFooter.poweredBy":"\u0645\u0646\u062F\u0639\u0648\u0645 \u0645\u0646 ","app.components.LeftMenuLinkContainer.configuration":"\u0627\u0644\u062A\u0647\u064A\u0626\u0629","app.components.LeftMenuLinkContainer.general":"\u0639\u0627\u0645","app.components.LeftMenuLinkContainer.noPluginsInstalled":"\u0644\u0627 \u062A\u0648\u062C\u062F \u0625\u0636\u0627\u0641\u0627\u062A \u0645\u062B\u0628\u062A\u0647 \u0628\u0639\u062F","app.components.LeftMenuLinkContainer.plugins":"\u0625\u0636\u0627\u0641\u0627\u062A","app.components.ListPluginsPage.description":"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0625\u0636\u0627\u0641\u064A\u0627\u062A \u0627\u0644\u0645\u062B\u0628\u062A\u0629 \u0641\u064A \u0627\u0644\u0645\u0634\u0631\u0648\u0639.","app.components.ListPluginsPage.helmet.title":"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A","app.components.Logout.logout":"\u0627\u0644\u062E\u0631\u0648\u062C","app.components.Logout.profile":"\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062E\u0635\u064A","app.components.NotFoundPage.back":"\u0627\u0644\u0639\u0648\u062F\u0629 \u0644\u0644\u0631\u0626\u064A\u0633\u064A\u0629","app.components.NotFoundPage.description":"\u0644\u0627 \u064A\u0648\u062C\u062F","app.components.Official":"\u0627\u0644\u0631\u0633\u0645\u064A\u0629","app.components.PluginCard.Button.label.download":"\u062A\u0646\u0632\u064A\u0644","app.components.PluginCard.Button.label.install":"\u0645\u062B\u0628\u062A","app.components.PluginCard.compatible":"\u0645\u062A\u0648\u0627\u0641\u0642 \u0645\u0639 \u062A\u0637\u0628\u064A\u0642\u0643","app.components.PluginCard.compatibleCommunity":"\u0645\u062A\u0648\u0627\u0641\u0642 \u0645\u0639 \u0627\u0644\u0645\u062C\u062A\u0645\u0639","app.components.PluginCard.more-details":"\u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644","app.components.listPlugins.button":"\u0625\u0636\u0627\u0641\u0629 \u0625\u0636\u0627\u0641\u0629 \u062C\u062F\u064A\u062F\u0629","app.components.listPlugins.title.none":"\u0644\u0627 \u064A\u0648\u062C\u062F \u0627\u064A \u0625\u0636\u0627\u0641\u0627\u062A \u0645\u062B\u0628\u062A\u0647","app.components.listPluginsPage.deletePlugin.error":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u0644\u063A\u0627\u0621 \u062A\u062B\u0628\u064A\u062A \u0627\u0644\u0625\u0636\u0627\u0641\u0629","app.utils.SelectOption.defaultMessage":" ","app.utils.defaultMessage":" ","app.utils.placeholder.defaultMessage":" ","components.AutoReloadBlocker.header":"\u0645\u0637\u0644\u0648\u0628 \u0645\u064A\u0632\u0629 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u062D\u0645\u064A\u0644 \u0644\u0647\u0630\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0629.","components.ErrorBoundary.title":"\u0647\u0646\u0627\u0643 \u062E\u0637\u0623 \u0645\u0627...","components.Input.error.attribute.key.taken":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0645\u0648\u062C\u0648\u062F\u0629 \u0645\u0633\u0628\u0642\u064B\u0627","components.Input.error.attribute.sameKeyAndName":"\u0644\u0627 \u062A\u062A\u0637\u0627\u0628\u0642","components.Input.error.attribute.taken":"\u0627\u0633\u0645 \u0627\u0644\u062D\u0642\u0644 \u0647\u0630\u0627 \u0645\u0633\u062A\u062E\u062F\u0645 \u0645\u0633\u0628\u0642\u064B\u0627","components.Input.error.contentTypeName.taken":"\u0647\u0630\u0647 \u0627\u0644\u0627\u0633\u0645 \u0645\u0633\u062A\u062E\u062F\u0645 \u0645\u0633\u0628\u0642\u064B\u0627","components.Input.error.custom-error":"{errorMessage} ","components.Input.error.password.noMatch":"\u0643\u0644\u0645\u0627\u062A \u0627\u0644\u0633\u0631 \u0644\u0627 \u062A\u062A\u0637\u0627\u0628\u0642","components.Input.error.validation.email":"\u0647\u0630\u0627 \u0644\u064A\u0633 \u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0643\u062A\u0631\u0648\u0646\u064A","components.Input.error.validation.json":"\u0644\u0627 \u064A\u062A\u0637\u0627\u0628\u0642 \u0645\u0639 \u0635\u064A\u063A\u0629 JSON","components.Input.error.validation.max":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0639\u0627\u0644\u064A\u0629 \u062C\u062F\u064B\u0627 {max}.","components.Input.error.validation.maxLength":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0637\u0648\u064A\u0644\u0629 \u062C\u062F\u064B\u0627 {max}.","components.Input.error.validation.min":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0642\u0644\u064A\u0644\u0629 \u062C\u062F\u064B\u0627 {min}.","components.Input.error.validation.minLength":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0642\u0635\u064A\u0631\u0629 \u062C\u062F\u064B\u0627 {min}.","components.Input.error.validation.minSupMax":"\u0644\u0627 \u064A\u0645\u0643\u0646 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0645\u062A\u0641\u0648\u0642\u0629","components.Input.error.validation.regex":"\u0647\u0630\u0647 \u0627\u0644\u0642\u0645\u064A\u0629 \u0644\u0627 \u062A\u0637\u0627\u0628\u0642 regex.","components.Input.error.validation.required":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0645\u0637\u0644\u0648\u0628\u0629.","components.ListRow.empty":"\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A \u0644\u064A\u062A\u0645 \u0639\u0631\u0636\u0647\u0627.","components.OverlayBlocker.description":"\u0623\u0646\u062A \u062A\u0633\u062A\u062E\u062F\u0645 \u0645\u064A\u0632\u0629 \u062A\u062D\u062A\u0627\u062C \u0625\u0644\u0649 \u0625\u0639\u0627\u062F\u0629 \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631 \u062D\u062A\u0649 \u064A\u0639\u0648\u062F \u0627\u0644\u062E\u0627\u062F\u0645.","components.OverlayBlocker.title":"\u0641\u064A \u0627\u0646\u062A\u0638\u0627\u0631 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0634\u063A\u064A\u0644...","components.PageFooter.select":"\u0625\u062F\u062E\u0627\u0644\u0627\u062A \u0644\u0643\u0644 \u0635\u0641\u062D\u0629","components.ProductionBlocker.description":"\u0644\u0623\u063A\u0631\u0627\u0636 \u0627\u0644\u0633\u0644\u0627\u0645\u0629 \u060C \u064A\u062A\u0639\u064A\u0646 \u0639\u0644\u064A\u0646\u0627 \u062A\u0639\u0637\u064A\u0644 \u0647\u0630\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0641\u064A \u0628\u064A\u0626\u0627\u062A \u0623\u062E\u0631\u0649.","components.ProductionBlocker.header":"\u0647\u0630\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0645\u062A\u0627\u062D\u0629 \u0641\u0642\u0637 \u0641\u064A \u0627\u0644\u062A\u0637\u0648\u064A\u0631.","components.Wysiwyg.collapse":"\u062A\u0642\u0644\u064A\u0635","components.Wysiwyg.selectOptions.H1":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 H1","components.Wysiwyg.selectOptions.H2":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 H2","components.Wysiwyg.selectOptions.H3":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 H3","components.Wysiwyg.selectOptions.H4":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 H4","components.Wysiwyg.selectOptions.H5":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 H5","components.Wysiwyg.selectOptions.H6":"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 H6","components.Wysiwyg.selectOptions.title":"\u0625\u0636\u0627\u0641\u0629 \u0639\u0646\u0648\u0627\u0646","components.WysiwygBottomControls.charactersIndicators":"\u0627\u0644\u0623\u062D\u0631\u0641","components.WysiwygBottomControls.fullscreen":"\u062A\u0648\u0633\u064A\u0639","components.WysiwygBottomControls.uploadFiles":"\u0627\u0633\u062D\u0628 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0648\u0623\u0641\u0644\u062A\u0647\u0627 \u060C \u0648\u0627\u0644\u0635\u0642\u0647\u0627 \u0645\u0646 \u0627\u0644\u062D\u0627\u0641\u0638\u0629 \u0623\u0648 {browse}.","components.WysiwygBottomControls.uploadFiles.browse":"\u062D\u062F\u062F\u0647\u0645","components.popUpWarning.message":"\u0647\u0644 \u0627\u0646\u062A \u0645\u062A\u0627\u0643\u062F \u0645\u0646 \u062D\u0630\u0641 \u0647\u0630\u0627\u061F","components.popUpWarning.title":"\u0627\u0631\u062C\u0648 \u0627\u0644\u062A\u0623\u0643\u064A\u062F","content-manager.EditRelations.title":"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0639\u0644\u0627\u0626\u0642\u064A\u0629","content-manager.components.AddFilterCTA.add":"\u0645\u0631\u0634\u062D\u0627\u062A","content-manager.components.AddFilterCTA.hide":"\u0645\u0631\u0634\u062D\u0627\u062A","content-manager.components.DraggableAttr.edit":"\u0627\u0636\u063A\u0637 \u0644\u062A\u0639\u062F\u064A\u0644","content-manager.components.EmptyAttributesBlock.button":"\u0627\u0644\u0630\u0647\u0627\u0628 \u0627\u0644\u0649 \u0635\u0641\u062D\u0629 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A","content-manager.components.EmptyAttributesBlock.description":"\u064A\u0645\u0643\u0646\u0643 \u062A\u063A\u064A\u064A\u0631 \u0625\u0639\u062F\u0627\u062F\u0627\u062A\u0643","content-manager.components.FilterOptions.button.apply":"\u062A\u0637\u0628\u064A\u0642","content-manager.components.FiltersPickWrapper.PluginHeader.actions.apply":"\u062A\u0637\u0628\u064A\u0642","content-manager.components.FiltersPickWrapper.PluginHeader.actions.clearAll":"\u0645\u0633\u062D \u0627\u0644\u0643\u0644","content-manager.components.FiltersPickWrapper.PluginHeader.description":"\u0639\u064A\u0651\u0646 \u0627\u0644\u0634\u0631\u0648\u0637 \u0644\u062A\u0637\u0628\u064A\u0642\u0647\u0627 \u0639\u0644\u0649 \u062A\u0631\u0634\u064A\u062D \u0627\u0644\u0625\u062F\u062E\u0627\u0644\u0627\u062A","content-manager.components.FiltersPickWrapper.PluginHeader.title.filter":"\u0645\u0631\u0634\u062D\u0627\u062A","content-manager.components.FiltersPickWrapper.hide":"\u0627\u062E\u0641\u0627\u0621","content-manager.components.LimitSelect.itemsPerPage":"\u0639\u0646\u0635\u0631 \u0628\u0627\u0644\u0635\u0641\u062D\u0629","content-manager.components.Search.placeholder":"\u0627\u0644\u0628\u062D\u062B \u0639\u0646 \u0645\u062F\u062E\u0644...","content-manager.components.TableDelete.delete":"\u062D\u0630\u0641 \u0627\u0644\u0643\u0644","content-manager.components.TableDelete.deleteSelected":"\u0627\u062D\u0630\u0641 \u0627\u0644\u0645\u062E\u062A\u0627\u0631","content-manager.components.TableEmpty.withFilters":"\u0644\u0627 \u064A\u0648\u062C\u062F {contentType} \u0645\u0639 \u0627\u0644\u0645\u0631\u0634\u062D\u0627\u062A \u0627\u0644\u0645\u0637\u0628\u0642...","content-manager.components.TableEmpty.withSearch":"\u0644\u0627 \u064A\u0648\u062C\u062F {contentType} \u0645\u0637\u0627\u0628\u0642 \u0644\u0644\u0628\u062D\u062B ({search})...","content-manager.components.TableEmpty.withoutFilter":"\u0644\u0627 \u064A\u0648\u062C\u062F {contentType}...","content-manager.containers.Edit.addAnItem":"\u0627\u0636\u0627\u0641\u0629 \u0639\u0646\u0635\u0631...","content-manager.containers.Edit.clickToJump":"\u0627\u0646\u0642\u0631 \u0644\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0627\u0644\u0625\u062F\u062E\u0627\u0644","content-manager.containers.Edit.delete":"\u062D\u0630\u0641","content-manager.containers.Edit.editing":"\u0627\u0644\u062A\u0639\u062F\u064A\u0644...","content-manager.containers.Edit.reset":"\u0625\u0639\u0627\u062F\u0629","content-manager.containers.Edit.returnList":"\u0627\u0644\u0639\u0648\u062F\u0629 \u0644\u0644\u0642\u0627\u0626\u0645\u0629","content-manager.containers.Edit.seeDetails":"\u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644","content-manager.containers.Edit.submit":"\u062D\u0641\u0638","content-manager.containers.Home.introduction":"\u0644\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0625\u062F\u062E\u0627\u0644\u0627\u062A \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u0631\u0627\u0628\u0637 \u0627\u0644\u0645\u062D\u062F\u062F \u0641\u064A \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u064A\u0645\u0646\u0649. \u0644\u0627 \u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0639\u0644\u0649 \u0637\u0631\u064A\u0642\u0629 \u0645\u0646\u0627\u0633\u0628\u0629 \u0644\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0648\u0644\u0627 \u064A\u0632\u0627\u0644 \u0642\u064A\u062F \u0627\u0644\u062A\u0637\u0648\u064A\u0631.","content-manager.containers.Home.pluginHeaderDescription":"\u0625\u062F\u0627\u0631\u0629 \u0625\u062F\u062E\u0627\u0644\u0627\u062A\u0643 \u0645\u0646 \u062E\u0644\u0627\u0644 \u0648\u0627\u062C\u0647\u0629 \u0642\u0648\u064A\u0629 \u0648\u062C\u0645\u064A\u0644\u0629.","content-manager.containers.Home.pluginHeaderTitle":"\u0645\u062F\u064A\u0631 \u0627\u0644\u0645\u062D\u062A\u0648\u0649","content-manager.containers.List.errorFetchRecords":"\u062E\u0637\u0623","content-manager.containers.ListPage.displayedFields":"\u0627\u0638\u0647\u0627\u0631 \u0627\u0644\u062D\u0642\u0648\u0644","content-manager.containers.SettingPage.attributes":"\u062D\u0642\u0648\u0644 \u0627\u0644\u0633\u0645\u0627\u062A","content-manager.containers.SettingPage.attributes.description":"\u062D\u062F\u062F \u062A\u0631\u062A\u064A\u0628 \u0627\u0644\u0633\u0645\u0627\u062A","content-manager.containers.SettingPage.editSettings.description":"\u0627\u0633\u062D\u0628 \u0627\u0644\u062D\u0642\u0648\u0644 \u0648\u0623\u0641\u0644\u062A\u0647\u0627 \u0644\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062A\u062E\u0637\u064A\u0637","content-manager.containers.SettingPage.editSettings.title":"\u0627\u0644\u062A\u0639\u062F\u064A\u0644 - \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A","content-manager.containers.SettingPage.listSettings.title":"\u0642\u0627\u0626\u0645\u0629( \u0625\u0639\u062F\u0627\u062F\u0627\u062A)","content-manager.containers.SettingsPage.Block.contentType.description":"\u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629","content-manager.containers.SettingsPage.Block.generalSettings.title":"\u0639\u0627\u0645","content-manager.emptyAttributes.title":"\u0644\u0627 \u062A\u0648\u062C\u062F \u062D\u0642\u0648\u0644 \u0628\u0639\u062F","content-manager.error.attribute.key.taken":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0645\u0648\u062C\u0648\u062F\u0629 \u0645\u0633\u0628\u0642\u064B\u0627","content-manager.error.attribute.sameKeyAndName":"\u0644\u0627 \u062A\u062A\u0637\u0627\u0628\u0642","content-manager.error.attribute.taken":"\u0627\u0633\u0645 \u0627\u0644\u062D\u0642\u0644 \u0647\u0630\u0627 \u0645\u0648\u062C\u0648\u062F \u0645\u0633\u0628\u0642\u064B\u0627","content-manager.error.contentTypeName.taken":"\u0647\u0630\u0627 \u0627\u0644\u0623\u0633\u0645 \u0645\u0648\u062C\u0648\u062F \u0645\u0633\u0628\u0642\u064B\u0627","content-manager.error.model.fetch":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u062C\u0631\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0646\u0645\u0627\u0630\u062C.","content-manager.error.record.create":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0633\u062C\u0644.","content-manager.error.record.delete":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062D\u0630\u0641 \u0627\u0644\u0633\u062C\u0644.","content-manager.error.record.fetch":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062C\u0644\u0628.","content-manager.error.record.update":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0633\u062C\u0644.","content-manager.error.records.count":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u062D\u0636\u0627\u0631 \u0639\u062F\u062F \u0627\u0644\u0633\u062C\u0644\u0627\u062A.","content-manager.error.records.fetch":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062C\u0644\u0628 \u0627\u0644\u0633\u062C\u0644\u0627\u062A.","content-manager.error.schema.generation":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062A\u0648\u0644\u064A\u062F \u0627\u0644\u0645\u062E\u0637\u0637.","content-manager.error.validation.json":"\u0647\u0630\u0627 \u0644\u064A\u0633 JSON","content-manager.error.validation.max":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0639\u0627\u0644\u064A\u0629 \u062C\u062F\u064B\u0627.","content-manager.error.validation.maxLength":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0637\u0648\u064A\u0644\u0629 \u062C\u062F\u064B\u0627.","content-manager.error.validation.min":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0642\u0644\u064A\u0644 \u062C\u062F\u064B\u0627.","content-manager.error.validation.minLength":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0642\u0635\u064A\u0631\u0629 \u062C\u062F\u064B\u0627.","content-manager.error.validation.minSupMax":"\u0644\u0627 \u064A\u0645\u0643\u0646 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0645\u062A\u0641\u0648\u0642\u0629","content-manager.error.validation.regex":"\u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0644\u0627 \u062A\u0637\u0627\u0628\u0642 regex.","content-manager.error.validation.required":"\u0642\u064A\u0645\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628\u0629.","content-manager.form.Input.bulkActions":"\u062A\u0645\u0643\u064A\u0646 \u0627\u0644\u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0627\u0644\u0645\u062C\u0645\u0639\u0629","content-manager.form.Input.defaultSort":"\u0633\u0645\u0629 \u0627\u0644\u0641\u0631\u0632 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A","content-manager.form.Input.description":"\u0627\u0644\u0648\u0635\u0641","content-manager.form.Input.description.placeholder":"\u0639\u0631\u0636 \u0627\u0644\u0625\u0633\u0645 \u0641\u064A \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062E\u0635\u064A","content-manager.form.Input.editable":"\u062D\u0642\u0644 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0639\u062F\u064A\u0644","content-manager.form.Input.filters":"\u062A\u0641\u0639\u064A\u0644 \u0627\u0644\u062A\u0631\u0634\u064A\u062D","content-manager.form.Input.label":"\u062A\u0633\u0645\u064A\u0647","content-manager.form.Input.label.inputDescription":"\u062A\u062A\u062C\u0627\u0648\u0632 \u0647\u0630\u0647 \u0627\u0644\u0642\u064A\u0645\u0629 \u0627\u0644\u062A\u0633\u0645\u064A\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629 \u0641\u064A \u0631\u0623\u0633 \u0627\u0644\u062C\u062F\u0648\u0644","content-manager.form.Input.pageEntries":"\u0645\u062F\u062E\u0644\u0627\u062A \u0641\u064A \u0627\u0644\u0635\u0641\u062D\u0629","content-manager.form.Input.placeholder":"\u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u0646\u0627\u0626\u0628","content-manager.form.Input.placeholder.placeholder":"\u0642\u064A\u0645\u062A\u064A \u0627\u0644\u0631\u0627\u0626\u0639\u0629","content-manager.form.Input.search":"\u062A\u0641\u0639\u064A\u0644 \u0627\u0644\u0628\u062D\u062B","content-manager.form.Input.search.field":"\u062A\u0641\u0639\u064A\u0644 \u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644","content-manager.form.Input.sort.field":"\u062A\u0645\u0643\u064A\u0646 \u0627\u0644\u0641\u0631\u0632 \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644","content-manager.notification.error.displayedFields":"\u0623\u0646\u062A \u0628\u062D\u0627\u062C\u0629 \u0625\u0644\u0649 \u062D\u0642\u0644 \u0645\u0639\u0631\u0648\u0636 \u0648\u0627\u062D\u062F \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644","content-manager.notification.error.relationship.fetch":"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062C\u0644\u0628 \u0627\u0644\u0639\u0644\u0627\u0642\u0629.","content-manager.notification.info.SettingPage.disableSort":"\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0644\u062F\u064A\u0643 \u0633\u0645\u0629 \u0648\u0627\u062D\u062F\u0629 \u0645\u0639 \u0627\u0644\u0641\u0631\u0632 \u0627\u0644\u0645\u0633\u0645\u0648\u062D \u0628\u0647","content-manager.pageNotFound":"\u0627\u0644\u0635\u0641\u062D\u0629 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F","content-manager.plugin.description.long":"\u0637\u0631\u064A\u0642\u0629 \u0633\u0631\u064A\u0639\u0629 \u0644\u0645\u0634\u0627\u0647\u062F\u0629 \u0648\u062A\u062D\u0631\u064A\u0631 \u0648\u062D\u0630\u0641 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0641\u064A \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643.","content-manager.plugin.description.short":"\u0637\u0631\u064A\u0642\u0629 \u0633\u0631\u064A\u0639\u0629 \u0644\u0645\u0634\u0627\u0647\u062F\u0629 \u0648\u062A\u062D\u0631\u064A\u0631 \u0648\u062D\u0630\u0641 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0641\u064A \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643.","content-manager.popUpWarning.bodyMessage.contentType.delete":"\u0647\u0644 \u0627\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u062D\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u062F\u062E\u0644\u061F","content-manager.popUpWarning.bodyMessage.contentType.delete.all":"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646\u0643 \u062A\u0631\u064A\u062F \u062D\u0630\u0641 \u0647\u0630\u0647 \u0627\u0644\u0623\u062F\u062E\u0627\u0644\u0627\u062A\u061F","content-manager.popUpWarning.warning.cancelAllSettings":"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646\u0643 \u062A\u0631\u064A\u062F \u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u0639\u062F\u064A\u0644\u0627\u062A\u0643\u061F","content-manager.popUpWarning.warning.updateAllSettings":"\u0633\u064A\u0624\u062F\u064A \u0630\u0644\u0643 \u0625\u0644\u0649 \u062A\u0639\u062F\u064A\u0644 \u062C\u0645\u064A\u0639 \u0625\u0639\u062F\u0627\u062F\u0627\u062A\u0643","content-manager.success.record.delete":"\u062D\u064F\u0630\u0641","content-manager.success.record.save":"\u062D\u064F\u0641\u0638","notification.error":"\u062D\u062F\u062B \u062E\u0637\u0623","notification.error.layout":"\u062A\u0639\u0630\u0651\u0631 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0627\u0644\u062A\u0646\u0633\u064A\u0642","request.error.model.unknown":"\u0647\u0630\u0627 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F"}')}}]);
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2812],{83196:function(Z,x,t){var e=t(32735),i=t(60216),h=t.n(i),v=t(67879),c=t(72850),E=t(41415),L=t(5644),O=t(24989);const y=({displayedFilters:f})=>{const[g,n]=(0,e.useState)(!1),{formatMessage:j}=(0,v.Z)(),R=(0,e.useRef)(),$=()=>{n(T=>!T)};return e.createElement(e.Fragment,null,e.createElement(c.x,{paddingTop:1,paddingBottom:1},e.createElement(E.z,{variant:"tertiary",ref:R,startIcon:e.createElement(L.Z,null),onClick:$,size:"S"},j({id:"app.utils.filters",defaultMessage:"Filters"})),g&&e.createElement(O.J5,{displayedFilters:f,isVisible:g,onToggle:$,source:R})),e.createElement(O.W$,{filtersSchema:f}))};y.propTypes={displayedFilters:h().arrayOf(h().shape({name:h().string.isRequired,metadatas:h().shape({label:h().string}),fieldSchema:h().shape({type:h().string})})).isRequired},x.Z=y},71765:function(Z,x,t){t.r(x),t.d(x,{default:function(){return ye}});var e=t(32735),i=t(24989),h=t(83983),v=t(67879),c=t(96709),E=t(17e3),L=t(72850),O=t(27649),y=t(82055),f=t(99223),g=t(60216),n=t.n(g),j=t(35658),R=t(94547),$=t(19786),T=t(49372),S=t(87933),oe=t(50563),re=t(54894),G=t(96315),w=()=>{const{formatDate:s}=(0,v.Z)();return p=>{const o=(0,G.Z)(p),m=s(o,{dateStyle:"long"}),d=s(o,{timeStyle:"medium",hourCycle:"h24"});return`${m}, ${d}`}};const k={"entry.create":"Create entry{model, select, undefined {} other { ({model})}}","entry.update":"Update entry{model, select, undefined {} other { ({model})}}","entry.delete":"Delete entry{model, select, undefined {} other { ({model})}}","entry.publish":"Publish entry{model, select, undefined {} other { ({model})}}","entry.unpublish":"Unpublish entry{model, select, undefined {} other { ({model})}}","media.create":"Create media","media.update":"Update media","media.delete":"Delete media","media-folder.create":"Create media folder","media-folder.update":"Update media folder","media-folder.delete":"Delete media folder","user.create":"Create user","user.update":"Update user","user.delete":"Delete user","admin.auth.success":"Admin login","admin.logout":"Admin logout","content-type.create":"Create content type","content-type.update":"Update content type","content-type.delete":"Delete content type","component.create":"Create component","component.update":"Update component","component.delete":"Delete component","role.create":"Create role","role.update":"Update role","role.delete":"Delete role","permission.create":"Create permission","permission.update":"Update permission","permission.delete":"Delete permission"},V=s=>k[s]||s,Q=({headers:s,rows:u,onOpenModal:p})=>{const{formatMessage:o}=(0,v.Z)(),m=w(),d=({type:l,value:r,model:M})=>l==="date"?m(r):l==="action"?o({id:`Settings.permissions.auditLogs.${r}`,defaultMessage:V(r)},{model:M}):r||"-";return e.createElement(j.p,null,u.map(l=>e.createElement(R.Tr,{key:l.id,...(0,i.X7)({fn:()=>p(l.id)})},s.map(({key:r,name:M,cellFormatter:_})=>e.createElement($.Td,{key:r},e.createElement(T.Z,{textColor:"neutral800"},d({type:r,value:_?_(l[M]):l[M],model:l.payload?.model})))),e.createElement($.Td,{...i.UW},e.createElement(S.k,{justifyContent:"end"},e.createElement(oe.h,{onClick:()=>p(l.id),"aria-label":o({id:"app.component.table.view",defaultMessage:"{target} details"},{target:`${l.action} action`}),noBorder:!0,icon:e.createElement(re.Z,null)}))))))};Q.defaultProps={rows:[]},Q.propTypes={headers:n().array.isRequired,rows:n().array,onOpenModal:n().func.isRequired};var ie=Q,le=[{name:"action",key:"action",metadatas:{label:{id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"},sortable:!0}},{name:"date",key:"date",metadatas:{label:{id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"},sortable:!0}},{key:"user",name:"user",metadatas:{label:{id:"Settings.permissions.auditLogs.user",defaultMessage:"User"},sortable:!1},cellFormatter:s=>s?s.displayName:""}];const B=({pagination:s})=>e.createElement(L.x,{paddingTop:4},e.createElement(S.k,{alignItems:"flex-end",justifyContent:"space-between"},e.createElement(i.v4,null),e.createElement(i.tU,{pagination:s})));B.defaultProps={pagination:{pageCount:0,pageSize:50,total:0}},B.propTypes={pagination:n().shape({page:n().number,pageCount:n().number,pageSize:n().number,total:n().number})};var a=B,P=t(20108),U=t(85025),N=t(55225),W=t(11299),H=t(31600),de=t(23866),ue=t(15335),ce=t(88807);const K=({actionLabel:s,actionName:u})=>e.createElement(S.k,{direction:"column",alignItems:"baseline",gap:1},e.createElement(T.Z,{textColor:"neutral600",variant:"sigma"},s),e.createElement(T.Z,{textColor:"neutral600"},u));K.propTypes={actionLabel:n().string.isRequired,actionName:n().string.isRequired};var I=K;const z=({status:s,data:u,formattedDate:p})=>{const{formatMessage:o}=(0,v.Z)();if(s==="loading")return e.createElement(S.k,{padding:7,justifyContent:"center",alignItems:"center"},e.createElement(de.a,null,"Loading content..."));const{action:m,user:d,payload:l}=u;return e.createElement(e.Fragment,null,e.createElement(L.x,{marginBottom:3},e.createElement(T.Z,{variant:"delta",id:"title"},o({id:"Settings.permissions.auditLogs.details",defaultMessage:"Log Details"}))),e.createElement(ue.r,{gap:4,gridCols:2,paddingTop:4,paddingBottom:4,paddingLeft:6,paddingRight:6,marginBottom:4,background:"neutral100",hasRadius:!0},e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),actionName:o({id:`Settings.permissions.auditLogs.${m}`,defaultMessage:V(m)},{model:l?.model})}),e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"}),actionName:p}),e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),actionName:d?.displayName||"-"}),e.createElement(I,{actionLabel:o({id:"Settings.permissions.auditLogs.userId",defaultMessage:"User ID"}),actionName:d?.id.toString()||"-"})),e.createElement(ce.V,{value:JSON.stringify(l,null,2),disabled:!0,label:o({id:"Settings.permissions.auditLogs.payload",defaultMessage:"Payload"})}))};z.defaultProps={data:{}},z.propTypes={status:n().oneOf(["idle","loading","error","success"]).isRequired,data:n().shape({action:n().string,date:n().string,payload:n().object,user:n().object}),formattedDate:n().string.isRequired};var me=z;const q=({handleClose:s,logId:u})=>{const{get:p}=(0,i.kY)(),o=(0,i.lm)(),m=async _=>{const{data:C}=await p(`/admin/audit-logs/${_}`);if(!C)throw new Error("Audit log not found");return C},{data:d,status:l}=(0,P.useQuery)(["audit-log",u],()=>m(u),{onError(){o({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}}),s()}}),r=w(),M=d?r(d.date):"";return e.createElement(U.P,{onClose:s,labelledBy:"title"},e.createElement(N.x,null,e.createElement(W.O,{label:M,id:"title"},e.createElement(W.$,null,M))),e.createElement(H.f,null,e.createElement(me,{status:l,data:d,formattedDate:M})))};q.propTypes={handleClose:n().func.isRequired,logId:n().string.isRequired};var ge=q,pe=t(83196),he=t(21428),J=t(90333);const Y=({value:s,options:u,onChange:p})=>{const{formatMessage:o}=(0,v.Z)(),m=o({id:"Settings.permissions.auditLogs.filter.aria-label",defaultMessage:"Search and select an option to filter"});return e.createElement(he.hQ,{"aria-label":m,value:s,onChange:p},u.map(({label:d,customValue:l})=>e.createElement(J.O,{key:l,value:l},d)))};Y.defaultProps={value:null},Y.propTypes={value:n().string,options:n().arrayOf(n().shape({label:n().string.isRequired,customValue:n().string.isRequired}).isRequired).isRequired,onChange:n().func.isRequired};var ee=Y;const X=[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"}];var ae=({formatMessage:s,users:u,canReadUsers:p})=>{const o=Object.keys(k).map(d=>({label:s({id:`Settings.permissions.auditLogs.${d}`,defaultMessage:V(d)},{model:void 0}),customValue:d})),m=[{name:"action",metadatas:{customOperators:X,label:s({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),options:o,customInput:ee},fieldSchema:{type:"enumeration"}},{name:"date",metadatas:{label:s({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"})},fieldSchema:{type:"datetime"}}];if(p&&u){const d=r=>r.username?r.username:r.firstname&&r.lastname?s({id:"Settings.permissions.auditLogs.user.fullname",defaultMessage:"{firstname} {lastname}"},{firstname:r.firstname,lastname:r.lastname}):r.email,l=u.results.map(r=>({label:d(r),customValue:r.id.toString()}));return[...m,{name:"user",metadatas:{customOperators:X,label:s({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),options:l,customInput:ee},fieldSchema:{type:"relation",mainField:{name:"id"}}}]}return m},Ee=t(53038),Me=({canReadAuditLogs:s,canReadUsers:u})=>{const{get:p}=(0,i.kY)(),{search:o}=(0,Ee.TH)(),m=(0,i.lm)(),d=async({queryKey:b})=>{const Le=b[1],{data:De}=await p(`/admin/audit-logs${Le}`);return De},l=async()=>{const{data:b}=await p("/admin/users");return b},r={keepPreviousData:!0,retry:!1,staleTime:1e3*20,onError:b=>m({type:"warning",message:b.message})},{data:M,isLoading:_,isError:C}=(0,P.useQuery)(["auditLogs",o],d,{...r,enabled:s}),{data:F,isError:A}=(0,P.useQuery)(["auditLogsUsers"],l,{...r,enabled:u,staleTime:2*(1e3*60)}),Pe=C||A;return{auditLogs:M,users:F?.data,isLoading:_,hasError:Pe}};const se={...h.Z.settings.auditLogs,readUsers:h.Z.settings.users.read};var ne=()=>{const{formatMessage:s}=(0,v.Z)(),{allowedActions:{canRead:u,canReadUsers:p}}=(0,i.ss)(se),[{query:o},m]=(0,i.Kx)(),{auditLogs:d,users:l,isLoading:r,hasError:M}=Me({canReadAuditLogs:u,canReadUsers:p});(0,i.go)();const _=ae({formatMessage:s,users:l,canReadUsers:p}),C=s({id:"global.auditLogs",defaultMessage:"Audit Logs"}),F=le.map(A=>({...A,metadatas:{...A.metadatas,label:s(A.metadatas.label)}}));return M?e.createElement(c.A,null,e.createElement(E.D,null,e.createElement(L.x,{paddingTop:8},e.createElement(i.Hn,null)))):e.createElement(O.o,{"aria-busy":r},e.createElement(i.SL,{name:C}),e.createElement(y.T,{title:C,subtitle:s({id:"Settings.permissions.auditLogs.listview.header.subtitle",defaultMessage:"Logs of all the activities that happened in your environment"})}),e.createElement(f.Z,{startActions:e.createElement(pe.Z,{displayedFilters:_})}),e.createElement(E.D,{canRead:u},e.createElement(i.tM,{contentType:"Audit logs",headers:F,rows:d?.results||[],withBulkActions:!0,isLoading:r},e.createElement(ie,{headers:F,rows:d?.results||[],onOpenModal:A=>m({id:A})})),e.createElement(a,{pagination:d?.pagination})),o?.id&&e.createElement(ge,{handleClose:()=>m({id:null},"remove"),logId:o.id}))},ye=()=>e.createElement(i.O4,{permissions:h.Z.settings.auditLogs.main},e.createElement(ne,null))},11299:function(Z,x,t){t.d(x,{$:function(){return y},O:function(){return f}});var e=t(74512),i=t(77277),h=t(8471),v=t(3685),c=t(87933),E=t(72850),L=t(49372);const O=(0,h.ZP)(c.k)`
|
|
2
|
-
svg {
|
|
3
|
-
height: ${10/16}rem;
|
|
4
|
-
width: ${10/16}rem;
|
|
5
|
-
path {
|
|
6
|
-
fill: ${({theme:g})=>g.colors.neutral500};
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
:last-of-type ${E.x} {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
:last-of-type ${L.Z} {
|
|
13
|
-
color: ${({theme:g})=>g.colors.neutral800};
|
|
14
|
-
font-weight: ${({theme:g})=>g.fontWeights.bold};
|
|
15
|
-
}
|
|
16
|
-
`,y=({children:g})=>(0,e.jsxs)(O,{inline:!0,as:"li",children:[(0,e.jsx)(L.Z,{variant:"pi",textColor:"neutral600",children:g}),(0,e.jsx)(E.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,e.jsx)(i.Z,{})})]});y.displayName="Crumb";const f=({children:g,label:n,...j})=>(0,e.jsxs)(c.k,{...j,children:[(0,e.jsx)(v.T,{children:n}),(0,e.jsx)("ol",{"aria-hidden":!0,children:g})]});f.displayName="Breadcrumbs"},21428:function(Z,x,t){t.d(x,{Wx:function(){return le},XU:function(){return xe},hQ:function(){return G}});var e=t(74512),i=t(32735),h=t(35331),v=t(16899),c=t(42345),E=t(8471),L=t(14268),O=t(95976),y=t(74971),f=t(36971),g=t(30350),n=t(23866),j=t(72850),R=t(49372),$=t(87107),T=t(87933),S=t(28847),oe=t(67014),re=t(47851);const G=({children:a,clearLabel:P="clear",creatable:U=!1,createMessage:N=u=>`Create "${u}"`,defaultFilterValue:W,defaultTextValue:H,defaultOpen:de=!1,open:ue,onOpenChange:ce,disabled:K=!1,error:I,filterValue:z,hasMoreItems:me=!1,hint:q,id:ge,label:pe,labelAction:he,loading:J=!1,loadingMessage:Y="Loading content...",noOptionsMessage:ee=()=>"No results found",onChange:X,onClear:te,onCreateOption:ae,onFilterValueChange:Ee,onInputChange:fe,onTextValueChange:Me,onLoadMore:se,placeholder:Ce="Select or enter a value",required:ne=!1,startIcon:ve,textValue:ye,value:s})=>{const[u,p]=(0,O.T)({prop:ue,defaultProp:de,onChange:ce}),[o,m]=(0,O.T)({prop:ye,defaultProp:H,onChange:Me}),[d,l]=(0,O.T)({prop:z,defaultProp:W,onChange:Ee}),r=i.useRef(null),M=i.useRef(null),_=i.useRef(null),C=(0,y.M)(ge),F=D=>{te&&!K&&(m(""),l(""),te(D),M.current.focus())},A=D=>{p(D)},Pe=D=>{m(D)},b=D=>{l(D)},Le=D=>{fe&&fe(D)},De=D=>{X&&X(D)},_e=(0,y.M)(),Te=`intersection-${(0,L.B)(_e)}`,je=D=>{se&&me&&!J&&se(D)},Re=()=>{ae&&o&&ae(o)};(0,f.s)(r,je,{selectorToWatch:`#${Te}`,skipWhen:!u});const Ae=`${C}-hint`,Ie=`${C}-error`;return(0,e.jsx)($.g,{hint:q,error:I,id:C,required:ne,children:(0,e.jsxs)(T.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(S.Q,{action:he,children:pe}),(0,e.jsxs)(c.hQ.Root,{autocomplete:U?"list":"both",open:u,onOpenChange:A,onTextValueChange:Pe,textValue:o,allowCustomValue:!0,disabled:K,required:ne,value:s===null?void 0:s,onValueChange:De,filterValue:d,onFilterValueChange:b,children:[(0,e.jsxs)(k,{$hasError:!!I,children:[(0,e.jsxs)(T.k,{flex:"1",as:"span",gap:3,children:[ve?(0,e.jsx)(j.x,{as:"span","aria-hidden":!0,children:ve}):null,(0,e.jsx)(V,{placeholder:Ce,id:C,"aria-invalid":!!I,"aria-labelledby":`${Ae} ${Ie}`,onChange:Le,ref:M})]}),(0,e.jsxs)(T.k,{as:"span",gap:3,children:[o&&te?(0,e.jsx)(w,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:F,"aria-disabled":K,"aria-label":P,title:P,ref:_,children:(0,e.jsx)(h.Z,{})}):null,(0,e.jsx)(Q,{children:(0,e.jsx)(v.Z,{})})]})]}),(0,e.jsx)(c.hQ.Portal,{children:(0,e.jsx)(ie,{sideOffset:4,children:(0,e.jsxs)(Oe,{ref:r,children:[a,U?(0,e.jsx)(c.hQ.CreateItem,{onPointerUp:Re,onClick:Re,asChild:!0,children:(0,e.jsx)(B,{children:(0,e.jsx)(R.Z,{children:N(o??"")})})}):null,!U&&!J?(0,e.jsx)(c.hQ.NoValueFound,{asChild:!0,children:(0,e.jsx)(B,{$hasHover:!1,children:(0,e.jsx)(R.Z,{children:ee(o??"")})})}):null,J?(0,e.jsx)(T.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(n.a,{small:!0,children:Y})}):null,(0,e.jsx)(j.x,{id:Te,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(oe.J,{}),(0,e.jsx)(re.c,{})]})})},xe=a=>(0,e.jsx)(G,{...a,creatable:!0}),w=(0,E.ZP)(j.x)`
|
|
17
|
-
border: none;
|
|
18
|
-
|
|
19
|
-
svg {
|
|
20
|
-
height: ${11/16}rem;
|
|
21
|
-
width: ${11/16}rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
svg path {
|
|
25
|
-
fill: ${({theme:a})=>a.colors.neutral600};
|
|
26
|
-
}
|
|
27
|
-
`,k=(0,E.ZP)(c.hQ.Trigger)`
|
|
28
|
-
position: relative;
|
|
29
|
-
border: 1px solid ${({theme:a,$hasError:P})=>P?a.colors.danger600:a.colors.neutral200};
|
|
30
|
-
padding-right: ${({theme:a})=>a.spaces[3]};
|
|
31
|
-
padding-left: ${({theme:a})=>a.spaces[3]};
|
|
32
|
-
border-radius: ${({theme:a})=>a.borderRadius};
|
|
33
|
-
background: ${({theme:a})=>a.colors.neutral0};
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: space-between;
|
|
38
|
-
gap: ${({theme:a})=>a.spaces[4]};
|
|
39
|
-
|
|
40
|
-
&[data-disabled] {
|
|
41
|
-
color: ${({theme:a})=>a.colors.neutral600};
|
|
42
|
-
background: ${({theme:a})=>a.colors.neutral150};
|
|
43
|
-
cursor: not-allowed;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* Required to ensure the below inputFocusStyles are adhered too */
|
|
47
|
-
&:focus-visible {
|
|
48
|
-
outline: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
${({theme:a,$hasError:P})=>(0,g.k3)()({theme:a,hasError:P})};
|
|
52
|
-
`,V=(0,E.ZP)(c.hQ.TextInput)`
|
|
53
|
-
width: 100%;
|
|
54
|
-
font-size: ${14/16}rem;
|
|
55
|
-
color: ${({theme:a})=>a.colors.neutral800};
|
|
56
|
-
min-height: ${40/16}rem;
|
|
57
|
-
border: none;
|
|
58
|
-
background-color: transparent;
|
|
59
|
-
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
outline: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&[aria-disabled='true'] {
|
|
65
|
-
cursor: inherit;
|
|
66
|
-
}
|
|
67
|
-
`,Q=(0,E.ZP)(c.hQ.Icon)`
|
|
68
|
-
& > svg {
|
|
69
|
-
width: ${6/16}rem;
|
|
70
|
-
|
|
71
|
-
& > path {
|
|
72
|
-
fill: ${({theme:a})=>a.colors.neutral600};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&[aria-disabled='true'] {
|
|
77
|
-
cursor: inherit;
|
|
78
|
-
}
|
|
79
|
-
`,ie=(0,E.ZP)(c.hQ.Content)`
|
|
80
|
-
background: ${({theme:a})=>a.colors.neutral0};
|
|
81
|
-
box-shadow: ${({theme:a})=>a.shadows.filterShadow};
|
|
82
|
-
border: 1px solid ${({theme:a})=>a.colors.neutral150};
|
|
83
|
-
border-radius: ${({theme:a})=>a.borderRadius};
|
|
84
|
-
width: var(--radix-combobox-trigger-width);
|
|
85
|
-
/* This is from the design-system figma file. */
|
|
86
|
-
max-height: 15rem;
|
|
87
|
-
z-index: ${({theme:a})=>a.zIndices[1]};
|
|
88
|
-
`,Oe=(0,E.ZP)(c.hQ.Viewport)`
|
|
89
|
-
padding: ${({theme:a})=>a.spaces[1]};
|
|
90
|
-
`,le=i.forwardRef(({children:a,value:P,disabled:U,textValue:N,...W},H)=>(0,e.jsx)(c.hQ.ComboboxItem,{asChild:!0,value:P,disabled:U,textValue:N,children:(0,e.jsx)(B,{ref:H,...W,children:(0,e.jsx)(c.hQ.ItemText,{asChild:!0,children:(0,e.jsx)(R.Z,{children:a})})})})),B=E.ZP.div`
|
|
91
|
-
width: 100%;
|
|
92
|
-
border: none;
|
|
93
|
-
text-align: left;
|
|
94
|
-
outline-offset: -3px;
|
|
95
|
-
padding: ${({theme:a})=>a.spaces[2]} ${({theme:a})=>a.spaces[4]};
|
|
96
|
-
background-color: ${({theme:a})=>a.colors.neutral0};
|
|
97
|
-
border-radius: ${({theme:a})=>a.borderRadius};
|
|
98
|
-
user-select: none;
|
|
99
|
-
|
|
100
|
-
&[data-selected] {
|
|
101
|
-
background-color: ${({theme:a})=>a.colors.primary100};
|
|
102
|
-
|
|
103
|
-
${R.Z} {
|
|
104
|
-
color: ${({theme:a})=>a.colors.primary600};
|
|
105
|
-
font-weight: bold;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:hover,
|
|
110
|
-
&[data-highlighted] {
|
|
111
|
-
outline: none;
|
|
112
|
-
background-color: ${({theme:a,$hasHover:P=!0})=>P?a.colors.primary100:a.colors.neutral0};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&[data-highlighted] {
|
|
116
|
-
${R.Z} {
|
|
117
|
-
color: ${({theme:a})=>a.colors.primary600};
|
|
118
|
-
font-weight: bold;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
`},90333:function(Z,x,t){t.d(x,{O:function(){return i}});var e=t(21428);const i=e.Wx},99223:function(Z,x,t){t.d(x,{Z:function(){return y}});var e=t(74512),i=t(32735),h=t(60216),v=t(8471),c=t(87933),E=t(72850);const L=(0,v.ZP)(c.k)`
|
|
122
|
-
& > * + * {
|
|
123
|
-
margin-left: ${({theme:f})=>f.spaces[2]};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
margin-left: ${({pullRight:f})=>f?"auto":void 0};
|
|
127
|
-
`,O=(0,v.ZP)(L)`
|
|
128
|
-
flex-shrink: 0;
|
|
129
|
-
`,y=({startActions:f,endActions:g})=>f||g?(0,e.jsx)(E.x,{paddingLeft:10,paddingRight:10,children:(0,e.jsx)(E.x,{paddingBottom:4,children:(0,e.jsxs)(c.k,{justifyContent:"space-between",alignItems:"flex-start",children:[f&&(0,e.jsx)(L,{wrap:"wrap",children:f}),g&&(0,e.jsx)(O,{pullRight:!0,children:g})]})})}):null;y.defaultProps={endActions:void 0,startActions:void 0},y.propTypes={endActions:h.node,startActions:h.node}}}]);
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5905],{69073:function(G,P,n){n.r(P),n.d(P,{default:function(){return lt}});var e=n(32735),r=n(24989),i=n(19406),j=n(66456),B=n(68625),K=n(29439),J=n(82055),m=n(87933),L=n(41415),S=n(17e3),f=n(72850),$=n(33795),T=n.n($),F=n(23973),s=n.n(F),b=n(89793),h=n.n(b),g=n(23940),Z=n.n(g),R=n(67879),N=n(53038),ee=n(60216),o=n.n(ee),Y=n(56755),fe=n(33827),he=n(94547),te=n(19786),D=n(49372),Pe=n(73269),ye=n(32237),X=n(198),M=n(8471),C=n(92318),je=n(35331);const we=(0,M.ZP)(m.k)`
|
|
2
|
-
border-radius: 50%;
|
|
3
|
-
color: ${({theme:t,isActive:a})=>a?t.colors.primary600:t.colors.neutral600};
|
|
4
|
-
height: ${({theme:t})=>t.spaces[8]};
|
|
5
|
-
width: ${({theme:t})=>t.spaces[8]};
|
|
6
|
-
|
|
7
|
-
svg {
|
|
8
|
-
height: ${({theme:t})=>t.spaces[5]};
|
|
9
|
-
width: ${({theme:t})=>t.spaces[5]};
|
|
10
|
-
}
|
|
11
|
-
`;function re({isActive:t}){return e.createElement(we,{alignItems:"center",background:t?"primary200":"neutral200",justifyContent:"center",isActive:t},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e.createElement("path",{d:"M216.3 2c4.8-2.6 10.5-2.6 15.3 0L422.3 106c5.1 2.8 8.3 8.2 8.3 14s-3.2 11.2-8.3 14L231.7 238c-4.8 2.6-10.5 2.6-15.3 0L25.7 134c-5.1-2.8-8.3-8.2-8.3-14s3.2-11.2 8.3-14L216.3 2zM23.7 170l176 96c5.1 2.8 8.3 8.2 8.3 14V496c0 5.6-3 10.9-7.8 13.8s-10.9 3-15.8 .3L8.3 414C3.2 411.2 0 405.9 0 400V184c0-5.6 3-10.9 7.8-13.8s10.9-3 15.8-.3zm400.7 0c5-2.7 11-2.6 15.8 .3s7.8 8.1 7.8 13.8V400c0 5.9-3.2 11.2-8.3 14l-176 96c-5 2.7-11 2.6-15.8-.3s-7.8-8.1-7.8-13.8V280c0-5.9 3.2-11.2 8.3-14l176-96z",fill:"currentColor"})))}re.defaultProps={isActive:!1},re.propTypes={isActive:o().bool};const ve=(0,M.ZP)(f.x)`
|
|
12
|
-
position: absolute;
|
|
13
|
-
display: none;
|
|
14
|
-
top: 5px;
|
|
15
|
-
right: ${(0,r.Q1)(8)};
|
|
16
|
-
|
|
17
|
-
svg {
|
|
18
|
-
width: ${(0,r.Q1)(10)};
|
|
19
|
-
height: ${(0,r.Q1)(10)};
|
|
20
|
-
|
|
21
|
-
path {
|
|
22
|
-
fill: ${({theme:t})=>t.colors.primary600};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`,Be=(0,M.ZP)(m.k)`
|
|
26
|
-
width: ${(0,r.Q1)(140)};
|
|
27
|
-
height: ${(0,r.Q1)(80)};
|
|
28
|
-
position: relative;
|
|
29
|
-
border: 1px solid ${({theme:t})=>t.colors.neutral200};
|
|
30
|
-
background: ${({theme:t})=>t.colors.neutral100};
|
|
31
|
-
border-radius: ${({theme:t})=>t.borderRadius};
|
|
32
|
-
max-width: 100%;
|
|
33
|
-
|
|
34
|
-
&.active,
|
|
35
|
-
&:focus,
|
|
36
|
-
&:hover {
|
|
37
|
-
border: 1px solid ${({theme:t})=>t.colors.primary200};
|
|
38
|
-
background: ${({theme:t})=>t.colors.primary100};
|
|
39
|
-
|
|
40
|
-
${ve} {
|
|
41
|
-
display: block;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
${D.Z} {
|
|
45
|
-
color: ${({theme:t})=>t.colors.primary600};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* > ComponentIcon */
|
|
49
|
-
> div:first-child {
|
|
50
|
-
background: ${({theme:t})=>t.colors.primary200};
|
|
51
|
-
color: ${({theme:t})=>t.colors.primary600};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
`;function ie({component:t,dzName:a,index:l,isActive:d,isInDevelopmentMode:u,onClick:c}){const{modifiedData:v,removeComponentFromDynamicZone:I}=(0,X.Z)(),{schema:{displayName:w}}=T()(v,["components",t],{schema:{}}),A=E=>{E.stopPropagation(),I(a,l)};return e.createElement(Be,{as:"button",alignItems:"center",direction:"column",className:d?"active":"",borderRadius:"borderRadius",justifyContent:"center",paddingLeft:4,paddingRight:4,shrink:0,type:"button",onClick:c},e.createElement(re,{isActive:d}),e.createElement(f.x,{marginTop:1,maxWidth:"100%"},e.createElement(D.Z,{variant:"pi",fontWeight:"bold",ellipsis:!0},w)),u&&e.createElement(ve,{as:"button",onClick:A,type:"button"},e.createElement(je.Z,null)))}ie.defaultProps={component:null,isActive:!1,isInDevelopmentMode:!1,onClick(){}},ie.propTypes={component:o().string,dzName:o().string.isRequired,index:o().number.isRequired,isActive:o().bool,isInDevelopmentMode:o().bool,onClick:o().func};var Ie=ie,Ee=M.ZP.tr`
|
|
55
|
-
&.component-row,
|
|
56
|
-
&.dynamiczone-row {
|
|
57
|
-
position: relative;
|
|
58
|
-
border-top: none !important;
|
|
59
|
-
|
|
60
|
-
table tr:first-child {
|
|
61
|
-
border-top: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
> td:first-of-type {
|
|
65
|
-
padding: 0 0 0 ${(0,r.Q1)(20)};
|
|
66
|
-
position: relative;
|
|
67
|
-
|
|
68
|
-
&::before {
|
|
69
|
-
content: '';
|
|
70
|
-
width: ${(0,r.Q1)(4)};
|
|
71
|
-
height: calc(100% - 40px);
|
|
72
|
-
position: absolute;
|
|
73
|
-
top: -7px;
|
|
74
|
-
left: 1.625rem;
|
|
75
|
-
border-radius: 4px;
|
|
76
|
-
|
|
77
|
-
${({isFromDynamicZone:t,isChildOfDynamicZone:a,theme:l})=>a?`background-color: ${l.colors.primary200};`:t?`background-color: ${l.colors.primary200};`:`background: ${l.colors.neutral150};`}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.dynamiczone-row > td:first-of-type {
|
|
83
|
-
padding: 0;
|
|
84
|
-
}
|
|
85
|
-
`;function le({customRowComponent:t,component:a,isFromDynamicZone:l,isNestedInDZComponent:d,firstLoopComponentUid:u}){const{modifiedData:c}=(0,X.Z)(),{schema:{attributes:v}}=T()(c,["components",a],{schema:{attributes:[]}});return e.createElement(Ee,{isChildOfDynamicZone:l,className:"component-row"},e.createElement("td",{colSpan:12},e.createElement(Ce,{customRowComponent:t,items:v,targetUid:a,firstLoopComponentUid:u||a,editTarget:"components",isFromDynamicZone:l,isNestedInDZComponent:d,isSub:!0,secondLoopComponentUid:u?a:null})))}le.defaultProps={component:null,customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1},le.propTypes={component:o().string,customRowComponent:o().func,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,isNestedInDZComponent:o().bool};var xe=le;const ke=(0,M.ZP)(i.Z)`
|
|
86
|
-
width: ${(0,r.Q1)(32)};
|
|
87
|
-
height: ${(0,r.Q1)(32)};
|
|
88
|
-
padding: ${(0,r.Q1)(9)};
|
|
89
|
-
border-radius: ${(0,r.Q1)(64)};
|
|
90
|
-
background: ${({theme:t})=>t.colors.primary100};
|
|
91
|
-
path {
|
|
92
|
-
fill: ${({theme:t})=>t.colors.primary600};
|
|
93
|
-
}
|
|
94
|
-
`,Oe=(0,M.ZP)(f.x)`
|
|
95
|
-
height: ${(0,r.Q1)(90)};
|
|
96
|
-
position: absolute;
|
|
97
|
-
width: 100%;
|
|
98
|
-
top: 0;
|
|
99
|
-
left: 0;
|
|
100
|
-
`,Fe=(0,M.ZP)(m.k)`
|
|
101
|
-
width: 100%;
|
|
102
|
-
overflow-x: auto;
|
|
103
|
-
`,We=(0,M.ZP)(f.x)`
|
|
104
|
-
padding-top: ${(0,r.Q1)(90)};
|
|
105
|
-
`,Ue=(0,M.ZP)(m.k)`
|
|
106
|
-
flex-shrink: 0;
|
|
107
|
-
width: ${(0,r.Q1)(140)};
|
|
108
|
-
height: ${(0,r.Q1)(80)};
|
|
109
|
-
justify-content: center;
|
|
110
|
-
align-items: center;
|
|
111
|
-
`;function se({customRowComponent:t,components:a,addComponent:l,name:d,targetUid:u}){const{isInDevelopmentMode:c}=(0,X.Z)(),[v,I]=(0,e.useState)(0),{formatMessage:w}=(0,R.Z)(),A=p=>{v!==p&&I(p)},E=()=>{l(d)};return e.createElement(Ee,{className:"dynamiczone-row",isFromDynamicZone:!0},e.createElement("td",{colSpan:12},e.createElement(Oe,{paddingLeft:8},e.createElement(Fe,{gap:2},c&&e.createElement("button",{type:"button",onClick:E},e.createElement(Ue,{direction:"column",alignItems:"stretch",gap:1},e.createElement(ke,null),e.createElement(D.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600"},w({id:(0,C.Z)("button.component.add"),formatMessage:"Add a component"})))),a.map((p,y)=>e.createElement(Ie,{key:p,dzName:d,index:y,component:p,isActive:v===y,isInDevelopmentMode:c,onClick:()=>A(y)})))),e.createElement(We,null,a.map((p,y)=>{const x={customRowComponent:t,component:p};return e.createElement(f.x,{tabId:`${y}`,key:p,style:{display:v===y?"block":"none"}},e.createElement("table",null,e.createElement("tbody",null,e.createElement(xe,{...x,isFromDynamicZone:!0,targetUid:u,key:p}))))}))))}se.defaultProps={addComponent(){},components:[],customRowComponent:null,name:null},se.propTypes={addComponent:o().func,components:o().instanceOf(Array),customRowComponent:o().func,name:o().string,targetUid:o().string.isRequired};var Se=se,Ne=(0,M.ZP)(f.x)`
|
|
112
|
-
table {
|
|
113
|
-
width: 100%;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
thead {
|
|
118
|
-
border-bottom: 1px solid ${({theme:t})=>t.colors.neutral150};
|
|
119
|
-
|
|
120
|
-
tr {
|
|
121
|
-
border-top: 0;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
tr {
|
|
126
|
-
border-top: 1px solid ${({theme:t})=>t.colors.neutral150};
|
|
127
|
-
|
|
128
|
-
& td,
|
|
129
|
-
& th {
|
|
130
|
-
padding: ${({theme:t})=>t.spaces[4]};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
& td:first-of-type,
|
|
134
|
-
& th:first-of-type {
|
|
135
|
-
padding: 0 ${({theme:t})=>t.spaces[1]};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
th,
|
|
140
|
-
td {
|
|
141
|
-
vertical-align: middle;
|
|
142
|
-
text-align: left;
|
|
143
|
-
color: ${({theme:t})=>t.colors.neutral600};
|
|
144
|
-
outline-offset: -4px;
|
|
145
|
-
}
|
|
146
|
-
`;const Ve=(0,M.ZP)(f.x)`
|
|
147
|
-
height: ${24/16}rem;
|
|
148
|
-
width: ${24/16}rem;
|
|
149
|
-
border-radius: 50%;
|
|
150
|
-
display: flex;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
align-items: center;
|
|
153
|
-
|
|
154
|
-
svg {
|
|
155
|
-
height: ${10/16}rem;
|
|
156
|
-
width: ${10/16}rem;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
svg path {
|
|
160
|
-
fill: ${({theme:t,color:a})=>t.colors[`${a}600`]};
|
|
161
|
-
}
|
|
162
|
-
`,ze=(0,M.ZP)(f.x)`
|
|
163
|
-
border-radius: 0 0 ${({theme:t})=>t.borderRadius} ${({theme:t})=>t.borderRadius};
|
|
164
|
-
display: block;
|
|
165
|
-
width: 100%;
|
|
166
|
-
border: none;
|
|
167
|
-
position: relative;
|
|
168
|
-
left: -0.25rem;
|
|
169
|
-
`,be=({children:t,icon:a,color:l,...d})=>e.createElement(ze,{paddingBottom:4,paddingTop:4,as:"button",type:"button",...d},e.createElement(m.k,null,e.createElement(Ve,{color:l,"aria-hidden":!0,background:`${l}200`},a),e.createElement(f.x,{paddingLeft:3},e.createElement(D.Z,{variant:"pi",fontWeight:"bold",textColor:`${l}600`},t))));be.propTypes={color:o().string.isRequired,children:o().string.isRequired,icon:o().node.isRequired};var Ke=be;function ce({addComponentToDZ:t,customRowComponent:a,editTarget:l,firstLoopComponentUid:d,isFromDynamicZone:u,isMain:c,isNestedInDZComponent:v,isSub:I,items:w,secondLoopComponentUid:A,targetUid:E}){const{formatMessage:p}=(0,R.Z)(),{trackUsage:y}=(0,r.rS)(),{isInDevelopmentMode:x,modifiedData:Q,isInContentTypeView:W}=(0,X.Z)(),{onOpenModalAddField:V}=(0,ye.Z)(),k=()=>{y("hasClickedCTBAddFieldBanner"),V({forTarget:l,targetUid:E})};return E?w.length===0&&c?e.createElement(Y.i,{colCount:2,rowCount:2},e.createElement(fe.h,null,e.createElement(he.Tr,null,e.createElement(te.Th,null,e.createElement(D.Z,{variant:"sigma",textColor:"neutral600"},p({id:"global.name",defaultMessage:"Name"}))),e.createElement(te.Th,null,e.createElement(D.Z,{variant:"sigma",textColor:"neutral600"},p({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{action:e.createElement(L.z,{onClick:k,size:"L",startIcon:e.createElement(i.Z,null),variant:"secondary"},p({id:(0,C.Z)("table.button.no-fields"),defaultMessage:"Add new field"})),colSpan:2,content:W?{id:(0,C.Z)("table.content.no-fields.collection-type"),defaultMessage:"Add your first field to this Collection-Type"}:{id:(0,C.Z)("table.content.no-fields.component"),defaultMessage:"Add your first field to this component"}})):e.createElement(Ne,null,e.createElement(f.x,{paddingLeft:6,paddingRight:c?6:0,...c&&{style:{overflowX:"auto"}}},e.createElement("table",null,c&&e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,e.createElement(D.Z,{variant:"sigma",textColor:"neutral600"},p({id:"global.name",defaultMessage:"Name"}))),e.createElement("th",{colSpan:"2"},e.createElement(D.Z,{variant:"sigma",textColor:"neutral600"},p({id:"global.type",defaultMessage:"Type"}))))),e.createElement("tbody",null,w.map(U=>{const{type:H}=U,q=a;return e.createElement(e.Fragment,{key:U.name},e.createElement(q,{...U,isNestedInDZComponent:v,targetUid:E,editTarget:l,firstLoopComponentUid:d,isFromDynamicZone:u,secondLoopComponentUid:A}),H==="component"&&e.createElement(xe,{...U,customRowComponent:a,targetUid:E,isNestedInDZComponent:u,editTarget:l,firstLoopComponentUid:d}),H==="dynamiczone"&&e.createElement(Se,{...U,customRowComponent:a,addComponent:t,targetUid:E}))})))),c&&x&&e.createElement(Pe.c,{icon:e.createElement(i.Z,null),onClick:k},p({id:(0,C.Z)(`form.button.add.field.to.${Q.contentType?Q.contentType.schema.kind:l||"collectionType"}`),defaultMessage:"Add another field"})),I&&x&&e.createElement(Ke,{icon:e.createElement(i.Z,null),onClick:k,color:u?"primary":"neutral"},p({id:(0,C.Z)("form.button.add.field.to.component"),defaultMessage:"Add another field"}))):e.createElement(Y.i,{colCount:2,rowCount:2},e.createElement(fe.h,null,e.createElement(he.Tr,null,e.createElement(te.Th,null,e.createElement(D.Z,{variant:"sigma",textColor:"neutral600"},p({id:"global.name",defaultMessage:"Name"}))),e.createElement(te.Th,null,e.createElement(D.Z,{variant:"sigma",textColor:"neutral600"},p({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{colSpan:2,content:{id:(0,C.Z)("table.content.create-first-content-type"),defaultMessage:"Create your first Collection-Type"}}))}ce.defaultProps={addComponentToDZ(){},customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1,isMain:!1,isSub:!1,items:[],secondLoopComponentUid:null,targetUid:null},ce.propTypes={addComponentToDZ:o().func,customRowComponent:o().func,editTarget:o().string.isRequired,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,isNestedInDZComponent:o().bool,isMain:o().bool,items:o().instanceOf(Array),secondLoopComponentUid:o().string,targetUid:o().string,isSub:o().bool};var Ce=ce,Te=n(50563),Qe=n(4038),Ze=n(74512);const He=t=>(0,Ze.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:(0,Ze.jsx)("path",{fill:"#8E8EA9",d:"M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 0 1 14 0v1Zm-2 0V9A5 5 0 0 0 7 9v1h10Zm-6 4v4h2v-4h-2Z"})}),Xe=He,Ge=(0,M.ZP)(f.x)`
|
|
170
|
-
position: absolute;
|
|
171
|
-
left: -1.125rem;
|
|
172
|
-
top: 0px;
|
|
173
|
-
|
|
174
|
-
&:before {
|
|
175
|
-
content: '';
|
|
176
|
-
width: ${4/16}rem;
|
|
177
|
-
height: ${12/16}rem;
|
|
178
|
-
background: ${({theme:t,color:a})=>t.colors[a]};
|
|
179
|
-
display: block;
|
|
180
|
-
}
|
|
181
|
-
`,Je=M.ZP.svg`
|
|
182
|
-
position: relative;
|
|
183
|
-
flex-shrink: 0;
|
|
184
|
-
transform: translate(-0.5px, -1px);
|
|
185
|
-
|
|
186
|
-
* {
|
|
187
|
-
fill: ${({theme:t,color:a})=>t.colors[a]};
|
|
188
|
-
}
|
|
189
|
-
`,Me=t=>e.createElement(Ge,null,e.createElement(Je,{width:"20",height:"23",viewBox:"0 0 20 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.02477 14.7513C8.65865 17.0594 11.6046 18.6059 17.5596 18.8856C18.6836 18.9384 19.5976 19.8435 19.5976 20.9688V20.9688C19.5976 22.0941 18.6841 23.0125 17.5599 22.9643C10.9409 22.6805 6.454 20.9387 3.75496 17.1258C0.937988 13.1464 0.486328 7.39309 0.486328 0.593262H4.50974C4.50974 7.54693 5.06394 11.9813 7.02477 14.7513Z"})));Me.propTypes={color:o().string.isRequired};var Ye=Me;const de=({content:t})=>Z()(t);de.defaultProps={content:null},de.propTypes={content:o().string};var qe=de,_e=(0,M.ZP)(f.x)`
|
|
190
|
-
position: relative;
|
|
191
|
-
`,et=n(25747);const pe=({type:t,customField:a,repeatable:l})=>{const{formatMessage:d}=(0,R.Z)();let u=t;return["integer","biginteger","float","decimal"].includes(t)?u="number":["string"].includes(t)&&(u="text"),a?e.createElement(D.Z,null,d({id:(0,C.Z)("attribute.customField"),defaultMessage:"Custom field"})):e.createElement(D.Z,null,d({id:(0,C.Z)(`attribute.${u}`),defaultMessage:t}),"\xA0",l&&d({id:(0,C.Z)("component.repeatable"),defaultMessage:"(repeatable)"}))};pe.defaultProps={customField:null,repeatable:!1},pe.propTypes={type:o().string.isRequired,customField:o().string,repeatable:o().bool};var tt=pe;function me({configurable:t,customField:a,editTarget:l,firstLoopComponentUid:d,isFromDynamicZone:u,name:c,onClick:v,relation:I,repeatable:w,secondLoopComponentUid:A,target:E,targetUid:p,type:y}){const{contentTypes:x,isInDevelopmentMode:Q,removeAttribute:W}=(0,X.Z)(),{formatMessage:V}=(0,R.Z)(),k=y==="relation"&&I.includes("morph"),U=["integer","biginteger","float","decimal"].includes(y)?"number":y,H=T()(x,[E],{}),q=T()(H,["schema","displayName"],""),_=T()(H,"plugin"),ge=E?"relation":U,ne=()=>{k||t!==!1&&v(l,A||d||p,c,y,a)};let z;return A&&d?z=2:d?z=1:z=0,e.createElement(_e,{as:"tr",...(0,r.X7)({fn:ne,condition:Q&&t&&!k})},e.createElement("td",{style:{position:"relative"}},z!==0&&e.createElement(Ye,{color:u?"primary200":"neutral150"}),e.createElement(m.k,{paddingLeft:2,gap:4},e.createElement(et.Z,{type:ge,customField:a}),e.createElement(D.Z,{fontWeight:"bold"},c))),e.createElement("td",null,E?e.createElement(D.Z,null,V({id:(0,C.Z)(`modelPage.attribute.${k?"relation-polymorphic":"relationWith"}`),defaultMessage:"Relation with"}),"\xA0",e.createElement("span",{style:{fontStyle:"italic"}},e.createElement(qe,{content:q}),"\xA0",_&&`(${V({id:(0,C.Z)("from"),defaultMessage:"from"})}: ${_})`)):e.createElement(tt,{type:y,customField:a,repeatable:w})),e.createElement("td",null,Q?e.createElement(m.k,{justifyContent:"flex-end",...r.UW},t?e.createElement(m.k,{gap:1},!k&&e.createElement(Te.h,{onClick:ne,label:`${V({id:"app.utils.edit",defaultMessage:"Edit"})} ${c}`,noBorder:!0,icon:e.createElement(B.Z,null)}),e.createElement(Te.h,{onClick:oe=>{oe.stopPropagation(),W(l,c,A||d||"")},label:`${V({id:"global.delete",defaultMessage:"Delete"})} ${c}`,noBorder:!0,icon:e.createElement(Qe.Z,null)})):e.createElement(Xe,null)):e.createElement(f.x,{height:(0,r.Q1)(32)})))}me.defaultProps={configurable:!0,customField:null,firstLoopComponentUid:null,isFromDynamicZone:!1,onClick(){},relation:"",repeatable:!1,secondLoopComponentUid:null,target:null,targetUid:null,type:null},me.propTypes={configurable:o().bool,customField:o().string,editTarget:o().string.isRequired,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,name:o().string.isRequired,onClick:o().func,relation:o().string,repeatable:o().bool,secondLoopComponentUid:o().string,target:o().string,targetUid:o().string,type:o().string};var nt=(0,e.memo)(me),ot=t=>{let a;switch(t){case"date":case"datetime":case"time":case"timestamp":a="date";break;case"integer":case"biginteger":case"decimal":case"float":a="number";break;case"string":case"text":a="text";break;case"":a="relation";break;default:a=t}return a},at=n(2669);const rt={collectionTypesConfigurations:[{action:"plugin::content-manager.collection-types.configure-view",subject:null}],componentsConfigurations:[{action:"plugin::content-manager.components.configure-layout",subject:null}],singleTypesConfigurations:[{action:"plugin::content-manager.single-types.configure-view",subject:null}]},ue=({disabled:t,isTemporary:a,isInContentTypeView:l,contentTypeKind:d,targetUid:u})=>{const{formatMessage:c}=(0,R.Z)(),{push:v}=(0,N.k6)(),{collectionTypesConfigurations:I,componentsConfigurations:w,singleTypesConfigurations:A}=rt,E=c({id:"content-type-builder.form.button.configure-view"});let p=I;const y=()=>(a||v(l?`/content-manager/collectionType/${u}/configurations/edit`:`/content-manager/components/${u}/configurations/edit`),!1);return l&&d==="singleType"&&(p=A),l||(p=w),e.createElement(r.jW,{permissions:p},e.createElement(L.z,{startIcon:e.createElement(at.Z,null),variant:"tertiary",onClick:y,disabled:a||t},E))};ue.defaultProps={contentTypeKind:"collectionType",isInContentTypeView:!0,isTemporary:!1,targetUid:""},ue.propTypes={disabled:o().bool.isRequired,contentTypeKind:o().string,isInContentTypeView:o().bool,isTemporary:o().bool,targetUid:o().string};var it=(0,e.memo)(ue),lt=()=>{const{initialData:t,modifiedData:a,isInDevelopmentMode:l,isInContentTypeView:d,submitData:u}=(0,X.Z)(),{formatMessage:c}=(0,R.Z)(),{trackUsage:v}=(0,r.rS)(),I=(0,N.$B)("/plugins/content-type-builder/:kind/:currentUID"),{onOpenModalAddComponentsToDZ:w,onOpenModalAddField:A,onOpenModalEditField:E,onOpenModalEditSchema:p,onOpenModalEditCustomField:y}=(0,ye.Z)(),x=d?"contentType":"component",Q=[x,"schema","attributes"],W=T()(a,[x,"uid"]),V=T()(a,[x,"isTemporary"],!1),k=T()(a,[x,"schema","kind"],null),U=T()(a,Q,[]),H=s()(t,[x,"plugin"]),q=!h()(a,t),_=d?"contentType":"component",ge=O=>{w({dynamicZoneTarget:O,targetUid:W})},ne=async(O,$e,De,Le,Re)=>{const Ae=ot(Le);Re?y({forTarget:O,targetUid:$e,attributeName:De,attributeType:Ae,customFieldUid:Re}):E({forTarget:O,targetUid:$e,attributeName:De,attributeType:Ae,step:Le==="component"?"2":null})};let z=T()(a,[x,"schema","displayName"],"");const oe=T()(a,[x,"schema","kind"],""),ae=I?.params.currentUID==="create-content-type";!z&&ae&&(z=c({id:(0,C.Z)("button.model.create"),defaultMessage:"Create new collection type"}));const st=()=>{const O=oe||x;O==="collectionType"&&v("willEditNameOfContentType"),O==="singleType"&&v("willEditNameOfSingleType"),p({modalType:x,forTarget:x,targetUid:W,kind:O})};return e.createElement(e.Fragment,null,e.createElement(N.NL,{message:c({id:(0,C.Z)("prompt.unsaved")}),when:q}),e.createElement(J.T,{id:"title",primaryAction:l&&e.createElement(m.k,{gap:2},!ae&&e.createElement(L.z,{startIcon:e.createElement(i.Z,null),variant:"secondary",onClick:()=>{A({forTarget:_,targetUid:W})}},c({id:(0,C.Z)("button.attributes.add.another")})),e.createElement(L.z,{startIcon:e.createElement(j.Z,null),onClick:()=>u(),type:"submit",disabled:h()(a,t)},c({id:"global.save",defaultMessage:"Save"}))),secondaryAction:l&&!H&&!ae&&e.createElement(L.z,{startIcon:e.createElement(B.Z,null),variant:"tertiary",onClick:st},c({id:"app.utils.edit",defaultMessage:"Edit"})),title:Z()(z),subtitle:c({id:(0,C.Z)("listView.headerLayout.description"),defaultMessage:"Build the data architecture of your content"}),navigationAction:e.createElement(r.rU,{startIcon:e.createElement(K.Z,null),to:"/plugins/content-type-builder/"},c({id:"global.back",defaultMessage:"Back"}))}),e.createElement(S.D,null,e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:4},e.createElement(m.k,{justifyContent:"flex-end"},e.createElement(m.k,{gap:2},e.createElement(it,{key:"link-to-cm-settings-view",targetUid:W,isTemporary:V,isInContentTypeView:d,contentTypeKind:k,disabled:ae}))),e.createElement(f.x,{background:"neutral0",shadow:"filterShadow",hasRadius:!0},e.createElement(Ce,{items:U,customRowComponent:O=>e.createElement(nt,{...O,onClick:ne}),addComponentToDZ:ge,targetUid:W,editTarget:_,isMain:!0})))))}},17e3:function(G,P,n){n.d(P,{D:function(){return B}});var e=n(74512),r=n(32735),i=n(60216),j=n(72850);const B=({children:K})=>(0,e.jsx)(j.x,{paddingLeft:10,paddingRight:10,children:K});B.propTypes={children:i.node.isRequired}},82055:function(G,P,n){n.d(P,{T:function(){return $}});var e=n(74512),r=n(32735),i=n(60216),j=n(8471);const B=s=>{const b=(0,r.useRef)(null),[h,g]=(0,r.useState)(!0),Z=([R])=>{g(R.isIntersecting)};return(0,r.useEffect)(()=>{const R=b.current,N=new IntersectionObserver(Z,s);return R&&N.observe(b.current),()=>{R&&N.disconnect()}},[b,s]),[b,h]};var K=n(63060);const J=(s,b)=>{const h=(0,K.W)(b);(0,r.useLayoutEffect)(()=>{const g=new ResizeObserver(h);return Array.isArray(s)?s.forEach(Z=>{Z.current&&g.observe(Z.current)}):s.current&&g.observe(s.current),()=>{g.disconnect()}},[s,h])};var m=n(72850),L=n(87933),S=n(49372);const f=()=>{const s=(0,r.useRef)(null),[b,h]=(0,r.useState)(null),[g,Z]=B({root:null,rootMargin:"0px",threshold:0});return J(g,()=>{g.current&&h(g.current.getBoundingClientRect())}),(0,r.useEffect)(()=>{s.current&&h(s.current.getBoundingClientRect())},[s]),{containerRef:g,isVisible:Z,baseHeaderLayoutRef:s,headerSize:b}},$=s=>{const{containerRef:b,isVisible:h,baseHeaderLayoutRef:g,headerSize:Z}=f();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:Z?.height},ref:b,children:h&&(0,e.jsx)(F,{ref:g,...s})}),!h&&(0,e.jsx)(F,{...s,sticky:!0,width:Z?.width})]})};$.displayName="HeaderLayout";const T=(0,j.ZP)(m.x)`
|
|
192
|
-
width: ${s=>s.width}px;
|
|
193
|
-
z-index: ${({theme:s})=>s.zIndices[1]};
|
|
194
|
-
`,F=r.forwardRef(({navigationAction:s,primaryAction:b,secondaryAction:h,subtitle:g,title:Z,sticky:R,width:N,...ee},o)=>{const Y=typeof g=="string";return R?(0,e.jsx)(T,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:N,"data-strapi-header-sticky":!0,children:(0,e.jsxs)(L.k,{justifyContent:"space-between",children:[(0,e.jsxs)(L.k,{children:[s&&(0,e.jsx)(m.x,{paddingRight:3,children:s}),(0,e.jsxs)(m.x,{children:[(0,e.jsx)(S.Z,{variant:"beta",as:"h1",...ee,children:Z}),Y?(0,e.jsx)(S.Z,{variant:"pi",textColor:"neutral600",children:g}):g]}),h?(0,e.jsx)(m.x,{paddingLeft:4,children:h}):null]}),(0,e.jsx)(L.k,{children:b?(0,e.jsx)(m.x,{paddingLeft:2,children:b}):void 0})]})}):(0,e.jsxs)(m.x,{ref:o,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:s?6:8,background:"neutral100","data-strapi-header":!0,children:[s?(0,e.jsx)(m.x,{paddingBottom:2,children:s}):null,(0,e.jsxs)(L.k,{justifyContent:"space-between",children:[(0,e.jsxs)(L.k,{minWidth:0,children:[(0,e.jsx)(S.Z,{as:"h1",variant:"alpha",...ee,children:Z}),h?(0,e.jsx)(m.x,{paddingLeft:4,children:h}):null]}),b]}),Y?(0,e.jsx)(S.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:g}):g]})});F.displayName="BaseHeaderLayout",F.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},F.propTypes={navigationAction:i.node,primaryAction:i.node,secondaryAction:i.node,sticky:i.bool,subtitle:i.oneOfType([i.string,i.node]),title:i.string.isRequired,width:i.number},$.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},$.propTypes={navigationAction:i.node,primaryAction:i.node,secondaryAction:i.node,subtitle:i.oneOfType([i.string,i.node]),title:i.string.isRequired}},73269:function(G,P,n){n.d(P,{c:function(){return f}});var e=n(74512),r=n(32735),i=n(60216),j=n(8471),B=n(72850),K=n(9026),J=n(87933),m=n(49372);const L=(0,j.ZP)(B.x)`
|
|
195
|
-
height: ${24/16}rem;
|
|
196
|
-
width: ${24/16}rem;
|
|
197
|
-
border-radius: 50%;
|
|
198
|
-
display: flex;
|
|
199
|
-
justify-content: center;
|
|
200
|
-
align-items: center;
|
|
201
|
-
|
|
202
|
-
svg {
|
|
203
|
-
height: ${10/16}rem;
|
|
204
|
-
width: ${10/16}rem;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
svg path {
|
|
208
|
-
fill: ${({theme:$})=>$.colors.primary600};
|
|
209
|
-
}
|
|
210
|
-
`,S=(0,j.ZP)(B.x)`
|
|
211
|
-
border-radius: 0 0 ${({theme:$})=>$.borderRadius} ${({theme:$})=>$.borderRadius};
|
|
212
|
-
display: block;
|
|
213
|
-
width: 100%;
|
|
214
|
-
border: none;
|
|
215
|
-
`,f=({children:$,icon:T,...F})=>(0,e.jsxs)("div",{children:[(0,e.jsx)(K.i,{}),(0,e.jsx)(S,{as:"button",background:"primary100",padding:5,...F,children:(0,e.jsxs)(J.k,{children:[(0,e.jsx)(L,{"aria-hidden":!0,background:"primary200",children:T}),(0,e.jsx)(B.x,{paddingLeft:3,children:(0,e.jsx)(m.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600",children:$})})]})})]});f.propTypes={children:i.string.isRequired,icon:i.node.isRequired}},29439:function(G,P,n){n.d(P,{Z:function(){return i}});var e=n(74512);const r=j=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...j,children:(0,e.jsx)("path",{fill:"#212134",d:"M24 13.3a.2.2 0 0 1-.2.2H5.74l8.239 8.239a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L.14 12.14a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L13.98 1.98a.2.2 0 0 1 0 .282L5.74 10.5H23.8c.11 0 .2.09.2.2v2.6Z"})}),i=r},2669:function(G,P,n){n.d(P,{Z:function(){return i}});var e=n(74512);const r=j=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...j,children:(0,e.jsx)("path",{fill:"#212134",d:"M4.8.2c0-.11.09-.2.2-.2h18.8c.11 0 .2.09.2.2v4.4a.2.2 0 0 1-.2.2H5a.2.2 0 0 1-.2-.2V.2ZM0 9.8c0-.11.09-.2.2-.2H19c.11 0 .2.09.2.2v4.4a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V9.8ZM5 19.2a.2.2 0 0 0-.2.2v4.4c0 .11.09.2.2.2h18.8a.2.2 0 0 0 .2-.2v-4.4a.2.2 0 0 0-.2-.2H5Z"})}),i=r}}]);
|