@strapi/admin 4.26.0 → 4.26.2

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 (920) hide show
  1. package/dist/_chunks/AdminSeatInfo-BbgXdZXt.mjs +101 -0
  2. package/dist/_chunks/AdminSeatInfo-BbgXdZXt.mjs.map +1 -0
  3. package/dist/_chunks/AdminSeatInfo-Dd9igGNy.js +101 -0
  4. package/dist/_chunks/AdminSeatInfo-Dd9igGNy.js.map +1 -0
  5. package/dist/_chunks/AuthenticatedApp-VeEtpPSd.js +1225 -0
  6. package/dist/_chunks/AuthenticatedApp-VeEtpPSd.js.map +1 -0
  7. package/dist/_chunks/AuthenticatedApp-q6ueY2uL.mjs +1200 -0
  8. package/dist/_chunks/AuthenticatedApp-q6ueY2uL.mjs.map +1 -0
  9. package/dist/_chunks/CreateActionEE-Cp6JMqwN.js +60 -0
  10. package/dist/_chunks/CreateActionEE-Cp6JMqwN.js.map +1 -0
  11. package/dist/_chunks/CreateActionEE-D05ARL9y.mjs +57 -0
  12. package/dist/_chunks/CreateActionEE-D05ARL9y.mjs.map +1 -0
  13. package/dist/_chunks/CreatePage-BvtbICHq.mjs +251 -0
  14. package/dist/_chunks/CreatePage-BvtbICHq.mjs.map +1 -0
  15. package/dist/_chunks/CreatePage-D8BL6dmo.js +14 -0
  16. package/dist/_chunks/CreatePage-D8BL6dmo.js.map +1 -0
  17. package/dist/_chunks/CreatePage-DN0tiD0-.mjs +244 -0
  18. package/dist/_chunks/CreatePage-DN0tiD0-.mjs.map +1 -0
  19. package/dist/_chunks/CreatePage-DNBwF5h3.js +269 -0
  20. package/dist/_chunks/CreatePage-DNBwF5h3.js.map +1 -0
  21. package/dist/_chunks/CreatePage-DaaQGr8P.mjs +14 -0
  22. package/dist/_chunks/CreatePage-DaaQGr8P.mjs.map +1 -0
  23. package/dist/_chunks/CreatePage-UkEK_9I8.js +265 -0
  24. package/dist/_chunks/CreatePage-UkEK_9I8.js.map +1 -0
  25. package/dist/_chunks/CreateView-4Ndbk7Ff.mjs +13 -0
  26. package/dist/_chunks/CreateView-4Ndbk7Ff.mjs.map +1 -0
  27. package/dist/_chunks/CreateView-Cr_Lq0_U.mjs +13 -0
  28. package/dist/_chunks/CreateView-Cr_Lq0_U.mjs.map +1 -0
  29. package/dist/_chunks/CreateView-DtQ1hRDi.js +13 -0
  30. package/dist/_chunks/CreateView-DtQ1hRDi.js.map +1 -0
  31. package/dist/_chunks/CreateView-WmUj7GDL.js +13 -0
  32. package/dist/_chunks/CreateView-WmUj7GDL.js.map +1 -0
  33. package/dist/_chunks/EditPage--c1d8vU7.js +809 -0
  34. package/dist/_chunks/EditPage--c1d8vU7.js.map +1 -0
  35. package/dist/_chunks/EditPage-3pFiNfGd.js +285 -0
  36. package/dist/_chunks/EditPage-3pFiNfGd.js.map +1 -0
  37. package/dist/_chunks/EditPage-BDeF9TPm.js +433 -0
  38. package/dist/_chunks/EditPage-BDeF9TPm.js.map +1 -0
  39. package/dist/_chunks/EditPage-BZEXsrpa.mjs +789 -0
  40. package/dist/_chunks/EditPage-BZEXsrpa.mjs.map +1 -0
  41. package/dist/_chunks/EditPage-Buhw1Cgq.js +325 -0
  42. package/dist/_chunks/EditPage-Buhw1Cgq.js.map +1 -0
  43. package/dist/_chunks/EditPage-C5rSJwer.mjs +412 -0
  44. package/dist/_chunks/EditPage-C5rSJwer.mjs.map +1 -0
  45. package/dist/_chunks/EditPage-C7w2S3qa.mjs +266 -0
  46. package/dist/_chunks/EditPage-C7w2S3qa.mjs.map +1 -0
  47. package/dist/_chunks/EditPage-Dg0hL_D7.mjs +307 -0
  48. package/dist/_chunks/EditPage-Dg0hL_D7.mjs.map +1 -0
  49. package/dist/_chunks/EditView-BX8smWlt.js +369 -0
  50. package/dist/_chunks/EditView-BX8smWlt.js.map +1 -0
  51. package/dist/_chunks/EditView-Cg14XTI6.mjs +350 -0
  52. package/dist/_chunks/EditView-Cg14XTI6.mjs.map +1 -0
  53. package/dist/_chunks/EditViewPage-jmcfHxza.js +875 -0
  54. package/dist/_chunks/EditViewPage-jmcfHxza.js.map +1 -0
  55. package/dist/_chunks/EditViewPage-lGH8coe7.mjs +849 -0
  56. package/dist/_chunks/EditViewPage-lGH8coe7.mjs.map +1 -0
  57. package/dist/_chunks/EventsTable-BwmPmmWr.js +32 -0
  58. package/dist/_chunks/EventsTable-BwmPmmWr.js.map +1 -0
  59. package/dist/_chunks/EventsTable-hX7i3BLp.mjs +32 -0
  60. package/dist/_chunks/EventsTable-hX7i3BLp.mjs.map +1 -0
  61. package/dist/_chunks/Filters-B9RQvqbL.mjs +43 -0
  62. package/dist/_chunks/Filters-B9RQvqbL.mjs.map +1 -0
  63. package/dist/_chunks/Filters-Br1w7f5b.js +60 -0
  64. package/dist/_chunks/Filters-Br1w7f5b.js.map +1 -0
  65. package/dist/_chunks/HomePage-CQ6qFlEc.js +537 -0
  66. package/dist/_chunks/HomePage-CQ6qFlEc.js.map +1 -0
  67. package/dist/_chunks/HomePage-CXQ1bdgi.mjs +517 -0
  68. package/dist/_chunks/HomePage-CXQ1bdgi.mjs.map +1 -0
  69. package/dist/_chunks/HomePage-CpSSac-m.mjs +11 -0
  70. package/dist/_chunks/HomePage-CpSSac-m.mjs.map +1 -0
  71. package/dist/_chunks/HomePage-WeUUm-HF.js +11 -0
  72. package/dist/_chunks/HomePage-WeUUm-HF.js.map +1 -0
  73. package/dist/_chunks/InformationBoxEE-BX7l_qDt.mjs +275 -0
  74. package/dist/_chunks/InformationBoxEE-BX7l_qDt.mjs.map +1 -0
  75. package/dist/_chunks/InformationBoxEE-CDmKrsLo.js +293 -0
  76. package/dist/_chunks/InformationBoxEE-CDmKrsLo.js.map +1 -0
  77. package/dist/_chunks/InstalledPluginsPage-BrxNFD5S.js +122 -0
  78. package/dist/_chunks/InstalledPluginsPage-BrxNFD5S.js.map +1 -0
  79. package/dist/_chunks/InstalledPluginsPage-D4ieZMEq.mjs +104 -0
  80. package/dist/_chunks/InstalledPluginsPage-D4ieZMEq.mjs.map +1 -0
  81. package/dist/_chunks/InternalErrorPage-BjU_jwcO.js +41 -0
  82. package/dist/_chunks/InternalErrorPage-BjU_jwcO.js.map +1 -0
  83. package/dist/_chunks/InternalErrorPage-CMTg0WcA.mjs +41 -0
  84. package/dist/_chunks/InternalErrorPage-CMTg0WcA.mjs.map +1 -0
  85. package/dist/_chunks/Layout-B1VcCCiT.js +88 -0
  86. package/dist/_chunks/Layout-B1VcCCiT.js.map +1 -0
  87. package/dist/_chunks/Layout-B_l-uK27.mjs +87 -0
  88. package/dist/_chunks/Layout-B_l-uK27.mjs.map +1 -0
  89. package/dist/_chunks/LimitsModal-5HFqiYwo.js +75 -0
  90. package/dist/_chunks/LimitsModal-5HFqiYwo.js.map +1 -0
  91. package/dist/_chunks/LimitsModal-BvLQGCI-.mjs +74 -0
  92. package/dist/_chunks/LimitsModal-BvLQGCI-.mjs.map +1 -0
  93. package/dist/_chunks/ListPage-BAO-yXBr.js +341 -0
  94. package/dist/_chunks/ListPage-BAO-yXBr.js.map +1 -0
  95. package/dist/_chunks/ListPage-BResWkE0.js +617 -0
  96. package/dist/_chunks/ListPage-BResWkE0.js.map +1 -0
  97. package/dist/_chunks/ListPage-BXxsqmvE.mjs +597 -0
  98. package/dist/_chunks/ListPage-BXxsqmvE.mjs.map +1 -0
  99. package/dist/_chunks/ListPage-BuHmA1f5.js +555 -0
  100. package/dist/_chunks/ListPage-BuHmA1f5.js.map +1 -0
  101. package/dist/_chunks/ListPage-Bv_V83QB.js +305 -0
  102. package/dist/_chunks/ListPage-Bv_V83QB.js.map +1 -0
  103. package/dist/_chunks/ListPage-C0btLbOo.js +285 -0
  104. package/dist/_chunks/ListPage-C0btLbOo.js.map +1 -0
  105. package/dist/_chunks/ListPage-CnfAB5jH.mjs +282 -0
  106. package/dist/_chunks/ListPage-CnfAB5jH.mjs.map +1 -0
  107. package/dist/_chunks/ListPage-CrIttWiF.mjs +534 -0
  108. package/dist/_chunks/ListPage-CrIttWiF.mjs.map +1 -0
  109. package/dist/_chunks/ListPage-D50TO1Gl.mjs +11 -0
  110. package/dist/_chunks/ListPage-D50TO1Gl.mjs.map +1 -0
  111. package/dist/_chunks/ListPage-Dw64-fPU.mjs +285 -0
  112. package/dist/_chunks/ListPage-Dw64-fPU.mjs.map +1 -0
  113. package/dist/_chunks/ListPage-JSoOfrRX.mjs +323 -0
  114. package/dist/_chunks/ListPage-JSoOfrRX.mjs.map +1 -0
  115. package/dist/_chunks/ListPage-W4NGNFA2.js +11 -0
  116. package/dist/_chunks/ListPage-W4NGNFA2.js.map +1 -0
  117. package/dist/_chunks/ListView--zynaOVn.mjs +208 -0
  118. package/dist/_chunks/ListView--zynaOVn.mjs.map +1 -0
  119. package/dist/_chunks/ListView-D97dCnvT.js +228 -0
  120. package/dist/_chunks/ListView-D97dCnvT.js.map +1 -0
  121. package/dist/_chunks/ListView-c0wBeXzj.mjs +218 -0
  122. package/dist/_chunks/ListView-c0wBeXzj.mjs.map +1 -0
  123. package/dist/_chunks/ListView-rKkUs0mA.js +238 -0
  124. package/dist/_chunks/ListView-rKkUs0mA.js.map +1 -0
  125. package/dist/_chunks/Login-CGXHwNnf.mjs +30 -0
  126. package/dist/_chunks/Login-CGXHwNnf.mjs.map +1 -0
  127. package/dist/_chunks/Login-Cz5IeBO_.js +32 -0
  128. package/dist/_chunks/Login-Cz5IeBO_.js.map +1 -0
  129. package/dist/_chunks/MagicLinkEE-DNJ09-Cl.js +27 -0
  130. package/dist/_chunks/MagicLinkEE-DNJ09-Cl.js.map +1 -0
  131. package/dist/_chunks/MagicLinkEE-DwxRiSvx.mjs +27 -0
  132. package/dist/_chunks/MagicLinkEE-DwxRiSvx.mjs.map +1 -0
  133. package/dist/_chunks/MarketplacePage-BM-2cxrF.mjs +1001 -0
  134. package/dist/_chunks/MarketplacePage-BM-2cxrF.mjs.map +1 -0
  135. package/dist/_chunks/MarketplacePage-DbnvGugk.js +1024 -0
  136. package/dist/_chunks/MarketplacePage-DbnvGugk.js.map +1 -0
  137. package/dist/_chunks/ModalForm--GI4cjVu.js +28 -0
  138. package/dist/_chunks/ModalForm--GI4cjVu.js.map +1 -0
  139. package/dist/_chunks/ModalForm-J7b3u86M.mjs +28 -0
  140. package/dist/_chunks/ModalForm-J7b3u86M.mjs.map +1 -0
  141. package/dist/_chunks/Permissions-BgDbVLII.mjs +2011 -0
  142. package/dist/_chunks/Permissions-BgDbVLII.mjs.map +1 -0
  143. package/dist/_chunks/Permissions-DYlD5eqC.js +2039 -0
  144. package/dist/_chunks/Permissions-DYlD5eqC.js.map +1 -0
  145. package/dist/_chunks/ProfilePage-Cf0mtGUP.js +606 -0
  146. package/dist/_chunks/ProfilePage-Cf0mtGUP.js.map +1 -0
  147. package/dist/_chunks/ProfilePage-tsQTE5CP.mjs +584 -0
  148. package/dist/_chunks/ProfilePage-tsQTE5CP.mjs.map +1 -0
  149. package/dist/_chunks/PurchaseAuditLogs-BWYLuIfm.mjs +48 -0
  150. package/dist/_chunks/PurchaseAuditLogs-BWYLuIfm.mjs.map +1 -0
  151. package/dist/_chunks/PurchaseAuditLogs-DGjR2gAT.js +48 -0
  152. package/dist/_chunks/PurchaseAuditLogs-DGjR2gAT.js.map +1 -0
  153. package/dist/_chunks/PurchaseReviewWorkflows-BRvbD9Sb.mjs +51 -0
  154. package/dist/_chunks/PurchaseReviewWorkflows-BRvbD9Sb.mjs.map +1 -0
  155. package/dist/_chunks/PurchaseReviewWorkflows-BvQ-ooJt.js +51 -0
  156. package/dist/_chunks/PurchaseReviewWorkflows-BvQ-ooJt.js.map +1 -0
  157. package/dist/_chunks/PurchaseSingleSignOn-BybUr_h7.js +51 -0
  158. package/dist/_chunks/PurchaseSingleSignOn-BybUr_h7.js.map +1 -0
  159. package/dist/_chunks/PurchaseSingleSignOn-Yrx7jiC3.mjs +51 -0
  160. package/dist/_chunks/PurchaseSingleSignOn-Yrx7jiC3.mjs.map +1 -0
  161. package/dist/_chunks/ReviewWorkflowsColumn-Bv3HsxcV.js +36 -0
  162. package/dist/_chunks/ReviewWorkflowsColumn-Bv3HsxcV.js.map +1 -0
  163. package/dist/_chunks/ReviewWorkflowsColumn-WhvmNSc8.mjs +36 -0
  164. package/dist/_chunks/ReviewWorkflowsColumn-WhvmNSc8.mjs.map +1 -0
  165. package/dist/_chunks/SSOProviders-BfKYr9fq.js +59 -0
  166. package/dist/_chunks/SSOProviders-BfKYr9fq.js.map +1 -0
  167. package/dist/_chunks/SSOProviders-DXiFqVN5.mjs +58 -0
  168. package/dist/_chunks/SSOProviders-DXiFqVN5.mjs.map +1 -0
  169. package/dist/_chunks/SelectRoles-BBt0I6mr.js +103 -0
  170. package/dist/_chunks/SelectRoles-BBt0I6mr.js.map +1 -0
  171. package/dist/_chunks/SelectRoles-DXP3vxWG.mjs +102 -0
  172. package/dist/_chunks/SelectRoles-DXP3vxWG.mjs.map +1 -0
  173. package/dist/_chunks/SettingsPage-BAkaokqb.mjs +1024 -0
  174. package/dist/_chunks/SettingsPage-BAkaokqb.mjs.map +1 -0
  175. package/dist/_chunks/SettingsPage-VwSjO4O3.js +1046 -0
  176. package/dist/_chunks/SettingsPage-VwSjO4O3.js.map +1 -0
  177. package/dist/_chunks/SingleSignOnPage-C6MKbS7l.mjs +234 -0
  178. package/dist/_chunks/SingleSignOnPage-C6MKbS7l.mjs.map +1 -0
  179. package/dist/_chunks/SingleSignOnPage-DM1_Twh4.js +252 -0
  180. package/dist/_chunks/SingleSignOnPage-DM1_Twh4.js.map +1 -0
  181. package/dist/_chunks/Table-BNrSUOqz.js +225 -0
  182. package/dist/_chunks/Table-BNrSUOqz.js.map +1 -0
  183. package/dist/_chunks/Table-CHhAUD-R.mjs +206 -0
  184. package/dist/_chunks/Table-CHhAUD-R.mjs.map +1 -0
  185. package/dist/_chunks/TokenTypeSelect-Imo0yF50.js +371 -0
  186. package/dist/_chunks/TokenTypeSelect-Imo0yF50.js.map +1 -0
  187. package/dist/_chunks/TokenTypeSelect-yfDK5Gr1.mjs +353 -0
  188. package/dist/_chunks/TokenTypeSelect-yfDK5Gr1.mjs.map +1 -0
  189. package/dist/_chunks/apiTokens-BmQykl0I.mjs +60 -0
  190. package/dist/_chunks/apiTokens-BmQykl0I.mjs.map +1 -0
  191. package/dist/_chunks/apiTokens-CVvlDeCp.js +59 -0
  192. package/dist/_chunks/apiTokens-CVvlDeCp.js.map +1 -0
  193. package/dist/_chunks/ar-475tDLB5.js +936 -0
  194. package/dist/_chunks/ar-475tDLB5.js.map +1 -0
  195. package/dist/_chunks/ar-yiyD4W0L.mjs +936 -0
  196. package/dist/_chunks/ar-yiyD4W0L.mjs.map +1 -0
  197. package/dist/_chunks/build-Bhvte6rY.mjs +52 -0
  198. package/dist/_chunks/build-Bhvte6rY.mjs.map +1 -0
  199. package/dist/_chunks/build-BkUr8FR6.js +55 -0
  200. package/dist/_chunks/build-BkUr8FR6.js.map +1 -0
  201. package/dist/_chunks/build-C9MFjft2.mjs +12 -0
  202. package/dist/_chunks/build-C9MFjft2.mjs.map +1 -0
  203. package/dist/_chunks/build-CDfsxW9J.mjs +37 -0
  204. package/dist/_chunks/build-CDfsxW9J.mjs.map +1 -0
  205. package/dist/_chunks/build-D3nWISTI.js +34 -0
  206. package/dist/_chunks/build-D3nWISTI.js.map +1 -0
  207. package/dist/_chunks/build-MaaG8Zxd.js +39 -0
  208. package/dist/_chunks/build-MaaG8Zxd.js.map +1 -0
  209. package/dist/_chunks/ca-DEU1Yunq.js +724 -0
  210. package/dist/_chunks/ca-DEU1Yunq.js.map +1 -0
  211. package/dist/_chunks/ca-DW7FjI4m.mjs +724 -0
  212. package/dist/_chunks/ca-DW7FjI4m.mjs.map +1 -0
  213. package/dist/_chunks/colors-CYJuPzU8.mjs +34 -0
  214. package/dist/_chunks/colors-CYJuPzU8.mjs.map +1 -0
  215. package/dist/_chunks/colors-Cx54zjV2.js +33 -0
  216. package/dist/_chunks/colors-Cx54zjV2.js.map +1 -0
  217. package/dist/_chunks/config-1Q69_4nO.mjs +58 -0
  218. package/dist/_chunks/config-1Q69_4nO.mjs.map +1 -0
  219. package/dist/_chunks/config-B7_5e67J.mjs +251 -0
  220. package/dist/_chunks/config-B7_5e67J.mjs.map +1 -0
  221. package/dist/_chunks/config-BzljZrMA.js +61 -0
  222. package/dist/_chunks/config-BzljZrMA.js.map +1 -0
  223. package/dist/_chunks/config-DC9-vqE7.mjs +135 -0
  224. package/dist/_chunks/config-DC9-vqE7.mjs.map +1 -0
  225. package/dist/_chunks/config-DMOYjOv7.js +137 -0
  226. package/dist/_chunks/config-DMOYjOv7.js.map +1 -0
  227. package/dist/_chunks/config-iJT5VgJy.js +281 -0
  228. package/dist/_chunks/config-iJT5VgJy.js.map +1 -0
  229. package/dist/_chunks/constants-3tPTNCcp.mjs +172 -0
  230. package/dist/_chunks/constants-3tPTNCcp.mjs.map +1 -0
  231. package/dist/_chunks/constants-3wlcjHhm.js +52 -0
  232. package/dist/_chunks/constants-3wlcjHhm.js.map +1 -0
  233. package/dist/_chunks/constants-9M5Gtgs1.mjs +7 -0
  234. package/dist/_chunks/constants-9M5Gtgs1.mjs.map +1 -0
  235. package/dist/_chunks/constants-B8jpG_qb.js +172 -0
  236. package/dist/_chunks/constants-B8jpG_qb.js.map +1 -0
  237. package/dist/_chunks/constants-B96HK4JR.js +6 -0
  238. package/dist/_chunks/constants-B96HK4JR.js.map +1 -0
  239. package/dist/_chunks/constants-BD65-toR.mjs +7 -0
  240. package/dist/_chunks/constants-BD65-toR.mjs.map +1 -0
  241. package/dist/_chunks/constants-BQw7t42R.mjs +52 -0
  242. package/dist/_chunks/constants-BQw7t42R.mjs.map +1 -0
  243. package/dist/_chunks/constants-BktKMZ88.mjs +103 -0
  244. package/dist/_chunks/constants-BktKMZ88.mjs.map +1 -0
  245. package/dist/_chunks/constants-CF9oLY1q.js +52 -0
  246. package/dist/_chunks/constants-CF9oLY1q.js.map +1 -0
  247. package/dist/_chunks/constants-CLc-plUk.mjs +11 -0
  248. package/dist/_chunks/constants-CLc-plUk.mjs.map +1 -0
  249. package/dist/_chunks/constants-CeIfN9Z8.mjs +59 -0
  250. package/dist/_chunks/constants-CeIfN9Z8.mjs.map +1 -0
  251. package/dist/_chunks/constants-D0kt7r3W.js +11 -0
  252. package/dist/_chunks/constants-D0kt7r3W.js.map +1 -0
  253. package/dist/_chunks/constants-Do9bkPhf.js +6 -0
  254. package/dist/_chunks/constants-Do9bkPhf.js.map +1 -0
  255. package/dist/_chunks/constants-GbF4Y3iU.mjs +50 -0
  256. package/dist/_chunks/constants-GbF4Y3iU.mjs.map +1 -0
  257. package/dist/_chunks/constants-R5erIlVZ.js +123 -0
  258. package/dist/_chunks/constants-R5erIlVZ.js.map +1 -0
  259. package/dist/_chunks/constants-WJ4DI42l.js +58 -0
  260. package/dist/_chunks/constants-WJ4DI42l.js.map +1 -0
  261. package/dist/_chunks/cs-BmXflTzg.mjs +291 -0
  262. package/dist/_chunks/cs-BmXflTzg.mjs.map +1 -0
  263. package/dist/_chunks/cs-obL_KC_g.js +291 -0
  264. package/dist/_chunks/cs-obL_KC_g.js.map +1 -0
  265. package/dist/_chunks/de-B5VEJATB.js +716 -0
  266. package/dist/_chunks/de-B5VEJATB.js.map +1 -0
  267. package/dist/_chunks/de-DgaM7hkG.mjs +716 -0
  268. package/dist/_chunks/de-DgaM7hkG.mjs.map +1 -0
  269. package/dist/_chunks/develop-D_aBgHsh.mjs +42 -0
  270. package/dist/_chunks/develop-D_aBgHsh.mjs.map +1 -0
  271. package/dist/_chunks/develop-TROO0-95.js +46 -0
  272. package/dist/_chunks/develop-TROO0-95.js.map +1 -0
  273. package/dist/_chunks/dk-3vbkx2yD.mjs +634 -0
  274. package/dist/_chunks/dk-3vbkx2yD.mjs.map +1 -0
  275. package/dist/_chunks/dk-B9jcYthx.js +634 -0
  276. package/dist/_chunks/dk-B9jcYthx.js.map +1 -0
  277. package/dist/_chunks/en-CcKS2FEI.mjs +1035 -0
  278. package/dist/_chunks/en-CcKS2FEI.mjs.map +1 -0
  279. package/dist/_chunks/en-FHilPgBw.js +1035 -0
  280. package/dist/_chunks/en-FHilPgBw.js.map +1 -0
  281. package/dist/_chunks/es-3RmvCeWF.js +796 -0
  282. package/dist/_chunks/es-3RmvCeWF.js.map +1 -0
  283. package/dist/_chunks/es-v9e7b3Ft.mjs +796 -0
  284. package/dist/_chunks/es-v9e7b3Ft.mjs.map +1 -0
  285. package/dist/_chunks/eu-BY_rgXEP.mjs +832 -0
  286. package/dist/_chunks/eu-BY_rgXEP.mjs.map +1 -0
  287. package/dist/_chunks/eu-CmMUmLzM.js +832 -0
  288. package/dist/_chunks/eu-CmMUmLzM.js.map +1 -0
  289. package/dist/_chunks/fr-C0nyZqGl.mjs +762 -0
  290. package/dist/_chunks/fr-C0nyZqGl.mjs.map +1 -0
  291. package/dist/_chunks/fr-DzcLq4pR.js +762 -0
  292. package/dist/_chunks/fr-DzcLq4pR.js.map +1 -0
  293. package/dist/_chunks/gu-C4Ofeu31.js +623 -0
  294. package/dist/_chunks/gu-C4Ofeu31.js.map +1 -0
  295. package/dist/_chunks/gu-Da70F_z_.mjs +623 -0
  296. package/dist/_chunks/gu-Da70F_z_.mjs.map +1 -0
  297. package/dist/_chunks/he-D5uZ95em.js +326 -0
  298. package/dist/_chunks/he-D5uZ95em.js.map +1 -0
  299. package/dist/_chunks/he-iX4tdMgI.mjs +326 -0
  300. package/dist/_chunks/he-iX4tdMgI.mjs.map +1 -0
  301. package/dist/_chunks/hi-BE8LyrZY.mjs +722 -0
  302. package/dist/_chunks/hi-BE8LyrZY.mjs.map +1 -0
  303. package/dist/_chunks/hi-BzoOyiI2.js +722 -0
  304. package/dist/_chunks/hi-BzoOyiI2.js.map +1 -0
  305. package/dist/_chunks/hr-Di6sXxgh.mjs +1035 -0
  306. package/dist/_chunks/hr-Di6sXxgh.mjs.map +1 -0
  307. package/dist/_chunks/hr-DqmGDOJs.js +1035 -0
  308. package/dist/_chunks/hr-DqmGDOJs.js.map +1 -0
  309. package/dist/_chunks/hu-BJ1gQ7GZ.js +832 -0
  310. package/dist/_chunks/hu-BJ1gQ7GZ.js.map +1 -0
  311. package/dist/_chunks/hu-CWWpyjYF.mjs +832 -0
  312. package/dist/_chunks/hu-CWWpyjYF.mjs.map +1 -0
  313. package/dist/_chunks/id-2f-IaYtK.mjs +448 -0
  314. package/dist/_chunks/id-2f-IaYtK.mjs.map +1 -0
  315. package/dist/_chunks/id-CDscjFnX.js +448 -0
  316. package/dist/_chunks/id-CDscjFnX.js.map +1 -0
  317. package/dist/_chunks/index-24f-Noga.mjs +900 -0
  318. package/dist/_chunks/index-24f-Noga.mjs.map +1 -0
  319. package/dist/_chunks/index-BiELGgSr.js +19415 -0
  320. package/dist/_chunks/index-BiELGgSr.js.map +1 -0
  321. package/dist/_chunks/index-Cwr9u7_W.mjs +19358 -0
  322. package/dist/_chunks/index-Cwr9u7_W.mjs.map +1 -0
  323. package/dist/_chunks/index-WMsbcPLX.js +937 -0
  324. package/dist/_chunks/index-WMsbcPLX.js.map +1 -0
  325. package/dist/_chunks/it-BGbX9q0z.mjs +459 -0
  326. package/dist/_chunks/it-BGbX9q0z.mjs.map +1 -0
  327. package/dist/_chunks/it-DyvLZQEE.js +459 -0
  328. package/dist/_chunks/it-DyvLZQEE.js.map +1 -0
  329. package/dist/_chunks/ja-15kZhZF1.mjs +633 -0
  330. package/dist/_chunks/ja-15kZhZF1.mjs.map +1 -0
  331. package/dist/_chunks/ja-BviRY8-H.js +633 -0
  332. package/dist/_chunks/ja-BviRY8-H.js.map +1 -0
  333. package/dist/_chunks/ko-BdjaCDT8.js +631 -0
  334. package/dist/_chunks/ko-BdjaCDT8.js.map +1 -0
  335. package/dist/_chunks/ko-KD6HlXhy.mjs +631 -0
  336. package/dist/_chunks/ko-KD6HlXhy.mjs.map +1 -0
  337. package/dist/_chunks/ml-BEycuyAF.mjs +722 -0
  338. package/dist/_chunks/ml-BEycuyAF.mjs.map +1 -0
  339. package/dist/_chunks/ml-DqObrNJ3.js +722 -0
  340. package/dist/_chunks/ml-DqObrNJ3.js.map +1 -0
  341. package/dist/_chunks/ms-CkIVNCCl.js +342 -0
  342. package/dist/_chunks/ms-CkIVNCCl.js.map +1 -0
  343. package/dist/_chunks/ms-DCPlKxiV.mjs +342 -0
  344. package/dist/_chunks/ms-DCPlKxiV.mjs.map +1 -0
  345. package/dist/_chunks/nl-BVA9GAkb.js +828 -0
  346. package/dist/_chunks/nl-BVA9GAkb.js.map +1 -0
  347. package/dist/_chunks/nl-CJuiadHk.mjs +828 -0
  348. package/dist/_chunks/nl-CJuiadHk.mjs.map +1 -0
  349. package/dist/_chunks/no-Co7fsyMn.js +310 -0
  350. package/dist/_chunks/no-Co7fsyMn.js.map +1 -0
  351. package/dist/_chunks/no-f64KSW5p.mjs +310 -0
  352. package/dist/_chunks/no-f64KSW5p.mjs.map +1 -0
  353. package/dist/_chunks/pl-Bw9wSyOi.mjs +721 -0
  354. package/dist/_chunks/pl-Bw9wSyOi.mjs.map +1 -0
  355. package/dist/_chunks/pl-CYXsVNaz.js +721 -0
  356. package/dist/_chunks/pl-CYXsVNaz.js.map +1 -0
  357. package/dist/_chunks/pt-BR-77_6hB4F.mjs +794 -0
  358. package/dist/_chunks/pt-BR-77_6hB4F.mjs.map +1 -0
  359. package/dist/_chunks/pt-BR-BpSp_Bh4.js +794 -0
  360. package/dist/_chunks/pt-BR-BpSp_Bh4.js.map +1 -0
  361. package/dist/_chunks/pt-DU2MHjbl.js +296 -0
  362. package/dist/_chunks/pt-DU2MHjbl.js.map +1 -0
  363. package/dist/_chunks/pt-MLLdm__m.mjs +296 -0
  364. package/dist/_chunks/pt-MLLdm__m.mjs.map +1 -0
  365. package/dist/_chunks/reviewWorkflows-Ra5krOSM.mjs +117 -0
  366. package/dist/_chunks/reviewWorkflows-Ra5krOSM.mjs.map +1 -0
  367. package/dist/_chunks/reviewWorkflows-kHDJXR8s.js +116 -0
  368. package/dist/_chunks/reviewWorkflows-kHDJXR8s.js.map +1 -0
  369. package/dist/_chunks/ru-DFetvmsD.mjs +993 -0
  370. package/dist/_chunks/ru-DFetvmsD.mjs.map +1 -0
  371. package/dist/_chunks/ru-Tae8Srzl.js +993 -0
  372. package/dist/_chunks/ru-Tae8Srzl.js.map +1 -0
  373. package/dist/_chunks/sa-CNZNSSPD.js +722 -0
  374. package/dist/_chunks/sa-CNZNSSPD.js.map +1 -0
  375. package/dist/_chunks/sa-DA4KBKq-.mjs +722 -0
  376. package/dist/_chunks/sa-DA4KBKq-.mjs.map +1 -0
  377. package/dist/_chunks/sk-KCpIDfnW.mjs +690 -0
  378. package/dist/_chunks/sk-KCpIDfnW.mjs.map +1 -0
  379. package/dist/_chunks/sk-YDwkuBuR.js +690 -0
  380. package/dist/_chunks/sk-YDwkuBuR.js.map +1 -0
  381. package/dist/_chunks/sv-B5SG1nkJ.js +827 -0
  382. package/dist/_chunks/sv-B5SG1nkJ.js.map +1 -0
  383. package/dist/_chunks/sv-Duc7AD1y.mjs +827 -0
  384. package/dist/_chunks/sv-Duc7AD1y.mjs.map +1 -0
  385. package/dist/_chunks/th-DkX5AaJc.mjs +430 -0
  386. package/dist/_chunks/th-DkX5AaJc.mjs.map +1 -0
  387. package/dist/_chunks/th-_uBmb8Nm.js +430 -0
  388. package/dist/_chunks/th-_uBmb8Nm.js.map +1 -0
  389. package/dist/_chunks/tr-C2mjt6Rp.mjs +785 -0
  390. package/dist/_chunks/tr-C2mjt6Rp.mjs.map +1 -0
  391. package/dist/_chunks/tr-DS8cBMj5.js +785 -0
  392. package/dist/_chunks/tr-DS8cBMj5.js.map +1 -0
  393. package/dist/_chunks/transferTokens-BUCtB8Vs.mjs +63 -0
  394. package/dist/_chunks/transferTokens-BUCtB8Vs.mjs.map +1 -0
  395. package/dist/_chunks/transferTokens-D1Vrg_e3.js +62 -0
  396. package/dist/_chunks/transferTokens-D1Vrg_e3.js.map +1 -0
  397. package/dist/_chunks/uk-3lk6xDxv.mjs +343 -0
  398. package/dist/_chunks/uk-3lk6xDxv.mjs.map +1 -0
  399. package/dist/_chunks/uk-86pRQVpc.js +343 -0
  400. package/dist/_chunks/uk-86pRQVpc.js.map +1 -0
  401. package/dist/_chunks/useAdminRoles-B7eTo_wV.mjs +28 -0
  402. package/dist/_chunks/useAdminRoles-B7eTo_wV.mjs.map +1 -0
  403. package/dist/_chunks/useAdminRoles-CgCWq8bE.js +45 -0
  404. package/dist/_chunks/useAdminRoles-CgCWq8bE.js.map +1 -0
  405. package/dist/_chunks/useContentTypes-CPA2u-5S.mjs +72 -0
  406. package/dist/_chunks/useContentTypes-CPA2u-5S.mjs.map +1 -0
  407. package/dist/_chunks/useContentTypes-DK4waKO7.js +89 -0
  408. package/dist/_chunks/useContentTypes-DK4waKO7.js.map +1 -0
  409. package/dist/_chunks/useLicenseLimitNotification-Bv8sFkY4.js +99 -0
  410. package/dist/_chunks/useLicenseLimitNotification-Bv8sFkY4.js.map +1 -0
  411. package/dist/_chunks/useLicenseLimitNotification-CYm3C_il.mjs +80 -0
  412. package/dist/_chunks/useLicenseLimitNotification-CYm3C_il.mjs.map +1 -0
  413. package/dist/_chunks/useReviewWorkflows-BboRkueC.js +26 -0
  414. package/dist/_chunks/useReviewWorkflows-BboRkueC.js.map +1 -0
  415. package/dist/_chunks/useReviewWorkflows-ClfUfdp6.mjs +27 -0
  416. package/dist/_chunks/useReviewWorkflows-ClfUfdp6.mjs.map +1 -0
  417. package/dist/_chunks/useWebhooks-C5oul1Ng.mjs +90 -0
  418. package/dist/_chunks/useWebhooks-C5oul1Ng.mjs.map +1 -0
  419. package/dist/_chunks/useWebhooks-Dvjo7y6X.js +89 -0
  420. package/dist/_chunks/useWebhooks-Dvjo7y6X.js.map +1 -0
  421. package/dist/_chunks/validateWorkflow-BQErFAES.js +1076 -0
  422. package/dist/_chunks/validateWorkflow-BQErFAES.js.map +1 -0
  423. package/dist/_chunks/validateWorkflow-qyyD9ZMT.mjs +1054 -0
  424. package/dist/_chunks/validateWorkflow-qyyD9ZMT.mjs.map +1 -0
  425. package/dist/_chunks/validation-BRQPW7wR.js +33 -0
  426. package/dist/_chunks/validation-BRQPW7wR.js.map +1 -0
  427. package/dist/_chunks/validation-DTw7KFkq.mjs +16 -0
  428. package/dist/_chunks/validation-DTw7KFkq.mjs.map +1 -0
  429. package/dist/_chunks/vi-B8EGW0fo.mjs +298 -0
  430. package/dist/_chunks/vi-B8EGW0fo.mjs.map +1 -0
  431. package/dist/_chunks/vi-BEwfa_dG.js +298 -0
  432. package/dist/_chunks/vi-BEwfa_dG.js.map +1 -0
  433. package/dist/_chunks/watch-9KnH0KbG.js +95 -0
  434. package/dist/_chunks/watch-9KnH0KbG.js.map +1 -0
  435. package/dist/_chunks/watch-Bdlhf72v.mjs +90 -0
  436. package/dist/_chunks/watch-Bdlhf72v.mjs.map +1 -0
  437. package/dist/_chunks/watch-CIG_ceRy.mjs +54 -0
  438. package/dist/_chunks/watch-CIG_ceRy.mjs.map +1 -0
  439. package/dist/_chunks/watch-ZrqwXedv.js +79 -0
  440. package/dist/_chunks/watch-ZrqwXedv.js.map +1 -0
  441. package/dist/_chunks/zh-Hans-BD04oDkm.js +957 -0
  442. package/dist/_chunks/zh-Hans-BD04oDkm.js.map +1 -0
  443. package/dist/_chunks/zh-Hans-DScrItBN.mjs +957 -0
  444. package/dist/_chunks/zh-Hans-DScrItBN.mjs.map +1 -0
  445. package/dist/_chunks/zh-IzjeM_o5.js +836 -0
  446. package/dist/_chunks/zh-IzjeM_o5.js.map +1 -0
  447. package/dist/_chunks/zh-twdFdR1U.mjs +836 -0
  448. package/dist/_chunks/zh-twdFdR1U.mjs.map +1 -0
  449. package/dist/admin/index.js +1 -71
  450. package/dist/admin/index.js.map +1 -1
  451. package/dist/admin/index.mjs +4 -74
  452. package/dist/admin/index.mjs.map +1 -1
  453. package/dist/cli.js +1 -28
  454. package/dist/cli.js.map +1 -1
  455. package/dist/cli.mjs +1 -28
  456. package/dist/cli.mjs.map +1 -1
  457. package/dist/ee/server/index.js +44 -72
  458. package/dist/ee/server/index.js.map +1 -1
  459. package/dist/ee/server/index.mjs +45 -73
  460. package/dist/ee/server/index.mjs.map +1 -1
  461. package/dist/server/index.js +157 -91
  462. package/dist/server/index.js.map +1 -1
  463. package/dist/server/index.mjs +193 -127
  464. package/dist/server/index.mjs.map +1 -1
  465. package/dist/server/src/controllers/authenticated-user.d.ts.map +1 -1
  466. package/dist/server/src/services/permission/permissions-manager/sanitize.d.ts.map +1 -1
  467. package/dist/server/src/services/permission/permissions-manager/validate.d.ts.map +1 -1
  468. package/dist/server/src/utils/merge-validated-body.d.ts +2 -0
  469. package/dist/server/src/utils/merge-validated-body.d.ts.map +1 -0
  470. package/dist/server/src/validation/user.d.ts +4 -4
  471. package/dist/server/src/validation/user.d.ts.map +1 -1
  472. package/package.json +19 -19
  473. package/dist/_chunks/AdminSeatInfo-CcnrDPFr.js +0 -166
  474. package/dist/_chunks/AdminSeatInfo-CcnrDPFr.js.map +0 -1
  475. package/dist/_chunks/AdminSeatInfo-gLztRe97.mjs +0 -166
  476. package/dist/_chunks/AdminSeatInfo-gLztRe97.mjs.map +0 -1
  477. package/dist/_chunks/AuthenticatedApp-9hmvxLus.mjs +0 -1438
  478. package/dist/_chunks/AuthenticatedApp-9hmvxLus.mjs.map +0 -1
  479. package/dist/_chunks/AuthenticatedApp-WZhpPnNK.js +0 -1464
  480. package/dist/_chunks/AuthenticatedApp-WZhpPnNK.js.map +0 -1
  481. package/dist/_chunks/CreateActionEE-jpIeNaRY.js +0 -125
  482. package/dist/_chunks/CreateActionEE-jpIeNaRY.js.map +0 -1
  483. package/dist/_chunks/CreateActionEE-yjoda5Hb.mjs +0 -122
  484. package/dist/_chunks/CreateActionEE-yjoda5Hb.mjs.map +0 -1
  485. package/dist/_chunks/CreatePage-0Mt-xoxO.js +0 -327
  486. package/dist/_chunks/CreatePage-0Mt-xoxO.js.map +0 -1
  487. package/dist/_chunks/CreatePage-A08bjELp.js +0 -333
  488. package/dist/_chunks/CreatePage-A08bjELp.js.map +0 -1
  489. package/dist/_chunks/CreatePage-_3GFnssV.mjs +0 -305
  490. package/dist/_chunks/CreatePage-_3GFnssV.mjs.map +0 -1
  491. package/dist/_chunks/CreatePage-dw59ltG7.js +0 -86
  492. package/dist/_chunks/CreatePage-dw59ltG7.js.map +0 -1
  493. package/dist/_chunks/CreatePage-gKmLd90c.mjs +0 -314
  494. package/dist/_chunks/CreatePage-gKmLd90c.mjs.map +0 -1
  495. package/dist/_chunks/CreatePage-y2qFb3EW.mjs +0 -86
  496. package/dist/_chunks/CreatePage-y2qFb3EW.mjs.map +0 -1
  497. package/dist/_chunks/CreateView-48K591De.mjs +0 -88
  498. package/dist/_chunks/CreateView-48K591De.mjs.map +0 -1
  499. package/dist/_chunks/CreateView-icsdK0LP.mjs +0 -92
  500. package/dist/_chunks/CreateView-icsdK0LP.mjs.map +0 -1
  501. package/dist/_chunks/CreateView-iw5zdito.js +0 -92
  502. package/dist/_chunks/CreateView-iw5zdito.js.map +0 -1
  503. package/dist/_chunks/CreateView-r0wXY7d9.js +0 -88
  504. package/dist/_chunks/CreateView-r0wXY7d9.js.map +0 -1
  505. package/dist/_chunks/EditPage-6p8Brxzp.js +0 -496
  506. package/dist/_chunks/EditPage-6p8Brxzp.js.map +0 -1
  507. package/dist/_chunks/EditPage-eBgXmlCr.mjs +0 -789
  508. package/dist/_chunks/EditPage-eBgXmlCr.mjs.map +0 -1
  509. package/dist/_chunks/EditPage-fuMYcO_D.mjs +0 -371
  510. package/dist/_chunks/EditPage-fuMYcO_D.mjs.map +0 -1
  511. package/dist/_chunks/EditPage-jvG5GlJc.mjs +0 -328
  512. package/dist/_chunks/EditPage-jvG5GlJc.mjs.map +0 -1
  513. package/dist/_chunks/EditPage-nGqO0c8E.js +0 -348
  514. package/dist/_chunks/EditPage-nGqO0c8E.js.map +0 -1
  515. package/dist/_chunks/EditPage-pYEEit-R.js +0 -390
  516. package/dist/_chunks/EditPage-pYEEit-R.js.map +0 -1
  517. package/dist/_chunks/EditPage-ps19Ubuk.mjs +0 -474
  518. package/dist/_chunks/EditPage-ps19Ubuk.mjs.map +0 -1
  519. package/dist/_chunks/EditPage-rf_a255j.js +0 -810
  520. package/dist/_chunks/EditPage-rf_a255j.js.map +0 -1
  521. package/dist/_chunks/EditView-9KEeAO94.js +0 -433
  522. package/dist/_chunks/EditView-9KEeAO94.js.map +0 -1
  523. package/dist/_chunks/EditView-Pd1zWX47.mjs +0 -413
  524. package/dist/_chunks/EditView-Pd1zWX47.mjs.map +0 -1
  525. package/dist/_chunks/EditViewPage-Jje9Oegz.mjs +0 -909
  526. package/dist/_chunks/EditViewPage-Jje9Oegz.mjs.map +0 -1
  527. package/dist/_chunks/EditViewPage-KQhcQtqd.js +0 -936
  528. package/dist/_chunks/EditViewPage-KQhcQtqd.js.map +0 -1
  529. package/dist/_chunks/EventsTable-OjN46vKG.mjs +0 -107
  530. package/dist/_chunks/EventsTable-OjN46vKG.mjs.map +0 -1
  531. package/dist/_chunks/EventsTable-SMVq4K27.js +0 -107
  532. package/dist/_chunks/EventsTable-SMVq4K27.js.map +0 -1
  533. package/dist/_chunks/Filters-Gdnt7qft.js +0 -61
  534. package/dist/_chunks/Filters-Gdnt7qft.js.map +0 -1
  535. package/dist/_chunks/Filters-dLXfVnI0.mjs +0 -43
  536. package/dist/_chunks/Filters-dLXfVnI0.mjs.map +0 -1
  537. package/dist/_chunks/HomePage-1PlFSGc-.mjs +0 -86
  538. package/dist/_chunks/HomePage-1PlFSGc-.mjs.map +0 -1
  539. package/dist/_chunks/HomePage-_OZ837dF.js +0 -600
  540. package/dist/_chunks/HomePage-_OZ837dF.js.map +0 -1
  541. package/dist/_chunks/HomePage-iGGPufdI.mjs +0 -579
  542. package/dist/_chunks/HomePage-iGGPufdI.mjs.map +0 -1
  543. package/dist/_chunks/HomePage-zkMkOLZy.js +0 -86
  544. package/dist/_chunks/HomePage-zkMkOLZy.js.map +0 -1
  545. package/dist/_chunks/InformationBoxEE-RkUQObb9.js +0 -359
  546. package/dist/_chunks/InformationBoxEE-RkUQObb9.js.map +0 -1
  547. package/dist/_chunks/InformationBoxEE-Y8w2OZfF.mjs +0 -340
  548. package/dist/_chunks/InformationBoxEE-Y8w2OZfF.mjs.map +0 -1
  549. package/dist/_chunks/InstalledPluginsPage-6VEamMx-.js +0 -188
  550. package/dist/_chunks/InstalledPluginsPage-6VEamMx-.js.map +0 -1
  551. package/dist/_chunks/InstalledPluginsPage-FLV-i16T.mjs +0 -169
  552. package/dist/_chunks/InstalledPluginsPage-FLV-i16T.mjs.map +0 -1
  553. package/dist/_chunks/InternalErrorPage-7JIAF-Ev.mjs +0 -41
  554. package/dist/_chunks/InternalErrorPage-7JIAF-Ev.mjs.map +0 -1
  555. package/dist/_chunks/InternalErrorPage-MkOX2w_Q.js +0 -41
  556. package/dist/_chunks/InternalErrorPage-MkOX2w_Q.js.map +0 -1
  557. package/dist/_chunks/Layout-BbFzmdA3.mjs +0 -87
  558. package/dist/_chunks/Layout-BbFzmdA3.mjs.map +0 -1
  559. package/dist/_chunks/Layout-yDFhMeG0.js +0 -88
  560. package/dist/_chunks/Layout-yDFhMeG0.js.map +0 -1
  561. package/dist/_chunks/LimitsModal-gq7jwfap.js +0 -75
  562. package/dist/_chunks/LimitsModal-gq7jwfap.js.map +0 -1
  563. package/dist/_chunks/LimitsModal-slvRtty7.mjs +0 -74
  564. package/dist/_chunks/LimitsModal-slvRtty7.mjs.map +0 -1
  565. package/dist/_chunks/ListPage-3_Rmx0WL.js +0 -680
  566. package/dist/_chunks/ListPage-3_Rmx0WL.js.map +0 -1
  567. package/dist/_chunks/ListPage-59QCcSqZ.mjs +0 -659
  568. package/dist/_chunks/ListPage-59QCcSqZ.mjs.map +0 -1
  569. package/dist/_chunks/ListPage-AUecxlA9.js +0 -349
  570. package/dist/_chunks/ListPage-AUecxlA9.js.map +0 -1
  571. package/dist/_chunks/ListPage-Lqx57Glr.mjs +0 -88
  572. package/dist/_chunks/ListPage-Lqx57Glr.mjs.map +0 -1
  573. package/dist/_chunks/ListPage-QhtuDpJA.js +0 -88
  574. package/dist/_chunks/ListPage-QhtuDpJA.js.map +0 -1
  575. package/dist/_chunks/ListPage-WJP01btb.mjs +0 -348
  576. package/dist/_chunks/ListPage-WJP01btb.mjs.map +0 -1
  577. package/dist/_chunks/ListPage-Zab_MlPC.js +0 -404
  578. package/dist/_chunks/ListPage-Zab_MlPC.js.map +0 -1
  579. package/dist/_chunks/ListPage-iaetHfR8.mjs +0 -346
  580. package/dist/_chunks/ListPage-iaetHfR8.mjs.map +0 -1
  581. package/dist/_chunks/ListPage-iiklTiAf.mjs +0 -385
  582. package/dist/_chunks/ListPage-iiklTiAf.mjs.map +0 -1
  583. package/dist/_chunks/ListPage-kz10SAjp.js +0 -369
  584. package/dist/_chunks/ListPage-kz10SAjp.js.map +0 -1
  585. package/dist/_chunks/ListPage-r1G44Ymw.mjs +0 -595
  586. package/dist/_chunks/ListPage-r1G44Ymw.mjs.map +0 -1
  587. package/dist/_chunks/ListPage-zsMQLWZe.js +0 -617
  588. package/dist/_chunks/ListPage-zsMQLWZe.js.map +0 -1
  589. package/dist/_chunks/ListView-5XArx3Uw.js +0 -301
  590. package/dist/_chunks/ListView-5XArx3Uw.js.map +0 -1
  591. package/dist/_chunks/ListView-baie7EdX.js +0 -291
  592. package/dist/_chunks/ListView-baie7EdX.js.map +0 -1
  593. package/dist/_chunks/ListView-dF3W-1qO.mjs +0 -270
  594. package/dist/_chunks/ListView-dF3W-1qO.mjs.map +0 -1
  595. package/dist/_chunks/ListView-mKtPXw3S.mjs +0 -280
  596. package/dist/_chunks/ListView-mKtPXw3S.mjs.map +0 -1
  597. package/dist/_chunks/Login-fNgnBkZN.mjs +0 -96
  598. package/dist/_chunks/Login-fNgnBkZN.mjs.map +0 -1
  599. package/dist/_chunks/Login-xMEWYqb3.js +0 -98
  600. package/dist/_chunks/Login-xMEWYqb3.js.map +0 -1
  601. package/dist/_chunks/MagicLinkEE-7ImmXKjt.mjs +0 -96
  602. package/dist/_chunks/MagicLinkEE-7ImmXKjt.mjs.map +0 -1
  603. package/dist/_chunks/MagicLinkEE-8eVOHtWs.js +0 -96
  604. package/dist/_chunks/MagicLinkEE-8eVOHtWs.js.map +0 -1
  605. package/dist/_chunks/MarketplacePage-9gMDs0VU.mjs +0 -1061
  606. package/dist/_chunks/MarketplacePage-9gMDs0VU.mjs.map +0 -1
  607. package/dist/_chunks/MarketplacePage-Xg7mos0Q.js +0 -1085
  608. package/dist/_chunks/MarketplacePage-Xg7mos0Q.js.map +0 -1
  609. package/dist/_chunks/ModalForm-W9-dHdzq.mjs +0 -28
  610. package/dist/_chunks/ModalForm-W9-dHdzq.mjs.map +0 -1
  611. package/dist/_chunks/ModalForm-cFcYN_zA.js +0 -28
  612. package/dist/_chunks/ModalForm-cFcYN_zA.js.map +0 -1
  613. package/dist/_chunks/Permissions-hFoxbU5P.js +0 -2040
  614. package/dist/_chunks/Permissions-hFoxbU5P.js.map +0 -1
  615. package/dist/_chunks/Permissions-zCLsoAGa.mjs +0 -2011
  616. package/dist/_chunks/Permissions-zCLsoAGa.mjs.map +0 -1
  617. package/dist/_chunks/ProfilePage-31ZnqdJz.mjs +0 -645
  618. package/dist/_chunks/ProfilePage-31ZnqdJz.mjs.map +0 -1
  619. package/dist/_chunks/ProfilePage-v0d-63SV.js +0 -668
  620. package/dist/_chunks/ProfilePage-v0d-63SV.js.map +0 -1
  621. package/dist/_chunks/PurchaseAuditLogs-KILCZp5x.mjs +0 -48
  622. package/dist/_chunks/PurchaseAuditLogs-KILCZp5x.mjs.map +0 -1
  623. package/dist/_chunks/PurchaseAuditLogs-bs-tiD4M.js +0 -48
  624. package/dist/_chunks/PurchaseAuditLogs-bs-tiD4M.js.map +0 -1
  625. package/dist/_chunks/PurchaseReviewWorkflows-cdGh-HED.js +0 -51
  626. package/dist/_chunks/PurchaseReviewWorkflows-cdGh-HED.js.map +0 -1
  627. package/dist/_chunks/PurchaseReviewWorkflows-rVcCufNv.mjs +0 -51
  628. package/dist/_chunks/PurchaseReviewWorkflows-rVcCufNv.mjs.map +0 -1
  629. package/dist/_chunks/PurchaseSingleSignOn-H8KWtk1K.mjs +0 -51
  630. package/dist/_chunks/PurchaseSingleSignOn-H8KWtk1K.mjs.map +0 -1
  631. package/dist/_chunks/PurchaseSingleSignOn-OqlM4WkQ.js +0 -51
  632. package/dist/_chunks/PurchaseSingleSignOn-OqlM4WkQ.js.map +0 -1
  633. package/dist/_chunks/ReviewWorkflowsColumn-bEpMVnyq.mjs +0 -102
  634. package/dist/_chunks/ReviewWorkflowsColumn-bEpMVnyq.mjs.map +0 -1
  635. package/dist/_chunks/ReviewWorkflowsColumn-jFslDSOJ.js +0 -102
  636. package/dist/_chunks/ReviewWorkflowsColumn-jFslDSOJ.js.map +0 -1
  637. package/dist/_chunks/SSOProviders-GvoeZh35.mjs +0 -58
  638. package/dist/_chunks/SSOProviders-GvoeZh35.mjs.map +0 -1
  639. package/dist/_chunks/SSOProviders-Z6IAEre2.js +0 -59
  640. package/dist/_chunks/SSOProviders-Z6IAEre2.js.map +0 -1
  641. package/dist/_chunks/SelectRoles-397jvh3w.mjs +0 -102
  642. package/dist/_chunks/SelectRoles-397jvh3w.mjs.map +0 -1
  643. package/dist/_chunks/SelectRoles-zOmfqKL0.js +0 -103
  644. package/dist/_chunks/SelectRoles-zOmfqKL0.js.map +0 -1
  645. package/dist/_chunks/SettingsPage-ge7YVBZh.mjs +0 -1082
  646. package/dist/_chunks/SettingsPage-ge7YVBZh.mjs.map +0 -1
  647. package/dist/_chunks/SettingsPage-mNt0QiTY.js +0 -1105
  648. package/dist/_chunks/SettingsPage-mNt0QiTY.js.map +0 -1
  649. package/dist/_chunks/SingleSignOnPage-LgnrCYCc.mjs +0 -297
  650. package/dist/_chunks/SingleSignOnPage-LgnrCYCc.mjs.map +0 -1
  651. package/dist/_chunks/SingleSignOnPage-M8yMsFLO.js +0 -316
  652. package/dist/_chunks/SingleSignOnPage-M8yMsFLO.js.map +0 -1
  653. package/dist/_chunks/Table-T-qYlZ1f.js +0 -226
  654. package/dist/_chunks/Table-T-qYlZ1f.js.map +0 -1
  655. package/dist/_chunks/Table-nKuv1TlJ.mjs +0 -206
  656. package/dist/_chunks/Table-nKuv1TlJ.mjs.map +0 -1
  657. package/dist/_chunks/TokenTypeSelect-5ERmNfP1.mjs +0 -353
  658. package/dist/_chunks/TokenTypeSelect-5ERmNfP1.mjs.map +0 -1
  659. package/dist/_chunks/TokenTypeSelect-9HpXl_PF.js +0 -372
  660. package/dist/_chunks/TokenTypeSelect-9HpXl_PF.js.map +0 -1
  661. package/dist/_chunks/apiTokens-_zIqFUDl.js +0 -59
  662. package/dist/_chunks/apiTokens-_zIqFUDl.js.map +0 -1
  663. package/dist/_chunks/apiTokens-yQ6rHhJk.mjs +0 -60
  664. package/dist/_chunks/apiTokens-yQ6rHhJk.mjs.map +0 -1
  665. package/dist/_chunks/ar-jktgflyG.mjs +0 -936
  666. package/dist/_chunks/ar-jktgflyG.mjs.map +0 -1
  667. package/dist/_chunks/ar-qfb99PVh.js +0 -936
  668. package/dist/_chunks/ar-qfb99PVh.js.map +0 -1
  669. package/dist/_chunks/build-0AXgvQMp.mjs +0 -44
  670. package/dist/_chunks/build-0AXgvQMp.mjs.map +0 -1
  671. package/dist/_chunks/build-9nXVhfLu.js +0 -80
  672. package/dist/_chunks/build-9nXVhfLu.js.map +0 -1
  673. package/dist/_chunks/build-E4SInTs4.mjs +0 -77
  674. package/dist/_chunks/build-E4SInTs4.mjs.map +0 -1
  675. package/dist/_chunks/build-FCRwbJky.js +0 -77
  676. package/dist/_chunks/build-FCRwbJky.js.map +0 -1
  677. package/dist/_chunks/build-VuUvCdhF.mjs +0 -75
  678. package/dist/_chunks/build-VuUvCdhF.mjs.map +0 -1
  679. package/dist/_chunks/build-dmiF-Zce.js +0 -66
  680. package/dist/_chunks/build-dmiF-Zce.js.map +0 -1
  681. package/dist/_chunks/ca-bQs9dsIc.js +0 -724
  682. package/dist/_chunks/ca-bQs9dsIc.js.map +0 -1
  683. package/dist/_chunks/ca-g_TZ9Gyb.mjs +0 -724
  684. package/dist/_chunks/ca-g_TZ9Gyb.mjs.map +0 -1
  685. package/dist/_chunks/colors-6VKZqnio.js +0 -33
  686. package/dist/_chunks/colors-6VKZqnio.js.map +0 -1
  687. package/dist/_chunks/colors-YeFa2BnS.mjs +0 -34
  688. package/dist/_chunks/colors-YeFa2BnS.mjs.map +0 -1
  689. package/dist/_chunks/config-4l8LtfkG.js +0 -281
  690. package/dist/_chunks/config-4l8LtfkG.js.map +0 -1
  691. package/dist/_chunks/config-Bsnm3Cwl.mjs +0 -135
  692. package/dist/_chunks/config-Bsnm3Cwl.mjs.map +0 -1
  693. package/dist/_chunks/config-cxDPa60M.js +0 -137
  694. package/dist/_chunks/config-cxDPa60M.js.map +0 -1
  695. package/dist/_chunks/config-hNpp0TvT.mjs +0 -251
  696. package/dist/_chunks/config-hNpp0TvT.mjs.map +0 -1
  697. package/dist/_chunks/config-qyiH0Sij.js +0 -61
  698. package/dist/_chunks/config-qyiH0Sij.js.map +0 -1
  699. package/dist/_chunks/config-yfY7v_OS.mjs +0 -58
  700. package/dist/_chunks/config-yfY7v_OS.mjs.map +0 -1
  701. package/dist/_chunks/constants-1LJYNtJf.js +0 -116
  702. package/dist/_chunks/constants-1LJYNtJf.js.map +0 -1
  703. package/dist/_chunks/constants-8sAt6dKz.mjs +0 -59
  704. package/dist/_chunks/constants-8sAt6dKz.mjs.map +0 -1
  705. package/dist/_chunks/constants-BRLS-pE4.js +0 -241
  706. package/dist/_chunks/constants-BRLS-pE4.js.map +0 -1
  707. package/dist/_chunks/constants-Fs0PGeXa.mjs +0 -241
  708. package/dist/_chunks/constants-Fs0PGeXa.mjs.map +0 -1
  709. package/dist/_chunks/constants-GxbFWMRK.mjs +0 -114
  710. package/dist/_chunks/constants-GxbFWMRK.mjs.map +0 -1
  711. package/dist/_chunks/constants-HE_pNGiL.mjs +0 -52
  712. package/dist/_chunks/constants-HE_pNGiL.mjs.map +0 -1
  713. package/dist/_chunks/constants-L1I-Y-RJ.js +0 -58
  714. package/dist/_chunks/constants-L1I-Y-RJ.js.map +0 -1
  715. package/dist/_chunks/constants-ODlahW77.js +0 -189
  716. package/dist/_chunks/constants-ODlahW77.js.map +0 -1
  717. package/dist/_chunks/constants-RMqZXSqh.js +0 -6
  718. package/dist/_chunks/constants-RMqZXSqh.js.map +0 -1
  719. package/dist/_chunks/constants-T-cuT2Ca.mjs +0 -168
  720. package/dist/_chunks/constants-T-cuT2Ca.mjs.map +0 -1
  721. package/dist/_chunks/constants-VC_tKTEj.js +0 -52
  722. package/dist/_chunks/constants-VC_tKTEj.js.map +0 -1
  723. package/dist/_chunks/constants-WbeIIlk3.js +0 -11
  724. package/dist/_chunks/constants-WbeIIlk3.js.map +0 -1
  725. package/dist/_chunks/constants-_8pVvG0H.mjs +0 -11
  726. package/dist/_chunks/constants-_8pVvG0H.mjs.map +0 -1
  727. package/dist/_chunks/constants-fJt30IoY.mjs +0 -7
  728. package/dist/_chunks/constants-fJt30IoY.mjs.map +0 -1
  729. package/dist/_chunks/constants-jzEsxOxr.js +0 -6
  730. package/dist/_chunks/constants-jzEsxOxr.js.map +0 -1
  731. package/dist/_chunks/constants-q1-_l5GM.mjs +0 -7
  732. package/dist/_chunks/constants-q1-_l5GM.mjs.map +0 -1
  733. package/dist/_chunks/cs-XYXIcfVY.js +0 -291
  734. package/dist/_chunks/cs-XYXIcfVY.js.map +0 -1
  735. package/dist/_chunks/cs-pnCQlrWo.mjs +0 -291
  736. package/dist/_chunks/cs-pnCQlrWo.mjs.map +0 -1
  737. package/dist/_chunks/de-elBeWdG2.js +0 -716
  738. package/dist/_chunks/de-elBeWdG2.js.map +0 -1
  739. package/dist/_chunks/de-uQFFWv6o.mjs +0 -716
  740. package/dist/_chunks/de-uQFFWv6o.mjs.map +0 -1
  741. package/dist/_chunks/develop-GhchjR6l.mjs +0 -66
  742. package/dist/_chunks/develop-GhchjR6l.mjs.map +0 -1
  743. package/dist/_chunks/develop-dfA-WCq6.js +0 -70
  744. package/dist/_chunks/develop-dfA-WCq6.js.map +0 -1
  745. package/dist/_chunks/dk-QgYCviRU.mjs +0 -634
  746. package/dist/_chunks/dk-QgYCviRU.mjs.map +0 -1
  747. package/dist/_chunks/dk-qvFj0oFG.js +0 -634
  748. package/dist/_chunks/dk-qvFj0oFG.js.map +0 -1
  749. package/dist/_chunks/en-LlTBXie5.mjs +0 -1035
  750. package/dist/_chunks/en-LlTBXie5.mjs.map +0 -1
  751. package/dist/_chunks/en-UdTZS0x5.js +0 -1035
  752. package/dist/_chunks/en-UdTZS0x5.js.map +0 -1
  753. package/dist/_chunks/es-h5dK2UFx.mjs +0 -796
  754. package/dist/_chunks/es-h5dK2UFx.mjs.map +0 -1
  755. package/dist/_chunks/es-hBQ_pL0X.js +0 -796
  756. package/dist/_chunks/es-hBQ_pL0X.js.map +0 -1
  757. package/dist/_chunks/eu-7yW2eEOy.mjs +0 -832
  758. package/dist/_chunks/eu-7yW2eEOy.mjs.map +0 -1
  759. package/dist/_chunks/eu-VH6nNPXY.js +0 -832
  760. package/dist/_chunks/eu-VH6nNPXY.js.map +0 -1
  761. package/dist/_chunks/fr-I-0ckcEU.mjs +0 -762
  762. package/dist/_chunks/fr-I-0ckcEU.mjs.map +0 -1
  763. package/dist/_chunks/fr-RVVsyT5B.js +0 -762
  764. package/dist/_chunks/fr-RVVsyT5B.js.map +0 -1
  765. package/dist/_chunks/gu-76mTVAc2.js +0 -623
  766. package/dist/_chunks/gu-76mTVAc2.js.map +0 -1
  767. package/dist/_chunks/gu-k2JKO75-.mjs +0 -623
  768. package/dist/_chunks/gu-k2JKO75-.mjs.map +0 -1
  769. package/dist/_chunks/he-RmtdSWtw.js +0 -326
  770. package/dist/_chunks/he-RmtdSWtw.js.map +0 -1
  771. package/dist/_chunks/he-SUOZnrPI.mjs +0 -326
  772. package/dist/_chunks/he-SUOZnrPI.mjs.map +0 -1
  773. package/dist/_chunks/hi-eUDhoDjK.mjs +0 -722
  774. package/dist/_chunks/hi-eUDhoDjK.mjs.map +0 -1
  775. package/dist/_chunks/hi-zD7tX6HS.js +0 -722
  776. package/dist/_chunks/hi-zD7tX6HS.js.map +0 -1
  777. package/dist/_chunks/hr-_CdBFPv8.js +0 -1035
  778. package/dist/_chunks/hr-_CdBFPv8.js.map +0 -1
  779. package/dist/_chunks/hr-fj72XD8M.mjs +0 -1035
  780. package/dist/_chunks/hr-fj72XD8M.mjs.map +0 -1
  781. package/dist/_chunks/hu-0pmvoLj1.js +0 -832
  782. package/dist/_chunks/hu-0pmvoLj1.js.map +0 -1
  783. package/dist/_chunks/hu-Nw7d3QWI.mjs +0 -832
  784. package/dist/_chunks/hu-Nw7d3QWI.mjs.map +0 -1
  785. package/dist/_chunks/id-xMqk-8lW.mjs +0 -448
  786. package/dist/_chunks/id-xMqk-8lW.mjs.map +0 -1
  787. package/dist/_chunks/id-yQtHASS7.js +0 -448
  788. package/dist/_chunks/id-yQtHASS7.js.map +0 -1
  789. package/dist/_chunks/index-KlaImB-Z.mjs +0 -19384
  790. package/dist/_chunks/index-KlaImB-Z.mjs.map +0 -1
  791. package/dist/_chunks/index-jOX8WAPL.js +0 -938
  792. package/dist/_chunks/index-jOX8WAPL.js.map +0 -1
  793. package/dist/_chunks/index-nzsPp67p.js +0 -19442
  794. package/dist/_chunks/index-nzsPp67p.js.map +0 -1
  795. package/dist/_chunks/index-uXEcUT9H.mjs +0 -900
  796. package/dist/_chunks/index-uXEcUT9H.mjs.map +0 -1
  797. package/dist/_chunks/it-RPJqQqp3.js +0 -459
  798. package/dist/_chunks/it-RPJqQqp3.js.map +0 -1
  799. package/dist/_chunks/it-rHB9s1La.mjs +0 -459
  800. package/dist/_chunks/it-rHB9s1La.mjs.map +0 -1
  801. package/dist/_chunks/ja-5uFhM-kW.js +0 -633
  802. package/dist/_chunks/ja-5uFhM-kW.js.map +0 -1
  803. package/dist/_chunks/ja-WD-v2aCc.mjs +0 -633
  804. package/dist/_chunks/ja-WD-v2aCc.mjs.map +0 -1
  805. package/dist/_chunks/ko-JyirX0Lo.js +0 -631
  806. package/dist/_chunks/ko-JyirX0Lo.js.map +0 -1
  807. package/dist/_chunks/ko-bqCJmLX_.mjs +0 -631
  808. package/dist/_chunks/ko-bqCJmLX_.mjs.map +0 -1
  809. package/dist/_chunks/ml-NdVWq6KA.mjs +0 -722
  810. package/dist/_chunks/ml-NdVWq6KA.mjs.map +0 -1
  811. package/dist/_chunks/ml-QqpcKQgB.js +0 -722
  812. package/dist/_chunks/ml-QqpcKQgB.js.map +0 -1
  813. package/dist/_chunks/ms-gansS54r.mjs +0 -342
  814. package/dist/_chunks/ms-gansS54r.mjs.map +0 -1
  815. package/dist/_chunks/ms-wbSWdQJ0.js +0 -342
  816. package/dist/_chunks/ms-wbSWdQJ0.js.map +0 -1
  817. package/dist/_chunks/nl--_EbnSVw.mjs +0 -828
  818. package/dist/_chunks/nl--_EbnSVw.mjs.map +0 -1
  819. package/dist/_chunks/nl-Foqdtl_-.js +0 -828
  820. package/dist/_chunks/nl-Foqdtl_-.js.map +0 -1
  821. package/dist/_chunks/no-9cS1N6hE.mjs +0 -310
  822. package/dist/_chunks/no-9cS1N6hE.mjs.map +0 -1
  823. package/dist/_chunks/no-l_d9yAQN.js +0 -310
  824. package/dist/_chunks/no-l_d9yAQN.js.map +0 -1
  825. package/dist/_chunks/pl-01EnRFRc.js +0 -721
  826. package/dist/_chunks/pl-01EnRFRc.js.map +0 -1
  827. package/dist/_chunks/pl-3EvXSIl8.mjs +0 -721
  828. package/dist/_chunks/pl-3EvXSIl8.mjs.map +0 -1
  829. package/dist/_chunks/pt-BR-8-G6vaMo.mjs +0 -794
  830. package/dist/_chunks/pt-BR-8-G6vaMo.mjs.map +0 -1
  831. package/dist/_chunks/pt-BR-F3FsQI-D.js +0 -794
  832. package/dist/_chunks/pt-BR-F3FsQI-D.js.map +0 -1
  833. package/dist/_chunks/pt-Mve7WzqZ.js +0 -296
  834. package/dist/_chunks/pt-Mve7WzqZ.js.map +0 -1
  835. package/dist/_chunks/pt-TrdDLCZ4.mjs +0 -296
  836. package/dist/_chunks/pt-TrdDLCZ4.mjs.map +0 -1
  837. package/dist/_chunks/reviewWorkflows-6LYktuSC.js +0 -116
  838. package/dist/_chunks/reviewWorkflows-6LYktuSC.js.map +0 -1
  839. package/dist/_chunks/reviewWorkflows-xaCXGNG_.mjs +0 -117
  840. package/dist/_chunks/reviewWorkflows-xaCXGNG_.mjs.map +0 -1
  841. package/dist/_chunks/ru-flezEXdc.js +0 -993
  842. package/dist/_chunks/ru-flezEXdc.js.map +0 -1
  843. package/dist/_chunks/ru-mivqkjAk.mjs +0 -993
  844. package/dist/_chunks/ru-mivqkjAk.mjs.map +0 -1
  845. package/dist/_chunks/sa-AbTtHezl.mjs +0 -722
  846. package/dist/_chunks/sa-AbTtHezl.mjs.map +0 -1
  847. package/dist/_chunks/sa-gjKCAmHv.js +0 -722
  848. package/dist/_chunks/sa-gjKCAmHv.js.map +0 -1
  849. package/dist/_chunks/sk-IoQ_DY_j.mjs +0 -690
  850. package/dist/_chunks/sk-IoQ_DY_j.mjs.map +0 -1
  851. package/dist/_chunks/sk-xA9DPcmq.js +0 -690
  852. package/dist/_chunks/sk-xA9DPcmq.js.map +0 -1
  853. package/dist/_chunks/sv-SHJ67uau.mjs +0 -827
  854. package/dist/_chunks/sv-SHJ67uau.mjs.map +0 -1
  855. package/dist/_chunks/sv-be1suA3a.js +0 -827
  856. package/dist/_chunks/sv-be1suA3a.js.map +0 -1
  857. package/dist/_chunks/th-7ExcBOpr.js +0 -430
  858. package/dist/_chunks/th-7ExcBOpr.js.map +0 -1
  859. package/dist/_chunks/th-TrS9p5eO.mjs +0 -430
  860. package/dist/_chunks/th-TrS9p5eO.mjs.map +0 -1
  861. package/dist/_chunks/tr-f8ouRTmt.mjs +0 -785
  862. package/dist/_chunks/tr-f8ouRTmt.mjs.map +0 -1
  863. package/dist/_chunks/tr-u4e0KNRe.js +0 -785
  864. package/dist/_chunks/tr-u4e0KNRe.js.map +0 -1
  865. package/dist/_chunks/transferTokens-2uzdnbMv.js +0 -62
  866. package/dist/_chunks/transferTokens-2uzdnbMv.js.map +0 -1
  867. package/dist/_chunks/transferTokens-nEqTmvrl.mjs +0 -63
  868. package/dist/_chunks/transferTokens-nEqTmvrl.mjs.map +0 -1
  869. package/dist/_chunks/uk-5Ikxxci1.js +0 -343
  870. package/dist/_chunks/uk-5Ikxxci1.js.map +0 -1
  871. package/dist/_chunks/uk-x2flwIlG.mjs +0 -343
  872. package/dist/_chunks/uk-x2flwIlG.mjs.map +0 -1
  873. package/dist/_chunks/useAdminRoles-GDWeBZj1.js +0 -46
  874. package/dist/_chunks/useAdminRoles-GDWeBZj1.js.map +0 -1
  875. package/dist/_chunks/useAdminRoles-LDuoVSqV.mjs +0 -28
  876. package/dist/_chunks/useAdminRoles-LDuoVSqV.mjs.map +0 -1
  877. package/dist/_chunks/useContentTypes-96_zKnV_.mjs +0 -72
  878. package/dist/_chunks/useContentTypes-96_zKnV_.mjs.map +0 -1
  879. package/dist/_chunks/useContentTypes-sr3aXJbS.js +0 -90
  880. package/dist/_chunks/useContentTypes-sr3aXJbS.js.map +0 -1
  881. package/dist/_chunks/useLicenseLimitNotification-3yitZJCi.js +0 -100
  882. package/dist/_chunks/useLicenseLimitNotification-3yitZJCi.js.map +0 -1
  883. package/dist/_chunks/useLicenseLimitNotification-Tb12lIXD.mjs +0 -80
  884. package/dist/_chunks/useLicenseLimitNotification-Tb12lIXD.mjs.map +0 -1
  885. package/dist/_chunks/useReviewWorkflows-D7TMsQhe.js +0 -26
  886. package/dist/_chunks/useReviewWorkflows-D7TMsQhe.js.map +0 -1
  887. package/dist/_chunks/useReviewWorkflows-sjtDLjeH.mjs +0 -27
  888. package/dist/_chunks/useReviewWorkflows-sjtDLjeH.mjs.map +0 -1
  889. package/dist/_chunks/useWebhooks-m2S17Isk.mjs +0 -90
  890. package/dist/_chunks/useWebhooks-m2S17Isk.mjs.map +0 -1
  891. package/dist/_chunks/useWebhooks-nFFf0Nl-.js +0 -89
  892. package/dist/_chunks/useWebhooks-nFFf0Nl-.js.map +0 -1
  893. package/dist/_chunks/validateWorkflow-3iIakrPp.js +0 -1078
  894. package/dist/_chunks/validateWorkflow-3iIakrPp.js.map +0 -1
  895. package/dist/_chunks/validateWorkflow-LfwdPU9V.mjs +0 -1055
  896. package/dist/_chunks/validateWorkflow-LfwdPU9V.mjs.map +0 -1
  897. package/dist/_chunks/validation-f9rGWFeU.mjs +0 -16
  898. package/dist/_chunks/validation-f9rGWFeU.mjs.map +0 -1
  899. package/dist/_chunks/validation-j25hbp81.js +0 -34
  900. package/dist/_chunks/validation-j25hbp81.js.map +0 -1
  901. package/dist/_chunks/vi-BbeHSbqs.mjs +0 -298
  902. package/dist/_chunks/vi-BbeHSbqs.mjs.map +0 -1
  903. package/dist/_chunks/vi-SYqVl8vH.js +0 -298
  904. package/dist/_chunks/vi-SYqVl8vH.js.map +0 -1
  905. package/dist/_chunks/watch-PcSCwy4F.mjs +0 -129
  906. package/dist/_chunks/watch-PcSCwy4F.mjs.map +0 -1
  907. package/dist/_chunks/watch-VFCqBlhs.js +0 -134
  908. package/dist/_chunks/watch-VFCqBlhs.js.map +0 -1
  909. package/dist/_chunks/watch-fz6DW2ww.mjs +0 -86
  910. package/dist/_chunks/watch-fz6DW2ww.mjs.map +0 -1
  911. package/dist/_chunks/watch-n2QTrRxR.js +0 -111
  912. package/dist/_chunks/watch-n2QTrRxR.js.map +0 -1
  913. package/dist/_chunks/zh-9728QXZm.js +0 -836
  914. package/dist/_chunks/zh-9728QXZm.js.map +0 -1
  915. package/dist/_chunks/zh-Hans-SHNzD0Zk.js +0 -957
  916. package/dist/_chunks/zh-Hans-SHNzD0Zk.js.map +0 -1
  917. package/dist/_chunks/zh-Hans-eY3IWdFB.mjs +0 -957
  918. package/dist/_chunks/zh-Hans-eY3IWdFB.mjs.map +0 -1
  919. package/dist/_chunks/zh-cZop7tV1.mjs +0 -836
  920. package/dist/_chunks/zh-cZop7tV1.mjs.map +0 -1
@@ -0,0 +1,2011 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import React__default, { useMemo } from "react";
4
+ import { Flex, Box, BaseCheckbox, Typography, Button, ModalLayout, ModalHeader, ModalBody, ModalFooter, MultiSelectNested, Accordion, AccordionToggle, AccordionContent, Checkbox, Grid, GridItem, TabGroup, Tabs, Tab, TabPanels, TabPanel } from "@strapi/design-system";
5
+ import { difference } from "@strapi/helper-plugin";
6
+ import produce from "immer";
7
+ import cloneDeep from "lodash/cloneDeep";
8
+ import get from "lodash/get";
9
+ import has from "lodash/has";
10
+ import isEmpty from "lodash/isEmpty";
11
+ import set from "lodash/set";
12
+ import { useIntl } from "react-intl";
13
+ import { F as isObject } from "./index-Cwr9u7_W.mjs";
14
+ import { createContext } from "@radix-ui/react-context";
15
+ import merge from "lodash/merge";
16
+ import groupBy from "lodash/groupBy";
17
+ import omit from "lodash/omit";
18
+ import styled, { css } from "styled-components";
19
+ import { CarretDown, Cog, ChevronUp, ChevronDown } from "@strapi/icons";
20
+ import { Breadcrumbs, Crumb } from "@strapi/design-system/v2";
21
+ import upperFirst from "lodash/upperFirst";
22
+ const [PermissionsDataManagerProvider, usePermissionsDataManagerContext] = createContext("PermissionsDataManager");
23
+ const usePermissionsDataManager = () => usePermissionsDataManagerContext("usePermissionsDataManager");
24
+ const flattenDeep = (array) => {
25
+ if (Array.isArray(array)) {
26
+ return array.reduce((acc, value) => {
27
+ if (Array.isArray(value)) {
28
+ acc.push(...flattenDeep(value));
29
+ } else {
30
+ acc.push(value);
31
+ }
32
+ return acc;
33
+ }, []);
34
+ } else {
35
+ return [];
36
+ }
37
+ };
38
+ const createArrayOfValues = (obj) => {
39
+ if (!isObject(obj)) {
40
+ return [];
41
+ }
42
+ return flattenDeep(
43
+ Object.values(obj).map((value) => {
44
+ if (isObject(value)) {
45
+ return createArrayOfValues(value);
46
+ }
47
+ return value;
48
+ })
49
+ );
50
+ };
51
+ const findMatchingPermission = (permissions, action, subject) => permissions.find((perm) => perm.action === action && perm.subject === subject);
52
+ const formatPermissionsForAPI = (modifiedData) => {
53
+ const pluginsPermissions = formatSettingsPermissions(modifiedData.plugins);
54
+ const settingsPermissions = formatSettingsPermissions(modifiedData.settings);
55
+ const collectionTypesPermissions = formatContentTypesPermissions(modifiedData.collectionTypes);
56
+ const singleTypesPermissions = formatContentTypesPermissions(modifiedData.singleTypes);
57
+ return [
58
+ ...pluginsPermissions,
59
+ ...settingsPermissions,
60
+ ...collectionTypesPermissions,
61
+ ...singleTypesPermissions
62
+ ];
63
+ };
64
+ const formatSettingsPermissions = (settingsPermissionsObject) => {
65
+ return Object.values(settingsPermissionsObject).reduce((formAcc, form) => {
66
+ const currentCategoryPermissions = Object.values(form).reduce(
67
+ (childFormAcc, childForm) => {
68
+ const permissions = Object.entries(childForm).reduce(
69
+ (responsesAcc, [
70
+ actionName,
71
+ {
72
+ conditions,
73
+ properties: { enabled }
74
+ }
75
+ ]) => {
76
+ if (!enabled) {
77
+ return responsesAcc;
78
+ }
79
+ responsesAcc.push({
80
+ action: actionName,
81
+ subject: null,
82
+ conditions: createConditionsArray(conditions),
83
+ properties: {}
84
+ });
85
+ return responsesAcc;
86
+ },
87
+ []
88
+ );
89
+ return [...childFormAcc, ...permissions];
90
+ },
91
+ []
92
+ );
93
+ return [...formAcc, ...currentCategoryPermissions];
94
+ }, []);
95
+ };
96
+ const formatContentTypesPermissions = (contentTypesPermissions) => {
97
+ const permissions = Object.entries(contentTypesPermissions).reduce(
98
+ (allPermissions, current) => {
99
+ const [subject, currentSubjectActions] = current;
100
+ const permissions2 = Object.entries(currentSubjectActions).reduce(
101
+ (acc, current2) => {
102
+ const [actionName, permissions3] = current2;
103
+ const shouldCreatePermission = createArrayOfValues(permissions3).some((val) => val);
104
+ if (!shouldCreatePermission) {
105
+ return acc;
106
+ }
107
+ if (!permissions3?.properties?.enabled) {
108
+ const createdPermissionsArray = Object.entries(permissions3.properties).reduce(
109
+ (acc2, current3) => {
110
+ const [propertyName, propertyValue] = current3;
111
+ acc2.properties[propertyName] = createPropertyArray(propertyValue);
112
+ return acc2;
113
+ },
114
+ {
115
+ action: actionName,
116
+ subject,
117
+ conditions: createConditionsArray(permissions3.conditions),
118
+ properties: {}
119
+ }
120
+ );
121
+ return [...acc, createdPermissionsArray];
122
+ }
123
+ if (!permissions3.properties.enabled) {
124
+ return acc;
125
+ }
126
+ acc.push({
127
+ action: actionName,
128
+ subject,
129
+ properties: {},
130
+ conditions: createConditionsArray(permissions3.conditions)
131
+ });
132
+ return acc;
133
+ },
134
+ []
135
+ );
136
+ return [...allPermissions, ...permissions2];
137
+ },
138
+ []
139
+ );
140
+ return permissions;
141
+ };
142
+ const createPropertyArray = (propertyValue, prefix = "") => {
143
+ return Object.entries(propertyValue).reduce((acc, current) => {
144
+ const [name, value] = current;
145
+ if (isObject(value)) {
146
+ return [...acc, ...createPropertyArray(value, `${prefix}${name}.`)];
147
+ }
148
+ if (value && !isObject(value)) {
149
+ acc.push(`${prefix}${name}`);
150
+ }
151
+ return acc;
152
+ }, []);
153
+ };
154
+ const createConditionsArray = (conditions) => Object.entries(conditions).filter(([, conditionValue]) => {
155
+ return conditionValue;
156
+ }).map(([conditionName]) => conditionName);
157
+ const createDefaultConditionsForm$1 = (conditions, initialConditions = []) => conditions.reduce((acc, current) => {
158
+ acc[current.id] = initialConditions.indexOf(current.id) !== -1;
159
+ return acc;
160
+ }, {});
161
+ const createDefaultForm = (layout, conditions, initialPermissions = []) => {
162
+ return layout.reduce((acc, { categoryId, childrenForm }) => {
163
+ const childrenDefaultForm = childrenForm.reduce((acc2, current) => {
164
+ acc2[current.subCategoryId] = current.actions.reduce((acc3, current2) => {
165
+ const foundMatchingPermission = findMatchingPermission(
166
+ initialPermissions,
167
+ current2.action,
168
+ null
169
+ );
170
+ acc3[current2.action] = {
171
+ properties: {
172
+ enabled: foundMatchingPermission !== void 0
173
+ },
174
+ conditions: createDefaultConditionsForm$1(
175
+ conditions,
176
+ foundMatchingPermission?.conditions ?? []
177
+ )
178
+ };
179
+ return acc3;
180
+ }, {});
181
+ return acc2;
182
+ }, {});
183
+ acc[categoryId] = childrenDefaultForm;
184
+ return acc;
185
+ }, {});
186
+ };
187
+ const createDefaultPropertiesForm = (properties, subject, matchingPermission) => {
188
+ const recursivelyCreatePropertyForm = ({ children = [] }, propertyValues, prefix = "") => {
189
+ return children.reduce((acc, current) => {
190
+ if (current.children) {
191
+ return {
192
+ ...acc,
193
+ [current.value]: recursivelyCreatePropertyForm(
194
+ current,
195
+ propertyValues,
196
+ `${prefix}${current.value}.`
197
+ )
198
+ };
199
+ }
200
+ const hasProperty = propertyValues.indexOf(`${prefix}${current.value}`) !== -1;
201
+ acc[current.value] = hasProperty;
202
+ return acc;
203
+ }, {});
204
+ };
205
+ return properties.reduce(
206
+ (acc, currentPropertyName) => {
207
+ const foundProperty = subject.properties.find(({ value }) => value === currentPropertyName);
208
+ if (foundProperty) {
209
+ const matchingPermissionPropertyValues = matchingPermission?.properties[foundProperty.value] ?? [];
210
+ const propertyForm = recursivelyCreatePropertyForm(
211
+ foundProperty,
212
+ matchingPermissionPropertyValues
213
+ );
214
+ acc.properties[currentPropertyName] = propertyForm;
215
+ }
216
+ return acc;
217
+ },
218
+ { properties: {} }
219
+ );
220
+ };
221
+ const createDefaultCTForm = ({ subjects, actions = [] }, conditions, initialPermissions = []) => {
222
+ return actions.reduce((defaultForm, action) => {
223
+ const subjectLayouts = action.subjects.reduce((acc, current) => {
224
+ const foundLayout = subjects.find(({ uid }) => uid === current) || null;
225
+ if (foundLayout) {
226
+ acc[current] = foundLayout;
227
+ }
228
+ return acc;
229
+ }, {});
230
+ if (isEmpty(subjectLayouts)) {
231
+ return defaultForm;
232
+ }
233
+ const contentTypesActions = Object.keys(subjectLayouts).reduce((acc, currentCTUID) => {
234
+ const { actionId, applyToProperties } = action;
235
+ const currentSubjectLayout = subjectLayouts[currentCTUID];
236
+ const properties = currentSubjectLayout.properties.map(({ value }) => value);
237
+ const doesNothaveProperty = properties.every(
238
+ (property) => (applyToProperties || []).indexOf(property) === -1
239
+ );
240
+ const matchingPermission = findMatchingPermission(initialPermissions, actionId, currentCTUID);
241
+ const conditionsForm = createDefaultConditionsForm$1(
242
+ conditions,
243
+ matchingPermission?.conditions ?? []
244
+ );
245
+ if (!acc[currentCTUID]) {
246
+ acc[currentCTUID] = {};
247
+ }
248
+ if (isEmpty(applyToProperties) || doesNothaveProperty) {
249
+ acc[currentCTUID][actionId] = {
250
+ properties: {
251
+ enabled: matchingPermission !== void 0
252
+ },
253
+ conditions: conditionsForm
254
+ };
255
+ return acc;
256
+ }
257
+ const propertiesForm = createDefaultPropertiesForm(
258
+ applyToProperties,
259
+ subjectLayouts[currentCTUID],
260
+ matchingPermission
261
+ );
262
+ acc[currentCTUID][actionId] = { ...propertiesForm, conditions: conditionsForm };
263
+ return acc;
264
+ }, {});
265
+ return merge(defaultForm, contentTypesActions);
266
+ }, {});
267
+ };
268
+ const formatLayout = (layout, groupByKey) => {
269
+ return Object.entries(groupBy(layout, groupByKey)).map(([itemName, item]) => ({
270
+ category: itemName,
271
+ categoryId: itemName.split(" ").join("-"),
272
+ childrenForm: Object.entries(groupBy(item, "subCategory")).map(
273
+ ([subCategoryName, actions]) => ({
274
+ subCategoryName,
275
+ subCategoryId: subCategoryName.split(" ").join("-"),
276
+ actions
277
+ })
278
+ )
279
+ }));
280
+ };
281
+ const updateConditionsToFalse = (obj) => {
282
+ return Object.keys(obj).reduce((acc, current) => {
283
+ const currentValue = obj[current];
284
+ if (isObject(currentValue) && !has(currentValue, "conditions")) {
285
+ return { ...acc, [current]: updateConditionsToFalse(currentValue) };
286
+ }
287
+ if (isObject(currentValue) && has(currentValue, "conditions")) {
288
+ const isActionEnabled = createArrayOfValues(omit(currentValue, "conditions")).some(
289
+ (val) => val
290
+ );
291
+ if (!isActionEnabled) {
292
+ const updatedConditions = Object.keys(currentValue.conditions).reduce((acc1, current2) => {
293
+ acc1[current2] = false;
294
+ return acc1;
295
+ }, {});
296
+ return { ...acc, [current]: { ...currentValue, conditions: updatedConditions } };
297
+ }
298
+ }
299
+ acc[current] = currentValue;
300
+ return acc;
301
+ }, {});
302
+ };
303
+ const updateValues = (obj, valueToSet, isFieldUpdate = false) => {
304
+ return Object.keys(obj).reduce((acc, current) => {
305
+ const currentValue = obj[current];
306
+ if (current === "conditions" && !isFieldUpdate) {
307
+ acc[current] = currentValue;
308
+ return acc;
309
+ }
310
+ if (isObject(currentValue)) {
311
+ return { ...acc, [current]: updateValues(currentValue, valueToSet, current === "fields") };
312
+ }
313
+ acc[current] = valueToSet;
314
+ return acc;
315
+ }, {});
316
+ };
317
+ const cellWidth = `${120 / 16}rem`;
318
+ const firstRowWidth = `${200 / 16}rem`;
319
+ const rowHeight = `${53 / 16}rem`;
320
+ const removeConditionKeyFromData = (obj) => {
321
+ if (!obj) {
322
+ return null;
323
+ }
324
+ return Object.entries(obj).reduce((acc, [key, value]) => {
325
+ if (key !== "conditions") {
326
+ acc[key] = value;
327
+ }
328
+ return acc;
329
+ }, {});
330
+ };
331
+ const getCheckboxState = (dataObj) => {
332
+ const dataWithoutCondition = removeConditionKeyFromData(dataObj);
333
+ const arrayOfValues = createArrayOfValues(dataWithoutCondition);
334
+ if (!arrayOfValues.length) {
335
+ return { hasAllActionsSelected: false, hasSomeActionsSelected: false };
336
+ }
337
+ const hasAllActionsSelected = arrayOfValues.every((val) => val);
338
+ const hasSomeActionsSelected = arrayOfValues.some((val) => val) && !hasAllActionsSelected;
339
+ return { hasAllActionsSelected, hasSomeActionsSelected };
340
+ };
341
+ const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
342
+ const CollapseLabel = styled(Flex)`
343
+ padding-right: ${({ theme }) => theme.spaces[2]};
344
+ overflow: hidden;
345
+ flex: 1;
346
+ ${({ isCollapsable }) => isCollapsable && "cursor: pointer;"}
347
+ `;
348
+ const HiddenAction = styled.div`
349
+ width: ${cellWidth};
350
+ `;
351
+ const RequiredSign = () => /* @__PURE__ */ jsx(Box, { color: "danger700", paddingLeft: 1, children: "*" });
352
+ const RowLabelWithCheckbox = ({
353
+ checkboxName = "",
354
+ children,
355
+ isActive = false,
356
+ isCollapsable = false,
357
+ isFormDisabled = false,
358
+ label,
359
+ onChange,
360
+ onClick,
361
+ someChecked = false,
362
+ value
363
+ }) => {
364
+ const { formatMessage } = useIntl();
365
+ return /* @__PURE__ */ jsxs(Flex, { alignItems: "center", paddingLeft: 6, width: firstRowWidth, shrink: 0, children: [
366
+ /* @__PURE__ */ jsx(Box, { paddingRight: 2, children: /* @__PURE__ */ jsx(
367
+ BaseCheckbox,
368
+ {
369
+ name: checkboxName,
370
+ "aria-label": formatMessage(
371
+ {
372
+ id: `Settings.permissions.select-all-by-permission`,
373
+ defaultMessage: "Select all {label} permissions"
374
+ },
375
+ { label }
376
+ ),
377
+ disabled: isFormDisabled,
378
+ onValueChange: (value2) => onChange({
379
+ target: {
380
+ name: checkboxName,
381
+ value: value2
382
+ }
383
+ }),
384
+ indeterminate: someChecked,
385
+ value
386
+ }
387
+ ) }),
388
+ /* @__PURE__ */ jsxs(
389
+ CollapseLabel,
390
+ {
391
+ title: label,
392
+ alignItems: "center",
393
+ isCollapsable,
394
+ ...isCollapsable && {
395
+ onClick,
396
+ "aria-expanded": isActive,
397
+ onKeyDown: ({ key }) => (key === "Enter" || key === " ") && onClick(),
398
+ tabIndex: 0,
399
+ role: "button"
400
+ },
401
+ children: [
402
+ /* @__PURE__ */ jsx(
403
+ Typography,
404
+ {
405
+ fontWeight: isActive ? "bold" : void 0,
406
+ textColor: isActive ? "primary600" : "neutral800",
407
+ ellipsis: true,
408
+ children: capitalise(label)
409
+ }
410
+ ),
411
+ children
412
+ ]
413
+ }
414
+ )
415
+ ] });
416
+ };
417
+ const CollapsePropertyMatrix = ({
418
+ availableActions = [],
419
+ childrenForm = [],
420
+ isFormDisabled,
421
+ label,
422
+ pathToData,
423
+ propertyName
424
+ }) => {
425
+ const propertyActions = useMemo(
426
+ () => availableActions.map((action) => {
427
+ const isActionRelatedToCurrentProperty = Array.isArray(action.applyToProperties) && action.applyToProperties.indexOf(propertyName) !== -1 && action.isDisplayed;
428
+ return { label: action.label, actionId: action.actionId, isActionRelatedToCurrentProperty };
429
+ }),
430
+ [availableActions, propertyName]
431
+ );
432
+ return /* @__PURE__ */ jsxs(Flex, { display: "inline-flex", direction: "column", minWidth: 0, children: [
433
+ /* @__PURE__ */ jsx(Header, { label, headers: propertyActions }),
434
+ /* @__PURE__ */ jsx(Box, { children: childrenForm.map(({ children: childrenForm2, label: label2, value, required }, i) => /* @__PURE__ */ jsx(
435
+ ActionRow$1,
436
+ {
437
+ childrenForm: childrenForm2,
438
+ label: label2,
439
+ isFormDisabled,
440
+ name: value,
441
+ required,
442
+ propertyActions,
443
+ pathToData,
444
+ propertyName,
445
+ isOdd: i % 2 === 0
446
+ },
447
+ value
448
+ )) })
449
+ ] });
450
+ };
451
+ const ActionRow$1 = ({
452
+ childrenForm = [],
453
+ label,
454
+ isFormDisabled = false,
455
+ name,
456
+ required = false,
457
+ pathToData,
458
+ propertyActions,
459
+ propertyName,
460
+ isOdd = false
461
+ }) => {
462
+ const { formatMessage } = useIntl();
463
+ const [rowToOpen, setRowToOpen] = React__default.useState(null);
464
+ const {
465
+ modifiedData,
466
+ onChangeCollectionTypeLeftActionRowCheckbox,
467
+ onChangeParentCheckbox,
468
+ onChangeSimpleCheckbox
469
+ } = usePermissionsDataManager();
470
+ const isActive = rowToOpen === name;
471
+ const recursiveChildren = useMemo(() => {
472
+ if (!Array.isArray(childrenForm)) {
473
+ return [];
474
+ }
475
+ return childrenForm;
476
+ }, [childrenForm]);
477
+ const isCollapsable = recursiveChildren.length > 0;
478
+ const handleClick = React__default.useCallback(() => {
479
+ if (isCollapsable) {
480
+ setRowToOpen((prev) => {
481
+ if (prev === name) {
482
+ return null;
483
+ }
484
+ return name;
485
+ });
486
+ }
487
+ }, [isCollapsable, name]);
488
+ const handleChangeLeftRowCheckbox = ({
489
+ target: { value }
490
+ }) => {
491
+ onChangeCollectionTypeLeftActionRowCheckbox(pathToData, propertyName, name, value);
492
+ };
493
+ const { hasAllActionsSelected, hasSomeActionsSelected } = useMemo(() => {
494
+ return getRowLabelCheckboxState(propertyActions, modifiedData, pathToData, propertyName, name);
495
+ }, [propertyActions, modifiedData, pathToData, propertyName, name]);
496
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
497
+ /* @__PURE__ */ jsx(
498
+ Wrapper$1,
499
+ {
500
+ alignItems: "center",
501
+ isCollapsable,
502
+ isActive,
503
+ background: isOdd ? "neutral100" : "neutral0",
504
+ children: /* @__PURE__ */ jsxs(Flex, { children: [
505
+ /* @__PURE__ */ jsxs(
506
+ RowLabelWithCheckbox,
507
+ {
508
+ onChange: handleChangeLeftRowCheckbox,
509
+ onClick: handleClick,
510
+ isCollapsable,
511
+ isFormDisabled,
512
+ label,
513
+ someChecked: hasSomeActionsSelected,
514
+ value: hasAllActionsSelected,
515
+ isActive,
516
+ children: [
517
+ required && /* @__PURE__ */ jsx(RequiredSign, {}),
518
+ /* @__PURE__ */ jsx(CarretIcon, { $isActive: isActive })
519
+ ]
520
+ }
521
+ ),
522
+ /* @__PURE__ */ jsx(Flex, { children: propertyActions.map(({ label: label2, isActionRelatedToCurrentProperty, actionId }) => {
523
+ if (!isActionRelatedToCurrentProperty) {
524
+ return /* @__PURE__ */ jsx(HiddenAction, {}, label2);
525
+ }
526
+ const checkboxName = [
527
+ ...pathToData.split(".."),
528
+ actionId,
529
+ "properties",
530
+ propertyName,
531
+ name
532
+ ];
533
+ if (!isCollapsable) {
534
+ const checkboxValue = get(modifiedData, checkboxName, false);
535
+ return /* @__PURE__ */ jsx(
536
+ Flex,
537
+ {
538
+ width: cellWidth,
539
+ position: "relative",
540
+ justifyContent: "center",
541
+ alignItems: "center",
542
+ children: /* @__PURE__ */ jsx(
543
+ BaseCheckbox,
544
+ {
545
+ disabled: isFormDisabled,
546
+ name: checkboxName.join(".."),
547
+ "aria-label": formatMessage(
548
+ {
549
+ id: `Settings.permissions.select-by-permission`,
550
+ defaultMessage: "Select {label} permission"
551
+ },
552
+ { label: `${name} ${label2}` }
553
+ ),
554
+ onValueChange: (value) => {
555
+ onChangeSimpleCheckbox({
556
+ target: {
557
+ name: checkboxName.join(".."),
558
+ value
559
+ }
560
+ });
561
+ },
562
+ value: checkboxValue
563
+ }
564
+ )
565
+ },
566
+ actionId
567
+ );
568
+ }
569
+ const data = get(modifiedData, checkboxName, {});
570
+ const { hasAllActionsSelected: hasAllActionsSelected2, hasSomeActionsSelected: hasSomeActionsSelected2 } = getCheckboxState(data);
571
+ return /* @__PURE__ */ jsx(
572
+ Flex,
573
+ {
574
+ width: cellWidth,
575
+ position: "relative",
576
+ justifyContent: "center",
577
+ alignItems: "center",
578
+ children: /* @__PURE__ */ jsx(
579
+ BaseCheckbox,
580
+ {
581
+ disabled: isFormDisabled,
582
+ name: checkboxName.join(".."),
583
+ onValueChange: (value) => {
584
+ onChangeParentCheckbox({
585
+ target: {
586
+ name: checkboxName.join(".."),
587
+ value
588
+ }
589
+ });
590
+ },
591
+ "aria-label": formatMessage(
592
+ {
593
+ id: `Settings.permissions.select-by-permission`,
594
+ defaultMessage: "Select {label} permission"
595
+ },
596
+ { label: `${name} ${label2}` }
597
+ ),
598
+ value: hasAllActionsSelected2,
599
+ indeterminate: hasSomeActionsSelected2
600
+ }
601
+ )
602
+ },
603
+ label2
604
+ );
605
+ }) })
606
+ ] })
607
+ }
608
+ ),
609
+ isActive && /* @__PURE__ */ jsx(
610
+ SubActionRow,
611
+ {
612
+ childrenForm: recursiveChildren,
613
+ isFormDisabled,
614
+ parentName: name,
615
+ pathToDataFromActionRow: pathToData,
616
+ propertyName,
617
+ propertyActions,
618
+ recursiveLevel: 0
619
+ }
620
+ )
621
+ ] });
622
+ };
623
+ const getRowLabelCheckboxState = (propertyActions, modifiedData, pathToContentType, propertyToCheck, targetKey) => {
624
+ const actionIds = propertyActions.reduce((acc, current) => {
625
+ if (current.isActionRelatedToCurrentProperty) {
626
+ acc.push(current.actionId);
627
+ }
628
+ return acc;
629
+ }, []);
630
+ const data = actionIds.reduce((acc, current) => {
631
+ const mainData = get(
632
+ modifiedData,
633
+ [...pathToContentType.split(".."), current, "properties", propertyToCheck, targetKey],
634
+ false
635
+ );
636
+ acc[current] = mainData;
637
+ return acc;
638
+ }, {});
639
+ return getCheckboxState(data);
640
+ };
641
+ const Wrapper$1 = styled(Flex)`
642
+ height: ${rowHeight};
643
+ flex: 1;
644
+
645
+ ${({ isCollapsable, theme }) => isCollapsable && `
646
+ ${CarretIcon} {
647
+ display: block;
648
+ color: ${theme.colors.neutral100};
649
+ }
650
+ &:hover {
651
+ ${activeStyle(theme)}
652
+ }
653
+ `}
654
+ ${({ isActive, theme }) => isActive && activeStyle(theme)};
655
+ `;
656
+ const CarretIcon = styled(CarretDown)`
657
+ display: none;
658
+ width: ${10 / 16}rem;
659
+ transform: rotate(${({ $isActive }) => $isActive ? "180" : "0"}deg);
660
+ margin-left: ${({ theme }) => theme.spaces[2]};
661
+ `;
662
+ const SubActionRow = ({
663
+ childrenForm = [],
664
+ isFormDisabled,
665
+ recursiveLevel,
666
+ pathToDataFromActionRow,
667
+ propertyActions,
668
+ parentName,
669
+ propertyName
670
+ }) => {
671
+ const { formatMessage } = useIntl();
672
+ const { modifiedData, onChangeParentCheckbox, onChangeSimpleCheckbox } = usePermissionsDataManager();
673
+ const [rowToOpen, setRowToOpen] = React__default.useState(null);
674
+ const handleClickToggleSubLevel = (name) => {
675
+ setRowToOpen((prev) => {
676
+ if (prev === name) {
677
+ return null;
678
+ }
679
+ return name;
680
+ });
681
+ };
682
+ const displayedRecursiveChildren = useMemo(() => {
683
+ if (!rowToOpen) {
684
+ return null;
685
+ }
686
+ return childrenForm.find(({ value }) => value === rowToOpen);
687
+ }, [rowToOpen, childrenForm]);
688
+ return /* @__PURE__ */ jsxs(Box, { paddingLeft: `2rem`, children: [
689
+ /* @__PURE__ */ jsx(TopTimeline, {}),
690
+ childrenForm.map(({ label, value, required, children: subChildrenForm }, index) => {
691
+ const isVisible = index + 1 < childrenForm.length;
692
+ const isArrayType = Array.isArray(subChildrenForm);
693
+ const isActive = rowToOpen === value;
694
+ return /* @__PURE__ */ jsxs(LeftBorderTimeline, { isVisible, children: [
695
+ /* @__PURE__ */ jsxs(Flex, { height: rowHeight, children: [
696
+ /* @__PURE__ */ jsx(StyledBox$1, { children: /* @__PURE__ */ jsx(
697
+ Svg,
698
+ {
699
+ width: "20",
700
+ height: "23",
701
+ viewBox: "0 0 20 23",
702
+ fill: "none",
703
+ xmlns: "http://www.w3.org/2000/svg",
704
+ color: "primary200",
705
+ children: /* @__PURE__ */ jsx(
706
+ "path",
707
+ {
708
+ fillRule: "evenodd",
709
+ clipRule: "evenodd",
710
+ 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",
711
+ fill: "#D9D8FF"
712
+ }
713
+ )
714
+ }
715
+ ) }),
716
+ /* @__PURE__ */ jsxs(Flex, { style: { flex: 1 }, children: [
717
+ /* @__PURE__ */ jsx(RowStyle, { level: recursiveLevel, isActive, isCollapsable: isArrayType, children: /* @__PURE__ */ jsxs(
718
+ CollapseLabel,
719
+ {
720
+ alignItems: "center",
721
+ isCollapsable: isArrayType,
722
+ ...isArrayType && {
723
+ onClick: () => handleClickToggleSubLevel(value),
724
+ "aria-expanded": isActive,
725
+ onKeyDown: ({ key }) => (key === "Enter" || key === " ") && handleClickToggleSubLevel(value),
726
+ tabIndex: 0,
727
+ role: "button"
728
+ },
729
+ title: label,
730
+ children: [
731
+ /* @__PURE__ */ jsx(Typography, { ellipsis: true, children: capitalise(label) }),
732
+ required && /* @__PURE__ */ jsx(RequiredSign, {}),
733
+ /* @__PURE__ */ jsx(CarretIcon, { $isActive: isActive })
734
+ ]
735
+ }
736
+ ) }),
737
+ /* @__PURE__ */ jsx(Flex, { style: { flex: 1 }, children: propertyActions.map(
738
+ ({ actionId, label: propertyLabel, isActionRelatedToCurrentProperty }) => {
739
+ if (!isActionRelatedToCurrentProperty) {
740
+ return /* @__PURE__ */ jsx(HiddenAction, {}, actionId);
741
+ }
742
+ const checkboxName = [
743
+ ...pathToDataFromActionRow.split(".."),
744
+ actionId,
745
+ "properties",
746
+ propertyName,
747
+ ...parentName.split(".."),
748
+ value
749
+ ];
750
+ const checkboxValue = get(modifiedData, checkboxName, false);
751
+ if (!subChildrenForm) {
752
+ return /* @__PURE__ */ jsx(
753
+ Flex,
754
+ {
755
+ position: "relative",
756
+ width: cellWidth,
757
+ justifyContent: "center",
758
+ alignItems: "center",
759
+ children: /* @__PURE__ */ jsx(
760
+ BaseCheckbox,
761
+ {
762
+ disabled: isFormDisabled,
763
+ name: checkboxName.join(".."),
764
+ "aria-label": formatMessage(
765
+ {
766
+ id: `Settings.permissions.select-by-permission`,
767
+ defaultMessage: "Select {label} permission"
768
+ },
769
+ { label: `${parentName} ${label} ${propertyLabel}` }
770
+ ),
771
+ onValueChange: (value2) => {
772
+ onChangeSimpleCheckbox({
773
+ target: {
774
+ name: checkboxName.join(".."),
775
+ value: value2
776
+ }
777
+ });
778
+ },
779
+ value: checkboxValue
780
+ }
781
+ )
782
+ },
783
+ propertyLabel
784
+ );
785
+ }
786
+ const { hasAllActionsSelected, hasSomeActionsSelected } = getCheckboxState(checkboxValue);
787
+ return /* @__PURE__ */ jsx(
788
+ Flex,
789
+ {
790
+ position: "relative",
791
+ width: cellWidth,
792
+ justifyContent: "center",
793
+ alignItems: "center",
794
+ children: /* @__PURE__ */ jsx(
795
+ BaseCheckbox,
796
+ {
797
+ disabled: isFormDisabled,
798
+ name: checkboxName.join(".."),
799
+ "aria-label": formatMessage(
800
+ {
801
+ id: `Settings.permissions.select-by-permission`,
802
+ defaultMessage: "Select {label} permission"
803
+ },
804
+ { label: `${parentName} ${label} ${propertyLabel}` }
805
+ ),
806
+ onValueChange: (value2) => {
807
+ onChangeParentCheckbox({
808
+ target: {
809
+ name: checkboxName.join(".."),
810
+ value: value2
811
+ }
812
+ });
813
+ },
814
+ value: hasAllActionsSelected,
815
+ indeterminate: hasSomeActionsSelected
816
+ },
817
+ propertyLabel
818
+ )
819
+ },
820
+ propertyLabel
821
+ );
822
+ }
823
+ ) })
824
+ ] })
825
+ ] }),
826
+ displayedRecursiveChildren && isActive && /* @__PURE__ */ jsx(Box, { paddingBottom: 2, children: /* @__PURE__ */ jsx(
827
+ SubActionRow,
828
+ {
829
+ isFormDisabled,
830
+ parentName: `${parentName}..${value}`,
831
+ pathToDataFromActionRow,
832
+ propertyActions,
833
+ propertyName,
834
+ recursiveLevel: recursiveLevel + 1,
835
+ childrenForm: displayedRecursiveChildren.children
836
+ }
837
+ ) })
838
+ ] }, value);
839
+ })
840
+ ] });
841
+ };
842
+ const LeftBorderTimeline = styled(Box)`
843
+ border-left: ${({ isVisible, theme }) => isVisible ? `4px solid ${theme.colors.primary200}` : "4px solid transparent"};
844
+ `;
845
+ const RowStyle = styled(Flex)`
846
+ padding-left: ${({ theme }) => theme.spaces[4]};
847
+ width: ${({ level }) => 145 - level * 36}px;
848
+
849
+ ${({ isCollapsable, theme }) => isCollapsable && `
850
+ ${CarretIcon} {
851
+ display: block;
852
+ color: ${theme.colors.neutral100};
853
+ }
854
+ &:hover {
855
+ ${activeStyle(theme)}
856
+ }
857
+ `}
858
+ ${({ isActive, theme }) => isActive && activeStyle(theme)};
859
+ `;
860
+ const TopTimeline = styled.div`
861
+ padding-top: ${({ theme }) => theme.spaces[2]};
862
+ margin-top: ${({ theme }) => theme.spaces[2]};
863
+ width: ${4 / 16}rem;
864
+ background-color: ${({ theme }) => theme.colors.primary200};
865
+ border-top-left-radius: 2px;
866
+ border-top-right-radius: 2px;
867
+ `;
868
+ const StyledBox$1 = styled(Box)`
869
+ transform: translate(-4px, -12px);
870
+
871
+ &:before {
872
+ content: '';
873
+ width: ${4 / 16}rem;
874
+ height: ${12 / 16}rem;
875
+ background: ${({ theme }) => theme.colors.primary200};
876
+ display: block;
877
+ }
878
+ `;
879
+ const Svg = styled.svg`
880
+ position: relative;
881
+ flex-shrink: 0;
882
+ transform: translate(-0.5px, -1px);
883
+
884
+ * {
885
+ fill: ${({ theme, color }) => theme.colors[color]};
886
+ }
887
+ `;
888
+ const Header = ({ headers = [], label }) => {
889
+ const { formatMessage } = useIntl();
890
+ return /* @__PURE__ */ jsxs(Flex, { children: [
891
+ /* @__PURE__ */ jsx(Flex, { width: firstRowWidth, height: rowHeight, shrink: 0, alignItems: "center", paddingLeft: 6, children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral500", children: formatMessage(
892
+ {
893
+ id: "Settings.roles.form.permission.property-label",
894
+ defaultMessage: "{label} permissions"
895
+ },
896
+ { label }
897
+ ) }) }),
898
+ headers.map((header) => {
899
+ if (!header.isActionRelatedToCurrentProperty) {
900
+ return /* @__PURE__ */ jsx(Flex, { width: cellWidth, shrink: 0 }, header.label);
901
+ }
902
+ return /* @__PURE__ */ jsx(Flex, { width: cellWidth, shrink: 0, justifyContent: "center", children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral500", children: formatMessage({
903
+ id: `Settings.roles.form.permissions.${header.label.toLowerCase()}`,
904
+ defaultMessage: header.label
905
+ }) }) }, header.label);
906
+ })
907
+ ] });
908
+ };
909
+ const activeStyle = (theme) => css`
910
+ ${Typography} {
911
+ color: ${theme.colors.primary600};
912
+ font-weight: ${theme.fontWeights.bold};
913
+ }
914
+ ${CarretIcon} {
915
+ display: block;
916
+
917
+ path {
918
+ fill: ${theme.colors.primary600};
919
+ }
920
+ }
921
+ `;
922
+ const ConditionsButtonImpl = ({
923
+ onClick,
924
+ className,
925
+ hasConditions = false,
926
+ variant = "tertiary"
927
+ }) => {
928
+ const { formatMessage } = useIntl();
929
+ return /* @__PURE__ */ jsx(ButtonContainer, { hasConditions, className, children: /* @__PURE__ */ jsx(Button, { variant, startIcon: /* @__PURE__ */ jsx(Cog, {}), onClick, children: formatMessage({
930
+ id: "global.settings",
931
+ defaultMessage: "Settings"
932
+ }) }) });
933
+ };
934
+ const ButtonContainer = styled(Box)`
935
+ ${({ hasConditions, disabled, theme }) => hasConditions && `
936
+ &:before {
937
+ content: '';
938
+ position: absolute;
939
+ top: -3px;
940
+ left: -10px;
941
+ width: 6px;
942
+ height: 6px;
943
+ border-radius: ${20 / 16}rem;;
944
+ background: ${disabled ? theme.colors.neutral100 : theme.colors.primary600};
945
+ }
946
+ `}
947
+ `;
948
+ const ConditionsButton = styled(ConditionsButtonImpl)``;
949
+ const ConditionsModal = ({
950
+ actions = [],
951
+ headerBreadCrumbs = [],
952
+ isFormDisabled,
953
+ onClosed,
954
+ onToggle
955
+ }) => {
956
+ const { formatMessage } = useIntl();
957
+ const { availableConditions, modifiedData, onChangeConditions } = usePermissionsDataManager();
958
+ const arrayOfOptionsGroupedByCategory = React.useMemo(() => {
959
+ return Object.entries(groupBy(availableConditions, "category"));
960
+ }, [availableConditions]);
961
+ const actionsToDisplay = actions.filter(
962
+ // @ts-expect-error – TODO: fix this type issue
963
+ ({ isDisplayed, hasSomeActionsSelected, hasAllActionsSelected }) => isDisplayed && Boolean(hasSomeActionsSelected || hasAllActionsSelected)
964
+ );
965
+ const [state, setState] = React.useState(
966
+ createDefaultConditionsForm(actionsToDisplay, modifiedData, arrayOfOptionsGroupedByCategory)
967
+ );
968
+ const handleChange = (name, values) => {
969
+ setState(
970
+ produce((draft) => {
971
+ if (!draft[name]) {
972
+ draft[name] = {};
973
+ }
974
+ if (!draft[name].default) {
975
+ draft[name].default = {};
976
+ }
977
+ draft[name].default = values;
978
+ })
979
+ );
980
+ };
981
+ const handleSubmit = () => {
982
+ const conditionsWithoutCategory = Object.entries(state).reduce(
983
+ (acc, current) => {
984
+ const [key, value] = current;
985
+ const merged = Object.values(value).reduce((acc1, current1) => {
986
+ return { ...acc1, ...current1 };
987
+ }, {});
988
+ acc[key] = merged;
989
+ return acc;
990
+ },
991
+ {}
992
+ );
993
+ onChangeConditions(conditionsWithoutCategory);
994
+ onToggle();
995
+ };
996
+ return /* @__PURE__ */ jsxs(ModalLayout, { labelledBy: "condition-modal-breadcrumbs", onClose: onClosed, children: [
997
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Breadcrumbs, { id: "condition-modal-breadcrumbs", label: headerBreadCrumbs.join(", "), children: headerBreadCrumbs.map((label, index, arr) => /* @__PURE__ */ jsx(Crumb, { isCurrent: index === arr.length - 1, children: upperFirst(
998
+ formatMessage({
999
+ id: label,
1000
+ defaultMessage: label
1001
+ })
1002
+ ) }, label)) }) }),
1003
+ /* @__PURE__ */ jsxs(ModalBody, { children: [
1004
+ actionsToDisplay.length === 0 && /* @__PURE__ */ jsx(Typography, { children: formatMessage({
1005
+ id: "Settings.permissions.conditions.no-actions",
1006
+ defaultMessage: "You first need to select actions (create, read, update, ...) before defining conditions on them."
1007
+ }) }),
1008
+ /* @__PURE__ */ jsx("ul", { children: actionsToDisplay.map(({ actionId, label, pathToConditionsObject }, index) => {
1009
+ const name = pathToConditionsObject.join("..");
1010
+ return /* @__PURE__ */ jsx(
1011
+ ActionRow,
1012
+ {
1013
+ arrayOfOptionsGroupedByCategory,
1014
+ label,
1015
+ isFormDisabled,
1016
+ isGrey: index % 2 === 0,
1017
+ name,
1018
+ onChange: handleChange,
1019
+ value: get(state, name, {})
1020
+ },
1021
+ actionId
1022
+ );
1023
+ }) })
1024
+ ] }),
1025
+ /* @__PURE__ */ jsx(
1026
+ ModalFooter,
1027
+ {
1028
+ startActions: /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: onToggle, children: formatMessage({ id: "app.components.Button.cancel", defaultMessage: "Cancel" }) }),
1029
+ endActions: /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, children: formatMessage({
1030
+ id: "Settings.permissions.conditions.apply",
1031
+ defaultMessage: "Apply"
1032
+ }) })
1033
+ }
1034
+ )
1035
+ ] });
1036
+ };
1037
+ const createDefaultConditionsForm = (actionsToDisplay, modifiedData, arrayOfOptionsGroupedByCategory) => {
1038
+ return actionsToDisplay.reduce((acc, current) => {
1039
+ const valueFromModifiedData = get(
1040
+ modifiedData,
1041
+ [...current.pathToConditionsObject, "conditions"],
1042
+ {}
1043
+ );
1044
+ const categoryDefaultForm = arrayOfOptionsGroupedByCategory.reduce((acc2, current2) => {
1045
+ const [categoryName, relatedConditions] = current2;
1046
+ const conditionsForm = relatedConditions.reduce((acc3, current3) => {
1047
+ acc3[current3.id] = get(valueFromModifiedData, current3.id, false);
1048
+ return acc3;
1049
+ }, {});
1050
+ acc2[categoryName] = conditionsForm;
1051
+ return acc2;
1052
+ }, {});
1053
+ acc[current.pathToConditionsObject.join("..")] = categoryDefaultForm;
1054
+ return acc;
1055
+ }, {});
1056
+ };
1057
+ const ActionRow = ({
1058
+ arrayOfOptionsGroupedByCategory,
1059
+ isFormDisabled = false,
1060
+ isGrey = false,
1061
+ label,
1062
+ name,
1063
+ onChange,
1064
+ value
1065
+ }) => {
1066
+ const { formatMessage } = useIntl();
1067
+ const handleChange = (val) => {
1068
+ if (onChange) {
1069
+ onChange(name, getNewStateFromChangedValues(arrayOfOptionsGroupedByCategory, val));
1070
+ }
1071
+ };
1072
+ return /* @__PURE__ */ jsxs(Flex, { as: "li", background: isGrey ? "neutral100" : "neutral0", paddingBottom: 3, paddingTop: 3, children: [
1073
+ /* @__PURE__ */ jsxs(Flex, { paddingLeft: 6, style: { width: 180 }, children: [
1074
+ /* @__PURE__ */ jsxs(Typography, { variant: "sigma", textColor: "neutral600", children: [
1075
+ formatMessage({
1076
+ id: "Settings.permissions.conditions.can",
1077
+ defaultMessage: "Can"
1078
+ }),
1079
+ " "
1080
+ ] }),
1081
+ /* @__PURE__ */ jsx(Typography, { variant: "sigma", title: label, textColor: "primary600", ellipsis: true, children: formatMessage({
1082
+ id: `Settings.roles.form.permissions.${label.toLowerCase()}`,
1083
+ defaultMessage: label
1084
+ }) }),
1085
+ /* @__PURE__ */ jsxs(Typography, { variant: "sigma", textColor: "neutral600", children: [
1086
+ " ",
1087
+ formatMessage({
1088
+ id: "Settings.permissions.conditions.when",
1089
+ defaultMessage: "When"
1090
+ })
1091
+ ] })
1092
+ ] }),
1093
+ /* @__PURE__ */ jsx(Box, { style: { maxWidth: 430, width: "100%" }, children: /* @__PURE__ */ jsx(
1094
+ MultiSelectNested,
1095
+ {
1096
+ id: name,
1097
+ customizeContent: (values = []) => `${values.length} currently selected`,
1098
+ onChange: handleChange,
1099
+ value: getSelectedValues(value),
1100
+ options: getNestedOptions(arrayOfOptionsGroupedByCategory),
1101
+ disabled: isFormDisabled
1102
+ }
1103
+ ) })
1104
+ ] });
1105
+ };
1106
+ const getSelectedValues = (rawValue) => Object.values(rawValue).map(
1107
+ (x) => Object.entries(x).filter(([, value]) => value).map(([key]) => key)
1108
+ ).flat();
1109
+ const getNestedOptions = (options) => options.reduce((acc, [label, children]) => {
1110
+ acc.push({
1111
+ label: capitalise(label),
1112
+ children: children.map((child) => ({
1113
+ label: child.displayName,
1114
+ value: child.id
1115
+ }))
1116
+ });
1117
+ return acc;
1118
+ }, []);
1119
+ const getNewStateFromChangedValues = (options, changedValues) => options.map(([, values]) => values).flat().reduce(
1120
+ (acc, curr) => ({ [curr.id]: changedValues.includes(curr.id), ...acc }),
1121
+ {}
1122
+ );
1123
+ const ContentTypeCollapses = ({
1124
+ actions = [],
1125
+ isFormDisabled,
1126
+ pathToData,
1127
+ subjects = []
1128
+ }) => {
1129
+ const [collapseToOpen, setCollapseToOpen] = React.useState(null);
1130
+ const handleClickToggleCollapse = (collapseName) => () => {
1131
+ const nextCollapseToOpen = collapseToOpen === collapseName ? null : collapseName;
1132
+ setCollapseToOpen(nextCollapseToOpen);
1133
+ };
1134
+ return /* @__PURE__ */ jsx(Fragment, { children: subjects.map(({ uid, label, properties }, index) => {
1135
+ const isActive = collapseToOpen === uid;
1136
+ const availableActions = actions.map((action) => ({
1137
+ ...action,
1138
+ isDisplayed: Array.isArray(action.subjects) && action.subjects.indexOf(uid) !== -1
1139
+ }));
1140
+ return /* @__PURE__ */ jsxs(
1141
+ Flex,
1142
+ {
1143
+ direction: "column",
1144
+ display: "inline-flex",
1145
+ minWidth: "100%",
1146
+ borderColor: "primary600",
1147
+ borderWidth: isActive ? 1 : 0,
1148
+ children: [
1149
+ /* @__PURE__ */ jsx(
1150
+ Collapse,
1151
+ {
1152
+ availableActions,
1153
+ isActive,
1154
+ isGrey: index % 2 === 0,
1155
+ isFormDisabled,
1156
+ label,
1157
+ onClickToggle: handleClickToggleCollapse(uid),
1158
+ pathToData: [pathToData, uid].join("..")
1159
+ }
1160
+ ),
1161
+ isActive && properties.map(({ label: propertyLabel, value, children: childrenForm }) => {
1162
+ return /* @__PURE__ */ jsx(
1163
+ CollapsePropertyMatrix,
1164
+ {
1165
+ availableActions,
1166
+ childrenForm,
1167
+ isFormDisabled,
1168
+ label: propertyLabel,
1169
+ pathToData: [pathToData, uid].join(".."),
1170
+ propertyName: value
1171
+ },
1172
+ value
1173
+ );
1174
+ })
1175
+ ]
1176
+ },
1177
+ uid
1178
+ );
1179
+ }) });
1180
+ };
1181
+ const Collapse = ({
1182
+ availableActions = [],
1183
+ isActive = false,
1184
+ isGrey = false,
1185
+ isFormDisabled = false,
1186
+ label,
1187
+ onClickToggle,
1188
+ pathToData
1189
+ }) => {
1190
+ const [isModalOpen, setModalOpen] = React.useState(false);
1191
+ const { formatMessage } = useIntl();
1192
+ const { modifiedData, onChangeParentCheckbox, onChangeSimpleCheckbox } = usePermissionsDataManager();
1193
+ const handleToggleModalIsOpen = () => {
1194
+ setModalOpen((s) => !s);
1195
+ };
1196
+ const handleModalClose = () => {
1197
+ setModalOpen(false);
1198
+ };
1199
+ const mainData = get(modifiedData, pathToData.split(".."), {});
1200
+ const dataWithoutCondition = React.useMemo(() => {
1201
+ return Object.keys(mainData).reduce((acc, current) => {
1202
+ acc[current] = omit(mainData[current], "conditions");
1203
+ return acc;
1204
+ }, {});
1205
+ }, [mainData]);
1206
+ const { hasAllActionsSelected, hasSomeActionsSelected } = getCheckboxState(dataWithoutCondition);
1207
+ const checkboxesActions = React.useMemo(() => {
1208
+ return generateCheckboxesActions(availableActions, modifiedData, pathToData);
1209
+ }, [availableActions, modifiedData, pathToData]);
1210
+ const doesConditionButtonHasConditions = checkboxesActions.some((action) => action.hasConditions);
1211
+ return /* @__PURE__ */ jsxs(BoxWrapper, { isActive, children: [
1212
+ /* @__PURE__ */ jsxs(
1213
+ Wrapper,
1214
+ {
1215
+ height: rowHeight,
1216
+ flex: 1,
1217
+ alignItems: "center",
1218
+ background: isGrey ? "neutral100" : "neutral0",
1219
+ children: [
1220
+ /* @__PURE__ */ jsx(
1221
+ RowLabelWithCheckbox,
1222
+ {
1223
+ isCollapsable: true,
1224
+ isFormDisabled,
1225
+ label,
1226
+ checkboxName: pathToData,
1227
+ onChange: onChangeParentCheckbox,
1228
+ onClick: onClickToggle,
1229
+ someChecked: hasSomeActionsSelected,
1230
+ value: hasAllActionsSelected,
1231
+ isActive,
1232
+ children: /* @__PURE__ */ jsx(Chevron, { paddingLeft: 2, children: isActive ? /* @__PURE__ */ jsx(ChevronUp, {}) : /* @__PURE__ */ jsx(ChevronDown, {}) })
1233
+ }
1234
+ ),
1235
+ /* @__PURE__ */ jsx(Flex, { style: { flex: 1 }, children: checkboxesActions.map(
1236
+ ({ actionId, hasSomeActionsSelected: hasSomeActionsSelected2, isDisplayed, ...restAction }) => {
1237
+ if (!isDisplayed) {
1238
+ return /* @__PURE__ */ jsx(HiddenAction, {}, actionId);
1239
+ }
1240
+ const {
1241
+ hasConditions,
1242
+ hasAllActionsSelected: hasAllActionsSelected2,
1243
+ isParentCheckbox,
1244
+ checkboxName,
1245
+ label: permissionLabel
1246
+ } = restAction;
1247
+ if (isParentCheckbox) {
1248
+ return /* @__PURE__ */ jsxs(Cell, { justifyContent: "center", alignItems: "center", children: [
1249
+ hasConditions && /* @__PURE__ */ jsx(
1250
+ Box,
1251
+ {
1252
+ as: "span",
1253
+ position: "absolute",
1254
+ top: "-6px",
1255
+ left: "37px",
1256
+ width: "6px",
1257
+ height: "6px",
1258
+ borderRadius: "20px",
1259
+ background: "primary600"
1260
+ }
1261
+ ),
1262
+ /* @__PURE__ */ jsx(
1263
+ BaseCheckbox,
1264
+ {
1265
+ disabled: isFormDisabled,
1266
+ name: checkboxName,
1267
+ "aria-label": formatMessage(
1268
+ {
1269
+ id: `Settings.permissions.select-by-permission`,
1270
+ defaultMessage: "Select {label} permission"
1271
+ },
1272
+ { label: `${permissionLabel} ${label}` }
1273
+ ),
1274
+ onValueChange: (value) => {
1275
+ onChangeParentCheckbox({
1276
+ target: {
1277
+ name: checkboxName,
1278
+ value
1279
+ }
1280
+ });
1281
+ },
1282
+ indeterminate: hasSomeActionsSelected2,
1283
+ value: hasAllActionsSelected2
1284
+ }
1285
+ )
1286
+ ] }, actionId);
1287
+ }
1288
+ return /* @__PURE__ */ jsxs(Cell, { justifyContent: "center", alignItems: "center", children: [
1289
+ hasConditions && /* @__PURE__ */ jsx(
1290
+ Box,
1291
+ {
1292
+ as: "span",
1293
+ position: "absolute",
1294
+ top: "-6px",
1295
+ left: "37px",
1296
+ width: "6px",
1297
+ height: "6px",
1298
+ borderRadius: "20px",
1299
+ background: "primary600"
1300
+ }
1301
+ ),
1302
+ /* @__PURE__ */ jsx(
1303
+ BaseCheckbox,
1304
+ {
1305
+ disabled: isFormDisabled,
1306
+ indeterminate: hasConditions,
1307
+ name: checkboxName,
1308
+ onValueChange: (value) => {
1309
+ onChangeSimpleCheckbox({
1310
+ target: {
1311
+ name: checkboxName,
1312
+ value
1313
+ }
1314
+ });
1315
+ },
1316
+ value: hasAllActionsSelected2
1317
+ }
1318
+ )
1319
+ ] }, actionId);
1320
+ }
1321
+ ) }),
1322
+ isModalOpen && /* @__PURE__ */ jsx(
1323
+ ConditionsModal,
1324
+ {
1325
+ headerBreadCrumbs: [label, "Settings.permissions.conditions.conditions"],
1326
+ actions: checkboxesActions,
1327
+ isFormDisabled,
1328
+ onClosed: handleModalClose,
1329
+ onToggle: handleToggleModalIsOpen
1330
+ }
1331
+ )
1332
+ ]
1333
+ }
1334
+ ),
1335
+ /* @__PURE__ */ jsx(Box, { transform: "translateY(10px)", right: "9px", position: "absolute", children: /* @__PURE__ */ jsx(
1336
+ ConditionsButton,
1337
+ {
1338
+ onClick: handleToggleModalIsOpen,
1339
+ hasConditions: doesConditionButtonHasConditions
1340
+ }
1341
+ ) })
1342
+ ] });
1343
+ };
1344
+ const generateCheckboxesActions = (availableActions, modifiedData, pathToData) => {
1345
+ return availableActions.map(({ actionId, isDisplayed, applyToProperties, label }) => {
1346
+ if (!isDisplayed) {
1347
+ return { actionId, hasSomeActionsSelected: false, isDisplayed };
1348
+ }
1349
+ const baseCheckboxNameArray = [...pathToData.split(".."), actionId];
1350
+ const checkboxNameArray = isEmpty(applyToProperties) ? [...baseCheckboxNameArray, "properties", "enabled"] : baseCheckboxNameArray;
1351
+ const conditionsValue = get(modifiedData, [...baseCheckboxNameArray, "conditions"], null);
1352
+ const baseCheckboxAction = {
1353
+ actionId,
1354
+ checkboxName: checkboxNameArray.join(".."),
1355
+ hasConditions: createArrayOfValues(conditionsValue).some((val) => val),
1356
+ isDisplayed,
1357
+ label,
1358
+ pathToConditionsObject: baseCheckboxNameArray
1359
+ };
1360
+ if (isEmpty(applyToProperties)) {
1361
+ const value = get(modifiedData, checkboxNameArray, false);
1362
+ return {
1363
+ ...baseCheckboxAction,
1364
+ hasAllActionsSelected: value,
1365
+ hasSomeActionsSelected: value,
1366
+ isParentCheckbox: false
1367
+ };
1368
+ }
1369
+ const mainData = get(modifiedData, checkboxNameArray, null);
1370
+ const { hasAllActionsSelected, hasSomeActionsSelected } = getCheckboxState(mainData);
1371
+ return {
1372
+ ...baseCheckboxAction,
1373
+ hasAllActionsSelected,
1374
+ hasSomeActionsSelected,
1375
+ isParentCheckbox: true
1376
+ };
1377
+ });
1378
+ };
1379
+ const activeRowStyle = (theme, isActive) => `
1380
+ ${Wrapper} {
1381
+ background-color: ${theme.colors.primary100};
1382
+ color: ${theme.colors.primary600};
1383
+ border-radius: ${isActive ? "2px 2px 0 0" : "2px"};
1384
+ }
1385
+ ${Chevron} {
1386
+ display: flex;
1387
+ }
1388
+ ${ConditionsButton} {
1389
+ display: block;
1390
+ }
1391
+ &:hover {
1392
+ ${activeStyle(theme)}
1393
+ }
1394
+
1395
+ &:focus-within {
1396
+ ${() => activeRowStyle(theme, isActive)}
1397
+ }
1398
+ `;
1399
+ const Wrapper = styled(Flex)`
1400
+ border: 1px solid transparent;
1401
+ `;
1402
+ const BoxWrapper = styled.div`
1403
+ display: inline-flex;
1404
+ min-width: 100%;
1405
+
1406
+ ${ConditionsButton} {
1407
+ display: none;
1408
+ }
1409
+ ${({ isActive, theme }) => isActive && activeRowStyle(theme, isActive)}
1410
+ &:hover {
1411
+ ${({ theme, isActive }) => activeRowStyle(theme, isActive)}
1412
+ }
1413
+ `;
1414
+ const Cell = styled(Flex)`
1415
+ width: ${cellWidth};
1416
+ position: relative;
1417
+ `;
1418
+ const Chevron = styled(Box)`
1419
+ display: none;
1420
+ svg {
1421
+ width: 11px;
1422
+ }
1423
+ * {
1424
+ fill: ${({ theme }) => theme.colors.primary600};
1425
+ }
1426
+ `;
1427
+ const GlobalActions = ({ actions = [], isFormDisabled, kind }) => {
1428
+ const { formatMessage } = useIntl();
1429
+ const { modifiedData, onChangeCollectionTypeGlobalActionCheckbox } = usePermissionsDataManager();
1430
+ const displayedActions = actions.filter(({ subjects }) => subjects && subjects.length);
1431
+ const checkboxesState = React.useMemo(() => {
1432
+ const actionsIds = displayedActions.map(({ actionId }) => actionId);
1433
+ const data = modifiedData[kind];
1434
+ const relatedActionsData = actionsIds.reduce(
1435
+ (acc, actionId) => {
1436
+ Object.keys(data).forEach((ctUid) => {
1437
+ const actionIdData = get(data, [ctUid, actionId]);
1438
+ const actionIdState = { [ctUid]: removeConditionKeyFromData(actionIdData) };
1439
+ if (!acc[actionId]) {
1440
+ acc[actionId] = actionIdState;
1441
+ } else {
1442
+ acc[actionId] = { ...acc[actionId], ...actionIdState };
1443
+ }
1444
+ });
1445
+ return acc;
1446
+ },
1447
+ {}
1448
+ );
1449
+ const checkboxesState2 = Object.keys(relatedActionsData).reduce((acc, current) => {
1450
+ acc[current] = getCheckboxState(relatedActionsData[current]);
1451
+ return acc;
1452
+ }, {});
1453
+ return checkboxesState2;
1454
+ }, [modifiedData, displayedActions, kind]);
1455
+ return /* @__PURE__ */ jsx(Box, { paddingBottom: 4, paddingTop: 6, style: { paddingLeft: firstRowWidth }, children: /* @__PURE__ */ jsx(Flex, { gap: 0, children: displayedActions.map(({ label, actionId }) => {
1456
+ return /* @__PURE__ */ jsxs(
1457
+ Flex,
1458
+ {
1459
+ shrink: 0,
1460
+ width: cellWidth,
1461
+ direction: "column",
1462
+ alignItems: "center",
1463
+ justifyContent: "center",
1464
+ gap: 3,
1465
+ children: [
1466
+ /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral500", children: formatMessage({
1467
+ id: `Settings.roles.form.permissions.${label.toLowerCase()}`,
1468
+ defaultMessage: label
1469
+ }) }),
1470
+ /* @__PURE__ */ jsx(
1471
+ BaseCheckbox,
1472
+ {
1473
+ disabled: isFormDisabled,
1474
+ onValueChange: (value) => {
1475
+ onChangeCollectionTypeGlobalActionCheckbox(kind, actionId, value);
1476
+ },
1477
+ name: actionId,
1478
+ "aria-label": formatMessage(
1479
+ {
1480
+ id: `Settings.permissions.select-all-by-permission`,
1481
+ defaultMessage: "Select all {label} permissions"
1482
+ },
1483
+ {
1484
+ label: formatMessage({
1485
+ id: `Settings.roles.form.permissions.${label.toLowerCase()}`,
1486
+ defaultMessage: label
1487
+ })
1488
+ }
1489
+ ),
1490
+ value: get(checkboxesState, [actionId, "hasAllActionsSelected"], false),
1491
+ indeterminate: get(checkboxesState, [actionId, "hasSomeActionsSelected"], false)
1492
+ }
1493
+ )
1494
+ ]
1495
+ },
1496
+ actionId
1497
+ );
1498
+ }) }) });
1499
+ };
1500
+ const ContentTypes = ({
1501
+ isFormDisabled,
1502
+ kind,
1503
+ layout: { actions, subjects }
1504
+ }) => {
1505
+ const sortedSubjects = [...subjects].sort((a, b) => a.label.localeCompare(b.label));
1506
+ return /* @__PURE__ */ jsxs(StyledBox, { background: "neutral0", children: [
1507
+ /* @__PURE__ */ jsx(GlobalActions, { actions, kind, isFormDisabled }),
1508
+ /* @__PURE__ */ jsx(
1509
+ ContentTypeCollapses,
1510
+ {
1511
+ actions,
1512
+ isFormDisabled,
1513
+ pathToData: kind,
1514
+ subjects: sortedSubjects
1515
+ }
1516
+ )
1517
+ ] });
1518
+ };
1519
+ const StyledBox = styled(Box)`
1520
+ overflow-x: auto;
1521
+ `;
1522
+ const PluginsAndSettingsPermissions = ({
1523
+ layout,
1524
+ ...restProps
1525
+ }) => {
1526
+ const [openedCategory, setOpenedCategory] = React.useState(null);
1527
+ const handleOpenCategory = (categoryName) => {
1528
+ setOpenedCategory(categoryName === openedCategory ? null : categoryName);
1529
+ };
1530
+ return /* @__PURE__ */ jsx(Box, { padding: 6, background: "neutral0", children: layout.map(({ category, categoryId, childrenForm }, index) => {
1531
+ return /* @__PURE__ */ jsx(
1532
+ Row,
1533
+ {
1534
+ childrenForm,
1535
+ isOpen: openedCategory === category,
1536
+ isWhite: index % 2 === 1,
1537
+ name: category,
1538
+ onOpenCategory: handleOpenCategory,
1539
+ pathToData: [restProps.kind, categoryId],
1540
+ ...restProps
1541
+ },
1542
+ category
1543
+ );
1544
+ }) });
1545
+ };
1546
+ const Row = ({
1547
+ childrenForm,
1548
+ kind,
1549
+ name,
1550
+ isOpen = false,
1551
+ isFormDisabled = false,
1552
+ isWhite,
1553
+ onOpenCategory,
1554
+ pathToData
1555
+ }) => {
1556
+ const { formatMessage } = useIntl();
1557
+ const handleClick = () => {
1558
+ onOpenCategory(name);
1559
+ };
1560
+ const categoryName = name.split("::").pop() ?? "";
1561
+ return /* @__PURE__ */ jsxs(
1562
+ Accordion,
1563
+ {
1564
+ expanded: isOpen,
1565
+ onToggle: handleClick,
1566
+ id: `accordion-${name}`,
1567
+ variant: isWhite ? "primary" : "secondary",
1568
+ children: [
1569
+ /* @__PURE__ */ jsx(
1570
+ AccordionToggle,
1571
+ {
1572
+ title: capitalise(categoryName),
1573
+ description: `${formatMessage(
1574
+ { id: "Settings.permissions.category", defaultMessage: categoryName },
1575
+ { category: categoryName }
1576
+ )} ${kind === "plugins" ? "plugin" : kind}`
1577
+ }
1578
+ ),
1579
+ /* @__PURE__ */ jsx(AccordionContent, { children: /* @__PURE__ */ jsx(Box, { padding: 6, children: childrenForm.map(({ actions, subCategoryName, subCategoryId }) => /* @__PURE__ */ jsx(
1580
+ SubCategory,
1581
+ {
1582
+ actions,
1583
+ categoryName,
1584
+ isFormDisabled,
1585
+ subCategoryName,
1586
+ pathToData: [...pathToData, subCategoryId]
1587
+ },
1588
+ subCategoryName
1589
+ )) }) })
1590
+ ]
1591
+ }
1592
+ );
1593
+ };
1594
+ const SubCategory = ({
1595
+ actions = [],
1596
+ categoryName,
1597
+ isFormDisabled,
1598
+ subCategoryName,
1599
+ pathToData
1600
+ }) => {
1601
+ const [isModalOpen, setModalOpen] = React.useState(false);
1602
+ const { modifiedData, onChangeParentCheckbox, onChangeSimpleCheckbox } = usePermissionsDataManager();
1603
+ const { formatMessage } = useIntl();
1604
+ const mainData = get(modifiedData, pathToData, {});
1605
+ const dataWithoutCondition = React.useMemo(() => {
1606
+ return Object.keys(mainData).reduce((acc, current) => {
1607
+ acc[current] = removeConditionKeyFromData(mainData[current]);
1608
+ return acc;
1609
+ }, {});
1610
+ }, [mainData]);
1611
+ const { hasAllActionsSelected, hasSomeActionsSelected } = getCheckboxState(dataWithoutCondition);
1612
+ const handleToggleModalIsOpen = () => {
1613
+ setModalOpen((s) => !s);
1614
+ };
1615
+ const handleModalClose = () => {
1616
+ setModalOpen(false);
1617
+ };
1618
+ const formattedActions = React.useMemo(() => {
1619
+ return actions.map((action) => {
1620
+ const checkboxName = [...pathToData, action.action, "properties", "enabled"];
1621
+ const checkboxValue = get(modifiedData, checkboxName, false);
1622
+ const conditionValue = get(modifiedData, [...pathToData, action.action, "conditions"], {});
1623
+ const hasConditions = createArrayOfValues(conditionValue).some((val) => val);
1624
+ return {
1625
+ ...action,
1626
+ isDisplayed: checkboxValue,
1627
+ checkboxName: checkboxName.join(".."),
1628
+ hasSomeActionsSelected: checkboxValue,
1629
+ value: checkboxValue,
1630
+ hasConditions,
1631
+ label: action.displayName,
1632
+ actionId: action.action,
1633
+ pathToConditionsObject: [...pathToData, action.action]
1634
+ };
1635
+ });
1636
+ }, [actions, modifiedData, pathToData]);
1637
+ const datum = get(modifiedData, [...pathToData], {});
1638
+ const doesButtonHasCondition = createArrayOfValues(
1639
+ Object.entries(datum).reduce((acc, current) => {
1640
+ const [catName, { conditions }] = current;
1641
+ acc[catName] = conditions;
1642
+ return acc;
1643
+ }, {})
1644
+ ).some((val) => val);
1645
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1646
+ /* @__PURE__ */ jsxs(Box, { children: [
1647
+ /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", children: [
1648
+ /* @__PURE__ */ jsx(Box, { paddingRight: 4, children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: subCategoryName }) }),
1649
+ /* @__PURE__ */ jsx(Border, { flex: 1 }),
1650
+ /* @__PURE__ */ jsx(Box, { paddingLeft: 4, children: /* @__PURE__ */ jsx(
1651
+ Checkbox,
1652
+ {
1653
+ name: pathToData.join(".."),
1654
+ disabled: isFormDisabled,
1655
+ onValueChange: (value) => {
1656
+ onChangeParentCheckbox({
1657
+ target: {
1658
+ name: pathToData.join(".."),
1659
+ value
1660
+ }
1661
+ });
1662
+ },
1663
+ indeterminate: hasSomeActionsSelected,
1664
+ value: hasAllActionsSelected,
1665
+ children: formatMessage({ id: "app.utils.select-all", defaultMessage: "Select all" })
1666
+ }
1667
+ ) })
1668
+ ] }),
1669
+ /* @__PURE__ */ jsxs(Flex, { paddingTop: 6, paddingBottom: 6, children: [
1670
+ /* @__PURE__ */ jsx(Grid, { gap: 2, style: { flex: 1 }, children: formattedActions.map(({ checkboxName, value, action, displayName, hasConditions }) => {
1671
+ return /* @__PURE__ */ jsx(GridItem, { col: 3, children: /* @__PURE__ */ jsx(CheckboxWrapper, { disabled: isFormDisabled, hasConditions, children: /* @__PURE__ */ jsx(
1672
+ Checkbox,
1673
+ {
1674
+ name: checkboxName,
1675
+ disabled: isFormDisabled,
1676
+ onValueChange: (value2) => {
1677
+ onChangeSimpleCheckbox({
1678
+ target: {
1679
+ name: checkboxName,
1680
+ value: value2
1681
+ }
1682
+ });
1683
+ },
1684
+ value,
1685
+ children: displayName
1686
+ }
1687
+ ) }) }, action);
1688
+ }) }),
1689
+ /* @__PURE__ */ jsx(
1690
+ ConditionsButton,
1691
+ {
1692
+ hasConditions: doesButtonHasCondition,
1693
+ onClick: handleToggleModalIsOpen
1694
+ }
1695
+ )
1696
+ ] })
1697
+ ] }),
1698
+ isModalOpen && /* @__PURE__ */ jsx(
1699
+ ConditionsModal,
1700
+ {
1701
+ headerBreadCrumbs: [categoryName, subCategoryName],
1702
+ actions: formattedActions,
1703
+ isFormDisabled,
1704
+ onClosed: handleModalClose,
1705
+ onToggle: handleToggleModalIsOpen
1706
+ }
1707
+ )
1708
+ ] });
1709
+ };
1710
+ const Border = styled(Box)`
1711
+ align-self: center;
1712
+ border-top: 1px solid ${({ theme }) => theme.colors.neutral150};
1713
+ `;
1714
+ const CheckboxWrapper = styled.div`
1715
+ position: relative;
1716
+ word-break: keep-all;
1717
+ ${({ hasConditions, disabled, theme }) => hasConditions && `
1718
+ &:before {
1719
+ content: '';
1720
+ position: absolute;
1721
+ top: ${-4 / 16}rem;
1722
+ left: ${-8 / 16}rem;
1723
+ width: ${6 / 16}rem;
1724
+ height: ${6 / 16}rem;
1725
+ border-radius: ${20 / 16}rem;
1726
+ background: ${disabled ? theme.colors.neutral100 : theme.colors.primary600};
1727
+ }
1728
+ `}
1729
+ `;
1730
+ const TAB_LABELS = [
1731
+ {
1732
+ labelId: "app.components.LeftMenuLinkContainer.collectionTypes",
1733
+ defaultMessage: "Collection Types",
1734
+ id: "collectionTypes"
1735
+ },
1736
+ {
1737
+ labelId: "app.components.LeftMenuLinkContainer.singleTypes",
1738
+ id: "singleTypes",
1739
+ defaultMessage: "Single Types"
1740
+ },
1741
+ {
1742
+ labelId: "app.components.LeftMenuLinkContainer.plugins",
1743
+ defaultMessage: "Plugins",
1744
+ id: "plugins"
1745
+ },
1746
+ {
1747
+ labelId: "app.components.LeftMenuLinkContainer.settings",
1748
+ defaultMessage: "Settings",
1749
+ id: "settings"
1750
+ }
1751
+ ];
1752
+ const Permissions = React.forwardRef(
1753
+ ({ layout, isFormDisabled, permissions = [] }, api) => {
1754
+ const [{ initialData, layouts, modifiedData }, dispatch] = React.useReducer(
1755
+ reducer,
1756
+ initialState,
1757
+ () => init(layout, permissions)
1758
+ );
1759
+ const { formatMessage } = useIntl();
1760
+ React.useImperativeHandle(api, () => {
1761
+ return {
1762
+ getPermissions() {
1763
+ const collectionTypesDiff = difference(
1764
+ initialData.collectionTypes,
1765
+ modifiedData.collectionTypes
1766
+ );
1767
+ const singleTypesDiff = difference(initialData.singleTypes, modifiedData.singleTypes);
1768
+ const contentTypesDiff = { ...collectionTypesDiff, ...singleTypesDiff };
1769
+ let didUpdateConditions;
1770
+ if (isEmpty(contentTypesDiff)) {
1771
+ didUpdateConditions = false;
1772
+ } else {
1773
+ didUpdateConditions = Object.values(contentTypesDiff).some((permission = {}) => {
1774
+ return Object.values(permission).some(
1775
+ (permissionValue) => has(permissionValue, "conditions")
1776
+ );
1777
+ });
1778
+ }
1779
+ return { permissionsToSend: formatPermissionsForAPI(modifiedData), didUpdateConditions };
1780
+ },
1781
+ resetForm() {
1782
+ dispatch({ type: "RESET_FORM" });
1783
+ },
1784
+ setFormAfterSubmit() {
1785
+ dispatch({ type: "SET_FORM_AFTER_SUBMIT" });
1786
+ }
1787
+ };
1788
+ });
1789
+ const handleChangeCollectionTypeLeftActionRowCheckbox = (pathToCollectionType, propertyName, rowName, value) => {
1790
+ dispatch({
1791
+ type: "ON_CHANGE_COLLECTION_TYPE_ROW_LEFT_CHECKBOX",
1792
+ pathToCollectionType,
1793
+ propertyName,
1794
+ rowName,
1795
+ value
1796
+ });
1797
+ };
1798
+ const handleChangeCollectionTypeGlobalActionCheckbox = (collectionTypeKind, actionId, value) => {
1799
+ dispatch({
1800
+ type: "ON_CHANGE_COLLECTION_TYPE_GLOBAL_ACTION_CHECKBOX",
1801
+ collectionTypeKind,
1802
+ actionId,
1803
+ value
1804
+ });
1805
+ };
1806
+ const handleChangeConditions = (conditions) => {
1807
+ dispatch({ type: "ON_CHANGE_CONDITIONS", conditions });
1808
+ };
1809
+ const handleChangeSimpleCheckbox = React.useCallback(({ target: { name, value } }) => {
1810
+ dispatch({
1811
+ type: "ON_CHANGE_SIMPLE_CHECKBOX",
1812
+ keys: name,
1813
+ value
1814
+ });
1815
+ }, []);
1816
+ const handleChangeParentCheckbox = React.useCallback(({ target: { name, value } }) => {
1817
+ dispatch({
1818
+ type: "ON_CHANGE_TOGGLE_PARENT_CHECKBOX",
1819
+ keys: name,
1820
+ value
1821
+ });
1822
+ }, []);
1823
+ return /* @__PURE__ */ jsx(
1824
+ PermissionsDataManagerProvider,
1825
+ {
1826
+ availableConditions: layout.conditions,
1827
+ modifiedData,
1828
+ onChangeConditions: handleChangeConditions,
1829
+ onChangeSimpleCheckbox: handleChangeSimpleCheckbox,
1830
+ onChangeParentCheckbox: handleChangeParentCheckbox,
1831
+ onChangeCollectionTypeLeftActionRowCheckbox: handleChangeCollectionTypeLeftActionRowCheckbox,
1832
+ onChangeCollectionTypeGlobalActionCheckbox: handleChangeCollectionTypeGlobalActionCheckbox,
1833
+ children: /* @__PURE__ */ jsxs(
1834
+ TabGroup,
1835
+ {
1836
+ id: "tabs",
1837
+ label: formatMessage({
1838
+ id: "Settings.permissions.users.tabs.label",
1839
+ defaultMessage: "Tabs Permissions"
1840
+ }),
1841
+ children: [
1842
+ /* @__PURE__ */ jsx(Tabs, { children: TAB_LABELS.map((tabLabel) => /* @__PURE__ */ jsx(Tab, { children: formatMessage({ id: tabLabel.labelId, defaultMessage: tabLabel.defaultMessage }) }, tabLabel.id)) }),
1843
+ /* @__PURE__ */ jsxs(TabPanels, { style: { position: "relative" }, children: [
1844
+ /* @__PURE__ */ jsx(TabPanel, { children: /* @__PURE__ */ jsx(
1845
+ ContentTypes,
1846
+ {
1847
+ layout: layouts.collectionTypes,
1848
+ kind: "collectionTypes",
1849
+ isFormDisabled
1850
+ }
1851
+ ) }),
1852
+ /* @__PURE__ */ jsx(TabPanel, { children: /* @__PURE__ */ jsx(
1853
+ ContentTypes,
1854
+ {
1855
+ layout: layouts.singleTypes,
1856
+ kind: "singleTypes",
1857
+ isFormDisabled
1858
+ }
1859
+ ) }),
1860
+ /* @__PURE__ */ jsx(TabPanel, { children: /* @__PURE__ */ jsx(
1861
+ PluginsAndSettingsPermissions,
1862
+ {
1863
+ layout: layouts.plugins,
1864
+ kind: "plugins",
1865
+ isFormDisabled
1866
+ }
1867
+ ) }),
1868
+ /* @__PURE__ */ jsx(TabPanel, { children: /* @__PURE__ */ jsx(
1869
+ PluginsAndSettingsPermissions,
1870
+ {
1871
+ layout: layouts.settings,
1872
+ kind: "settings",
1873
+ isFormDisabled
1874
+ }
1875
+ ) })
1876
+ ] })
1877
+ ]
1878
+ }
1879
+ )
1880
+ }
1881
+ );
1882
+ }
1883
+ );
1884
+ const initialState = {
1885
+ initialData: {},
1886
+ modifiedData: {},
1887
+ layouts: {}
1888
+ };
1889
+ const reducer = (state, action) => produce(state, (draftState) => {
1890
+ switch (action.type) {
1891
+ case "ON_CHANGE_COLLECTION_TYPE_GLOBAL_ACTION_CHECKBOX": {
1892
+ const { collectionTypeKind, actionId, value } = action;
1893
+ const pathToData = ["modifiedData", collectionTypeKind];
1894
+ Object.keys(get(state, pathToData)).forEach((collectionType) => {
1895
+ const collectionTypeActionData = get(
1896
+ state,
1897
+ [...pathToData, collectionType, actionId],
1898
+ void 0
1899
+ );
1900
+ if (collectionTypeActionData) {
1901
+ let updatedValues = updateValues(collectionTypeActionData, value);
1902
+ if (!value && updatedValues.conditions) {
1903
+ const updatedConditions = updateValues(updatedValues.conditions, false);
1904
+ updatedValues = { ...updatedValues, conditions: updatedConditions };
1905
+ }
1906
+ set(draftState, [...pathToData, collectionType, actionId], updatedValues);
1907
+ }
1908
+ });
1909
+ break;
1910
+ }
1911
+ case "ON_CHANGE_COLLECTION_TYPE_ROW_LEFT_CHECKBOX": {
1912
+ const { pathToCollectionType, propertyName, rowName, value } = action;
1913
+ let nextModifiedDataState = cloneDeep(state.modifiedData);
1914
+ const pathToModifiedDataCollectionType = pathToCollectionType.split("..");
1915
+ const objToUpdate = get(nextModifiedDataState, pathToModifiedDataCollectionType, {});
1916
+ Object.keys(objToUpdate).forEach((actionId) => {
1917
+ if (has(objToUpdate[actionId], `properties.${propertyName}`)) {
1918
+ const objValue = get(objToUpdate, [actionId, "properties", propertyName, rowName]);
1919
+ const pathToDataToSet = [
1920
+ ...pathToModifiedDataCollectionType,
1921
+ actionId,
1922
+ "properties",
1923
+ propertyName,
1924
+ rowName
1925
+ ];
1926
+ if (!isObject(objValue)) {
1927
+ set(nextModifiedDataState, pathToDataToSet, value);
1928
+ } else {
1929
+ const updatedValue = updateValues(objValue, value);
1930
+ set(nextModifiedDataState, pathToDataToSet, updatedValue);
1931
+ }
1932
+ }
1933
+ });
1934
+ if (!value) {
1935
+ nextModifiedDataState = updateConditionsToFalse(nextModifiedDataState);
1936
+ }
1937
+ set(draftState, "modifiedData", nextModifiedDataState);
1938
+ break;
1939
+ }
1940
+ case "ON_CHANGE_CONDITIONS": {
1941
+ Object.entries(action.conditions).forEach((array) => {
1942
+ const [stringPathToData, conditionsToUpdate] = array;
1943
+ set(
1944
+ draftState,
1945
+ ["modifiedData", ...stringPathToData.split(".."), "conditions"],
1946
+ conditionsToUpdate
1947
+ );
1948
+ });
1949
+ break;
1950
+ }
1951
+ case "ON_CHANGE_SIMPLE_CHECKBOX": {
1952
+ let nextModifiedDataState = cloneDeep(state.modifiedData);
1953
+ set(nextModifiedDataState, [...action.keys.split("..")], action.value);
1954
+ if (!action.value) {
1955
+ nextModifiedDataState = updateConditionsToFalse(nextModifiedDataState);
1956
+ }
1957
+ set(draftState, "modifiedData", nextModifiedDataState);
1958
+ break;
1959
+ }
1960
+ case "ON_CHANGE_TOGGLE_PARENT_CHECKBOX": {
1961
+ const { keys, value } = action;
1962
+ const pathToValue = [...keys.split("..")];
1963
+ let nextModifiedDataState = cloneDeep(state.modifiedData);
1964
+ const oldValues = get(nextModifiedDataState, pathToValue, {});
1965
+ const updatedValues = updateValues(oldValues, value);
1966
+ set(nextModifiedDataState, pathToValue, updatedValues);
1967
+ if (!value) {
1968
+ nextModifiedDataState = updateConditionsToFalse(nextModifiedDataState);
1969
+ }
1970
+ set(draftState, ["modifiedData"], nextModifiedDataState);
1971
+ break;
1972
+ }
1973
+ case "RESET_FORM": {
1974
+ draftState.modifiedData = state.initialData;
1975
+ break;
1976
+ }
1977
+ case "SET_FORM_AFTER_SUBMIT": {
1978
+ draftState.initialData = state.modifiedData;
1979
+ break;
1980
+ }
1981
+ default:
1982
+ return draftState;
1983
+ }
1984
+ });
1985
+ const init = (layout, permissions) => {
1986
+ const {
1987
+ conditions,
1988
+ sections: { collectionTypes, singleTypes, plugins, settings }
1989
+ } = layout;
1990
+ const layouts = {
1991
+ collectionTypes,
1992
+ singleTypes,
1993
+ plugins: formatLayout(plugins, "plugin"),
1994
+ settings: formatLayout(settings, "category")
1995
+ };
1996
+ const defaultForm = {
1997
+ collectionTypes: createDefaultCTForm(collectionTypes, conditions, permissions),
1998
+ singleTypes: createDefaultCTForm(singleTypes, conditions, permissions),
1999
+ plugins: createDefaultForm(layouts.plugins, conditions, permissions),
2000
+ settings: createDefaultForm(layouts.settings, conditions, permissions)
2001
+ };
2002
+ return {
2003
+ initialData: defaultForm,
2004
+ modifiedData: defaultForm,
2005
+ layouts
2006
+ };
2007
+ };
2008
+ export {
2009
+ Permissions as P
2010
+ };
2011
+ //# sourceMappingURL=Permissions-BgDbVLII.mjs.map