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

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 (631) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/android-chrome-192x192.png +0 -0
  3. package/dist/android-chrome-512x512.png +0 -0
  4. package/dist/apple-touch-icon.png +0 -0
  5. package/dist/assets/Add-CA4YI1L9.js +1 -0
  6. package/dist/assets/AddRule-D3FXfjP2.js +1 -0
  7. package/dist/assets/AddonsControlpanel-BVvov68i.js +1 -0
  8. package/dist/assets/Aliases-CTeg6p2o.js +1 -0
  9. package/dist/assets/Aliases-CiYzFinq.js +1 -0
  10. package/dist/assets/AlignWidget-DOdVMFPI.js +1 -0
  11. package/dist/assets/ArrayWidget-BrkmZ5dw.js +2 -0
  12. package/dist/assets/BlockDataForm-B3mthY8C.js +1 -0
  13. package/dist/assets/BlocksForm-B4Z6BgXT.js +2 -0
  14. package/dist/assets/BlocksToolbar-QLlNn733.js +1 -0
  15. package/dist/assets/ButtonsWidget-DEMy855M.js +1 -0
  16. package/dist/assets/ByDayField-jAVQ7XPH.js +1 -0
  17. package/dist/assets/ChangePassword-6aoonCrF.js +1 -0
  18. package/dist/assets/CheckboxWidget-IMR_-sRq.js +1 -0
  19. package/dist/assets/ColorPickerWidget-Dejm2B0T.js +1 -0
  20. package/dist/assets/CommentEditModal-Dsgav7Iq.js +1 -0
  21. package/dist/assets/Comments-Bef0xvDU.js +1 -0
  22. package/dist/assets/ConfigureRule-DXI9YD9P.js +1 -0
  23. package/dist/assets/Confirm-DFyDHvrF.js +1 -0
  24. package/dist/assets/ContactForm-CQVq5Emz.js +1 -0
  25. package/dist/assets/ContentType-DiwmXeXW.js +1 -0
  26. package/dist/assets/ContentTypeLayout-DM4zSiq_.js +1 -0
  27. package/dist/assets/ContentTypeSchema-DiQYp2-x.js +1 -0
  28. package/dist/assets/ContentTypes-DNvhsL2E.js +1 -0
  29. package/dist/assets/Contents-HiCShUFN.js +2 -0
  30. package/dist/assets/ContentsBreadcrumbs-C8wbasB3.js +1 -0
  31. package/dist/assets/ContentsIndexHeader-DWLUzSSN.js +1 -0
  32. package/dist/assets/ContentsItem-lDg0F8jy.js +1 -0
  33. package/dist/assets/ContentsPropertiesModal-xyVS8Pm9.js +1 -0
  34. package/dist/assets/ContentsRenameModal-CR9og1vu.js +1 -0
  35. package/dist/assets/ContentsTagsModal-sm2mz3cz.js +1 -0
  36. package/dist/assets/ContentsUploadModal-DAvSG2iz.js +5 -0
  37. package/dist/assets/ContentsWorkflowModal-B1faSBIm.js +1 -0
  38. package/dist/assets/Controlpanel-rIBVAK5V.js +1 -0
  39. package/dist/assets/Controlpanels-yqRsYca2.js +1 -0
  40. package/dist/assets/CreateTranslation-BovC3sNf.js +1 -0
  41. package/dist/assets/DatabaseInformation-BhfKGQdR.js +1 -0
  42. package/dist/assets/DatetimeWidget-BdaHrXzK.css +1 -0
  43. package/dist/assets/DatetimeWidget-CGRn8MDB.js +2 -0
  44. package/dist/assets/Delete-Bf_oGO3l.js +1 -0
  45. package/dist/assets/Diff-BOq2GAEN.js +2 -0
  46. package/dist/assets/DiffField-URJH7cyl.js +42 -0
  47. package/dist/assets/Divider-I-Vkru5f.js +1 -0
  48. package/dist/assets/DragDropList-DGGG9KzJ.js +1 -0
  49. package/dist/assets/DynamicRowHeightList-DTGQZVrT.js +2 -0
  50. package/dist/assets/Edit-DjR75Yke.js +1 -0
  51. package/dist/assets/EditRule-BBvjH707.js +1 -0
  52. package/dist/assets/EmailWidget-Bq_6HMhS.js +1 -0
  53. package/dist/assets/Error-DgGrUrdR.js +1 -0
  54. package/dist/assets/EventDatesInfo-BBanEDzq.js +2 -0
  55. package/dist/assets/EventView-B5GwqNQP.js +2 -0
  56. package/dist/assets/Field-BivWUJ1M.js +1 -0
  57. package/dist/assets/FileWidget-Cbu5QwYg.js +2 -0
  58. package/dist/assets/Form-ZI0Zshdh.js +1 -0
  59. package/dist/assets/FormattedRelativeDate-BDqnftFO.js +1 -0
  60. package/dist/assets/GroupsControlpanel-DVw7gRP-.js +1 -0
  61. package/dist/assets/History-eh7QSqQ3.js +1 -0
  62. package/dist/assets/IdWidget-BdcHR4jR.js +1 -0
  63. package/dist/assets/ImageSizeWidget-C44x9fO8.js +1 -0
  64. package/dist/assets/InlineForm-DQFfCjzF.js +1 -0
  65. package/dist/assets/InternalUrlWidget-BJ2TlHvv.js +1 -0
  66. package/dist/assets/LinksToItem-OcO6d56I.js +1 -0
  67. package/dist/assets/Login-BwMJ6f50.js +1 -0
  68. package/dist/assets/Logout-BUHwA4DE.js +1 -0
  69. package/dist/assets/ManageTranslations-ChQ7vL2i.js +1 -0
  70. package/dist/assets/ModalForm-CvvXZSkU.js +1 -0
  71. package/dist/assets/ModerateComments-1Ov7biDm.js +1 -0
  72. package/dist/assets/MonthOfTheYearField-CM70wuIb.js +1 -0
  73. package/dist/assets/NumberWidget-DABMHQm5.js +1 -0
  74. package/dist/assets/ObjectBrowserWidget-Bh4JpoWw.js +1 -0
  75. package/dist/assets/ObjectListWidget-DznYu5qo.js +2 -0
  76. package/dist/assets/ObjectWidget-BBA-_l7E.js +1 -0
  77. package/dist/assets/Occurences-BzxgwsYx.js +1 -0
  78. package/dist/assets/Order-BtyRvLNH.js +5 -0
  79. package/dist/assets/Pagination-CJSyS-v5.js +1 -0
  80. package/dist/assets/PasswordReset-COH0dZIO.js +1 -0
  81. package/dist/assets/PasswordWidget-DoHmi1Qa.js +1 -0
  82. package/dist/assets/PersonalInformation-BnghqH8c.js +1 -0
  83. package/dist/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
  84. package/dist/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
  85. package/dist/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
  86. package/dist/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
  87. package/dist/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
  88. package/dist/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
  89. package/dist/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
  90. package/dist/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
  91. package/dist/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
  92. package/dist/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
  93. package/dist/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
  94. package/dist/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
  95. package/dist/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
  96. package/dist/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
  97. package/dist/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
  98. package/dist/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
  99. package/dist/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
  100. package/dist/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
  101. package/dist/assets/QuerySortOnWidget-souad4DL.js +2 -0
  102. package/dist/assets/QueryWidget-qk9RayXO.js +2 -0
  103. package/dist/assets/QuerystringWidget-DH5jhTLr.js +1 -0
  104. package/dist/assets/RecurrenceWidget-DnuZQPcL.js +2 -0
  105. package/dist/assets/ReferenceWidget-B4Ut0GeE.js +1 -0
  106. package/dist/assets/Register-CZJ_qhM8.js +1 -0
  107. package/dist/assets/RegistryImageWidget-CdL-rOKh.js +2 -0
  108. package/dist/assets/Relations-BwmDXEO-.js +1 -0
  109. package/dist/assets/RenderGroups-CEJGSsLf.js +1 -0
  110. package/dist/assets/RenderUsers--9m7uN_M.js +1 -0
  111. package/dist/assets/RequestPasswordReset-ClwvyAVg.js +1 -0
  112. package/dist/assets/Rules-CmCkDhXN.js +1 -0
  113. package/dist/assets/Rules-NXbkDTgW.js +1 -0
  114. package/dist/assets/SchemaWidget-B0c4tT_v.js +5 -0
  115. package/dist/assets/Search-CspR83YZ.js +1 -0
  116. package/dist/assets/SelectAutoComplete-D6sNEX-d.js +2 -0
  117. package/dist/assets/SelectMetadataField-Bp04JyaC.js +2 -0
  118. package/dist/assets/SelectUtils-BBksmIZO.js +1 -0
  119. package/dist/assets/SelectWidget-7oSuJ3oC.js +2 -0
  120. package/dist/assets/Sharing-BD2SWQfE.js +1 -0
  121. package/dist/assets/Sidebar-DgSrLVjY.js +1 -0
  122. package/dist/assets/Sitemap-YzTuoH0K.js +1 -0
  123. package/dist/assets/TextWidget-DuuGzOfb.js +1 -0
  124. package/dist/assets/TextareaWidget-Dy-lG0rT.js +1 -0
  125. package/dist/assets/TokenWidget-DPBxq9gC.js +2 -0
  126. package/dist/assets/Toolbar-DRQzi_9w.js +2 -0
  127. package/dist/assets/TranslationObject-looZSaOd.js +1 -0
  128. package/dist/assets/UndoControlpanel-DskOWXtR.js +1 -0
  129. package/dist/assets/UndoToolbar-d2m9s_d7.js +1 -0
  130. package/dist/assets/UpgradeControlPanel-D25islCR.js +1 -0
  131. package/dist/assets/UrlWidget-DVyURufw.js +1 -0
  132. package/dist/assets/User-CGkBaCm_.js +1 -0
  133. package/dist/assets/UserGroupMembershipControlPanel-GG_7FkTb.js +1 -0
  134. package/dist/assets/UsersControlpanel-baYxuzjn.js +1 -0
  135. package/dist/assets/VersionOverview-A7mgPMUR.js +1 -0
  136. package/dist/assets/VocabularyTermsWidget-M-5KcHUD.js +2 -0
  137. package/dist/assets/WeekdayOfTheMonthField-Cjj_8dDR.js +1 -0
  138. package/dist/assets/WysiwygWidget-GxnNCpDG.js +1 -0
  139. package/dist/assets/add-user-CTbv3TmR.js +1 -0
  140. package/dist/assets/aliases-C-VS65Iw.js +1 -0
  141. package/dist/assets/ca-DPz_x4tN.js +1 -0
  142. package/dist/assets/cut-ZxaZMyVt.js +1 -0
  143. package/dist/assets/de-CEfDIAIe.js +1 -0
  144. package/dist/assets/drag-CfL-m2gM.js +1 -0
  145. package/dist/assets/en-UGAeOB73.js +1 -0
  146. package/dist/assets/es-bTR5ZO7p.js +1 -0
  147. package/dist/assets/eu-ClGcMWvo.js +1 -0
  148. package/dist/assets/fi-Cb9XYMls.js +1 -0
  149. package/dist/assets/fr-paTim4vs.js +1 -0
  150. package/dist/assets/groups-pKq-wbS4.js +1 -0
  151. package/dist/assets/hi-wfjyKWJi.js +1 -0
  152. package/dist/assets/history-YklEZVTU.js +1 -0
  153. package/dist/assets/icons-BvLvFD6l.ttf +0 -0
  154. package/dist/assets/icons-DEAbt7RB.woff +0 -0
  155. package/dist/assets/icons-DtZ6carP.eot +0 -0
  156. package/dist/assets/icons-hSdpWXN3.svg +320 -0
  157. package/dist/assets/image-gallery-DpLmJ-rt.js +1 -0
  158. package/dist/assets/index-B0HjVmtS.js +2 -0
  159. package/dist/assets/index-B21wqIU_.js +1 -0
  160. package/dist/assets/index-C2wVBtsx.js +690 -0
  161. package/dist/assets/index-CVdJPLUb.js +3 -0
  162. package/dist/assets/index-CYKeo7yW.js +28 -0
  163. package/dist/assets/index-D27Aat_y.css +346 -0
  164. package/dist/assets/index-D6aBCFDE.js +1 -0
  165. package/dist/assets/index-DLUMPle8.js +1 -0
  166. package/dist/assets/it-DefHMwCV.js +1 -0
  167. package/dist/assets/ja-ChtpWCYw.js +1 -0
  168. package/dist/assets/memoize-one.esm-CcMeOnPo.js +1 -0
  169. package/dist/assets/messages-BK-H1zLr.js +1 -0
  170. package/dist/assets/nl-SQksV7ER.js +1 -0
  171. package/dist/assets/objectWithoutProperties-xAH_kqrN.js +1 -0
  172. package/dist/assets/paste-BecFEOpX.js +1 -0
  173. package/dist/assets/plone-CrIeS8BF.js +1 -0
  174. package/dist/assets/prism-markup-DpNACz_g.js +1 -0
  175. package/dist/assets/pt-aWkeVAjQ.js +1 -0
  176. package/dist/assets/pt_BR-77wXUzSL.js +1 -0
  177. package/dist/assets/react-beautiful-dnd.esm-DJMwJ8Si.js +61 -0
  178. package/dist/assets/react-lifecycles-compat.es-AfN2QaV3.js +9 -0
  179. package/dist/assets/react-select.esm-Bw9Tks6S.js +1 -0
  180. package/dist/assets/react-select.esm-DqdZW0cZ.js +1 -0
  181. package/dist/assets/react-select.esm-Dv_YRvYk.js +1 -0
  182. package/dist/assets/relations-D2Yk2g8d.js +1 -0
  183. package/dist/assets/ro-DAOiSqwr.js +1 -0
  184. package/dist/assets/rruleset-Qg0TbHC_.js +7 -0
  185. package/dist/assets/rules-C-4EoouS.js +1 -0
  186. package/dist/assets/save-A8XnzzXZ.js +1 -0
  187. package/dist/assets/sidebar-Dbvn11Db.js +1 -0
  188. package/dist/assets/stateManager-845a3300.esm-BhBFYHat.js +4 -0
  189. package/dist/assets/translations-u5Qaabj8.js +1 -0
  190. package/dist/assets/undo-BK07_7QN.js +1 -0
  191. package/dist/assets/useClient-BrFMIo4b.js +1 -0
  192. package/dist/assets/users-BouhAiNc.js +1 -0
  193. package/dist/assets/vocabularies-x3dq3N13.js +1 -0
  194. package/dist/assets/workflow-B0qjcbVe.js +1 -0
  195. package/dist/assets/zh_CN-eXXUKVGT.js +1 -0
  196. package/dist/client/.vite/ssr-manifest.json +44443 -0
  197. package/dist/client/android-chrome-192x192.png +0 -0
  198. package/dist/client/android-chrome-512x512.png +0 -0
  199. package/dist/client/apple-touch-icon.png +0 -0
  200. package/dist/client/assets/Add-CUwRE6eq.js +1 -0
  201. package/dist/client/assets/AddRule-DSFiKef1.js +1 -0
  202. package/dist/client/assets/AddonsControlpanel-C6Q8GWZM.js +1 -0
  203. package/dist/client/assets/Aliases-BqlvnmTi.js +1 -0
  204. package/dist/client/assets/Aliases-FQ5jo7iQ.js +1 -0
  205. package/dist/client/assets/AlignWidget-CCQ8VpM1.js +1 -0
  206. package/dist/client/assets/ArrayWidget-CX0k9WCr.js +2 -0
  207. package/dist/client/assets/BlockDataForm-DvgCpCxy.js +1 -0
  208. package/dist/client/assets/BlocksForm-CTDjl09L.js +2 -0
  209. package/dist/client/assets/BlocksToolbar-Tq18mPLi.js +1 -0
  210. package/dist/client/assets/ButtonsWidget-uO96wErC.js +1 -0
  211. package/dist/client/assets/ByDayField-BZ3N4ASQ.js +1 -0
  212. package/dist/client/assets/ChangePassword-CMuaFMBI.js +1 -0
  213. package/dist/client/assets/CheckboxWidget-Cdn9sM5i.js +1 -0
  214. package/dist/client/assets/ColorPickerWidget-CbZGSU8b.js +1 -0
  215. package/dist/client/assets/CommentEditModal-DpnUn4Z5.js +1 -0
  216. package/dist/client/assets/Comments-CjKXklVx.js +1 -0
  217. package/dist/client/assets/ConfigureRule-BRQ38Aew.js +1 -0
  218. package/dist/client/assets/Confirm-CzWNQ0bN.js +1 -0
  219. package/dist/client/assets/ContactForm-BOqiQ2no.js +1 -0
  220. package/dist/client/assets/ContentType-BU-FjS9z.js +1 -0
  221. package/dist/client/assets/ContentTypeLayout-hu7U-BZZ.js +1 -0
  222. package/dist/client/assets/ContentTypeSchema-C9Xy-aJp.js +1 -0
  223. package/dist/client/assets/ContentTypes-Bx_fdzPJ.js +1 -0
  224. package/dist/client/assets/Contents-vyxUuwEK.js +2 -0
  225. package/dist/client/assets/ContentsBreadcrumbs-CbQV41BN.js +1 -0
  226. package/dist/client/assets/ContentsIndexHeader-CaMIsaVK.js +1 -0
  227. package/dist/client/assets/ContentsItem-Cfmgtdnx.js +1 -0
  228. package/dist/client/assets/ContentsPropertiesModal-Bd_4FSuU.js +1 -0
  229. package/dist/client/assets/ContentsRenameModal-O1gT1OXP.js +1 -0
  230. package/dist/client/assets/ContentsTagsModal-B5Uikj5H.js +1 -0
  231. package/dist/client/assets/ContentsUploadModal-CGqKr7JY.js +5 -0
  232. package/dist/client/assets/ContentsWorkflowModal-DzztHiMB.js +1 -0
  233. package/dist/client/assets/Controlpanel-wPS99xKY.js +1 -0
  234. package/dist/client/assets/Controlpanels-Cck4ENpb.js +1 -0
  235. package/dist/client/assets/CreateTranslation-YNXafB67.js +1 -0
  236. package/dist/client/assets/DatabaseInformation-Bs7bp6nk.js +1 -0
  237. package/dist/client/assets/DatetimeWidget-BPaVyGfj.js +2 -0
  238. package/dist/client/assets/DatetimeWidget-BdaHrXzK.css +1 -0
  239. package/dist/client/assets/Delete-3SPCpAWI.js +1 -0
  240. package/dist/client/assets/Diff-DdohRcsu.js +2 -0
  241. package/dist/client/assets/DiffField-D-LH2k2t.js +42 -0
  242. package/dist/client/assets/Divider-D6HRmbj6.js +1 -0
  243. package/dist/client/assets/DragDropList-D0TZ7goF.js +1 -0
  244. package/dist/client/assets/DynamicRowHeightList-Cs_ETNBZ.js +2 -0
  245. package/dist/client/assets/Edit-BHoEOCyM.js +1 -0
  246. package/dist/client/assets/EditRule-xqs30O6J.js +1 -0
  247. package/dist/client/assets/EmailWidget-BRSh3Mta.js +1 -0
  248. package/dist/client/assets/Error-Bnmu371u.js +1 -0
  249. package/dist/client/assets/EventDatesInfo-DuFJvWM9.js +2 -0
  250. package/dist/client/assets/EventView-D_JA03il.js +2 -0
  251. package/dist/client/assets/Field-B4SWqX3L.js +1 -0
  252. package/dist/client/assets/FileWidget-DfpYuSPY.js +2 -0
  253. package/dist/client/assets/Form-71MDgstP.js +1 -0
  254. package/dist/client/assets/FormattedRelativeDate-Bz7UlQwo.js +1 -0
  255. package/dist/client/assets/GroupsControlpanel-BKTIV66v.js +1 -0
  256. package/dist/client/assets/History-Din4KG5Q.js +1 -0
  257. package/dist/client/assets/IdWidget-DsfSWcqq.js +1 -0
  258. package/dist/client/assets/ImageSizeWidget-CcXetpRz.js +1 -0
  259. package/dist/client/assets/InlineForm-BalXKbf0.js +1 -0
  260. package/dist/client/assets/InternalUrlWidget-D7fPqZu7.js +1 -0
  261. package/dist/client/assets/LinksToItem-DkQpScDl.js +1 -0
  262. package/dist/client/assets/Login-PW4fNYgr.js +1 -0
  263. package/dist/client/assets/Logout-DBFMoCVd.js +1 -0
  264. package/dist/client/assets/ManageTranslations-BItOeQO4.js +1 -0
  265. package/dist/client/assets/ModalForm-Df5NZdmP.js +1 -0
  266. package/dist/client/assets/ModerateComments-N15vSOfs.js +1 -0
  267. package/dist/client/assets/MonthOfTheYearField-i_Zcrkjw.js +1 -0
  268. package/dist/client/assets/NumberWidget-CL1krBh5.js +1 -0
  269. package/dist/client/assets/ObjectBrowserWidget-DRPqyiFh.js +1 -0
  270. package/dist/client/assets/ObjectListWidget-BhiLosyZ.js +2 -0
  271. package/dist/client/assets/ObjectWidget-DEEZZbak.js +1 -0
  272. package/dist/client/assets/Occurences-BZzoeqNF.js +1 -0
  273. package/dist/client/assets/Order-BYtwjfSa.js +5 -0
  274. package/dist/client/assets/Pagination-BESLtXMZ.js +1 -0
  275. package/dist/client/assets/PasswordReset-DiSjCl9C.js +1 -0
  276. package/dist/client/assets/PasswordWidget-IYXgux5Y.js +1 -0
  277. package/dist/client/assets/PersonalInformation-Dx_D-a-X.js +1 -0
  278. package/dist/client/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
  279. package/dist/client/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
  280. package/dist/client/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
  281. package/dist/client/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
  282. package/dist/client/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
  283. package/dist/client/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
  284. package/dist/client/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
  285. package/dist/client/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
  286. package/dist/client/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
  287. package/dist/client/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
  288. package/dist/client/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
  289. package/dist/client/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
  290. package/dist/client/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
  291. package/dist/client/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
  292. package/dist/client/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
  293. package/dist/client/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
  294. package/dist/client/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
  295. package/dist/client/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
  296. package/dist/client/assets/QuerySortOnWidget-DYk7Tb1j.js +2 -0
  297. package/dist/client/assets/QueryWidget-hV1ixqpQ.js +2 -0
  298. package/dist/client/assets/QuerystringWidget-CIAF2GzY.js +1 -0
  299. package/dist/client/assets/RecurrenceWidget-BQeiEr0q.js +2 -0
  300. package/dist/client/assets/ReferenceWidget-DlWSWesX.js +1 -0
  301. package/dist/client/assets/Register-BC37zowD.js +1 -0
  302. package/dist/client/assets/RegistryImageWidget-C9HNFTF3.js +2 -0
  303. package/dist/client/assets/Relations-LLr95Dit.js +1 -0
  304. package/dist/client/assets/RenderGroups-Cp2wNEW5.js +1 -0
  305. package/dist/client/assets/RenderUsers-DoZyA8Fg.js +1 -0
  306. package/dist/client/assets/RequestPasswordReset-I3mmzPqO.js +1 -0
  307. package/dist/client/assets/Rules-BDUIGSJQ.js +1 -0
  308. package/dist/client/assets/Rules-CFPICqnM.js +1 -0
  309. package/dist/client/assets/SchemaWidget-BZHoA4gu.js +5 -0
  310. package/dist/client/assets/Search-Dn2aeBTL.js +1 -0
  311. package/dist/client/assets/SelectAutoComplete-cD2YuhbD.js +2 -0
  312. package/dist/client/assets/SelectMetadataField-B8dXJ3tz.js +2 -0
  313. package/dist/client/assets/SelectUtils-DlDXMB8W.js +1 -0
  314. package/dist/client/assets/SelectWidget-C21VwFjR.js +2 -0
  315. package/dist/client/assets/Sharing-jzxg0esF.js +1 -0
  316. package/dist/client/assets/Sidebar-HHWPAF1-.js +1 -0
  317. package/dist/client/assets/Sitemap-DH_8LhFG.js +1 -0
  318. package/dist/client/assets/TextWidget-1NA5G8H3.js +1 -0
  319. package/dist/client/assets/TextareaWidget-D8wRZrM-.js +1 -0
  320. package/dist/client/assets/TokenWidget-DXRZ2TGd.js +2 -0
  321. package/dist/client/assets/Toolbar-hcuCtPhN.js +2 -0
  322. package/dist/client/assets/TranslationObject-B39zMKOs.js +1 -0
  323. package/dist/client/assets/UndoControlpanel-Dn57qiRw.js +1 -0
  324. package/dist/client/assets/UndoToolbar-OcDVcNUK.js +1 -0
  325. package/dist/client/assets/UpgradeControlPanel-Dq9CHVWL.js +1 -0
  326. package/dist/client/assets/UrlWidget-CyoQZy_y.js +1 -0
  327. package/dist/client/assets/User-DYAlCOsc.js +1 -0
  328. package/dist/client/assets/UserGroupMembershipControlPanel-ClDiBW73.js +1 -0
  329. package/dist/client/assets/UsersControlpanel-CSg45VuW.js +1 -0
  330. package/dist/client/assets/VersionOverview-BbnLCVXo.js +1 -0
  331. package/dist/client/assets/VocabularyTermsWidget-CldBc7SS.js +2 -0
  332. package/dist/client/assets/WeekdayOfTheMonthField-CzfnMD-p.js +1 -0
  333. package/dist/client/assets/WysiwygWidget-IO58Z5Hp.js +1 -0
  334. package/dist/client/assets/add-user-C_fRj14n.js +1 -0
  335. package/dist/client/assets/aliases-DQ8WKfto.js +1 -0
  336. package/dist/client/assets/ca-DPz_x4tN.js +1 -0
  337. package/dist/client/assets/ca2-DPz_x4tN.js +1 -0
  338. package/dist/client/assets/cut-ZxaZMyVt.js +1 -0
  339. package/dist/client/assets/de-CEfDIAIe.js +1 -0
  340. package/dist/client/assets/drag-CfL-m2gM.js +1 -0
  341. package/dist/client/assets/en-UGAeOB73.js +1 -0
  342. package/dist/client/assets/es-bTR5ZO7p.js +1 -0
  343. package/dist/client/assets/eu-ClGcMWvo.js +1 -0
  344. package/dist/client/assets/fi-Cb9XYMls.js +1 -0
  345. package/dist/client/assets/fr-paTim4vs.js +1 -0
  346. package/dist/client/assets/groups-DDbRmAiS.js +1 -0
  347. package/dist/client/assets/hi-wfjyKWJi.js +1 -0
  348. package/dist/client/assets/history-BE3e3tJX.js +1 -0
  349. package/dist/client/assets/icons-BvLvFD6l.ttf +0 -0
  350. package/dist/client/assets/icons-DEAbt7RB.woff +0 -0
  351. package/dist/client/assets/icons-DtZ6carP.eot +0 -0
  352. package/dist/client/assets/icons-hSdpWXN3.svg +320 -0
  353. package/dist/client/assets/image-gallery-BQRpobkJ.js +1 -0
  354. package/dist/client/assets/index-BHHbVxOw.js +1 -0
  355. package/dist/client/assets/index-BkdKjjmJ.js +3 -0
  356. package/dist/client/assets/index-C8dkivrQ.js +1 -0
  357. package/dist/client/assets/index-D1_AVXIm.js +1 -0
  358. package/dist/client/assets/index-D27Aat_y.css +346 -0
  359. package/dist/client/assets/index-Dfhzd_0Q.js +28 -0
  360. package/dist/client/assets/index-DjC7ygxP.js +2 -0
  361. package/dist/client/assets/index-R10CHN0W.js +299 -0
  362. package/dist/client/assets/it-DefHMwCV.js +1 -0
  363. package/dist/client/assets/ja-ChtpWCYw.js +1 -0
  364. package/dist/client/assets/memoize-one.esm-CcMeOnPo.js +1 -0
  365. package/dist/client/assets/messages-D53aTvyU.js +1 -0
  366. package/dist/client/assets/nl-SQksV7ER.js +1 -0
  367. package/dist/client/assets/objectWithoutProperties-DJfFCfi7.js +1 -0
  368. package/dist/client/assets/paste-BecFEOpX.js +1 -0
  369. package/dist/client/assets/plone-CrIeS8BF.js +1 -0
  370. package/dist/client/assets/prism-markup-DpNACz_g.js +1 -0
  371. package/dist/client/assets/pt-aWkeVAjQ.js +1 -0
  372. package/dist/client/assets/pt_BR-77wXUzSL.js +1 -0
  373. package/dist/client/assets/react-beautiful-dnd.esm-kgQsny0G.js +61 -0
  374. package/dist/client/assets/react-lifecycles-compat.es-AfN2QaV3.js +9 -0
  375. package/dist/client/assets/react-select.esm-B_zbeWFZ.js +1 -0
  376. package/dist/client/assets/react-select.esm-C5HgAv8T.js +1 -0
  377. package/dist/client/assets/react-select.esm-D6SOKyar.js +1 -0
  378. package/dist/client/assets/relations-C8He-c7q.js +1 -0
  379. package/dist/client/assets/ro-DAOiSqwr.js +1 -0
  380. package/dist/client/assets/rruleset-B-gU6Vu6.js +7 -0
  381. package/dist/client/assets/rules-gMbfzj9b.js +1 -0
  382. package/dist/client/assets/save-A8XnzzXZ.js +1 -0
  383. package/dist/client/assets/sidebar-Cg9xJ3Wn.js +1 -0
  384. package/dist/client/assets/stateManager-845a3300.esm-FHbDYpjV.js +4 -0
  385. package/dist/client/assets/translations-Ch2bqGLg.js +1 -0
  386. package/dist/client/assets/undo-BK07_7QN.js +1 -0
  387. package/dist/client/assets/useClient-BEoxUiuE.js +1 -0
  388. package/dist/client/assets/users-D9kPg8yt.js +1 -0
  389. package/dist/client/assets/vocabularies-DlvvsO0O.js +1 -0
  390. package/dist/client/assets/workflow-CHtwvb_4.js +1 -0
  391. package/dist/client/assets/zh_CN-eXXUKVGT.js +1 -0
  392. package/dist/client/favicon-16x16.png +0 -0
  393. package/dist/client/favicon-32x32.png +0 -0
  394. package/dist/client/favicon.ico +0 -0
  395. package/dist/client/icon.svg +13 -0
  396. package/dist/client/index.html +14 -0
  397. package/dist/client/index.html.spa +34 -0
  398. package/dist/client/robots.txt +2 -0
  399. package/dist/client/site.webmanifest +19 -0
  400. package/dist/favicon-16x16.png +0 -0
  401. package/dist/favicon-32x32.png +0 -0
  402. package/dist/favicon.ico +0 -0
  403. package/dist/icon.svg +13 -0
  404. package/dist/index.html +14 -0
  405. package/dist/index.html.spa +34 -0
  406. package/dist/robots.txt +2 -0
  407. package/dist/server/android-chrome-192x192.png +0 -0
  408. package/dist/server/android-chrome-512x512.png +0 -0
  409. package/dist/server/apple-touch-icon.png +0 -0
  410. package/dist/server/assets/Add-CsJoCji4.js +507 -0
  411. package/dist/server/assets/AddRule-cE7fxqDi.js +392 -0
  412. package/dist/server/assets/AddonsControlpanel-W-JmCCQZ.js +555 -0
  413. package/dist/server/assets/Aliases-CDNyL3r1.js +399 -0
  414. package/dist/server/assets/Aliases-tMadX250.js +568 -0
  415. package/dist/server/assets/AlignWidget-BAMFIDm-.js +125 -0
  416. package/dist/server/assets/ArrayWidget-CgfS8hDH.js +363 -0
  417. package/dist/server/assets/BlockDataForm-zfD1scIv.js +92 -0
  418. package/dist/server/assets/BlocksForm-DW5cAojg.js +752 -0
  419. package/dist/server/assets/BlocksToolbar-B9n_ff9E.js +277 -0
  420. package/dist/server/assets/ButtonsWidget-BoUEtgpa.js +97 -0
  421. package/dist/server/assets/ByDayField-C6SuyhPy.js +118 -0
  422. package/dist/server/assets/ChangePassword-K3-cTffr.js +217 -0
  423. package/dist/server/assets/CheckboxWidget-C2UdwJnU.js +108 -0
  424. package/dist/server/assets/ColorPickerWidget-C3Fs64WC.js +72 -0
  425. package/dist/server/assets/CommentEditModal-CJIT5LNs.js +144 -0
  426. package/dist/server/assets/Comments-BYGPCvYn.js +416 -0
  427. package/dist/server/assets/ConfigureRule-DJaR8x5h.js +1338 -0
  428. package/dist/server/assets/ContactForm-D2pQPuAd.js +246 -0
  429. package/dist/server/assets/ContentType-BHuuMMOP.js +318 -0
  430. package/dist/server/assets/ContentTypeLayout-4t4HDZ3j.js +547 -0
  431. package/dist/server/assets/ContentTypeSchema-BV_tFkff.js +383 -0
  432. package/dist/server/assets/ContentTypes-C40JO5N_.js +567 -0
  433. package/dist/server/assets/Contents-BOn6l3S9.js +2364 -0
  434. package/dist/server/assets/ContentsBreadcrumbs-Dtyd6Hr0.js +153 -0
  435. package/dist/server/assets/ContentsIndexHeader-DxJAuKwb.js +97 -0
  436. package/dist/server/assets/ContentsItem-bD7oEcmI.js +446 -0
  437. package/dist/server/assets/ContentsPropertiesModal-q9wA0Aal.js +231 -0
  438. package/dist/server/assets/ContentsRenameModal-Bk9lIkwt.js +181 -0
  439. package/dist/server/assets/ContentsTagsModal-C-gTZFmZ.js +168 -0
  440. package/dist/server/assets/ContentsUploadModal-DiUUlQ5S.js +340 -0
  441. package/dist/server/assets/ContentsWorkflowModal-CAc4f94G.js +177 -0
  442. package/dist/server/assets/Controlpanel-HK3BGM-X.js +310 -0
  443. package/dist/server/assets/Controlpanels-DyXD6DdO.js +310 -0
  444. package/dist/server/assets/CreateTranslation-DG5LTQTQ.js +112 -0
  445. package/dist/server/assets/DatabaseInformation-ChVnavys.js +241 -0
  446. package/dist/server/assets/DatetimeWidget-CHdttszV.js +271 -0
  447. package/dist/server/assets/Delete-Cx_tWSDi.js +188 -0
  448. package/dist/server/assets/Diff-Ddx1DMp8.js +415 -0
  449. package/dist/server/assets/DiffField-BcZUPjLc.js +195 -0
  450. package/dist/server/assets/DragDropList-CiuXlWfI.js +164 -0
  451. package/dist/server/assets/DynamicRowHeightList-BomAJzxz.js +60 -0
  452. package/dist/server/assets/Edit-DAIHguhl.js +669 -0
  453. package/dist/server/assets/EditRule-lTwgcp6X.js +423 -0
  454. package/dist/server/assets/EmailWidget-DPCyfiXg.js +129 -0
  455. package/dist/server/assets/Error-MJ-ObF_2.js +21 -0
  456. package/dist/server/assets/EventDatesInfo-CtX7N3Lc.js +171 -0
  457. package/dist/server/assets/EventView-r4SE_kC7.js +275 -0
  458. package/dist/server/assets/Field-kKcQmlbv.js +184 -0
  459. package/dist/server/assets/FileWidget-B3jY_tIe.js +205 -0
  460. package/dist/server/assets/Form-BqwUy8yR.js +959 -0
  461. package/dist/server/assets/FormattedRelativeDate-eSbRd-qW.js +48 -0
  462. package/dist/server/assets/GroupsControlpanel-DjZK6zeD.js +697 -0
  463. package/dist/server/assets/History-CGuT0Gxk.js +373 -0
  464. package/dist/server/assets/IdWidget-DbyITK61.js +217 -0
  465. package/dist/server/assets/ImageSizeWidget-DKY4NccJ.js +136 -0
  466. package/dist/server/assets/InlineForm-D45kJH2i.js +283 -0
  467. package/dist/server/assets/InternalUrlWidget-B6sRTbIQ.js +192 -0
  468. package/dist/server/assets/LinksToItem-6uMHi4JH.js +280 -0
  469. package/dist/server/assets/Login-BnWfiyxk.js +275 -0
  470. package/dist/server/assets/Logout-DDzsV2_q.js +115 -0
  471. package/dist/server/assets/ManageTranslations-DBpk3SPh.js +316 -0
  472. package/dist/server/assets/ModalForm-BFUz4-5h.js +343 -0
  473. package/dist/server/assets/ModerateComments-BSWE6DLB.js +332 -0
  474. package/dist/server/assets/MonthOfTheYearField-BKVtfnMh.js +110 -0
  475. package/dist/server/assets/NumberWidget-D2oZIOtl.js +129 -0
  476. package/dist/server/assets/ObjectBrowserWidget-DwTYxap2.js +420 -0
  477. package/dist/server/assets/ObjectListWidget-DddssDcY.js +258 -0
  478. package/dist/server/assets/ObjectWidget-DAbu4vKd.js +160 -0
  479. package/dist/server/assets/Occurences-Zl3kp-s8.js +223 -0
  480. package/dist/server/assets/Order-DYralO8T.js +586 -0
  481. package/dist/server/assets/Pagination-DhaW_lzc.js +98 -0
  482. package/dist/server/assets/PasswordReset-XB45O1K2.js +336 -0
  483. package/dist/server/assets/PasswordWidget-CvKRkTK-.js +131 -0
  484. package/dist/server/assets/PersonalInformation--cOokZv2.js +78 -0
  485. package/dist/server/assets/QuerySortOnWidget-BSGAZOfo.js +136 -0
  486. package/dist/server/assets/QueryWidget-D8pt9fPj.js +492 -0
  487. package/dist/server/assets/QuerystringWidget-4LGKA9EF.js +176 -0
  488. package/dist/server/assets/RecurrenceWidget-DmaZUmHT.js +1426 -0
  489. package/dist/server/assets/ReferenceWidget-BYkwGmcC.js +236 -0
  490. package/dist/server/assets/Register-DCPdPToE.js +185 -0
  491. package/dist/server/assets/RegistryImageWidget-Clx3uX9X.js +189 -0
  492. package/dist/server/assets/Relations-HXFX3OhR.js +1092 -0
  493. package/dist/server/assets/RenderGroups-15rVe2q0.js +134 -0
  494. package/dist/server/assets/RenderUsers-DQoVtZTV.js +254 -0
  495. package/dist/server/assets/RequestPasswordReset-DoEfaZxv.js +203 -0
  496. package/dist/server/assets/Rules-C368LdtM.js +557 -0
  497. package/dist/server/assets/Rules-DEEwiG_G.js +456 -0
  498. package/dist/server/assets/SchemaWidget-42TNEpHs.js +1392 -0
  499. package/dist/server/assets/Search-Cj9Vf745.js +417 -0
  500. package/dist/server/assets/SelectAutoComplete-QN8lOuc8.js +279 -0
  501. package/dist/server/assets/SelectMetadataField-CVmZ9snw.js +184 -0
  502. package/dist/server/assets/SelectUtils-CfKnO3Pp.js +72 -0
  503. package/dist/server/assets/SelectWidget-EYyEok6L.js +317 -0
  504. package/dist/server/assets/Sharing-lbff3IeO.js +579 -0
  505. package/dist/server/assets/Sidebar-DuoR_j80.js +246 -0
  506. package/dist/server/assets/Sitemap-DyY1fP-7.js +164 -0
  507. package/dist/server/assets/TextWidget-BhMn8hi_.js +156 -0
  508. package/dist/server/assets/TextareaWidget-BD3faCaG.js +125 -0
  509. package/dist/server/assets/TokenWidget-BzMjib_o.js +244 -0
  510. package/dist/server/assets/Toolbar-DVsVq7NQ.js +1695 -0
  511. package/dist/server/assets/TranslationObject-Cu7Oz0D_.js +120 -0
  512. package/dist/server/assets/UndoControlpanel-CfSOfvIf.js +690 -0
  513. package/dist/server/assets/UndoToolbar-DIbEtI6_.js +226 -0
  514. package/dist/server/assets/UpgradeControlPanel-DqSvBsKg.js +397 -0
  515. package/dist/server/assets/UrlWidget-C0_i8u8y.js +194 -0
  516. package/dist/server/assets/User-CeYa32LY.js +21 -0
  517. package/dist/server/assets/UserGroupMembershipControlPanel-GJ1xAI2H.js +635 -0
  518. package/dist/server/assets/UsersControlpanel-D_FsBPMW.js +752 -0
  519. package/dist/server/assets/VersionOverview-CKK4Mh4X.js +577 -0
  520. package/dist/server/assets/VocabularyTermsWidget-CErDWtRU.js +311 -0
  521. package/dist/server/assets/WeekdayOfTheMonthField-Cr_GRGfk.js +97 -0
  522. package/dist/server/assets/WysiwygWidget-lCJy28BX.js +71 -0
  523. package/dist/server/assets/add-user-OjrbLPze.js +15 -0
  524. package/dist/server/assets/aliases-C1e1Zo30.js +36 -0
  525. package/dist/server/assets/ca-DyGhRQw8.js +1582 -0
  526. package/dist/server/assets/ca2-BGpXXCA_.js +1582 -0
  527. package/dist/server/assets/cut-BEOWxek2.js +6 -0
  528. package/dist/server/assets/de-C9Bn7Rn5.js +1605 -0
  529. package/dist/server/assets/drag-DY7wFRIh.js +4 -0
  530. package/dist/server/assets/en-BmNu-gsU.js +1605 -0
  531. package/dist/server/assets/es-XH30tkMP.js +1582 -0
  532. package/dist/server/assets/eu-VsSby9_e.js +1582 -0
  533. package/dist/server/assets/fi-BRqySjmD.js +1582 -0
  534. package/dist/server/assets/fr-DWx9W4gK.js +1582 -0
  535. package/dist/server/assets/groups-DlLziArH.js +57 -0
  536. package/dist/server/assets/hi-CJ8Pz8K_.js +1582 -0
  537. package/dist/server/assets/history-Di4xw5JV.js +24 -0
  538. package/dist/server/assets/index-7OxxMyWS.js +61 -0
  539. package/dist/server/assets/it-Db41lwPq.js +1582 -0
  540. package/dist/server/assets/ja-sRZcO51F.js +1582 -0
  541. package/dist/server/assets/messages-Daz-GFAC.js +9 -0
  542. package/dist/server/assets/nl-CH7F8zGZ.js +1582 -0
  543. package/dist/server/assets/paste-CtDNO5f5.js +4 -0
  544. package/dist/server/assets/plone-DmfQ132L.js +4 -0
  545. package/dist/server/assets/pt-BWnCu7AF.js +1582 -0
  546. package/dist/server/assets/pt_BR-D2d5lTnr.js +1582 -0
  547. package/dist/server/assets/relations-DpP4v3e7.js +63 -0
  548. package/dist/server/assets/ro-BlUnfGvL.js +1582 -0
  549. package/dist/server/assets/rules-BR_HXhIG.js +261 -0
  550. package/dist/server/assets/save-C0BIu8AK.js +4 -0
  551. package/dist/server/assets/sidebar-BGq8uRxG.js +23 -0
  552. package/dist/server/assets/translations-DicXGvqf.js +39 -0
  553. package/dist/server/assets/undo-lQM6Vhc7.js +4 -0
  554. package/dist/server/assets/useClient-_7WynRVZ.js +11 -0
  555. package/dist/server/assets/users-BY0qskQF.js +112 -0
  556. package/dist/server/assets/vocabularies-C3rWoW1K.js +90 -0
  557. package/dist/server/assets/zh_CN-Cy1xbPRJ.js +1582 -0
  558. package/dist/server/entry-server.js +32003 -0
  559. package/dist/server/favicon-16x16.png +0 -0
  560. package/dist/server/favicon-32x32.png +0 -0
  561. package/dist/server/favicon.ico +0 -0
  562. package/dist/server/icon.svg +13 -0
  563. package/dist/server/index.html.spa +34 -0
  564. package/dist/server/robots.txt +2 -0
  565. package/dist/server/site.webmanifest +19 -0
  566. package/dist/site.webmanifest +19 -0
  567. package/locales/ca/LC_MESSAGES/volto.po +5 -0
  568. package/locales/ca.json +1 -1
  569. package/locales/ca2.json +1 -0
  570. package/locales/de/LC_MESSAGES/volto.po +5 -0
  571. package/locales/de.json +1 -1
  572. package/locales/en/LC_MESSAGES/volto.po +5 -0
  573. package/locales/en.json +1 -1
  574. package/locales/es/LC_MESSAGES/volto.po +5 -0
  575. package/locales/es.json +1 -1
  576. package/locales/eu/LC_MESSAGES/volto.po +5 -0
  577. package/locales/eu.json +1 -1
  578. package/locales/fi/LC_MESSAGES/volto.po +5 -0
  579. package/locales/fi.json +1 -1
  580. package/locales/fr/LC_MESSAGES/volto.po +5 -0
  581. package/locales/fr.json +1 -1
  582. package/locales/hi/LC_MESSAGES/volto.po +5 -0
  583. package/locales/hi.json +1 -1
  584. package/locales/it/LC_MESSAGES/volto.po +42 -37
  585. package/locales/it.json +1 -1
  586. package/locales/ja/LC_MESSAGES/volto.po +5 -0
  587. package/locales/ja.json +1 -1
  588. package/locales/nl/LC_MESSAGES/volto.po +5 -0
  589. package/locales/nl.json +1 -1
  590. package/locales/pt/LC_MESSAGES/volto.po +5 -0
  591. package/locales/pt.json +1 -1
  592. package/locales/pt_BR/LC_MESSAGES/volto.po +71 -66
  593. package/locales/pt_BR.json +1 -1
  594. package/locales/ro/LC_MESSAGES/volto.po +5 -0
  595. package/locales/ro.json +1 -1
  596. package/locales/volto.pot +6 -1
  597. package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
  598. package/locales/zh_CN.json +1 -1
  599. package/package.json +2 -2
  600. package/src/components/manage/BlockChooser/BlockChooser.jsx +2 -2
  601. package/src/components/manage/BlockChooser/BlockChooser.test.jsx +4 -0
  602. package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +7 -1
  603. package/src/components/manage/Blocks/Search/components/CheckboxFacet.jsx +1 -0
  604. package/src/components/manage/Diff/DiffField.jsx +167 -39
  605. package/src/components/manage/Form/Form.jsx +31 -22
  606. package/src/components/manage/Sidebar/SidebarPopup.jsx +9 -1
  607. package/src/components/manage/Toast/Toast.jsx +2 -2
  608. package/src/components/manage/Widgets/ArrayWidget.jsx +1 -0
  609. package/src/components/manage/Widgets/FormFieldWrapper.jsx +23 -3
  610. package/src/components/manage/Widgets/SelectWidget.jsx +1 -0
  611. package/src/components/manage/Widgets/TokenWidget.jsx +1 -0
  612. package/src/config/NonContentRoutesPublic.jsx +15 -0
  613. package/src/config/index.js +2 -0
  614. package/src/helpers/Blocks/Blocks.js +1 -1
  615. package/src/helpers/Url/Url.js +4 -1
  616. package/src/helpers/Url/Url.test.js +17 -3
  617. package/src/hooks/index.js +1 -0
  618. package/src/hooks/user/useUser.js +23 -0
  619. package/test-setup-config.jsx +2 -0
  620. package/theme/themes/pastanaga/collections/form.overrides +1 -0
  621. package/theme/themes/pastanaga/collections/table.overrides +6 -1
  622. package/theme/themes/pastanaga/extras/main.less +3 -2
  623. package/theme/themes/pastanaga/extras/toolbar.less +14 -2
  624. package/theme/themes/pastanaga/extras/widgets.less +12 -0
  625. package/theme/themes/pastanaga/modules/accordion.variables +3 -3
  626. package/types/config/NonContentRoutesPublic.d.ts +1 -0
  627. package/types/helpers/Blocks/Blocks.d.ts +1 -1
  628. package/types/hooks/index.d.ts +1 -0
  629. package/types/hooks/user/useUser.d.ts +2 -0
  630. package/vite-plugins/volto.js +30 -0
  631. package/finalreleasechangelog.py +0 -48
@@ -0,0 +1,2364 @@
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 { jsx, Fragment, jsxs } 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 { createPortal } from "react-dom";
10
+ import { Link } from "react-router-dom";
11
+ import { Container, Dimmer, Loader, Confirm, Segment, Menu, Button, Input, Dropdown, Table, Divider } from "semantic-ui-react";
12
+ import { keys, mapValues, indexOf, map, pull, concat, filter, find } from "lodash-es";
13
+ import move from "lodash-move";
14
+ import { injectIntl, defineMessages, FormattedMessage } from "react-intl";
15
+ import { aY as COPY_CONTENT, aZ as MOVE_CONTENT, a_ as COPY, a$ as CUT, aP as searchContent, p as deleteContent, C as listActions, b0 as orderContent, b1 as sortContent, b2 as updateColumnsContent, b3 as linkIntegrityCheck, n as getContent, v as asyncConnect, T as Toast, b as getBaseUrl, $ as $149c1bd638913645$export$2e2bcd8739ae039, H as HelmetExport, f as flattenToAppURL, b4 as ContentsRenameModal, I as Icon, b5 as uploadSVG, b6 as deleteSVG, k as clearSVG, b7 as zoomSVG, at as moreSVG, a8 as down_key, b8 as sortDownSVG, b9 as sortUpSVG, o as backSVG, U as Unauthorized } from "../entry-server.js";
16
+ import { P as Pagination } from "./Pagination-DhaW_lzc.js";
17
+ import { P as Popup, c as checkboxCheckedSVG, a as checkboxUncheckedSVG, D as DragDropConnector$2 } from "./ContentsItem-bD7oEcmI.js";
18
+ import { T as Toolbar } from "./Toolbar-DVsVq7NQ.js";
19
+ import ContentsBreadcrumbs from "./ContentsBreadcrumbs-Dtyd6Hr0.js";
20
+ import DragDropConnector$1 from "./ContentsIndexHeader-DxJAuKwb.js";
21
+ import ContentsUploadModal from "./ContentsUploadModal-DiUUlQ5S.js";
22
+ import ContentsWorkflowModal from "./ContentsWorkflowModal-CAc4f94G.js";
23
+ import ContentsTagsModal from "./ContentsTagsModal-C-gTZFmZ.js";
24
+ import ContentsPropertiesModal from "./ContentsPropertiesModal-q9wA0Aal.js";
25
+ import { toast } from "react-toastify";
26
+ import { DragDropContext } from "react-dnd";
27
+ import HTML5Backend from "react-dnd-html5-backend";
28
+ import { c as cutSVG, a as copySVG } from "./cut-BEOWxek2.js";
29
+ import { p as pasteSVG } from "./paste-CtDNO5f5.js";
30
+ import "classnames";
31
+ import "moment";
32
+ import "react-router";
33
+ import "react-router-hash-link";
34
+ import "tlds";
35
+ import "prepend-http";
36
+ import "react-dom/server";
37
+ import "react-transition-group";
38
+ import "promise-file-reader";
39
+ import "uuid";
40
+ import "pretty-bytes";
41
+ import "react-side-effect";
42
+ import "github-slugger";
43
+ import "slate";
44
+ import "hoist-non-react-statics";
45
+ import "query-string";
46
+ import "slate-react";
47
+ import "prettier/standalone";
48
+ import "prettier/parser-html";
49
+ import "prismjs/components/prism-core.js";
50
+ import "react-animate-height";
51
+ import "react-popper";
52
+ import "react-sortable-hoc";
53
+ import "react-dates/initialize.js";
54
+ import "react-anchor-link-smooth-scroll";
55
+ import "jwt-decode";
56
+ import "react-router-config";
57
+ import "react-fast-compare";
58
+ import "object-assign";
59
+ import "lodash-es/split.js";
60
+ import "lodash-es/join.js";
61
+ import "lodash-es/trim.js";
62
+ import "react-cookie";
63
+ import "react-intl-redux";
64
+ import "universal-cookie";
65
+ import "slate-hyperscript";
66
+ import "is-hotkey";
67
+ import "react-dropzone";
68
+ import "react-intersection-observer";
69
+ import "is-url";
70
+ import "lodash-es/isUndefined.js";
71
+ import "lodash-es/isString.js";
72
+ import "redux-mock-store";
73
+ import "serialize-javascript";
74
+ import "superagent";
75
+ import "connected-react-router";
76
+ import "react-beautiful-dnd";
77
+ import "detect-browser";
78
+ import "locale";
79
+ import "history";
80
+ import "redux-thunk";
81
+ import "redux-localstorage-simple";
82
+ import "debug";
83
+ import "express";
84
+ import "http-proxy-middleware";
85
+ import "./drag-DY7wFRIh.js";
86
+ import "./users-BY0qskQF.js";
87
+ import "./User-CeYa32LY.js";
88
+ import "./PersonalInformation--cOokZv2.js";
89
+ import "filesize";
90
+ import "./FormattedRelativeDate-eSbRd-qW.js";
91
+ function copyContent(source, target) {
92
+ return {
93
+ type: COPY_CONTENT,
94
+ request: {
95
+ op: "post",
96
+ path: `${target}/@copy`,
97
+ data: { source }
98
+ }
99
+ };
100
+ }
101
+ function moveContent(source, target) {
102
+ return {
103
+ type: MOVE_CONTENT,
104
+ request: {
105
+ op: "post",
106
+ path: `${target}/@move`,
107
+ data: { source }
108
+ }
109
+ };
110
+ }
111
+ function copy(urls) {
112
+ return {
113
+ type: COPY,
114
+ source: urls
115
+ };
116
+ }
117
+ function cut(urls) {
118
+ return {
119
+ type: CUT,
120
+ source: urls
121
+ };
122
+ }
123
+ const Indexes = {
124
+ sortable_title: { label: "Title", type: "string", sort_on: "sortable_title" },
125
+ review_state: { label: "Review state", type: "string" },
126
+ ModificationDate: {
127
+ label: "Last modified",
128
+ type: "date",
129
+ sort_on: "modified"
130
+ },
131
+ EffectiveDate: {
132
+ label: "Publication date",
133
+ type: "date",
134
+ sort_on: "effective"
135
+ },
136
+ id: { label: "ID", type: "string", sort_on: "id" },
137
+ ExpirationDate: { label: "Expiration date", type: "date" },
138
+ CreationDate: { label: "Created on", type: "date", sort_on: "created" },
139
+ Subject: { label: "Tags", type: "array" },
140
+ portal_type: { label: "Type", type: "string", sort_on: "portal_type" },
141
+ is_folderish: { label: "Folder", type: "boolean" },
142
+ exclude_from_nav: { label: "Excluded from navigation", type: "boolean" },
143
+ getObjSize: { label: "Object Size", type: "string" },
144
+ last_comment_date: { label: "Last comment date", type: "date" },
145
+ total_comments: { label: "Total comments", type: "number" },
146
+ end: { label: "End Date", type: "date" },
147
+ Description: { label: "Description", type: "string" },
148
+ Creator: { label: "Creator", type: "string" },
149
+ location: { label: "Location", type: "string" },
150
+ UID: { label: "UID", type: "string" },
151
+ start: { label: "Start Date", type: "date" },
152
+ Type: { label: "Type", type: "string" }
153
+ };
154
+ const defaultIndexes = [
155
+ "review_state",
156
+ "ModificationDate",
157
+ "EffectiveDate"
158
+ ];
159
+ const tagSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M19.0596,7 C18.7926,7 18.5416,7.104 18.3536,7.292 L6.9346,18.691 C6.7446,18.881 6.6406,19.134 6.6416,19.403 C6.6426,19.672 6.7496,19.925 6.9416,20.113 L15.6346,28.626 C16.0126,28.996 16.6616,28.995 17.0356,28.624 L28.7016,17.143 C28.8916,16.956 28.9996,16.696 28.9996,16.43 L28.9996,8 C28.9996,7.448 28.5516,7 27.9996,7 L19.0596,7 Z M16.3336,30.911 C15.5446,30.911 14.7996,30.607 14.2356,30.056 L5.5426,21.542 C4.9656,20.977 4.6456,20.22 4.6416,19.412 C4.6386,18.604 4.9506,17.846 5.5216,17.275 L16.9396,5.877 C17.5056,5.312 18.2586,5 19.0596,5 L27.9996,5 C29.6546,5 30.9996,6.346 30.9996,8 L30.9996,16.43 C30.9996,17.229 30.6736,18.008 30.1046,18.568 L18.4386,30.05 C17.8736,30.605 17.1266,30.911 16.3336,30.911 L16.3336,30.911 Z"/><path d="M24,11 C23.449,11 23,11.448 23,12 C23,12.552 23.449,13 24,13 C24.551,13 25,12.552 25,12 C25,11.448 24.551,11 24,11 M24,15 C22.346,15 21,13.654 21,12 C21,10.346 22.346,9 24,9 C25.654,9 27,10.346 27,12 C27,13.654 25.654,15 24,15"/></g>' };
160
+ const renameSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<path d="M11.1667 19L14.0837 9 14.2497 9 17.1667 19 11.1667 19zM15.7497 7L12.5837 7 6.7497 27 4.9997 27 4.9997 29 9.9997 29 9.9997 27 8.8337 27 10.5837 21 17.7497 21 19.4997 27 17.9997 27 17.9997 29 22.9997 29 22.9997 27 21.5837 27 15.7497 7zM31 7L31 5C29.8 5 28.734 5.542 28 6.382 27.266 5.542 26.2 5 25 5L25 7C26.103 7 27 7.897 27 9L27 27C27 28.103 26.103 29 25 29L25 31C26.2 31 27.266 30.458 28 29.618 28.734 30.458 29.8 31 31 31L31 29C29.897 29 29 28.103 29 27L29 9C29 7.897 29.897 7 31 7" fill-rule="evenodd"/>' };
161
+ const semaphoreSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M18 11C17.449 11 17 10.552 17 10 17 9.448 17.449 9 18 9 18.551 9 19 9.448 19 10 19 10.552 18.551 11 18 11M18 7C16.346 7 15 8.346 15 10 15 11.654 16.346 13 18 13 19.654 13 21 11.654 21 10 21 8.346 19.654 7 18 7M18 19C17.449 19 17 18.552 17 18 17 17.448 17.449 17 18 17 18.551 17 19 17.448 19 18 19 18.552 18.551 19 18 19M18 15C16.346 15 15 16.346 15 18 15 19.654 16.346 21 18 21 19.654 21 21 19.654 21 18 21 16.346 19.654 15 18 15"/><path d="M23,22 C23,22.552 22.551,23 22,23 L14,23 C13.449,23 13,22.552 13,22 L13,6 C13,5.448 13.449,5 14,5 L22,5 C22.551,5 23,5.448 23,6 L23,22 Z M27,11 L27,9 L25,9 L25,6 C25,4.346 23.654,3 22,3 L14,3 C12.346,3 11,4.346 11,6 L11,9 L9,9 L9,11 L11,11 L11,17 L9,17 L9,19 L11,19 L11,22 C11,23.654 12.346,25 14,25 L17,25 L17,31 L13,31 L13,33 L23,33 L23,31 L19,31 L19,25 L22,25 C23.654,25 25,23.654 25,22 L25,19 L27,19 L27,17 L25,17 L25,11 L27,11 Z"/></g>' };
162
+ const propertiesSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M14 11 29 11 29 9 14 9zM14 19 29 19 29 17 14 17zM14 27 29 27 29 25 14 25zM8 20.414 5.293 17.707 6.707 16.293 8 17.586 11.293 14.293 12.707 15.707zM8 12.414 5.293 9.707 6.707 8.293 8 9.586 11.293 6.293 12.707 7.707zM8 28.414 5.293 25.707 6.707 24.293 8 25.586 11.293 22.293 12.707 23.707z"/></g>' };
163
+ const checkboxIndeterminateSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M5,31 L31,31 L31,5 L5,5 L5,31 Z M7,29.001 L29.001,29.001 L29.001,7 L7,7 L7,29.001 Z"/><path d="M11 19 25 19 25 17 11 17z"/></g>' };
164
+ const configurationSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M29 31 31 31 31 29 29 29zM17 31 19 31 19 29 17 29zM25 31 27 31 27 29 25 29zM21 31 23 31 23 29 21 29zM13 31 15 31 15 29 13 29zM9 31 11 31 11 29 9 29zM5 31 7 31 7 29 5 29zM5 19 7 19 7 17 5 17zM5 11 7 11 7 9 5 9zM5 27 7 27 7 25 5 25zM5 15 7 15 7 13 5 13zM5 23 7 23 7 21 5 21zM5 7 7 7 7 5 5 5zM21 7 23 7 23 5 21 5zM9 7 11 7 11 5 9 5zM13 7 15 7 15 5 13 5zM17 7 19 7 19 5 17 5zM25 7 27 7 27 5 25 5zM29 7 31 7 31 5 29 5zM29 11 31 11 31 9 29 9zM29 19 31 19 31 17 29 17zM29 15 31 15 31 13 29 13zM29 27 31 27 31 25 29 25zM29 23 31 23 31 21 29 21zM18 21C16.346 21 15 19.654 15 18 15 16.346 16.346 15 18 15 19.654 15 21 16.346 21 18 21 19.654 19.654 21 18 21M22.899 19 25 19 25 17 22.899 17C22.769 16.363 22.515 15.772 22.167 15.247L23.657 13.757 22.243 12.343 20.753 13.833C20.229 13.485 19.637 13.231 19 13.101L19 11 17 11 17 13.101C16.363 13.231 15.771 13.485 15.247 13.833L13.757 12.343 12.343 13.757 13.833 15.247C13.485 15.772 13.231 16.363 13.101 17L11 17 11 19 13.101 19C13.231 19.637 13.485 20.228 13.833 20.753L12.343 22.243 13.757 23.657 15.247 22.167C15.771 22.515 16.363 22.769 17 22.899L17 25 19 25 19 22.899C19.637 22.769 20.229 22.515 20.753 22.167L22.243 23.657 23.657 22.243 22.167 20.753C22.515 20.228 22.769 19.637 22.899 19"/></g>' };
165
+ const messages = defineMessages({
166
+ back: {
167
+ id: "Back",
168
+ defaultMessage: "Back"
169
+ },
170
+ contents: {
171
+ id: "Contents",
172
+ defaultMessage: "Contents"
173
+ },
174
+ copy: {
175
+ id: "Copy",
176
+ defaultMessage: "Copy"
177
+ },
178
+ cut: {
179
+ id: "Cut",
180
+ defaultMessage: "Cut"
181
+ },
182
+ error: {
183
+ id: "You can't paste this content here",
184
+ defaultMessage: "You can't paste this content here"
185
+ },
186
+ delete: {
187
+ id: "Delete",
188
+ defaultMessage: "Delete"
189
+ },
190
+ deleteConfirmSingleItem: {
191
+ id: "Delete this item?",
192
+ defaultMessage: "Delete this item?"
193
+ },
194
+ deleteConfirmMultipleItems: {
195
+ id: "Delete selected items?",
196
+ defaultMessage: "Delete selected items?"
197
+ },
198
+ deleteError: {
199
+ id: "The item could not be deleted.",
200
+ defaultMessage: "The item could not be deleted."
201
+ },
202
+ loading: {
203
+ id: "loading",
204
+ defaultMessage: "Loading"
205
+ },
206
+ home: {
207
+ id: "Home",
208
+ defaultMessage: "Home"
209
+ },
210
+ filter: {
211
+ id: "Filter…",
212
+ defaultMessage: "Filter…"
213
+ },
214
+ messageCopied: {
215
+ id: "Item(s) copied.",
216
+ defaultMessage: "Item(s) copied."
217
+ },
218
+ messageCut: {
219
+ id: "Item(s) cut.",
220
+ defaultMessage: "Item(s) cut."
221
+ },
222
+ messageUpdate: {
223
+ id: "Item(s) has been updated.",
224
+ defaultMessage: "Item(s) has been updated."
225
+ },
226
+ messageReorder: {
227
+ id: "Item successfully moved.",
228
+ defaultMessage: "Item successfully moved."
229
+ },
230
+ messagePasted: {
231
+ id: "Item(s) pasted.",
232
+ defaultMessage: "Item(s) pasted."
233
+ },
234
+ messageWorkflowUpdate: {
235
+ id: "Item(s) state has been updated.",
236
+ defaultMessage: "Item(s) state has been updated."
237
+ },
238
+ paste: {
239
+ id: "Paste",
240
+ defaultMessage: "Paste"
241
+ },
242
+ properties: {
243
+ id: "Properties",
244
+ defaultMessage: "Properties"
245
+ },
246
+ rearrangeBy: {
247
+ id: "Rearrange items by…",
248
+ defaultMessage: "Rearrange items by…"
249
+ },
250
+ rename: {
251
+ id: "Rename",
252
+ defaultMessage: "Rename"
253
+ },
254
+ select: {
255
+ id: "Select…",
256
+ defaultMessage: "Select…"
257
+ },
258
+ selected: {
259
+ id: "{count} selected",
260
+ defaultMessage: "{count} selected"
261
+ },
262
+ selectColumns: {
263
+ id: "Select columns to show",
264
+ defaultMessage: "Select columns to show"
265
+ },
266
+ sort: {
267
+ id: "sort",
268
+ defaultMessage: "sort"
269
+ },
270
+ state: {
271
+ id: "State",
272
+ defaultMessage: "State"
273
+ },
274
+ tags: {
275
+ id: "Tags",
276
+ defaultMessage: "Tags"
277
+ },
278
+ upload: {
279
+ id: "Upload",
280
+ defaultMessage: "Upload"
281
+ },
282
+ success: {
283
+ id: "Success",
284
+ defaultMessage: "Success"
285
+ },
286
+ publicationDate: {
287
+ id: "Publication date",
288
+ defaultMessage: "Publication date"
289
+ },
290
+ createdOn: {
291
+ id: "Created on",
292
+ defaultMessage: "Created on"
293
+ },
294
+ expirationDate: {
295
+ id: "Expiration date",
296
+ defaultMessage: "Expiration date"
297
+ },
298
+ id: {
299
+ id: "ID",
300
+ defaultMessage: "ID"
301
+ },
302
+ uid: {
303
+ id: "UID",
304
+ defaultMessage: "UID"
305
+ },
306
+ reviewState: {
307
+ id: "Review state",
308
+ defaultMessage: "Review state"
309
+ },
310
+ folder: {
311
+ id: "Folder",
312
+ defaultMessage: "Folder"
313
+ },
314
+ excludedFromNavigation: {
315
+ id: "Excluded from navigation",
316
+ defaultMessage: "Excluded from navigation"
317
+ },
318
+ objectSize: {
319
+ id: "Object Size",
320
+ defaultMessage: "Object Size"
321
+ },
322
+ lastCommentedDate: {
323
+ id: "Last comment date",
324
+ defaultMessage: "Last comment date"
325
+ },
326
+ totalComments: {
327
+ id: "Total comments",
328
+ defaultMessage: "Total comments"
329
+ },
330
+ creator: {
331
+ id: "Creator",
332
+ defaultMessage: "Creator"
333
+ },
334
+ endDate: {
335
+ id: "End Date",
336
+ defaultMessage: "End Date"
337
+ },
338
+ startDate: {
339
+ id: "Start Date",
340
+ defaultMessage: "Start Date"
341
+ },
342
+ all: {
343
+ id: "All",
344
+ defaultMessage: "All"
345
+ }
346
+ });
347
+ class Contents extends Component {
348
+ /**
349
+ * Constructor
350
+ * @method constructor
351
+ * @param {Object} props Component properties
352
+ * @constructs ContentsComponent
353
+ */
354
+ constructor(props) {
355
+ var _a, _b;
356
+ super(props);
357
+ this.onDeselect = this.onDeselect.bind(this);
358
+ this.onSelect = this.onSelect.bind(this);
359
+ this.onSelectAll = this.onSelectAll.bind(this);
360
+ this.onSelectIndex = this.onSelectIndex.bind(this);
361
+ this.onSelectNone = this.onSelectNone.bind(this);
362
+ this.onDeleteOk = this.onDeleteOk.bind(this);
363
+ this.onDeleteCancel = this.onDeleteCancel.bind(this);
364
+ this.onUploadOk = this.onUploadOk.bind(this);
365
+ this.onUploadCancel = this.onUploadCancel.bind(this);
366
+ this.onRenameOk = this.onRenameOk.bind(this);
367
+ this.onRenameCancel = this.onRenameCancel.bind(this);
368
+ this.onTagsOk = this.onTagsOk.bind(this);
369
+ this.onTagsCancel = this.onTagsCancel.bind(this);
370
+ this.onPropertiesOk = this.onPropertiesOk.bind(this);
371
+ this.onPropertiesCancel = this.onPropertiesCancel.bind(this);
372
+ this.onWorkflowOk = this.onWorkflowOk.bind(this);
373
+ this.onWorkflowCancel = this.onWorkflowCancel.bind(this);
374
+ this.onChangeFilter = this.onChangeFilter.bind(this);
375
+ this.onChangePage = this.onChangePage.bind(this);
376
+ this.onChangePageSize = this.onChangePageSize.bind(this);
377
+ this.onOrderIndex = this.onOrderIndex.bind(this);
378
+ this.onOrderItem = this.onOrderItem.bind(this);
379
+ this.onSortItems = this.onSortItems.bind(this);
380
+ this.onMoveToTop = this.onMoveToTop.bind(this);
381
+ this.onChangeSelected = this.onChangeSelected.bind(this);
382
+ this.onMoveToBottom = this.onMoveToBottom.bind(this);
383
+ this.cut = this.cut.bind(this);
384
+ this.copy = this.copy.bind(this);
385
+ this.delete = this.delete.bind(this);
386
+ this.upload = this.upload.bind(this);
387
+ this.rename = this.rename.bind(this);
388
+ this.tags = this.tags.bind(this);
389
+ this.properties = this.properties.bind(this);
390
+ this.workflow = this.workflow.bind(this);
391
+ this.paste = this.paste.bind(this);
392
+ this.fetchContents = this.fetchContents.bind(this);
393
+ this.orderTimeout = null;
394
+ this.deleteItemsToShowThreshold = 10;
395
+ this.state = {
396
+ selected: [],
397
+ showDelete: false,
398
+ showUpload: false,
399
+ showRename: false,
400
+ showTags: false,
401
+ showProperties: false,
402
+ showWorkflow: false,
403
+ itemsToDelete: [],
404
+ containedItemsToDelete: [],
405
+ brokenReferences: 0,
406
+ breaches: [],
407
+ showAllItemsToDelete: true,
408
+ items: this.props.items,
409
+ filter: "",
410
+ currentPage: 0,
411
+ pageSize: 50,
412
+ index: this.props.index || {
413
+ order: keys(Indexes),
414
+ values: mapValues(Indexes, (value, key) => ({
415
+ ...value,
416
+ selected: indexOf(defaultIndexes, key) !== -1
417
+ })),
418
+ selectedCount: defaultIndexes.length + 1
419
+ },
420
+ sort_on: ((_a = this.props.sort) == null ? void 0 : _a.on) || "getObjPositionInParent",
421
+ sort_order: ((_b = this.props.sort) == null ? void 0 : _b.order) || "ascending",
422
+ isClient: false,
423
+ linkIntegrityBreakages: []
424
+ };
425
+ this.filterTimeout = null;
426
+ }
427
+ /**
428
+ * Component did mount
429
+ * @method componentDidMount
430
+ * @returns {undefined}
431
+ */
432
+ componentDidMount() {
433
+ this.fetchContents();
434
+ this.setState({ isClient: true });
435
+ }
436
+ async componentDidUpdate(_, prevState) {
437
+ if (this.state.itemsToDelete !== prevState.itemsToDelete && this.state.itemsToDelete.length > 0) {
438
+ const linkintegrityInfo = await this.props.linkIntegrityCheck(
439
+ map(this.state.itemsToDelete, (item) => this.getFieldById(item, "UID"))
440
+ );
441
+ const containedItems = linkintegrityInfo.map((result) => result.items_total ?? 0).reduce((acc, value) => acc + value, 0);
442
+ const breaches = linkintegrityInfo.flatMap(
443
+ (result) => result.breaches.map((source) => ({
444
+ source,
445
+ target: result
446
+ }))
447
+ );
448
+ const source_by_uid = breaches.reduce(
449
+ (acc, value) => acc.set(value.source.uid, value.source),
450
+ /* @__PURE__ */ new Map()
451
+ );
452
+ const by_source = breaches.reduce((acc, value) => {
453
+ if (acc.get(value.source.uid) === void 0) {
454
+ acc.set(value.source.uid, /* @__PURE__ */ new Set());
455
+ }
456
+ acc.get(value.source.uid).add(value.target);
457
+ return acc;
458
+ }, /* @__PURE__ */ new Map());
459
+ this.setState({
460
+ containedItemsToDelete: containedItems,
461
+ brokenReferences: by_source.size,
462
+ linksAndReferencesViewLink: linkintegrityInfo.length ? linkintegrityInfo[0]["@id"] + "/links-to-item" : null,
463
+ breaches: Array.from(by_source, (entry) => ({
464
+ source: source_by_uid.get(entry[0]),
465
+ targets: Array.from(entry[1])
466
+ })),
467
+ showAllItemsToDelete: this.state.itemsToDelete.length < this.deleteItemsToShowThreshold
468
+ });
469
+ }
470
+ }
471
+ /**
472
+ * Component will receive props
473
+ * @method componentWillReceiveProps
474
+ * @param {Object} nextProps Next properties
475
+ * @returns {undefined}
476
+ */
477
+ UNSAFE_componentWillReceiveProps(nextProps) {
478
+ var _a, _b, _c;
479
+ if (this.props.clipboardRequest.loading && nextProps.clipboardRequest.loaded || this.props.deleteRequest.loading && nextProps.deleteRequest.loaded || this.props.updateRequest.loading && nextProps.updateRequest.loaded) {
480
+ this.fetchContents(nextProps.pathname);
481
+ }
482
+ if (this.props.updateRequest.loading && nextProps.updateRequest.loaded) {
483
+ toast.success(
484
+ /* @__PURE__ */ jsx(
485
+ Toast,
486
+ {
487
+ success: true,
488
+ title: this.props.intl.formatMessage(messages.success),
489
+ content: this.props.intl.formatMessage(messages.messageUpdate)
490
+ }
491
+ )
492
+ );
493
+ }
494
+ if (this.props.pathname !== nextProps.pathname) {
495
+ this.props.getContent(getBaseUrl(nextProps.pathname));
496
+ this.setState(
497
+ {
498
+ currentPage: 0
499
+ },
500
+ () => this.setState(
501
+ { filter: "" },
502
+ () => this.fetchContents(nextProps.pathname)
503
+ )
504
+ );
505
+ }
506
+ if (this.props.searchRequest.loading && nextProps.searchRequest.loaded) {
507
+ this.setState({
508
+ items: nextProps.items
509
+ });
510
+ }
511
+ if (this.props.clipboardRequest.loading && nextProps.clipboardRequest.error) {
512
+ const msgBody = ((_c = (_b = (_a = nextProps.clipboardRequest.error) == null ? void 0 : _a.response) == null ? void 0 : _b.body) == null ? void 0 : _c.message) || this.props.intl.formatMessage(messages.error);
513
+ toast.error(
514
+ /* @__PURE__ */ jsx(
515
+ Toast,
516
+ {
517
+ error: true,
518
+ title: this.props.intl.formatMessage(messages.error),
519
+ content: msgBody
520
+ }
521
+ )
522
+ );
523
+ }
524
+ if (this.props.clipboardRequest.loading && nextProps.clipboardRequest.loaded) {
525
+ toast.success(
526
+ /* @__PURE__ */ jsx(
527
+ Toast,
528
+ {
529
+ success: true,
530
+ title: this.props.intl.formatMessage(messages.success),
531
+ content: this.props.intl.formatMessage(messages.messagePasted)
532
+ }
533
+ )
534
+ );
535
+ }
536
+ if (this.props.deleteRequest.loading && nextProps.deleteRequest.error) {
537
+ toast.error(
538
+ /* @__PURE__ */ jsx(
539
+ Toast,
540
+ {
541
+ error: true,
542
+ title: this.props.intl.formatMessage(messages.deleteError),
543
+ content: this.props.intl.formatMessage(messages.deleteError)
544
+ }
545
+ )
546
+ );
547
+ }
548
+ if (this.props.orderRequest.loading && nextProps.orderRequest.loaded) {
549
+ toast.success(
550
+ /* @__PURE__ */ jsx(
551
+ Toast,
552
+ {
553
+ success: true,
554
+ title: this.props.intl.formatMessage(messages.success),
555
+ content: this.props.intl.formatMessage(messages.messageReorder)
556
+ }
557
+ )
558
+ );
559
+ }
560
+ }
561
+ /**
562
+ * On deselect handler
563
+ * @method onDeselect
564
+ * @param {object} event Event object
565
+ * @param {string} value Value
566
+ * @returns {undefined}
567
+ */
568
+ onDeselect(event, { value }) {
569
+ this.setState({
570
+ selected: pull(this.state.selected, value)
571
+ });
572
+ }
573
+ /**
574
+ * On select handler
575
+ * @method onSelect
576
+ * @param {object} event Event object
577
+ * @returns {undefined}
578
+ */
579
+ onSelect(event, id) {
580
+ if (indexOf(this.state.selected, id) === -1) {
581
+ this.setState({
582
+ selected: concat(this.state.selected, id)
583
+ });
584
+ } else {
585
+ this.setState({
586
+ selected: pull(this.state.selected, id)
587
+ });
588
+ }
589
+ }
590
+ /**
591
+ * On select all handler
592
+ * @method onSelectAll
593
+ * @returns {undefined}
594
+ */
595
+ onSelectAll() {
596
+ this.setState({
597
+ selected: map(this.state.items, (item) => item["@id"])
598
+ });
599
+ }
600
+ /**
601
+ * On select none handler
602
+ * @method onSelectNone
603
+ * @returns {undefined}
604
+ */
605
+ onSelectNone() {
606
+ this.setState({
607
+ selected: []
608
+ });
609
+ }
610
+ /**
611
+ * On select index
612
+ * @method onSelectIndex
613
+ * @param {object} event Event object.
614
+ * @param {string} value Index value.
615
+ * @returns {undefined}
616
+ */
617
+ onSelectIndex(event, { value }) {
618
+ let newIndex = {
619
+ ...this.state.index,
620
+ selectedCount: this.state.index.selectedCount + (this.state.index.values[value].selected ? -1 : 1),
621
+ values: mapValues(this.state.index.values, (indexValue, indexKey) => ({
622
+ ...indexValue,
623
+ selected: indexKey === value ? !indexValue.selected : indexValue.selected
624
+ }))
625
+ };
626
+ this.setState({
627
+ index: newIndex
628
+ });
629
+ this.props.updateColumnsContent(getBaseUrl(this.props.pathname), newIndex);
630
+ }
631
+ /**
632
+ * On change filter
633
+ * @method onChangeFilter
634
+ * @param {object} event Event object.
635
+ * @param {string} value Filter value.
636
+ * @returns {undefined}
637
+ */
638
+ onChangeFilter(event, { value }) {
639
+ const self = this;
640
+ clearTimeout(self.filterTimeout);
641
+ this.setState(
642
+ {
643
+ filter: value
644
+ },
645
+ () => {
646
+ self.filterTimeout = setTimeout(() => {
647
+ self.fetchContents();
648
+ }, 200);
649
+ }
650
+ );
651
+ }
652
+ /**
653
+ * On change selected values (Filter)
654
+ * @method onChangeSelected
655
+ * @param {object} event Event object.
656
+ * @param {string} value Filter value.
657
+ * @returns {undefined}
658
+ */
659
+ onChangeSelected(event, { value }) {
660
+ event.stopPropagation();
661
+ const { items, selected } = this.state;
662
+ const filteredItems = filter(
663
+ selected,
664
+ (selectedItem) => find(items, (item) => item["@id"] === selectedItem).title.toLowerCase().includes(value.toLowerCase())
665
+ );
666
+ this.setState({
667
+ filteredItems,
668
+ selectedMenuFilter: value
669
+ });
670
+ }
671
+ /**
672
+ * On change page
673
+ * @method onChangePage
674
+ * @param {object} event Event object.
675
+ * @param {string} value Page value.
676
+ * @returns {undefined}
677
+ */
678
+ onChangePage(event, { value }) {
679
+ this.setState(
680
+ {
681
+ currentPage: value
682
+ },
683
+ () => this.fetchContents()
684
+ );
685
+ }
686
+ /**
687
+ * On change page size
688
+ * @method onChangePageSize
689
+ * @param {object} event Event object.
690
+ * @param {string} value Page size value.
691
+ * @returns {undefined}
692
+ */
693
+ onChangePageSize(event, { value }) {
694
+ this.setState(
695
+ {
696
+ pageSize: value,
697
+ currentPage: 0
698
+ },
699
+ () => this.fetchContents()
700
+ );
701
+ }
702
+ /**
703
+ * On order index
704
+ * @method onOrderIndex
705
+ * @param {number} index Index
706
+ * @param {number} delta Delta
707
+ * @returns {undefined}
708
+ */
709
+ onOrderIndex(index, delta) {
710
+ this.setState({
711
+ index: {
712
+ ...this.state.index,
713
+ order: move(this.state.index.order, index, index + delta)
714
+ }
715
+ });
716
+ this.props.updateColumnsContent(
717
+ getBaseUrl(this.props.pathname),
718
+ this.state.index
719
+ );
720
+ }
721
+ /**
722
+ * On order item
723
+ * @method onOrderItem
724
+ * @param {string} id Item id
725
+ * @param {number} itemIndex Item index
726
+ * @param {number} delta Delta
727
+ * @returns {undefined}
728
+ */
729
+ onOrderItem(id, itemIndex, delta, backend) {
730
+ if (backend) {
731
+ this.props.orderContent(
732
+ getBaseUrl(this.props.pathname),
733
+ id.replace(/^.*\//, ""),
734
+ delta
735
+ );
736
+ } else {
737
+ this.setState({
738
+ items: move(this.state.items, itemIndex, itemIndex + delta)
739
+ });
740
+ }
741
+ }
742
+ /**
743
+ * On sort items
744
+ * @method onSortItems
745
+ * @param {object} event Event object
746
+ * @param {string} value Item index
747
+ * @returns {undefined}
748
+ */
749
+ onSortItems(event, { value }) {
750
+ const values = value.split("|");
751
+ this.setState({
752
+ sort_on: values[0],
753
+ sort_order: values[1]
754
+ });
755
+ this.props.sortContent(
756
+ getBaseUrl(this.props.pathname),
757
+ values[0],
758
+ values[1]
759
+ );
760
+ }
761
+ /**
762
+ * On move to top
763
+ * @method onMoveToTop
764
+ * @param {object} event Event object
765
+ * @param {string} value Item index
766
+ * @returns {undefined}
767
+ */
768
+ onMoveToTop(event, { value }) {
769
+ const id = this.state.items[value]["@id"];
770
+ this.props.orderContent(
771
+ getBaseUrl(this.props.pathname),
772
+ id.replace(/^.*\//, ""),
773
+ "top"
774
+ ).then(() => {
775
+ this.setState(
776
+ {
777
+ currentPage: 0
778
+ },
779
+ () => this.fetchContents()
780
+ );
781
+ });
782
+ }
783
+ /**
784
+ * On move to bottom
785
+ * @method onMoveToBottom
786
+ * @param {object} event Event object
787
+ * @param {string} value Item index
788
+ * @returns {undefined}
789
+ */
790
+ onMoveToBottom(event, { value }) {
791
+ const id = this.state.items[value]["@id"];
792
+ this.props.orderContent(
793
+ getBaseUrl(this.props.pathname),
794
+ id.replace(/^.*\//, ""),
795
+ "bottom"
796
+ ).then(() => {
797
+ this.setState(
798
+ {
799
+ currentPage: 0
800
+ },
801
+ () => this.fetchContents()
802
+ );
803
+ });
804
+ }
805
+ /**
806
+ * On delete ok
807
+ * @method onDeleteOk
808
+ * @returns {undefined}
809
+ */
810
+ onDeleteOk() {
811
+ this.props.deleteContent(this.state.itemsToDelete);
812
+ this.setState({
813
+ showDelete: false,
814
+ itemsToDelete: [],
815
+ selected: []
816
+ });
817
+ }
818
+ /**
819
+ * On delete cancel
820
+ * @method onDeleteCancel
821
+ * @returns {undefined}
822
+ */
823
+ onDeleteCancel() {
824
+ this.setState({
825
+ showDelete: false,
826
+ itemsToDelete: []
827
+ });
828
+ }
829
+ /**
830
+ * On upload ok
831
+ * @method onUploadOk
832
+ * @returns {undefined}
833
+ */
834
+ onUploadOk() {
835
+ this.fetchContents();
836
+ this.setState({
837
+ showUpload: false
838
+ });
839
+ }
840
+ /**
841
+ * On upload cancel
842
+ * @method onUploadCancel
843
+ * @returns {undefined}
844
+ */
845
+ onUploadCancel() {
846
+ this.setState({
847
+ showUpload: false
848
+ });
849
+ }
850
+ /**
851
+ * On rename ok
852
+ * @method onRenameOk
853
+ * @returns {undefined}
854
+ */
855
+ onRenameOk() {
856
+ this.setState({
857
+ showRename: false,
858
+ selected: []
859
+ });
860
+ }
861
+ /**
862
+ * On rename cancel
863
+ * @method onRenameCancel
864
+ * @returns {undefined}
865
+ */
866
+ onRenameCancel() {
867
+ this.setState({
868
+ showRename: false
869
+ });
870
+ }
871
+ /**
872
+ * On tags ok
873
+ * @method onTagsOk
874
+ * @returns {undefined}
875
+ */
876
+ onTagsOk() {
877
+ this.setState({
878
+ showTags: false,
879
+ selected: []
880
+ });
881
+ }
882
+ /**
883
+ * On tags cancel
884
+ * @method onTagsCancel
885
+ * @returns {undefined}
886
+ */
887
+ onTagsCancel() {
888
+ this.setState({
889
+ showTags: false
890
+ });
891
+ }
892
+ /**
893
+ * On properties ok
894
+ * @method onPropertiesOk
895
+ * @returns {undefined}
896
+ */
897
+ onPropertiesOk() {
898
+ this.setState({
899
+ showProperties: false,
900
+ selected: []
901
+ });
902
+ }
903
+ /**
904
+ * On properties cancel
905
+ * @method onPropertiesCancel
906
+ * @returns {undefined}
907
+ */
908
+ onPropertiesCancel() {
909
+ this.setState({
910
+ showProperties: false
911
+ });
912
+ }
913
+ /**
914
+ * On workflow ok
915
+ * @method onWorkflowOk
916
+ * @returns {undefined}
917
+ */
918
+ onWorkflowOk() {
919
+ this.fetchContents();
920
+ this.setState({
921
+ showWorkflow: false,
922
+ selected: []
923
+ });
924
+ toast.success(
925
+ /* @__PURE__ */ jsx(
926
+ Toast,
927
+ {
928
+ success: true,
929
+ title: this.props.intl.formatMessage(messages.success),
930
+ content: this.props.intl.formatMessage(messages.messageWorkflowUpdate)
931
+ }
932
+ )
933
+ );
934
+ }
935
+ /**
936
+ * On workflow cancel
937
+ * @method onWorkflowCancel
938
+ * @returns {undefined}
939
+ */
940
+ onWorkflowCancel() {
941
+ this.setState({
942
+ showWorkflow: false
943
+ });
944
+ }
945
+ /**
946
+ * Get field by id
947
+ * @method getFieldById
948
+ * @param {string} id Id of object
949
+ * @param {string} field Field of object
950
+ * @returns {string} Field of object
951
+ */
952
+ getFieldById(id, field) {
953
+ const item = find(this.state.items, { "@id": id });
954
+ return item ? item[field] : "";
955
+ }
956
+ /**
957
+ * Fetch contents handler
958
+ * @method fetchContents
959
+ * @param {string} pathname Pathname to fetch contents.
960
+ * @returns {undefined}
961
+ */
962
+ fetchContents(pathname) {
963
+ if (this.state.pageSize === this.props.intl.formatMessage(messages.all)) {
964
+ this.props.searchContent(getBaseUrl(pathname || this.props.pathname), {
965
+ "path.depth": 1,
966
+ sort_on: this.state.sort_on,
967
+ sort_order: this.state.sort_order,
968
+ metadata_fields: "_all",
969
+ b_size: 1e8,
970
+ show_inactive: true,
971
+ ...this.state.filter && { SearchableText: `${this.state.filter}*` }
972
+ });
973
+ } else {
974
+ this.props.searchContent(getBaseUrl(pathname || this.props.pathname), {
975
+ "path.depth": 1,
976
+ sort_on: this.state.sort_on,
977
+ sort_order: this.state.sort_order,
978
+ metadata_fields: "_all",
979
+ ...this.state.filter && { SearchableText: `${this.state.filter}*` },
980
+ b_size: this.state.pageSize,
981
+ b_start: this.state.currentPage * this.state.pageSize,
982
+ show_inactive: true
983
+ });
984
+ }
985
+ }
986
+ /**
987
+ * Cut handler
988
+ * @method cut
989
+ * @param {Object} event Event object.
990
+ * @param {string} value Value of the event.
991
+ * @returns {undefined}
992
+ */
993
+ cut(event, { value }) {
994
+ this.props.cut(value ? [value] : this.state.selected);
995
+ this.onSelectNone();
996
+ toast.success(
997
+ /* @__PURE__ */ jsx(
998
+ Toast,
999
+ {
1000
+ success: true,
1001
+ title: this.props.intl.formatMessage(messages.success),
1002
+ content: this.props.intl.formatMessage(messages.messageCut)
1003
+ }
1004
+ )
1005
+ );
1006
+ }
1007
+ /**
1008
+ * Copy handler
1009
+ * @method copy
1010
+ * @param {Object} event Event object.
1011
+ * @param {string} value Value of the event.
1012
+ * @returns {undefined}
1013
+ */
1014
+ copy(event, { value }) {
1015
+ this.props.copy(value ? [value] : this.state.selected);
1016
+ this.onSelectNone();
1017
+ toast.success(
1018
+ /* @__PURE__ */ jsx(
1019
+ Toast,
1020
+ {
1021
+ success: true,
1022
+ title: this.props.intl.formatMessage(messages.success),
1023
+ content: this.props.intl.formatMessage(messages.messageCopied)
1024
+ }
1025
+ )
1026
+ );
1027
+ }
1028
+ /**
1029
+ * Delete handler
1030
+ * @method delete
1031
+ * @param {Object} event Event object.
1032
+ * @param {string} value Value of the event.
1033
+ * @returns {undefined}
1034
+ */
1035
+ delete(event, { value }) {
1036
+ this.setState({
1037
+ showDelete: true,
1038
+ itemsToDelete: value ? [value] : this.state.selected
1039
+ });
1040
+ }
1041
+ /**
1042
+ * Upload handler
1043
+ * @method upload
1044
+ * @returns {undefined}
1045
+ */
1046
+ upload() {
1047
+ this.setState({
1048
+ showUpload: true
1049
+ });
1050
+ }
1051
+ /**
1052
+ * Rename handler
1053
+ * @method rename
1054
+ * @returns {undefined}
1055
+ */
1056
+ rename() {
1057
+ this.setState({
1058
+ showRename: true
1059
+ });
1060
+ }
1061
+ /**
1062
+ * Tags handler
1063
+ * @method tags
1064
+ * @returns {undefined}
1065
+ */
1066
+ tags() {
1067
+ this.setState({
1068
+ showTags: true
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Properties handler
1073
+ * @method properties
1074
+ * @returns {undefined}
1075
+ */
1076
+ properties() {
1077
+ this.setState({
1078
+ showProperties: true
1079
+ });
1080
+ }
1081
+ /**
1082
+ * Workflow handler
1083
+ * @method workflow
1084
+ * @returns {undefined}
1085
+ */
1086
+ workflow() {
1087
+ this.setState({
1088
+ showWorkflow: true
1089
+ });
1090
+ }
1091
+ /**
1092
+ * Paste handler
1093
+ * @method paste
1094
+ * @returns {undefined}
1095
+ */
1096
+ paste() {
1097
+ if (this.props.action === "copy") {
1098
+ this.props.copyContent(
1099
+ this.props.source,
1100
+ getBaseUrl(this.props.pathname)
1101
+ );
1102
+ }
1103
+ if (this.props.action === "cut") {
1104
+ this.props.moveContent(
1105
+ this.props.source,
1106
+ getBaseUrl(this.props.pathname)
1107
+ );
1108
+ }
1109
+ }
1110
+ /**
1111
+ * Render method.
1112
+ * @method render
1113
+ * @returns {string} Markup for the component.
1114
+ */
1115
+ render() {
1116
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1117
+ const selected = this.state.selected.length > 0;
1118
+ const filteredItems = this.state.filteredItems || this.state.selected;
1119
+ const path = getBaseUrl(this.props.pathname);
1120
+ const folderContentsAction = find(this.props.objectActions, {
1121
+ id: "folderContents"
1122
+ });
1123
+ const loading = ((_a = this.props.clipboardRequest) == null ? void 0 : _a.loading) && !((_b = this.props.clipboardRequest) == null ? void 0 : _b.error) || ((_c = this.props.deleteRequest) == null ? void 0 : _c.loading) && !((_d = this.props.deleteRequest) == null ? void 0 : _d.error) || ((_e = this.props.updateRequest) == null ? void 0 : _e.loading) && !((_f = this.props.updateRequest) == null ? void 0 : _f.error) || ((_g = this.props.orderRequest) == null ? void 0 : _g.loading) && !((_h = this.props.orderRequest) == null ? void 0 : _h.error) || ((_i = this.props.searchRequest) == null ? void 0 : _i.loading) && !((_j = this.props.searchRequest) == null ? void 0 : _j.error);
1124
+ const Container$1 = $149c1bd638913645$export$2e2bcd8739ae039.getComponent({ name: "Container" }).component || Container;
1125
+ return this.props.token && ((_k = this.props.objectActions) == null ? void 0 : _k.length) > 0 ? /* @__PURE__ */ jsx(Fragment, { children: folderContentsAction ? /* @__PURE__ */ jsx(
1126
+ Container$1,
1127
+ {
1128
+ id: "page-contents",
1129
+ className: "folder-contents",
1130
+ "aria-live": "polite",
1131
+ children: /* @__PURE__ */ jsxs(Dimmer.Dimmable, { as: "div", blurring: true, dimmed: loading, children: [
1132
+ /* @__PURE__ */ jsx(Dimmer, { active: loading, inverted: true, children: /* @__PURE__ */ jsx(Loader, { indeterminate: true, size: "massive", children: this.props.intl.formatMessage(messages.loading) }) }),
1133
+ /* @__PURE__ */ jsx(
1134
+ HelmetExport,
1135
+ {
1136
+ title: this.props.intl.formatMessage(messages.contents)
1137
+ }
1138
+ ),
1139
+ /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("article", { id: "content", children: [
1140
+ /* @__PURE__ */ jsx(
1141
+ Confirm,
1142
+ {
1143
+ open: this.state.showDelete,
1144
+ confirmButton: this.state.brokenReferences === 0 ? "Delete" : "Delete item and break links",
1145
+ header: this.state.itemsToDelete.length === 1 ? this.props.intl.formatMessage(
1146
+ messages.deleteConfirmSingleItem
1147
+ ) : this.props.intl.formatMessage(
1148
+ messages.deleteConfirmMultipleItems
1149
+ ),
1150
+ content: /* @__PURE__ */ jsx("div", { className: "content", children: this.state.itemsToDelete.length > 1 ? this.state.containedItemsToDelete > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1151
+ /* @__PURE__ */ jsx(
1152
+ FormattedMessage,
1153
+ {
1154
+ id: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders.",
1155
+ defaultMessage: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders.",
1156
+ values: {
1157
+ containedItemsToDelete: /* @__PURE__ */ jsx("span", { children: this.state.containedItemsToDelete }),
1158
+ variation: /* @__PURE__ */ jsx("span", { children: this.state.containedItemsToDelete === 1 ? /* @__PURE__ */ jsx(
1159
+ FormattedMessage,
1160
+ {
1161
+ id: "item",
1162
+ defaultMessage: "item"
1163
+ }
1164
+ ) : /* @__PURE__ */ jsx(
1165
+ FormattedMessage,
1166
+ {
1167
+ id: "items",
1168
+ defaultMessage: "items"
1169
+ }
1170
+ ) })
1171
+ }
1172
+ }
1173
+ ),
1174
+ this.state.brokenReferences > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
1175
+ /* @__PURE__ */ jsx("br", {}),
1176
+ /* @__PURE__ */ jsx(
1177
+ FormattedMessage,
1178
+ {
1179
+ id: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken.",
1180
+ defaultMessage: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken.",
1181
+ values: {
1182
+ brokenReferences: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences }),
1183
+ variation: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences === 1 ? /* @__PURE__ */ jsx(
1184
+ FormattedMessage,
1185
+ {
1186
+ id: "reference",
1187
+ defaultMessage: "reference"
1188
+ }
1189
+ ) : /* @__PURE__ */ jsx(
1190
+ FormattedMessage,
1191
+ {
1192
+ id: "references",
1193
+ defaultMessage: "references"
1194
+ }
1195
+ ) })
1196
+ }
1197
+ }
1198
+ )
1199
+ ] })
1200
+ ] }) : /* @__PURE__ */ jsx(Fragment, { children: this.state.brokenReferences > 0 && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
1201
+ FormattedMessage,
1202
+ {
1203
+ id: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken.",
1204
+ defaultMessage: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken.",
1205
+ values: {
1206
+ brokenReferences: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences }),
1207
+ variation: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences === 1 ? /* @__PURE__ */ jsx(
1208
+ FormattedMessage,
1209
+ {
1210
+ id: "reference",
1211
+ defaultMessage: "reference"
1212
+ }
1213
+ ) : /* @__PURE__ */ jsx(
1214
+ FormattedMessage,
1215
+ {
1216
+ id: "references",
1217
+ defaultMessage: "references"
1218
+ }
1219
+ ) })
1220
+ }
1221
+ }
1222
+ ) }) }) : this.state.containedItemsToDelete > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1223
+ /* @__PURE__ */ jsx(
1224
+ FormattedMessage,
1225
+ {
1226
+ id: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder.",
1227
+ defaultMessage: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder.",
1228
+ values: {
1229
+ containedItemsToDelete: /* @__PURE__ */ jsx("span", { children: this.state.containedItemsToDelete }),
1230
+ variation: /* @__PURE__ */ jsx("span", { children: this.state.containedItemsToDelete === 1 ? /* @__PURE__ */ jsx(
1231
+ FormattedMessage,
1232
+ {
1233
+ id: "item",
1234
+ defaultMessage: "item"
1235
+ }
1236
+ ) : /* @__PURE__ */ jsx(
1237
+ FormattedMessage,
1238
+ {
1239
+ id: "items",
1240
+ defaultMessage: "items"
1241
+ }
1242
+ ) })
1243
+ }
1244
+ }
1245
+ ),
1246
+ this.state.brokenReferences > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
1247
+ /* @__PURE__ */ jsx("br", {}),
1248
+ /* @__PURE__ */ jsx(
1249
+ FormattedMessage,
1250
+ {
1251
+ id: "Deleting this item breaks {brokenReferences} {variation}.",
1252
+ defaultMessage: "Deleting this item breaks {brokenReferences} {variation}.",
1253
+ values: {
1254
+ brokenReferences: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences }),
1255
+ variation: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences === 1 ? /* @__PURE__ */ jsx(
1256
+ FormattedMessage,
1257
+ {
1258
+ id: "reference",
1259
+ defaultMessage: "reference"
1260
+ }
1261
+ ) : /* @__PURE__ */ jsx(
1262
+ FormattedMessage,
1263
+ {
1264
+ id: "references",
1265
+ defaultMessage: "references"
1266
+ }
1267
+ ) })
1268
+ }
1269
+ }
1270
+ ),
1271
+ /* @__PURE__ */ jsxs("div", { className: "broken-links-list", children: [
1272
+ /* @__PURE__ */ jsx(FormattedMessage, { id: "These items will have broken links" }),
1273
+ /* @__PURE__ */ jsx("ul", { children: this.state.breaches.map((breach) => /* @__PURE__ */ jsxs("li", { children: [
1274
+ /* @__PURE__ */ jsx(
1275
+ Link,
1276
+ {
1277
+ to: flattenToAppURL(
1278
+ breach.source["@id"]
1279
+ ),
1280
+ title: "Navigate to this item",
1281
+ children: breach.source.title
1282
+ }
1283
+ ),
1284
+ " ",
1285
+ "refers to",
1286
+ " ",
1287
+ breach.targets.map((target) => /* @__PURE__ */ jsx(
1288
+ Link,
1289
+ {
1290
+ to: flattenToAppURL(
1291
+ target["@id"]
1292
+ ),
1293
+ title: "Navigate to this item",
1294
+ children: target.title
1295
+ }
1296
+ )).reduce((result, item) => /* @__PURE__ */ jsxs(Fragment, { children: [
1297
+ result,
1298
+ ", ",
1299
+ item
1300
+ ] }))
1301
+ ] }, breach.source["@id"])) }),
1302
+ this.state.linksAndReferencesViewLink && /* @__PURE__ */ jsx(
1303
+ Link,
1304
+ {
1305
+ to: flattenToAppURL(
1306
+ this.state.linksAndReferencesViewLink
1307
+ ),
1308
+ children: /* @__PURE__ */ jsx(
1309
+ FormattedMessage,
1310
+ {
1311
+ id: "View links and references to this item",
1312
+ defaultMessage: "View links and references to this item"
1313
+ }
1314
+ )
1315
+ }
1316
+ )
1317
+ ] })
1318
+ ] })
1319
+ ] }) : this.state.brokenReferences > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
1320
+ /* @__PURE__ */ jsx(
1321
+ FormattedMessage,
1322
+ {
1323
+ id: "Deleting this item breaks {brokenReferences} {variation}.",
1324
+ defaultMessage: "Deleting this item breaks {brokenReferences} {variation}.",
1325
+ values: {
1326
+ brokenReferences: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences }),
1327
+ variation: /* @__PURE__ */ jsx("span", { children: this.state.brokenReferences === 1 ? /* @__PURE__ */ jsx(
1328
+ FormattedMessage,
1329
+ {
1330
+ id: "reference",
1331
+ defaultMessage: "reference"
1332
+ }
1333
+ ) : /* @__PURE__ */ jsx(FormattedMessage, { id: "references" }) })
1334
+ }
1335
+ }
1336
+ ),
1337
+ /* @__PURE__ */ jsxs("div", { className: "broken-links-list", children: [
1338
+ /* @__PURE__ */ jsx(FormattedMessage, { id: "These items will have broken links" }),
1339
+ /* @__PURE__ */ jsx("ul", { children: this.state.breaches.map((breach) => /* @__PURE__ */ jsxs("li", { children: [
1340
+ /* @__PURE__ */ jsx(
1341
+ Link,
1342
+ {
1343
+ to: flattenToAppURL(breach.source["@id"]),
1344
+ title: "Navigate to this item",
1345
+ children: breach.source.title
1346
+ }
1347
+ ),
1348
+ " ",
1349
+ "refers to",
1350
+ " ",
1351
+ breach.targets.map((target) => /* @__PURE__ */ jsx(
1352
+ Link,
1353
+ {
1354
+ to: flattenToAppURL(target["@id"]),
1355
+ title: "Navigate to this item",
1356
+ children: target.title
1357
+ }
1358
+ )).reduce((result, item) => /* @__PURE__ */ jsxs(Fragment, { children: [
1359
+ result,
1360
+ ", ",
1361
+ item
1362
+ ] }))
1363
+ ] }, breach.source["@id"])) }),
1364
+ this.state.linksAndReferencesViewLink && /* @__PURE__ */ jsx(
1365
+ Link,
1366
+ {
1367
+ to: flattenToAppURL(
1368
+ this.state.linksAndReferencesViewLink
1369
+ ),
1370
+ children: /* @__PURE__ */ jsx(
1371
+ FormattedMessage,
1372
+ {
1373
+ id: "View links and references to this item",
1374
+ defaultMessage: "View links and references to this item"
1375
+ }
1376
+ )
1377
+ }
1378
+ )
1379
+ ] })
1380
+ ] }) : null }),
1381
+ onCancel: this.onDeleteCancel,
1382
+ onConfirm: this.onDeleteOk,
1383
+ size: "medium"
1384
+ }
1385
+ ),
1386
+ /* @__PURE__ */ jsx(
1387
+ ContentsUploadModal,
1388
+ {
1389
+ open: this.state.showUpload,
1390
+ onCancel: this.onUploadCancel,
1391
+ onOk: this.onUploadOk,
1392
+ pathname: getBaseUrl(this.props.pathname)
1393
+ }
1394
+ ),
1395
+ /* @__PURE__ */ jsx(
1396
+ ContentsRenameModal,
1397
+ {
1398
+ open: this.state.showRename,
1399
+ onCancel: this.onRenameCancel,
1400
+ onOk: this.onRenameOk,
1401
+ items: map(this.state.selected, (item) => ({
1402
+ url: item,
1403
+ title: this.getFieldById(item, "title"),
1404
+ id: this.getFieldById(item, "id")
1405
+ }))
1406
+ }
1407
+ ),
1408
+ /* @__PURE__ */ jsx(
1409
+ ContentsTagsModal,
1410
+ {
1411
+ open: this.state.showTags,
1412
+ onCancel: this.onTagsCancel,
1413
+ onOk: this.onTagsOk,
1414
+ items: map(this.state.selected, (item) => ({
1415
+ url: item,
1416
+ subjects: this.getFieldById(item, "Subject")
1417
+ }))
1418
+ }
1419
+ ),
1420
+ /* @__PURE__ */ jsx(
1421
+ ContentsPropertiesModal,
1422
+ {
1423
+ open: this.state.showProperties,
1424
+ onCancel: this.onPropertiesCancel,
1425
+ onOk: this.onPropertiesOk,
1426
+ items: this.state.selected,
1427
+ values: map(
1428
+ this.state.selected,
1429
+ (id) => find(this.state.items, { "@id": id })
1430
+ ).filter((item) => item)
1431
+ }
1432
+ ),
1433
+ this.state.showWorkflow && /* @__PURE__ */ jsx(
1434
+ ContentsWorkflowModal,
1435
+ {
1436
+ open: this.state.showWorkflow,
1437
+ onCancel: this.onWorkflowCancel,
1438
+ onOk: this.onWorkflowOk,
1439
+ items: this.state.selected
1440
+ }
1441
+ ),
1442
+ /* @__PURE__ */ jsx("section", { id: "content-core", children: /* @__PURE__ */ jsxs(Segment.Group, { raised: true, children: [
1443
+ /* @__PURE__ */ jsxs(Menu, { secondary: true, attached: true, className: "top-menu", children: [
1444
+ /* @__PURE__ */ jsx(Menu.Menu, { className: "top-menu-menu", children: /* @__PURE__ */ jsx(
1445
+ Popup,
1446
+ {
1447
+ trigger: /* @__PURE__ */ jsx(
1448
+ Menu.Item,
1449
+ {
1450
+ icon: true,
1451
+ as: Button,
1452
+ onClick: this.upload,
1453
+ className: "upload",
1454
+ "aria-label": this.props.intl.formatMessage(
1455
+ messages.upload
1456
+ ),
1457
+ children: /* @__PURE__ */ jsx(
1458
+ Icon,
1459
+ {
1460
+ name: uploadSVG,
1461
+ color: "#007eb1",
1462
+ size: "24px",
1463
+ className: "upload"
1464
+ }
1465
+ )
1466
+ }
1467
+ ),
1468
+ position: "top center",
1469
+ content: this.props.intl.formatMessage(
1470
+ messages.upload
1471
+ ),
1472
+ size: "mini"
1473
+ }
1474
+ ) }),
1475
+ /* @__PURE__ */ jsxs(Menu.Menu, { className: "top-menu-menu", children: [
1476
+ /* @__PURE__ */ jsx(
1477
+ Popup,
1478
+ {
1479
+ trigger: /* @__PURE__ */ jsx(
1480
+ Menu.Item,
1481
+ {
1482
+ icon: true,
1483
+ as: Button,
1484
+ onClick: this.rename,
1485
+ disabled: !selected,
1486
+ "aria-label": this.props.intl.formatMessage(
1487
+ messages.rename
1488
+ ),
1489
+ children: /* @__PURE__ */ jsx(
1490
+ Icon,
1491
+ {
1492
+ name: renameSVG,
1493
+ color: selected ? "#826a6a" : "grey",
1494
+ size: "24px",
1495
+ className: "rename"
1496
+ }
1497
+ )
1498
+ }
1499
+ ),
1500
+ position: "top center",
1501
+ content: this.props.intl.formatMessage(
1502
+ messages.rename
1503
+ ),
1504
+ size: "mini"
1505
+ }
1506
+ ),
1507
+ /* @__PURE__ */ jsx(
1508
+ Popup,
1509
+ {
1510
+ trigger: /* @__PURE__ */ jsx(
1511
+ Menu.Item,
1512
+ {
1513
+ icon: true,
1514
+ as: Button,
1515
+ onClick: this.workflow,
1516
+ disabled: !selected,
1517
+ "aria-label": this.props.intl.formatMessage(
1518
+ messages.state
1519
+ ),
1520
+ children: /* @__PURE__ */ jsx(
1521
+ Icon,
1522
+ {
1523
+ name: semaphoreSVG,
1524
+ color: selected ? "#826a6a" : "grey",
1525
+ size: "24px",
1526
+ className: "semaphore"
1527
+ }
1528
+ )
1529
+ }
1530
+ ),
1531
+ position: "top center",
1532
+ content: this.props.intl.formatMessage(
1533
+ messages.state
1534
+ ),
1535
+ size: "mini"
1536
+ }
1537
+ ),
1538
+ /* @__PURE__ */ jsx(
1539
+ Popup,
1540
+ {
1541
+ trigger: /* @__PURE__ */ jsx(
1542
+ Menu.Item,
1543
+ {
1544
+ icon: true,
1545
+ as: Button,
1546
+ onClick: this.tags,
1547
+ disabled: !selected,
1548
+ "aria-label": this.props.intl.formatMessage(
1549
+ messages.tags
1550
+ ),
1551
+ children: /* @__PURE__ */ jsx(
1552
+ Icon,
1553
+ {
1554
+ name: tagSVG,
1555
+ color: selected ? "#826a6a" : "grey",
1556
+ size: "24px",
1557
+ className: "tag"
1558
+ }
1559
+ )
1560
+ }
1561
+ ),
1562
+ position: "top center",
1563
+ content: this.props.intl.formatMessage(
1564
+ messages.tags
1565
+ ),
1566
+ size: "mini"
1567
+ }
1568
+ ),
1569
+ /* @__PURE__ */ jsx(
1570
+ Popup,
1571
+ {
1572
+ trigger: /* @__PURE__ */ jsx(
1573
+ Menu.Item,
1574
+ {
1575
+ icon: true,
1576
+ as: Button,
1577
+ onClick: this.properties,
1578
+ disabled: !selected,
1579
+ "aria-label": this.props.intl.formatMessage(
1580
+ messages.properties
1581
+ ),
1582
+ children: /* @__PURE__ */ jsx(
1583
+ Icon,
1584
+ {
1585
+ name: propertiesSVG,
1586
+ color: selected ? "#826a6a" : "grey",
1587
+ size: "24px",
1588
+ className: "properties"
1589
+ }
1590
+ )
1591
+ }
1592
+ ),
1593
+ position: "top center",
1594
+ content: this.props.intl.formatMessage(
1595
+ messages.properties
1596
+ ),
1597
+ size: "mini"
1598
+ }
1599
+ )
1600
+ ] }),
1601
+ /* @__PURE__ */ jsxs(Menu.Menu, { className: "top-menu-menu", children: [
1602
+ /* @__PURE__ */ jsx(
1603
+ Popup,
1604
+ {
1605
+ trigger: /* @__PURE__ */ jsx(
1606
+ Menu.Item,
1607
+ {
1608
+ icon: true,
1609
+ as: Button,
1610
+ onClick: this.cut,
1611
+ disabled: !selected,
1612
+ "aria-label": this.props.intl.formatMessage(
1613
+ messages.cut
1614
+ ),
1615
+ children: /* @__PURE__ */ jsx(
1616
+ Icon,
1617
+ {
1618
+ name: cutSVG,
1619
+ color: selected ? "#826a6a" : "grey",
1620
+ size: "24px",
1621
+ className: "cut"
1622
+ }
1623
+ )
1624
+ }
1625
+ ),
1626
+ position: "top center",
1627
+ content: this.props.intl.formatMessage(
1628
+ messages.cut
1629
+ ),
1630
+ size: "mini"
1631
+ }
1632
+ ),
1633
+ /* @__PURE__ */ jsx(
1634
+ Popup,
1635
+ {
1636
+ trigger: /* @__PURE__ */ jsx(
1637
+ Menu.Item,
1638
+ {
1639
+ icon: true,
1640
+ as: Button,
1641
+ onClick: this.copy,
1642
+ disabled: !selected,
1643
+ "aria-label": this.props.intl.formatMessage(
1644
+ messages.copy
1645
+ ),
1646
+ children: /* @__PURE__ */ jsx(
1647
+ Icon,
1648
+ {
1649
+ name: copySVG,
1650
+ color: selected ? "#826a6a" : "grey",
1651
+ size: "24px",
1652
+ className: "copy"
1653
+ }
1654
+ )
1655
+ }
1656
+ ),
1657
+ position: "top center",
1658
+ content: this.props.intl.formatMessage(
1659
+ messages.copy
1660
+ ),
1661
+ size: "mini"
1662
+ }
1663
+ ),
1664
+ /* @__PURE__ */ jsx(
1665
+ Popup,
1666
+ {
1667
+ trigger: /* @__PURE__ */ jsx(
1668
+ Menu.Item,
1669
+ {
1670
+ icon: true,
1671
+ as: Button,
1672
+ onClick: this.paste,
1673
+ disabled: !this.props.action,
1674
+ "aria-label": this.props.intl.formatMessage(
1675
+ messages.paste
1676
+ ),
1677
+ children: /* @__PURE__ */ jsx(
1678
+ Icon,
1679
+ {
1680
+ name: pasteSVG,
1681
+ color: selected ? "#826a6a" : "grey",
1682
+ size: "24px",
1683
+ className: "paste"
1684
+ }
1685
+ )
1686
+ }
1687
+ ),
1688
+ position: "top center",
1689
+ content: this.props.intl.formatMessage(
1690
+ messages.paste
1691
+ ),
1692
+ size: "mini"
1693
+ }
1694
+ ),
1695
+ /* @__PURE__ */ jsx(
1696
+ Popup,
1697
+ {
1698
+ trigger: /* @__PURE__ */ jsx(
1699
+ Menu.Item,
1700
+ {
1701
+ icon: true,
1702
+ as: Button,
1703
+ onClick: this.delete,
1704
+ disabled: !selected,
1705
+ "aria-label": this.props.intl.formatMessage(
1706
+ messages.delete
1707
+ ),
1708
+ children: /* @__PURE__ */ jsx(
1709
+ Icon,
1710
+ {
1711
+ name: deleteSVG,
1712
+ color: selected ? "#e40166" : "grey",
1713
+ size: "24px",
1714
+ className: "delete"
1715
+ }
1716
+ )
1717
+ }
1718
+ ),
1719
+ position: "top center",
1720
+ content: this.props.intl.formatMessage(
1721
+ messages.delete
1722
+ ),
1723
+ size: "mini"
1724
+ }
1725
+ )
1726
+ ] }),
1727
+ /* @__PURE__ */ jsx(
1728
+ Menu.Menu,
1729
+ {
1730
+ position: "right",
1731
+ className: "top-menu-searchbox",
1732
+ children: /* @__PURE__ */ jsxs("div", { className: "ui right aligned category search item", children: [
1733
+ /* @__PURE__ */ jsx(
1734
+ Input,
1735
+ {
1736
+ type: "text",
1737
+ transparent: true,
1738
+ placeholder: this.props.intl.formatMessage(
1739
+ messages.filter
1740
+ ),
1741
+ size: "small",
1742
+ value: this.state.filter,
1743
+ onChange: this.onChangeFilter
1744
+ }
1745
+ ),
1746
+ this.state.filter && /* @__PURE__ */ jsx(
1747
+ Button,
1748
+ {
1749
+ className: "icon icon-container",
1750
+ onClick: () => {
1751
+ this.onChangeFilter("", { value: "" });
1752
+ },
1753
+ children: /* @__PURE__ */ jsx(
1754
+ Icon,
1755
+ {
1756
+ name: clearSVG,
1757
+ size: "30px",
1758
+ color: "#e40166"
1759
+ }
1760
+ )
1761
+ }
1762
+ ),
1763
+ /* @__PURE__ */ jsx(
1764
+ Icon,
1765
+ {
1766
+ name: zoomSVG,
1767
+ size: "30px",
1768
+ color: "#007eb1",
1769
+ className: "zoom",
1770
+ style: { flexShrink: "0" }
1771
+ }
1772
+ ),
1773
+ /* @__PURE__ */ jsx("div", { className: "results" })
1774
+ ] })
1775
+ }
1776
+ )
1777
+ ] }),
1778
+ /* @__PURE__ */ jsxs(
1779
+ Segment,
1780
+ {
1781
+ secondary: true,
1782
+ attached: true,
1783
+ className: "contents-breadcrumbs",
1784
+ children: [
1785
+ /* @__PURE__ */ jsx(ContentsBreadcrumbs, { items: this.props.breadcrumbs }),
1786
+ /* @__PURE__ */ jsx(
1787
+ Dropdown,
1788
+ {
1789
+ item: true,
1790
+ upward: false,
1791
+ icon: /* @__PURE__ */ jsx(Icon, { name: moreSVG, size: "24px", color: "#826a6a" }),
1792
+ className: "right floating selectIndex",
1793
+ children: /* @__PURE__ */ jsxs(Dropdown.Menu, { className: "left", children: [
1794
+ /* @__PURE__ */ jsx(
1795
+ Dropdown.Header,
1796
+ {
1797
+ content: this.props.intl.formatMessage(
1798
+ messages.selectColumns
1799
+ )
1800
+ }
1801
+ ),
1802
+ /* @__PURE__ */ jsx(Dropdown.Menu, { scrolling: true, children: map(
1803
+ filter(
1804
+ this.state.index.order,
1805
+ (index) => index !== "sortable_title"
1806
+ ),
1807
+ (index) => /* @__PURE__ */ jsxs(
1808
+ Dropdown.Item,
1809
+ {
1810
+ value: index,
1811
+ onClick: this.onSelectIndex,
1812
+ className: "iconAlign",
1813
+ children: [
1814
+ this.state.index.values[index].selected ? /* @__PURE__ */ jsx(
1815
+ Icon,
1816
+ {
1817
+ name: checkboxCheckedSVG,
1818
+ size: "24px",
1819
+ color: "#007eb1",
1820
+ className: this.state.index.values[index].label
1821
+ }
1822
+ ) : /* @__PURE__ */ jsx(
1823
+ Icon,
1824
+ {
1825
+ name: checkboxUncheckedSVG,
1826
+ className: this.state.index.values[index].label,
1827
+ size: "24px"
1828
+ }
1829
+ ),
1830
+ /* @__PURE__ */ jsxs("span", { children: [
1831
+ " ",
1832
+ this.props.intl.formatMessage({
1833
+ id: this.state.index.values[index].label,
1834
+ defaultMessage: this.state.index.values[index].label
1835
+ })
1836
+ ] })
1837
+ ]
1838
+ },
1839
+ index
1840
+ )
1841
+ ) })
1842
+ ] })
1843
+ }
1844
+ )
1845
+ ]
1846
+ }
1847
+ ),
1848
+ /* @__PURE__ */ jsx("div", { className: "contents-table-wrapper", children: /* @__PURE__ */ jsxs(Table, { selectable: true, compact: true, singleLine: true, attached: true, children: [
1849
+ /* @__PURE__ */ jsx(Table.Header, { children: /* @__PURE__ */ jsxs(Table.Row, { children: [
1850
+ /* @__PURE__ */ jsx(Table.HeaderCell, { children: /* @__PURE__ */ jsx(
1851
+ Popup,
1852
+ {
1853
+ menu: true,
1854
+ position: "bottom left",
1855
+ flowing: true,
1856
+ basic: true,
1857
+ on: "click",
1858
+ popper: {
1859
+ className: "dropdown-popup"
1860
+ },
1861
+ trigger: /* @__PURE__ */ jsx(
1862
+ Icon,
1863
+ {
1864
+ name: configurationSVG,
1865
+ size: "24px",
1866
+ color: "#826a6a",
1867
+ className: "dropdown-popup-trigger configuration-svg"
1868
+ }
1869
+ ),
1870
+ children: /* @__PURE__ */ jsxs(Menu, { vertical: true, borderless: true, fluid: true, children: [
1871
+ /* @__PURE__ */ jsx(
1872
+ Menu.Header,
1873
+ {
1874
+ content: this.props.intl.formatMessage(
1875
+ messages.rearrangeBy
1876
+ )
1877
+ }
1878
+ ),
1879
+ map(
1880
+ [
1881
+ "id",
1882
+ "sortable_title",
1883
+ "EffectiveDate",
1884
+ "CreationDate",
1885
+ "ModificationDate",
1886
+ "portal_type"
1887
+ ],
1888
+ (index) => /* @__PURE__ */ jsx(
1889
+ Dropdown,
1890
+ {
1891
+ item: true,
1892
+ simple: true,
1893
+ className: `sort_${index} icon-align`,
1894
+ icon: /* @__PURE__ */ jsx(
1895
+ Icon,
1896
+ {
1897
+ name: down_key,
1898
+ size: "24px",
1899
+ className: "left"
1900
+ }
1901
+ ),
1902
+ text: this.props.intl.formatMessage({
1903
+ id: Indexes[index].label
1904
+ }),
1905
+ children: /* @__PURE__ */ jsxs(Dropdown.Menu, { children: [
1906
+ /* @__PURE__ */ jsxs(
1907
+ Dropdown.Item,
1908
+ {
1909
+ onClick: this.onSortItems,
1910
+ value: `${Indexes[index].sort_on}|ascending`,
1911
+ className: `sort_${Indexes[index].sort_on}_ascending icon-align`,
1912
+ children: [
1913
+ /* @__PURE__ */ jsx(
1914
+ Icon,
1915
+ {
1916
+ name: sortDownSVG,
1917
+ size: "24px"
1918
+ }
1919
+ ),
1920
+ " ",
1921
+ /* @__PURE__ */ jsx(
1922
+ FormattedMessage,
1923
+ {
1924
+ id: "Ascending",
1925
+ defaultMessage: "Ascending"
1926
+ }
1927
+ )
1928
+ ]
1929
+ }
1930
+ ),
1931
+ /* @__PURE__ */ jsxs(
1932
+ Dropdown.Item,
1933
+ {
1934
+ onClick: this.onSortItems,
1935
+ value: `${Indexes[index].sort_on}|descending`,
1936
+ className: `sort_${Indexes[index].sort_on}_descending icon-align`,
1937
+ children: [
1938
+ /* @__PURE__ */ jsx(
1939
+ Icon,
1940
+ {
1941
+ name: sortUpSVG,
1942
+ size: "24px"
1943
+ }
1944
+ ),
1945
+ " ",
1946
+ /* @__PURE__ */ jsx(
1947
+ FormattedMessage,
1948
+ {
1949
+ id: "Descending",
1950
+ defaultMessage: "Descending"
1951
+ }
1952
+ )
1953
+ ]
1954
+ }
1955
+ )
1956
+ ] })
1957
+ },
1958
+ index
1959
+ )
1960
+ )
1961
+ ] })
1962
+ }
1963
+ ) }),
1964
+ /* @__PURE__ */ jsx(Table.HeaderCell, { children: /* @__PURE__ */ jsx(
1965
+ Popup,
1966
+ {
1967
+ menu: true,
1968
+ position: "bottom left",
1969
+ flowing: true,
1970
+ basic: true,
1971
+ on: "click",
1972
+ popper: {
1973
+ className: "dropdown-popup"
1974
+ },
1975
+ trigger: /* @__PURE__ */ jsx(
1976
+ Icon,
1977
+ {
1978
+ name: this.state.selected.length === 0 ? checkboxUncheckedSVG : this.state.selected.length === this.state.items.length ? checkboxCheckedSVG : checkboxIndeterminateSVG,
1979
+ color: this.state.selected.length > 0 ? "#007eb1" : "#826a6a",
1980
+ className: "dropdown-popup-trigger",
1981
+ size: "24px"
1982
+ }
1983
+ ),
1984
+ children: /* @__PURE__ */ jsxs(Menu, { vertical: true, borderless: true, fluid: true, children: [
1985
+ /* @__PURE__ */ jsx(
1986
+ Menu.Header,
1987
+ {
1988
+ content: this.props.intl.formatMessage(
1989
+ messages.select
1990
+ )
1991
+ }
1992
+ ),
1993
+ /* @__PURE__ */ jsxs(Menu.Item, { onClick: this.onSelectAll, children: [
1994
+ /* @__PURE__ */ jsx(
1995
+ Icon,
1996
+ {
1997
+ name: checkboxCheckedSVG,
1998
+ color: "#007eb1",
1999
+ size: "24px"
2000
+ }
2001
+ ),
2002
+ " ",
2003
+ /* @__PURE__ */ jsx(
2004
+ FormattedMessage,
2005
+ {
2006
+ id: "All",
2007
+ defaultMessage: "All"
2008
+ }
2009
+ )
2010
+ ] }),
2011
+ /* @__PURE__ */ jsxs(Menu.Item, { onClick: this.onSelectNone, children: [
2012
+ /* @__PURE__ */ jsx(
2013
+ Icon,
2014
+ {
2015
+ name: checkboxUncheckedSVG,
2016
+ size: "24px"
2017
+ }
2018
+ ),
2019
+ " ",
2020
+ /* @__PURE__ */ jsx(
2021
+ FormattedMessage,
2022
+ {
2023
+ id: "None",
2024
+ defaultMessage: "None"
2025
+ }
2026
+ )
2027
+ ] }),
2028
+ /* @__PURE__ */ jsx(Divider, {}),
2029
+ /* @__PURE__ */ jsx(
2030
+ Menu.Header,
2031
+ {
2032
+ content: this.props.intl.formatMessage(
2033
+ messages.selected,
2034
+ {
2035
+ count: this.state.selected.length
2036
+ }
2037
+ )
2038
+ }
2039
+ ),
2040
+ /* @__PURE__ */ jsx(
2041
+ Input,
2042
+ {
2043
+ icon: /* @__PURE__ */ jsx(Icon, { name: zoomSVG, size: "24px" }),
2044
+ iconPosition: "left",
2045
+ className: "item search",
2046
+ placeholder: this.props.intl.formatMessage(
2047
+ messages.filter
2048
+ ),
2049
+ value: this.state.selectedMenuFilter || "",
2050
+ onChange: this.onChangeSelected,
2051
+ onClick: (e) => {
2052
+ e.preventDefault();
2053
+ e.stopPropagation();
2054
+ }
2055
+ }
2056
+ ),
2057
+ /* @__PURE__ */ jsx(Menu.Menu, { scrolling: true, children: map(filteredItems, (item) => /* @__PURE__ */ jsxs(
2058
+ Menu.Item,
2059
+ {
2060
+ value: item,
2061
+ onClick: this.onDeselect,
2062
+ children: [
2063
+ /* @__PURE__ */ jsx(
2064
+ Icon,
2065
+ {
2066
+ name: deleteSVG,
2067
+ color: "#e40166",
2068
+ size: "24px"
2069
+ }
2070
+ ),
2071
+ " ",
2072
+ this.getFieldById(item, "title")
2073
+ ]
2074
+ },
2075
+ item
2076
+ )) })
2077
+ ] })
2078
+ }
2079
+ ) }),
2080
+ /* @__PURE__ */ jsx(
2081
+ Table.HeaderCell,
2082
+ {
2083
+ width: Math.ceil(
2084
+ 16 / this.state.index.selectedCount
2085
+ ),
2086
+ children: /* @__PURE__ */ jsx(
2087
+ FormattedMessage,
2088
+ {
2089
+ id: "Title",
2090
+ defaultMessage: "Title"
2091
+ }
2092
+ )
2093
+ }
2094
+ ),
2095
+ map(
2096
+ this.state.index.order,
2097
+ (index, order) => this.state.index.values[index].selected && /* @__PURE__ */ jsx(
2098
+ DragDropConnector$1,
2099
+ {
2100
+ width: Math.ceil(
2101
+ 16 / this.state.index.selectedCount
2102
+ ),
2103
+ label: this.state.index.values[index].label,
2104
+ order,
2105
+ onOrderIndex: this.onOrderIndex
2106
+ },
2107
+ index
2108
+ )
2109
+ ),
2110
+ /* @__PURE__ */ jsx(Table.HeaderCell, { textAlign: "right", children: /* @__PURE__ */ jsx(
2111
+ FormattedMessage,
2112
+ {
2113
+ id: "Actions",
2114
+ defaultMessage: "Actions"
2115
+ }
2116
+ ) })
2117
+ ] }) }),
2118
+ /* @__PURE__ */ jsx(Table.Body, { children: this.state.items.map((item, order) => /* @__PURE__ */ jsx(
2119
+ DragDropConnector$2,
2120
+ {
2121
+ item,
2122
+ order,
2123
+ selected: indexOf(this.state.selected, item["@id"]) !== -1,
2124
+ onClick: this.onSelect,
2125
+ indexes: filter(
2126
+ map(this.state.index.order, (index) => ({
2127
+ id: index,
2128
+ type: this.state.index.values[index].type
2129
+ })),
2130
+ (index) => this.state.index.values[index.id].selected
2131
+ ),
2132
+ onCut: this.cut,
2133
+ onCopy: this.copy,
2134
+ onDelete: this.delete,
2135
+ onOrderItem: this.onOrderItem,
2136
+ onMoveToTop: this.onMoveToTop,
2137
+ onMoveToBottom: this.onMoveToBottom
2138
+ },
2139
+ item["@id"]
2140
+ )) })
2141
+ ] }) }),
2142
+ /* @__PURE__ */ jsx("div", { className: "contents-pagination", children: /* @__PURE__ */ jsx(
2143
+ Pagination,
2144
+ {
2145
+ current: this.state.currentPage,
2146
+ total: Math.ceil(
2147
+ this.props.total / this.state.pageSize
2148
+ ),
2149
+ pageSize: this.state.pageSize,
2150
+ pageSizes: [
2151
+ 50,
2152
+ this.props.intl.formatMessage(messages.all)
2153
+ ],
2154
+ onChangePage: this.onChangePage,
2155
+ onChangePageSize: this.onChangePageSize
2156
+ }
2157
+ ) })
2158
+ ] }) })
2159
+ ] }) }),
2160
+ this.state.isClient && createPortal(
2161
+ /* @__PURE__ */ jsx(
2162
+ Toolbar,
2163
+ {
2164
+ pathname: this.props.pathname,
2165
+ inner: /* @__PURE__ */ jsx(
2166
+ Link,
2167
+ {
2168
+ to: `${path}`,
2169
+ "aria-label": this.props.intl.formatMessage(
2170
+ messages.back
2171
+ ),
2172
+ children: /* @__PURE__ */ jsx(
2173
+ Icon,
2174
+ {
2175
+ name: backSVG,
2176
+ className: "contents circled",
2177
+ size: "30px",
2178
+ title: this.props.intl.formatMessage(messages.back)
2179
+ }
2180
+ )
2181
+ }
2182
+ )
2183
+ }
2184
+ ),
2185
+ document.getElementById("toolbar")
2186
+ )
2187
+ ] })
2188
+ }
2189
+ ) : /* @__PURE__ */ jsx(Unauthorized, { staticContext: this.props.staticContext }) }) : /* @__PURE__ */ jsx(Unauthorized, { staticContext: this.props.staticContext });
2190
+ }
2191
+ }
2192
+ /**
2193
+ * Property types.
2194
+ * @property {Object} propTypes Property types.
2195
+ * @static
2196
+ */
2197
+ __publicField(Contents, "propTypes", {
2198
+ action: PropTypes.string,
2199
+ source: PropTypes.arrayOf(PropTypes.string),
2200
+ searchContent: PropTypes.func.isRequired,
2201
+ cut: PropTypes.func.isRequired,
2202
+ copy: PropTypes.func.isRequired,
2203
+ copyContent: PropTypes.func.isRequired,
2204
+ deleteContent: PropTypes.func.isRequired,
2205
+ moveContent: PropTypes.func.isRequired,
2206
+ orderContent: PropTypes.func.isRequired,
2207
+ sortContent: PropTypes.func.isRequired,
2208
+ updateColumnsContent: PropTypes.func.isRequired,
2209
+ linkIntegrityCheck: PropTypes.func.isRequired,
2210
+ clipboardRequest: PropTypes.shape({
2211
+ loading: PropTypes.bool,
2212
+ loaded: PropTypes.bool
2213
+ }).isRequired,
2214
+ deleteRequest: PropTypes.shape({
2215
+ loading: PropTypes.bool,
2216
+ loaded: PropTypes.bool
2217
+ }).isRequired,
2218
+ updateRequest: PropTypes.shape({
2219
+ loading: PropTypes.bool,
2220
+ loaded: PropTypes.bool
2221
+ }).isRequired,
2222
+ searchRequest: PropTypes.shape({
2223
+ loading: PropTypes.bool,
2224
+ loaded: PropTypes.bool
2225
+ }).isRequired,
2226
+ items: PropTypes.arrayOf(
2227
+ PropTypes.shape({
2228
+ "@id": PropTypes.string,
2229
+ "@type": PropTypes.string,
2230
+ title: PropTypes.string,
2231
+ description: PropTypes.string
2232
+ })
2233
+ ),
2234
+ breadcrumbs: PropTypes.arrayOf(
2235
+ PropTypes.shape({
2236
+ title: PropTypes.string,
2237
+ url: PropTypes.string
2238
+ })
2239
+ ).isRequired,
2240
+ total: PropTypes.number.isRequired,
2241
+ pathname: PropTypes.string.isRequired
2242
+ });
2243
+ /**
2244
+ * Default properties.
2245
+ * @property {Object} defaultProps Default properties.
2246
+ * @static
2247
+ */
2248
+ __publicField(Contents, "defaultProps", {
2249
+ items: [],
2250
+ action: null,
2251
+ source: null,
2252
+ index: {
2253
+ order: keys(Indexes),
2254
+ values: mapValues(Indexes, (value, key) => ({
2255
+ ...value,
2256
+ selected: indexOf(defaultIndexes, key) !== -1
2257
+ })),
2258
+ selectedCount: defaultIndexes.length + 1
2259
+ }
2260
+ });
2261
+ let dndContext;
2262
+ const DragDropConnector = (props) => {
2263
+ const DndConnectedContents = React__default.useMemo(() => {
2264
+ if (!dndContext) {
2265
+ dndContext = DragDropContext(HTML5Backend);
2266
+ }
2267
+ return dndContext(Contents);
2268
+ }, [DragDropContext, HTML5Backend]);
2269
+ return /* @__PURE__ */ jsx(DndConnectedContents, { ...props });
2270
+ };
2271
+ const __test__ = compose(
2272
+ injectIntl,
2273
+ connect(
2274
+ (store, props) => {
2275
+ return {
2276
+ token: store.userSession.token,
2277
+ items: store.search.items,
2278
+ sort: store.content.update.sort,
2279
+ index: store.content.updatecolumns.idx,
2280
+ breadcrumbs: store.breadcrumbs.items,
2281
+ total: store.search.total,
2282
+ searchRequest: {
2283
+ loading: store.search.loading,
2284
+ loaded: store.search.loaded
2285
+ },
2286
+ pathname: props.location.pathname,
2287
+ action: store.clipboard.action,
2288
+ source: store.clipboard.source,
2289
+ clipboardRequest: store.clipboard.request,
2290
+ deleteRequest: store.content.delete,
2291
+ updateRequest: store.content.update,
2292
+ objectActions: store.actions.actions.object,
2293
+ orderRequest: store.content.order
2294
+ };
2295
+ },
2296
+ {
2297
+ searchContent,
2298
+ cut,
2299
+ copy,
2300
+ copyContent,
2301
+ deleteContent,
2302
+ listActions,
2303
+ moveContent,
2304
+ orderContent,
2305
+ sortContent,
2306
+ updateColumnsContent,
2307
+ linkIntegrityCheck,
2308
+ getContent
2309
+ }
2310
+ )
2311
+ )(Contents);
2312
+ const Contents$1 = compose(
2313
+ injectIntl,
2314
+ connect(
2315
+ (store, props) => {
2316
+ return {
2317
+ token: store.userSession.token,
2318
+ items: store.search.items,
2319
+ sort: store.content.update.sort,
2320
+ index: store.content.updatecolumns.idx,
2321
+ breadcrumbs: store.breadcrumbs.items,
2322
+ total: store.search.total,
2323
+ searchRequest: {
2324
+ loading: store.search.loading,
2325
+ loaded: store.search.loaded
2326
+ },
2327
+ pathname: props.location.pathname,
2328
+ action: store.clipboard.action,
2329
+ source: store.clipboard.source,
2330
+ clipboardRequest: store.clipboard.request,
2331
+ deleteRequest: store.content.delete,
2332
+ updateRequest: store.content.update,
2333
+ objectActions: store.actions.actions.object,
2334
+ orderRequest: store.content.order
2335
+ };
2336
+ },
2337
+ {
2338
+ searchContent,
2339
+ cut,
2340
+ copy,
2341
+ copyContent,
2342
+ deleteContent,
2343
+ listActions,
2344
+ moveContent,
2345
+ orderContent,
2346
+ sortContent,
2347
+ updateColumnsContent,
2348
+ linkIntegrityCheck,
2349
+ getContent
2350
+ }
2351
+ ),
2352
+ asyncConnect([
2353
+ {
2354
+ key: "actions",
2355
+ // Dispatch async/await to make the operation synchronous, otherwise it returns
2356
+ // before the promise is resolved
2357
+ promise: async ({ location, store: { dispatch } }) => await dispatch(listActions(getBaseUrl(location.pathname)))
2358
+ }
2359
+ ])
2360
+ )(DragDropConnector);
2361
+ export {
2362
+ __test__,
2363
+ Contents$1 as default
2364
+ };