@strapi/admin 4.14.0-alpha.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/admin/src/components/RBACProvider/index.js +1 -1
  2. package/admin/src/content-manager/components/BlocksEditor/BlocksInput/index.js +87 -0
  3. package/admin/src/content-manager/components/BlocksEditor/Toolbar/index.js +463 -0
  4. package/admin/src/content-manager/components/BlocksEditor/hooks/useBlocksStore.js +451 -0
  5. package/admin/src/content-manager/components/BlocksEditor/hooks/useModifiersStore.js +102 -0
  6. package/admin/src/content-manager/components/BlocksEditor/index.js +126 -0
  7. package/admin/src/content-manager/components/InputUID/index.js +92 -109
  8. package/admin/src/content-manager/components/Inputs/index.js +3 -1
  9. package/admin/src/content-manager/components/Inputs/utils/getInputType.js +2 -0
  10. package/admin/src/content-manager/components/RelationInput/RelationInput.js +59 -43
  11. package/admin/src/content-manager/components/Wysiwyg/EditorLayout.js +2 -2
  12. package/admin/src/content-manager/hooks/useRelation/useRelation.js +84 -86
  13. package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/ConfirmBulkActionDialog/index.js +3 -0
  14. package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/SelectedEntriesModal/index.js +2 -1
  15. package/admin/src/content-manager/pages/ListView/index.js +1 -0
  16. package/admin/src/content-manager/utils/schema.js +22 -0
  17. package/admin/src/index.js +7 -1
  18. package/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/index.js +1 -1
  19. package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/index.js +0 -1
  20. package/admin/src/pages/MarketplacePage/components/NpmPackagesGrid/index.js +1 -1
  21. package/admin/src/translations/en.json +17 -0
  22. package/build/1049.acb0e730.chunk.js +1 -0
  23. package/build/1227.969e24e6.chunk.js +1 -0
  24. package/build/{1386.ea73b677.chunk.js → 1386.db9a2795.chunk.js} +1 -1
  25. package/build/2225.78fb9b89.chunk.js +79 -0
  26. package/build/2379.906334f0.chunk.js +1 -0
  27. package/build/{2395.0e5e8ded.chunk.js → 2395.f6ac2863.chunk.js} +2 -2
  28. package/build/2614.3e088d3e.chunk.js +35 -0
  29. package/build/{6691.4985ef22.chunk.js → 2659.cb94f1e7.chunk.js} +28 -28
  30. package/build/{2801.8e1aa82a.chunk.js → 2801.2afb4757.chunk.js} +1 -1
  31. package/build/{1387.a86ac314.chunk.js → 2950.216f2e89.chunk.js} +1 -1
  32. package/build/3021.33ad47fb.chunk.js +103 -0
  33. package/build/3911.488fbde3.chunk.js +95 -0
  34. package/build/4174.3e13fb26.chunk.js +1 -0
  35. package/build/4546.1203ac95.chunk.js +1 -0
  36. package/build/{502.7bba43b1.chunk.js → 502.9918bff7.chunk.js} +1 -1
  37. package/build/{4628.9cbb6df5.chunk.js → 5158.c85f841a.chunk.js} +1 -1
  38. package/build/6266.e8990811.chunk.js +146 -0
  39. package/build/6715.48e37308.chunk.js +1 -0
  40. package/build/6812.00ef5b0d.chunk.js +26 -0
  41. package/build/{7464.eb057bec.chunk.js → 7464.0280cf59.chunk.js} +1 -1
  42. package/build/7897.4a39de37.chunk.js +6 -0
  43. package/build/{8276.be3ed581.chunk.js → 8276.951e198e.chunk.js} +2 -2
  44. package/build/9832.65ed5a44.chunk.js +181 -0
  45. package/build/{Admin-authenticatedApp.d200a4ee.chunk.js → Admin-authenticatedApp.7e17bf9f.chunk.js} +7 -7
  46. package/build/Admin_InternalErrorPage.b3163562.chunk.js +1 -0
  47. package/build/{Admin_homePage.6f128523.chunk.js → Admin_homePage.6cb51f18.chunk.js} +10 -10
  48. package/build/Admin_marketplace.3eb5e132.chunk.js +55 -0
  49. package/build/Admin_pluginsPage.b9fa2947.chunk.js +6 -0
  50. package/build/{Admin_profilePage.678bce24.chunk.js → Admin_profilePage.a4d41380.chunk.js} +2 -2
  51. package/build/Admin_settingsPage.6dc2af9f.chunk.js +111 -0
  52. package/build/Upload_ConfigureTheView.cc7ca628.chunk.js +1 -0
  53. package/build/{admin-app.582877a3.chunk.js → admin-app.98cdf43a.chunk.js} +8 -8
  54. package/build/{admin-edit-roles-page.0aa65505.chunk.js → admin-edit-roles-page.418bb1c5.chunk.js} +30 -30
  55. package/build/admin-edit-users.9b42cc9e.chunk.js +10 -0
  56. package/build/admin-roles-list.cf964578.chunk.js +22 -0
  57. package/build/admin-users.8385dd73.chunk.js +11 -0
  58. package/build/{api-tokens-create-page.e0c15627.chunk.js → api-tokens-create-page.2f25ddf6.chunk.js} +1 -1
  59. package/build/{api-tokens-edit-page.9f2dce47.chunk.js → api-tokens-edit-page.45faac16.chunk.js} +1 -1
  60. package/build/api-tokens-list-page.5baabf1a.chunk.js +16 -0
  61. package/build/audit-logs-settings-page.91489670.chunk.js +1 -0
  62. package/build/content-manager.0d2b4a60.chunk.js +1199 -0
  63. package/build/{content-type-builder-list-view.b71cf240.chunk.js → content-type-builder-list-view.aa8a5d1a.chunk.js} +14 -14
  64. package/build/content-type-builder-translation-en-json.b9e5cacd.chunk.js +1 -0
  65. package/build/content-type-builder.885f2cad.chunk.js +146 -0
  66. package/build/email-settings-page.6bd7b280.chunk.js +11 -0
  67. package/build/{en-json.e12fd5fc.chunk.js → en-json.a3973ff5.chunk.js} +1 -1
  68. package/build/i18n-settings-page.6c0157e7.chunk.js +9 -0
  69. package/build/i18n-translation-tr-json.3bfc812f.chunk.js +1 -0
  70. package/build/index.html +1 -1
  71. package/build/main.105dcf23.js +2665 -0
  72. package/build/review-workflows-settings-create-view.ae369a88.chunk.js +1 -0
  73. package/build/review-workflows-settings-edit-view.9a61c69f.chunk.js +1 -0
  74. package/build/{review-workflows-settings-list-view.7e300ecb.chunk.js → review-workflows-settings-list-view.067e0c35.chunk.js} +5 -5
  75. package/build/{runtime~main.9de029f4.js → runtime~main.866715be.js} +2 -2
  76. package/build/sso-settings-page.a29e6c38.chunk.js +1 -0
  77. package/build/{transfer-tokens-create-page.ebba16d8.chunk.js → transfer-tokens-create-page.6e1b8cee.chunk.js} +1 -1
  78. package/build/{transfer-tokens-edit-page.d7bb2b3e.chunk.js → transfer-tokens-edit-page.10bb22e2.chunk.js} +1 -1
  79. package/build/transfer-tokens-list-page.0306652c.chunk.js +16 -0
  80. package/build/upload-settings.0af6edc5.chunk.js +14 -0
  81. package/build/upload.19e14c8e.chunk.js +58 -0
  82. package/build/users-advanced-settings-page.ed69812f.chunk.js +9 -0
  83. package/build/users-email-settings-page.131a00fb.chunk.js +9 -0
  84. package/build/users-providers-settings-page.b3dca41d.chunk.js +14 -0
  85. package/build/{users-roles-settings-page.2b051e6a.chunk.js → users-roles-settings-page.afab5a0d.chunk.js} +4 -4
  86. package/build/{webhook-edit-page.de45c635.chunk.js → webhook-edit-page.4c037da4.chunk.js} +3 -3
  87. package/build/webhook-list-page.56c82f4a.chunk.js +63 -0
  88. package/ee/admin/content-manager/pages/EditView/InformationBox/components/AssigneeSelect/AssigneeSelect.js +5 -15
  89. package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/getDisplayedFilters.js +1 -1
  90. package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +48 -20
  91. package/ee/server/bootstrap.js +3 -3
  92. package/ee/server/content-types/workflow-stage/index.js +1 -1
  93. package/ee/server/controllers/admin.js +1 -1
  94. package/ee/server/controllers/user.js +1 -1
  95. package/ee/server/destroy.js +1 -1
  96. package/ee/server/migrations/review-workflows-stages-roles.js +68 -0
  97. package/ee/server/migrations/review-workflows-workflow-name.js +7 -0
  98. package/ee/server/register.js +3 -1
  99. package/ee/server/routes/utils.js +1 -1
  100. package/ee/server/services/audit-logs.js +1 -1
  101. package/ee/server/services/passport/sso.js +1 -1
  102. package/ee/server/services/passport.js +1 -1
  103. package/ee/server/services/review-workflows/stage-permissions.js +1 -1
  104. package/ee/server/services/review-workflows/stages.js +10 -2
  105. package/ee/server/services/seat-enforcement.js +1 -1
  106. package/ee/server/utils/sso-lock.js +1 -1
  107. package/ee/server/validation/role.js +1 -1
  108. package/ee/server/validation/user.js +1 -1
  109. package/package.json +21 -13
  110. package/server/bootstrap.js +3 -1
  111. package/server/controllers/admin.js +1 -1
  112. package/server/domain/permission/index.js +8 -1
  113. package/server/services/metrics.js +17 -0
  114. package/server/validation/permission.js +1 -1
  115. package/utils/plugins.js +7 -1
  116. package/build/1049.ec69f5e0.chunk.js +0 -1
  117. package/build/1227.ec336799.chunk.js +0 -1
  118. package/build/1504.eff012f7.chunk.js +0 -95
  119. package/build/2225.649fb7bc.chunk.js +0 -79
  120. package/build/2379.1f98a31a.chunk.js +0 -1
  121. package/build/3739.63e352f1.chunk.js +0 -103
  122. package/build/4174.4587c7f6.chunk.js +0 -1
  123. package/build/448.829e1344.chunk.js +0 -1
  124. package/build/4546.6dbd695f.chunk.js +0 -1
  125. package/build/6266.53be9ea3.chunk.js +0 -124
  126. package/build/7897.eac204a4.chunk.js +0 -6
  127. package/build/9806.5d5a0e8d.chunk.js +0 -160
  128. package/build/9944.7af075a5.chunk.js +0 -26
  129. package/build/Admin_InternalErrorPage.38155af3.chunk.js +0 -1
  130. package/build/Admin_marketplace.061a6e5a.chunk.js +0 -55
  131. package/build/Admin_pluginsPage.16f837b8.chunk.js +0 -6
  132. package/build/Admin_settingsPage.af7309e4.chunk.js +0 -111
  133. package/build/Upload_ConfigureTheView.3fc1c100.chunk.js +0 -1
  134. package/build/admin-edit-users.9215912a.chunk.js +0 -10
  135. package/build/admin-roles-list.824a50de.chunk.js +0 -22
  136. package/build/admin-users.f6b3c643.chunk.js +0 -11
  137. package/build/api-tokens-list-page.d747051c.chunk.js +0 -16
  138. package/build/audit-logs-settings-page.be2cb4dd.chunk.js +0 -1
  139. package/build/content-manager.06a2f7ec.chunk.js +0 -1097
  140. package/build/content-type-builder-translation-en-json.ed29ff4d.chunk.js +0 -1
  141. package/build/content-type-builder.e5669749.chunk.js +0 -170
  142. package/build/email-settings-page.2809f0bf.chunk.js +0 -11
  143. package/build/i18n-settings-page.5f716172.chunk.js +0 -9
  144. package/build/i18n-translation-tr-json.10f0600d.chunk.js +0 -1
  145. package/build/main.0b88b960.js +0 -2863
  146. package/build/review-workflows-settings-create-view.604cffa0.chunk.js +0 -1
  147. package/build/review-workflows-settings-edit-view.73c57f07.chunk.js +0 -1
  148. package/build/sso-settings-page.94373f78.chunk.js +0 -1
  149. package/build/transfer-tokens-list-page.cfe1736c.chunk.js +0 -16
  150. package/build/upload-settings.5e55266d.chunk.js +0 -14
  151. package/build/upload.0660a088.chunk.js +0 -58
  152. package/build/users-advanced-settings-page.818d84eb.chunk.js +0 -9
  153. package/build/users-email-settings-page.c1967c09.chunk.js +0 -9
  154. package/build/users-providers-settings-page.11893e08.chunk.js +0 -14
  155. package/build/webhook-list-page.ca91df8b.chunk.js +0 -63
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5905],{14417:function(oe,O,n){n.r(O),n.d(O,{default:function(){return lt}});var e=n(32735),C=n(82055),m=n(87933),j=n(41415),H=n(17e3),g=n(72850),r=n(45509),M=n(19406),S=n(66456),D=n(68625),X=n(29439),K=n(33795),l=n.n(K),f=n(23973),T=n.n(f),v=n(89793),x=n.n(v),k=n(23940),N=n.n(k),I=n(67879),J=n(53038),G=n(56755),ge=n(33827),fe=n(94547),_=n(19786),Z=n(49372),Pe=n(73269),je=n(60216),o=n.n(je),V=n(97782),he=n(20666),b=n(32105),$=n(8471),ye=$.ZP.tr`
1
+ "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5905],{14417:function(oe,O,n){n.r(O),n.d(O,{default:function(){return lt}});var e=n(32735),C=n(64092),m=n(84642),P=n(91779),H=n(56932),g=n(77981),r=n(43806),M=n(82064),w=n(40501),D=n(63318),X=n(70788),V=n(33795),l=n.n(V),f=n(23973),T=n.n(f),v=n(89793),x=n.n(v),k=n(23940),z=n.n(k),F=n(67879),J=n(53038),G=n(23699),ge=n(41013),fe=n(45037),_=n(27947),Z=n(8365),Be=n(22116),Pe=n(60216),o=n.n(Pe),K=n(97782),he=n(20666),b=n(32105),$=n(8471),ye=$.ZP.tr`
2
2
  &.component-row,
3
3
  &.dynamiczone-row {
4
4
  position: relative;
@@ -29,7 +29,7 @@
29
29
  &.dynamiczone-row > td:first-of-type {
30
30
  padding: 0;
31
31
  }
32
- `;function ae({customRowComponent:t,component:a,isFromDynamicZone:i,isNestedInDZComponent:s,firstLoopComponentUid:p}){const{modifiedData:d}=(0,V.Z)(),{schema:{attributes:h}}=l()(d,["components",a],{schema:{attributes:[]}});return e.createElement(ye,{isChildOfDynamicZone:i,className:"component-row"},e.createElement("td",{colSpan:12},e.createElement(xe,{customRowComponent:t,items:h,targetUid:a,firstLoopComponentUid:p||a,editTarget:"components",isFromDynamicZone:i,isNestedInDZComponent:s,isSub:!0,secondLoopComponentUid:p?a:null})))}ae.defaultProps={component:null,customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1},ae.propTypes={component:o().string,customRowComponent:o().func,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,isNestedInDZComponent:o().bool};var Ee=ae,ke=n(35331),Be=n(99140),ve=n(51401);function re({isActive:t,icon:a}){return e.createElement(m.k,{alignItems:"center",background:t?"primary200":"neutral200",justifyContent:"center",height:8,width:8,borderRadius:"50%"},e.createElement(Be.J,{as:ve.c[a]||ve.c.cube,height:5,width:5}))}re.defaultProps={isActive:!1,icon:"Cube"},re.propTypes={isActive:o().bool,icon:o().string};const be=(0,$.ZP)(g.x)`
32
+ `;function ae({customRowComponent:t,component:a,isFromDynamicZone:i,isNestedInDZComponent:s,firstLoopComponentUid:u}){const{modifiedData:d}=(0,K.Z)(),{schema:{attributes:h}}=l()(d,["components",a],{schema:{attributes:[]}});return e.createElement(ye,{isChildOfDynamicZone:i,className:"component-row"},e.createElement("td",{colSpan:12},e.createElement(xe,{customRowComponent:t,items:h,targetUid:a,firstLoopComponentUid:u||a,editTarget:"components",isFromDynamicZone:i,isNestedInDZComponent:s,isSub:!0,secondLoopComponentUid:u?a:null})))}ae.defaultProps={component:null,customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1},ae.propTypes={component:o().string,customRowComponent:o().func,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,isNestedInDZComponent:o().bool};var Ee=ae,ke=n(98610),je=n(18129),ve=n(51401);function re({isActive:t,icon:a}){return e.createElement(m.k,{alignItems:"center",background:t?"primary200":"neutral200",justifyContent:"center",height:8,width:8,borderRadius:"50%"},e.createElement(je.J,{as:ve.c[a]||ve.c.cube,height:5,width:5}))}re.defaultProps={isActive:!1,icon:"Cube"},re.propTypes={isActive:o().bool,icon:o().string};const be=(0,$.ZP)(g.x)`
33
33
  position: absolute;
34
34
  display: none;
35
35
  top: 5px;
@@ -43,7 +43,7 @@
43
43
  fill: ${({theme:t})=>t.colors.primary600};
44
44
  }
45
45
  }
46
- `,Ae=(0,$.ZP)(m.k)`
46
+ `,Ie=(0,$.ZP)(m.k)`
47
47
  width: ${(0,r.Q1)(140)};
48
48
  height: ${(0,r.Q1)(80)};
49
49
  position: relative;
@@ -78,7 +78,7 @@
78
78
  }
79
79
  }
80
80
  }
81
- `;function le({component:t,dzName:a,index:i,isActive:s,isInDevelopmentMode:p,onClick:d}){const{modifiedData:h,removeComponentFromDynamicZone:B}=(0,V.Z)(),{schema:{icon:L,displayName:R}}=l()(h,["components",t],{schema:{}}),y=c=>{c.stopPropagation(),B(a,i)};return e.createElement(Ae,{alignItems:"center",direction:"column",className:s?"active":"",borderRadius:"borderRadius",justifyContent:"center",paddingLeft:4,paddingRight:4,shrink:0,onClick:d,role:"tab",tabIndex:s?0:-1,cursor:"pointer","aria-selected":s,"aria-controls":`dz-${a}-panel-${i}`,id:`dz-${a}-tab-${i}`},e.createElement(re,{icon:L,isActive:s}),e.createElement(g.x,{marginTop:1,maxWidth:"100%"},e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",ellipsis:!0},R)),p&&e.createElement(be,{as:"button",onClick:y},e.createElement(ke.Z,null)))}le.defaultProps={component:null,isActive:!1,isInDevelopmentMode:!1,onClick(){}},le.propTypes={component:o().string,dzName:o().string.isRequired,index:o().number.isRequired,isActive:o().bool,isInDevelopmentMode:o().bool,onClick:o().func};var Ie=le;const Fe=(0,$.ZP)(M.Z)`
81
+ `;function le({component:t,dzName:a,index:i,isActive:s,isInDevelopmentMode:u,onClick:d}){const{modifiedData:h,removeComponentFromDynamicZone:j}=(0,K.Z)(),{schema:{icon:L,displayName:R}}=l()(h,["components",t],{schema:{}}),y=c=>{c.stopPropagation(),j(a,i)};return e.createElement(Ie,{alignItems:"center",direction:"column",className:s?"active":"",borderRadius:"borderRadius",justifyContent:"center",paddingLeft:4,paddingRight:4,shrink:0,onClick:d,role:"tab",tabIndex:s?0:-1,cursor:"pointer","aria-selected":s,"aria-controls":`dz-${a}-panel-${i}`,id:`dz-${a}-tab-${i}`},e.createElement(re,{icon:L,isActive:s}),e.createElement(g.x,{marginTop:1,maxWidth:"100%"},e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",ellipsis:!0},R)),u&&e.createElement(be,{as:"button",onClick:y},e.createElement(ke.Z,null)))}le.defaultProps={component:null,isActive:!1,isInDevelopmentMode:!1,onClick(){}},le.propTypes={component:o().string,dzName:o().string.isRequired,index:o().number.isRequired,isActive:o().bool,isInDevelopmentMode:o().bool,onClick:o().func};var Fe=le;const Ae=(0,$.ZP)(M.Z)`
82
82
  width: ${(0,r.Q1)(32)};
83
83
  height: ${(0,r.Q1)(32)};
84
84
  padding: ${(0,r.Q1)(9)};
@@ -87,7 +87,7 @@
87
87
  path {
88
88
  fill: ${({theme:t})=>t.colors.primary600};
89
89
  }
90
- `,we=(0,$.ZP)(g.x)`
90
+ `,Se=(0,$.ZP)(g.x)`
91
91
  height: ${(0,r.Q1)(90)};
92
92
  position: absolute;
93
93
  width: 100%;
@@ -96,7 +96,7 @@
96
96
  `,Oe=(0,$.ZP)(m.k)`
97
97
  width: 100%;
98
98
  overflow-x: auto;
99
- `,Se=(0,$.ZP)(g.x)`
99
+ `,we=(0,$.ZP)(g.x)`
100
100
  padding-top: ${(0,r.Q1)(90)};
101
101
  `,Ue=(0,$.ZP)(m.k)`
102
102
  flex-shrink: 0;
@@ -104,7 +104,7 @@
104
104
  height: ${(0,r.Q1)(80)};
105
105
  justify-content: center;
106
106
  align-items: center;
107
- `;function ie({customRowComponent:t,components:a,addComponent:i,name:s,targetUid:p}){const{isInDevelopmentMode:d}=(0,V.Z)(),[h,B]=(0,e.useState)(0),{formatMessage:L}=(0,I.Z)(),R=c=>{h!==c&&B(c)},y=()=>{i(s)};return e.createElement(ye,{className:"dynamiczone-row",isFromDynamicZone:!0},e.createElement("td",{colSpan:12},e.createElement(we,{paddingLeft:8},e.createElement(Oe,{gap:2},d&&e.createElement("button",{type:"button",onClick:y},e.createElement(Ue,{direction:"column",alignItems:"stretch",gap:1},e.createElement(Fe,null),e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600"},L({id:(0,b.Z)("button.component.add"),formatMessage:"Add a component"})))),e.createElement(m.k,{role:"tablist",gap:2},a.map((c,u)=>e.createElement(Ie,{key:c,dzName:s,index:u,component:c,isActive:h===u,isInDevelopmentMode:d,onClick:()=>R(u)}))))),e.createElement(Se,null,a.map((c,u)=>{const E={customRowComponent:t,component:c};return e.createElement(g.x,{id:`dz-${s}-panel-${u}`,role:"tabpanel",tabindex:0,"aria-labelledby":`dz-${s}-tab-${u}`,key:c,style:{display:h===u?"block":"none"}},e.createElement("table",null,e.createElement("tbody",null,e.createElement(Ee,{...E,isFromDynamicZone:!0,targetUid:p,key:c}))))}))))}ie.defaultProps={addComponent(){},components:[],customRowComponent:null,name:null},ie.propTypes={addComponent:o().func,components:o().instanceOf(Array),customRowComponent:o().func,name:o().string,targetUid:o().string.isRequired};var We=ie;const Ne=(0,$.ZP)(g.x)`
107
+ `;function ie({customRowComponent:t,components:a,addComponent:i,name:s,targetUid:u}){const{isInDevelopmentMode:d}=(0,K.Z)(),[h,j]=(0,e.useState)(0),{formatMessage:L}=(0,F.Z)(),R=c=>{h!==c&&j(c)},y=()=>{i(s)};return e.createElement(ye,{className:"dynamiczone-row",isFromDynamicZone:!0},e.createElement("td",{colSpan:12},e.createElement(Se,{paddingLeft:8},e.createElement(Oe,{gap:2},d&&e.createElement("button",{type:"button",onClick:y},e.createElement(Ue,{direction:"column",alignItems:"stretch",gap:1},e.createElement(Ae,null),e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600"},L({id:(0,b.Z)("button.component.add"),formatMessage:"Add a component"})))),e.createElement(m.k,{role:"tablist",gap:2},a.map((c,p)=>e.createElement(Fe,{key:c,dzName:s,index:p,component:c,isActive:h===p,isInDevelopmentMode:d,onClick:()=>R(p)}))))),e.createElement(we,null,a.map((c,p)=>{const E={customRowComponent:t,component:c};return e.createElement(g.x,{id:`dz-${s}-panel-${p}`,role:"tabpanel",tabindex:0,"aria-labelledby":`dz-${s}-tab-${p}`,key:c,style:{display:h===p?"block":"none"}},e.createElement("table",null,e.createElement("tbody",null,e.createElement(Ee,{...E,isFromDynamicZone:!0,targetUid:u,key:c}))))}))))}ie.defaultProps={addComponent(){},components:[],customRowComponent:null,name:null},ie.propTypes={addComponent:o().func,components:o().instanceOf(Array),customRowComponent:o().func,name:o().string,targetUid:o().string.isRequired};var We=ie;const ze=(0,$.ZP)(g.x)`
108
108
  height: ${24/16}rem;
109
109
  width: ${24/16}rem;
110
110
  border-radius: 50%;
@@ -120,14 +120,14 @@
120
120
  svg path {
121
121
  fill: ${({theme:t,color:a})=>t.colors[`${a}600`]};
122
122
  }
123
- `,ze=(0,$.ZP)(g.x)`
123
+ `,Ne=(0,$.ZP)(g.x)`
124
124
  border-radius: 0 0 ${({theme:t})=>t.borderRadius} ${({theme:t})=>t.borderRadius};
125
125
  display: block;
126
126
  width: 100%;
127
127
  border: none;
128
128
  position: relative;
129
129
  left: -0.25rem;
130
- `,Ce=({children:t,icon:a,color:i,...s})=>e.createElement(ze,{paddingBottom:4,paddingTop:4,as:"button",type:"button",...s},e.createElement(m.k,null,e.createElement(Ne,{color:i,"aria-hidden":!0,background:`${i}200`},a),e.createElement(g.x,{paddingLeft:3},e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",textColor:`${i}600`},t))));Ce.propTypes={color:o().string.isRequired,children:o().string.isRequired,icon:o().node.isRequired};var Qe=Ce,Ke=(0,$.ZP)(g.x)`
130
+ `,Ce=({children:t,icon:a,color:i,...s})=>e.createElement(Ne,{paddingBottom:4,paddingTop:4,as:"button",type:"button",...s},e.createElement(m.k,null,e.createElement(ze,{color:i,"aria-hidden":!0,background:`${i}200`},a),e.createElement(g.x,{paddingLeft:3},e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",textColor:`${i}600`},t))));Ce.propTypes={color:o().string.isRequired,children:o().string.isRequired,icon:o().node.isRequired};var Qe=Ce,Ve=(0,$.ZP)(g.x)`
131
131
  table {
132
132
  width: 100%;
133
133
  white-space: nowrap;
@@ -162,7 +162,7 @@
162
162
  color: ${({theme:t})=>t.colors.neutral600};
163
163
  outline-offset: -4px;
164
164
  }
165
- `;function se({addComponentToDZ:t,customRowComponent:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:p,isMain:d,isNestedInDZComponent:h,isSub:B,items:L,secondLoopComponentUid:R,targetUid:y}){const{formatMessage:c}=(0,I.Z)(),{trackUsage:u}=(0,r.rS)(),{isInDevelopmentMode:E,modifiedData:z,isInContentTypeView:F}=(0,V.Z)(),{onOpenModalAddField:U}=(0,he.Z)(),A=()=>{u("hasClickedCTBAddFieldBanner"),U({forTarget:i,targetUid:y})};return y?L.length===0&&d?e.createElement(G.i,{colCount:2,rowCount:2},e.createElement(ge.h,null,e.createElement(fe.Tr,null,e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{action:e.createElement(j.z,{onClick:A,size:"L",startIcon:e.createElement(M.Z,null),variant:"secondary"},c({id:(0,b.Z)("table.button.no-fields"),defaultMessage:"Add new field"})),colSpan:2,content:F?{id:(0,b.Z)("table.content.no-fields.collection-type"),defaultMessage:"Add your first field to this Collection-Type"}:{id:(0,b.Z)("table.content.no-fields.component"),defaultMessage:"Add your first field to this component"}})):e.createElement(Ke,null,e.createElement(g.x,{paddingLeft:6,paddingRight:d?6:0,...d&&{style:{overflowX:"auto"}}},e.createElement("table",null,d&&e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement("th",{colSpan:"2"},e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement("tbody",null,L.map(w=>{const{type:Q}=w,Y=a;return e.createElement(e.Fragment,{key:w.name},e.createElement(Y,{...w,isNestedInDZComponent:h,targetUid:y,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:p,secondLoopComponentUid:R}),Q==="component"&&e.createElement(Ee,{...w,customRowComponent:a,targetUid:y,isNestedInDZComponent:p,editTarget:i,firstLoopComponentUid:s}),Q==="dynamiczone"&&e.createElement(We,{...w,customRowComponent:a,addComponent:t,targetUid:y}))})))),d&&E&&e.createElement(Pe.c,{icon:e.createElement(M.Z,null),onClick:A},c({id:(0,b.Z)(`form.button.add.field.to.${z.contentType?z.contentType.schema.kind:i||"collectionType"}`),defaultMessage:"Add another field"})),B&&E&&e.createElement(Qe,{icon:e.createElement(M.Z,null),onClick:A,color:p?"primary":"neutral"},c({id:(0,b.Z)("form.button.add.field.to.component"),defaultMessage:"Add another field"}))):e.createElement(G.i,{colCount:2,rowCount:2},e.createElement(ge.h,null,e.createElement(fe.Tr,null,e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{colSpan:2,content:{id:(0,b.Z)("table.content.create-first-content-type"),defaultMessage:"Create your first Collection-Type"}}))}se.defaultProps={addComponentToDZ(){},customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1,isMain:!1,isSub:!1,items:[],secondLoopComponentUid:null,targetUid:null},se.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 xe=se,Te=n(50563),Ve=n(4038),He=n(45147);const Xe=(0,$.ZP)(g.x)`
165
+ `;function se({addComponentToDZ:t,customRowComponent:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:u,isMain:d,isNestedInDZComponent:h,isSub:j,items:L,secondLoopComponentUid:R,targetUid:y}){const{formatMessage:c}=(0,F.Z)(),{trackUsage:p}=(0,r.rS)(),{isInDevelopmentMode:E,modifiedData:N,isInContentTypeView:A}=(0,K.Z)(),{onOpenModalAddField:U}=(0,he.Z)(),I=()=>{p("hasClickedCTBAddFieldBanner"),U({forTarget:i,targetUid:y})};return y?L.length===0&&d?e.createElement(G.i,{colCount:2,rowCount:2},e.createElement(ge.h,null,e.createElement(fe.Tr,null,e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{action:e.createElement(P.z,{onClick:I,size:"L",startIcon:e.createElement(M.Z,null),variant:"secondary"},c({id:(0,b.Z)("table.button.no-fields"),defaultMessage:"Add new field"})),colSpan:2,content:A?{id:(0,b.Z)("table.content.no-fields.collection-type"),defaultMessage:"Add your first field to this Collection-Type"}:{id:(0,b.Z)("table.content.no-fields.component"),defaultMessage:"Add your first field to this component"}})):e.createElement(Ve,null,e.createElement(g.x,{paddingLeft:6,paddingRight:d?6:0,...d&&{style:{overflowX:"auto"}}},e.createElement("table",null,d&&e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement("th",{colSpan:"2"},e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement("tbody",null,L.map(S=>{const{type:Q}=S,Y=a;return e.createElement(e.Fragment,{key:S.name},e.createElement(Y,{...S,isNestedInDZComponent:h,targetUid:y,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:u,secondLoopComponentUid:R}),Q==="component"&&e.createElement(Ee,{...S,customRowComponent:a,targetUid:y,isNestedInDZComponent:u,editTarget:i,firstLoopComponentUid:s}),Q==="dynamiczone"&&e.createElement(We,{...S,customRowComponent:a,addComponent:t,targetUid:y}))})))),d&&E&&e.createElement(Be.c,{icon:e.createElement(M.Z,null),onClick:I},c({id:(0,b.Z)(`form.button.add.field.to.${N.contentType?N.contentType.schema.kind:i||"collectionType"}`),defaultMessage:"Add another field"})),j&&E&&e.createElement(Qe,{icon:e.createElement(M.Z,null),onClick:I,color:u?"primary":"neutral"},c({id:(0,b.Z)("form.button.add.field.to.component"),defaultMessage:"Add another field"}))):e.createElement(G.i,{colCount:2,rowCount:2},e.createElement(ge.h,null,e.createElement(fe.Tr,null,e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{colSpan:2,content:{id:(0,b.Z)("table.content.create-first-content-type"),defaultMessage:"Create your first Collection-Type"}}))}se.defaultProps={addComponentToDZ(){},customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1,isMain:!1,isSub:!1,items:[],secondLoopComponentUid:null,targetUid:null},se.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 xe=se,Te=n(14763),Ke=n(94997),He=n(36328);const Xe=(0,$.ZP)(g.x)`
166
166
  position: absolute;
167
167
  left: -1.125rem;
168
168
  top: 0px;
@@ -182,12 +182,12 @@
182
182
  * {
183
183
  fill: ${({theme:t,color:a})=>t.colors[a]};
184
184
  }
185
- `,Ze=t=>e.createElement(Xe,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"})));Ze.propTypes={color:o().string.isRequired};var Ge=Ze,Ye=n(93953);const ce=({content:t})=>N()(t);ce.defaultProps={content:null},ce.propTypes={content:o().string};var qe=ce,_e=(0,$.ZP)(g.x)`
185
+ `,Ze=t=>e.createElement(Xe,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"})));Ze.propTypes={color:o().string.isRequired};var Ge=Ze,Ye=n(67275);const ce=({content:t})=>z()(t);ce.defaultProps={content:null},ce.propTypes={content:o().string};var qe=ce,_e=(0,$.ZP)(g.x)`
186
186
  position: relative;
187
- `;const de=({type:t,customField:a,repeatable:i})=>{const{formatMessage:s}=(0,I.Z)();let p=t;return["integer","biginteger","float","decimal"].includes(t)?p="number":["string"].includes(t)&&(p="text"),a?e.createElement(Z.Z,null,s({id:(0,b.Z)("attribute.customField"),defaultMessage:"Custom field"})):e.createElement(Z.Z,null,s({id:(0,b.Z)(`attribute.${p}`),defaultMessage:t}),"\xA0",i&&s({id:(0,b.Z)("component.repeatable"),defaultMessage:"(repeatable)"}))};de.defaultProps={customField:null,repeatable:!1},de.propTypes={type:o().string.isRequired,customField:o().string,repeatable:o().bool};var et=de;function me({configurable:t,customField:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:p,name:d,onClick:h,relation:B,repeatable:L,secondLoopComponentUid:R,target:y,targetUid:c,type:u}){const{contentTypes:E,isInDevelopmentMode:z,removeAttribute:F}=(0,V.Z)(),{formatMessage:U}=(0,I.Z)(),A=u==="relation"&&B.includes("morph"),w=["integer","biginteger","float","decimal"].includes(u)?"number":u,Q=l()(E,[y],{}),Y=l()(Q,["schema","displayName"],""),q=l()(Q,"plugin"),ue=y?"relation":w,ee=()=>{A||t!==!1&&h(i,R||s||c,d,u,a)};let W;return R&&s?W=2:s?W=1:W=0,e.createElement(_e,{as:"tr",...(0,r.X7)({fn:ee,condition:z&&t&&!A})},e.createElement("td",{style:{position:"relative"}},W!==0&&e.createElement(Ge,{color:p?"primary200":"neutral150"}),e.createElement(m.k,{paddingLeft:2,gap:4},e.createElement(Ye.Z,{type:ue,customField:a}),e.createElement(Z.Z,{fontWeight:"bold"},d))),e.createElement("td",null,y?e.createElement(Z.Z,null,U({id:(0,b.Z)(`modelPage.attribute.${A?"relation-polymorphic":"relationWith"}`),defaultMessage:"Relation with"}),"\xA0",e.createElement("span",{style:{fontStyle:"italic"}},e.createElement(qe,{content:Y}),"\xA0",q&&`(${U({id:(0,b.Z)("from"),defaultMessage:"from"})}: ${q})`)):e.createElement(et,{type:u,customField:a,repeatable:L})),e.createElement("td",null,z?e.createElement(m.k,{justifyContent:"flex-end",...r.UW},t?e.createElement(m.k,{gap:1},!A&&e.createElement(Te.h,{onClick:ee,label:`${U({id:"app.utils.edit",defaultMessage:"Edit"})} ${d}`,noBorder:!0,icon:e.createElement(D.Z,null)}),e.createElement(Te.h,{onClick:te=>{te.stopPropagation(),F(i,d,R||s||"")},label:`${U({id:"global.delete",defaultMessage:"Delete"})} ${d}`,noBorder:!0,icon:e.createElement(Ve.Z,null)})):e.createElement(He.Z,null)):e.createElement(g.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 tt=(0,e.memo)(me),nt=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},ot=n(2669);const at={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}]},pe=({disabled:t,isTemporary:a,isInContentTypeView:i,contentTypeKind:s,targetUid:p})=>{const{formatMessage:d}=(0,I.Z)(),{push:h}=(0,J.k6)(),{collectionTypesConfigurations:B,componentsConfigurations:L,singleTypesConfigurations:R}=at,y=d({id:"content-type-builder.form.button.configure-view"});let c=B;const u=()=>(a||h(i?`/content-manager/collectionType/${p}/configurations/edit`:`/content-manager/components/${p}/configurations/edit`),!1);return i&&s==="singleType"&&(c=R),i||(c=L),e.createElement(r.jW,{permissions:c},e.createElement(j.z,{startIcon:e.createElement(ot.Z,null),variant:"tertiary",onClick:u,disabled:a||t},y))};pe.defaultProps={contentTypeKind:"collectionType",isInContentTypeView:!0,isTemporary:!1,targetUid:""},pe.propTypes={disabled:o().bool.isRequired,contentTypeKind:o().string,isInContentTypeView:o().bool,isTemporary:o().bool,targetUid:o().string};var rt=(0,e.memo)(pe),lt=()=>{const{initialData:t,modifiedData:a,isInDevelopmentMode:i,isInContentTypeView:s,submitData:p}=(0,V.Z)(),{formatMessage:d}=(0,I.Z)(),{trackUsage:h}=(0,r.rS)(),B=(0,J.$B)("/plugins/content-type-builder/:kind/:currentUID"),{onOpenModalAddComponentsToDZ:L,onOpenModalAddField:R,onOpenModalEditField:y,onOpenModalEditSchema:c,onOpenModalEditCustomField:u}=(0,he.Z)(),E=s?"contentType":"component",z=[E,"schema","attributes"],F=l()(a,[E,"uid"]),U=l()(a,[E,"isTemporary"],!1),A=l()(a,[E,"schema","kind"],null),w=l()(a,z,[]),Q=T()(t,[E,"plugin"]),Y=!x()(a,t),q=s?"contentType":"component",ue=P=>{L({dynamicZoneTarget:P,targetUid:F})},ee=async(P,$e,Me,De,Re)=>{const Le=nt(De);Re?u({forTarget:P,targetUid:$e,attributeName:Me,attributeType:Le,customFieldUid:Re}):y({forTarget:P,targetUid:$e,attributeName:Me,attributeType:Le,step:De==="component"?"2":null})};let W=l()(a,[E,"schema","displayName"],"");const te=l()(a,[E,"schema","kind"],""),ne=B?.params.currentUID==="create-content-type";!W&&ne&&(W=d({id:(0,b.Z)("button.model.create"),defaultMessage:"Create new collection type"}));const it=()=>{const P=te||E;P==="collectionType"&&h("willEditNameOfContentType"),P==="singleType"&&h("willEditNameOfSingleType"),c({modalType:E,forTarget:E,targetUid:F,kind:P})};return e.createElement(e.Fragment,null,e.createElement(J.NL,{message:P=>P.hash==="#back"?!1:d({id:(0,b.Z)("prompt.unsaved")}),when:Y}),e.createElement(C.T,{id:"title",primaryAction:i&&e.createElement(m.k,{gap:2},!ne&&e.createElement(j.z,{startIcon:e.createElement(M.Z,null),variant:"secondary",onClick:()=>{R({forTarget:q,targetUid:F})}},d({id:(0,b.Z)("button.attributes.add.another")})),e.createElement(j.z,{startIcon:e.createElement(S.Z,null),onClick:()=>p(),type:"submit",disabled:x()(a,t)},d({id:"global.save",defaultMessage:"Save"}))),secondaryAction:i&&!Q&&!ne&&e.createElement(j.z,{startIcon:e.createElement(D.Z,null),variant:"tertiary",onClick:it},d({id:"app.utils.edit",defaultMessage:"Edit"})),title:N()(W),subtitle:d({id:(0,b.Z)("listView.headerLayout.description"),defaultMessage:"Build the data architecture of your content"}),navigationAction:e.createElement(r.rU,{startIcon:e.createElement(X.Z,null),to:"/plugins/content-type-builder/"},d({id:"global.back",defaultMessage:"Back"}))}),e.createElement(H.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(rt,{key:"link-to-cm-settings-view",targetUid:F,isTemporary:U,isInContentTypeView:s,contentTypeKind:A,disabled:ne}))),e.createElement(g.x,{background:"neutral0",shadow:"filterShadow",hasRadius:!0},e.createElement(xe,{items:w,customRowComponent:P=>e.createElement(tt,{...P,onClick:ee}),addComponentToDZ:ue,targetUid:F,editTarget:q,isMain:!0})))))}},17e3:function(oe,O,n){n.d(O,{D:function(){return m}});var e=n(74512),C=n(72850);const m=({children:j})=>(0,e.jsx)(C.x,{paddingLeft:10,paddingRight:10,children:j})},82055:function(oe,O,n){n.d(O,{T:function(){return D}});var e=n(74512),C=n(32735),m=n(8471);const j=l=>{const f=(0,C.useRef)(null),[T,v]=(0,C.useState)(!0),x=([k])=>{v(k.isIntersecting)};return(0,C.useEffect)(()=>{const k=f.current,N=new IntersectionObserver(x,l);return k&&N.observe(f.current),()=>{k&&N.disconnect()}},[f,l]),[f,T]};var H=n(81957);const g=(l,f)=>{const T=(0,H.W)(f);(0,C.useLayoutEffect)(()=>{const v=new ResizeObserver(T);return Array.isArray(l)?l.forEach(x=>{x.current&&v.observe(x.current)}):l.current&&v.observe(l.current),()=>{v.disconnect()}},[l,T])};var r=n(72850),M=n(87933),S=n(49372);const D=l=>{const f=(0,C.useRef)(null),[T,v]=(0,C.useState)(null),[x,k]=j({root:null,rootMargin:"0px",threshold:0});return g(x,()=>{x.current&&v(x.current.getBoundingClientRect())}),(0,C.useEffect)(()=>{f.current&&v(f.current.getBoundingClientRect())},[f]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:T?.height},ref:x,children:k&&(0,e.jsx)(K,{ref:f,...l})}),!k&&(0,e.jsx)(K,{...l,sticky:!0,width:T?.width})]})};D.displayName="HeaderLayout";const X=(0,m.ZP)(r.x)`
187
+ `;const de=({type:t,customField:a,repeatable:i})=>{const{formatMessage:s}=(0,F.Z)();let u=t;return["integer","biginteger","float","decimal"].includes(t)?u="number":["string"].includes(t)&&(u="text"),a?e.createElement(Z.Z,null,s({id:(0,b.Z)("attribute.customField"),defaultMessage:"Custom field"})):e.createElement(Z.Z,null,s({id:(0,b.Z)(`attribute.${u}`),defaultMessage:t}),"\xA0",i&&s({id:(0,b.Z)("component.repeatable"),defaultMessage:"(repeatable)"}))};de.defaultProps={customField:null,repeatable:!1},de.propTypes={type:o().string.isRequired,customField:o().string,repeatable:o().bool};var et=de;function me({configurable:t,customField:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:u,name:d,onClick:h,relation:j,repeatable:L,secondLoopComponentUid:R,target:y,targetUid:c,type:p}){const{contentTypes:E,isInDevelopmentMode:N,removeAttribute:A}=(0,K.Z)(),{formatMessage:U}=(0,F.Z)(),I=p==="relation"&&j.includes("morph"),S=["integer","biginteger","float","decimal"].includes(p)?"number":p,Q=l()(E,[y],{}),Y=l()(Q,["schema","displayName"],""),q=l()(Q,"plugin"),pe=y?"relation":S,ee=()=>{I||t!==!1&&h(i,R||s||c,d,p,a)};let W;return R&&s?W=2:s?W=1:W=0,e.createElement(_e,{as:"tr",...(0,r.X7)({fn:ee,condition:N&&t&&!I})},e.createElement("td",{style:{position:"relative"}},W!==0&&e.createElement(Ge,{color:u?"primary200":"neutral150"}),e.createElement(m.k,{paddingLeft:2,gap:4},e.createElement(Ye.Z,{type:pe,customField:a}),e.createElement(Z.Z,{fontWeight:"bold"},d))),e.createElement("td",null,y?e.createElement(Z.Z,null,U({id:(0,b.Z)(`modelPage.attribute.${I?"relation-polymorphic":"relationWith"}`),defaultMessage:"Relation with"}),"\xA0",e.createElement("span",{style:{fontStyle:"italic"}},e.createElement(qe,{content:Y}),"\xA0",q&&`(${U({id:(0,b.Z)("from"),defaultMessage:"from"})}: ${q})`)):e.createElement(et,{type:p,customField:a,repeatable:L})),e.createElement("td",null,N?e.createElement(m.k,{justifyContent:"flex-end",...r.UW},t?e.createElement(m.k,{gap:1},!I&&e.createElement(Te.h,{onClick:ee,label:`${U({id:"app.utils.edit",defaultMessage:"Edit"})} ${d}`,noBorder:!0,icon:e.createElement(D.Z,null)}),e.createElement(Te.h,{onClick:te=>{te.stopPropagation(),A(i,d,R||s||"")},label:`${U({id:"global.delete",defaultMessage:"Delete"})} ${d}`,noBorder:!0,icon:e.createElement(Ke.Z,null)})):e.createElement(He.Z,null)):e.createElement(g.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 tt=(0,e.memo)(me),nt=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},ot=n(9780);const at={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:i,contentTypeKind:s,targetUid:u})=>{const{formatMessage:d}=(0,F.Z)(),{push:h}=(0,J.k6)(),{collectionTypesConfigurations:j,componentsConfigurations:L,singleTypesConfigurations:R}=at,y=d({id:"content-type-builder.form.button.configure-view"});let c=j;const p=()=>(a||h(i?`/content-manager/collectionType/${u}/configurations/edit`:`/content-manager/components/${u}/configurations/edit`),!1);return i&&s==="singleType"&&(c=R),i||(c=L),e.createElement(r.jW,{permissions:c},e.createElement(P.z,{startIcon:e.createElement(ot.Z,null),variant:"tertiary",onClick:p,disabled:a||t},y))};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 rt=(0,e.memo)(ue),lt=()=>{const{initialData:t,modifiedData:a,isInDevelopmentMode:i,isInContentTypeView:s,submitData:u}=(0,K.Z)(),{formatMessage:d}=(0,F.Z)(),{trackUsage:h}=(0,r.rS)(),j=(0,J.$B)("/plugins/content-type-builder/:kind/:currentUID"),{onOpenModalAddComponentsToDZ:L,onOpenModalAddField:R,onOpenModalEditField:y,onOpenModalEditSchema:c,onOpenModalEditCustomField:p}=(0,he.Z)(),E=s?"contentType":"component",N=[E,"schema","attributes"],A=l()(a,[E,"uid"]),U=l()(a,[E,"isTemporary"],!1),I=l()(a,[E,"schema","kind"],null),S=l()(a,N,[]),Q=T()(t,[E,"plugin"]),Y=!x()(a,t),q=s?"contentType":"component",pe=B=>{L({dynamicZoneTarget:B,targetUid:A})},ee=async(B,$e,Me,De,Re)=>{const Le=nt(De);Re?p({forTarget:B,targetUid:$e,attributeName:Me,attributeType:Le,customFieldUid:Re}):y({forTarget:B,targetUid:$e,attributeName:Me,attributeType:Le,step:De==="component"?"2":null})};let W=l()(a,[E,"schema","displayName"],"");const te=l()(a,[E,"schema","kind"],""),ne=j?.params.currentUID==="create-content-type";!W&&ne&&(W=d({id:(0,b.Z)("button.model.create"),defaultMessage:"Create new collection type"}));const it=()=>{const B=te||E;B==="collectionType"&&h("willEditNameOfContentType"),B==="singleType"&&h("willEditNameOfSingleType"),c({modalType:E,forTarget:E,targetUid:A,kind:B})};return e.createElement(e.Fragment,null,e.createElement(J.NL,{message:B=>B.hash==="#back"?!1:d({id:(0,b.Z)("prompt.unsaved")}),when:Y}),e.createElement(C.T,{id:"title",primaryAction:i&&e.createElement(m.k,{gap:2},!ne&&e.createElement(P.z,{startIcon:e.createElement(M.Z,null),variant:"secondary",onClick:()=>{R({forTarget:q,targetUid:A})}},d({id:(0,b.Z)("button.attributes.add.another")})),e.createElement(P.z,{startIcon:e.createElement(w.Z,null),onClick:()=>u(),type:"submit",disabled:x()(a,t)},d({id:"global.save",defaultMessage:"Save"}))),secondaryAction:i&&!Q&&!ne&&e.createElement(P.z,{startIcon:e.createElement(D.Z,null),variant:"tertiary",onClick:it},d({id:"app.utils.edit",defaultMessage:"Edit"})),title:z()(W),subtitle:d({id:(0,b.Z)("listView.headerLayout.description"),defaultMessage:"Build the data architecture of your content"}),navigationAction:e.createElement(r.rU,{startIcon:e.createElement(X.Z,null),to:"/plugins/content-type-builder/"},d({id:"global.back",defaultMessage:"Back"}))}),e.createElement(H.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(rt,{key:"link-to-cm-settings-view",targetUid:A,isTemporary:U,isInContentTypeView:s,contentTypeKind:I,disabled:ne}))),e.createElement(g.x,{background:"neutral0",shadow:"filterShadow",hasRadius:!0},e.createElement(xe,{items:S,customRowComponent:B=>e.createElement(tt,{...B,onClick:ee}),addComponentToDZ:pe,targetUid:A,editTarget:q,isMain:!0})))))}},56932:function(oe,O,n){n.d(O,{D:function(){return m}});var e=n(74512),C=n(77981);const m=({children:P})=>(0,e.jsx)(C.x,{paddingLeft:10,paddingRight:10,children:P})},64092:function(oe,O,n){n.d(O,{T:function(){return D}});var e=n(74512),C=n(32735),m=n(8471);const P=l=>{const f=(0,C.useRef)(null),[T,v]=(0,C.useState)(!0),x=([k])=>{v(k.isIntersecting)};return(0,C.useEffect)(()=>{const k=f.current,z=new IntersectionObserver(x,l);return k&&z.observe(f.current),()=>{k&&z.disconnect()}},[f,l]),[f,T]};var H=n(81957);const g=(l,f)=>{const T=(0,H.W)(f);(0,C.useLayoutEffect)(()=>{const v=new ResizeObserver(T);return Array.isArray(l)?l.forEach(x=>{x.current&&v.observe(x.current)}):l.current&&v.observe(l.current),()=>{v.disconnect()}},[l,T])};var r=n(77981),M=n(84642),w=n(8365);const D=l=>{const f=(0,C.useRef)(null),[T,v]=(0,C.useState)(null),[x,k]=P({root:null,rootMargin:"0px",threshold:0});return g(x,()=>{x.current&&v(x.current.getBoundingClientRect())}),(0,C.useEffect)(()=>{f.current&&v(f.current.getBoundingClientRect())},[f]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:T?.height},ref:x,children:k&&(0,e.jsx)(V,{ref:f,...l})}),!k&&(0,e.jsx)(V,{...l,sticky:!0,width:T?.width})]})};D.displayName="HeaderLayout";const X=(0,m.ZP)(r.x)`
188
188
  width: ${({width:l})=>l?`${l/16}rem`:void 0};
189
189
  z-index: ${({theme:l})=>l.zIndices[1]};
190
- `,K=C.forwardRef(({navigationAction:l,primaryAction:f,secondaryAction:T,subtitle:v,title:x,sticky:k,width:N,...I},J)=>{const G=typeof v=="string";return k?(0,e.jsx)(X,{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)(M.k,{justifyContent:"space-between",children:[(0,e.jsxs)(M.k,{children:[l&&(0,e.jsx)(r.x,{paddingRight:3,children:l}),(0,e.jsxs)(r.x,{children:[(0,e.jsx)(S.Z,{variant:"beta",as:"h1",...I,children:x}),G?(0,e.jsx)(S.Z,{variant:"pi",textColor:"neutral600",children:v}):v]}),T?(0,e.jsx)(r.x,{paddingLeft:4,children:T}):null]}),(0,e.jsx)(M.k,{children:f?(0,e.jsx)(r.x,{paddingLeft:2,children:f}):void 0})]})}):(0,e.jsxs)(r.x,{ref:J,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:l?6:8,background:"neutral100","data-strapi-header":!0,children:[l?(0,e.jsx)(r.x,{paddingBottom:2,children:l}):null,(0,e.jsxs)(M.k,{justifyContent:"space-between",children:[(0,e.jsxs)(M.k,{minWidth:0,children:[(0,e.jsx)(S.Z,{as:"h1",variant:"alpha",...I,children:x}),T?(0,e.jsx)(r.x,{paddingLeft:4,children:T}):null]}),f]}),G?(0,e.jsx)(S.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:v}):v]})})},73269:function(oe,O,n){n.d(O,{c:function(){return S}});var e=n(74512),C=n(8471),m=n(72850),j=n(9026),H=n(87933),g=n(49372);const r=(0,C.ZP)(m.x)`
190
+ `,V=C.forwardRef(({navigationAction:l,primaryAction:f,secondaryAction:T,subtitle:v,title:x,sticky:k,width:z,...F},J)=>{const G=typeof v=="string";return k?(0,e.jsx)(X,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:z,"data-strapi-header-sticky":!0,children:(0,e.jsxs)(M.k,{justifyContent:"space-between",children:[(0,e.jsxs)(M.k,{children:[l&&(0,e.jsx)(r.x,{paddingRight:3,children:l}),(0,e.jsxs)(r.x,{children:[(0,e.jsx)(w.Z,{variant:"beta",as:"h1",...F,children:x}),G?(0,e.jsx)(w.Z,{variant:"pi",textColor:"neutral600",children:v}):v]}),T?(0,e.jsx)(r.x,{paddingLeft:4,children:T}):null]}),(0,e.jsx)(M.k,{children:f?(0,e.jsx)(r.x,{paddingLeft:2,children:f}):void 0})]})}):(0,e.jsxs)(r.x,{ref:J,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:l?6:8,background:"neutral100","data-strapi-header":!0,children:[l?(0,e.jsx)(r.x,{paddingBottom:2,children:l}):null,(0,e.jsxs)(M.k,{justifyContent:"space-between",children:[(0,e.jsxs)(M.k,{minWidth:0,children:[(0,e.jsx)(w.Z,{as:"h1",variant:"alpha",...F,children:x}),T?(0,e.jsx)(r.x,{paddingLeft:4,children:T}):null]}),f]}),G?(0,e.jsx)(w.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:v}):v]})})},22116:function(oe,O,n){n.d(O,{c:function(){return w}});var e=n(74512),C=n(8471),m=n(77981),P=n(2775),H=n(84642),g=n(8365);const r=(0,C.ZP)(m.x)`
191
191
  height: ${24/16}rem;
192
192
  width: ${24/16}rem;
193
193
  border-radius: 50%;
@@ -208,4 +208,4 @@
208
208
  display: block;
209
209
  width: 100%;
210
210
  border: none;
211
- `,S=({children:D,icon:X,...K})=>(0,e.jsxs)("div",{children:[(0,e.jsx)(j.i,{}),(0,e.jsx)(M,{as:"button",background:"primary100",padding:5,...K,children:(0,e.jsxs)(H.k,{children:[(0,e.jsx)(r,{"aria-hidden":!0,background:"primary200",children:X}),(0,e.jsx)(m.x,{paddingLeft:3,children:(0,e.jsx)(g.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600",children:D})})]})})]})}}]);
211
+ `,w=({children:D,icon:X,...V})=>(0,e.jsxs)("div",{children:[(0,e.jsx)(P.i,{}),(0,e.jsx)(M,{as:"button",background:"primary100",padding:5,...V,children:(0,e.jsxs)(H.k,{children:[(0,e.jsx)(r,{"aria-hidden":!0,background:"primary200",children:X}),(0,e.jsx)(m.x,{paddingLeft:3,children:(0,e.jsx)(g.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600",children:D})})]})})]})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[931],{20392:function(e){e.exports=JSON.parse(`{"attribute.boolean":"Boolean","attribute.boolean.description":"Yes or no, 1 or 0, true or false","attribute.component":"Component","attribute.component.description":"Group of fields that you can repeat or reuse","attribute.customField":"Custom field","attribute.date":"Date","attribute.date.description":"A date picker with hours, minutes and seconds","attribute.datetime":"Datetime","attribute.dynamiczone":"Dynamic zone","attribute.dynamiczone.description":"Dynamically pick component when editing content","attribute.email":"Email","attribute.email.description":"Email field with validations format","attribute.enumeration":"Enumeration","attribute.enumeration.description":"List of values, then pick one","attribute.json":"JSON","attribute.json.description":"Data in JSON format","attribute.media":"Media","attribute.media.description":"Files like images, videos, etc","attribute.null":" ","attribute.number":"Number","attribute.number.description":"Numbers (integer, float, decimal)","attribute.password":"Password","attribute.password.description":"Password field with encryption","attribute.relation":"Relation","attribute.relation.description":"Refers to a Collection Type","attribute.richtext":"Rich text (Markdown)","attribute.richtext.description":"The classic rich text editor","attribute.blocks":"Rich text (Blocks)","attribute.blocks.description":"The new JSON-based rich text editor","attribute.text":"Text","attribute.text.description":"Small or long text like title or description","attribute.time":"Time","attribute.timestamp":"Timestamp","attribute.uid":"UID","attribute.uid.description":"Unique identifier","button.attributes.add.another":"Add another field","button.component.add":"Add a component","button.component.create":"Create new component","button.model.create":"Create new collection type","button.single-types.create":"Create new single type","component.repeatable":"(repeatable)","components.SelectComponents.displayed-value":"{number, plural, =0 {# components} one {# component} other {# components}} selected","components.componentSelect.no-component-available":"You have already added all your components","components.componentSelect.no-component-available.with-search":"There is no component matching your search","components.componentSelect.value-component":"{number} component selected (type to search for a component)","components.componentSelect.value-components":"{number} components selected","configurations":"Configurations","contentType.apiId-plural.description":"Pluralized API ID","contentType.apiId-plural.label":"API ID (Plural)","contentType.apiId-singular.description":"The UID is used to generate the API routes and databases tables/collections","contentType.apiId-singular.label":"API ID (Singular)","contentType.collectionName.description":"Useful when the name of your Content Type and your table name differ","contentType.collectionName.label":"Collection name","contentType.displayName.label":"Display name","contentType.draftAndPublish.description":"Allows writing a draft version of an entry, before it is published","contentType.draftAndPublish.label":"Draft & publish","contentType.kind.change.warning":"You just changed the kind of a content type: API will be reset (routes, controllers, and services will be overwritten).","error.attributeName.reserved-name":"This name cannot be used in your content type as it might break other functionalities","error.contentType.pluralName-used":"This value cannot be the same as the singular one","error.contentType.singularName-used":"This value cannot be the same as the plural one","error.contentType.singularName-equals-pluralName":"This value cannot be the same as the Plural API ID of another content type.","error.contentType.pluralName-equals-singularName":"This value cannot be the same as the Singular API ID of another content type.","error.contentType.pluralName-equals-collectionName":"This value is already in use by another content type.","error.contentTypeName.reserved-name":"This name cannot be used in your project as it might break other functionalities","error.validation.enum-duplicate":"Duplicate values are not allowed (only alphanumeric characters are taken into account).","error.validation.enum-empty-string":"Empty strings are not allowed","error.validation.enum-regex":"At least one value is invalid. Values should have at least one alphabetical character preceding the first occurence of a number.","error.validation.minSupMax":"Can't be superior","error.validation.positive":"Must be a positive number","error.validation.regex":"Regex pattern is invalid","error.validation.relation.targetAttribute-taken":"This name exists in the target","form.attribute.component.option.add":"Add a component","form.attribute.component.option.create":"Create a new component","form.attribute.component.option.create.description":"A component is shared across types and components, it will be available and accessible everywhere.","form.attribute.component.option.repeatable":"Repeatable component","form.attribute.component.option.repeatable.description":"Best for multiple instances (array) of ingredients, meta tags, etc..","form.attribute.component.option.reuse-existing":"Use an existing component","form.attribute.component.option.reuse-existing.description":"Reuse a component already created to keep your data consistent across content-types.","form.attribute.component.option.single":"Single component","form.attribute.component.option.single.description":"Best for grouping fields like full address, main information, etc...","form.attribute.item.customColumnName":"Custom column names","form.attribute.item.customColumnName.description":"This is useful to rename database column names in a more comprehensive format for the API's responses","form.attribute.item.date.type.date":"date (ex: 01/01/{currentYear})","form.attribute.item.date.type.datetime":"datetime (ex: 01/01/{currentYear} 00:00 AM)","form.attribute.item.date.type.time":"time (ex: 00:00 AM)","form.attribute.item.defineRelation.fieldName":"Field name","form.attribute.item.enumeration.graphql":"Name override for GraphQL","form.attribute.item.enumeration.graphql.description":"Allows you to override the default generated name for GraphQL","form.attribute.item.enumeration.placeholder":"Ex:\\nmorning\\nnoon\\nevening","form.attribute.item.enumeration.rules":"Values (one line per value)","form.attribute.item.maximum":"Maximum value","form.attribute.item.maximumLength":"Maximum length","form.attribute.item.minimum":"Minimum value","form.attribute.item.minimumLength":"Minimum length","form.attribute.item.number.type":"Number format","form.attribute.item.number.type.biginteger":"big integer (ex: 123456789)","form.attribute.item.number.type.decimal":"decimal (ex: 2.22)","form.attribute.item.number.type.float":"float (ex: 3.33333333)","form.attribute.item.number.type.integer":"integer (ex: 10)","form.attribute.item.privateField":"Private field","form.attribute.item.privateField.description":"This field will not show up in the API response","form.attribute.item.requiredField":"Required field","form.attribute.item.requiredField.description":"You won't be able to create an entry if this field is empty","form.attribute.item.text.regex":"RegExp pattern","form.attribute.item.text.regex.description":"The text of the regular expression","form.attribute.item.uniqueField":"Unique field","form.attribute.item.uniqueField.description":"You won't be able to create an entry if there is an existing entry with identical content","form.attribute.media.allowed-types":"Select allowed types of media","form.attribute.media.allowed-types.option-files":"Files","form.attribute.media.allowed-types.option-images":"Images","form.attribute.media.allowed-types.option-videos":"Videos","form.attribute.media.option.multiple":"Multiple media","form.attribute.media.option.multiple.description":"Best for sliders, carousels or multiple files download","form.attribute.media.option.single":"Single media","form.attribute.media.option.single.description":"Best for avatar, profile picture or cover","form.attribute.settings.default":"Default value","form.attribute.text.option.long-text":"Long text","form.attribute.text.option.long-text.description":"Best for descriptions, biography. Exact search is disabled.","form.attribute.text.option.short-text":"Short text","form.attribute.text.option.short-text.description":"Best for titles, names, links (URL). It also enables exact search on the field.","form.button.add-components-to-dynamiczone":"Add components to the zone","form.button.add-field":"Add another field","form.button.add-first-field-to-created-component":"Add first field to the component","form.button.add.field.to.collectionType":"Add another field to this collection type","form.button.add.field.to.component":"Add another field to this component","form.button.add.field.to.contentType":"Add another field to this content type","form.button.add.field.to.singleType":"Add another field to this single type","form.button.cancel":"Cancel","form.button.collection-type.description":"Best for multiple instances like articles, products, comments, etc.","form.button.collection-type.name":"Collection Type","form.button.configure-component":"Configure the component","form.button.configure-view":"Configure the view","form.button.select-component":"Select a component","form.button.single-type.description":"Best for single instance like about us, homepage, etc.","form.button.single-type.name":"Single Type","form.feature.alpha":"This feature is in Alpha.","from":"from","listView.headerLayout.description":"Build the data architecture of your content","menu.section.components.name":"Components","menu.section.models.name":"Collection Types","menu.section.single-types.name":"Single Types","modalForm.attribute.form.base.name.description":"No space is allowed for the name of the attribute","modalForm.attribute.form.base.name.placeholder":"e.g. slug, seoUrl, canonicalUrl","modalForm.attribute.target-field":"Attached field","modalForm.attributes.select-component":"Select a component","modalForm.attributes.select-components":"Select the components","modalForm.collectionType.header-create":"Create a collection type","modalForm.component.header-create":"Create a component","modalForm.components.create-component.category.label":"Select a category or enter a name to create a new one","modalForm.components.icon.label":"Icon","modalForm.empty.button":"Add custom fields","modalForm.empty.heading":"Nothing in here yet.","modalForm.empty.sub-heading":"Find what you are looking for through a wide range of extensions.","modalForm.editCategory.base.name.description":"No space is allowed for the name of the category","modalForm.header-edit":"Edit {name}","modalForm.header.categories":"Categories","modalForm.header.back":"Back","modalForm.singleType.header-create":"Create a single type","modalForm.sub-header.addComponentToDynamicZone":"Add new component to the dynamic zone","modalForm.sub-header.attribute.create":"Add new {type} field","modalForm.sub-header.attribute.create.step":"Add new component ({step}/2)","modalForm.sub-header.attribute.edit":"Edit {name}","modalForm.sub-header.chooseAttribute.collectionType":"Select a field for your collection type","modalForm.sub-header.chooseAttribute.component":"Select a field for your component","modalForm.sub-header.chooseAttribute.singleType":"Select a field for your single type","modalForm.custom-fields.advanced.settings.extended":"Extended settings","modalForm.tabs.custom":"Custom","modalForm.tabs.custom.howToLink":"How to add custom fields","modalForm.tabs.default":"Default","modalForm.tabs.label":"Default and Custom types tabs","modelPage.attribute.relation-polymorphic":"Relation (polymorphic)","modelPage.attribute.relationWith":"Relation with","notification.error.dynamiczone-min.validation":"At least one component is required in a dynamic zone to be able to save a content type","notification.info.autoreaload-disable":"Strapi is in production mode, editing content types is disabled. Please switch to development mode by starting your server with strapi develop.","notification.info.creating.notSaved":"Please save your work before creating a new collection type or component","plugin.description.long":"Modelize the data structure of your API. Create new fields and relations in just a minute. The files are automatically created and updated in your project.","plugin.description.short":"Modelize the data structure of your API.","plugin.name":"Content-Type Builder","popUpForm.navContainer.advanced":"Advanced settings","popUpForm.navContainer.base":"Basic settings","popUpWarning.bodyMessage.cancel-modifications":"Are you sure you want to cancel your modifications?","popUpWarning.bodyMessage.cancel-modifications.with-components":"Are you sure you want to cancel your modifications? Some components have been created or modified...","popUpWarning.bodyMessage.category.delete":"Are you sure you want to delete this category? All the components will also be deleted.","popUpWarning.bodyMessage.component.delete":"Are you sure you want to delete this component?","popUpWarning.bodyMessage.contentType.delete":"Are you sure you want to delete this collection type?","popUpWarning.draft-publish.button.confirm":"Yes, disable","popUpWarning.draft-publish.message":"If you disable the Draft & publish, your drafts will be deleted.","popUpWarning.draft-publish.second-message":"Are you sure you want to disable it?","prompt.unsaved":"Are you sure you want to leave? All your modifications will be lost.","relation.attributeName.placeholder":"Ex: author, category, tag","relation.manyToMany":"has and belongs to many","relation.manyToOne":"has many","relation.manyWay":"has many","relation.oneToMany":"belongs to many","relation.oneToOne":"has and belongs to one","relation.oneWay":"has one","table.button.no-fields":"Add new field","table.content.create-first-content-type":"Create your first Collection-Type","table.content.no-fields.collection-type":"Add your first field to this Collection-Type","table.content.no-fields.component":"Add your first field to this component","IconPicker.search.placeholder.label":"Search for an icon","IconPicker.search.clear.label":"Clear the icon search","IconPicker.search.button.label":"Search icon button","IconPicker.remove.tooltip":"Remove the selected icon","IconPicker.remove.button":"Remove the selected icon button","IconPicker.emptyState.label":"No icon found","IconPicker.icon.label":"Select {icon} icon"}`)}}]);