@strapi/admin 4.11.0-beta.1 → 4.11.0-exp.9xg4-3qfm-9w8f

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 (78) hide show
  1. package/admin/src/components/Providers/index.js +32 -32
  2. package/admin/src/components/Theme/index.js +3 -5
  3. package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +73 -0
  4. package/admin/src/content-manager/components/DynamicTable/index.js +4 -20
  5. package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +2 -3
  6. package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/index.js +1 -0
  7. package/admin/src/content-manager/{utils → components/EditViewDataManagerProvider/utils}/schema.js +1 -1
  8. package/admin/src/content-manager/components/Inputs/index.js +11 -18
  9. package/admin/src/content-manager/components/Inputs/utils/getStep.js +13 -0
  10. package/admin/src/content-manager/components/Inputs/utils/index.js +1 -0
  11. package/admin/src/content-manager/pages/ListView/index.js +2 -118
  12. package/admin/src/content-manager/utils/index.js +0 -2
  13. package/admin/src/hooks/useContentTypes/useContentTypes.js +0 -2
  14. package/admin/src/injectionZones.js +1 -6
  15. package/admin/src/translations/en.json +1 -5
  16. package/build/{1657.ca8562dd.chunk.js → 1657.3f2b2c11.chunk.js} +1 -9
  17. package/build/3081.7e9329cb.chunk.js +105 -0
  18. package/build/462.6f8cbd19.chunk.js +71 -0
  19. package/build/5542.64b623c9.chunk.js +63 -0
  20. package/build/617.1591eeb0.chunk.js +155 -0
  21. package/build/6858.85d76858.chunk.js +50 -0
  22. package/build/6970.6a329e15.chunk.js +1 -0
  23. package/build/9036.f7ce35cc.chunk.js +211 -0
  24. package/build/{Admin-authenticatedApp.990df65d.chunk.js → Admin-authenticatedApp.0f366684.chunk.js} +2 -2
  25. package/build/{Admin_homePage.107a9fe0.chunk.js → Admin_homePage.94dc81b1.chunk.js} +16 -16
  26. package/build/Admin_marketplace.1b0c3d3b.chunk.js +55 -0
  27. package/build/Admin_pluginsPage.a28b96d5.chunk.js +6 -0
  28. package/build/{Admin_profilePage.75bc083a.chunk.js → Admin_profilePage.a8fa3a56.chunk.js} +1 -1
  29. package/build/Admin_settingsPage.ee76d19e.chunk.js +79 -0
  30. package/build/admin-app.bd209f08.chunk.js +63 -0
  31. package/build/admin-roles-list.af53b372.chunk.js +23 -0
  32. package/build/admin-users.004d5c68.chunk.js +26 -0
  33. package/build/audit-logs-settings-page.dc07596e.chunk.js +121 -0
  34. package/build/content-manager.70548048.chunk.js +1123 -0
  35. package/build/content-type-builder-list-view.26aab6f3.chunk.js +215 -0
  36. package/build/email-settings-page.63f269ff.chunk.js +11 -0
  37. package/build/{en-json.0f5cc115.chunk.js → en-json.ba3290b8.chunk.js} +1 -1
  38. package/build/i18n-settings-page.f84c4782.chunk.js +114 -0
  39. package/build/i18n-translation-en-json.60af6722.chunk.js +1 -0
  40. package/build/index.html +1 -1
  41. package/build/main.4016f4ad.js +2630 -0
  42. package/build/{review-workflows-settings.4b39b837.chunk.js → review-workflows-settings.56cab253.chunk.js} +1 -1
  43. package/build/{runtime~main.55d43bd7.js → runtime~main.b22be595.js} +2 -2
  44. package/build/upload-settings.1d187578.chunk.js +14 -0
  45. package/build/upload.bc340679.chunk.js +26 -0
  46. package/build/users-advanced-settings-page.7b4bf63a.chunk.js +9 -0
  47. package/build/users-email-settings-page.035a026c.chunk.js +24 -0
  48. package/build/users-providers-settings-page.6873dce9.chunk.js +29 -0
  49. package/build/{users-roles-settings-page.c773086b.chunk.js → users-roles-settings-page.2549794b.chunk.js} +1 -1
  50. package/build/webhook-list-page.0861d3e9.chunk.js +63 -0
  51. package/package.json +11 -11
  52. package/admin/src/content-manager/components/DynamicTable/BulkActionsBar/index.js +0 -307
  53. package/build/3081.c2cdfac8.chunk.js +0 -108
  54. package/build/3562.e0b1a0b3.chunk.js +0 -50
  55. package/build/456.9b85d4c6.chunk.js +0 -39
  56. package/build/462.a073ff1f.chunk.js +0 -71
  57. package/build/5542.002522eb.chunk.js +0 -71
  58. package/build/617.87b2fe96.chunk.js +0 -155
  59. package/build/6970.7ea35fbd.chunk.js +0 -1
  60. package/build/Admin_marketplace.1436fc2b.chunk.js +0 -55
  61. package/build/Admin_pluginsPage.e1afd5ed.chunk.js +0 -6
  62. package/build/Admin_settingsPage.bd715ed3.chunk.js +0 -79
  63. package/build/admin-app.8b102fe2.chunk.js +0 -63
  64. package/build/admin-roles-list.e8bf9685.chunk.js +0 -31
  65. package/build/admin-users.751b28b2.chunk.js +0 -34
  66. package/build/audit-logs-settings-page.3c6cea81.chunk.js +0 -129
  67. package/build/content-manager.89099707.chunk.js +0 -1123
  68. package/build/content-type-builder-list-view.1e821eb9.chunk.js +0 -215
  69. package/build/email-settings-page.4368689f.chunk.js +0 -11
  70. package/build/i18n-settings-page.7988d872.chunk.js +0 -114
  71. package/build/i18n-translation-en-json.1ec7becf.chunk.js +0 -1
  72. package/build/main.5a232c3d.js +0 -2630
  73. package/build/upload-settings.63d99bf5.chunk.js +0 -14
  74. package/build/upload.c50d8c7a.chunk.js +0 -34
  75. package/build/users-advanced-settings-page.2cfb5d24.chunk.js +0 -9
  76. package/build/users-email-settings-page.bd6c774a.chunk.js +0 -24
  77. package/build/users-providers-settings-page.528f0036.chunk.js +0 -29
  78. package/build/webhook-list-page.b0f5a02c.chunk.js +0 -71
@@ -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}}]);
@@ -1,11 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1495],{97744:function(b,m,t){t.r(m),t.d(m,{default:function(){return J}});var e=t(32735),d=t(67879),n=t(24989),p=t(7395),f=t(27649),v=t(17e3),E=t(87933),g=t(72850),h=t(49372),x=t(15335),M=t(5803),y=t(10369),P=t(41415),S=t(7961),a=t(60216),l=t.n(a),c=t(8471),o=t(68465),u=t(84967),i=t(85684);const A=c.ZP.a`
2
- color: ${({theme:r})=>r.colors.primary600};
3
- `,R=({config:r})=>{const{formatMessage:s}=(0,d.Z)();return e.createElement(E.k,{direction:"column",alignItems:"stretch",gap:4},e.createElement(E.k,{direction:"column",alignItems:"stretch",gap:1},e.createElement(h.Z,{variant:"delta",as:"h2"},s({id:(0,i.Z)("Settings.email.plugin.title.config"),defaultMessage:"Configuration"})),e.createElement(h.Z,null,s({id:(0,i.Z)("Settings.email.plugin.text.configuration"),defaultMessage:"The plugin is configured through the {file} file, checkout this {link} for the documentation."},{file:"./config/plugins.js",link:e.createElement(A,{href:"https://docs.strapi.io/developer-docs/latest/plugins/email.html",target:"_blank",rel:"noopener noreferrer"},s({id:(0,i.Z)("link"),defaultMessage:"Link"}))}))),e.createElement(x.r,{gap:5},e.createElement(M.P,{col:6,s:12},e.createElement(y.o,{name:"shipper-email",label:s({id:(0,i.Z)("Settings.email.plugin.label.defaultFrom"),defaultMessage:"Default sender email"}),placeholder:s({id:(0,i.Z)("Settings.email.plugin.placeholder.defaultFrom"),defaultMessage:"ex: Strapi No-Reply '<'no-reply@strapi.io'>'"}),disabled:!0,onChange:()=>{},value:r.settings.defaultFrom})),e.createElement(M.P,{col:6,s:12},e.createElement(y.o,{name:"response-email",label:s({id:(0,i.Z)("Settings.email.plugin.label.defaultReplyTo"),defaultMessage:"Default response email"}),placeholder:s({id:(0,i.Z)("Settings.email.plugin.placeholder.defaultReplyTo"),defaultMessage:"ex: Strapi '<'example@strapi.io'>'"}),disabled:!0,onChange:()=>{},value:r.settings.defaultReplyTo})),e.createElement(M.P,{col:6,s:12},e.createElement(o.P,{name:"email-provider",label:s({id:(0,i.Z)("Settings.email.plugin.label.provider"),defaultMessage:"Email provider"}),disabled:!0,onChange:()=>{},value:r.provider},e.createElement(u.W,{value:r.provider},r.provider)))))};R.propTypes={config:l().shape({provider:l().string,settings:l().shape({defaultFrom:l().string,defaultReplyTo:l().string})}).isRequired};var B=R,j=t(24346),D=j.Ry().shape({email:j.Z_().email(n.I0.email).required(n.I0.required)}),z=t(59990);const V=async()=>{const{get:r}=(0,n.tg)(),{data:s}=await r("/email/settings");return s.config},N=async r=>{const{post:s}=(0,n.tg)();await s("/email/test",r)};var $=t(82055),I=()=>{const{formatMessage:r}=(0,d.Z)();return e.createElement(e.Fragment,null,e.createElement(n.SL,{name:r({id:(0,i.Z)("Settings.email.plugin.title"),defaultMessage:"Configuration"})}),e.createElement($.T,{id:"title",title:r({id:(0,i.Z)("Settings.email.plugin.title"),defaultMessage:"Configuration"}),subtitle:r({id:(0,i.Z)("Settings.email.plugin.subTitle"),defaultMessage:"Test the settings for the Email plugin"})}))};const w=()=>e.createElement(n.O4,{permissions:z.Z.settings},e.createElement(G,null)),G=()=>{const r=(0,n.lm)(),{formatMessage:s}=(0,d.Z)(),{lockApp:k,unlockApp:Q}=(0,n.o1)(),{notifyStatus:O}=(0,p.G)();(0,n.go)();const[C,X]=(0,e.useState)({}),[Y,F]=(0,e.useState)(!1),[H,W]=(0,e.useState)(!1),[T,K]=(0,e.useState)(""),[q,U]=(0,e.useState)(!1),[_,ee]=(0,e.useState)({provider:"",settings:{defaultFrom:"",defaultReplyTo:"",testAddress:""}});(0,e.useEffect)(()=>{F(!0),V().then(Z=>{O(s({id:(0,i.Z)("Settings.email.plugin.notification.data.loaded"),defaultMessage:"Email settings data has been loaded"})),ee(Z);const L=Z?.settings?.testAddress;L&&K(L)}).catch(()=>r({type:"warning",message:s({id:(0,i.Z)("Settings.email.plugin.notification.config.error"),defaultMessage:"Failed to retrieve the email config"})})).finally(()=>F(!1))},[s,r,O]),(0,e.useEffect)(()=>{C.email&&document.querySelector("#test-address-input").focus()},[C]),(0,e.useEffect)(()=>{D.validate({email:T},{abortEarly:!1}).then(()=>U(!0)).catch(()=>U(!1))},[T]);const te=Z=>{K(()=>Z.target.value)},ne=async Z=>{Z.preventDefault();try{await D.validate({email:T},{abortEarly:!1}),W(!0),k(),N({to:T}).then(()=>{r({type:"success",message:s({id:(0,i.Z)("Settings.email.plugin.notification.test.success"),defaultMessage:"Email test succeeded, check the {to} mailbox"},{to:T})})}).catch(()=>{r({type:"warning",message:s({id:(0,i.Z)("Settings.email.plugin.notification.test.error"),defaultMessage:"Failed to send a test mail to {to}"},{to:T})})}).finally(()=>{W(!1),Q()})}catch(L){X((0,n.CJ)(L))}};return Y?e.createElement(f.o,{labelledBy:"title","aria-busy":"true"},e.createElement(I,null),e.createElement(v.D,null,e.createElement(n.dO,null))):e.createElement(f.o,{labelledBy:"title","aria-busy":H},e.createElement(I,null),e.createElement(v.D,null,e.createElement("form",{onSubmit:ne},e.createElement(E.k,{direction:"column",alignItems:"stretch",gap:7},e.createElement(g.x,{background:"neutral0",hasRadius:!0,shadow:"filterShadow",paddingTop:6,paddingBottom:6,paddingLeft:7,paddingRight:7},e.createElement(B,{config:_})),e.createElement(g.x,{background:"neutral0",hasRadius:!0,shadow:"filterShadow",paddingTop:6,paddingBottom:6,paddingLeft:7,paddingRight:7},e.createElement(E.k,{direction:"column",alignItems:"stretch",gap:4},e.createElement(h.Z,{variant:"delta",as:"h2"},s({id:(0,i.Z)("Settings.email.plugin.title.test"),defaultMessage:"Test email delivery"})),e.createElement(x.r,{gap:5,alignItems:"end"},e.createElement(M.P,{col:6,s:12},e.createElement(y.o,{id:"test-address-input",name:"test-address",onChange:te,label:s({id:(0,i.Z)("Settings.email.plugin.label.testAddress"),defaultMessage:"Recipient email"}),value:T,error:C.email?.id&&s({id:(0,i.Z)(`${C.email?.id}`),defaultMessage:"This is an invalid email"}),placeholder:s({id:(0,i.Z)("Settings.email.plugin.placeholder.testAddress"),defaultMessage:"ex: developer@example.com"})})),e.createElement(M.P,{col:7,s:12},e.createElement(P.z,{loading:H,disabled:!q,type:"submit",startIcon:e.createElement(S.Z,null)},s({id:(0,i.Z)("Settings.email.plugin.button.test-email"),defaultMessage:"Send test email"}))))))))))};var J=w},17e3:function(b,m,t){t.d(m,{D:function(){return f}});var e=t(74512),d=t(32735),n=t(60216),p=t(72850);const f=({children:v})=>(0,e.jsx)(p.x,{paddingLeft:10,paddingRight:10,children:v});f.propTypes={children:n.node.isRequired}},82055:function(b,m,t){t.d(m,{T:function(){return y}});var e=t(74512),d=t(32735),n=t(60216),p=t(8471);const f=a=>{const l=(0,d.useRef)(null),[c,o]=(0,d.useState)(!0),u=([i])=>{o(i.isIntersecting)};return(0,d.useEffect)(()=>{const i=l.current,A=new IntersectionObserver(u,a);return i&&A.observe(l.current),()=>{i&&A.disconnect()}},[l,a]),[l,c]};var v=t(63060);const E=(a,l)=>{const c=(0,v.W)(l);(0,d.useLayoutEffect)(()=>{const o=new ResizeObserver(c);return Array.isArray(a)?a.forEach(u=>{u.current&&o.observe(u.current)}):a.current&&o.observe(a.current),()=>{o.disconnect()}},[a,c])};var g=t(72850),h=t(87933),x=t(49372);const M=()=>{const a=(0,d.useRef)(null),[l,c]=(0,d.useState)(null),[o,u]=f({root:null,rootMargin:"0px",threshold:0});return E(o,()=>{o.current&&c(o.current.getBoundingClientRect())}),(0,d.useEffect)(()=>{a.current&&c(a.current.getBoundingClientRect())},[a]),{containerRef:o,isVisible:u,baseHeaderLayoutRef:a,headerSize:l}},y=a=>{const{containerRef:l,isVisible:c,baseHeaderLayoutRef:o,headerSize:u}=M();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:u?.height},ref:l,children:c&&(0,e.jsx)(S,{ref:o,...a})}),!c&&(0,e.jsx)(S,{...a,sticky:!0,width:u?.width})]})};y.displayName="HeaderLayout";const P=(0,p.ZP)(g.x)`
4
- width: ${a=>a.width}px;
5
- z-index: ${({theme:a})=>a.zIndices[1]};
6
- `,S=d.forwardRef(({navigationAction:a,primaryAction:l,secondaryAction:c,subtitle:o,title:u,sticky:i,width:A,...R},B)=>{const j=typeof o=="string";return i?(0,e.jsx)(P,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:A,"data-strapi-header-sticky":!0,children:(0,e.jsxs)(h.k,{justifyContent:"space-between",children:[(0,e.jsxs)(h.k,{children:[a&&(0,e.jsx)(g.x,{paddingRight:3,children:a}),(0,e.jsxs)(g.x,{children:[(0,e.jsx)(x.Z,{variant:"beta",as:"h1",...R,children:u}),j?(0,e.jsx)(x.Z,{variant:"pi",textColor:"neutral600",children:o}):o]}),c?(0,e.jsx)(g.x,{paddingLeft:4,children:c}):null]}),(0,e.jsx)(h.k,{children:l?(0,e.jsx)(g.x,{paddingLeft:2,children:l}):void 0})]})}):(0,e.jsxs)(g.x,{ref:B,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:a?6:8,background:"neutral100","data-strapi-header":!0,children:[a?(0,e.jsx)(g.x,{paddingBottom:2,children:a}):null,(0,e.jsxs)(h.k,{justifyContent:"space-between",children:[(0,e.jsxs)(h.k,{minWidth:0,children:[(0,e.jsx)(x.Z,{as:"h1",variant:"alpha",...R,children:u}),c?(0,e.jsx)(g.x,{paddingLeft:4,children:c}):null]}),l]}),j?(0,e.jsx)(x.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:o}):o]})});S.displayName="BaseHeaderLayout",S.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},S.propTypes={navigationAction:n.node,primaryAction:n.node,secondaryAction:n.node,sticky:n.bool,subtitle:n.oneOfType([n.string,n.node]),title:n.string.isRequired,width:n.number},y.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},y.propTypes={navigationAction:n.node,primaryAction:n.node,secondaryAction:n.node,subtitle:n.oneOfType([n.string,n.node]),title:n.string.isRequired}},27649:function(b,m,t){t.d(m,{o:function(){return f}});var e=t(74512),d=t(8471),n=t(72850);const p=(0,d.ZP)(n.x)`
7
- // To prevent global outline on focus visible to force an outline when Main is focused
8
- &:focus-visible {
9
- outline: none;
10
- }
11
- `,f=({labelledBy:v="main-content-title",...E})=>(0,e.jsx)(p,{"aria-labelledby":v,as:"main",id:"main-content",tabIndex:-1,...E})},7961:function(b,m,t){t.d(m,{Z:function(){return n}});var e=t(74512);const d=p=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...p,children:[(0,e.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,e.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,e.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"})]}),n=d}}]);
@@ -1,114 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3552],{98225:function(ee,T,t){t.r(T),t.d(T,{default:function(){return Je}});var e=t(32735),r=t(24989),v=t(60216),i=t.n(v),m=t(67879),C=t(27649),K=t(82055),L=t(41415),R=t(17e3),I=t(9695),Q=t(19406),Z=t(54725),$=t(74552),l=t(60255),u=t(92802),E=t(66456),x=t(85025),p=t(55225),f=t(49372),P=t(31600),A=t(91215),F=t(87933),b=t(90980),V=t(9026),de=t(72850),W=t(3653),re=t(11406),te=t(24346),a=(0,te.Ry)().shape({code:(0,te.Z_)().required(),displayName:(0,te.Z_)().max(50,"Settings.locales.modal.locales.displayName.error").required(r.I0.required)}),O=t(15062),B=t(9494),ae=()=>{const[o,s]=(0,e.useState)(!1),d=(0,O.I0)(),n=(0,r.lm)(),{put:c}=(0,r.kY)();return{isEditing:o,editLocale:async(g,y)=>{try{s(!0);const{data:D}=await c(`/i18n/locales/${g}`,y);n({type:"success",message:{id:(0,l.O)("Settings.locales.modal.edit.success")}}),d({type:B.OT,editedLocale:D})}catch{n({type:"warning",message:{id:"notification.error"}})}finally{s(!1)}}}},H=t(15335),G=t(5803),Pe=t(68465),je=t(84967),J=t(10369),le=t(20108),Re=t(7395),me=()=>{const{formatMessage:o}=(0,m.Z)(),{notifyStatus:s}=(0,Re.G)(),d=(0,r.lm)(),{get:n}=(0,r.kY)(),{isLoading:c,data:h}=(0,le.useQuery)(["plugin-i18n","locales"],async()=>{try{const{data:g}=await n("/i18n/iso-locales");return s(o({id:(0,l.O)("Settings.locales.modal.locales.loaded"),defaultMessage:"The locales have been successfully loaded."})),g}catch{return d({type:"warning",message:{id:"notification.error"}}),[]}});return{defaultLocales:h,isLoading:c}};const he=({locale:o})=>{const{formatMessage:s}=(0,m.Z)(),{values:d,handleChange:n,errors:c}=(0,u.u6)(),{defaultLocales:h,isLoading:g}=me(),y=!g&&h.find(D=>D.code===o.code);return e.createElement(H.r,{gap:4},e.createElement(G.P,{col:6},e.createElement(Pe.P,{label:s({id:(0,l.O)("Settings.locales.modal.locales.label"),defaultMessage:"Locales"}),value:y?.code||o.code,disabled:!0},e.createElement(je.W,{value:y?.code||o.code},y?.name||o.code))),e.createElement(G.P,{col:6},e.createElement(J.o,{name:"displayName",label:s({id:(0,l.O)("Settings.locales.modal.locales.displayName"),defaultMessage:"Locale display name"}),hint:s({id:(0,l.O)("Settings.locales.modal.locales.displayName.description"),defaultMessage:"Locale will be displayed under that name in the administration panel"}),error:c.displayName?s({id:(0,l.O)("Settings.locales.modal.locales.displayName.error"),defaultMessage:"The locale display name can only be less than 50 characters."}):void 0,value:d.displayName,onChange:n})))};var be=he;he.propTypes={locale:i().shape({id:i().number.isRequired,name:i().string.isRequired,code:i().string.isRequired,isDefault:i().bool.isRequired}).isRequired};var ge=t(8284);const X=({isDefaultLocale:o})=>{const{values:s,setFieldValue:d}=(0,u.u6)(),{formatMessage:n}=(0,m.Z)();return e.createElement(ge.X,{name:"isDefault",hint:n({id:(0,l.O)("Settings.locales.modal.advanced.setAsDefault.hint"),defaultMessage:"One default locale is required, change it by selecting another one"}),onChange:()=>d("isDefault",!s.isDefault),value:s.isDefault,disabled:o},n({id:(0,l.O)("Settings.locales.modal.advanced.setAsDefault"),defaultMessage:"Set as default locale"}))};X.propTypes={isDefaultLocale:i().bool.isRequired};var Se=X;const ne=({locale:o,onClose:s})=>{const{refetchPermissions:d}=(0,r.vn)(),{isEditing:n,editLocale:c}=ae(),{formatMessage:h}=(0,m.Z)(),g=async({displayName:y,isDefault:D})=>{await c(o.id,{name:y,isDefault:D}),await d()};return e.createElement(x.P,{onClose:s,labelledBy:"edit-locale-title"},e.createElement(u.J9,{initialValues:{code:o?.code,displayName:o?.name||"",isDefault:Boolean(o?.isDefault)},onSubmit:g,validationSchema:a},e.createElement(r.l0,null,e.createElement(p.x,null,e.createElement(f.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"edit-locale-title"},h({id:(0,l.O)("Settings.list.actions.edit"),defaultMessage:"Edit a locale"}))),e.createElement(P.f,null,e.createElement(A.v,{label:h({id:(0,l.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"}),id:"tabs",variant:"simple"},e.createElement(F.k,{justifyContent:"space-between"},e.createElement(f.Z,{as:"h2"},h({id:(0,l.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"})),e.createElement(b.m,null,e.createElement(b.O,null,h({id:(0,l.O)("Settings.locales.modal.base"),defaultMessage:"Basic settings"})),e.createElement(b.O,null,h({id:(0,l.O)("Settings.locales.modal.advanced"),defaultMessage:"Advanced settings"})))),e.createElement(V.i,null),e.createElement(de.x,{paddingTop:7,paddingBottom:7},e.createElement(W.n,null,e.createElement(W.x,null,e.createElement(be,{locale:o})),e.createElement(W.x,null,e.createElement(Se,{isDefaultLocale:Boolean(o&&o.isDefault)})))))),e.createElement(re.m,{startActions:e.createElement(L.z,{variant:"tertiary",onClick:s},h({id:"app.components.Button.cancel"})),endActions:e.createElement(L.z,{type:"submit",startIcon:e.createElement(E.Z,null),disabled:n},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,pe=()=>{const[o,s]=(0,e.useState)(!1),d=(0,O.I0)(),n=(0,r.lm)(),{del:c}=(0,r.kY)();return{isDeleting:o,deleteLocale:async g=>{try{s(!0),await c(`/i18n/locales/${g}`),n({type:"success",message:{id:(0,l.O)("Settings.locales.modal.delete.success")}}),d({type:B.HC,id:g})}catch{n({type:"warning",message:{id:"notification.error"}})}finally{s(!1)}}}};const oe=({localeToDelete:o,onClose:s})=>{const{isDeleting:d,deleteLocale:n}=pe(),c=Boolean(o),h=()=>n(o.id).then(s);return e.createElement(r.QH,{isConfirmButtonLoading:d,onConfirm:h,onToggleDialog:s,isOpen:c})};oe.defaultProps={localeToDelete:void 0},oe.propTypes={localeToDelete:i().shape({id:i().number.isRequired}),onClose:i().func.isRequired};var Ee=oe,Ae=t(33795),ye=t.n(Ae),xe=()=>{const[o,s]=(0,e.useState)(!1),d=(0,O.I0)(),n=(0,r.lm)(),{post:c}=(0,r.kY)();return{isAdding:o,addLocale:async g=>{s(!0);try{const{data:y}=await c("/i18n/locales",g);n({type:"success",message:{id:(0,l.O)("Settings.locales.modal.create.success")}}),d({type:B.xz,newLocale:y})}catch(y){const D=ye()(y,"response.payload.message",null);throw D&&D.includes("already exists")?n({type:"warning",message:{id:(0,l.O)("Settings.locales.modal.create.alreadyExist")}}):n({type:"warning",message:{id:"notification.error"}}),y}finally{s(!1)}}}},Le=t(21428),Be=t(90333);const Y=e.memo(({value:o,onClear:s,onLocaleChange:d,error:n})=>{const{formatMessage:c}=(0,m.Z)(),{defaultLocales:h,isLoading:g}=me(),{locales:y}=(0,$.Z)(),D=(h||[]).map(j=>({label:j.name,value:j.code})).filter(({value:j})=>{const N=y.find(({code:ie})=>ie===j);return!N||N.code===o}),z=o||"";return e.createElement(Le.hQ,{"aria-busy":g,error:n,label:c({id:(0,l.O)("Settings.locales.modal.locales.label"),defaultMessage:"Locales"}),value:z,onClear:o?s:void 0,onChange:j=>{const N=D.find(ie=>ie.value===j);N&&d({code:N.value,displayName:N.label})},placeholder:c({id:"components.placeholder.select",defaultMessage:"Select"})},D.map(j=>e.createElement(Be.O,{value:j.value,key:j.value},j.label)))});Y.defaultProps={error:void 0,value:void 0,onClear(){},onLocaleChange:()=>{}},Y.propTypes={error:i().string,onClear:i().func,onLocaleChange:i().func,value:i().string};var w=Y,U=()=>{const{formatMessage:o}=(0,m.Z)(),{values:s,handleChange:d,setFieldValue:n,errors:c}=(0,u.u6)(),h=(0,e.useCallback)(y=>{n("displayName",y.displayName),n("code",y.code)},[n]),g=(0,e.useCallback)(()=>{n("displayName",""),n("code","")},[n]);return e.createElement(H.r,{gap:4},e.createElement(G.P,{col:6},e.createElement(w,{error:c.code,value:s.code,onLocaleChange:h,onClear:g})),e.createElement(G.P,{col:6},e.createElement(J.o,{name:"displayName",label:o({id:(0,l.O)("Settings.locales.modal.locales.displayName"),defaultMessage:"Locale display name"}),hint:o({id:(0,l.O)("Settings.locales.modal.locales.displayName.description"),defaultMessage:"Locale will be displayed under that name in the administration panel"}),error:c.displayName?o({id:(0,l.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:d})))},Ze=()=>{const{values:o,setFieldValue:s}=(0,u.u6)(),{formatMessage:d}=(0,m.Z)();return e.createElement(ge.X,{hint:d({id:(0,l.O)("Settings.locales.modal.advanced.setAsDefault.hint"),defaultMessage:"One default locale is required, change it by selecting another one"}),onChange:()=>s("isDefault",!o.isDefault),value:o.isDefault},d({id:(0,l.O)("Settings.locales.modal.advanced.setAsDefault"),defaultMessage:"Set as default locale"}))};const Ce={code:"",displayName:"",isDefault:!1},se=({onClose:o})=>{const{isAdding:s,addLocale:d}=xe(),{formatMessage:n}=(0,m.Z)(),{refetchPermissions:c}=(0,r.vn)(),h=async g=>{await d({code:g.code,name:g.displayName,isDefault:g.isDefault}),await c()};return e.createElement(x.P,{onClose:o,labelledBy:"add-locale-title"},e.createElement(u.J9,{initialValues:Ce,onSubmit:h,validationSchema:a,validateOnChange:!1},e.createElement(r.l0,null,e.createElement(p.x,null,e.createElement(f.Z,{fontWeight:"bold",textColor:"neutral800",as:"h2",id:"add-locale-title"},n({id:(0,l.O)("Settings.list.actions.add"),defaultMessage:"Add new locale"}))),e.createElement(P.f,null,e.createElement(A.v,{label:n({id:(0,l.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"}),id:"tabs",variant:"simple"},e.createElement(F.k,{justifyContent:"space-between"},e.createElement(f.Z,{as:"h2",variant:"beta"},n({id:(0,l.O)("Settings.locales.modal.title"),defaultMessage:"Configurations"})),e.createElement(b.m,null,e.createElement(b.O,null,n({id:(0,l.O)("Settings.locales.modal.base"),defaultMessage:"Basic settings"})),e.createElement(b.O,null,n({id:(0,l.O)("Settings.locales.modal.advanced"),defaultMessage:"Advanced settings"})))),e.createElement(V.i,null),e.createElement(de.x,{paddingTop:7,paddingBottom:7},e.createElement(W.n,null,e.createElement(W.x,null,e.createElement(U,null)),e.createElement(W.x,null,e.createElement(Ze,null)))))),e.createElement(re.m,{startActions:e.createElement(L.z,{variant:"tertiary",onClick:o},n({id:"app.components.Button.cancel",defaultMessage:"Cancel"})),endActions:e.createElement(L.z,{type:"submit",startIcon:e.createElement(E.Z,null),disabled:s},n({id:"global.save",defaultMessage:"Save"}))}))))};se.propTypes={onClose:i().func.isRequired};var Me=se,$e=t(56755),k=t(33827),Oe=t(94547),S=t(19786),Fe=t(3685),We=t(35658),De=t(50563),Ue=t(68625),Ne=t(4038);const q=({locales:o,onDeleteLocale:s,onEditLocale:d})=>{const{formatMessage:n}=(0,m.Z)();return e.createElement($e.i,{colCount:4,rowCount:o.length+1},e.createElement(k.h,null,e.createElement(Oe.Tr,null,e.createElement(S.Th,null,e.createElement(f.Z,{variant:"sigma",textColor:"neutral600"},n({id:(0,l.O)("Settings.locales.row.id")}))),e.createElement(S.Th,null,e.createElement(f.Z,{variant:"sigma",textColor:"neutral600"},n({id:(0,l.O)("Settings.locales.row.displayName")}))),e.createElement(S.Th,null,e.createElement(f.Z,{variant:"sigma",textColor:"neutral600"},n({id:(0,l.O)("Settings.locales.row.default-locale")}))),e.createElement(S.Th,null,e.createElement(Fe.T,null,"Actions")))),e.createElement(We.p,null,o.map(c=>e.createElement(Oe.Tr,{key:c.id,...(0,r.X7)({fn:()=>d(c),condition:d})},e.createElement(S.Td,null,e.createElement(f.Z,{textColor:"neutral800"},c.id)),e.createElement(S.Td,null,e.createElement(f.Z,{textColor:"neutral800"},c.name)),e.createElement(S.Td,null,e.createElement(f.Z,{textColor:"neutral800"},c.isDefault?n({id:(0,l.O)("Settings.locales.default")}):null)),e.createElement(S.Td,null,e.createElement(F.k,{gap:1,justifyContent:"flex-end",...r.UW},d&&e.createElement(De.h,{onClick:()=>d(c),label:n({id:(0,l.O)("Settings.list.actions.edit")}),icon:e.createElement(Ue.Z,null),noBorder:!0}),s&&!c.isDefault&&e.createElement(De.h,{onClick:()=>s(c),label:n({id:(0,l.O)("Settings.list.actions.delete")}),icon:e.createElement(Ne.Z,null),noBorder:!0})))))))};q.defaultProps={locales:[],onDeleteLocale:void 0,onEditLocale:void 0},q.propTypes={locales:i().array,onDeleteLocale:i().func,onEditLocale:i().func};var Ke=q;const _=({canUpdateLocale:o,canDeleteLocale:s,onToggleCreateModal:d,isCreating:n})=>{const[c,h]=(0,e.useState)(),[g,y]=(0,e.useState)(),{locales:D}=(0,$.Z)(),{formatMessage:z}=(0,m.Z)();(0,r.go)();const j=()=>h(void 0),N=s?h:void 0,ie=()=>y(void 0),Xe=o?y:void 0;return e.createElement(C.o,{tabIndex:-1},e.createElement(K.T,{primaryAction:e.createElement(L.z,{startIcon:e.createElement(Q.Z,null),onClick:d,size:"S"},z({id:(0,l.O)("Settings.list.actions.add")})),title:z({id:(0,l.O)("plugin.name")}),subtitle:z({id:(0,l.O)("Settings.list.description")})}),e.createElement(R.D,null,D?.length>0?e.createElement(Ke,{locales:D,onDeleteLocale:N,onEditLocale:Xe}):e.createElement(I.x,{icon:e.createElement(Z.Z,{width:void 0,height:void 0}),content:z({id:(0,l.O)("Settings.list.empty.title")}),action:d?e.createElement(L.z,{variant:"secondary",startIcon:e.createElement(Q.Z,null),onClick:d},z({id:(0,l.O)("Settings.list.actions.add")})):null})),n&&e.createElement(Me,{onClose:d}),g&&e.createElement(fe,{onClose:ie,locale:g}),e.createElement(Ee,{localeToDelete:c,onClose:j}))};_.defaultProps={onToggleCreateModal:void 0},_.propTypes={canUpdateLocale:i().bool.isRequired,canDeleteLocale:i().bool.isRequired,onToggleCreateModal:i().func,isCreating:i().bool.isRequired};var Ve=_;const Te=({canReadLocale:o,canCreateLocale:s,canDeleteLocale:d,canUpdateLocale:n})=>{const[c,h]=(0,e.useState)(!1),g=s?()=>h(y=>!y):void 0;return o?e.createElement(Ve,{canUpdateLocale:n,canDeleteLocale:d,onToggleCreateModal:g,isCreating:c}):null};Te.propTypes={canReadLocale:i().bool.isRequired,canCreateLocale:i().bool.isRequired,canUpdateLocale:i().bool.isRequired,canDeleteLocale:i().bool.isRequired};var M=Te,Ge=t(58347),Je=()=>{const{isLoading:o,allowedActions:{canRead:s,canUpdate:d,canCreate:n,canDelete:c}}=(0,r.ss)(Ge.Z);return o?null:e.createElement(M,{canReadLocale:s,canCreateLocale:n,canUpdateLocale:d,canDeleteLocale:c})}},21428:function(ee,T,t){t.d(T,{Wx:function(){return te},XU:function(){return A},hQ:function(){return P}});var e=t(74512),r=t(32735),v=t(35331),i=t(16899),m=t(42345),C=t(8471),K=t(14268),L=t(95976),R=t(74971),I=t(36971),Q=t(30350),Z=t(23866),$=t(72850),l=t(49372),u=t(87107),E=t(87933),x=t(28847),p=t(67014),f=t(47851);const P=({children:a,clearLabel:O="clear",creatable:B=!1,createMessage:ue=w=>`Create "${w}"`,defaultFilterValue:ae,defaultTextValue:H,defaultOpen:G=!1,open:Pe,onOpenChange:je,disabled:J=!1,error:le,filterValue:Re,hasMoreItems:ze=!1,hint:me,id:he,label:be,labelAction:ge,loading:X=!1,loadingMessage:Se="Loading content...",noOptionsMessage:ne=()=>"No results found",onChange:fe,onClear:ve,onCreateOption:pe,onFilterValueChange:oe,onInputChange:Ee,onTextValueChange:Ae,onLoadMore:ye,placeholder:Qe="Select or enter a value",required:xe=!1,startIcon:Le,textValue:Be,value:Y})=>{const[w,He]=(0,L.T)({prop:Pe,defaultProp:G,onChange:je}),[U,Ie]=(0,L.T)({prop:Be,defaultProp:H,onChange:Ae}),[Ze,Ce]=(0,L.T)({prop:Re,defaultProp:ae,onChange:oe}),se=r.useRef(null),Me=r.useRef(null),$e=r.useRef(null),k=(0,R.M)(he),Oe=M=>{ve&&!J&&(Ie(""),Ce(""),ve(M),Me.current.focus())},S=M=>{He(M)},Fe=M=>{Ie(M)},We=M=>{Ce(M)},De=M=>{Ee&&Ee(M)},Ue=M=>{fe&&fe(M)},Ne=(0,R.M)(),q=`intersection-${(0,K.B)(Ne)}`,Ke=M=>{ye&&ze&&!X&&ye(M)},_=()=>{pe&&U&&pe(U)};(0,I.s)(se,Ke,{selectorToWatch:`#${q}`,skipWhen:!w});const Ve=`${k}-hint`,Te=`${k}-error`;return(0,e.jsx)(u.g,{hint:me,error:le,id:k,required:xe,children:(0,e.jsxs)(E.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(x.Q,{action:ge,children:be}),(0,e.jsxs)(m.hQ.Root,{autocomplete:B?"list":"both",open:w,onOpenChange:S,onTextValueChange:Fe,textValue:U,allowCustomValue:!0,disabled:J,required:xe,value:Y===null?void 0:Y,onValueChange:Ue,filterValue:Ze,onFilterValueChange:We,children:[(0,e.jsxs)(b,{$hasError:!!le,children:[(0,e.jsxs)(E.k,{flex:"1",as:"span",gap:3,children:[Le?(0,e.jsx)($.x,{as:"span","aria-hidden":!0,children:Le}):null,(0,e.jsx)(V,{placeholder:Qe,id:k,"aria-invalid":!!le,"aria-labelledby":`${Ve} ${Te}`,onChange:De,ref:Me})]}),(0,e.jsxs)(E.k,{as:"span",gap:3,children:[U&&ve?(0,e.jsx)(F,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:Oe,"aria-disabled":J,"aria-label":O,title:O,ref:$e,children:(0,e.jsx)(v.Z,{})}):null,(0,e.jsx)(de,{children:(0,e.jsx)(i.Z,{})})]})]}),(0,e.jsx)(m.hQ.Portal,{children:(0,e.jsx)(W,{sideOffset:4,children:(0,e.jsxs)(re,{ref:se,children:[a,B?(0,e.jsx)(m.hQ.CreateItem,{onPointerUp:_,onClick:_,asChild:!0,children:(0,e.jsx)(ce,{children:(0,e.jsx)(l.Z,{children:ue(U??"")})})}):null,!B&&!X?(0,e.jsx)(m.hQ.NoValueFound,{asChild:!0,children:(0,e.jsx)(ce,{$hasHover:!1,children:(0,e.jsx)(l.Z,{children:ne(U??"")})})}):null,X?(0,e.jsx)(E.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(Z.a,{small:!0,children:Se})}):null,(0,e.jsx)($.x,{id:q,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(p.J,{}),(0,e.jsx)(f.c,{})]})})},A=a=>(0,e.jsx)(P,{...a,creatable:!0}),F=(0,C.ZP)($.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
- `,b=(0,C.ZP)(m.hQ.Trigger)`
13
- position: relative;
14
- border: 1px solid ${({theme:a,$hasError:O})=>O?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:O})=>(0,Q.k3)()({theme:a,hasError:O})};
37
- `,V=(0,C.ZP)(m.hQ.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
- `,de=(0,C.ZP)(m.hQ.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
- `,W=(0,C.ZP)(m.hQ.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
- `,re=(0,C.ZP)(m.hQ.Viewport)`
74
- padding: ${({theme:a})=>a.spaces[1]};
75
- `,te=r.forwardRef(({children:a,value:O,disabled:B,textValue:ue,...ae},H)=>(0,e.jsx)(m.hQ.ComboboxItem,{asChild:!0,value:O,disabled:B,textValue:ue,children:(0,e.jsx)(ce,{ref:H,...ae,children:(0,e.jsx)(m.hQ.ItemText,{asChild:!0,children:(0,e.jsx)(l.Z,{children:a})})})})),ce=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
- ${l.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:O=!0})=>O?a.colors.primary100:a.colors.neutral0};
98
- }
99
-
100
- &[data-highlighted] {
101
- ${l.Z} {
102
- color: ${({theme:a})=>a.colors.primary600};
103
- font-weight: bold;
104
- }
105
- }
106
- `},90333:function(ee,T,t){t.d(T,{O:function(){return r}});var e=t(21428);const r=e.Wx},17e3:function(ee,T,t){t.d(T,{D:function(){return m}});var e=t(74512),r=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(ee,T,t){t.d(T,{T:function(){return Z}});var e=t(74512),r=t(32735),v=t(60216),i=t(8471);const m=u=>{const E=(0,r.useRef)(null),[x,p]=(0,r.useState)(!0),f=([P])=>{p(P.isIntersecting)};return(0,r.useEffect)(()=>{const P=E.current,A=new IntersectionObserver(f,u);return P&&A.observe(E.current),()=>{P&&A.disconnect()}},[E,u]),[E,x]};var C=t(63060);const K=(u,E)=>{const x=(0,C.W)(E);(0,r.useLayoutEffect)(()=>{const p=new ResizeObserver(x);return Array.isArray(u)?u.forEach(f=>{f.current&&p.observe(f.current)}):u.current&&p.observe(u.current),()=>{p.disconnect()}},[u,x])};var L=t(72850),R=t(87933),I=t(49372);const Q=()=>{const u=(0,r.useRef)(null),[E,x]=(0,r.useState)(null),[p,f]=m({root:null,rootMargin:"0px",threshold:0});return K(p,()=>{p.current&&x(p.current.getBoundingClientRect())}),(0,r.useEffect)(()=>{u.current&&x(u.current.getBoundingClientRect())},[u]),{containerRef:p,isVisible:f,baseHeaderLayoutRef:u,headerSize:E}},Z=u=>{const{containerRef:E,isVisible:x,baseHeaderLayoutRef:p,headerSize:f}=Q();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:f?.height},ref:E,children:x&&(0,e.jsx)(l,{ref:p,...u})}),!x&&(0,e.jsx)(l,{...u,sticky:!0,width:f?.width})]})};Z.displayName="HeaderLayout";const $=(0,i.ZP)(L.x)`
107
- width: ${u=>u.width}px;
108
- z-index: ${({theme:u})=>u.zIndices[1]};
109
- `,l=r.forwardRef(({navigationAction:u,primaryAction:E,secondaryAction:x,subtitle:p,title:f,sticky:P,width:A,...F},b)=>{const V=typeof p=="string";return P?(0,e.jsx)($,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:A,"data-strapi-header-sticky":!0,children:(0,e.jsxs)(R.k,{justifyContent:"space-between",children:[(0,e.jsxs)(R.k,{children:[u&&(0,e.jsx)(L.x,{paddingRight:3,children:u}),(0,e.jsxs)(L.x,{children:[(0,e.jsx)(I.Z,{variant:"beta",as:"h1",...F,children:f}),V?(0,e.jsx)(I.Z,{variant:"pi",textColor:"neutral600",children:p}):p]}),x?(0,e.jsx)(L.x,{paddingLeft:4,children:x}):null]}),(0,e.jsx)(R.k,{children:E?(0,e.jsx)(L.x,{paddingLeft:2,children:E}):void 0})]})}):(0,e.jsxs)(L.x,{ref:b,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:u?6:8,background:"neutral100","data-strapi-header":!0,children:[u?(0,e.jsx)(L.x,{paddingBottom:2,children:u}):null,(0,e.jsxs)(R.k,{justifyContent:"space-between",children:[(0,e.jsxs)(R.k,{minWidth:0,children:[(0,e.jsx)(I.Z,{as:"h1",variant:"alpha",...F,children:f}),x?(0,e.jsx)(L.x,{paddingLeft:4,children:x}):null]}),E]}),V?(0,e.jsx)(I.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:p}):p]})});l.displayName="BaseHeaderLayout",l.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},l.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},Z.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},Z.propTypes={navigationAction:v.node,primaryAction:v.node,secondaryAction:v.node,subtitle:v.oneOfType([v.string,v.node]),title:v.string.isRequired}},27649:function(ee,T,t){t.d(T,{o:function(){return m}});var e=t(74512),r=t(8471),v=t(72850);const i=(0,r.ZP)(v.x)`
110
- // To prevent global outline on focus visible to force an outline when Main is focused
111
- &:focus-visible {
112
- outline: none;
113
- }
114
- `,m=({labelledBy:C="main-content-title",...K})=>(0,e.jsx)(i,{"aria-labelledby":C,as:"main",id:"main-content",tabIndex:-1,...K})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8175],{67878:function(e){e.exports=JSON.parse(`{"CMEditViewCopyLocale.copy-failure":"Failed to copy locale","CMEditViewCopyLocale.copy-success":"Locale copied","CMEditViewCopyLocale.copy-text":"Fill in from another locale","CMEditViewCopyLocale.submit-text":"Yes, fill in","CMListView.popover.display-locales.label":"Display translated locales","CheckboxConfirmation.Modal.body":"Do you want to disable it?","CheckboxConfirmation.Modal.button-confirm":"Yes, disable","CheckboxConfirmation.Modal.content":"Disabling localization will engender the deletion of all your content but the one associated to your default locale (if existing).","Field.localized":"This value is unique for the selected locale","Field.not-localized":"This value is common to all locales","Settings.list.actions.add":"Add new locale","Settings.list.actions.delete":"Delete a locale","Settings.list.actions.deleteAdditionalInfos":"This will delete the active locale versions <em>(from Internationalization)</em>","Settings.list.actions.publishAdditionalInfos":"This will publish the active locale versions <em>(from Internationalization)</em>","Settings.list.actions.unpublishAdditionalInfos":"This will unpublish the active locale versions <em>(from Internationalization)</em>","Settings.list.actions.edit":"Edit a locale","Settings.list.description":"Configure the settings for the Internationalization plugin","Settings.list.empty.description":"This is not a usual behavior, meaning that you have eventually modified the database manually. Make sure to have at least one locale saved in your database in order to be able to use Strapi correctly.","Settings.list.empty.title":"There are no locales.","Settings.locales.default":"Default","Settings.locales.list.sort.default":"Sort by the default locale","Settings.locales.list.sort.displayName":"Sort by display name","Settings.locales.list.sort.id":"Sort by ID","Settings.locales.modal.advanced":"Advanced settings","Settings.locales.modal.advanced.setAsDefault":"Set as default locale","Settings.locales.modal.advanced.setAsDefault.hint":"One default locale is required, change it by selecting another one","Settings.locales.modal.advanced.settings":"Settings","Settings.locales.modal.base":"Basic settings","Settings.locales.modal.create.alreadyExist":"This locale already exists","Settings.locales.modal.create.defaultLocales.loading":"Loading the available locales...","Settings.locales.modal.create.success":"Locale successfully added","Settings.locales.modal.create.tab.label":"Navigating between the I18N basic settings and advanced settings","Settings.locales.modal.delete.confirm":"Yes, delete","Settings.locales.modal.delete.message":"Deleting this locale will delete all associated content. If you want to keep some content, make sure to reallocate it to another locale first.","Settings.locales.modal.delete.secondMessage":"Do you want to delete this locale?","Settings.locales.modal.delete.success":"Locale successfully deleted","Settings.locales.modal.edit.confirmation":"Finish","Settings.locales.modal.edit.locales.label":"Locales","Settings.locales.modal.edit.success":"Locale successfully edited","Settings.locales.modal.edit.tab.label":"Navigating between the I18N basic settings and advanced settings","Settings.locales.modal.locales.displayName":"Locale display name","Settings.locales.modal.locales.displayName.description":"Locale will be displayed under that name in the administration panel","Settings.locales.modal.locales.displayName.error":"The locale display name can only be less than 50 characters.","Settings.locales.modal.locales.label":"Locales","Settings.locales.modal.locales.loaded":"The locales have been successfully loaded.","Settings.locales.modal.title":"Configurations","Settings.locales.row.default-locale":"Default locale","Settings.locales.row.displayName":"Display name","Settings.locales.row.id":"ID","Settings.permissions.loading":"Loading permissions","Settings.permissions.read.denied.description":"In order to be able to read this, make sure to get in touch with the administrator of your system.","Settings.permissions.read.denied.title":"You don't have the permissions to access this content.","actions.select-locale":"Select a locale","components.Select.locales.not-available":"No content available","plugin.description.long":"This plugin enables to create, to read and to update content in different languages, both from the Admin Panel and from the API.","plugin.description.short":"This plugin enables to create, to read and to update content in different languages, both from the Admin Panel and from the API.","plugin.name":"Internationalization","plugin.schema.i18n.ensure-unique-localization":"Unique fields must be localized","plugin.schema.i18n.localized.description-content-type":"Allows translating an entry into different languages","plugin.schema.i18n.localized.description-field":"The field can have different values in each language","plugin.schema.i18n.localized.label-content-type":"Internationalization","plugin.schema.i18n.localized.label-field":"Enable localization for this field"}`)}}]);