@plone/volto 18.0.0-alpha.44 → 18.0.0-alpha.46

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 (582) hide show
  1. package/.eslintrc +19 -21
  2. package/CHANGELOG.md +30 -0
  3. package/package.json +4 -4
  4. package/src/components/manage/BlockChooser/BlockChooserSearch.jsx +0 -1
  5. package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +1 -0
  6. package/src/components/manage/Contents/Contents.jsx +2 -0
  7. package/src/components/manage/Controlpanels/DatabaseInformation.jsx +1 -0
  8. package/src/components/manage/Controlpanels/UpgradeControlPanel.jsx +1 -0
  9. package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +14 -12
  10. package/src/components/manage/Pluggable/Pluggable.test.js +3 -3
  11. package/src/components/manage/Sidebar/ObjectBrowserNav.jsx +1 -0
  12. package/src/components/manage/Toolbar/More.jsx +2 -2
  13. package/src/components/theme/Icon/Icon.stories.jsx +1 -0
  14. package/src/components/theme/Widgets/ArrayWidget.jsx +2 -2
  15. package/src/helpers/Html/Html.jsx +1 -0
  16. package/dist/android-chrome-192x192.png +0 -0
  17. package/dist/android-chrome-512x512.png +0 -0
  18. package/dist/apple-touch-icon.png +0 -0
  19. package/dist/assets/Add-CA4YI1L9.js +0 -1
  20. package/dist/assets/AddRule-D3FXfjP2.js +0 -1
  21. package/dist/assets/AddonsControlpanel-BVvov68i.js +0 -1
  22. package/dist/assets/Aliases-CTeg6p2o.js +0 -1
  23. package/dist/assets/Aliases-CiYzFinq.js +0 -1
  24. package/dist/assets/AlignWidget-DOdVMFPI.js +0 -1
  25. package/dist/assets/ArrayWidget-BrkmZ5dw.js +0 -2
  26. package/dist/assets/BlockDataForm-B3mthY8C.js +0 -1
  27. package/dist/assets/BlocksForm-B4Z6BgXT.js +0 -2
  28. package/dist/assets/BlocksToolbar-QLlNn733.js +0 -1
  29. package/dist/assets/ButtonsWidget-DEMy855M.js +0 -1
  30. package/dist/assets/ByDayField-jAVQ7XPH.js +0 -1
  31. package/dist/assets/ChangePassword-6aoonCrF.js +0 -1
  32. package/dist/assets/CheckboxWidget-IMR_-sRq.js +0 -1
  33. package/dist/assets/ColorPickerWidget-Dejm2B0T.js +0 -1
  34. package/dist/assets/CommentEditModal-Dsgav7Iq.js +0 -1
  35. package/dist/assets/Comments-Bef0xvDU.js +0 -1
  36. package/dist/assets/ConfigureRule-DXI9YD9P.js +0 -1
  37. package/dist/assets/Confirm-DFyDHvrF.js +0 -1
  38. package/dist/assets/ContactForm-CQVq5Emz.js +0 -1
  39. package/dist/assets/ContentType-DiwmXeXW.js +0 -1
  40. package/dist/assets/ContentTypeLayout-DM4zSiq_.js +0 -1
  41. package/dist/assets/ContentTypeSchema-DiQYp2-x.js +0 -1
  42. package/dist/assets/ContentTypes-DNvhsL2E.js +0 -1
  43. package/dist/assets/Contents-HiCShUFN.js +0 -2
  44. package/dist/assets/ContentsBreadcrumbs-C8wbasB3.js +0 -1
  45. package/dist/assets/ContentsIndexHeader-DWLUzSSN.js +0 -1
  46. package/dist/assets/ContentsItem-lDg0F8jy.js +0 -1
  47. package/dist/assets/ContentsPropertiesModal-xyVS8Pm9.js +0 -1
  48. package/dist/assets/ContentsRenameModal-CR9og1vu.js +0 -1
  49. package/dist/assets/ContentsTagsModal-sm2mz3cz.js +0 -1
  50. package/dist/assets/ContentsUploadModal-DAvSG2iz.js +0 -5
  51. package/dist/assets/ContentsWorkflowModal-B1faSBIm.js +0 -1
  52. package/dist/assets/Controlpanel-rIBVAK5V.js +0 -1
  53. package/dist/assets/Controlpanels-yqRsYca2.js +0 -1
  54. package/dist/assets/CreateTranslation-BovC3sNf.js +0 -1
  55. package/dist/assets/DatabaseInformation-BhfKGQdR.js +0 -1
  56. package/dist/assets/DatetimeWidget-BdaHrXzK.css +0 -1
  57. package/dist/assets/DatetimeWidget-CGRn8MDB.js +0 -2
  58. package/dist/assets/Delete-Bf_oGO3l.js +0 -1
  59. package/dist/assets/Diff-BOq2GAEN.js +0 -2
  60. package/dist/assets/DiffField-URJH7cyl.js +0 -42
  61. package/dist/assets/Divider-I-Vkru5f.js +0 -1
  62. package/dist/assets/DragDropList-DGGG9KzJ.js +0 -1
  63. package/dist/assets/DynamicRowHeightList-DTGQZVrT.js +0 -2
  64. package/dist/assets/Edit-DjR75Yke.js +0 -1
  65. package/dist/assets/EditRule-BBvjH707.js +0 -1
  66. package/dist/assets/EmailWidget-Bq_6HMhS.js +0 -1
  67. package/dist/assets/Error-DgGrUrdR.js +0 -1
  68. package/dist/assets/EventDatesInfo-BBanEDzq.js +0 -2
  69. package/dist/assets/EventView-B5GwqNQP.js +0 -2
  70. package/dist/assets/Field-BivWUJ1M.js +0 -1
  71. package/dist/assets/FileWidget-Cbu5QwYg.js +0 -2
  72. package/dist/assets/Form-ZI0Zshdh.js +0 -1
  73. package/dist/assets/FormattedRelativeDate-BDqnftFO.js +0 -1
  74. package/dist/assets/GroupsControlpanel-DVw7gRP-.js +0 -1
  75. package/dist/assets/History-eh7QSqQ3.js +0 -1
  76. package/dist/assets/IdWidget-BdcHR4jR.js +0 -1
  77. package/dist/assets/ImageSizeWidget-C44x9fO8.js +0 -1
  78. package/dist/assets/InlineForm-DQFfCjzF.js +0 -1
  79. package/dist/assets/InternalUrlWidget-BJ2TlHvv.js +0 -1
  80. package/dist/assets/LinksToItem-OcO6d56I.js +0 -1
  81. package/dist/assets/Login-BwMJ6f50.js +0 -1
  82. package/dist/assets/Logout-BUHwA4DE.js +0 -1
  83. package/dist/assets/ManageTranslations-ChQ7vL2i.js +0 -1
  84. package/dist/assets/ModalForm-CvvXZSkU.js +0 -1
  85. package/dist/assets/ModerateComments-1Ov7biDm.js +0 -1
  86. package/dist/assets/MonthOfTheYearField-CM70wuIb.js +0 -1
  87. package/dist/assets/NumberWidget-DABMHQm5.js +0 -1
  88. package/dist/assets/ObjectBrowserWidget-Bh4JpoWw.js +0 -1
  89. package/dist/assets/ObjectListWidget-DznYu5qo.js +0 -2
  90. package/dist/assets/ObjectWidget-BBA-_l7E.js +0 -1
  91. package/dist/assets/Occurences-BzxgwsYx.js +0 -1
  92. package/dist/assets/Order-BtyRvLNH.js +0 -5
  93. package/dist/assets/Pagination-CJSyS-v5.js +0 -1
  94. package/dist/assets/PasswordReset-COH0dZIO.js +0 -1
  95. package/dist/assets/PasswordWidget-DoHmi1Qa.js +0 -1
  96. package/dist/assets/PersonalInformation-BnghqH8c.js +0 -1
  97. package/dist/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
  98. package/dist/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
  99. package/dist/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
  100. package/dist/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
  101. package/dist/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
  102. package/dist/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
  103. package/dist/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
  104. package/dist/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
  105. package/dist/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
  106. package/dist/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
  107. package/dist/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
  108. package/dist/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
  109. package/dist/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
  110. package/dist/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
  111. package/dist/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
  112. package/dist/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
  113. package/dist/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
  114. package/dist/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
  115. package/dist/assets/QuerySortOnWidget-souad4DL.js +0 -2
  116. package/dist/assets/QueryWidget-qk9RayXO.js +0 -2
  117. package/dist/assets/QuerystringWidget-DH5jhTLr.js +0 -1
  118. package/dist/assets/RecurrenceWidget-DnuZQPcL.js +0 -2
  119. package/dist/assets/ReferenceWidget-B4Ut0GeE.js +0 -1
  120. package/dist/assets/Register-CZJ_qhM8.js +0 -1
  121. package/dist/assets/RegistryImageWidget-CdL-rOKh.js +0 -2
  122. package/dist/assets/Relations-BwmDXEO-.js +0 -1
  123. package/dist/assets/RenderGroups-CEJGSsLf.js +0 -1
  124. package/dist/assets/RenderUsers--9m7uN_M.js +0 -1
  125. package/dist/assets/RequestPasswordReset-ClwvyAVg.js +0 -1
  126. package/dist/assets/Rules-CmCkDhXN.js +0 -1
  127. package/dist/assets/Rules-NXbkDTgW.js +0 -1
  128. package/dist/assets/SchemaWidget-B0c4tT_v.js +0 -5
  129. package/dist/assets/Search-CspR83YZ.js +0 -1
  130. package/dist/assets/SelectAutoComplete-D6sNEX-d.js +0 -2
  131. package/dist/assets/SelectMetadataField-Bp04JyaC.js +0 -2
  132. package/dist/assets/SelectUtils-BBksmIZO.js +0 -1
  133. package/dist/assets/SelectWidget-7oSuJ3oC.js +0 -2
  134. package/dist/assets/Sharing-BD2SWQfE.js +0 -1
  135. package/dist/assets/Sidebar-DgSrLVjY.js +0 -1
  136. package/dist/assets/Sitemap-YzTuoH0K.js +0 -1
  137. package/dist/assets/TextWidget-DuuGzOfb.js +0 -1
  138. package/dist/assets/TextareaWidget-Dy-lG0rT.js +0 -1
  139. package/dist/assets/TokenWidget-DPBxq9gC.js +0 -2
  140. package/dist/assets/Toolbar-DRQzi_9w.js +0 -2
  141. package/dist/assets/TranslationObject-looZSaOd.js +0 -1
  142. package/dist/assets/UndoControlpanel-DskOWXtR.js +0 -1
  143. package/dist/assets/UndoToolbar-d2m9s_d7.js +0 -1
  144. package/dist/assets/UpgradeControlPanel-D25islCR.js +0 -1
  145. package/dist/assets/UrlWidget-DVyURufw.js +0 -1
  146. package/dist/assets/User-CGkBaCm_.js +0 -1
  147. package/dist/assets/UserGroupMembershipControlPanel-GG_7FkTb.js +0 -1
  148. package/dist/assets/UsersControlpanel-baYxuzjn.js +0 -1
  149. package/dist/assets/VersionOverview-A7mgPMUR.js +0 -1
  150. package/dist/assets/VocabularyTermsWidget-M-5KcHUD.js +0 -2
  151. package/dist/assets/WeekdayOfTheMonthField-Cjj_8dDR.js +0 -1
  152. package/dist/assets/WysiwygWidget-GxnNCpDG.js +0 -1
  153. package/dist/assets/add-user-CTbv3TmR.js +0 -1
  154. package/dist/assets/aliases-C-VS65Iw.js +0 -1
  155. package/dist/assets/ca-DPz_x4tN.js +0 -1
  156. package/dist/assets/cut-ZxaZMyVt.js +0 -1
  157. package/dist/assets/de-CEfDIAIe.js +0 -1
  158. package/dist/assets/drag-CfL-m2gM.js +0 -1
  159. package/dist/assets/en-UGAeOB73.js +0 -1
  160. package/dist/assets/es-bTR5ZO7p.js +0 -1
  161. package/dist/assets/eu-ClGcMWvo.js +0 -1
  162. package/dist/assets/fi-Cb9XYMls.js +0 -1
  163. package/dist/assets/fr-paTim4vs.js +0 -1
  164. package/dist/assets/groups-pKq-wbS4.js +0 -1
  165. package/dist/assets/hi-wfjyKWJi.js +0 -1
  166. package/dist/assets/history-YklEZVTU.js +0 -1
  167. package/dist/assets/icons-BvLvFD6l.ttf +0 -0
  168. package/dist/assets/icons-DEAbt7RB.woff +0 -0
  169. package/dist/assets/icons-DtZ6carP.eot +0 -0
  170. package/dist/assets/icons-hSdpWXN3.svg +0 -320
  171. package/dist/assets/image-gallery-DpLmJ-rt.js +0 -1
  172. package/dist/assets/index-B0HjVmtS.js +0 -2
  173. package/dist/assets/index-B21wqIU_.js +0 -1
  174. package/dist/assets/index-C2wVBtsx.js +0 -690
  175. package/dist/assets/index-CVdJPLUb.js +0 -3
  176. package/dist/assets/index-CYKeo7yW.js +0 -28
  177. package/dist/assets/index-D27Aat_y.css +0 -346
  178. package/dist/assets/index-D6aBCFDE.js +0 -1
  179. package/dist/assets/index-DLUMPle8.js +0 -1
  180. package/dist/assets/it-DefHMwCV.js +0 -1
  181. package/dist/assets/ja-ChtpWCYw.js +0 -1
  182. package/dist/assets/memoize-one.esm-CcMeOnPo.js +0 -1
  183. package/dist/assets/messages-BK-H1zLr.js +0 -1
  184. package/dist/assets/nl-SQksV7ER.js +0 -1
  185. package/dist/assets/objectWithoutProperties-xAH_kqrN.js +0 -1
  186. package/dist/assets/paste-BecFEOpX.js +0 -1
  187. package/dist/assets/plone-CrIeS8BF.js +0 -1
  188. package/dist/assets/prism-markup-DpNACz_g.js +0 -1
  189. package/dist/assets/pt-aWkeVAjQ.js +0 -1
  190. package/dist/assets/pt_BR-77wXUzSL.js +0 -1
  191. package/dist/assets/react-beautiful-dnd.esm-DJMwJ8Si.js +0 -61
  192. package/dist/assets/react-lifecycles-compat.es-AfN2QaV3.js +0 -9
  193. package/dist/assets/react-select.esm-Bw9Tks6S.js +0 -1
  194. package/dist/assets/react-select.esm-DqdZW0cZ.js +0 -1
  195. package/dist/assets/react-select.esm-Dv_YRvYk.js +0 -1
  196. package/dist/assets/relations-D2Yk2g8d.js +0 -1
  197. package/dist/assets/ro-DAOiSqwr.js +0 -1
  198. package/dist/assets/rruleset-Qg0TbHC_.js +0 -7
  199. package/dist/assets/rules-C-4EoouS.js +0 -1
  200. package/dist/assets/save-A8XnzzXZ.js +0 -1
  201. package/dist/assets/sidebar-Dbvn11Db.js +0 -1
  202. package/dist/assets/stateManager-845a3300.esm-BhBFYHat.js +0 -4
  203. package/dist/assets/translations-u5Qaabj8.js +0 -1
  204. package/dist/assets/undo-BK07_7QN.js +0 -1
  205. package/dist/assets/useClient-BrFMIo4b.js +0 -1
  206. package/dist/assets/users-BouhAiNc.js +0 -1
  207. package/dist/assets/vocabularies-x3dq3N13.js +0 -1
  208. package/dist/assets/workflow-B0qjcbVe.js +0 -1
  209. package/dist/assets/zh_CN-eXXUKVGT.js +0 -1
  210. package/dist/client/.vite/ssr-manifest.json +0 -44443
  211. package/dist/client/android-chrome-192x192.png +0 -0
  212. package/dist/client/android-chrome-512x512.png +0 -0
  213. package/dist/client/apple-touch-icon.png +0 -0
  214. package/dist/client/assets/Add-CUwRE6eq.js +0 -1
  215. package/dist/client/assets/AddRule-DSFiKef1.js +0 -1
  216. package/dist/client/assets/AddonsControlpanel-C6Q8GWZM.js +0 -1
  217. package/dist/client/assets/Aliases-BqlvnmTi.js +0 -1
  218. package/dist/client/assets/Aliases-FQ5jo7iQ.js +0 -1
  219. package/dist/client/assets/AlignWidget-CCQ8VpM1.js +0 -1
  220. package/dist/client/assets/ArrayWidget-CX0k9WCr.js +0 -2
  221. package/dist/client/assets/BlockDataForm-DvgCpCxy.js +0 -1
  222. package/dist/client/assets/BlocksForm-CTDjl09L.js +0 -2
  223. package/dist/client/assets/BlocksToolbar-Tq18mPLi.js +0 -1
  224. package/dist/client/assets/ButtonsWidget-uO96wErC.js +0 -1
  225. package/dist/client/assets/ByDayField-BZ3N4ASQ.js +0 -1
  226. package/dist/client/assets/ChangePassword-CMuaFMBI.js +0 -1
  227. package/dist/client/assets/CheckboxWidget-Cdn9sM5i.js +0 -1
  228. package/dist/client/assets/ColorPickerWidget-CbZGSU8b.js +0 -1
  229. package/dist/client/assets/CommentEditModal-DpnUn4Z5.js +0 -1
  230. package/dist/client/assets/Comments-CjKXklVx.js +0 -1
  231. package/dist/client/assets/ConfigureRule-BRQ38Aew.js +0 -1
  232. package/dist/client/assets/Confirm-CzWNQ0bN.js +0 -1
  233. package/dist/client/assets/ContactForm-BOqiQ2no.js +0 -1
  234. package/dist/client/assets/ContentType-BU-FjS9z.js +0 -1
  235. package/dist/client/assets/ContentTypeLayout-hu7U-BZZ.js +0 -1
  236. package/dist/client/assets/ContentTypeSchema-C9Xy-aJp.js +0 -1
  237. package/dist/client/assets/ContentTypes-Bx_fdzPJ.js +0 -1
  238. package/dist/client/assets/Contents-vyxUuwEK.js +0 -2
  239. package/dist/client/assets/ContentsBreadcrumbs-CbQV41BN.js +0 -1
  240. package/dist/client/assets/ContentsIndexHeader-CaMIsaVK.js +0 -1
  241. package/dist/client/assets/ContentsItem-Cfmgtdnx.js +0 -1
  242. package/dist/client/assets/ContentsPropertiesModal-Bd_4FSuU.js +0 -1
  243. package/dist/client/assets/ContentsRenameModal-O1gT1OXP.js +0 -1
  244. package/dist/client/assets/ContentsTagsModal-B5Uikj5H.js +0 -1
  245. package/dist/client/assets/ContentsUploadModal-CGqKr7JY.js +0 -5
  246. package/dist/client/assets/ContentsWorkflowModal-DzztHiMB.js +0 -1
  247. package/dist/client/assets/Controlpanel-wPS99xKY.js +0 -1
  248. package/dist/client/assets/Controlpanels-Cck4ENpb.js +0 -1
  249. package/dist/client/assets/CreateTranslation-YNXafB67.js +0 -1
  250. package/dist/client/assets/DatabaseInformation-Bs7bp6nk.js +0 -1
  251. package/dist/client/assets/DatetimeWidget-BPaVyGfj.js +0 -2
  252. package/dist/client/assets/DatetimeWidget-BdaHrXzK.css +0 -1
  253. package/dist/client/assets/Delete-3SPCpAWI.js +0 -1
  254. package/dist/client/assets/Diff-DdohRcsu.js +0 -2
  255. package/dist/client/assets/DiffField-D-LH2k2t.js +0 -42
  256. package/dist/client/assets/Divider-D6HRmbj6.js +0 -1
  257. package/dist/client/assets/DragDropList-D0TZ7goF.js +0 -1
  258. package/dist/client/assets/DynamicRowHeightList-Cs_ETNBZ.js +0 -2
  259. package/dist/client/assets/Edit-BHoEOCyM.js +0 -1
  260. package/dist/client/assets/EditRule-xqs30O6J.js +0 -1
  261. package/dist/client/assets/EmailWidget-BRSh3Mta.js +0 -1
  262. package/dist/client/assets/Error-Bnmu371u.js +0 -1
  263. package/dist/client/assets/EventDatesInfo-DuFJvWM9.js +0 -2
  264. package/dist/client/assets/EventView-D_JA03il.js +0 -2
  265. package/dist/client/assets/Field-B4SWqX3L.js +0 -1
  266. package/dist/client/assets/FileWidget-DfpYuSPY.js +0 -2
  267. package/dist/client/assets/Form-71MDgstP.js +0 -1
  268. package/dist/client/assets/FormattedRelativeDate-Bz7UlQwo.js +0 -1
  269. package/dist/client/assets/GroupsControlpanel-BKTIV66v.js +0 -1
  270. package/dist/client/assets/History-Din4KG5Q.js +0 -1
  271. package/dist/client/assets/IdWidget-DsfSWcqq.js +0 -1
  272. package/dist/client/assets/ImageSizeWidget-CcXetpRz.js +0 -1
  273. package/dist/client/assets/InlineForm-BalXKbf0.js +0 -1
  274. package/dist/client/assets/InternalUrlWidget-D7fPqZu7.js +0 -1
  275. package/dist/client/assets/LinksToItem-DkQpScDl.js +0 -1
  276. package/dist/client/assets/Login-PW4fNYgr.js +0 -1
  277. package/dist/client/assets/Logout-DBFMoCVd.js +0 -1
  278. package/dist/client/assets/ManageTranslations-BItOeQO4.js +0 -1
  279. package/dist/client/assets/ModalForm-Df5NZdmP.js +0 -1
  280. package/dist/client/assets/ModerateComments-N15vSOfs.js +0 -1
  281. package/dist/client/assets/MonthOfTheYearField-i_Zcrkjw.js +0 -1
  282. package/dist/client/assets/NumberWidget-CL1krBh5.js +0 -1
  283. package/dist/client/assets/ObjectBrowserWidget-DRPqyiFh.js +0 -1
  284. package/dist/client/assets/ObjectListWidget-BhiLosyZ.js +0 -2
  285. package/dist/client/assets/ObjectWidget-DEEZZbak.js +0 -1
  286. package/dist/client/assets/Occurences-BZzoeqNF.js +0 -1
  287. package/dist/client/assets/Order-BYtwjfSa.js +0 -5
  288. package/dist/client/assets/Pagination-BESLtXMZ.js +0 -1
  289. package/dist/client/assets/PasswordReset-DiSjCl9C.js +0 -1
  290. package/dist/client/assets/PasswordWidget-IYXgux5Y.js +0 -1
  291. package/dist/client/assets/PersonalInformation-Dx_D-a-X.js +0 -1
  292. package/dist/client/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
  293. package/dist/client/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
  294. package/dist/client/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
  295. package/dist/client/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
  296. package/dist/client/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
  297. package/dist/client/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
  298. package/dist/client/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
  299. package/dist/client/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
  300. package/dist/client/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
  301. package/dist/client/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
  302. package/dist/client/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
  303. package/dist/client/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
  304. package/dist/client/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
  305. package/dist/client/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
  306. package/dist/client/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
  307. package/dist/client/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
  308. package/dist/client/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
  309. package/dist/client/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
  310. package/dist/client/assets/QuerySortOnWidget-DYk7Tb1j.js +0 -2
  311. package/dist/client/assets/QueryWidget-hV1ixqpQ.js +0 -2
  312. package/dist/client/assets/QuerystringWidget-CIAF2GzY.js +0 -1
  313. package/dist/client/assets/RecurrenceWidget-BQeiEr0q.js +0 -2
  314. package/dist/client/assets/ReferenceWidget-DlWSWesX.js +0 -1
  315. package/dist/client/assets/Register-BC37zowD.js +0 -1
  316. package/dist/client/assets/RegistryImageWidget-C9HNFTF3.js +0 -2
  317. package/dist/client/assets/Relations-LLr95Dit.js +0 -1
  318. package/dist/client/assets/RenderGroups-Cp2wNEW5.js +0 -1
  319. package/dist/client/assets/RenderUsers-DoZyA8Fg.js +0 -1
  320. package/dist/client/assets/RequestPasswordReset-I3mmzPqO.js +0 -1
  321. package/dist/client/assets/Rules-BDUIGSJQ.js +0 -1
  322. package/dist/client/assets/Rules-CFPICqnM.js +0 -1
  323. package/dist/client/assets/SchemaWidget-BZHoA4gu.js +0 -5
  324. package/dist/client/assets/Search-Dn2aeBTL.js +0 -1
  325. package/dist/client/assets/SelectAutoComplete-cD2YuhbD.js +0 -2
  326. package/dist/client/assets/SelectMetadataField-B8dXJ3tz.js +0 -2
  327. package/dist/client/assets/SelectUtils-DlDXMB8W.js +0 -1
  328. package/dist/client/assets/SelectWidget-C21VwFjR.js +0 -2
  329. package/dist/client/assets/Sharing-jzxg0esF.js +0 -1
  330. package/dist/client/assets/Sidebar-HHWPAF1-.js +0 -1
  331. package/dist/client/assets/Sitemap-DH_8LhFG.js +0 -1
  332. package/dist/client/assets/TextWidget-1NA5G8H3.js +0 -1
  333. package/dist/client/assets/TextareaWidget-D8wRZrM-.js +0 -1
  334. package/dist/client/assets/TokenWidget-DXRZ2TGd.js +0 -2
  335. package/dist/client/assets/Toolbar-hcuCtPhN.js +0 -2
  336. package/dist/client/assets/TranslationObject-B39zMKOs.js +0 -1
  337. package/dist/client/assets/UndoControlpanel-Dn57qiRw.js +0 -1
  338. package/dist/client/assets/UndoToolbar-OcDVcNUK.js +0 -1
  339. package/dist/client/assets/UpgradeControlPanel-Dq9CHVWL.js +0 -1
  340. package/dist/client/assets/UrlWidget-CyoQZy_y.js +0 -1
  341. package/dist/client/assets/User-DYAlCOsc.js +0 -1
  342. package/dist/client/assets/UserGroupMembershipControlPanel-ClDiBW73.js +0 -1
  343. package/dist/client/assets/UsersControlpanel-CSg45VuW.js +0 -1
  344. package/dist/client/assets/VersionOverview-BbnLCVXo.js +0 -1
  345. package/dist/client/assets/VocabularyTermsWidget-CldBc7SS.js +0 -2
  346. package/dist/client/assets/WeekdayOfTheMonthField-CzfnMD-p.js +0 -1
  347. package/dist/client/assets/WysiwygWidget-IO58Z5Hp.js +0 -1
  348. package/dist/client/assets/add-user-C_fRj14n.js +0 -1
  349. package/dist/client/assets/aliases-DQ8WKfto.js +0 -1
  350. package/dist/client/assets/ca-DPz_x4tN.js +0 -1
  351. package/dist/client/assets/ca2-DPz_x4tN.js +0 -1
  352. package/dist/client/assets/cut-ZxaZMyVt.js +0 -1
  353. package/dist/client/assets/de-CEfDIAIe.js +0 -1
  354. package/dist/client/assets/drag-CfL-m2gM.js +0 -1
  355. package/dist/client/assets/en-UGAeOB73.js +0 -1
  356. package/dist/client/assets/es-bTR5ZO7p.js +0 -1
  357. package/dist/client/assets/eu-ClGcMWvo.js +0 -1
  358. package/dist/client/assets/fi-Cb9XYMls.js +0 -1
  359. package/dist/client/assets/fr-paTim4vs.js +0 -1
  360. package/dist/client/assets/groups-DDbRmAiS.js +0 -1
  361. package/dist/client/assets/hi-wfjyKWJi.js +0 -1
  362. package/dist/client/assets/history-BE3e3tJX.js +0 -1
  363. package/dist/client/assets/icons-BvLvFD6l.ttf +0 -0
  364. package/dist/client/assets/icons-DEAbt7RB.woff +0 -0
  365. package/dist/client/assets/icons-DtZ6carP.eot +0 -0
  366. package/dist/client/assets/icons-hSdpWXN3.svg +0 -320
  367. package/dist/client/assets/image-gallery-BQRpobkJ.js +0 -1
  368. package/dist/client/assets/index-BHHbVxOw.js +0 -1
  369. package/dist/client/assets/index-BkdKjjmJ.js +0 -3
  370. package/dist/client/assets/index-C8dkivrQ.js +0 -1
  371. package/dist/client/assets/index-D1_AVXIm.js +0 -1
  372. package/dist/client/assets/index-D27Aat_y.css +0 -346
  373. package/dist/client/assets/index-Dfhzd_0Q.js +0 -28
  374. package/dist/client/assets/index-DjC7ygxP.js +0 -2
  375. package/dist/client/assets/index-R10CHN0W.js +0 -299
  376. package/dist/client/assets/it-DefHMwCV.js +0 -1
  377. package/dist/client/assets/ja-ChtpWCYw.js +0 -1
  378. package/dist/client/assets/memoize-one.esm-CcMeOnPo.js +0 -1
  379. package/dist/client/assets/messages-D53aTvyU.js +0 -1
  380. package/dist/client/assets/nl-SQksV7ER.js +0 -1
  381. package/dist/client/assets/objectWithoutProperties-DJfFCfi7.js +0 -1
  382. package/dist/client/assets/paste-BecFEOpX.js +0 -1
  383. package/dist/client/assets/plone-CrIeS8BF.js +0 -1
  384. package/dist/client/assets/prism-markup-DpNACz_g.js +0 -1
  385. package/dist/client/assets/pt-aWkeVAjQ.js +0 -1
  386. package/dist/client/assets/pt_BR-77wXUzSL.js +0 -1
  387. package/dist/client/assets/react-beautiful-dnd.esm-kgQsny0G.js +0 -61
  388. package/dist/client/assets/react-lifecycles-compat.es-AfN2QaV3.js +0 -9
  389. package/dist/client/assets/react-select.esm-B_zbeWFZ.js +0 -1
  390. package/dist/client/assets/react-select.esm-C5HgAv8T.js +0 -1
  391. package/dist/client/assets/react-select.esm-D6SOKyar.js +0 -1
  392. package/dist/client/assets/relations-C8He-c7q.js +0 -1
  393. package/dist/client/assets/ro-DAOiSqwr.js +0 -1
  394. package/dist/client/assets/rruleset-B-gU6Vu6.js +0 -7
  395. package/dist/client/assets/rules-gMbfzj9b.js +0 -1
  396. package/dist/client/assets/save-A8XnzzXZ.js +0 -1
  397. package/dist/client/assets/sidebar-Cg9xJ3Wn.js +0 -1
  398. package/dist/client/assets/stateManager-845a3300.esm-FHbDYpjV.js +0 -4
  399. package/dist/client/assets/translations-Ch2bqGLg.js +0 -1
  400. package/dist/client/assets/undo-BK07_7QN.js +0 -1
  401. package/dist/client/assets/useClient-BEoxUiuE.js +0 -1
  402. package/dist/client/assets/users-D9kPg8yt.js +0 -1
  403. package/dist/client/assets/vocabularies-DlvvsO0O.js +0 -1
  404. package/dist/client/assets/workflow-CHtwvb_4.js +0 -1
  405. package/dist/client/assets/zh_CN-eXXUKVGT.js +0 -1
  406. package/dist/client/favicon-16x16.png +0 -0
  407. package/dist/client/favicon-32x32.png +0 -0
  408. package/dist/client/favicon.ico +0 -0
  409. package/dist/client/icon.svg +0 -13
  410. package/dist/client/index.html +0 -14
  411. package/dist/client/index.html.spa +0 -34
  412. package/dist/client/robots.txt +0 -2
  413. package/dist/client/site.webmanifest +0 -19
  414. package/dist/favicon-16x16.png +0 -0
  415. package/dist/favicon-32x32.png +0 -0
  416. package/dist/favicon.ico +0 -0
  417. package/dist/icon.svg +0 -13
  418. package/dist/index.html +0 -14
  419. package/dist/index.html.spa +0 -34
  420. package/dist/robots.txt +0 -2
  421. package/dist/server/android-chrome-192x192.png +0 -0
  422. package/dist/server/android-chrome-512x512.png +0 -0
  423. package/dist/server/apple-touch-icon.png +0 -0
  424. package/dist/server/assets/Add-CsJoCji4.js +0 -507
  425. package/dist/server/assets/AddRule-cE7fxqDi.js +0 -392
  426. package/dist/server/assets/AddonsControlpanel-W-JmCCQZ.js +0 -555
  427. package/dist/server/assets/Aliases-CDNyL3r1.js +0 -399
  428. package/dist/server/assets/Aliases-tMadX250.js +0 -568
  429. package/dist/server/assets/AlignWidget-BAMFIDm-.js +0 -125
  430. package/dist/server/assets/ArrayWidget-CgfS8hDH.js +0 -363
  431. package/dist/server/assets/BlockDataForm-zfD1scIv.js +0 -92
  432. package/dist/server/assets/BlocksForm-DW5cAojg.js +0 -752
  433. package/dist/server/assets/BlocksToolbar-B9n_ff9E.js +0 -277
  434. package/dist/server/assets/ButtonsWidget-BoUEtgpa.js +0 -97
  435. package/dist/server/assets/ByDayField-C6SuyhPy.js +0 -118
  436. package/dist/server/assets/ChangePassword-K3-cTffr.js +0 -217
  437. package/dist/server/assets/CheckboxWidget-C2UdwJnU.js +0 -108
  438. package/dist/server/assets/ColorPickerWidget-C3Fs64WC.js +0 -72
  439. package/dist/server/assets/CommentEditModal-CJIT5LNs.js +0 -144
  440. package/dist/server/assets/Comments-BYGPCvYn.js +0 -416
  441. package/dist/server/assets/ConfigureRule-DJaR8x5h.js +0 -1338
  442. package/dist/server/assets/ContactForm-D2pQPuAd.js +0 -246
  443. package/dist/server/assets/ContentType-BHuuMMOP.js +0 -318
  444. package/dist/server/assets/ContentTypeLayout-4t4HDZ3j.js +0 -547
  445. package/dist/server/assets/ContentTypeSchema-BV_tFkff.js +0 -383
  446. package/dist/server/assets/ContentTypes-C40JO5N_.js +0 -567
  447. package/dist/server/assets/Contents-BOn6l3S9.js +0 -2364
  448. package/dist/server/assets/ContentsBreadcrumbs-Dtyd6Hr0.js +0 -153
  449. package/dist/server/assets/ContentsIndexHeader-DxJAuKwb.js +0 -97
  450. package/dist/server/assets/ContentsItem-bD7oEcmI.js +0 -446
  451. package/dist/server/assets/ContentsPropertiesModal-q9wA0Aal.js +0 -231
  452. package/dist/server/assets/ContentsRenameModal-Bk9lIkwt.js +0 -181
  453. package/dist/server/assets/ContentsTagsModal-C-gTZFmZ.js +0 -168
  454. package/dist/server/assets/ContentsUploadModal-DiUUlQ5S.js +0 -340
  455. package/dist/server/assets/ContentsWorkflowModal-CAc4f94G.js +0 -177
  456. package/dist/server/assets/Controlpanel-HK3BGM-X.js +0 -310
  457. package/dist/server/assets/Controlpanels-DyXD6DdO.js +0 -310
  458. package/dist/server/assets/CreateTranslation-DG5LTQTQ.js +0 -112
  459. package/dist/server/assets/DatabaseInformation-ChVnavys.js +0 -241
  460. package/dist/server/assets/DatetimeWidget-CHdttszV.js +0 -271
  461. package/dist/server/assets/Delete-Cx_tWSDi.js +0 -188
  462. package/dist/server/assets/Diff-Ddx1DMp8.js +0 -415
  463. package/dist/server/assets/DiffField-BcZUPjLc.js +0 -195
  464. package/dist/server/assets/DragDropList-CiuXlWfI.js +0 -164
  465. package/dist/server/assets/DynamicRowHeightList-BomAJzxz.js +0 -60
  466. package/dist/server/assets/Edit-DAIHguhl.js +0 -669
  467. package/dist/server/assets/EditRule-lTwgcp6X.js +0 -423
  468. package/dist/server/assets/EmailWidget-DPCyfiXg.js +0 -129
  469. package/dist/server/assets/Error-MJ-ObF_2.js +0 -21
  470. package/dist/server/assets/EventDatesInfo-CtX7N3Lc.js +0 -171
  471. package/dist/server/assets/EventView-r4SE_kC7.js +0 -275
  472. package/dist/server/assets/Field-kKcQmlbv.js +0 -184
  473. package/dist/server/assets/FileWidget-B3jY_tIe.js +0 -205
  474. package/dist/server/assets/Form-BqwUy8yR.js +0 -959
  475. package/dist/server/assets/FormattedRelativeDate-eSbRd-qW.js +0 -48
  476. package/dist/server/assets/GroupsControlpanel-DjZK6zeD.js +0 -697
  477. package/dist/server/assets/History-CGuT0Gxk.js +0 -373
  478. package/dist/server/assets/IdWidget-DbyITK61.js +0 -217
  479. package/dist/server/assets/ImageSizeWidget-DKY4NccJ.js +0 -136
  480. package/dist/server/assets/InlineForm-D45kJH2i.js +0 -283
  481. package/dist/server/assets/InternalUrlWidget-B6sRTbIQ.js +0 -192
  482. package/dist/server/assets/LinksToItem-6uMHi4JH.js +0 -280
  483. package/dist/server/assets/Login-BnWfiyxk.js +0 -275
  484. package/dist/server/assets/Logout-DDzsV2_q.js +0 -115
  485. package/dist/server/assets/ManageTranslations-DBpk3SPh.js +0 -316
  486. package/dist/server/assets/ModalForm-BFUz4-5h.js +0 -343
  487. package/dist/server/assets/ModerateComments-BSWE6DLB.js +0 -332
  488. package/dist/server/assets/MonthOfTheYearField-BKVtfnMh.js +0 -110
  489. package/dist/server/assets/NumberWidget-D2oZIOtl.js +0 -129
  490. package/dist/server/assets/ObjectBrowserWidget-DwTYxap2.js +0 -420
  491. package/dist/server/assets/ObjectListWidget-DddssDcY.js +0 -258
  492. package/dist/server/assets/ObjectWidget-DAbu4vKd.js +0 -160
  493. package/dist/server/assets/Occurences-Zl3kp-s8.js +0 -223
  494. package/dist/server/assets/Order-DYralO8T.js +0 -586
  495. package/dist/server/assets/Pagination-DhaW_lzc.js +0 -98
  496. package/dist/server/assets/PasswordReset-XB45O1K2.js +0 -336
  497. package/dist/server/assets/PasswordWidget-CvKRkTK-.js +0 -131
  498. package/dist/server/assets/PersonalInformation--cOokZv2.js +0 -78
  499. package/dist/server/assets/QuerySortOnWidget-BSGAZOfo.js +0 -136
  500. package/dist/server/assets/QueryWidget-D8pt9fPj.js +0 -492
  501. package/dist/server/assets/QuerystringWidget-4LGKA9EF.js +0 -176
  502. package/dist/server/assets/RecurrenceWidget-DmaZUmHT.js +0 -1426
  503. package/dist/server/assets/ReferenceWidget-BYkwGmcC.js +0 -236
  504. package/dist/server/assets/Register-DCPdPToE.js +0 -185
  505. package/dist/server/assets/RegistryImageWidget-Clx3uX9X.js +0 -189
  506. package/dist/server/assets/Relations-HXFX3OhR.js +0 -1092
  507. package/dist/server/assets/RenderGroups-15rVe2q0.js +0 -134
  508. package/dist/server/assets/RenderUsers-DQoVtZTV.js +0 -254
  509. package/dist/server/assets/RequestPasswordReset-DoEfaZxv.js +0 -203
  510. package/dist/server/assets/Rules-C368LdtM.js +0 -557
  511. package/dist/server/assets/Rules-DEEwiG_G.js +0 -456
  512. package/dist/server/assets/SchemaWidget-42TNEpHs.js +0 -1392
  513. package/dist/server/assets/Search-Cj9Vf745.js +0 -417
  514. package/dist/server/assets/SelectAutoComplete-QN8lOuc8.js +0 -279
  515. package/dist/server/assets/SelectMetadataField-CVmZ9snw.js +0 -184
  516. package/dist/server/assets/SelectUtils-CfKnO3Pp.js +0 -72
  517. package/dist/server/assets/SelectWidget-EYyEok6L.js +0 -317
  518. package/dist/server/assets/Sharing-lbff3IeO.js +0 -579
  519. package/dist/server/assets/Sidebar-DuoR_j80.js +0 -246
  520. package/dist/server/assets/Sitemap-DyY1fP-7.js +0 -164
  521. package/dist/server/assets/TextWidget-BhMn8hi_.js +0 -156
  522. package/dist/server/assets/TextareaWidget-BD3faCaG.js +0 -125
  523. package/dist/server/assets/TokenWidget-BzMjib_o.js +0 -244
  524. package/dist/server/assets/Toolbar-DVsVq7NQ.js +0 -1695
  525. package/dist/server/assets/TranslationObject-Cu7Oz0D_.js +0 -120
  526. package/dist/server/assets/UndoControlpanel-CfSOfvIf.js +0 -690
  527. package/dist/server/assets/UndoToolbar-DIbEtI6_.js +0 -226
  528. package/dist/server/assets/UpgradeControlPanel-DqSvBsKg.js +0 -397
  529. package/dist/server/assets/UrlWidget-C0_i8u8y.js +0 -194
  530. package/dist/server/assets/User-CeYa32LY.js +0 -21
  531. package/dist/server/assets/UserGroupMembershipControlPanel-GJ1xAI2H.js +0 -635
  532. package/dist/server/assets/UsersControlpanel-D_FsBPMW.js +0 -752
  533. package/dist/server/assets/VersionOverview-CKK4Mh4X.js +0 -577
  534. package/dist/server/assets/VocabularyTermsWidget-CErDWtRU.js +0 -311
  535. package/dist/server/assets/WeekdayOfTheMonthField-Cr_GRGfk.js +0 -97
  536. package/dist/server/assets/WysiwygWidget-lCJy28BX.js +0 -71
  537. package/dist/server/assets/add-user-OjrbLPze.js +0 -15
  538. package/dist/server/assets/aliases-C1e1Zo30.js +0 -36
  539. package/dist/server/assets/ca-DyGhRQw8.js +0 -1582
  540. package/dist/server/assets/ca2-BGpXXCA_.js +0 -1582
  541. package/dist/server/assets/cut-BEOWxek2.js +0 -6
  542. package/dist/server/assets/de-C9Bn7Rn5.js +0 -1605
  543. package/dist/server/assets/drag-DY7wFRIh.js +0 -4
  544. package/dist/server/assets/en-BmNu-gsU.js +0 -1605
  545. package/dist/server/assets/es-XH30tkMP.js +0 -1582
  546. package/dist/server/assets/eu-VsSby9_e.js +0 -1582
  547. package/dist/server/assets/fi-BRqySjmD.js +0 -1582
  548. package/dist/server/assets/fr-DWx9W4gK.js +0 -1582
  549. package/dist/server/assets/groups-DlLziArH.js +0 -57
  550. package/dist/server/assets/hi-CJ8Pz8K_.js +0 -1582
  551. package/dist/server/assets/history-Di4xw5JV.js +0 -24
  552. package/dist/server/assets/index-7OxxMyWS.js +0 -61
  553. package/dist/server/assets/it-Db41lwPq.js +0 -1582
  554. package/dist/server/assets/ja-sRZcO51F.js +0 -1582
  555. package/dist/server/assets/messages-Daz-GFAC.js +0 -9
  556. package/dist/server/assets/nl-CH7F8zGZ.js +0 -1582
  557. package/dist/server/assets/paste-CtDNO5f5.js +0 -4
  558. package/dist/server/assets/plone-DmfQ132L.js +0 -4
  559. package/dist/server/assets/pt-BWnCu7AF.js +0 -1582
  560. package/dist/server/assets/pt_BR-D2d5lTnr.js +0 -1582
  561. package/dist/server/assets/relations-DpP4v3e7.js +0 -63
  562. package/dist/server/assets/ro-BlUnfGvL.js +0 -1582
  563. package/dist/server/assets/rules-BR_HXhIG.js +0 -261
  564. package/dist/server/assets/save-C0BIu8AK.js +0 -4
  565. package/dist/server/assets/sidebar-BGq8uRxG.js +0 -23
  566. package/dist/server/assets/translations-DicXGvqf.js +0 -39
  567. package/dist/server/assets/undo-lQM6Vhc7.js +0 -4
  568. package/dist/server/assets/useClient-_7WynRVZ.js +0 -11
  569. package/dist/server/assets/users-BY0qskQF.js +0 -112
  570. package/dist/server/assets/vocabularies-C3rWoW1K.js +0 -90
  571. package/dist/server/assets/zh_CN-Cy1xbPRJ.js +0 -1582
  572. package/dist/server/entry-server.js +0 -32003
  573. package/dist/server/favicon-16x16.png +0 -0
  574. package/dist/server/favicon-32x32.png +0 -0
  575. package/dist/server/favicon.ico +0 -0
  576. package/dist/server/icon.svg +0 -13
  577. package/dist/server/index.html.spa +0 -34
  578. package/dist/server/robots.txt +0 -2
  579. package/dist/server/site.webmanifest +0 -19
  580. package/dist/site.webmanifest +0 -19
  581. package/locales/ca2.json +0 -1
  582. package/vite-plugins/volto.js +0 -30
@@ -1,1338 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { jsxs, jsx } from "react/jsx-runtime";
5
- import React__default, { Component } from "react";
6
- import PropTypes from "prop-types";
7
- import { connect } from "react-redux";
8
- import { compose } from "redux";
9
- import { Link } from "react-router-dom";
10
- import { be as ModalForm, b as getBaseUrl, T as Toast, bI as getParentUrl, H as HelmetExport, I as Icon, N as UniversalLink, o as backSVG } from "../entry-server.js";
11
- import { createPortal } from "react-dom";
12
- import { Modal, Container, Segment, Grid, Card, Button, Dropdown } from "semantic-ui-react";
13
- import { injectIntl, defineMessages, FormattedMessage } from "react-intl";
14
- import { T as Toolbar } from "./Toolbar-DVsVq7NQ.js";
15
- import { k as getControlPanelRule, l as removeCondition, m as addCondition, n as editCondition, o as getCondition, p as getAction, q as removeAction, s as addAction, t as editAction, v as moveRuleCondition, w as moveRuleAction } from "./rules-BR_HXhIG.js";
16
- import { toast } from "react-toastify";
17
- import { g as getVocabulary } from "./vocabularies-C3rWoW1K.js";
18
- import "classnames";
19
- import "lodash-es";
20
- import "moment";
21
- import "react-router";
22
- import "react-router-hash-link";
23
- import "tlds";
24
- import "prepend-http";
25
- import "lodash-move";
26
- import "react-dom/server";
27
- import "react-transition-group";
28
- import "promise-file-reader";
29
- import "uuid";
30
- import "pretty-bytes";
31
- import "react-side-effect";
32
- import "github-slugger";
33
- import "slate";
34
- import "hoist-non-react-statics";
35
- import "query-string";
36
- import "slate-react";
37
- import "prettier/standalone";
38
- import "prettier/parser-html";
39
- import "prismjs/components/prism-core.js";
40
- import "react-animate-height";
41
- import "react-popper";
42
- import "react-sortable-hoc";
43
- import "react-dates/initialize.js";
44
- import "react-anchor-link-smooth-scroll";
45
- import "jwt-decode";
46
- import "react-router-config";
47
- import "react-fast-compare";
48
- import "object-assign";
49
- import "lodash-es/split.js";
50
- import "lodash-es/join.js";
51
- import "lodash-es/trim.js";
52
- import "react-cookie";
53
- import "react-intl-redux";
54
- import "universal-cookie";
55
- import "slate-hyperscript";
56
- import "is-hotkey";
57
- import "react-dropzone";
58
- import "react-intersection-observer";
59
- import "is-url";
60
- import "lodash-es/isUndefined.js";
61
- import "lodash-es/isString.js";
62
- import "redux-mock-store";
63
- import "serialize-javascript";
64
- import "superagent";
65
- import "connected-react-router";
66
- import "react-beautiful-dnd";
67
- import "detect-browser";
68
- import "locale";
69
- import "history";
70
- import "redux-thunk";
71
- import "redux-localstorage-simple";
72
- import "debug";
73
- import "express";
74
- import "http-proxy-middleware";
75
- import "./users-BY0qskQF.js";
76
- import "./User-CeYa32LY.js";
77
- import "./PersonalInformation--cOokZv2.js";
78
- const upSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<path fill-rule="evenodd" d="M30.707 17.293 18 4.586 5.293 17.293 6.707 18.707 17 8.414 17 31 19 31 19 8.414 29.293 18.707z"/>' };
79
- const downSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<path fill-rule="evenodd" d="M29.293 17.293 19 27.586 19 5 17 5 17 27.586 6.707 17.293 5.293 18.707 18 31.414 30.707 18.707z"/>' };
80
- const setSchema = (name, choices = "") => {
81
- switch (name) {
82
- case "Content type":
83
- return {
84
- fieldsets: [
85
- {
86
- id: "default",
87
- title: "default",
88
- fields: ["check_types"]
89
- }
90
- ],
91
- properties: {
92
- check_types: {
93
- title: "Content Types",
94
- isMulti: true,
95
- default: choices && choices.length > 0 ? choices[0] : "",
96
- choices
97
- }
98
- },
99
- required: ["check_types"]
100
- };
101
- case "File Extension":
102
- return {
103
- fieldsets: [
104
- {
105
- id: "default",
106
- title: "default",
107
- fields: ["file_extension"]
108
- }
109
- ],
110
- properties: {
111
- file_extension: {
112
- title: "File Extension",
113
- type: "string"
114
- }
115
- },
116
- required: ["file_extension"]
117
- };
118
- case "Workflow state":
119
- return {
120
- fieldsets: [
121
- {
122
- id: "default",
123
- title: "default",
124
- fields: ["wf_states"]
125
- }
126
- ],
127
- properties: {
128
- wf_states: {
129
- title: "Workflow State",
130
- isMulti: true,
131
- default: choices && choices.length > 0 ? choices[0] : "",
132
- choices
133
- }
134
- },
135
- required: ["wf_states"]
136
- };
137
- case "User's group":
138
- return {
139
- fieldsets: [
140
- {
141
- id: "default",
142
- title: "default",
143
- fields: ["group_names"]
144
- }
145
- ],
146
- properties: {
147
- group_names: {
148
- title: "Groups",
149
- isMulti: true,
150
- default: choices && choices.length > 0 ? choices[0] : "",
151
- choices
152
- }
153
- },
154
- required: ["group_names"]
155
- };
156
- case "User's role":
157
- return {
158
- fieldsets: [
159
- {
160
- id: "default",
161
- title: "default",
162
- fields: ["role_names"]
163
- }
164
- ],
165
- properties: {
166
- role_names: {
167
- title: "Roles",
168
- isMulti: true,
169
- default: choices && choices.length > 0 ? choices[0] : "",
170
- choices
171
- }
172
- },
173
- required: ["role_names"]
174
- };
175
- case "TALES expression":
176
- return {
177
- fieldsets: [
178
- {
179
- id: "default",
180
- title: "default",
181
- fields: ["tales_expression"]
182
- }
183
- ],
184
- properties: {
185
- tales_expression: {
186
- title: "File Extension",
187
- type: "string"
188
- }
189
- },
190
- required: ["tales_expression"]
191
- };
192
- case "Logger":
193
- return {
194
- title: "Logger",
195
- fieldsets: [
196
- {
197
- id: "default",
198
- title: "Logger Action",
199
- fields: ["targetLogger", "Level", "message"]
200
- }
201
- ],
202
- properties: {
203
- targetLogger: {
204
- title: "Logger name",
205
- type: "string"
206
- },
207
- Level: {
208
- title: "Logging level",
209
- type: "string"
210
- },
211
- message: {
212
- title: "Message",
213
- type: "string"
214
- }
215
- },
216
- required: ["targetLogger", "Level", "message"]
217
- };
218
- case "Notify user":
219
- return {
220
- title: "Notify user",
221
- fieldsets: [
222
- {
223
- id: "default",
224
- title: "Message",
225
- fields: ["message", "message_type"]
226
- }
227
- ],
228
- properties: {
229
- message: {
230
- title: "Message",
231
- type: "string"
232
- },
233
- message_type: {
234
- title: "Message Type",
235
- default: ["info", "info"],
236
- choices: [
237
- ["info", "info"],
238
- ["warning", "warning"],
239
- ["error", "error"]
240
- ]
241
- }
242
- },
243
- required: ["message", "message_type"]
244
- };
245
- case "Copy to folder":
246
- return {
247
- title: "Target folder: ",
248
- fieldsets: [
249
- {
250
- id: "default",
251
- title: "Target folder: ",
252
- fields: ["target_folder"]
253
- }
254
- ],
255
- properties: {
256
- target_folder: {
257
- title: "Target folder: ",
258
- widget: "internal_url"
259
- }
260
- },
261
- required: ["target_folder"]
262
- };
263
- case "Move to folder":
264
- return {
265
- title: "Target folder: ",
266
- fieldsets: [
267
- {
268
- id: "default",
269
- title: "Target folder: ",
270
- fields: ["target_folder"]
271
- }
272
- ],
273
- properties: {
274
- target_folder: {
275
- title: "Target folder: ",
276
- widget: "internal_url"
277
- }
278
- },
279
- required: ["target_folder"]
280
- };
281
- case "Delete object":
282
- return {
283
- title: "Delete",
284
- fieldsets: [
285
- {
286
- id: "default",
287
- title: "Target folder: ",
288
- fields: []
289
- }
290
- ],
291
- properties: {},
292
- required: []
293
- };
294
- case "Transition workflow state":
295
- return {
296
- fieldsets: [
297
- {
298
- id: "default",
299
- title: "Transition workflow state",
300
- fields: ["transition"]
301
- }
302
- ],
303
- properties: {
304
- transition: {
305
- title: "Transition workflow state",
306
- isMulti: true,
307
- default: choices && choices.length > 0 ? choices[0] : "",
308
- choices
309
- }
310
- },
311
- required: ["transition"]
312
- };
313
- case "Send email":
314
- return {
315
- title: "Send mail",
316
- fieldsets: [
317
- {
318
- id: "default",
319
- title: "Send mail",
320
- fields: [
321
- "subject",
322
- "source",
323
- "recipients",
324
- "exclude_actor",
325
- "message"
326
- ]
327
- }
328
- ],
329
- properties: {
330
- message: {
331
- title: "Message",
332
- widget: "textarea"
333
- },
334
- subject: {
335
- title: "Subject",
336
- type: "string"
337
- },
338
- source: {
339
- title: "Email source",
340
- type: "string"
341
- },
342
- recipients: {
343
- title: "Email Recipients",
344
- type: "string"
345
- },
346
- exclude_actor: {
347
- title: "Exclude actor from recipients",
348
- description: "Do not send the email to the user that did the action.",
349
- type: "boolean"
350
- }
351
- },
352
- required: ["subject", "recipients", "message"]
353
- };
354
- case "Version object":
355
- return {
356
- title: "Send mail",
357
- fieldsets: [
358
- {
359
- id: "default",
360
- title: "Send mail",
361
- fields: ["comment"]
362
- }
363
- ],
364
- properties: {
365
- comment: {
366
- title: "Comment",
367
- type: "string"
368
- }
369
- },
370
- required: ["comment"]
371
- };
372
- case "IMSv4: Retract and rename old Indicator":
373
- return {
374
- title: "Delete",
375
- fieldsets: [
376
- {
377
- id: "default",
378
- title: "Target folder: ",
379
- fields: []
380
- }
381
- ],
382
- properties: {},
383
- required: []
384
- };
385
- default:
386
- return "";
387
- }
388
- };
389
- const detectVocabulary = (type) => {
390
- switch (type) {
391
- case "Content type":
392
- return "plone.app.vocabularies.ReallyUserFriendlyTypes";
393
- case "Workflow state":
394
- return "plone.app.vocabularies.WorkflowStates";
395
- case "User's group":
396
- return "plone.app.vocabularies.Groups";
397
- case "User's role":
398
- return "plone.app.vocabularies.Roles";
399
- case "Transition workflow state":
400
- return "plone.app.vocabularies.WorkflowTransitions";
401
- default:
402
- return "";
403
- }
404
- };
405
- const processSchema = (schema) => {
406
- const properties = { ...schema.properties };
407
- Object.keys(properties).forEach((key) => {
408
- var _a;
409
- const value = properties[key];
410
- const vocabId = (_a = value == null ? void 0 : value.vocabulary) == null ? void 0 : _a["@id"];
411
- if (vocabId == null ? void 0 : vocabId.includes("@sources")) {
412
- value["widget"] = "internal_url";
413
- delete value["vocabulary"];
414
- }
415
- });
416
- const newSchema = {
417
- ...schema,
418
- properties
419
- };
420
- return newSchema;
421
- };
422
- const VariableModal = ({
423
- open,
424
- type,
425
- onClose,
426
- onOpen,
427
- onSave,
428
- value,
429
- vocabularies,
430
- getVocabulary: getVocabulary2,
431
- action,
432
- formData
433
- }) => {
434
- const [vocabularyName, setVocabularyName] = React__default.useState("");
435
- const [inputSchema, setInputSchema] = React__default.useState("");
436
- const { addview = "" } = value || {};
437
- React__default.useEffect(() => {
438
- if (value == null ? void 0 : value.title) {
439
- const detectedVocab = detectVocabulary(value.title);
440
- if (detectedVocab) {
441
- setVocabularyName(detectedVocab);
442
- getVocabulary2({ vocabNameOrURL: detectedVocab });
443
- }
444
- }
445
- }, [value, open, formData]);
446
- React__default.useEffect(() => {
447
- setInputSchema("");
448
- const rawSchema = value["@schema"] || formData["@schema"];
449
- let schema;
450
- if (rawSchema) {
451
- schema = processSchema(rawSchema);
452
- } else {
453
- const vocabularyOptions = vocabularyName && vocabularies && vocabularies[vocabularyName] && vocabularies[vocabularyName].items ? vocabularies[vocabularyName].items.map((item, i) => {
454
- return [item.value, item.label];
455
- }) : [];
456
- schema = setSchema(value.title, vocabularyOptions);
457
- }
458
- setInputSchema(schema);
459
- }, [vocabularies, open, formData, value]);
460
- const handleSave = (v) => {
461
- if (action === "add") {
462
- onSave({ ...v, type: addview });
463
- }
464
- if (action === "edit") {
465
- onSave(v);
466
- }
467
- setInputSchema("");
468
- onClose();
469
- };
470
- const handleClose = () => {
471
- setInputSchema("");
472
- setVocabularyName("");
473
- onClose();
474
- };
475
- return /* @__PURE__ */ jsxs("div", { children: [
476
- inputSchema && action === "add" && /* @__PURE__ */ jsx(
477
- ModalForm,
478
- {
479
- dimmer: /* @__PURE__ */ jsx(Modal.Dimmer, { style: { zIndex: 99 } }),
480
- open,
481
- onSubmit: (data) => handleSave(data),
482
- onCancel: handleClose,
483
- title: `Add ${value.title} ${type}`,
484
- schema: inputSchema
485
- }
486
- ),
487
- inputSchema && action === "edit" && formData && /* @__PURE__ */ jsx(
488
- ModalForm,
489
- {
490
- dimmer: /* @__PURE__ */ jsx(Modal.Dimmer, { style: { zIndex: 99 } }),
491
- open,
492
- onSubmit: (data) => handleSave(data),
493
- onCancel: handleClose,
494
- formData: formData ? formData : "",
495
- title: `Add ${value.title} ${type}`,
496
- schema: inputSchema
497
- }
498
- )
499
- ] });
500
- };
501
- const VariableModal$1 = compose(
502
- injectIntl,
503
- connect(
504
- (state, props) => ({
505
- vocabularies: state.vocabularies
506
- }),
507
- { getVocabulary }
508
- )
509
- )(VariableModal);
510
- const messages = defineMessages({
511
- back: {
512
- id: "Back",
513
- defaultMessage: "Back"
514
- },
515
- configRule: {
516
- id: "Configure content rule",
517
- defaultMessage: "Configure content rule"
518
- },
519
- success: {
520
- id: "Success",
521
- defaultMessage: "Success"
522
- },
523
- deleteCondition: {
524
- id: "Delete condition",
525
- defaultMessage: "Condition deleted"
526
- },
527
- addCondition: {
528
- id: "Add condition",
529
- defaultMessage: "Condition added"
530
- },
531
- deleteAction: {
532
- id: "Delete action",
533
- defaultMessage: "Action deleted"
534
- },
535
- addAction: {
536
- id: "Add action",
537
- defaultMessage: "Action added"
538
- },
539
- editAction: {
540
- id: "Action changed",
541
- defaultMessage: "Action changed"
542
- },
543
- editCondition: {
544
- id: "Condition changed",
545
- defaultMessage: "Condition changed"
546
- },
547
- move: {
548
- id: "Position changed",
549
- defaultMessage: "Position changed"
550
- },
551
- moveUp: {
552
- id: "Move up",
553
- defaultMessage: "Move up"
554
- },
555
- moveDown: {
556
- id: "Move down",
557
- defaultMessage: "Move down"
558
- }
559
- });
560
- class ConfigureRule extends Component {
561
- /**
562
- * Constructor
563
- * @method constructor
564
- * @param {Object} props Component properties
565
- * @constructs Rules
566
- */
567
- constructor(props) {
568
- super(props);
569
- this.openConditionModal = this.openConditionModal.bind(this);
570
- this.openActionModal = this.openActionModal.bind(this);
571
- this.handleConditionAdd = this.handleConditionAdd.bind(this);
572
- this.handleActionAdd = this.handleActionAdd.bind(this);
573
- this.openEditCondition = this.openEditCondition.bind(this);
574
- this.openEditAction = this.openEditAction.bind(this);
575
- this.handleEditCondition = this.handleEditCondition.bind(this);
576
- this.handleEditAction = this.handleEditAction.bind(this);
577
- this.state = {
578
- isClient: false,
579
- openModal: false,
580
- selConditionToAdd: "",
581
- selActionToAdd: "",
582
- selConditionToEdit: "",
583
- selActionToEdit: "",
584
- conditionFormData: "",
585
- actionFormData: ""
586
- };
587
- }
588
- /**
589
- * Component did mount
590
- * @method componentDidMount
591
- * @returns {undefined}
592
- */
593
- componentDidMount() {
594
- var _a, _b, _c;
595
- this.setState({ isClient: true });
596
- this.props.getControlPanelRule(
597
- getBaseUrl(this.props.pathname),
598
- (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id
599
- );
600
- }
601
- /**
602
- * Component did mount
603
- * @method componentDidUpdate
604
- * @returns {undefined}
605
- */
606
- componentDidUpdate(prevProps, prevState) {
607
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
608
- if (this.state.selConditionToEdit && prevState.selConditionToEdit !== this.state.selConditionToEdit) {
609
- this.props.getCondition(
610
- getBaseUrl(this.props.pathname),
611
- (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id,
612
- this.state.selConditionToEdit.idx
613
- );
614
- }
615
- if (((_e = (_d = this.props) == null ? void 0 : _d.rule) == null ? void 0 : _e.condition) && ((_g = (_f = this.props) == null ? void 0 : _f.rule) == null ? void 0 : _g.condition) !== (prevProps == null ? void 0 : prevProps.rule.condition)) {
616
- const conditionFormData = (_i = (_h = this.props) == null ? void 0 : _h.rule) == null ? void 0 : _i.condition;
617
- this.setState({ conditionFormData });
618
- }
619
- if (this.state.selActionToEdit && prevState.selActionToEdit !== this.state.selActionToEdit) {
620
- this.props.getAction(
621
- getBaseUrl(this.props.pathname),
622
- (_l = (_k = (_j = this.props) == null ? void 0 : _j.match) == null ? void 0 : _k.params) == null ? void 0 : _l.id,
623
- this.state.selActionToEdit.idx
624
- );
625
- }
626
- if (((_n = (_m = this.props) == null ? void 0 : _m.rule) == null ? void 0 : _n.action) && ((_p = (_o = this.props) == null ? void 0 : _o.rule) == null ? void 0 : _p.action) !== (prevProps == null ? void 0 : prevProps.rule.action)) {
627
- const actionFormData = (_r = (_q = this.props) == null ? void 0 : _q.rule) == null ? void 0 : _r.action;
628
- this.setState({ actionFormData });
629
- }
630
- }
631
- /**
632
- * Component will receive props
633
- * @method componentWillReceiveProps
634
- * @param {Object} nextProps Next properties
635
- * @returns {undefined}
636
- */
637
- UNSAFE_componentWillReceiveProps(nextProps) {
638
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
639
- if (this.props.rule.move.loading && nextProps.rule.move.loaded) {
640
- toast.success(
641
- /* @__PURE__ */ jsx(
642
- Toast,
643
- {
644
- success: true,
645
- title: this.props.intl.formatMessage(messages.success),
646
- content: this.props.intl.formatMessage(messages.move)
647
- }
648
- )
649
- );
650
- this.props.getControlPanelRule(
651
- getBaseUrl(this.props.pathname),
652
- (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id
653
- );
654
- }
655
- if (this.props.rule.deletecondition.loading && nextProps.rule.deletecondition.loaded) {
656
- toast.success(
657
- /* @__PURE__ */ jsx(
658
- Toast,
659
- {
660
- success: true,
661
- title: this.props.intl.formatMessage(messages.success),
662
- content: this.props.intl.formatMessage(messages.deleteCondition)
663
- }
664
- )
665
- );
666
- this.props.getControlPanelRule(
667
- getBaseUrl(this.props.pathname),
668
- (_f = (_e = (_d = this.props) == null ? void 0 : _d.match) == null ? void 0 : _e.params) == null ? void 0 : _f.id
669
- );
670
- }
671
- if (this.props.rule.editcondition.loading && nextProps.rule.editcondition.loaded) {
672
- toast.success(
673
- /* @__PURE__ */ jsx(
674
- Toast,
675
- {
676
- success: true,
677
- title: this.props.intl.formatMessage(messages.success),
678
- content: this.props.intl.formatMessage(messages.editCondition)
679
- }
680
- )
681
- );
682
- this.props.getControlPanelRule(
683
- getBaseUrl(this.props.pathname),
684
- (_i = (_h = (_g = this.props) == null ? void 0 : _g.match) == null ? void 0 : _h.params) == null ? void 0 : _i.id
685
- );
686
- }
687
- if (this.props.rule.editaction.loading && nextProps.rule.editaction.loaded) {
688
- toast.success(
689
- /* @__PURE__ */ jsx(
690
- Toast,
691
- {
692
- success: true,
693
- title: this.props.intl.formatMessage(messages.success),
694
- content: this.props.intl.formatMessage(messages.editAction)
695
- }
696
- )
697
- );
698
- this.props.getControlPanelRule(
699
- getBaseUrl(this.props.pathname),
700
- (_l = (_k = (_j = this.props) == null ? void 0 : _j.match) == null ? void 0 : _k.params) == null ? void 0 : _l.id
701
- );
702
- }
703
- if (this.props.rule.addcondition.loading && nextProps.rule.addcondition.loaded) {
704
- toast.success(
705
- /* @__PURE__ */ jsx(
706
- Toast,
707
- {
708
- success: true,
709
- title: this.props.intl.formatMessage(messages.success),
710
- content: this.props.intl.formatMessage(messages.addCondition)
711
- }
712
- )
713
- );
714
- this.props.getControlPanelRule(
715
- getBaseUrl(this.props.pathname),
716
- (_o = (_n = (_m = this.props) == null ? void 0 : _m.match) == null ? void 0 : _n.params) == null ? void 0 : _o.id
717
- );
718
- }
719
- if (this.props.rule.deleteaction.loading && nextProps.rule.deleteaction.loaded) {
720
- toast.success(
721
- /* @__PURE__ */ jsx(
722
- Toast,
723
- {
724
- success: true,
725
- title: this.props.intl.formatMessage(messages.success),
726
- content: this.props.intl.formatMessage(messages.deleteAction)
727
- }
728
- )
729
- );
730
- this.props.getControlPanelRule(
731
- getBaseUrl(this.props.pathname),
732
- (_r = (_q = (_p = this.props) == null ? void 0 : _p.match) == null ? void 0 : _q.params) == null ? void 0 : _r.id
733
- );
734
- }
735
- if (this.props.rule.addaction.loading && nextProps.rule.addaction.loaded) {
736
- toast.success(
737
- /* @__PURE__ */ jsx(
738
- Toast,
739
- {
740
- success: true,
741
- title: this.props.intl.formatMessage(messages.success),
742
- content: this.props.intl.formatMessage(messages.addAction)
743
- }
744
- )
745
- );
746
- this.props.getControlPanelRule(
747
- getBaseUrl(this.props.pathname),
748
- (_u = (_t = (_s = this.props) == null ? void 0 : _s.match) == null ? void 0 : _t.params) == null ? void 0 : _u.id
749
- );
750
- }
751
- }
752
- /**
753
- * Back/Cancel handler
754
- * @method onCancel
755
- * @returns {undefined}
756
- */
757
- onCancel() {
758
- this.props.history.push(getParentUrl(getParentUrl(this.props.pathname)));
759
- }
760
- /**
761
- * Remove condition handler
762
- * @method handleRemoveCondition
763
- * @returns {undefined}
764
- */
765
- handleRemoveCondition(conditionId) {
766
- var _a, _b, _c;
767
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
768
- this.props.removeCondition(
769
- getBaseUrl(this.props.pathname),
770
- ruleId,
771
- conditionId
772
- );
773
- }
774
- /**
775
- * Edit condition handler
776
- * @method handleEditCondition
777
- * @returns {undefined}
778
- */
779
- handleEditCondition(val) {
780
- var _a, _b, _c;
781
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
782
- if (this.state.selConditionToEdit) {
783
- this.props.editCondition(
784
- getBaseUrl(this.props.pathname),
785
- ruleId,
786
- val,
787
- this.state.selConditionToEdit.idx
788
- );
789
- }
790
- }
791
- /**
792
- * Edit action handler
793
- * @method handleEditAction
794
- * @returns {undefined}
795
- */
796
- handleEditAction(val) {
797
- var _a, _b, _c;
798
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
799
- if (this.state.selActionToEdit) {
800
- this.props.editAction(
801
- getBaseUrl(this.props.pathname),
802
- ruleId,
803
- val,
804
- this.state.selActionToEdit.idx
805
- );
806
- }
807
- }
808
- /**
809
- * open modal edit condition handler
810
- * @method openEditCondition
811
- * @returns {undefined}
812
- */
813
- openEditCondition(cond_id) {
814
- this.setState({
815
- selConditionToEdit: cond_id,
816
- openModal: true,
817
- selActionToEdit: ""
818
- });
819
- }
820
- /**
821
- * open modal edit action handler
822
- * @method openEditAction
823
- * @returns {undefined}
824
- */
825
- openEditAction(action_id) {
826
- this.setState({
827
- selActionToEdit: action_id,
828
- openModal: true,
829
- selConditionToEdit: ""
830
- });
831
- }
832
- /**
833
- * Add condition handler
834
- * @method openConditionModal
835
- * @returns {undefined}
836
- */
837
- openConditionModal() {
838
- if (this.state.selConditionToAdd) {
839
- this.setState({ openModal: true });
840
- }
841
- }
842
- /**
843
- * Condition save handler
844
- * @method handleConditionAdd
845
- * @returns {undefined}
846
- */
847
- handleConditionAdd(val) {
848
- var _a, _b, _c;
849
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
850
- this.props.addCondition(getBaseUrl(this.props.pathname), ruleId, val);
851
- this.setState({ selConditionToAdd: "" });
852
- }
853
- /**
854
- * Add action handler
855
- * @method openActionModal
856
- * @returns {undefined}
857
- */
858
- openActionModal() {
859
- this.setState({ openModal: true });
860
- }
861
- /**
862
- * Action save handler
863
- * @method handleActionAdd
864
- * @returns {undefined}
865
- */
866
- handleActionAdd(val) {
867
- var _a, _b, _c;
868
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
869
- this.props.addAction(getBaseUrl(this.props.pathname), ruleId, val);
870
- this.setState({ selConditionToAdd: "" });
871
- }
872
- /**
873
- * Remove action handler
874
- * @method handleRemoveAction
875
- * @returns {undefined}
876
- */
877
- handleRemoveAction(actionId) {
878
- var _a, _b, _c;
879
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
880
- this.props.removeAction(getBaseUrl(this.props.pathname), ruleId, actionId);
881
- }
882
- /**
883
- * Move action handler
884
- * @method handleMoveAction
885
- * @returns {undefined}
886
- */
887
- handleMoveAction(action, direction) {
888
- var _a, _b, _c;
889
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
890
- this.props.moveRuleAction(
891
- getBaseUrl(this.props.pathname),
892
- {
893
- "form.button.Move": direction === "up" ? "_move_up" : "_move_down"
894
- },
895
- ruleId,
896
- action
897
- );
898
- }
899
- /**
900
- * Move action handler
901
- * @method handleMoveCondition
902
- * @returns {undefined}
903
- */
904
- handleMoveCondition(condition, direction) {
905
- var _a, _b, _c;
906
- const ruleId = (_c = (_b = (_a = this.props) == null ? void 0 : _a.match) == null ? void 0 : _b.params) == null ? void 0 : _c.id;
907
- this.props.moveRuleCondition(
908
- getBaseUrl(this.props.pathname),
909
- {
910
- "form.button.Move": direction === "up" ? "_move_up" : "_move_down"
911
- },
912
- ruleId,
913
- condition
914
- );
915
- }
916
- /**
917
- * Render method.
918
- * @method render
919
- * @returns {string} Markup for the component.
920
- */
921
- render() {
922
- const { item = {} } = this.props.rule || {};
923
- const {
924
- actions = [],
925
- addable_actions = [],
926
- addable_conditions = [],
927
- assignments = [],
928
- conditions = [],
929
- title = ""
930
- } = item;
931
- const conditions_options = addable_conditions.map((cond) => {
932
- return { key: cond.title, text: cond.title, value: cond };
933
- });
934
- const actions_options = addable_actions.map((act) => {
935
- return { key: act.title, text: act.title, value: act };
936
- });
937
- return /* @__PURE__ */ jsxs("div", { id: "page-rule-configure", children: [
938
- /* @__PURE__ */ jsx(HelmetExport, { title: this.props.intl.formatMessage(messages.configRule) }),
939
- /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx("article", { id: "content", children: /* @__PURE__ */ jsxs(Segment.Group, { raised: true, children: [
940
- /* @__PURE__ */ jsx(Segment, { className: "primary", children: /* @__PURE__ */ jsx(
941
- FormattedMessage,
942
- {
943
- id: "Configure Content Rule: {title}",
944
- defaultMessage: "Configure Content Rule: {title}",
945
- values: { title: /* @__PURE__ */ jsx("q", { children: title }) }
946
- }
947
- ) }),
948
- /* @__PURE__ */ jsx(Segment, { className: "secondary", children: /* @__PURE__ */ jsx(
949
- FormattedMessage,
950
- {
951
- id: "Rules execute when a triggering event occurs. Rule actions will only be invoked if all the rule's conditions are met. You can add new actions and conditions using the buttons below.",
952
- defaultMessage: "Rules execute when a triggering event occurs. Rule actions will only be invoked if all the rule's conditions are met. You can add new actions and conditions using the buttons below."
953
- }
954
- ) }),
955
- /* @__PURE__ */ jsx(Segment, { children: /* @__PURE__ */ jsxs(Grid, { children: [
956
- /* @__PURE__ */ jsxs(Grid.Row, { children: [
957
- /* @__PURE__ */ jsxs(
958
- Grid.Column,
959
- {
960
- mobile: 16,
961
- tablet: 16,
962
- computer: 6,
963
- largeScreen: 6,
964
- children: [
965
- /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(
966
- FormattedMessage,
967
- {
968
- id: "If all of the following conditions are met:",
969
- defaultMessage: "If all of the following conditions are met:"
970
- }
971
- ) }),
972
- conditions && conditions.length > 0 && /* @__PURE__ */ jsx(Card.Group, { children: conditions.map((cond, i) => {
973
- return /* @__PURE__ */ jsxs(Card, { fluid: true, children: [
974
- /* @__PURE__ */ jsxs(Card.Content, { children: [
975
- /* @__PURE__ */ jsx(Card.Header, { children: /* @__PURE__ */ jsx("h4", { children: cond.title }) }),
976
- /* @__PURE__ */ jsx(Card.Description, { children: cond.summary })
977
- ] }),
978
- /* @__PURE__ */ jsxs(Card.Content, { extra: true, children: [
979
- /* @__PURE__ */ jsx(
980
- Button,
981
- {
982
- onClick: () => this.openEditCondition(cond),
983
- compact: true,
984
- size: "tiny",
985
- primary: true,
986
- children: "Edit"
987
- }
988
- ),
989
- /* @__PURE__ */ jsx(
990
- Button,
991
- {
992
- onClick: () => this.handleRemoveCondition(cond.idx),
993
- compact: true,
994
- size: "tiny",
995
- color: "youtube",
996
- children: "Remove"
997
- }
998
- ),
999
- /* @__PURE__ */ jsx(
1000
- Button,
1001
- {
1002
- compact: true,
1003
- size: "tiny",
1004
- primary: true,
1005
- disabled: cond == null ? void 0 : cond.first,
1006
- onClick: () => this.handleMoveCondition(cond.idx, "up"),
1007
- children: /* @__PURE__ */ jsx(Button.Content, { children: /* @__PURE__ */ jsx(
1008
- Icon,
1009
- {
1010
- name: upSVG,
1011
- size: "10px",
1012
- title: this.props.intl.formatMessage(
1013
- messages.moveUp
1014
- )
1015
- }
1016
- ) })
1017
- }
1018
- ),
1019
- /* @__PURE__ */ jsx(
1020
- Button,
1021
- {
1022
- compact: true,
1023
- size: "tiny",
1024
- primary: true,
1025
- disabled: cond == null ? void 0 : cond.last,
1026
- onClick: () => this.handleMoveCondition(cond.idx, "down"),
1027
- children: /* @__PURE__ */ jsx(Button.Content, { children: /* @__PURE__ */ jsx(
1028
- Icon,
1029
- {
1030
- name: downSVG,
1031
- size: "10px",
1032
- title: this.props.intl.formatMessage(
1033
- messages.moveDown
1034
- )
1035
- }
1036
- ) })
1037
- }
1038
- )
1039
- ] })
1040
- ] }, i);
1041
- }) }),
1042
- /* @__PURE__ */ jsxs(Grid.Row, { children: [
1043
- /* @__PURE__ */ jsx("h4", { style: { marginTop: "15px" }, children: /* @__PURE__ */ jsx(
1044
- FormattedMessage,
1045
- {
1046
- id: "Condition: ",
1047
- defaultMessage: "Condition: "
1048
- }
1049
- ) }),
1050
- /* @__PURE__ */ jsx(
1051
- Dropdown,
1052
- {
1053
- style: { margin: "5px 0" },
1054
- placeholder: "Select condition",
1055
- fluid: true,
1056
- selection: true,
1057
- options: conditions_options,
1058
- value: this.state.selConditionToAdd,
1059
- onChange: (e, { value }) => this.setState({ selConditionToAdd: value })
1060
- }
1061
- ),
1062
- /* @__PURE__ */ jsx(
1063
- Button,
1064
- {
1065
- compact: true,
1066
- onClick: this.openConditionModal,
1067
- primary: true,
1068
- children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Add", defaultMessage: "Add" })
1069
- }
1070
- )
1071
- ] })
1072
- ]
1073
- }
1074
- ),
1075
- /* @__PURE__ */ jsxs(
1076
- Grid.Column,
1077
- {
1078
- mobile: 16,
1079
- tablet: 16,
1080
- computer: 6,
1081
- largeScreen: 6,
1082
- children: [
1083
- /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(
1084
- FormattedMessage,
1085
- {
1086
- id: "Perform the following actions:",
1087
- defaultMessage: "Perform the following actions:"
1088
- }
1089
- ) }),
1090
- actions && actions.length > 0 && /* @__PURE__ */ jsx(Card.Group, { children: actions.map((action, i) => {
1091
- return /* @__PURE__ */ jsxs(Card, { fluid: true, children: [
1092
- /* @__PURE__ */ jsxs(Card.Content, { children: [
1093
- /* @__PURE__ */ jsx(Card.Header, { children: /* @__PURE__ */ jsx("h4", { children: action.title }) }),
1094
- /* @__PURE__ */ jsx(Card.Description, { children: action.summary })
1095
- ] }),
1096
- /* @__PURE__ */ jsxs(Card.Content, { extra: true, children: [
1097
- /* @__PURE__ */ jsx(
1098
- Button,
1099
- {
1100
- onClick: () => this.openEditAction(action),
1101
- compact: true,
1102
- size: "tiny",
1103
- primary: true,
1104
- children: "Edit"
1105
- }
1106
- ),
1107
- /* @__PURE__ */ jsx(
1108
- Button,
1109
- {
1110
- onClick: () => this.handleRemoveAction(action.idx),
1111
- compact: true,
1112
- size: "tiny",
1113
- color: "youtube",
1114
- children: "Remove"
1115
- }
1116
- ),
1117
- /* @__PURE__ */ jsx(
1118
- Button,
1119
- {
1120
- compact: true,
1121
- size: "tiny",
1122
- primary: true,
1123
- disabled: action == null ? void 0 : action.first,
1124
- onClick: () => this.handleMoveAction(action.idx, "up"),
1125
- children: /* @__PURE__ */ jsx(Button.Content, { children: /* @__PURE__ */ jsx(
1126
- Icon,
1127
- {
1128
- name: upSVG,
1129
- size: "10px",
1130
- title: this.props.intl.formatMessage(
1131
- messages.moveUp
1132
- )
1133
- }
1134
- ) })
1135
- }
1136
- ),
1137
- /* @__PURE__ */ jsx(
1138
- Button,
1139
- {
1140
- compact: true,
1141
- size: "tiny",
1142
- primary: true,
1143
- disabled: action == null ? void 0 : action.last,
1144
- onClick: () => this.handleMoveAction(action.idx, "down"),
1145
- children: /* @__PURE__ */ jsx(Button.Content, { children: /* @__PURE__ */ jsx(
1146
- Icon,
1147
- {
1148
- name: downSVG,
1149
- size: "10px",
1150
- title: this.props.intl.formatMessage(
1151
- messages.moveDown
1152
- )
1153
- }
1154
- ) })
1155
- }
1156
- )
1157
- ] })
1158
- ] }, i);
1159
- }) }),
1160
- /* @__PURE__ */ jsxs(Grid.Row, { children: [
1161
- /* @__PURE__ */ jsx("h4", { style: { marginTop: "15px" }, children: /* @__PURE__ */ jsx(
1162
- FormattedMessage,
1163
- {
1164
- id: "Action: ",
1165
- defaultMessage: "Action: "
1166
- }
1167
- ) }),
1168
- /* @__PURE__ */ jsx(
1169
- Dropdown,
1170
- {
1171
- style: { margin: "5px 0" },
1172
- placeholder: "Select action",
1173
- fluid: true,
1174
- selection: true,
1175
- options: actions_options,
1176
- onChange: (e, { value }) => this.setState({ selActionToAdd: value })
1177
- }
1178
- ),
1179
- /* @__PURE__ */ jsx(
1180
- Button,
1181
- {
1182
- compact: true,
1183
- onClick: () => this.openActionModal(),
1184
- primary: true,
1185
- children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Add", defaultMessage: "Add" })
1186
- }
1187
- )
1188
- ] })
1189
- ]
1190
- }
1191
- )
1192
- ] }),
1193
- /* @__PURE__ */ jsx(Grid.Row, { stretched: true, children: /* @__PURE__ */ jsxs(Grid.Column, { children: [
1194
- /* @__PURE__ */ jsx("h4", { children: /* @__PURE__ */ jsx(
1195
- FormattedMessage,
1196
- {
1197
- id: "Assignments",
1198
- defaultMessage: "Assignments"
1199
- }
1200
- ) }),
1201
- /* @__PURE__ */ jsx(
1202
- FormattedMessage,
1203
- {
1204
- id: "This rule is assigned to the following locations:",
1205
- defaultMessage: "This rule is assigned to the following locations:"
1206
- }
1207
- ),
1208
- assignments.map((assignment, i) => /* @__PURE__ */ jsx(
1209
- UniversalLink,
1210
- {
1211
- title: assignment.title,
1212
- href: getBaseUrl(assignment.url),
1213
- children: assignment.title
1214
- },
1215
- i
1216
- ))
1217
- ] }) })
1218
- ] }) })
1219
- ] }) }) }),
1220
- this.state.selConditionToAdd && /* @__PURE__ */ jsx(
1221
- VariableModal$1,
1222
- {
1223
- open: this.state.openModal,
1224
- onClose: () => this.setState({ openModal: false, selConditionToAdd: "" }),
1225
- onOpen: () => this.setState({ openModal: true }),
1226
- onSave: (v) => this.handleConditionAdd(v),
1227
- value: this.state.selConditionToAdd,
1228
- type: "Condition",
1229
- action: "add"
1230
- }
1231
- ),
1232
- this.state.selActionToAdd && /* @__PURE__ */ jsx(
1233
- VariableModal$1,
1234
- {
1235
- open: this.state.openModal,
1236
- onClose: () => this.setState({ openModal: false, selActionToAdd: "" }),
1237
- onOpen: () => this.setState({ openModal: true }),
1238
- onSave: (v) => this.handleActionAdd(v),
1239
- value: this.state.selActionToAdd,
1240
- type: "Action",
1241
- action: "add"
1242
- }
1243
- ),
1244
- this.state.selConditionToEdit && this.state.conditionFormData && /* @__PURE__ */ jsx(
1245
- VariableModal$1,
1246
- {
1247
- open: this.state.openModal,
1248
- onClose: () => this.setState({
1249
- openModal: false,
1250
- selConditionToEdit: "",
1251
- conditionFormData: ""
1252
- }),
1253
- onOpen: () => this.setState({ openModal: true }),
1254
- onSave: (v) => this.handleEditCondition(v),
1255
- value: this.state.selConditionToEdit,
1256
- formData: this.state.conditionFormData,
1257
- type: "Condition",
1258
- action: "edit"
1259
- }
1260
- ),
1261
- this.state.selActionToEdit && this.state.actionFormData && /* @__PURE__ */ jsx(
1262
- VariableModal$1,
1263
- {
1264
- open: this.state.openModal,
1265
- onClose: () => this.setState({
1266
- openModal: false,
1267
- selActionToEdit: "",
1268
- actionFormData: ""
1269
- }),
1270
- onOpen: () => this.setState({ openModal: true }),
1271
- onSave: this.handleEditAction,
1272
- value: this.state.selActionToEdit,
1273
- formData: this.state.actionFormData,
1274
- type: "Action",
1275
- action: "edit"
1276
- }
1277
- ),
1278
- this.state.isClient && createPortal(
1279
- /* @__PURE__ */ jsx(
1280
- Toolbar,
1281
- {
1282
- pathname: this.props.pathname,
1283
- hideDefaultViewButtons: true,
1284
- inner: /* @__PURE__ */ jsx(Link, { className: "item", to: "#", onClick: () => this.onCancel(), children: /* @__PURE__ */ jsx(
1285
- Icon,
1286
- {
1287
- name: backSVG,
1288
- className: "contents circled",
1289
- size: "30px",
1290
- title: this.props.intl.formatMessage(messages.back)
1291
- }
1292
- ) })
1293
- }
1294
- ),
1295
- document.getElementById("toolbar")
1296
- )
1297
- ] });
1298
- }
1299
- }
1300
- /**
1301
- * Property types.
1302
- * @property {Object} propTypes Property types.
1303
- * @static
1304
- */
1305
- __publicField(ConfigureRule, "propTypes", {
1306
- getControlPanelRule: PropTypes.func.isRequired,
1307
- removeCondition: PropTypes.func.isRequired,
1308
- addCondition: PropTypes.func.isRequired,
1309
- removeAction: PropTypes.func.isRequired,
1310
- addAction: PropTypes.func.isRequired,
1311
- moveRuleCondition: PropTypes.func.isRequired,
1312
- moveRuleAction: PropTypes.func.isRequired
1313
- });
1314
- const ConfigureRule$1 = compose(
1315
- injectIntl,
1316
- connect(
1317
- (state, props) => ({
1318
- pathname: props.location.pathname,
1319
- rule: state.controlpanelrule
1320
- }),
1321
- {
1322
- getControlPanelRule,
1323
- removeCondition,
1324
- addCondition,
1325
- editCondition,
1326
- getCondition,
1327
- getAction,
1328
- removeAction,
1329
- addAction,
1330
- editAction,
1331
- moveRuleCondition,
1332
- moveRuleAction
1333
- }
1334
- )
1335
- )(ConfigureRule);
1336
- export {
1337
- ConfigureRule$1 as default
1338
- };