@strapi/admin 4.10.4 → 4.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/build/{3816.2b58bc1a.chunk.js → 3816.1a828046.chunk.js} +19 -22
  2. package/build/{5542.5328b662.chunk.js → 5542.002522eb.chunk.js} +13 -13
  3. package/build/617.2c8c7183.chunk.js +155 -0
  4. package/build/{Admin-authenticatedApp.dbb99d34.chunk.js → Admin-authenticatedApp.6b74c5fd.chunk.js} +1 -1
  5. package/build/audit-logs-settings-page.7ec976e1.chunk.js +129 -0
  6. package/build/{content-manager.a837bfcd.chunk.js → content-manager.a97db8a1.chunk.js} +1 -1
  7. package/build/{email-settings-page.5bc22e5a.chunk.js → email-settings-page.dba83275.chunk.js} +4 -4
  8. package/build/i18n-settings-page.e34ec940.chunk.js +114 -0
  9. package/build/index.html +1 -1
  10. package/build/main.57970a57.js +2674 -0
  11. package/build/{runtime~main.a096f3d0.js → runtime~main.df78e1c7.js} +2 -2
  12. package/build/upload-settings.63d99bf5.chunk.js +14 -0
  13. package/build/upload.bf183c0c.chunk.js +34 -0
  14. package/build/{users-advanced-settings-page.dd2a4954.chunk.js → users-advanced-settings-page.4f49ca57.chunk.js} +3 -3
  15. package/build/users-email-settings-page.756aa7ab.chunk.js +24 -0
  16. package/build/users-providers-settings-page.ff9e4c0a.chunk.js +29 -0
  17. package/build/webhook-edit-page.550be445.chunk.js +128 -0
  18. package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +6 -1
  19. package/package.json +11 -11
  20. package/build/617.ce23dea8.chunk.js +0 -155
  21. package/build/audit-logs-settings-page.48b921f9.chunk.js +0 -129
  22. package/build/i18n-settings-page.1581894e.chunk.js +0 -114
  23. package/build/main.31bdf27e.js +0 -2679
  24. package/build/upload-settings.4d962053.chunk.js +0 -14
  25. package/build/upload.4dcd513f.chunk.js +0 -34
  26. package/build/users-email-settings-page.510648ab.chunk.js +0 -24
  27. package/build/users-providers-settings-page.0ee7d54f.chunk.js +0 -29
  28. package/build/webhook-edit-page.36c9f20d.chunk.js +0 -128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/admin",
3
- "version": "4.10.4",
3
+ "version": "4.10.5",
4
4
  "description": "Strapi Admin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,15 +48,15 @@
48
48
  "@casl/ability": "^5.4.3",
49
49
  "@fingerprintjs/fingerprintjs": "3.4.1",
50
50
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
51
- "@strapi/babel-plugin-switch-ee-ce": "4.10.4",
52
- "@strapi/data-transfer": "4.10.4",
53
- "@strapi/design-system": "1.7.3",
54
- "@strapi/helper-plugin": "4.10.4",
55
- "@strapi/icons": "1.7.3",
56
- "@strapi/permissions": "4.10.4",
57
- "@strapi/provider-audit-logs-local": "4.10.4",
58
- "@strapi/typescript-utils": "4.10.4",
59
- "@strapi/utils": "4.10.4",
51
+ "@strapi/babel-plugin-switch-ee-ce": "4.10.5",
52
+ "@strapi/data-transfer": "4.10.5",
53
+ "@strapi/design-system": "1.7.5",
54
+ "@strapi/helper-plugin": "4.10.5",
55
+ "@strapi/icons": "1.7.5",
56
+ "@strapi/permissions": "4.10.5",
57
+ "@strapi/provider-audit-logs-local": "4.10.5",
58
+ "@strapi/typescript-utils": "4.10.5",
59
+ "@strapi/utils": "4.10.5",
60
60
  "axios": "1.3.4",
61
61
  "babel-loader": "^9.1.2",
62
62
  "babel-plugin-styled-components": "2.0.2",
@@ -168,5 +168,5 @@
168
168
  }
169
169
  }
170
170
  },
171
- "gitHead": "3f55bac2e7fc3b15c85ac6910be1e95bb7eed9e5"
171
+ "gitHead": "d9277d616b4478a3839e79e47330a4aaf167a2f1"
172
172
  }
@@ -1,155 +0,0 @@
1
- (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[617],{56671:function(h,i,e){var n=e(35897),s=e(74741),r=s(n);h.exports=r},91131:function(h,i,e){var n=e(94318),s=e(3387),r="[object RegExp]";function t(a){return s(a)&&n(a)==r}h.exports=t},52920:function(h,i,e){var n=e(56671),s=e(81580);function r(t,a){var o=-1,d=s(t)?Array(t.length):[];return n(t,function(_,c,g){d[++o]=a(_,c,g)}),d}h.exports=r},50690:function(h,i,e){var n=e(26460),s=e(80166),r=e(88904),t=e(52920),a=e(36024),o=e(76535),d=e(1397),_=e(15362),c=e(77236);function g(u,x,M){x.length?x=n(x,function(E){return c(E)?function(v){return s(v,E.length===1?E[0]:E)}:E}):x=[_];var f=-1;x=n(x,o(r));var p=t(u,function(E,v,m){var C=n(x,function(P){return P(E)});return{criteria:C,index:++f,value:E}});return a(p,function(E,v){return d(E,v,M)})}h.exports=g},36024:function(h){function i(e,n){var s=e.length;for(e.sort(n);s--;)e[s]=e[s].value;return e}h.exports=i},40709:function(h,i,e){var n=e(22945);function s(r,t){if(r!==t){var a=r!==void 0,o=r===null,d=r===r,_=n(r),c=t!==void 0,g=t===null,u=t===t,x=n(t);if(!g&&!x&&!_&&r>t||_&&c&&u&&!g&&!x||o&&c&&u||!a&&u||!d)return 1;if(!o&&!_&&!x&&r<t||x&&a&&d&&!o&&!_||g&&a&&d||!c&&d||!u)return-1}return 0}h.exports=s},1397:function(h,i,e){var n=e(40709);function s(r,t,a){for(var o=-1,d=r.criteria,_=t.criteria,c=d.length,g=a.length;++o<c;){var u=n(d[o],_[o]);if(u){if(o>=g)return u;var x=a[o];return u*(x=="desc"?-1:1)}}return r.index-t.index}h.exports=s},74741:function(h,i,e){var n=e(81580);function s(r,t){return function(a,o){if(a==null)return a;if(!n(a))return r(a,o);for(var d=a.length,_=t?d:-1,c=Object(a);(t?_--:++_<d)&&o(c[_],_,c)!==!1;);return a}}h.exports=s},52654:function(h,i,e){var n=e(91131),s=e(76535),r=e(91782),t=r&&r.isRegExp,a=t?s(t):n;h.exports=a},98978:function(h,i,e){var n=e(40314),s=e(50690),r=e(94569),t=e(63108),a=r(function(o,d){if(o==null)return[];var _=d.length;return _>1&&t(o,d[0],d[1])?d=[]:_>2&&t(d[0],d[1],d[2])&&(d=[d[0]]),s(o,n(d,1),[])});h.exports=a},51382:function(h,i,e){var n=e(90454),s=e(24793),r=e(34327),t=e(85973),a=e(52654),o=e(38788),d=e(51119),_=e(25225),c=e(41119),g=30,u="...",x=/\w*$/;function M(f,p){var E=g,v=u;if(t(p)){var m="separator"in p?p.separator:m;E="length"in p?_(p.length):E,v="omission"in p?n(p.omission):v}f=c(f);var C=f.length;if(r(f)){var P=d(f);C=P.length}if(E>=C)return f;var j=E-o(v);if(j<1)return v;var O=P?s(P,0,j).join(""):f.slice(0,j);if(m===void 0)return O+v;if(P&&(j+=O.length-j),a(m)){if(f.slice(j).search(m)){var B,R=O;for(m.global||(m=RegExp(m.source,c(x.exec(m))+"g")),m.lastIndex=0;B=m.exec(R);)var W=B.index;O=O.slice(0,W===void 0?j:W)}}else if(f.indexOf(n(m),j)!=j){var $=O.lastIndexOf(m);$>-1&&(O=O.slice(0,$))}return O+v}h.exports=M},11299:function(h,i,e){"use strict";e.d(i,{$:function(){return c},O:function(){return g}});var n=e(74512),s=e(77277),r=e(8471),t=e(3685),a=e(87933),o=e(72850),d=e(49372);const _=(0,r.ZP)(a.k)`
2
- svg {
3
- height: ${10/16}rem;
4
- width: ${10/16}rem;
5
- path {
6
- fill: ${({theme:u})=>u.colors.neutral500};
7
- }
8
- }
9
- :last-of-type ${o.x} {
10
- display: none;
11
- }
12
- :last-of-type ${d.Z} {
13
- color: ${({theme:u})=>u.colors.neutral800};
14
- font-weight: ${({theme:u})=>u.fontWeights.bold};
15
- }
16
- `,c=({children:u})=>(0,n.jsxs)(_,{inline:!0,as:"li",children:[(0,n.jsx)(d.Z,{variant:"pi",textColor:"neutral600",children:u}),(0,n.jsx)(o.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,n.jsx)(s.Z,{})})]});c.displayName="Crumb";const g=({children:u,label:x,...M})=>(0,n.jsxs)(a.k,{...M,children:[(0,n.jsx)(t.T,{children:x}),(0,n.jsx)("ol",{"aria-hidden":!0,children:u})]});g.displayName="Breadcrumbs"},21428:function(h,i,e){"use strict";e.d(i,{Wx:function(){return n0},XU:function(){return P},hQ:function(){return C}});var n=e(74512),s=e(32735),r=e(35331),t=e(16899),a=e(79405),o=e(8471),d=e(95976),_=e(74971),c=e(36971),g=e(30350),u=e(23866),x=e(72850),M=e(49372),f=e(87107),p=e(87933),E=e(28847),v=e(67014),m=e(47851);const C=({children:l,clearLabel:Z="clear",creatable:L=!1,createMessage:b=H=>`Create "${H}"`,defaultTextValue:w,disabled:A=!1,error:K,hasMoreItems:t0=!1,hint:s0,id:r0,label:l0,labelAction:a0,loading:y=!1,loadingMessage:i0="Loading content...",noOptionsMessage:d0=()=>"No results found",onChange:S,onClear:F,onCreateOption:V,onInputChange:z,onLoadMore:N,placeholder:o0="Select or enter a value",required:G=!1,startIcon:Q,textValue:h0,value:_0})=>{const[H,c0]=s.useState(!1),[T,k]=(0,d.T)({prop:h0,defaultProp:w}),[u0,X]=s.useState(""),J=s.useRef(null),Y=s.useRef(null),x0=s.useRef(null),U=(0,_.M)(r0),f0=D=>{F&&!A&&(k(""),X(""),F(D),Y.current.focus())},E0=D=>{c0(D)},v0=D=>{k(D)},g0=D=>{X(D)},m0=D=>{z&&z(D)},M0=D=>{S&&S(D)},q=`intersection-${CSS.escape(U)}`,p0=D=>{N&&t0&&!y&&N(D)},e0=()=>{V&&T&&V(T)};(0,c.s)(J,p0,{selectorToWatch:`#${q}`,skipWhen:!H});const j0=`${U}-hint`,P0=`${U}-error`;return(0,n.jsx)(f.g,{hint:s0,error:K,id:U,required:G,children:(0,n.jsxs)(p.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,n.jsx)(E.Q,{action:a0,children:l0}),(0,n.jsxs)(a.h.Root,{autocomplete:L?"list":"both",onOpenChange:E0,onTextValueChange:v0,textValue:T,allowCustomValue:!0,disabled:A,required:G,value:_0,onValueChange:M0,filterValue:u0,onFilterValueChange:g0,children:[(0,n.jsxs)(O,{$hasError:!!K,children:[(0,n.jsxs)(p.k,{flex:"1",as:"span",gap:3,children:[Q?(0,n.jsx)(x.x,{as:"span","aria-hidden":!0,children:Q}):null,(0,n.jsx)(B,{placeholder:o0,id:U,"aria-invalid":!!K,"aria-labelledby":`${j0} ${P0}`,onChange:m0,ref:Y})]}),(0,n.jsxs)(p.k,{as:"span",gap:3,children:[T&&F?(0,n.jsx)(j,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:f0,"aria-disabled":A,"aria-label":Z,title:Z,ref:x0,children:(0,n.jsx)(r.Z,{})}):null,(0,n.jsx)(R,{children:(0,n.jsx)(t.Z,{})})]})]}),(0,n.jsx)(a.h.Portal,{children:(0,n.jsx)(W,{sideOffset:4,children:(0,n.jsxs)($,{ref:J,children:[l,L?(0,n.jsx)(a.h.CreateItem,{onPointerUp:e0,onClick:e0,asChild:!0,children:(0,n.jsx)(I,{children:(0,n.jsx)(M.Z,{children:b(T??"")})})}):null,!L&&!y?(0,n.jsx)(a.h.NoValueFound,{asChild:!0,children:(0,n.jsx)(I,{$hasHover:!1,children:(0,n.jsx)(M.Z,{children:d0(T??"")})})}):null,y?(0,n.jsx)(p.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,n.jsx)(u.a,{small:!0,children:i0})}):null,(0,n.jsx)(x.x,{id:q,width:"100%",height:"1px"})]})})})]}),(0,n.jsx)(v.J,{}),(0,n.jsx)(m.c,{})]})})},P=l=>(0,n.jsx)(C,{...l,creatable:!0}),j=(0,o.ZP)(x.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:l})=>l.colors.neutral600};
26
- }
27
- `,O=(0,o.ZP)(a.h.Trigger)`
28
- position: relative;
29
- border: 1px solid ${({theme:l,$hasError:Z})=>Z?l.colors.danger600:l.colors.neutral200};
30
- padding-right: ${({theme:l})=>l.spaces[3]};
31
- padding-left: ${({theme:l})=>l.spaces[3]};
32
- border-radius: ${({theme:l})=>l.borderRadius};
33
- background: ${({theme:l})=>l.colors.neutral0};
34
- overflow: hidden;
35
- display: flex;
36
- align-items: center;
37
- justify-content: space-between;
38
- gap: ${({theme:l})=>l.spaces[4]};
39
-
40
- &[data-disabled] {
41
- color: ${({theme:l})=>l.colors.neutral600};
42
- background: ${({theme:l})=>l.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:l,$hasError:Z})=>(0,g.k3)()({theme:l,hasError:Z})};
52
- `,B=(0,o.ZP)(a.h.TextInput)`
53
- width: 100%;
54
- font-size: ${14/16}rem;
55
- color: ${({theme:l})=>l.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
- `,R=(0,o.ZP)(a.h.Icon)`
68
- & > svg {
69
- width: ${6/16}rem;
70
-
71
- & > path {
72
- fill: ${({theme:l})=>l.colors.neutral600};
73
- }
74
- }
75
-
76
- &[aria-disabled='true'] {
77
- cursor: inherit;
78
- }
79
- `,W=(0,o.ZP)(a.h.Content)`
80
- background: ${({theme:l})=>l.colors.neutral0};
81
- box-shadow: ${({theme:l})=>l.shadows.filterShadow};
82
- border: 1px solid ${({theme:l})=>l.colors.neutral150};
83
- border-radius: ${({theme:l})=>l.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:l})=>l.zIndices[1]};
88
- `,$=(0,o.ZP)(a.h.Viewport)`
89
- padding: ${({theme:l})=>l.spaces[1]};
90
- `,n0=s.forwardRef(({children:l,value:Z,disabled:L,textValue:b,...w},A)=>(0,n.jsx)(a.h.ComboboxItem,{asChild:!0,value:Z,disabled:L,textValue:b,children:(0,n.jsx)(I,{ref:A,...w,children:(0,n.jsx)(a.h.ItemText,{asChild:!0,children:(0,n.jsx)(M.Z,{children:l})})})})),I=o.ZP.div`
91
- width: 100%;
92
- border: none;
93
- text-align: left;
94
- outline-offset: -3px;
95
- padding: ${({theme:l})=>l.spaces[2]} ${({theme:l})=>l.spaces[4]};
96
- background-color: ${({theme:l})=>l.colors.neutral0};
97
- border-radius: ${({theme:l})=>l.borderRadius};
98
- user-select: none;
99
-
100
- &[data-selected] {
101
- background-color: ${({theme:l})=>l.colors.primary100};
102
-
103
- ${M.Z} {
104
- color: ${({theme:l})=>l.colors.primary600};
105
- font-weight: bold;
106
- }
107
- }
108
-
109
- &:hover,
110
- &[data-highlighted] {
111
- outline: none;
112
- background-color: ${({theme:l,$hasHover:Z=!0})=>Z?l.colors.primary100:l.colors.neutral0};
113
- }
114
-
115
- &[data-highlighted] {
116
- ${M.Z} {
117
- color: ${({theme:l})=>l.colors.primary600};
118
- font-weight: bold;
119
- }
120
- }
121
- `},90333:function(h,i,e){"use strict";e.d(i,{O:function(){return s}});var n=e(21428);const s=n.Wx},25148:function(h,i,e){"use strict";e.d(i,{Q:function(){return g}});var n=e(74512),s=e(32735),r=e(14911),t=e(8471),a=e(73342),o=e(69783),d=e(87933),_=e(49372);const c=(0,t.ZP)(o.G)`
122
- &[aria-disabled='true'] {
123
- ${a.sg}
124
- &:active {
125
- ${a.sg}
126
- }
127
- }
128
- &:hover {
129
- ${a.yP}
130
- }
131
- &:active {
132
- ${a.tB}
133
- }
134
- ${a.PD}
135
- `,g=s.forwardRef(({variant:u="default",startIcon:x,endIcon:M,disabled:f=!1,children:p,size:E="S",href:v,to:m,...C},P)=>{const j=v?"_blank":void 0,O=v?"noreferrer noopener":void 0,B=E==="S"?2:"10px",R=4;return(0,n.jsxs)(c,{ref:P,"aria-disabled":f,size:E,variant:u,target:j,rel:O,to:f?void 0:m,href:f?"#":v,background:"buttonPrimary600",borderColor:"buttonPrimary600",hasRadius:!0,gap:2,inline:!0,paddingBottom:B,paddingLeft:R,paddingRight:R,paddingTop:B,pointerEvents:f?"none":void 0,...C,as:m&&!f?r.OL:"a",children:[x&&(0,n.jsx)(d.k,{"aria-hidden":!0,children:x}),(0,n.jsx)(_.Z,{variant:E==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:p}),M&&(0,n.jsx)(d.k,{"aria-hidden":!0,children:M})]})})},27799:function(h,i,e){"use strict";e.d(i,{Q:function(){return t}});var n=e(74512),s=e(8471),r=e(6407);const t=({options:o,...d})=>(0,n.jsx)(r.NU,{...d,children:o.map(_=>"children"in _?(0,n.jsx)(r.Ab,{label:_.label,values:_.children.map(c=>c.value.toString()),children:_.children.map(c=>(0,n.jsx)(a,{value:c.value,children:c.label},c.value))},_.label):(0,n.jsx)(r.ML,{value:_.value,children:_.label},_.value))}),a=(0,s.ZP)(r.ML)`
136
- padding-left: ${({theme:o})=>o.spaces[7]};
137
- `},28832:function(h,i,e){"use strict";e.d(i,{z:function(){return M}});var n=e(74512),s=e(32735),r=e(16899),t=e(60216),a=e(8471),o=e(74971),d=e(72850),_=e(87933),c=e(49372);const g=(0,a.ZP)(d.x)`
138
- svg {
139
- height: ${4/16}rem;
140
- path {
141
- fill: ${({theme:f})=>f.colors.neutral700};
142
- }
143
- }
144
- `,u=a.ZP.button`
145
- border: none;
146
- padding: 0;
147
- background: transparent;
148
- display: flex;
149
- align-items: center;
150
- `,x=a.ZP.div`
151
- display: flex;
152
- align-items: center;
153
- width: ${12/16}rem;
154
- transform: rotateX(${({rotated:f})=>f?"0deg":"180deg"});
155
- `,M=({label:f,children:p,id:E})=>{const[v,m]=(0,s.useState)(!0),C=(0,o.M)(E);return(0,n.jsxs)(d.x,{children:[(0,n.jsx)(g,{paddingLeft:7,paddingTop:2,paddingBottom:2,paddingRight:4,children:(0,n.jsx)(_.k,{justifyContent:"space-between",children:(0,n.jsxs)(u,{onClick:()=>{m(P=>!P)},"aria-expanded":v,"aria-controls":C,children:[(0,n.jsx)(x,{rotated:v,children:(0,n.jsx)(r.Z,{"aria-hidden":!0})}),(0,n.jsx)(d.x,{paddingLeft:2,children:(0,n.jsx)(c.Z,{as:"span",fontWeight:"semiBold",textColor:"neutral800",children:f})})]})})}),v&&(0,n.jsx)("ul",{id:C,children:s.Children.map(p,(P,j)=>(0,n.jsx)("li",{children:P},j))})]})};M.defaultProps={id:void 0},M.propTypes={children:t.node.isRequired,id:t.string,label:t.string.isRequired}},35071:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#4945FF",stroke:"#4945FF",rx:2.5}),(0,n.jsx)("path",{fill:"#fff",d:"M15.328 10.54h1.723c.012-.089.012-.165.012-.253 0-1.676-1.471-2.959-3.41-2.959-2.696 0-4.647 2.22-4.647 5.344 0 2.15 1.383 3.545 3.504 3.545 2.045 0 3.597-1.154 3.967-2.936h-1.752c-.276.826-1.102 1.371-2.063 1.371-1.137 0-1.846-.802-1.846-2.103 0-2.08 1.19-3.65 2.725-3.65 1.037 0 1.746.62 1.787 1.558v.082ZM21.053 16l1.488-6.943h2.531l.31-1.512H18.54l-.31 1.512h2.53L19.272 16h1.782Z"})]}),r=s},26253:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M20.4 14.4a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM3.6 14.4a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 22.8a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M6.24 11.28H18v1.44H6.24v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 22.8a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM3.6 6a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M18.328 13.863 6.49 19.765l-.652-1.307 11.838-5.902.652 1.307ZM18.358 10.078 6.398 4.115l-.646 1.294 11.961 5.963.645-1.294Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M18.323 18.83 6.252 12.813l-.643 1.29 12.071 6.019.643-1.29ZM18.136 5.228 6.207 11.176l-.653-1.311 11.928-5.948.654 1.311Z"})]}),r=s},79634:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...t,children:[(0,n.jsx)("path",{fill:"#212134",d:"M17.76 11.28H6v1.44h11.76v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M18.129 10.699 9.782 4.523l-.86 1.162 8.347 6.177.86-1.163ZM18.101 13.354 9.755 19.53l-.864-1.167 8.347-6.176.863 1.167Z"}),(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M20.4 14.399a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM3.6 14.399a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM7.2 22.8a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2ZM7.2 6a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8Zm0 1.2a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2Z",clipRule:"evenodd"})]}),r=s},32548:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14.132a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M6.24 11.011h13.44v1.44H6.24v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",d:"m5.872 10.43 8.347-6.176.86 1.163-8.347 6.176-.86-1.162ZM5.9 13.087l8.346 6.177.864-1.168-8.347-6.176-.864 1.167ZM18.72 8.613l5.28 3.12-5.28 3.12v-6.24Z"}),(0,n.jsx)("path",{fill:"#212134",d:"M12.72 2.633 18.82 2 16.43 7.649 12.72 2.633ZM12.72 21.307l6.1.633-2.389-5.649-3.711 5.016Z"})]}),r=s},7733:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 25",...t,children:[(0,n.jsx)("path",{fill:"#212134",d:"M6.24 11.28H18v1.44H6.24v-1.44Z"}),(0,n.jsx)("path",{fill:"#212134",d:"m5.871 10.699 8.347-6.176.86 1.162-8.347 6.177-.86-1.163ZM5.899 13.354l8.346 6.176.864-1.167-8.347-6.176-.863 1.167Z"}),(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14.399a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 14.399a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM16.8 22.8a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM16.8 6a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"})]}),r=s},10168:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M3.6 14a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2ZM20.4 14a2.4 2.4 0 1 0 0-4.8 2.4 2.4 0 0 0 0 4.8Zm0 1.2a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2Z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#212134",d:"M6.24 10.881H18v1.44H6.24v-1.44Z"})]}),r=s},25449:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...t,children:(0,n.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M7.128 12.321a3.601 3.601 0 1 1 0-1.44H18.72v-2.4L24 11.6l-5.28 3.12v-2.4H7.128ZM6 11.6a2.4 2.4 0 1 1-4.8 0 2.4 2.4 0 0 1 4.8 0Z",clipRule:"evenodd"})}),r=s},89135:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("path",{fill:"#FDF4DC",stroke:"#FAE7B9",d:"M.5 3A2.5 2.5 0 0 1 3 .5h26A2.5 2.5 0 0 1 31.5 3v18a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 21V3Z"}),(0,n.jsx)("path",{fill:"#D9822F",d:"M20.158 11.995c0-.591-.463-1.073-1.045-1.11H13.53V9.245a2.05 2.05 0 0 1 2.046-2.049c1.13 0 2.048.784 2.049 1.913 0 .24.194.433.433.433h.33a.433.433 0 0 0 .433-.433C18.82 7.32 17.365 5.999 15.577 6a3.246 3.246 0 0 0-3.241 3.244v1.642h-.223c-.615 0-1.113.499-1.113 1.114v4.887c.001.615.5 1.113 1.115 1.113l6.93-.003c.616 0 1.114-.5 1.114-1.115l-.001-4.887Z"})]}),r=s},61642:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#EAF5FF",stroke:"#B8E1FF",rx:2.5}),(0,n.jsx)("path",{fill:"#0C75AF",fillRule:"evenodd",d:"M19.286 9.286v-.857a.397.397 0 0 0-.138-.302A.465.465 0 0 0 18.82 8h-8.357a.465.465 0 0 0-.326.127.397.397 0 0 0-.138.302v.857c0 .116.046.216.138.301.092.085.2.127.326.127h8.357a.465.465 0 0 0 .327-.127.397.397 0 0 0 .138-.301Zm2.785 2.713v.857a.397.397 0 0 1-.137.301.465.465 0 0 1-.327.128H10.464a.465.465 0 0 1-.326-.128.397.397 0 0 1-.138-.301v-.857c0-.116.046-.217.138-.302a.465.465 0 0 1 .326-.127h11.143c.126 0 .235.043.327.127a.397.397 0 0 1 .137.302Zm-1.857 3.574v.857a.397.397 0 0 1-.137.302.465.465 0 0 1-.327.127h-9.286a.465.465 0 0 1-.326-.127.397.397 0 0 1-.138-.302v-.857c0-.116.046-.216.138-.301a.465.465 0 0 1 .326-.127h9.286c.126 0 .235.042.326.127a.397.397 0 0 1 .138.301Z",clipRule:"evenodd"})]}),r=s},58656:function(h,i,e){"use strict";e.d(i,{Z:function(){return r}});var n=e(74512);const s=t=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 32 24",...t,children:[(0,n.jsx)("rect",{width:31,height:23,x:.5,y:.5,fill:"#0C75AF",stroke:"#0C75AF",rx:2.5}),(0,n.jsx)("path",{fill:"#fff",d:"M8.523 13.586c.106 1.64 1.418 2.63 3.34 2.63 2.098 0 3.516-1.113 3.516-2.788 0-1.143-.65-1.846-2.086-2.297l-.867-.27c-.797-.252-1.137-.597-1.137-1.066 0-.598.633-1.031 1.459-1.031.873 0 1.512.474 1.617 1.183h1.67c-.053-1.54-1.36-2.619-3.217-2.619-1.91 0-3.328 1.131-3.328 2.678 0 1.09.715 1.922 1.963 2.309l.879.275c.914.287 1.266.592 1.266 1.084 0 .662-.657 1.107-1.606 1.107-.914 0-1.635-.469-1.758-1.195h-1.71ZM20.107 16l1.489-6.943h2.531l.31-1.512h-6.843l-.31 1.512h2.53L18.326 16h1.781Z"})]}),r=s}}]);
@@ -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),o=t(60216),E=t.n(o),y=t(67879),c=t(72850),f=t(41415),L=t(5644),T=t(24989);const P=({displayedFilters:M})=>{const[g,n]=(0,e.useState)(!1),{formatMessage:O}=(0,y.Z)(),S=(0,e.useRef)(),R=()=>{n(I=>!I)};return e.createElement(e.Fragment,null,e.createElement(c.x,{paddingTop:1,paddingBottom:1},e.createElement(f.z,{variant:"tertiary",ref:S,startIcon:e.createElement(L.Z,null),onClick:R,size:"S"},O({id:"app.utils.filters",defaultMessage:"Filters"})),g&&e.createElement(T.J5,{displayedFilters:M,isVisible:g,onToggle:R,source:S})),e.createElement(T.W$,{filtersSchema:M}))};P.propTypes={displayedFilters:E().arrayOf(E().shape({name:E().string.isRequired,metadatas:E().shape({label:E().string}),fieldSchema:E().shape({type:E().string})})).isRequired},x.Z=P},71765:function(Z,x,t){t.r(x),t.d(x,{default:function(){return re}});var e=t(32735),o=t(24989),E=t(83983),y=t(67879),c=t(96709),f=t(17e3),L=t(72850),T=t(27649),P=t(82055),M=t(99223),g=t(60216),n=t.n(g),O=t(35658),S=t(94547),R=t(19786),I=t(49372),W=t(87933),ie=t(50563),G=t(54894),le=t(96315),w=()=>{const{formatDate:s}=(0,y.Z)();return u=>{const i=(0,le.Z)(u),p=s(i,{dateStyle:"long"}),l=s(i,{timeStyle:"medium",hourCycle:"h24"});return`${p}, ${l}`}};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,N=({headers:s,rows:m,onOpenModal:u})=>{const{formatMessage:i}=(0,y.Z)(),p=w(),l=({type:d,value:r,model:v})=>d==="date"?p(r):d==="action"?i({id:`Settings.permissions.auditLogs.${r}`,defaultMessage:V(r)},{model:v}):r||"-";return e.createElement(O.p,null,m.map(d=>e.createElement(S.Tr,{key:d.id,...(0,o.X7)({fn:()=>u(d.id)})},s.map(({key:r,name:v,cellFormatter:C})=>e.createElement(R.Td,{key:r},e.createElement(I.Z,{textColor:"neutral800"},l({type:r,value:C?C(d[v]):d[v],model:d.payload?.model})))),e.createElement(R.Td,{...o.UW},e.createElement(W.k,{justifyContent:"end"},e.createElement(ie.h,{onClick:()=>u(d.id),"aria-label":i({id:"app.component.table.view",defaultMessage:"{target} details"},{target:`${d.action} action`}),noBorder:!0,icon:e.createElement(G.Z,null)}))))))};N.defaultProps={rows:[]},N.propTypes={headers:n().array.isRequired,rows:n().array,onOpenModal:n().func.isRequired};var de=N,H=[{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 a=({pagination:s})=>e.createElement(L.x,{paddingTop:4},e.createElement(W.k,{alignItems:"flex-end",justifyContent:"space-between"},e.createElement(o.v4,null),e.createElement(o.tU,{pagination:s})));a.defaultProps={pagination:{pageCount:0,pageSize:50,total:0}},a.propTypes={pagination:n().shape({page:n().number,pageCount:n().number,pageSize:n().number,total:n().number})};var D=a,j=t(20108),Q=t(85025),z=t(55225),$=t(11299),J=t(31600),ue=t(23866),ce=t(15335),me=t(88807);const q=({actionLabel:s,actionName:m})=>e.createElement(W.k,{direction:"column",alignItems:"baseline",gap:1},e.createElement(I.Z,{textColor:"neutral600",variant:"sigma"},s),e.createElement(I.Z,{textColor:"neutral600"},m));q.propTypes={actionLabel:n().string.isRequired,actionName:n().string.isRequired};var K=q;const B=({status:s,data:m,formattedDate:u})=>{const{formatMessage:i}=(0,y.Z)();if(s==="loading")return e.createElement(W.k,{padding:7,justifyContent:"center",alignItems:"center"},e.createElement(ue.a,null,"Loading content..."));const{action:p,user:l,payload:d}=m;return e.createElement(e.Fragment,null,e.createElement(L.x,{marginBottom:3},e.createElement(I.Z,{variant:"delta",id:"title"},i({id:"Settings.permissions.auditLogs.details",defaultMessage:"Log Details"}))),e.createElement(ce.r,{gap:4,gridCols:2,paddingTop:4,paddingBottom:4,paddingLeft:6,paddingRight:6,marginBottom:4,background:"neutral100",hasRadius:!0},e.createElement(K,{actionLabel:i({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),actionName:i({id:`Settings.permissions.auditLogs.${p}`,defaultMessage:V(p)},{model:d?.model})}),e.createElement(K,{actionLabel:i({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"}),actionName:u}),e.createElement(K,{actionLabel:i({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),actionName:l?.displayName||"-"}),e.createElement(K,{actionLabel:i({id:"Settings.permissions.auditLogs.userId",defaultMessage:"User ID"}),actionName:l?.id.toString()||"-"})),e.createElement(me.V,{value:JSON.stringify(d,null,2),disabled:!0,label:i({id:"Settings.permissions.auditLogs.payload",defaultMessage:"Payload"})}))};B.defaultProps={data:{}},B.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 ge=B;const ee=({handleClose:s,logId:m})=>{const{get:u}=(0,o.kY)(),i=(0,o.lm)(),p=async C=>{const{data:A}=await u(`/admin/audit-logs/${C}`);if(!A)throw new Error("Audit log not found");return A},{data:l,status:d}=(0,j.useQuery)(["audit-log",m],()=>p(m),{onError(){i({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}}),s()}}),r=w(),v=l?r(l.date):"";return e.createElement(Q.P,{onClose:s,labelledBy:"title"},e.createElement(z.x,null,e.createElement($.O,{label:v,id:"title"},e.createElement($.$,null,v))),e.createElement(J.f,null,e.createElement(ge,{status:d,data:l,formattedDate:v})))};ee.propTypes={handleClose:n().func.isRequired,logId:n().string.isRequired};var te=ee,Y=t(83196),ae=t(21428),se=t(90333);const F=({value:s,options:m,onChange:u})=>{const{formatMessage:i}=(0,y.Z)(),p=i({id:"Settings.permissions.auditLogs.filter.aria-label",defaultMessage:"Search and select an option to filter"});return e.createElement(ae.hQ,{"aria-label":p,value:s,onChange:u},m.map(({label:l,customValue:d})=>e.createElement(se.O,{key:d,value:d},l)))};F.defaultProps={value:null},F.propTypes={value:n().string,options:n().arrayOf(n().shape({label:n().string.isRequired,customValue:n().string.isRequired}).isRequired).isRequired,onChange:n().func.isRequired};var ne=F;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 he=({formatMessage:s,users:m,canReadUsers:u})=>{const i=Object.keys(k).map(l=>({label:s({id:`Settings.permissions.auditLogs.${l}`,defaultMessage:V(l)},{model:void 0}),customValue:l})),p=[{name:"action",metadatas:{customOperators:X,label:s({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),options:i,customInput:ne},fieldSchema:{type:"enumeration"}},{name:"date",metadatas:{label:s({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"})},fieldSchema:{type:"datetime"}}];if(u&&m){const l=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,d=m.results.map(r=>({label:l(r),customValue:r.id.toString()}));return[...p,{name:"user",metadatas:{customOperators:X,label:s({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),options:d,customInput:ne},fieldSchema:{type:"relation",mainField:{name:"id"}}}]}return p},Ee=t(53038),fe=({canReadAuditLogs:s,canReadUsers:m})=>{const{get:u}=(0,o.kY)(),{search:i}=(0,Ee.TH)(),p=(0,o.lm)(),l=async({queryKey:h})=>{const De=h[1],{data:Oe}=await u(`/admin/audit-logs${De}`);return Oe},d=async()=>{const{data:h}=await u("/admin/users");return h},r={keepPreviousData:!0,retry:!1,staleTime:1e3*20,onError:h=>p({type:"warning",message:h.message})},{data:v,isLoading:C,isError:A}=(0,j.useQuery)(["auditLogs",i],l,{...r,enabled:s}),{data:U,isError:_}=(0,j.useQuery)(["auditLogsUsers"],d,{...r,enabled:m,staleTime:2*(1e3*60)}),Le=A||_;return{auditLogs:v,users:U?.data,isLoading:C,hasError:Le}};const b={...E.Z.settings.auditLogs,readUsers:E.Z.settings.users.read};var ye=()=>{const{formatMessage:s}=(0,y.Z)(),{allowedActions:{canRead:m,canReadUsers:u}}=(0,o.ss)(b),[{query:i},p]=(0,o.Kx)(),{auditLogs:l,users:d,isLoading:r,hasError:v}=fe({canReadAuditLogs:m,canReadUsers:u});(0,o.go)();const C=he({formatMessage:s,users:d,canReadUsers:u}),A=s({id:"global.auditLogs",defaultMessage:"Audit Logs"}),U=H.map(_=>({..._,metadatas:{..._.metadatas,label:s(_.metadatas.label)}}));return v?e.createElement(c.A,null,e.createElement(f.D,null,e.createElement(L.x,{paddingTop:8},e.createElement(o.Hn,null)))):e.createElement(T.o,{"aria-busy":r},e.createElement(o.SL,{name:A}),e.createElement(P.T,{title:A,subtitle:s({id:"Settings.permissions.auditLogs.listview.header.subtitle",defaultMessage:"Logs of all the activities that happened in your environment"})}),e.createElement(M.Z,{startActions:e.createElement(Y.Z,{displayedFilters:C})}),e.createElement(f.D,{canRead:m},e.createElement(o.tM,{contentType:"Audit logs",headers:U,rows:l?.results||[],withBulkActions:!0,isLoading:r},e.createElement(de,{headers:U,rows:l?.results||[],onOpenModal:_=>p({id:_})})),e.createElement(D,{pagination:l?.pagination})),i?.id&&e.createElement(te,{handleClose:()=>p({id:null},"remove"),logId:i.id}))},re=()=>e.createElement(o.O4,{permissions:E.Z.settings.auditLogs.main},e.createElement(ye,null))},11299:function(Z,x,t){t.d(x,{$:function(){return P},O:function(){return M}});var e=t(74512),o=t(77277),E=t(8471),y=t(3685),c=t(87933),f=t(72850),L=t(49372);const T=(0,E.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 ${f.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
- `,P=({children:g})=>(0,e.jsxs)(T,{inline:!0,as:"li",children:[(0,e.jsx)(L.Z,{variant:"pi",textColor:"neutral600",children:g}),(0,e.jsx)(f.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,e.jsx)(o.Z,{})})]});P.displayName="Crumb";const M=({children:g,label:n,...O})=>(0,e.jsxs)(c.k,{...O,children:[(0,e.jsx)(y.T,{children:n}),(0,e.jsx)("ol",{"aria-hidden":!0,children:g})]});M.displayName="Breadcrumbs"},21428:function(Z,x,t){t.d(x,{Wx:function(){return xe},XU:function(){return le},hQ:function(){return G}});var e=t(74512),o=t(32735),E=t(35331),y=t(16899),c=t(79405),f=t(8471),L=t(95976),T=t(74971),P=t(36971),M=t(30350),g=t(23866),n=t(72850),O=t(49372),S=t(87107),R=t(87933),I=t(28847),W=t(67014),ie=t(47851);const G=({children:a,clearLabel:D="clear",creatable:j=!1,createMessage:Q=oe=>`Create "${oe}"`,defaultTextValue:z,disabled:$=!1,error:J,hasMoreItems:ue=!1,hint:ce,id:me,label:q,labelAction:K,loading:B=!1,loadingMessage:ge="Loading content...",noOptionsMessage:ee=()=>"No results found",onChange:te,onClear:Y,onCreateOption:ae,onInputChange:se,onLoadMore:F,placeholder:ne="Select or enter a value",required:X=!1,startIcon:pe,textValue:he,value:Ee})=>{const[oe,fe]=o.useState(!1),[b,Me]=(0,L.T)({prop:he,defaultProp:z}),[ye,ve]=o.useState(""),re=o.useRef(null),s=o.useRef(null),m=o.useRef(null),u=(0,T.M)(me),i=h=>{Y&&!$&&(Me(""),ve(""),Y(h),s.current.focus())},p=h=>{fe(h)},l=h=>{Me(h)},d=h=>{ve(h)},r=h=>{se&&se(h)},v=h=>{te&&te(h)},C=`intersection-${CSS.escape(u)}`,A=h=>{F&&ue&&!B&&F(h)},U=()=>{ae&&b&&ae(b)};(0,P.s)(re,A,{selectorToWatch:`#${C}`,skipWhen:!oe});const _=`${u}-hint`,Le=`${u}-error`;return(0,e.jsx)(S.g,{hint:ce,error:J,id:u,required:X,children:(0,e.jsxs)(R.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(I.Q,{action:K,children:q}),(0,e.jsxs)(c.h.Root,{autocomplete:j?"list":"both",onOpenChange:p,onTextValueChange:l,textValue:b,allowCustomValue:!0,disabled:$,required:X,value:Ee,onValueChange:v,filterValue:ye,onFilterValueChange:d,children:[(0,e.jsxs)(w,{$hasError:!!J,children:[(0,e.jsxs)(R.k,{flex:"1",as:"span",gap:3,children:[pe?(0,e.jsx)(n.x,{as:"span","aria-hidden":!0,children:pe}):null,(0,e.jsx)(k,{placeholder:ne,id:u,"aria-invalid":!!J,"aria-labelledby":`${_} ${Le}`,onChange:r,ref:s})]}),(0,e.jsxs)(R.k,{as:"span",gap:3,children:[b&&Y?(0,e.jsx)(Pe,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:i,"aria-disabled":$,"aria-label":D,title:D,ref:m,children:(0,e.jsx)(E.Z,{})}):null,(0,e.jsx)(V,{children:(0,e.jsx)(y.Z,{})})]})]}),(0,e.jsx)(c.h.Portal,{children:(0,e.jsx)(N,{sideOffset:4,children:(0,e.jsxs)(de,{ref:re,children:[a,j?(0,e.jsx)(c.h.CreateItem,{onPointerUp:U,onClick:U,asChild:!0,children:(0,e.jsx)(H,{children:(0,e.jsx)(O.Z,{children:Q(b??"")})})}):null,!j&&!B?(0,e.jsx)(c.h.NoValueFound,{asChild:!0,children:(0,e.jsx)(H,{$hasHover:!1,children:(0,e.jsx)(O.Z,{children:ee(b??"")})})}):null,B?(0,e.jsx)(R.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(g.a,{small:!0,children:ge})}):null,(0,e.jsx)(n.x,{id:C,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(W.J,{}),(0,e.jsx)(ie.c,{})]})})},le=a=>(0,e.jsx)(G,{...a,creatable:!0}),Pe=(0,f.ZP)(n.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
- `,w=(0,f.ZP)(c.h.Trigger)`
28
- position: relative;
29
- border: 1px solid ${({theme:a,$hasError:D})=>D?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:D})=>(0,M.k3)()({theme:a,hasError:D})};
52
- `,k=(0,f.ZP)(c.h.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
- `,V=(0,f.ZP)(c.h.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
- `,N=(0,f.ZP)(c.h.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
- `,de=(0,f.ZP)(c.h.Viewport)`
89
- padding: ${({theme:a})=>a.spaces[1]};
90
- `,xe=o.forwardRef(({children:a,value:D,disabled:j,textValue:Q,...z},$)=>(0,e.jsx)(c.h.ComboboxItem,{asChild:!0,value:D,disabled:j,textValue:Q,children:(0,e.jsx)(H,{ref:$,...z,children:(0,e.jsx)(c.h.ItemText,{asChild:!0,children:(0,e.jsx)(O.Z,{children:a})})})})),H=f.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
- ${O.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:D=!0})=>D?a.colors.primary100:a.colors.neutral0};
113
- }
114
-
115
- &[data-highlighted] {
116
- ${O.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 o}});var e=t(21428);const o=e.Wx},99223:function(Z,x,t){t.d(x,{Z:function(){return P}});var e=t(74512),o=t(32735),E=t(60216),y=t(8471),c=t(87933),f=t(72850);const L=(0,y.ZP)(c.k)`
122
- & > * + * {
123
- margin-left: ${({theme:M})=>M.spaces[2]};
124
- }
125
-
126
- margin-left: ${({pullRight:M})=>M?"auto":void 0};
127
- `,T=(0,y.ZP)(L)`
128
- flex-shrink: 0;
129
- `,P=({startActions:M,endActions:g})=>M||g?(0,e.jsx)(f.x,{paddingLeft:10,paddingRight:10,children:(0,e.jsx)(f.x,{paddingBottom:4,children:(0,e.jsxs)(c.k,{justifyContent:"space-between",alignItems:"flex-start",children:[M&&(0,e.jsx)(L,{wrap:"wrap",children:M}),g&&(0,e.jsx)(T,{pullRight:!0,children:g})]})})}):null;P.defaultProps={endActions:void 0,startActions:void 0},P.propTypes={endActions:E.node,startActions:E.node}}}]);
@@ -1,114 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3552],{98225:function(q,T,t){t.r(T),t.d(T,{default:function(){return Xe}});var e=t(32735),d=t(24989),v=t(60216),i=t.n(v),m=t(67879),C=t(27649),K=t(82055),x=t(41415),B=t(17e3),$=t(9695),X=t(19406),j=t(54725),S=t(74552),o=t(60255),r=t(92802),L=t(66456),y=t(85025),E=t(55225),g=t(49372),b=t(31600),I=t(91215),F=t(87933),R=t(39291),V=t(9026),re=t(72850),W=t(3653),ce=t(11406),z=t(24346),D=(0,z.Ry)().shape({code:(0,z.Z_)().required(),displayName:(0,z.Z_)().max(50,"Settings.locales.modal.locales.displayName.error").required(d.I0.required)}),Z=t(15062),H=t(9494),Q=()=>{const[n,s]=(0,e.useState)(!1),c=(0,Z.I0)(),l=(0,d.lm)(),{put:u}=(0,d.kY)();return{isEditing:n,editLocale:async(f,p)=>{try{s(!0);const{data:O}=await u(`/i18n/locales/${f}`,p);l({type:"success",message:{id:(0,o.O)("Settings.locales.modal.edit.success")}}),c({type:H.OT,editedLocale:O})}catch{l({type:"warning",message:{id:"notification.error"}})}finally{s(!1)}}}},Y=t(15335),J=t(5803),xe=t(68465),Le=t(84967),me=t(10369),Ce=t(20108),_=t(94638),he=()=>{const{formatMessage:n}=(0,m.Z)(),{notifyStatus:s}=(0,_.G)(),c=(0,d.lm)(),{get:l}=(0,d.kY)(),{isLoading:u,data:h}=(0,Ce.useQuery)(["plugin-i18n","locales"],async()=>{try{const{data:f}=await l("/i18n/iso-locales");return s(n({id:(0,o.O)("Settings.locales.modal.locales.loaded"),defaultMessage:"The locales have been successfully loaded."})),f}catch{return c({type:"warning",message:{id:"notification.error"}}),[]}});return{defaultLocales:h,isLoading:u}};const ee=({locale:n})=>{const{formatMessage:s}=(0,m.Z)(),{values:c,handleChange:l,errors:u}=(0,r.u6)(),{defaultLocales:h,isLoading:f}=he(),p=!f&&h.find(O=>O.code===n.code);return e.createElement(Y.r,{gap:4},e.createElement(J.P,{col:6},e.createElement(xe.P,{label:s({id:(0,o.O)("Settings.locales.modal.locales.label"),defaultMessage:"Locales"}),value:p?.code||n.code,disabled:!0},e.createElement(Le.W,{value:p?.code||n.code},p?.name||n.code))),e.createElement(J.P,{col:6},e.createElement(me.o,{name:"displayName",label:s({id:(0,o.O)("Settings.locales.modal.locales.displayName"),defaultMessage:"Locale display name"}),hint:s({id:(0,o.O)("Settings.locales.modal.locales.displayName.description"),defaultMessage:"Locale will be displayed under that name in the administration panel"}),error:u.displayName?s({id:(0,o.O)("Settings.locales.modal.locales.displayName.error"),defaultMessage:"The locale display name can only be less than 50 characters."}):void 0,value:c.displayName,onChange:l})))};var te=ee;ee.propTypes={locale:i().shape({id:i().number.isRequired,name:i().string.isRequired,code:i().string.isRequired,isDefault:i().bool.isRequired}).isRequired};var ae=t(8284);const le=({isDefaultLocale:n})=>{const{values:s,setFieldValue:c}=(0,r.u6)(),{formatMessage:l}=(0,m.Z)();return e.createElement(ae.X,{name:"isDefault",hint:l({id:(0,o.O)("Settings.locales.modal.advanced.setAsDefault.hint"),defaultMessage:"One default locale is required, change it by selecting another one"}),onChange:()=>c("isDefault",!s.isDefault),value:s.isDefault,disabled:n},l({id:(0,o.O)("Settings.locales.modal.advanced.setAsDefault"),defaultMessage:"Set as default locale"}))};le.propTypes={isDefaultLocale:i().bool.isRequired};var ge=le;const ne=({locale:n,onClose:s})=>{const{refetchPermissions:c}=(0,d.vn)(),{isEditing:l,editLocale:u}=Q(),{formatMessage:h}=(0,m.Z)(),f=async({displayName:p,isDefault:O})=>{await u(n.id,{name:p,isDefault:O}),await c()};return e.createElement(y.P,{onClose:s,labelledBy:"edit-locale-title"},e.createElement(r.J9,{initialValues:{code:n?.code,displayName:n?.name||"",isDefault:Boolean(n?.isDefault)},onSubmit:f,validationSchema:D},e.createElement(d.l0,null,e.createElement(E.x,null,e.createElement(g.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"edit-locale-title"},h({id:(0,o.O)("Settings.list.actions.edit"),defaultMessage:"Edit a locale"}))),e.createElement(b.f,null,e.createElement(I.v,{label:h({id:(0,o.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"}),id:"tabs",variant:"simple"},e.createElement(F.k,{justifyContent:"space-between"},e.createElement(g.Z,{as:"h2"},h({id:(0,o.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"})),e.createElement(R.m,null,e.createElement(R.O,null,h({id:(0,o.O)("Settings.locales.modal.base"),defaultMessage:"Basic settings"})),e.createElement(R.O,null,h({id:(0,o.O)("Settings.locales.modal.advanced"),defaultMessage:"Advanced settings"})))),e.createElement(V.i,null),e.createElement(re.x,{paddingTop:7,paddingBottom:7},e.createElement(W.n,null,e.createElement(W.x,null,e.createElement(te,{locale:n})),e.createElement(W.x,null,e.createElement(ge,{isDefaultLocale:Boolean(n&&n.isDefault)})))))),e.createElement(ce.m,{startActions:e.createElement(x.z,{variant:"tertiary",onClick:s},h({id:"app.components.Button.cancel"})),endActions:e.createElement(x.z,{type:"submit",startIcon:e.createElement(L.Z,null),disabled:l},h({id:"global.save"}))}))))};ne.defaultProps={locale:void 0},ne.propTypes={locale:i().shape({id:i().number.isRequired,name:i().string.isRequired,code:i().string.isRequired,isDefault:i().bool.isRequired}),onClose:i().func.isRequired};var fe=ne,Oe=()=>{const[n,s]=(0,e.useState)(!1),c=(0,Z.I0)(),l=(0,d.lm)(),{del:u}=(0,d.kY)();return{isDeleting:n,deleteLocale:async f=>{try{s(!0),await u(`/i18n/locales/${f}`),l({type:"success",message:{id:(0,o.O)("Settings.locales.modal.delete.success")}}),c({type:H.HC,id:f})}catch{l({type:"warning",message:{id:"notification.error"}})}finally{s(!1)}}}};const oe=({localeToDelete:n,onClose:s})=>{const{isDeleting:c,deleteLocale:l}=Oe(),u=Boolean(n),h=()=>l(n.id).then(s);return e.createElement(d.QH,{isConfirmButtonLoading:c,onConfirm:h,onToggleDialog:s,isOpen:u})};oe.defaultProps={localeToDelete:void 0},oe.propTypes={localeToDelete:i().shape({id:i().number.isRequired}),onClose:i().func.isRequired};var se=oe,De=t(33795),U=t.n(De),Pe=()=>{const[n,s]=(0,e.useState)(!1),c=(0,Z.I0)(),l=(0,d.lm)(),{post:u}=(0,d.kY)();return{isAdding:n,addLocale:async f=>{s(!0);try{const{data:p}=await u("/i18n/locales",f);l({type:"success",message:{id:(0,o.O)("Settings.locales.modal.create.success")}}),c({type:H.xz,newLocale:p})}catch(p){const O=U()(p,"response.payload.message",null);throw O&&O.includes("already exists")?l({type:"warning",message:{id:(0,o.O)("Settings.locales.modal.create.alreadyExist")}}):l({type:"warning",message:{id:"notification.error"}}),p}finally{s(!1)}}}},ve=t(21428),Ee=t(90333);const w=e.memo(({value:n,onClear:s,onLocaleChange:c,error:l})=>{const{formatMessage:u}=(0,m.Z)(),{defaultLocales:h,isLoading:f}=he(),{locales:p}=(0,S.Z)(),O=(h||[]).map(P=>({label:P.name,value:P.code})).filter(({value:P})=>{const N=p.find(({code:de})=>de===P);return!N||N.code===n}),G=n||"";return e.createElement(ve.hQ,{"aria-busy":f,error:l,label:u({id:(0,o.O)("Settings.locales.modal.locales.label"),defaultMessage:"Locales"}),value:G,onClear:n?s:void 0,onChange:P=>{const N=O.find(de=>de.value===P);N&&c({code:N.value,displayName:N.label})},placeholder:u({id:"components.placeholder.select",defaultMessage:"Select"})},O.map(P=>e.createElement(Ee.O,{value:P.value,key:P.value},P.label)))});w.defaultProps={error:void 0,value:void 0,onClear(){},onLocaleChange:()=>{}},w.propTypes={error:i().string,onClear:i().func,onLocaleChange:i().func,value:i().string};var be=w,je=()=>{const{formatMessage:n}=(0,m.Z)(),{values:s,handleChange:c,setFieldValue:l,errors:u}=(0,r.u6)(),h=(0,e.useCallback)(p=>{l("displayName",p.displayName),l("code",p.code)},[l]),f=(0,e.useCallback)(()=>{l("displayName",""),l("code","")},[l]);return e.createElement(Y.r,{gap:4},e.createElement(J.P,{col:6},e.createElement(be,{error:u.code,value:s.code,onLocaleChange:h,onClear:f})),e.createElement(J.P,{col:6},e.createElement(me.o,{name:"displayName",label:n({id:(0,o.O)("Settings.locales.modal.locales.displayName"),defaultMessage:"Locale display name"}),hint:n({id:(0,o.O)("Settings.locales.modal.locales.displayName.description"),defaultMessage:"Locale will be displayed under that name in the administration panel"}),error:u.displayName?n({id:(0,o.O)("Settings.locales.modal.locales.displayName.error"),defaultMessage:"The locale display name can only be less than 50 characters."}):void 0,value:s.displayName,onChange:c})))},Se=()=>{const{values:n,setFieldValue:s}=(0,r.u6)(),{formatMessage:c}=(0,m.Z)();return e.createElement(ae.X,{hint:c({id:(0,o.O)("Settings.locales.modal.advanced.setAsDefault.hint"),defaultMessage:"One default locale is required, change it by selecting another one"}),onChange:()=>s("isDefault",!n.isDefault),value:n.isDefault},c({id:(0,o.O)("Settings.locales.modal.advanced.setAsDefault"),defaultMessage:"Set as default locale"}))};const Re={code:"",displayName:"",isDefault:!1},pe=({onClose:n})=>{const{isAdding:s,addLocale:c}=Pe(),{formatMessage:l}=(0,m.Z)(),{refetchPermissions:u}=(0,d.vn)(),h=async f=>{await c({code:f.code,name:f.displayName,isDefault:f.isDefault}),await u()};return e.createElement(y.P,{onClose:n,labelledBy:"add-locale-title"},e.createElement(r.J9,{initialValues:Re,onSubmit:h,validationSchema:D,validateOnChange:!1},e.createElement(d.l0,null,e.createElement(E.x,null,e.createElement(g.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"add-locale-title"},l({id:(0,o.O)("Settings.list.actions.add"),defaultMessage:"Add new locale"}))),e.createElement(b.f,null,e.createElement(I.v,{label:l({id:(0,o.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"}),id:"tabs",variant:"simple"},e.createElement(F.k,{justifyContent:"space-between"},e.createElement(g.Z,{as:"h2",variant:"beta"},l({id:(0,o.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"})),e.createElement(R.m,null,e.createElement(R.O,null,l({id:(0,o.O)("Settings.locales.modal.base"),defaultMessage:"Basic settings"})),e.createElement(R.O,null,l({id:(0,o.O)("Settings.locales.modal.advanced"),defaultMessage:"Advanced settings"})))),e.createElement(V.i,null),e.createElement(re.x,{paddingTop:7,paddingBottom:7},e.createElement(W.n,null,e.createElement(W.x,null,e.createElement(je,null)),e.createElement(W.x,null,e.createElement(Se,null)))))),e.createElement(ce.m,{startActions:e.createElement(x.z,{variant:"tertiary",onClick:n},l({id:"app.components.Button.cancel",defaultMessage:"Cancel"})),endActions:e.createElement(x.z,{type:"submit",startIcon:e.createElement(L.Z,null),disabled:s},l({id:"global.save",defaultMessage:"Save"}))}))))};pe.propTypes={onClose:i().func.isRequired};var Ae=pe,ye=t(56755),Be=t(33827),ie=t(94547),A=t(19786),Ie=t(3685),M=t(35658),Ue=t(50563),Ke=t(68625),Ve=t(4038);const Ze=({locales:n,onDeleteLocale:s,onEditLocale:c})=>{const{formatMessage:l}=(0,m.Z)();return e.createElement(ye.i,{colCount:4,rowCount:n.length+1},e.createElement(Be.h,null,e.createElement(ie.Tr,null,e.createElement(A.Th,null,e.createElement(g.Z,{variant:"sigma",textColor:"neutral600"},l({id:(0,o.O)("Settings.locales.row.id")}))),e.createElement(A.Th,null,e.createElement(g.Z,{variant:"sigma",textColor:"neutral600"},l({id:(0,o.O)("Settings.locales.row.displayName")}))),e.createElement(A.Th,null,e.createElement(g.Z,{variant:"sigma",textColor:"neutral600"},l({id:(0,o.O)("Settings.locales.row.default-locale")}))),e.createElement(A.Th,null,e.createElement(Ie.T,null,"Actions")))),e.createElement(M.p,null,n.map(u=>e.createElement(ie.Tr,{key:u.id,...(0,d.X7)({fn:()=>c(u),condition:c})},e.createElement(A.Td,null,e.createElement(g.Z,{textColor:"neutral800"},u.id)),e.createElement(A.Td,null,e.createElement(g.Z,{textColor:"neutral800"},u.name)),e.createElement(A.Td,null,e.createElement(g.Z,{textColor:"neutral800"},u.isDefault?l({id:(0,o.O)("Settings.locales.default")}):null)),e.createElement(A.Td,null,e.createElement(F.k,{gap:1,justifyContent:"flex-end",...d.UW},c&&e.createElement(Ue.h,{onClick:()=>c(u),label:l({id:(0,o.O)("Settings.list.actions.edit")}),icon:e.createElement(Ke.Z,null),noBorder:!0}),s&&!u.isDefault&&e.createElement(Ue.h,{onClick:()=>s(u),label:l({id:(0,o.O)("Settings.list.actions.delete")}),icon:e.createElement(Ve.Z,null),noBorder:!0})))))))};Ze.defaultProps={locales:[],onDeleteLocale:void 0,onEditLocale:void 0},Ze.propTypes={locales:i().array,onDeleteLocale:i().func,onEditLocale:i().func};var ze=Ze;const $e=({canUpdateLocale:n,canDeleteLocale:s,onToggleCreateModal:c,isCreating:l})=>{const[u,h]=(0,e.useState)(),[f,p]=(0,e.useState)(),{locales:O}=(0,S.Z)(),{formatMessage:G}=(0,m.Z)();(0,d.go)();const P=()=>h(void 0),N=s?h:void 0,de=()=>p(void 0),Ye=n?p:void 0;return e.createElement(C.o,{tabIndex:-1},e.createElement(K.T,{primaryAction:e.createElement(x.z,{startIcon:e.createElement(X.Z,null),onClick:c,size:"S"},G({id:(0,o.O)("Settings.list.actions.add")})),title:G({id:(0,o.O)("plugin.name")}),subtitle:G({id:(0,o.O)("Settings.list.description")})}),e.createElement(B.D,null,O?.length>0?e.createElement(ze,{locales:O,onDeleteLocale:N,onEditLocale:Ye}):e.createElement($.x,{icon:e.createElement(j.Z,{width:void 0,height:void 0}),content:G({id:(0,o.O)("Settings.list.empty.title")}),action:c?e.createElement(x.z,{variant:"secondary",startIcon:e.createElement(X.Z,null),onClick:c},G({id:(0,o.O)("Settings.list.actions.add")})):null})),l&&e.createElement(Ae,{onClose:c}),f&&e.createElement(fe,{onClose:de,locale:f}),e.createElement(se,{localeToDelete:u,onClose:P}))};$e.defaultProps={onToggleCreateModal:void 0},$e.propTypes={canUpdateLocale:i().bool.isRequired,canDeleteLocale:i().bool.isRequired,onToggleCreateModal:i().func,isCreating:i().bool.isRequired};var He=$e;const Ne=({canReadLocale:n,canCreateLocale:s,canDeleteLocale:c,canUpdateLocale:l})=>{const[u,h]=(0,e.useState)(!1),f=s?()=>h(p=>!p):void 0;return n?e.createElement(He,{canUpdateLocale:l,canDeleteLocale:c,onToggleCreateModal:f,isCreating:u}):null};Ne.propTypes={canReadLocale:i().bool.isRequired,canCreateLocale:i().bool.isRequired,canUpdateLocale:i().bool.isRequired,canDeleteLocale:i().bool.isRequired};var Qe=Ne,Ge=t(58347),Xe=()=>{const{isLoading:n,allowedActions:{canRead:s,canUpdate:c,canCreate:l,canDelete:u}}=(0,d.ss)(Ge.Z);return n?null:e.createElement(Qe,{canReadLocale:s,canCreateLocale:l,canUpdateLocale:c,canDeleteLocale:u})}},21428:function(q,T,t){t.d(T,{Wx:function(){return ce},XU:function(){return b},hQ:function(){return g}});var e=t(74512),d=t(32735),v=t(35331),i=t(16899),m=t(79405),C=t(8471),K=t(95976),x=t(74971),B=t(36971),$=t(30350),X=t(23866),j=t(72850),S=t(49372),o=t(87107),r=t(87933),L=t(28847),y=t(67014),E=t(47851);const g=({children:a,clearLabel:D="clear",creatable:Z=!1,createMessage:H=se=>`Create "${se}"`,defaultTextValue:ue,disabled:Q=!1,error:Y,hasMoreItems:J=!1,hint:xe,id:Le,label:me,labelAction:Ce,loading:_=!1,loadingMessage:Fe="Loading content...",noOptionsMessage:he=()=>"No results found",onChange:ee,onClear:te,onCreateOption:ae,onInputChange:le,onLoadMore:ge,placeholder:ne="Select or enter a value",required:fe=!1,startIcon:Me,textValue:Oe,value:oe})=>{const[se,De]=d.useState(!1),[U,Te]=(0,K.T)({prop:Oe,defaultProp:ue}),[Pe,ve]=d.useState(""),Ee=d.useRef(null),w=d.useRef(null),be=d.useRef(null),k=(0,x.M)(Le),je=M=>{te&&!Q&&(Te(""),ve(""),te(M),w.current.focus())},We=M=>{De(M)},Se=M=>{Te(M)},Re=M=>{ve(M)},pe=M=>{le&&le(M)},Ae=M=>{ee&&ee(M)},ye=`intersection-${CSS.escape(k)}`,Be=M=>{ge&&J&&!_&&ge(M)},ie=()=>{ae&&U&&ae(U)};(0,B.s)(Ee,Be,{selectorToWatch:`#${ye}`,skipWhen:!se});const A=`${k}-hint`,Ie=`${k}-error`;return(0,e.jsx)(o.g,{hint:xe,error:Y,id:k,required:fe,children:(0,e.jsxs)(r.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(L.Q,{action:Ce,children:me}),(0,e.jsxs)(m.h.Root,{autocomplete:Z?"list":"both",onOpenChange:We,onTextValueChange:Se,textValue:U,allowCustomValue:!0,disabled:Q,required:fe,value:oe,onValueChange:Ae,filterValue:Pe,onFilterValueChange:Re,children:[(0,e.jsxs)(F,{$hasError:!!Y,children:[(0,e.jsxs)(r.k,{flex:"1",as:"span",gap:3,children:[Me?(0,e.jsx)(j.x,{as:"span","aria-hidden":!0,children:Me}):null,(0,e.jsx)(R,{placeholder:ne,id:k,"aria-invalid":!!Y,"aria-labelledby":`${A} ${Ie}`,onChange:pe,ref:w})]}),(0,e.jsxs)(r.k,{as:"span",gap:3,children:[U&&te?(0,e.jsx)(I,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:je,"aria-disabled":Q,"aria-label":D,title:D,ref:be,children:(0,e.jsx)(v.Z,{})}):null,(0,e.jsx)(V,{children:(0,e.jsx)(i.Z,{})})]})]}),(0,e.jsx)(m.h.Portal,{children:(0,e.jsx)(re,{sideOffset:4,children:(0,e.jsxs)(W,{ref:Ee,children:[a,Z?(0,e.jsx)(m.h.CreateItem,{onPointerUp:ie,onClick:ie,asChild:!0,children:(0,e.jsx)(z,{children:(0,e.jsx)(S.Z,{children:H(U??"")})})}):null,!Z&&!_?(0,e.jsx)(m.h.NoValueFound,{asChild:!0,children:(0,e.jsx)(z,{$hasHover:!1,children:(0,e.jsx)(S.Z,{children:he(U??"")})})}):null,_?(0,e.jsx)(r.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(X.a,{small:!0,children:Fe})}):null,(0,e.jsx)(j.x,{id:ye,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(y.J,{}),(0,e.jsx)(E.c,{})]})})},b=a=>(0,e.jsx)(g,{...a,creatable:!0}),I=(0,C.ZP)(j.x)`
2
- border: none;
3
-
4
- svg {
5
- height: ${11/16}rem;
6
- width: ${11/16}rem;
7
- }
8
-
9
- svg path {
10
- fill: ${({theme:a})=>a.colors.neutral600};
11
- }
12
- `,F=(0,C.ZP)(m.h.Trigger)`
13
- position: relative;
14
- border: 1px solid ${({theme:a,$hasError:D})=>D?a.colors.danger600:a.colors.neutral200};
15
- padding-right: ${({theme:a})=>a.spaces[3]};
16
- padding-left: ${({theme:a})=>a.spaces[3]};
17
- border-radius: ${({theme:a})=>a.borderRadius};
18
- background: ${({theme:a})=>a.colors.neutral0};
19
- overflow: hidden;
20
- display: flex;
21
- align-items: center;
22
- justify-content: space-between;
23
- gap: ${({theme:a})=>a.spaces[4]};
24
-
25
- &[data-disabled] {
26
- color: ${({theme:a})=>a.colors.neutral600};
27
- background: ${({theme:a})=>a.colors.neutral150};
28
- cursor: not-allowed;
29
- }
30
-
31
- /* Required to ensure the below inputFocusStyles are adhered too */
32
- &:focus-visible {
33
- outline: none;
34
- }
35
-
36
- ${({theme:a,$hasError:D})=>(0,$.k3)()({theme:a,hasError:D})};
37
- `,R=(0,C.ZP)(m.h.TextInput)`
38
- width: 100%;
39
- font-size: ${14/16}rem;
40
- color: ${({theme:a})=>a.colors.neutral800};
41
- min-height: ${40/16}rem;
42
- border: none;
43
- background-color: transparent;
44
-
45
- &:focus-visible {
46
- outline: none;
47
- }
48
-
49
- &[aria-disabled='true'] {
50
- cursor: inherit;
51
- }
52
- `,V=(0,C.ZP)(m.h.Icon)`
53
- & > svg {
54
- width: ${6/16}rem;
55
-
56
- & > path {
57
- fill: ${({theme:a})=>a.colors.neutral600};
58
- }
59
- }
60
-
61
- &[aria-disabled='true'] {
62
- cursor: inherit;
63
- }
64
- `,re=(0,C.ZP)(m.h.Content)`
65
- background: ${({theme:a})=>a.colors.neutral0};
66
- box-shadow: ${({theme:a})=>a.shadows.filterShadow};
67
- border: 1px solid ${({theme:a})=>a.colors.neutral150};
68
- border-radius: ${({theme:a})=>a.borderRadius};
69
- width: var(--radix-combobox-trigger-width);
70
- /* This is from the design-system figma file. */
71
- max-height: 15rem;
72
- z-index: ${({theme:a})=>a.zIndices[1]};
73
- `,W=(0,C.ZP)(m.h.Viewport)`
74
- padding: ${({theme:a})=>a.spaces[1]};
75
- `,ce=d.forwardRef(({children:a,value:D,disabled:Z,textValue:H,...ue},Q)=>(0,e.jsx)(m.h.ComboboxItem,{asChild:!0,value:D,disabled:Z,textValue:H,children:(0,e.jsx)(z,{ref:Q,...ue,children:(0,e.jsx)(m.h.ItemText,{asChild:!0,children:(0,e.jsx)(S.Z,{children:a})})})})),z=C.ZP.div`
76
- width: 100%;
77
- border: none;
78
- text-align: left;
79
- outline-offset: -3px;
80
- padding: ${({theme:a})=>a.spaces[2]} ${({theme:a})=>a.spaces[4]};
81
- background-color: ${({theme:a})=>a.colors.neutral0};
82
- border-radius: ${({theme:a})=>a.borderRadius};
83
- user-select: none;
84
-
85
- &[data-selected] {
86
- background-color: ${({theme:a})=>a.colors.primary100};
87
-
88
- ${S.Z} {
89
- color: ${({theme:a})=>a.colors.primary600};
90
- font-weight: bold;
91
- }
92
- }
93
-
94
- &:hover,
95
- &[data-highlighted] {
96
- outline: none;
97
- background-color: ${({theme:a,$hasHover:D=!0})=>D?a.colors.primary100:a.colors.neutral0};
98
- }
99
-
100
- &[data-highlighted] {
101
- ${S.Z} {
102
- color: ${({theme:a})=>a.colors.primary600};
103
- font-weight: bold;
104
- }
105
- }
106
- `},90333:function(q,T,t){t.d(T,{O:function(){return d}});var e=t(21428);const d=e.Wx},17e3:function(q,T,t){t.d(T,{D:function(){return m}});var e=t(74512),d=t(32735),v=t(60216),i=t(72850);const m=({children:C})=>(0,e.jsx)(i.x,{paddingLeft:10,paddingRight:10,children:C});m.propTypes={children:v.node.isRequired}},82055:function(q,T,t){t.d(T,{T:function(){return j}});var e=t(74512),d=t(32735),v=t(60216),i=t(8471);const m=r=>{const L=(0,d.useRef)(null),[y,E]=(0,d.useState)(!0),g=([b])=>{E(b.isIntersecting)};return(0,d.useEffect)(()=>{const b=L.current,I=new IntersectionObserver(g,r);return b&&I.observe(L.current),()=>{b&&I.disconnect()}},[L,r]),[L,y]};var C=t(63060);const K=(r,L)=>{const y=(0,C.W)(L);(0,d.useLayoutEffect)(()=>{const E=new ResizeObserver(y);return Array.isArray(r)?r.forEach(g=>{g.current&&E.observe(g.current)}):r.current&&E.observe(r.current),()=>{E.disconnect()}},[r,y])};var x=t(72850),B=t(87933),$=t(49372);const X=()=>{const r=(0,d.useRef)(null),[L,y]=(0,d.useState)(null),[E,g]=m({root:null,rootMargin:"0px",threshold:0});return K(E,()=>{E.current&&y(E.current.getBoundingClientRect())}),(0,d.useEffect)(()=>{r.current&&y(r.current.getBoundingClientRect())},[r]),{containerRef:E,isVisible:g,baseHeaderLayoutRef:r,headerSize:L}},j=r=>{const{containerRef:L,isVisible:y,baseHeaderLayoutRef:E,headerSize:g}=X();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:g?.height},ref:L,children:y&&(0,e.jsx)(o,{ref:E,...r})}),!y&&(0,e.jsx)(o,{...r,sticky:!0,width:g?.width})]})};j.displayName="HeaderLayout";const S=(0,i.ZP)(x.x)`
107
- width: ${r=>r.width}px;
108
- z-index: ${({theme:r})=>r.zIndices[1]};
109
- `,o=d.forwardRef(({navigationAction:r,primaryAction:L,secondaryAction:y,subtitle:E,title:g,sticky:b,width:I,...F},R)=>{const V=typeof E=="string";return b?(0,e.jsx)(S,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:I,"data-strapi-header-sticky":!0,children:(0,e.jsxs)(B.k,{justifyContent:"space-between",children:[(0,e.jsxs)(B.k,{children:[r&&(0,e.jsx)(x.x,{paddingRight:3,children:r}),(0,e.jsxs)(x.x,{children:[(0,e.jsx)($.Z,{variant:"beta",as:"h1",...F,children:g}),V?(0,e.jsx)($.Z,{variant:"pi",textColor:"neutral600",children:E}):E]}),y?(0,e.jsx)(x.x,{paddingLeft:4,children:y}):null]}),(0,e.jsx)(B.k,{children:L?(0,e.jsx)(x.x,{paddingLeft:2,children:L}):void 0})]})}):(0,e.jsxs)(x.x,{ref:R,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:r?6:8,background:"neutral100","data-strapi-header":!0,children:[r?(0,e.jsx)(x.x,{paddingBottom:2,children:r}):null,(0,e.jsxs)(B.k,{justifyContent:"space-between",children:[(0,e.jsxs)(B.k,{minWidth:0,children:[(0,e.jsx)($.Z,{as:"h1",variant:"alpha",...F,children:g}),y?(0,e.jsx)(x.x,{paddingLeft:4,children:y}):null]}),L]}),V?(0,e.jsx)($.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:E}):E]})});o.displayName="BaseHeaderLayout",o.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},o.propTypes={navigationAction:v.node,primaryAction:v.node,secondaryAction:v.node,sticky:v.bool,subtitle:v.oneOfType([v.string,v.node]),title:v.string.isRequired,width:v.number},j.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},j.propTypes={navigationAction:v.node,primaryAction:v.node,secondaryAction:v.node,subtitle:v.oneOfType([v.string,v.node]),title:v.string.isRequired}},27649:function(q,T,t){t.d(T,{o:function(){return C}});var e=t(74512),d=t(32735),v=t(60216),i=t(8471);const m=i.ZP.main`
110
- // To prevent global outline on focus visible to force an outline when Main is focused
111
- &:focus-visible {
112
- outline: none;
113
- }
114
- `,C=({labelledBy:K,...x})=>(0,e.jsx)(m,{"aria-labelledby":K||"main-content-title",id:"main-content",tabIndex:-1,...x});C.defaultProps={labelledBy:void 0},C.propTypes={labelledBy:v.string}}}]);