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

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 (570) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +5 -5
  3. package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +1 -0
  4. package/dist/android-chrome-192x192.png +0 -0
  5. package/dist/android-chrome-512x512.png +0 -0
  6. package/dist/apple-touch-icon.png +0 -0
  7. package/dist/assets/Add-CA4YI1L9.js +0 -1
  8. package/dist/assets/AddRule-D3FXfjP2.js +0 -1
  9. package/dist/assets/AddonsControlpanel-BVvov68i.js +0 -1
  10. package/dist/assets/Aliases-CTeg6p2o.js +0 -1
  11. package/dist/assets/Aliases-CiYzFinq.js +0 -1
  12. package/dist/assets/AlignWidget-DOdVMFPI.js +0 -1
  13. package/dist/assets/ArrayWidget-BrkmZ5dw.js +0 -2
  14. package/dist/assets/BlockDataForm-B3mthY8C.js +0 -1
  15. package/dist/assets/BlocksForm-B4Z6BgXT.js +0 -2
  16. package/dist/assets/BlocksToolbar-QLlNn733.js +0 -1
  17. package/dist/assets/ButtonsWidget-DEMy855M.js +0 -1
  18. package/dist/assets/ByDayField-jAVQ7XPH.js +0 -1
  19. package/dist/assets/ChangePassword-6aoonCrF.js +0 -1
  20. package/dist/assets/CheckboxWidget-IMR_-sRq.js +0 -1
  21. package/dist/assets/ColorPickerWidget-Dejm2B0T.js +0 -1
  22. package/dist/assets/CommentEditModal-Dsgav7Iq.js +0 -1
  23. package/dist/assets/Comments-Bef0xvDU.js +0 -1
  24. package/dist/assets/ConfigureRule-DXI9YD9P.js +0 -1
  25. package/dist/assets/Confirm-DFyDHvrF.js +0 -1
  26. package/dist/assets/ContactForm-CQVq5Emz.js +0 -1
  27. package/dist/assets/ContentType-DiwmXeXW.js +0 -1
  28. package/dist/assets/ContentTypeLayout-DM4zSiq_.js +0 -1
  29. package/dist/assets/ContentTypeSchema-DiQYp2-x.js +0 -1
  30. package/dist/assets/ContentTypes-DNvhsL2E.js +0 -1
  31. package/dist/assets/Contents-HiCShUFN.js +0 -2
  32. package/dist/assets/ContentsBreadcrumbs-C8wbasB3.js +0 -1
  33. package/dist/assets/ContentsIndexHeader-DWLUzSSN.js +0 -1
  34. package/dist/assets/ContentsItem-lDg0F8jy.js +0 -1
  35. package/dist/assets/ContentsPropertiesModal-xyVS8Pm9.js +0 -1
  36. package/dist/assets/ContentsRenameModal-CR9og1vu.js +0 -1
  37. package/dist/assets/ContentsTagsModal-sm2mz3cz.js +0 -1
  38. package/dist/assets/ContentsUploadModal-DAvSG2iz.js +0 -5
  39. package/dist/assets/ContentsWorkflowModal-B1faSBIm.js +0 -1
  40. package/dist/assets/Controlpanel-rIBVAK5V.js +0 -1
  41. package/dist/assets/Controlpanels-yqRsYca2.js +0 -1
  42. package/dist/assets/CreateTranslation-BovC3sNf.js +0 -1
  43. package/dist/assets/DatabaseInformation-BhfKGQdR.js +0 -1
  44. package/dist/assets/DatetimeWidget-BdaHrXzK.css +0 -1
  45. package/dist/assets/DatetimeWidget-CGRn8MDB.js +0 -2
  46. package/dist/assets/Delete-Bf_oGO3l.js +0 -1
  47. package/dist/assets/Diff-BOq2GAEN.js +0 -2
  48. package/dist/assets/DiffField-URJH7cyl.js +0 -42
  49. package/dist/assets/Divider-I-Vkru5f.js +0 -1
  50. package/dist/assets/DragDropList-DGGG9KzJ.js +0 -1
  51. package/dist/assets/DynamicRowHeightList-DTGQZVrT.js +0 -2
  52. package/dist/assets/Edit-DjR75Yke.js +0 -1
  53. package/dist/assets/EditRule-BBvjH707.js +0 -1
  54. package/dist/assets/EmailWidget-Bq_6HMhS.js +0 -1
  55. package/dist/assets/Error-DgGrUrdR.js +0 -1
  56. package/dist/assets/EventDatesInfo-BBanEDzq.js +0 -2
  57. package/dist/assets/EventView-B5GwqNQP.js +0 -2
  58. package/dist/assets/Field-BivWUJ1M.js +0 -1
  59. package/dist/assets/FileWidget-Cbu5QwYg.js +0 -2
  60. package/dist/assets/Form-ZI0Zshdh.js +0 -1
  61. package/dist/assets/FormattedRelativeDate-BDqnftFO.js +0 -1
  62. package/dist/assets/GroupsControlpanel-DVw7gRP-.js +0 -1
  63. package/dist/assets/History-eh7QSqQ3.js +0 -1
  64. package/dist/assets/IdWidget-BdcHR4jR.js +0 -1
  65. package/dist/assets/ImageSizeWidget-C44x9fO8.js +0 -1
  66. package/dist/assets/InlineForm-DQFfCjzF.js +0 -1
  67. package/dist/assets/InternalUrlWidget-BJ2TlHvv.js +0 -1
  68. package/dist/assets/LinksToItem-OcO6d56I.js +0 -1
  69. package/dist/assets/Login-BwMJ6f50.js +0 -1
  70. package/dist/assets/Logout-BUHwA4DE.js +0 -1
  71. package/dist/assets/ManageTranslations-ChQ7vL2i.js +0 -1
  72. package/dist/assets/ModalForm-CvvXZSkU.js +0 -1
  73. package/dist/assets/ModerateComments-1Ov7biDm.js +0 -1
  74. package/dist/assets/MonthOfTheYearField-CM70wuIb.js +0 -1
  75. package/dist/assets/NumberWidget-DABMHQm5.js +0 -1
  76. package/dist/assets/ObjectBrowserWidget-Bh4JpoWw.js +0 -1
  77. package/dist/assets/ObjectListWidget-DznYu5qo.js +0 -2
  78. package/dist/assets/ObjectWidget-BBA-_l7E.js +0 -1
  79. package/dist/assets/Occurences-BzxgwsYx.js +0 -1
  80. package/dist/assets/Order-BtyRvLNH.js +0 -5
  81. package/dist/assets/Pagination-CJSyS-v5.js +0 -1
  82. package/dist/assets/PasswordReset-COH0dZIO.js +0 -1
  83. package/dist/assets/PasswordWidget-DoHmi1Qa.js +0 -1
  84. package/dist/assets/PersonalInformation-BnghqH8c.js +0 -1
  85. package/dist/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
  86. package/dist/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
  87. package/dist/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
  88. package/dist/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
  89. package/dist/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
  90. package/dist/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
  91. package/dist/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
  92. package/dist/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
  93. package/dist/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
  94. package/dist/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
  95. package/dist/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
  96. package/dist/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
  97. package/dist/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
  98. package/dist/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
  99. package/dist/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
  100. package/dist/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
  101. package/dist/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
  102. package/dist/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
  103. package/dist/assets/QuerySortOnWidget-souad4DL.js +0 -2
  104. package/dist/assets/QueryWidget-qk9RayXO.js +0 -2
  105. package/dist/assets/QuerystringWidget-DH5jhTLr.js +0 -1
  106. package/dist/assets/RecurrenceWidget-DnuZQPcL.js +0 -2
  107. package/dist/assets/ReferenceWidget-B4Ut0GeE.js +0 -1
  108. package/dist/assets/Register-CZJ_qhM8.js +0 -1
  109. package/dist/assets/RegistryImageWidget-CdL-rOKh.js +0 -2
  110. package/dist/assets/Relations-BwmDXEO-.js +0 -1
  111. package/dist/assets/RenderGroups-CEJGSsLf.js +0 -1
  112. package/dist/assets/RenderUsers--9m7uN_M.js +0 -1
  113. package/dist/assets/RequestPasswordReset-ClwvyAVg.js +0 -1
  114. package/dist/assets/Rules-CmCkDhXN.js +0 -1
  115. package/dist/assets/Rules-NXbkDTgW.js +0 -1
  116. package/dist/assets/SchemaWidget-B0c4tT_v.js +0 -5
  117. package/dist/assets/Search-CspR83YZ.js +0 -1
  118. package/dist/assets/SelectAutoComplete-D6sNEX-d.js +0 -2
  119. package/dist/assets/SelectMetadataField-Bp04JyaC.js +0 -2
  120. package/dist/assets/SelectUtils-BBksmIZO.js +0 -1
  121. package/dist/assets/SelectWidget-7oSuJ3oC.js +0 -2
  122. package/dist/assets/Sharing-BD2SWQfE.js +0 -1
  123. package/dist/assets/Sidebar-DgSrLVjY.js +0 -1
  124. package/dist/assets/Sitemap-YzTuoH0K.js +0 -1
  125. package/dist/assets/TextWidget-DuuGzOfb.js +0 -1
  126. package/dist/assets/TextareaWidget-Dy-lG0rT.js +0 -1
  127. package/dist/assets/TokenWidget-DPBxq9gC.js +0 -2
  128. package/dist/assets/Toolbar-DRQzi_9w.js +0 -2
  129. package/dist/assets/TranslationObject-looZSaOd.js +0 -1
  130. package/dist/assets/UndoControlpanel-DskOWXtR.js +0 -1
  131. package/dist/assets/UndoToolbar-d2m9s_d7.js +0 -1
  132. package/dist/assets/UpgradeControlPanel-D25islCR.js +0 -1
  133. package/dist/assets/UrlWidget-DVyURufw.js +0 -1
  134. package/dist/assets/User-CGkBaCm_.js +0 -1
  135. package/dist/assets/UserGroupMembershipControlPanel-GG_7FkTb.js +0 -1
  136. package/dist/assets/UsersControlpanel-baYxuzjn.js +0 -1
  137. package/dist/assets/VersionOverview-A7mgPMUR.js +0 -1
  138. package/dist/assets/VocabularyTermsWidget-M-5KcHUD.js +0 -2
  139. package/dist/assets/WeekdayOfTheMonthField-Cjj_8dDR.js +0 -1
  140. package/dist/assets/WysiwygWidget-GxnNCpDG.js +0 -1
  141. package/dist/assets/add-user-CTbv3TmR.js +0 -1
  142. package/dist/assets/aliases-C-VS65Iw.js +0 -1
  143. package/dist/assets/ca-DPz_x4tN.js +0 -1
  144. package/dist/assets/cut-ZxaZMyVt.js +0 -1
  145. package/dist/assets/de-CEfDIAIe.js +0 -1
  146. package/dist/assets/drag-CfL-m2gM.js +0 -1
  147. package/dist/assets/en-UGAeOB73.js +0 -1
  148. package/dist/assets/es-bTR5ZO7p.js +0 -1
  149. package/dist/assets/eu-ClGcMWvo.js +0 -1
  150. package/dist/assets/fi-Cb9XYMls.js +0 -1
  151. package/dist/assets/fr-paTim4vs.js +0 -1
  152. package/dist/assets/groups-pKq-wbS4.js +0 -1
  153. package/dist/assets/hi-wfjyKWJi.js +0 -1
  154. package/dist/assets/history-YklEZVTU.js +0 -1
  155. package/dist/assets/icons-BvLvFD6l.ttf +0 -0
  156. package/dist/assets/icons-DEAbt7RB.woff +0 -0
  157. package/dist/assets/icons-DtZ6carP.eot +0 -0
  158. package/dist/assets/icons-hSdpWXN3.svg +0 -320
  159. package/dist/assets/image-gallery-DpLmJ-rt.js +0 -1
  160. package/dist/assets/index-B0HjVmtS.js +0 -2
  161. package/dist/assets/index-B21wqIU_.js +0 -1
  162. package/dist/assets/index-C2wVBtsx.js +0 -690
  163. package/dist/assets/index-CVdJPLUb.js +0 -3
  164. package/dist/assets/index-CYKeo7yW.js +0 -28
  165. package/dist/assets/index-D27Aat_y.css +0 -346
  166. package/dist/assets/index-D6aBCFDE.js +0 -1
  167. package/dist/assets/index-DLUMPle8.js +0 -1
  168. package/dist/assets/it-DefHMwCV.js +0 -1
  169. package/dist/assets/ja-ChtpWCYw.js +0 -1
  170. package/dist/assets/memoize-one.esm-CcMeOnPo.js +0 -1
  171. package/dist/assets/messages-BK-H1zLr.js +0 -1
  172. package/dist/assets/nl-SQksV7ER.js +0 -1
  173. package/dist/assets/objectWithoutProperties-xAH_kqrN.js +0 -1
  174. package/dist/assets/paste-BecFEOpX.js +0 -1
  175. package/dist/assets/plone-CrIeS8BF.js +0 -1
  176. package/dist/assets/prism-markup-DpNACz_g.js +0 -1
  177. package/dist/assets/pt-aWkeVAjQ.js +0 -1
  178. package/dist/assets/pt_BR-77wXUzSL.js +0 -1
  179. package/dist/assets/react-beautiful-dnd.esm-DJMwJ8Si.js +0 -61
  180. package/dist/assets/react-lifecycles-compat.es-AfN2QaV3.js +0 -9
  181. package/dist/assets/react-select.esm-Bw9Tks6S.js +0 -1
  182. package/dist/assets/react-select.esm-DqdZW0cZ.js +0 -1
  183. package/dist/assets/react-select.esm-Dv_YRvYk.js +0 -1
  184. package/dist/assets/relations-D2Yk2g8d.js +0 -1
  185. package/dist/assets/ro-DAOiSqwr.js +0 -1
  186. package/dist/assets/rruleset-Qg0TbHC_.js +0 -7
  187. package/dist/assets/rules-C-4EoouS.js +0 -1
  188. package/dist/assets/save-A8XnzzXZ.js +0 -1
  189. package/dist/assets/sidebar-Dbvn11Db.js +0 -1
  190. package/dist/assets/stateManager-845a3300.esm-BhBFYHat.js +0 -4
  191. package/dist/assets/translations-u5Qaabj8.js +0 -1
  192. package/dist/assets/undo-BK07_7QN.js +0 -1
  193. package/dist/assets/useClient-BrFMIo4b.js +0 -1
  194. package/dist/assets/users-BouhAiNc.js +0 -1
  195. package/dist/assets/vocabularies-x3dq3N13.js +0 -1
  196. package/dist/assets/workflow-B0qjcbVe.js +0 -1
  197. package/dist/assets/zh_CN-eXXUKVGT.js +0 -1
  198. package/dist/client/.vite/ssr-manifest.json +0 -44443
  199. package/dist/client/android-chrome-192x192.png +0 -0
  200. package/dist/client/android-chrome-512x512.png +0 -0
  201. package/dist/client/apple-touch-icon.png +0 -0
  202. package/dist/client/assets/Add-CUwRE6eq.js +0 -1
  203. package/dist/client/assets/AddRule-DSFiKef1.js +0 -1
  204. package/dist/client/assets/AddonsControlpanel-C6Q8GWZM.js +0 -1
  205. package/dist/client/assets/Aliases-BqlvnmTi.js +0 -1
  206. package/dist/client/assets/Aliases-FQ5jo7iQ.js +0 -1
  207. package/dist/client/assets/AlignWidget-CCQ8VpM1.js +0 -1
  208. package/dist/client/assets/ArrayWidget-CX0k9WCr.js +0 -2
  209. package/dist/client/assets/BlockDataForm-DvgCpCxy.js +0 -1
  210. package/dist/client/assets/BlocksForm-CTDjl09L.js +0 -2
  211. package/dist/client/assets/BlocksToolbar-Tq18mPLi.js +0 -1
  212. package/dist/client/assets/ButtonsWidget-uO96wErC.js +0 -1
  213. package/dist/client/assets/ByDayField-BZ3N4ASQ.js +0 -1
  214. package/dist/client/assets/ChangePassword-CMuaFMBI.js +0 -1
  215. package/dist/client/assets/CheckboxWidget-Cdn9sM5i.js +0 -1
  216. package/dist/client/assets/ColorPickerWidget-CbZGSU8b.js +0 -1
  217. package/dist/client/assets/CommentEditModal-DpnUn4Z5.js +0 -1
  218. package/dist/client/assets/Comments-CjKXklVx.js +0 -1
  219. package/dist/client/assets/ConfigureRule-BRQ38Aew.js +0 -1
  220. package/dist/client/assets/Confirm-CzWNQ0bN.js +0 -1
  221. package/dist/client/assets/ContactForm-BOqiQ2no.js +0 -1
  222. package/dist/client/assets/ContentType-BU-FjS9z.js +0 -1
  223. package/dist/client/assets/ContentTypeLayout-hu7U-BZZ.js +0 -1
  224. package/dist/client/assets/ContentTypeSchema-C9Xy-aJp.js +0 -1
  225. package/dist/client/assets/ContentTypes-Bx_fdzPJ.js +0 -1
  226. package/dist/client/assets/Contents-vyxUuwEK.js +0 -2
  227. package/dist/client/assets/ContentsBreadcrumbs-CbQV41BN.js +0 -1
  228. package/dist/client/assets/ContentsIndexHeader-CaMIsaVK.js +0 -1
  229. package/dist/client/assets/ContentsItem-Cfmgtdnx.js +0 -1
  230. package/dist/client/assets/ContentsPropertiesModal-Bd_4FSuU.js +0 -1
  231. package/dist/client/assets/ContentsRenameModal-O1gT1OXP.js +0 -1
  232. package/dist/client/assets/ContentsTagsModal-B5Uikj5H.js +0 -1
  233. package/dist/client/assets/ContentsUploadModal-CGqKr7JY.js +0 -5
  234. package/dist/client/assets/ContentsWorkflowModal-DzztHiMB.js +0 -1
  235. package/dist/client/assets/Controlpanel-wPS99xKY.js +0 -1
  236. package/dist/client/assets/Controlpanels-Cck4ENpb.js +0 -1
  237. package/dist/client/assets/CreateTranslation-YNXafB67.js +0 -1
  238. package/dist/client/assets/DatabaseInformation-Bs7bp6nk.js +0 -1
  239. package/dist/client/assets/DatetimeWidget-BPaVyGfj.js +0 -2
  240. package/dist/client/assets/DatetimeWidget-BdaHrXzK.css +0 -1
  241. package/dist/client/assets/Delete-3SPCpAWI.js +0 -1
  242. package/dist/client/assets/Diff-DdohRcsu.js +0 -2
  243. package/dist/client/assets/DiffField-D-LH2k2t.js +0 -42
  244. package/dist/client/assets/Divider-D6HRmbj6.js +0 -1
  245. package/dist/client/assets/DragDropList-D0TZ7goF.js +0 -1
  246. package/dist/client/assets/DynamicRowHeightList-Cs_ETNBZ.js +0 -2
  247. package/dist/client/assets/Edit-BHoEOCyM.js +0 -1
  248. package/dist/client/assets/EditRule-xqs30O6J.js +0 -1
  249. package/dist/client/assets/EmailWidget-BRSh3Mta.js +0 -1
  250. package/dist/client/assets/Error-Bnmu371u.js +0 -1
  251. package/dist/client/assets/EventDatesInfo-DuFJvWM9.js +0 -2
  252. package/dist/client/assets/EventView-D_JA03il.js +0 -2
  253. package/dist/client/assets/Field-B4SWqX3L.js +0 -1
  254. package/dist/client/assets/FileWidget-DfpYuSPY.js +0 -2
  255. package/dist/client/assets/Form-71MDgstP.js +0 -1
  256. package/dist/client/assets/FormattedRelativeDate-Bz7UlQwo.js +0 -1
  257. package/dist/client/assets/GroupsControlpanel-BKTIV66v.js +0 -1
  258. package/dist/client/assets/History-Din4KG5Q.js +0 -1
  259. package/dist/client/assets/IdWidget-DsfSWcqq.js +0 -1
  260. package/dist/client/assets/ImageSizeWidget-CcXetpRz.js +0 -1
  261. package/dist/client/assets/InlineForm-BalXKbf0.js +0 -1
  262. package/dist/client/assets/InternalUrlWidget-D7fPqZu7.js +0 -1
  263. package/dist/client/assets/LinksToItem-DkQpScDl.js +0 -1
  264. package/dist/client/assets/Login-PW4fNYgr.js +0 -1
  265. package/dist/client/assets/Logout-DBFMoCVd.js +0 -1
  266. package/dist/client/assets/ManageTranslations-BItOeQO4.js +0 -1
  267. package/dist/client/assets/ModalForm-Df5NZdmP.js +0 -1
  268. package/dist/client/assets/ModerateComments-N15vSOfs.js +0 -1
  269. package/dist/client/assets/MonthOfTheYearField-i_Zcrkjw.js +0 -1
  270. package/dist/client/assets/NumberWidget-CL1krBh5.js +0 -1
  271. package/dist/client/assets/ObjectBrowserWidget-DRPqyiFh.js +0 -1
  272. package/dist/client/assets/ObjectListWidget-BhiLosyZ.js +0 -2
  273. package/dist/client/assets/ObjectWidget-DEEZZbak.js +0 -1
  274. package/dist/client/assets/Occurences-BZzoeqNF.js +0 -1
  275. package/dist/client/assets/Order-BYtwjfSa.js +0 -5
  276. package/dist/client/assets/Pagination-BESLtXMZ.js +0 -1
  277. package/dist/client/assets/PasswordReset-DiSjCl9C.js +0 -1
  278. package/dist/client/assets/PasswordWidget-IYXgux5Y.js +0 -1
  279. package/dist/client/assets/PersonalInformation-Dx_D-a-X.js +0 -1
  280. package/dist/client/assets/Poppins-Bold-devanagari-x1FzP7sX.woff2 +0 -0
  281. package/dist/client/assets/Poppins-Bold-latin-Qrb0O0WB.woff2 +0 -0
  282. package/dist/client/assets/Poppins-Bold-latinext-j1no4XVB.woff2 +0 -0
  283. package/dist/client/assets/Poppins-BoldItalic-devanagari-BcxLru-s.woff2 +0 -0
  284. package/dist/client/assets/Poppins-BoldItalic-latin-RKf6esGj.woff2 +0 -0
  285. package/dist/client/assets/Poppins-BoldItalic-latinext-Dydr-NSJ.woff2 +0 -0
  286. package/dist/client/assets/Poppins-Light-devanagari-BtHqo3Vt.woff2 +0 -0
  287. package/dist/client/assets/Poppins-Light-latin-Dku2WoCh.woff2 +0 -0
  288. package/dist/client/assets/Poppins-Light-latinext-Dp0S20ci.woff2 +0 -0
  289. package/dist/client/assets/Poppins-Regular-devanagari-DXhQFdtL.woff2 +0 -0
  290. package/dist/client/assets/Poppins-Regular-latin-cpxAROuN.woff2 +0 -0
  291. package/dist/client/assets/Poppins-Regular-latinext-CZnfsGfc.woff2 +0 -0
  292. package/dist/client/assets/Poppins-RegularItalic-devanagari-BO6sGsOT.woff2 +0 -0
  293. package/dist/client/assets/Poppins-RegularItalic-latin-B4GYq972.woff2 +0 -0
  294. package/dist/client/assets/Poppins-RegularItalic-latinext-CfukeBgr.woff2 +0 -0
  295. package/dist/client/assets/Poppins-Semibold-devanagari-CedCftIp.woff2 +0 -0
  296. package/dist/client/assets/Poppins-Semibold-latin-C8OXljZJ.woff2 +0 -0
  297. package/dist/client/assets/Poppins-Semibold-latinext-CkbSfFoM.woff2 +0 -0
  298. package/dist/client/assets/QuerySortOnWidget-DYk7Tb1j.js +0 -2
  299. package/dist/client/assets/QueryWidget-hV1ixqpQ.js +0 -2
  300. package/dist/client/assets/QuerystringWidget-CIAF2GzY.js +0 -1
  301. package/dist/client/assets/RecurrenceWidget-BQeiEr0q.js +0 -2
  302. package/dist/client/assets/ReferenceWidget-DlWSWesX.js +0 -1
  303. package/dist/client/assets/Register-BC37zowD.js +0 -1
  304. package/dist/client/assets/RegistryImageWidget-C9HNFTF3.js +0 -2
  305. package/dist/client/assets/Relations-LLr95Dit.js +0 -1
  306. package/dist/client/assets/RenderGroups-Cp2wNEW5.js +0 -1
  307. package/dist/client/assets/RenderUsers-DoZyA8Fg.js +0 -1
  308. package/dist/client/assets/RequestPasswordReset-I3mmzPqO.js +0 -1
  309. package/dist/client/assets/Rules-BDUIGSJQ.js +0 -1
  310. package/dist/client/assets/Rules-CFPICqnM.js +0 -1
  311. package/dist/client/assets/SchemaWidget-BZHoA4gu.js +0 -5
  312. package/dist/client/assets/Search-Dn2aeBTL.js +0 -1
  313. package/dist/client/assets/SelectAutoComplete-cD2YuhbD.js +0 -2
  314. package/dist/client/assets/SelectMetadataField-B8dXJ3tz.js +0 -2
  315. package/dist/client/assets/SelectUtils-DlDXMB8W.js +0 -1
  316. package/dist/client/assets/SelectWidget-C21VwFjR.js +0 -2
  317. package/dist/client/assets/Sharing-jzxg0esF.js +0 -1
  318. package/dist/client/assets/Sidebar-HHWPAF1-.js +0 -1
  319. package/dist/client/assets/Sitemap-DH_8LhFG.js +0 -1
  320. package/dist/client/assets/TextWidget-1NA5G8H3.js +0 -1
  321. package/dist/client/assets/TextareaWidget-D8wRZrM-.js +0 -1
  322. package/dist/client/assets/TokenWidget-DXRZ2TGd.js +0 -2
  323. package/dist/client/assets/Toolbar-hcuCtPhN.js +0 -2
  324. package/dist/client/assets/TranslationObject-B39zMKOs.js +0 -1
  325. package/dist/client/assets/UndoControlpanel-Dn57qiRw.js +0 -1
  326. package/dist/client/assets/UndoToolbar-OcDVcNUK.js +0 -1
  327. package/dist/client/assets/UpgradeControlPanel-Dq9CHVWL.js +0 -1
  328. package/dist/client/assets/UrlWidget-CyoQZy_y.js +0 -1
  329. package/dist/client/assets/User-DYAlCOsc.js +0 -1
  330. package/dist/client/assets/UserGroupMembershipControlPanel-ClDiBW73.js +0 -1
  331. package/dist/client/assets/UsersControlpanel-CSg45VuW.js +0 -1
  332. package/dist/client/assets/VersionOverview-BbnLCVXo.js +0 -1
  333. package/dist/client/assets/VocabularyTermsWidget-CldBc7SS.js +0 -2
  334. package/dist/client/assets/WeekdayOfTheMonthField-CzfnMD-p.js +0 -1
  335. package/dist/client/assets/WysiwygWidget-IO58Z5Hp.js +0 -1
  336. package/dist/client/assets/add-user-C_fRj14n.js +0 -1
  337. package/dist/client/assets/aliases-DQ8WKfto.js +0 -1
  338. package/dist/client/assets/ca-DPz_x4tN.js +0 -1
  339. package/dist/client/assets/ca2-DPz_x4tN.js +0 -1
  340. package/dist/client/assets/cut-ZxaZMyVt.js +0 -1
  341. package/dist/client/assets/de-CEfDIAIe.js +0 -1
  342. package/dist/client/assets/drag-CfL-m2gM.js +0 -1
  343. package/dist/client/assets/en-UGAeOB73.js +0 -1
  344. package/dist/client/assets/es-bTR5ZO7p.js +0 -1
  345. package/dist/client/assets/eu-ClGcMWvo.js +0 -1
  346. package/dist/client/assets/fi-Cb9XYMls.js +0 -1
  347. package/dist/client/assets/fr-paTim4vs.js +0 -1
  348. package/dist/client/assets/groups-DDbRmAiS.js +0 -1
  349. package/dist/client/assets/hi-wfjyKWJi.js +0 -1
  350. package/dist/client/assets/history-BE3e3tJX.js +0 -1
  351. package/dist/client/assets/icons-BvLvFD6l.ttf +0 -0
  352. package/dist/client/assets/icons-DEAbt7RB.woff +0 -0
  353. package/dist/client/assets/icons-DtZ6carP.eot +0 -0
  354. package/dist/client/assets/icons-hSdpWXN3.svg +0 -320
  355. package/dist/client/assets/image-gallery-BQRpobkJ.js +0 -1
  356. package/dist/client/assets/index-BHHbVxOw.js +0 -1
  357. package/dist/client/assets/index-BkdKjjmJ.js +0 -3
  358. package/dist/client/assets/index-C8dkivrQ.js +0 -1
  359. package/dist/client/assets/index-D1_AVXIm.js +0 -1
  360. package/dist/client/assets/index-D27Aat_y.css +0 -346
  361. package/dist/client/assets/index-Dfhzd_0Q.js +0 -28
  362. package/dist/client/assets/index-DjC7ygxP.js +0 -2
  363. package/dist/client/assets/index-R10CHN0W.js +0 -299
  364. package/dist/client/assets/it-DefHMwCV.js +0 -1
  365. package/dist/client/assets/ja-ChtpWCYw.js +0 -1
  366. package/dist/client/assets/memoize-one.esm-CcMeOnPo.js +0 -1
  367. package/dist/client/assets/messages-D53aTvyU.js +0 -1
  368. package/dist/client/assets/nl-SQksV7ER.js +0 -1
  369. package/dist/client/assets/objectWithoutProperties-DJfFCfi7.js +0 -1
  370. package/dist/client/assets/paste-BecFEOpX.js +0 -1
  371. package/dist/client/assets/plone-CrIeS8BF.js +0 -1
  372. package/dist/client/assets/prism-markup-DpNACz_g.js +0 -1
  373. package/dist/client/assets/pt-aWkeVAjQ.js +0 -1
  374. package/dist/client/assets/pt_BR-77wXUzSL.js +0 -1
  375. package/dist/client/assets/react-beautiful-dnd.esm-kgQsny0G.js +0 -61
  376. package/dist/client/assets/react-lifecycles-compat.es-AfN2QaV3.js +0 -9
  377. package/dist/client/assets/react-select.esm-B_zbeWFZ.js +0 -1
  378. package/dist/client/assets/react-select.esm-C5HgAv8T.js +0 -1
  379. package/dist/client/assets/react-select.esm-D6SOKyar.js +0 -1
  380. package/dist/client/assets/relations-C8He-c7q.js +0 -1
  381. package/dist/client/assets/ro-DAOiSqwr.js +0 -1
  382. package/dist/client/assets/rruleset-B-gU6Vu6.js +0 -7
  383. package/dist/client/assets/rules-gMbfzj9b.js +0 -1
  384. package/dist/client/assets/save-A8XnzzXZ.js +0 -1
  385. package/dist/client/assets/sidebar-Cg9xJ3Wn.js +0 -1
  386. package/dist/client/assets/stateManager-845a3300.esm-FHbDYpjV.js +0 -4
  387. package/dist/client/assets/translations-Ch2bqGLg.js +0 -1
  388. package/dist/client/assets/undo-BK07_7QN.js +0 -1
  389. package/dist/client/assets/useClient-BEoxUiuE.js +0 -1
  390. package/dist/client/assets/users-D9kPg8yt.js +0 -1
  391. package/dist/client/assets/vocabularies-DlvvsO0O.js +0 -1
  392. package/dist/client/assets/workflow-CHtwvb_4.js +0 -1
  393. package/dist/client/assets/zh_CN-eXXUKVGT.js +0 -1
  394. package/dist/client/favicon-16x16.png +0 -0
  395. package/dist/client/favicon-32x32.png +0 -0
  396. package/dist/client/favicon.ico +0 -0
  397. package/dist/client/icon.svg +0 -13
  398. package/dist/client/index.html +0 -14
  399. package/dist/client/index.html.spa +0 -34
  400. package/dist/client/robots.txt +0 -2
  401. package/dist/client/site.webmanifest +0 -19
  402. package/dist/favicon-16x16.png +0 -0
  403. package/dist/favicon-32x32.png +0 -0
  404. package/dist/favicon.ico +0 -0
  405. package/dist/icon.svg +0 -13
  406. package/dist/index.html +0 -14
  407. package/dist/index.html.spa +0 -34
  408. package/dist/robots.txt +0 -2
  409. package/dist/server/android-chrome-192x192.png +0 -0
  410. package/dist/server/android-chrome-512x512.png +0 -0
  411. package/dist/server/apple-touch-icon.png +0 -0
  412. package/dist/server/assets/Add-CsJoCji4.js +0 -507
  413. package/dist/server/assets/AddRule-cE7fxqDi.js +0 -392
  414. package/dist/server/assets/AddonsControlpanel-W-JmCCQZ.js +0 -555
  415. package/dist/server/assets/Aliases-CDNyL3r1.js +0 -399
  416. package/dist/server/assets/Aliases-tMadX250.js +0 -568
  417. package/dist/server/assets/AlignWidget-BAMFIDm-.js +0 -125
  418. package/dist/server/assets/ArrayWidget-CgfS8hDH.js +0 -363
  419. package/dist/server/assets/BlockDataForm-zfD1scIv.js +0 -92
  420. package/dist/server/assets/BlocksForm-DW5cAojg.js +0 -752
  421. package/dist/server/assets/BlocksToolbar-B9n_ff9E.js +0 -277
  422. package/dist/server/assets/ButtonsWidget-BoUEtgpa.js +0 -97
  423. package/dist/server/assets/ByDayField-C6SuyhPy.js +0 -118
  424. package/dist/server/assets/ChangePassword-K3-cTffr.js +0 -217
  425. package/dist/server/assets/CheckboxWidget-C2UdwJnU.js +0 -108
  426. package/dist/server/assets/ColorPickerWidget-C3Fs64WC.js +0 -72
  427. package/dist/server/assets/CommentEditModal-CJIT5LNs.js +0 -144
  428. package/dist/server/assets/Comments-BYGPCvYn.js +0 -416
  429. package/dist/server/assets/ConfigureRule-DJaR8x5h.js +0 -1338
  430. package/dist/server/assets/ContactForm-D2pQPuAd.js +0 -246
  431. package/dist/server/assets/ContentType-BHuuMMOP.js +0 -318
  432. package/dist/server/assets/ContentTypeLayout-4t4HDZ3j.js +0 -547
  433. package/dist/server/assets/ContentTypeSchema-BV_tFkff.js +0 -383
  434. package/dist/server/assets/ContentTypes-C40JO5N_.js +0 -567
  435. package/dist/server/assets/Contents-BOn6l3S9.js +0 -2364
  436. package/dist/server/assets/ContentsBreadcrumbs-Dtyd6Hr0.js +0 -153
  437. package/dist/server/assets/ContentsIndexHeader-DxJAuKwb.js +0 -97
  438. package/dist/server/assets/ContentsItem-bD7oEcmI.js +0 -446
  439. package/dist/server/assets/ContentsPropertiesModal-q9wA0Aal.js +0 -231
  440. package/dist/server/assets/ContentsRenameModal-Bk9lIkwt.js +0 -181
  441. package/dist/server/assets/ContentsTagsModal-C-gTZFmZ.js +0 -168
  442. package/dist/server/assets/ContentsUploadModal-DiUUlQ5S.js +0 -340
  443. package/dist/server/assets/ContentsWorkflowModal-CAc4f94G.js +0 -177
  444. package/dist/server/assets/Controlpanel-HK3BGM-X.js +0 -310
  445. package/dist/server/assets/Controlpanels-DyXD6DdO.js +0 -310
  446. package/dist/server/assets/CreateTranslation-DG5LTQTQ.js +0 -112
  447. package/dist/server/assets/DatabaseInformation-ChVnavys.js +0 -241
  448. package/dist/server/assets/DatetimeWidget-CHdttszV.js +0 -271
  449. package/dist/server/assets/Delete-Cx_tWSDi.js +0 -188
  450. package/dist/server/assets/Diff-Ddx1DMp8.js +0 -415
  451. package/dist/server/assets/DiffField-BcZUPjLc.js +0 -195
  452. package/dist/server/assets/DragDropList-CiuXlWfI.js +0 -164
  453. package/dist/server/assets/DynamicRowHeightList-BomAJzxz.js +0 -60
  454. package/dist/server/assets/Edit-DAIHguhl.js +0 -669
  455. package/dist/server/assets/EditRule-lTwgcp6X.js +0 -423
  456. package/dist/server/assets/EmailWidget-DPCyfiXg.js +0 -129
  457. package/dist/server/assets/Error-MJ-ObF_2.js +0 -21
  458. package/dist/server/assets/EventDatesInfo-CtX7N3Lc.js +0 -171
  459. package/dist/server/assets/EventView-r4SE_kC7.js +0 -275
  460. package/dist/server/assets/Field-kKcQmlbv.js +0 -184
  461. package/dist/server/assets/FileWidget-B3jY_tIe.js +0 -205
  462. package/dist/server/assets/Form-BqwUy8yR.js +0 -959
  463. package/dist/server/assets/FormattedRelativeDate-eSbRd-qW.js +0 -48
  464. package/dist/server/assets/GroupsControlpanel-DjZK6zeD.js +0 -697
  465. package/dist/server/assets/History-CGuT0Gxk.js +0 -373
  466. package/dist/server/assets/IdWidget-DbyITK61.js +0 -217
  467. package/dist/server/assets/ImageSizeWidget-DKY4NccJ.js +0 -136
  468. package/dist/server/assets/InlineForm-D45kJH2i.js +0 -283
  469. package/dist/server/assets/InternalUrlWidget-B6sRTbIQ.js +0 -192
  470. package/dist/server/assets/LinksToItem-6uMHi4JH.js +0 -280
  471. package/dist/server/assets/Login-BnWfiyxk.js +0 -275
  472. package/dist/server/assets/Logout-DDzsV2_q.js +0 -115
  473. package/dist/server/assets/ManageTranslations-DBpk3SPh.js +0 -316
  474. package/dist/server/assets/ModalForm-BFUz4-5h.js +0 -343
  475. package/dist/server/assets/ModerateComments-BSWE6DLB.js +0 -332
  476. package/dist/server/assets/MonthOfTheYearField-BKVtfnMh.js +0 -110
  477. package/dist/server/assets/NumberWidget-D2oZIOtl.js +0 -129
  478. package/dist/server/assets/ObjectBrowserWidget-DwTYxap2.js +0 -420
  479. package/dist/server/assets/ObjectListWidget-DddssDcY.js +0 -258
  480. package/dist/server/assets/ObjectWidget-DAbu4vKd.js +0 -160
  481. package/dist/server/assets/Occurences-Zl3kp-s8.js +0 -223
  482. package/dist/server/assets/Order-DYralO8T.js +0 -586
  483. package/dist/server/assets/Pagination-DhaW_lzc.js +0 -98
  484. package/dist/server/assets/PasswordReset-XB45O1K2.js +0 -336
  485. package/dist/server/assets/PasswordWidget-CvKRkTK-.js +0 -131
  486. package/dist/server/assets/PersonalInformation--cOokZv2.js +0 -78
  487. package/dist/server/assets/QuerySortOnWidget-BSGAZOfo.js +0 -136
  488. package/dist/server/assets/QueryWidget-D8pt9fPj.js +0 -492
  489. package/dist/server/assets/QuerystringWidget-4LGKA9EF.js +0 -176
  490. package/dist/server/assets/RecurrenceWidget-DmaZUmHT.js +0 -1426
  491. package/dist/server/assets/ReferenceWidget-BYkwGmcC.js +0 -236
  492. package/dist/server/assets/Register-DCPdPToE.js +0 -185
  493. package/dist/server/assets/RegistryImageWidget-Clx3uX9X.js +0 -189
  494. package/dist/server/assets/Relations-HXFX3OhR.js +0 -1092
  495. package/dist/server/assets/RenderGroups-15rVe2q0.js +0 -134
  496. package/dist/server/assets/RenderUsers-DQoVtZTV.js +0 -254
  497. package/dist/server/assets/RequestPasswordReset-DoEfaZxv.js +0 -203
  498. package/dist/server/assets/Rules-C368LdtM.js +0 -557
  499. package/dist/server/assets/Rules-DEEwiG_G.js +0 -456
  500. package/dist/server/assets/SchemaWidget-42TNEpHs.js +0 -1392
  501. package/dist/server/assets/Search-Cj9Vf745.js +0 -417
  502. package/dist/server/assets/SelectAutoComplete-QN8lOuc8.js +0 -279
  503. package/dist/server/assets/SelectMetadataField-CVmZ9snw.js +0 -184
  504. package/dist/server/assets/SelectUtils-CfKnO3Pp.js +0 -72
  505. package/dist/server/assets/SelectWidget-EYyEok6L.js +0 -317
  506. package/dist/server/assets/Sharing-lbff3IeO.js +0 -579
  507. package/dist/server/assets/Sidebar-DuoR_j80.js +0 -246
  508. package/dist/server/assets/Sitemap-DyY1fP-7.js +0 -164
  509. package/dist/server/assets/TextWidget-BhMn8hi_.js +0 -156
  510. package/dist/server/assets/TextareaWidget-BD3faCaG.js +0 -125
  511. package/dist/server/assets/TokenWidget-BzMjib_o.js +0 -244
  512. package/dist/server/assets/Toolbar-DVsVq7NQ.js +0 -1695
  513. package/dist/server/assets/TranslationObject-Cu7Oz0D_.js +0 -120
  514. package/dist/server/assets/UndoControlpanel-CfSOfvIf.js +0 -690
  515. package/dist/server/assets/UndoToolbar-DIbEtI6_.js +0 -226
  516. package/dist/server/assets/UpgradeControlPanel-DqSvBsKg.js +0 -397
  517. package/dist/server/assets/UrlWidget-C0_i8u8y.js +0 -194
  518. package/dist/server/assets/User-CeYa32LY.js +0 -21
  519. package/dist/server/assets/UserGroupMembershipControlPanel-GJ1xAI2H.js +0 -635
  520. package/dist/server/assets/UsersControlpanel-D_FsBPMW.js +0 -752
  521. package/dist/server/assets/VersionOverview-CKK4Mh4X.js +0 -577
  522. package/dist/server/assets/VocabularyTermsWidget-CErDWtRU.js +0 -311
  523. package/dist/server/assets/WeekdayOfTheMonthField-Cr_GRGfk.js +0 -97
  524. package/dist/server/assets/WysiwygWidget-lCJy28BX.js +0 -71
  525. package/dist/server/assets/add-user-OjrbLPze.js +0 -15
  526. package/dist/server/assets/aliases-C1e1Zo30.js +0 -36
  527. package/dist/server/assets/ca-DyGhRQw8.js +0 -1582
  528. package/dist/server/assets/ca2-BGpXXCA_.js +0 -1582
  529. package/dist/server/assets/cut-BEOWxek2.js +0 -6
  530. package/dist/server/assets/de-C9Bn7Rn5.js +0 -1605
  531. package/dist/server/assets/drag-DY7wFRIh.js +0 -4
  532. package/dist/server/assets/en-BmNu-gsU.js +0 -1605
  533. package/dist/server/assets/es-XH30tkMP.js +0 -1582
  534. package/dist/server/assets/eu-VsSby9_e.js +0 -1582
  535. package/dist/server/assets/fi-BRqySjmD.js +0 -1582
  536. package/dist/server/assets/fr-DWx9W4gK.js +0 -1582
  537. package/dist/server/assets/groups-DlLziArH.js +0 -57
  538. package/dist/server/assets/hi-CJ8Pz8K_.js +0 -1582
  539. package/dist/server/assets/history-Di4xw5JV.js +0 -24
  540. package/dist/server/assets/index-7OxxMyWS.js +0 -61
  541. package/dist/server/assets/it-Db41lwPq.js +0 -1582
  542. package/dist/server/assets/ja-sRZcO51F.js +0 -1582
  543. package/dist/server/assets/messages-Daz-GFAC.js +0 -9
  544. package/dist/server/assets/nl-CH7F8zGZ.js +0 -1582
  545. package/dist/server/assets/paste-CtDNO5f5.js +0 -4
  546. package/dist/server/assets/plone-DmfQ132L.js +0 -4
  547. package/dist/server/assets/pt-BWnCu7AF.js +0 -1582
  548. package/dist/server/assets/pt_BR-D2d5lTnr.js +0 -1582
  549. package/dist/server/assets/relations-DpP4v3e7.js +0 -63
  550. package/dist/server/assets/ro-BlUnfGvL.js +0 -1582
  551. package/dist/server/assets/rules-BR_HXhIG.js +0 -261
  552. package/dist/server/assets/save-C0BIu8AK.js +0 -4
  553. package/dist/server/assets/sidebar-BGq8uRxG.js +0 -23
  554. package/dist/server/assets/translations-DicXGvqf.js +0 -39
  555. package/dist/server/assets/undo-lQM6Vhc7.js +0 -4
  556. package/dist/server/assets/useClient-_7WynRVZ.js +0 -11
  557. package/dist/server/assets/users-BY0qskQF.js +0 -112
  558. package/dist/server/assets/vocabularies-C3rWoW1K.js +0 -90
  559. package/dist/server/assets/zh_CN-Cy1xbPRJ.js +0 -1582
  560. package/dist/server/entry-server.js +0 -32003
  561. package/dist/server/favicon-16x16.png +0 -0
  562. package/dist/server/favicon-32x32.png +0 -0
  563. package/dist/server/favicon.ico +0 -0
  564. package/dist/server/icon.svg +0 -13
  565. package/dist/server/index.html.spa +0 -34
  566. package/dist/server/robots.txt +0 -2
  567. package/dist/server/site.webmanifest +0 -19
  568. package/dist/site.webmanifest +0 -19
  569. package/locales/ca2.json +0 -1
  570. package/vite-plugins/volto.js +0 -30
@@ -1,1695 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
5
- import React__default, { lazy, useState, useEffect, Component } from "react";
6
- import { defineMessages, useIntl, FormattedMessage, injectIntl } from "react-intl";
7
- import PropTypes from "prop-types";
8
- import { useHistory, Link, useLocation } from "react-router-dom";
9
- import jwtDecode from "jwt-decode";
10
- import { useDispatch, useSelector, shallowEqual, connect } from "react-redux";
11
- import { compose } from "redux";
12
- import { a4 as getLayoutFieldname, $ as $149c1bd638913645$export$2e2bcd8739ae039, u as usePrevious, g as getSchema, n as getContent, a5 as FormFieldWrapper, I as Icon, a6 as checkSVG, a7 as upSVG, a8 as down_key, w as updateContent, a9 as getWorkflow, aa as FormFieldWrapper$1, ab as transitionWorkflow, f as flattenToAppURL, T as Toast, ac as CREATE_WORKING_COPY, ad as APPLY_WORKING_COPY, ae as REMOVE_WORKING_COPY, b as getBaseUrl, af as userSVG, ag as Pluggable, ah as Plug, ai as paginationRightSVG, q as FormattedDate, aj as applySVG, o as backSVG, ak as expandToBackendURL, al as cameraSVG, am as toBackendLang, l as langmap, F as Form, an as languages, d as toGettextLang, a as changeLanguage, ao as EXPAND_TOOLBAR, ap as getTypes, C as listActions, y as unlockContent, A as hasApiExpander, aq as getCookieOptions, ar as doesNodeContainClick, B as BodyClass, as as folderSVG, at as moreSVG, k as clearSVG } from "../entry-server.js";
13
- import { withCookies } from "react-cookie";
14
- import { last, split, uniqBy, find, filter, map, isEmpty, keys } from "lodash-es";
15
- import cx from "classnames";
16
- import { toast } from "react-toastify";
17
- import { g as getUser } from "./users-BY0qskQF.js";
18
- import { u as userHasRoles } from "./User-CeYa32LY.js";
19
- import { P as PersonalInformation } from "./PersonalInformation--cOokZv2.js";
20
- const messages$5 = defineMessages({
21
- Viewmode: {
22
- id: "Viewmode",
23
- defaultMessage: "View"
24
- }
25
- });
26
- const Select$1 = lazy(() => import("react-select"));
27
- const SelectOption = lazy(
28
- () => import("react-select").then((mod) => ({
29
- default: mod.components.Option
30
- }))
31
- );
32
- const SelectDropdownIndicator = lazy(
33
- () => import("react-select").then((mod) => ({
34
- default: mod.components.DropdownIndicator
35
- }))
36
- );
37
- const Option$1 = (props) => {
38
- return /* @__PURE__ */ jsxs(SelectOption, { ...props, children: [
39
- /* @__PURE__ */ jsx("div", { children: props.label }),
40
- props.isFocused && !props.isSelected && /* @__PURE__ */ jsx(Icon, { name: checkSVG, size: "18px", color: "#b8c6c8" }),
41
- props.isSelected && /* @__PURE__ */ jsx(Icon, { name: checkSVG, size: "18px", color: "#007bc1" })
42
- ] });
43
- };
44
- const DropdownIndicator$1 = (props) => {
45
- return /* @__PURE__ */ jsx(SelectDropdownIndicator, { ...props, children: props.selectProps.menuIsOpen ? /* @__PURE__ */ jsx(Icon, { name: upSVG, size: "24px", color: "#007bc1" }) : /* @__PURE__ */ jsx(Icon, { name: down_key, size: "24px", color: "#007bc1" }) });
46
- };
47
- const selectTheme$1 = (theme) => ({
48
- ...theme,
49
- borderRadius: 0,
50
- colors: {
51
- ...theme.colors,
52
- primary25: "hotpink",
53
- primary: "#b8c6c8"
54
- }
55
- });
56
- const customSelectStyles$1 = {
57
- control: (styles, state) => ({
58
- ...styles,
59
- border: "none",
60
- borderBottom: "2px solid #b8c6c8",
61
- boxShadow: "none",
62
- borderBottomStyle: state.menuIsOpen ? "dotted" : "solid"
63
- }),
64
- menu: (styles, state) => ({
65
- ...styles,
66
- top: null,
67
- marginTop: 0,
68
- boxShadow: "none",
69
- borderBottom: "2px solid #b8c6c8"
70
- }),
71
- menuList: (styles, state) => ({
72
- ...styles,
73
- maxHeight: "400px"
74
- }),
75
- indicatorSeparator: (styles) => ({
76
- ...styles,
77
- width: null
78
- }),
79
- valueContainer: (styles) => ({
80
- ...styles,
81
- padding: 0
82
- }),
83
- option: (styles, state) => ({
84
- ...styles,
85
- backgroundColor: null,
86
- minHeight: "50px",
87
- display: "flex",
88
- justifyContent: "space-between",
89
- alignItems: "center",
90
- padding: "12px 12px",
91
- color: state.isSelected ? "#007bc1" : state.isFocused ? "#4a4a4a" : "inherit",
92
- ":active": {
93
- backgroundColor: null
94
- },
95
- span: {
96
- flex: "0 0 auto"
97
- },
98
- svg: {
99
- flex: "0 0 auto"
100
- }
101
- })
102
- };
103
- const DisplaySelect = (props) => {
104
- var _a, _b;
105
- const { pathname } = props;
106
- const intl = useIntl();
107
- const dispatch = useDispatch();
108
- const loaded = useSelector((state) => state.content.update.loaded);
109
- const layouts = useSelector(
110
- (state) => state.schema.schema ? state.schema.schema.layouts : []
111
- );
112
- const layout = useSelector(
113
- (state) => state.content.data ? state.content.data[getLayoutFieldname(state.content.data)] : ""
114
- );
115
- const [selectedOption, setselectedOption] = useState({
116
- value: layout,
117
- label: intl.formatMessage({
118
- id: (_a = $149c1bd638913645$export$2e2bcd8739ae039.views.layoutViewsNamesMapping) == null ? void 0 : _a[layout],
119
- defaultMessage: (_b = $149c1bd638913645$export$2e2bcd8739ae039.views.layoutViewsNamesMapping) == null ? void 0 : _b[layout]
120
- }) || layout
121
- });
122
- const type = useSelector(
123
- (state) => state.content.data ? state.content.data["@type"] : ""
124
- );
125
- const prevloaded = usePrevious(loaded);
126
- const prevpathname = usePrevious(pathname);
127
- useEffect(() => {
128
- dispatch(getSchema(type));
129
- }, [dispatch, type]);
130
- useEffect(() => {
131
- if (pathname !== prevpathname) {
132
- dispatch(getSchema(type));
133
- }
134
- if (!prevloaded && loaded) {
135
- dispatch(getContent(pathname));
136
- }
137
- }, [dispatch, type, pathname, prevpathname, prevloaded, loaded]);
138
- const setLayout = (selectedOption2) => {
139
- dispatch(
140
- updateContent(pathname, {
141
- layout: selectedOption2.value
142
- })
143
- );
144
- setselectedOption(selectedOption2);
145
- };
146
- const layoutsNames = $149c1bd638913645$export$2e2bcd8739ae039.views.layoutViewsNamesMapping;
147
- const layoutOptions = layouts.filter(
148
- (layout2) => Object.keys($149c1bd638913645$export$2e2bcd8739ae039.views.contentTypesViews).includes(layout2) || Object.keys($149c1bd638913645$export$2e2bcd8739ae039.views.layoutViews).includes(layout2)
149
- ).map((item) => ({
150
- value: item,
151
- label: intl.formatMessage({
152
- id: layoutsNames[item],
153
- defaultMessage: layoutsNames[item]
154
- }) || item
155
- }));
156
- return (layoutOptions == null ? void 0 : layoutOptions.length) > 1 ? /* @__PURE__ */ jsx(
157
- FormFieldWrapper,
158
- {
159
- id: "display-select",
160
- title: intl.formatMessage(messages$5.Viewmode),
161
- ...props,
162
- children: /* @__PURE__ */ jsx(
163
- Select$1,
164
- {
165
- name: "display-select",
166
- className: "react-select-container",
167
- classNamePrefix: "react-select",
168
- options: layoutOptions,
169
- styles: customSelectStyles$1,
170
- theme: selectTheme$1,
171
- components: { DropdownIndicator: DropdownIndicator$1, Option: Option$1 },
172
- onChange: setLayout,
173
- defaultValue: selectedOption,
174
- isSearchable: false
175
- }
176
- )
177
- }
178
- ) : null;
179
- };
180
- DisplaySelect.propTypes = {
181
- pathname: PropTypes.string.isRequired
182
- };
183
- function getCurrentStateMapping(state) {
184
- const mapping = $149c1bd638913645$export$2e2bcd8739ae039.settings.workflowMapping;
185
- if (state.id in mapping) {
186
- return { label: state.title, ...mapping[state.id] };
187
- }
188
- return {
189
- value: state.id,
190
- label: state.title,
191
- color: "#000"
192
- };
193
- }
194
- function getWorkflowOptions(transition) {
195
- const mapping = $149c1bd638913645$export$2e2bcd8739ae039.settings.workflowMapping;
196
- const key = last(split(transition["@id"], "/"));
197
- if (key in mapping) {
198
- return { label: transition.title, ...mapping[key], url: transition["@id"] };
199
- }
200
- return {
201
- value: key,
202
- label: transition.title,
203
- color: "#000",
204
- url: transition["@id"]
205
- };
206
- }
207
- const messages$4 = defineMessages({
208
- messageUpdated: {
209
- id: "Workflow updated.",
210
- defaultMessage: "Workflow updated."
211
- },
212
- messageNoWorkflow: {
213
- id: "No workflow",
214
- defaultMessage: "No workflow"
215
- },
216
- state: {
217
- id: "State",
218
- defaultMessage: "State"
219
- }
220
- });
221
- const Select = lazy(
222
- () => import("react-select").then((module) => ({
223
- default: module.default,
224
- SingleValue: module.SingleValue,
225
- Option: module.Option,
226
- DropdownIndicator: module.DropdownIndicator,
227
- Placeholder: module.Placeholder
228
- }))
229
- );
230
- const SingleValue = ({ children, ...props }) => {
231
- const stateDecorator = {
232
- marginRight: "10px",
233
- display: "inline-block",
234
- backgroundColor: props.selectProps.value.color || null,
235
- content: " ",
236
- height: "10px",
237
- width: "10px",
238
- borderRadius: "50%"
239
- };
240
- return /* @__PURE__ */ jsxs(Select.SingleValue, { ...props, children: [
241
- /* @__PURE__ */ jsx("span", { style: stateDecorator }),
242
- children
243
- ] });
244
- };
245
- const Option = (props) => {
246
- const stateDecorator = {
247
- marginRight: "10px",
248
- display: "inline-block",
249
- backgroundColor: props.selectProps.value.value === props.data.value ? props.selectProps.value.color : null,
250
- content: " ",
251
- height: "10px",
252
- width: "10px",
253
- borderRadius: "50%",
254
- border: props.selectProps.value.value !== props.data.value ? `1px solid ${props.data.color}` : null
255
- };
256
- return /* @__PURE__ */ jsxs(Select.Option, { ...props, children: [
257
- /* @__PURE__ */ jsx("span", { style: stateDecorator }),
258
- /* @__PURE__ */ jsx("div", { style: { marginRight: "auto" }, children: props.label }),
259
- props.isFocused && !props.isSelected && /* @__PURE__ */ jsx(Icon, { name: checkSVG, size: "18px", color: "#b8c6c8" }),
260
- props.isSelected && /* @__PURE__ */ jsx(Icon, { name: checkSVG, size: "18px", color: "#007bc1" })
261
- ] });
262
- };
263
- const DropdownIndicator = (props) => {
264
- return /* @__PURE__ */ jsx(Select.DropdownIndicator, { ...props, "data-testid": "workflow-select-dropdown", children: props.selectProps.menuIsOpen ? /* @__PURE__ */ jsx(Icon, { name: upSVG, size: "24px", color: "#007bc1" }) : /* @__PURE__ */ jsx(Icon, { name: down_key, size: "24px", color: "#007bc1" }) });
265
- };
266
- const selectTheme = (theme) => ({
267
- ...theme,
268
- borderRadius: 0,
269
- colors: {
270
- ...theme.colors,
271
- primary25: "hotpink",
272
- primary: "#b8c6c8"
273
- }
274
- });
275
- const customSelectStyles = {
276
- control: (styles, state) => ({
277
- ...styles,
278
- border: "none",
279
- borderBottom: "2px solid #b8c6c8",
280
- boxShadow: "none",
281
- borderBottomStyle: state.menuIsOpen ? "dotted" : "solid"
282
- }),
283
- menu: (styles, state) => ({
284
- ...styles,
285
- top: null,
286
- marginTop: 0,
287
- boxShadow: "none",
288
- borderBottom: "2px solid #b8c6c8"
289
- }),
290
- indicatorSeparator: (styles) => ({
291
- ...styles,
292
- width: null
293
- }),
294
- valueContainer: (styles) => ({
295
- ...styles,
296
- padding: 0
297
- }),
298
- option: (styles, state) => ({
299
- ...styles,
300
- backgroundColor: null,
301
- minHeight: "50px",
302
- display: "flex",
303
- justifyContent: "space-between",
304
- alignItems: "center",
305
- padding: "12px 12px",
306
- color: state.isSelected ? "#007bc1" : state.isFocused ? "#4a4a4a" : "inherit",
307
- ":active": {
308
- backgroundColor: null
309
- },
310
- span: {
311
- flex: "0 0 auto"
312
- },
313
- svg: {
314
- flex: "0 0 auto"
315
- }
316
- })
317
- };
318
- function useWorkflow() {
319
- const history = useSelector((state) => state.workflow.history, shallowEqual);
320
- const transitions = useSelector(
321
- (state) => state.workflow.transitions,
322
- shallowEqual
323
- );
324
- const loaded = useSelector((state) => state.workflow.transition.loaded);
325
- const currentStateValue = useSelector(
326
- (state) => getCurrentStateMapping(state.workflow.currentState),
327
- shallowEqual
328
- );
329
- return { loaded, history, transitions, currentStateValue };
330
- }
331
- const Workflow = (props) => {
332
- const intl = useIntl();
333
- const dispatch = useDispatch();
334
- const { loaded, transitions, currentStateValue } = useWorkflow();
335
- const content = useSelector((state) => {
336
- var _a;
337
- return (_a = state.content) == null ? void 0 : _a.data;
338
- }, shallowEqual);
339
- const { pathname } = props;
340
- useEffect(() => {
341
- dispatch(getWorkflow(pathname));
342
- dispatch(getContent(pathname));
343
- }, [dispatch, pathname, loaded]);
344
- const transition = (selectedOption) => {
345
- dispatch(transitionWorkflow(flattenToAppURL(selectedOption.url)));
346
- toast.success(
347
- /* @__PURE__ */ jsx(
348
- Toast,
349
- {
350
- success: true,
351
- title: intl.formatMessage(messages$4.messageUpdated),
352
- content: ""
353
- }
354
- )
355
- );
356
- };
357
- const Placeholder = Select.Placeholder;
358
- return /* @__PURE__ */ jsx(
359
- FormFieldWrapper$1,
360
- {
361
- id: "state-select",
362
- title: intl.formatMessage(messages$4.state),
363
- intl,
364
- ...props,
365
- children: /* @__PURE__ */ jsx(
366
- Select,
367
- {
368
- name: "state-select",
369
- className: "react-select-container",
370
- classNamePrefix: "react-select",
371
- isDisabled: !content.review_state || transitions.length === 0,
372
- options: uniqBy(
373
- transitions.map((transition2) => getWorkflowOptions(transition2)),
374
- "label"
375
- ).concat(currentStateValue),
376
- styles: customSelectStyles,
377
- theme: selectTheme,
378
- components: {
379
- DropdownIndicator,
380
- Placeholder,
381
- Option,
382
- SingleValue
383
- },
384
- onChange: transition,
385
- value: content.review_state ? currentStateValue : {
386
- label: intl.formatMessage(messages$4.messageNoWorkflow),
387
- value: "noworkflow"
388
- },
389
- isSearchable: false
390
- }
391
- )
392
- }
393
- );
394
- };
395
- Workflow.propTypes = {
396
- pathname: PropTypes.string.isRequired
397
- };
398
- function createWorkingCopy(path) {
399
- return {
400
- type: CREATE_WORKING_COPY,
401
- request: {
402
- op: "post",
403
- path: `${path}/@workingcopy`
404
- }
405
- };
406
- }
407
- function applyWorkingCopy(path) {
408
- return {
409
- type: APPLY_WORKING_COPY,
410
- request: {
411
- op: "patch",
412
- path: `${path}/@workingcopy`
413
- }
414
- };
415
- }
416
- function removeWorkingCopy(path) {
417
- return {
418
- type: REMOVE_WORKING_COPY,
419
- request: {
420
- op: "del",
421
- path: `${path}/@workingcopy`
422
- }
423
- };
424
- }
425
- const removeSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M23.293 11.293 18 16.586 12.707 11.293 11.293 12.707 16.586 18 11.293 23.293 12.707 24.707 18 19.414 23.293 24.707 24.707 23.293 19.414 18 24.707 12.707z"/><path d="M18,31 C10.832,31 5,25.168 5,18 C5,10.832 10.832,5 18,5 C25.168,5 31,10.832 31,18 C31,25.168 25.168,31 18,31 M18,3 C9.729,3 3,9.729 3,18 C3,26.271 9.729,33 18,33 C26.271,33 33,26.271 33,18 C33,9.729 26.271,3 18,3"/></g>' };
426
- const messages$3 = defineMessages({
427
- personalTools: {
428
- id: "Personal tools",
429
- defaultMessage: "Personal tools"
430
- },
431
- history: {
432
- id: "History",
433
- defaultMessage: "History"
434
- },
435
- sharing: {
436
- id: "Sharing",
437
- defaultMessage: "Sharing"
438
- },
439
- rules: {
440
- id: "Rules",
441
- defaultMessage: "Rules"
442
- },
443
- aliases: {
444
- id: "URL Management",
445
- defaultMessage: "URL Management"
446
- },
447
- linkstoitem: {
448
- id: "Links and references",
449
- defaultMessage: "Links and references"
450
- },
451
- ManageTranslations: {
452
- id: "Manage Translations",
453
- defaultMessage: "Manage Translations"
454
- },
455
- manageContent: {
456
- id: "Manage content…",
457
- defaultMessage: "Manage content…"
458
- },
459
- CreateWorkingCopy: {
460
- id: "Create working copy",
461
- defaultMessage: "Create working copy"
462
- },
463
- applyWorkingCopy: {
464
- id: "Apply working copy",
465
- defaultMessage: "Apply working copy"
466
- },
467
- removeWorkingCopy: {
468
- id: "Remove working copy",
469
- defaultMessage: "Remove working copy"
470
- },
471
- viewWorkingCopy: {
472
- id: "View working copy",
473
- defaultMessage: "View working copy"
474
- },
475
- workingAppliedTitle: {
476
- id: "Changes applied.",
477
- defaultMessage: "Changes applied"
478
- },
479
- workingCopyAppliedBy: {
480
- id: "Made by {creator} on {date}. This is not a working copy anymore, but the main content.",
481
- defaultMessage: "Made by {creator} on {date}. This is not a working copy anymore, but the main content."
482
- },
483
- workingCopyRemovedTitle: {
484
- id: "The working copy was discarded",
485
- defaultMessage: "The working copy was discarded"
486
- },
487
- Unauthorized: {
488
- id: "Unauthorized",
489
- defaultMessage: "Unauthorized"
490
- },
491
- workingCopyErrorUnauthorized: {
492
- id: "workingCopyErrorUnauthorized",
493
- defaultMessage: "You are not authorized to perform this operation."
494
- },
495
- Error: {
496
- id: "Error",
497
- defaultMessage: "Error"
498
- },
499
- workingCopyGenericError: {
500
- id: "workingCopyGenericError",
501
- defaultMessage: "An error occurred while performing this operation."
502
- }
503
- });
504
- const More = (props) => {
505
- const dispatch = useDispatch();
506
- const intl = useIntl();
507
- const history = useHistory();
508
- const [, setPushed] = useState(false);
509
- const pathname = props.pathname;
510
- const content = useSelector((state) => {
511
- var _a;
512
- return (_a = state.content) == null ? void 0 : _a.data;
513
- }, shallowEqual);
514
- const workingCopy = useSelector((state) => state.workingCopy, shallowEqual);
515
- const actions = useSelector((state) => state.actions.actions, shallowEqual);
516
- const workingCopyApply = workingCopy == null ? void 0 : workingCopy.apply.loading;
517
- const workingCopyCreate = workingCopy == null ? void 0 : workingCopy.create.loading;
518
- const workingCopyRemove = workingCopy == null ? void 0 : workingCopy.remove.loading;
519
- const prevWorkingCopyApplyLoading = usePrevious(workingCopyApply);
520
- const prevWorkingCopyCreateLoading = usePrevious(workingCopyCreate);
521
- const prevWorkingCopyRemoveLoading = usePrevious(workingCopyRemove);
522
- const push = (selector) => {
523
- setPushed(true);
524
- props.loadComponent(selector);
525
- document.removeEventListener("mousedown", props.handleClickOutside, false);
526
- };
527
- useEffect(() => {
528
- let erroredAction = "";
529
- if (prevWorkingCopyApplyLoading && workingCopy.apply.error) {
530
- erroredAction = "apply";
531
- } else if (prevWorkingCopyCreateLoading && workingCopy.create.error) {
532
- erroredAction = "create";
533
- } else if (prevWorkingCopyRemoveLoading && workingCopy.remove.error) {
534
- erroredAction = "remove";
535
- }
536
- if (erroredAction) {
537
- const errorStatus = workingCopy[erroredAction].error.status;
538
- if (errorStatus === 401 || errorStatus === 403) {
539
- toast.error(
540
- /* @__PURE__ */ jsx(
541
- Toast,
542
- {
543
- error: true,
544
- title: intl.formatMessage(messages$3.Unauthorized),
545
- content: intl.formatMessage(messages$3.workingCopyErrorUnauthorized)
546
- }
547
- ),
548
- {
549
- toastId: "workingCopyErrorUnauthorized",
550
- autoClose: 1e4
551
- }
552
- );
553
- } else {
554
- toast.error(
555
- /* @__PURE__ */ jsx(
556
- Toast,
557
- {
558
- error: true,
559
- title: intl.formatMessage(messages$3.Error),
560
- content: intl.formatMessage(messages$3.workingCopyGenericError)
561
- }
562
- ),
563
- {
564
- toastId: "workingCopyGenericError",
565
- autoClose: 1e4
566
- }
567
- );
568
- }
569
- }
570
- }, [
571
- workingCopy,
572
- prevWorkingCopyApplyLoading,
573
- prevWorkingCopyCreateLoading,
574
- prevWorkingCopyRemoveLoading,
575
- intl
576
- ]);
577
- const path = getBaseUrl(pathname);
578
- const editAction = find(actions.object, { id: "edit" });
579
- const historyAction = find(actions.object, { id: "history" });
580
- const sharingAction = find(actions.object, {
581
- id: "local_roles"
582
- });
583
- const rulesAction = find(actions.object, {
584
- id: "contentrules"
585
- });
586
- const aliasesAction = find(actions.object_buttons, {
587
- id: "redirection"
588
- });
589
- const dateOptions = {
590
- year: "numeric",
591
- month: "long",
592
- day: "numeric"
593
- };
594
- return /* @__PURE__ */ jsxs(
595
- "div",
596
- {
597
- className: "menu-more pastanaga-menu",
598
- style: {
599
- flex: props.theToolbar.current ? `0 0 ${props.theToolbar.current.getBoundingClientRect().width}px` : null
600
- },
601
- children: [
602
- /* @__PURE__ */ jsxs("header", { children: [
603
- /* @__PURE__ */ jsx("h2", { children: content.title }),
604
- /* @__PURE__ */ jsx(
605
- "button",
606
- {
607
- className: "more-user",
608
- "aria-label": intl.formatMessage(messages$3.personalTools),
609
- onClick: () => push("personalTools"),
610
- tabIndex: 0,
611
- children: /* @__PURE__ */ jsx(
612
- Icon,
613
- {
614
- name: userSVG,
615
- size: "30px",
616
- title: intl.formatMessage(messages$3.personalTools)
617
- }
618
- )
619
- }
620
- )
621
- ] }),
622
- /* @__PURE__ */ jsx("div", { className: "pastanaga-menu-list", children: /* @__PURE__ */ jsxs("ul", { children: [
623
- /* @__PURE__ */ jsx(Pluggable, { name: "toolbar-more-menu-list" }),
624
- /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "state", children: content["@type"] !== "Plone Site" && // Plone Site does not have workflow
625
- /* @__PURE__ */ jsx("li", { className: "state-select", children: /* @__PURE__ */ jsx(Workflow, { pathname: path }) }) }),
626
- /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "view", children: content["@type"] !== "Plone Site" && // Plone Site does not have view (yet)
627
- /* @__PURE__ */ jsx("li", { className: "display-select", children: editAction && /* @__PURE__ */ jsx(DisplaySelect, { pathname: path }) }) }),
628
- /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "history", children: content["@type"] !== "Plone Site" && // Plone Site does not have history (yet)
629
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: `${path}/historyview`, children: [
630
- /* @__PURE__ */ jsxs("div", { children: [
631
- /* @__PURE__ */ jsx("span", { className: "pastanaga-menu-label", children: (historyAction == null ? void 0 : historyAction.title) || intl.formatMessage(messages$3.history) }),
632
- /* @__PURE__ */ jsx("span", { className: "pastanaga-menu-value" })
633
- ] }),
634
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
635
- ] }) }) }),
636
- /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "sharing", children: sharingAction && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: `${path}/sharing`, children: [
637
- intl.formatMessage(messages$3.sharing),
638
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
639
- ] }) }) }),
640
- /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "aliases", children: aliasesAction && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: `${path}/aliases`, children: [
641
- intl.formatMessage(messages$3.aliases),
642
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
643
- ] }) }) }),
644
- path !== "" && !$149c1bd638913645$export$2e2bcd8739ae039.settings.excludeLinksAndReferencesMenuItem && /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "linkstoitems", children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: `${path}/links-to-item`, children: [
645
- intl.formatMessage(messages$3.linkstoitem),
646
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
647
- ] }) }) }),
648
- /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-menu-list", id: "rules", children: rulesAction && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: `${path}/rules`, children: [
649
- intl.formatMessage(messages$3.rules),
650
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
651
- ] }) }) })
652
- ] }) }),
653
- /* @__PURE__ */ jsx(Pluggable, { name: "toolbar-more-manage-content", children: (pluggables) => /* @__PURE__ */ jsx(Fragment, { children: pluggables.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
654
- /* @__PURE__ */ jsx("header", { children: /* @__PURE__ */ jsx("h2", { children: intl.formatMessage(messages$3.manageContent) }) }),
655
- /* @__PURE__ */ jsx("div", { className: "pastanaga-menu-list", children: /* @__PURE__ */ jsx("ul", { children: pluggables.map((p) => /* @__PURE__ */ jsx(Fragment, { children: p() })) }) })
656
- ] }) }) }),
657
- $149c1bd638913645$export$2e2bcd8739ae039.settings.hasWorkingCopySupport && content["@type"] !== "Plone Site" && /* @__PURE__ */ jsxs(Fragment, { children: [
658
- !content.working_copy && /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-manage-content", id: "workingcopy", children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
659
- "button",
660
- {
661
- "aria-label": intl.formatMessage(messages$3.CreateWorkingCopy),
662
- onClick: () => {
663
- dispatch(createWorkingCopy(path)).then((response) => {
664
- history.push(flattenToAppURL(response["@id"]));
665
- props.closeMenu();
666
- });
667
- },
668
- children: [
669
- intl.formatMessage(messages$3.CreateWorkingCopy),
670
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
671
- ]
672
- }
673
- ) }) }),
674
- content.working_copy && content.working_copy_of && /* @__PURE__ */ jsxs(Plug, { pluggable: "toolbar-more-manage-content", id: "workingcopy", children: [
675
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
676
- "button",
677
- {
678
- "aria-label": intl.formatMessage(messages$3.applyWorkingCopy),
679
- onClick: () => {
680
- dispatch(applyWorkingCopy(path)).then((response) => {
681
- var _a, _b;
682
- history.push(
683
- flattenToAppURL(content.working_copy_of["@id"])
684
- );
685
- props.closeMenu();
686
- toast.info(
687
- /* @__PURE__ */ jsx(
688
- Toast,
689
- {
690
- info: true,
691
- title: intl.formatMessage(
692
- messages$3.workingAppliedTitle
693
- ),
694
- content: intl.formatMessage(
695
- messages$3.workingCopyAppliedBy,
696
- {
697
- creator: (_a = content.working_copy) == null ? void 0 : _a.creator_name,
698
- date: /* @__PURE__ */ jsx(
699
- FormattedDate,
700
- {
701
- date: (_b = content.working_copy) == null ? void 0 : _b.created,
702
- format: dateOptions
703
- }
704
- )
705
- }
706
- )
707
- }
708
- ),
709
- {
710
- toastId: "workingcopyapplyinfo",
711
- autoClose: 1e4
712
- }
713
- );
714
- });
715
- },
716
- children: [
717
- intl.formatMessage(messages$3.applyWorkingCopy),
718
- /* @__PURE__ */ jsx(
719
- Icon,
720
- {
721
- name: applySVG,
722
- size: "24px",
723
- title: intl.formatMessage(messages$3.applyWorkingCopy)
724
- }
725
- )
726
- ]
727
- }
728
- ) }),
729
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
730
- "button",
731
- {
732
- "aria-label": intl.formatMessage(messages$3.removeWorkingCopy),
733
- onClick: () => {
734
- dispatch(removeWorkingCopy(path)).then((response) => {
735
- history.push(
736
- flattenToAppURL(content.working_copy_of["@id"])
737
- );
738
- props.closeMenu();
739
- toast.info(
740
- /* @__PURE__ */ jsx(
741
- Toast,
742
- {
743
- info: true,
744
- title: intl.formatMessage(
745
- messages$3.workingCopyRemovedTitle
746
- )
747
- }
748
- ),
749
- {
750
- toastId: "workingcopyremovednotice",
751
- autoClose: 1e4
752
- }
753
- );
754
- });
755
- },
756
- children: [
757
- intl.formatMessage(messages$3.removeWorkingCopy),
758
- /* @__PURE__ */ jsx(
759
- Icon,
760
- {
761
- name: removeSVG,
762
- size: "24px",
763
- color: "#e40166",
764
- title: intl.formatMessage(messages$3.removeWorkingCopy)
765
- }
766
- )
767
- ]
768
- }
769
- ) })
770
- ] }),
771
- content.working_copy && !content.working_copy_of && /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-manage-content", id: "workingcopy", children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
772
- Link,
773
- {
774
- to: flattenToAppURL(content.working_copy["@id"]),
775
- onClick: () => props.closeMenu(),
776
- children: [
777
- intl.formatMessage(messages$3.viewWorkingCopy),
778
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
779
- ]
780
- }
781
- ) }) })
782
- ] }),
783
- editAction && $149c1bd638913645$export$2e2bcd8739ae039.settings.isMultilingual && /* @__PURE__ */ jsx(Plug, { pluggable: "toolbar-more-manage-content", id: "multilingual", children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: `${path}/manage-translations`, children: [
784
- intl.formatMessage(messages$3.ManageTranslations),
785
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
786
- ] }) }) })
787
- ]
788
- }
789
- );
790
- };
791
- More.propTypes = {
792
- loadComponent: PropTypes.func.isRequired,
793
- closeMenu: PropTypes.func.isRequired
794
- };
795
- const logoutSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M28.1631,13.7905 C27.0391,11.0755 24.9251,8.9615 22.2101,7.8375 L21.4441,9.6855 C23.6651,10.6045 25.3951,12.3345 26.3151,14.5555 C27.2351,16.7765 27.2351,19.2235 26.3151,21.4435 C24.4161,26.0285 19.1381,28.2145 14.5561,26.3145 C12.3351,25.3945 10.6041,23.6655 9.6841,21.4445 C8.7651,19.2235 8.7651,16.7765 9.6841,14.5565 C10.6051,12.3345 12.3351,10.6045 14.5561,9.6855 L13.7901,7.8375 C11.0761,8.9615 8.9621,11.0755 7.8371,13.7905 C6.7131,16.5045 6.7131,19.4955 7.8371,22.2095 C8.9611,24.9245 11.0751,27.0385 13.7901,28.1625 C15.1621,28.7305 16.5851,28.9995 17.9851,28.9995 C22.3041,28.9995 26.4101,26.4405 28.1631,22.2095 C29.2871,19.4955 29.2871,16.5045 28.1631,13.7905"/><path d="M17 18 19 18 19 5 17 5z"/></g>' };
796
- const messages$2 = defineMessages({
797
- back: {
798
- id: "Back",
799
- defaultMessage: "Back"
800
- },
801
- logout: {
802
- id: "Logout",
803
- defaultMessage: "Logout"
804
- },
805
- preferences: {
806
- id: "Preferences",
807
- defaultMessage: "Preferences"
808
- },
809
- profile: {
810
- id: "Profile",
811
- defaultMessage: "Profile"
812
- },
813
- userAvatar: {
814
- id: "user avatar",
815
- defaultMessage: "user avatar"
816
- }
817
- });
818
- const PersonalTools = (props) => {
819
- const dispatch = useDispatch();
820
- const intl = useIntl();
821
- const { pathname } = useLocation();
822
- const [, setPushed] = useState(false);
823
- const token = useSelector((state) => state.userSession.token, shallowEqual);
824
- const user = useSelector((state) => state.users.user);
825
- const userId = token ? jwtDecode(token).sub : "";
826
- useEffect(() => {
827
- dispatch(getUser(userId));
828
- }, [dispatch, userId]);
829
- const push = (selector) => {
830
- setPushed(true);
831
- props.loadComponent(selector);
832
- };
833
- const pull = () => {
834
- props.unloadComponent();
835
- };
836
- return /* @__PURE__ */ jsxs(
837
- "div",
838
- {
839
- className: cx("personal-tools pastanaga-menu", {
840
- "has-inner-actions": props.hasActions
841
- }),
842
- style: {
843
- flex: props.theToolbar.current ? `0 0 ${props.theToolbar.current.getBoundingClientRect().width}px` : null
844
- },
845
- children: [
846
- /* @__PURE__ */ jsxs("header", { className: "header", children: [
847
- /* @__PURE__ */ jsx("button", { className: "back", onClick: pull, children: /* @__PURE__ */ jsx(
848
- Icon,
849
- {
850
- name: backSVG,
851
- size: "30px",
852
- title: intl.formatMessage(messages$2.back)
853
- }
854
- ) }),
855
- /* @__PURE__ */ jsx("div", { className: "vertical divider" }),
856
- /* @__PURE__ */ jsx("h2", { children: user.fullname ? user.fullname : user.username }),
857
- /* @__PURE__ */ jsx(Link, { id: "toolbar-logout", to: `${getBaseUrl(pathname)}/logout`, children: /* @__PURE__ */ jsx(
858
- Icon,
859
- {
860
- className: "logout",
861
- name: logoutSVG,
862
- size: "30px",
863
- title: intl.formatMessage(messages$2.logout)
864
- }
865
- ) })
866
- ] }),
867
- /* @__PURE__ */ jsx("div", { className: cx("avatar", { default: !user.portrait }), children: user.portrait ? /* @__PURE__ */ jsx(
868
- "img",
869
- {
870
- src: expandToBackendURL(user.portrait),
871
- alt: intl.formatMessage(messages$2.userAvatar)
872
- }
873
- ) : /* @__PURE__ */ jsx(Icon, { name: cameraSVG, size: "96px" }) }),
874
- /* @__PURE__ */ jsx("div", { className: "pastanaga-menu-list", children: /* @__PURE__ */ jsxs("ul", { children: [
875
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
876
- Link,
877
- {
878
- id: intl.formatMessage(messages$2.profile),
879
- to: "/personal-information",
880
- children: [
881
- /* @__PURE__ */ jsx(FormattedMessage, { id: "Profile", defaultMessage: "Profile" }),
882
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
883
- ]
884
- }
885
- ) }),
886
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
887
- "button",
888
- {
889
- "aria-label": intl.formatMessage(messages$2.preferences),
890
- onClick: () => push("preferences"),
891
- children: [
892
- /* @__PURE__ */ jsx(FormattedMessage, { id: "Preferences", defaultMessage: "Preferences" }),
893
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
894
- ]
895
- }
896
- ) }),
897
- userHasRoles(user, ["Site Administrator", "Manager"]) && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { to: "/controlpanel", children: [
898
- /* @__PURE__ */ jsx(FormattedMessage, { id: "Site Setup", defaultMessage: "Site Setup" }),
899
- /* @__PURE__ */ jsx(Icon, { name: paginationRightSVG, size: "24px" })
900
- ] }) }),
901
- /* @__PURE__ */ jsx(Pluggable, { name: "toolbar-user-menu" })
902
- ] }) })
903
- ]
904
- }
905
- );
906
- };
907
- PersonalTools.propTypes = {
908
- loadComponent: PropTypes.func.isRequired
909
- };
910
- const Types = ({ types, pathname, content, currentLanguage }) => {
911
- const { settings } = $149c1bd638913645$export$2e2bcd8739ae039;
912
- return types.length > 0 || settings.isMultilingual && content["@components"].translations ? /* @__PURE__ */ jsxs("div", { className: "menu-more pastanaga-menu", children: [
913
- types.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
914
- /* @__PURE__ */ jsx("header", { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "Add Content", defaultMessage: "Add Content…" }) }),
915
- /* @__PURE__ */ jsx("div", { className: "pastanaga-menu-list", children: /* @__PURE__ */ jsx("ul", { children: map(filter(types), (item) => {
916
- const contentTypeToAdd = item["@id"].split("@types/")[1];
917
- const currentPath = pathname.replace(/\/contents$/, "").replace(/\/$/, "");
918
- const addContentTypeRoute = `${currentPath}/add?type=${contentTypeToAdd}`;
919
- return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
920
- Link,
921
- {
922
- to: addContentTypeRoute,
923
- id: `toolbar-add-${item["@id"].split("@types/")[1].toLowerCase().replace(" ", "-")}`,
924
- className: "item",
925
- children: /* @__PURE__ */ jsx(FormattedMessage, { id: item.title })
926
- },
927
- item.title
928
- ) }, item["@id"]);
929
- }) }) })
930
- ] }),
931
- settings.isMultilingual && content["@components"].translations && (() => {
932
- const translationsLeft = filter(
933
- settings.supportedLanguages,
934
- (lang) => !Boolean(
935
- content["@components"].translations && find(content["@components"].translations.items, {
936
- language: lang
937
- })
938
- ) && toBackendLang(currentLanguage) !== lang
939
- );
940
- return !isEmpty(translationsLeft) && /* @__PURE__ */ jsxs(Fragment, { children: [
941
- /* @__PURE__ */ jsx("header", { children: /* @__PURE__ */ jsx(
942
- FormattedMessage,
943
- {
944
- id: "Add Translation…",
945
- defaultMessage: "Add Translation…"
946
- }
947
- ) }),
948
- /* @__PURE__ */ jsx("div", { className: "pastanaga-menu-list", children: /* @__PURE__ */ jsx("ul", { children: map(translationsLeft, (lang) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
949
- Link,
950
- {
951
- to: {
952
- pathname: `${pathname}/create-translation`,
953
- state: {
954
- type: content["@type"],
955
- translationOf: flattenToAppURL(content["@id"]),
956
- language: lang
957
- }
958
- },
959
- className: "item",
960
- children: /* @__PURE__ */ jsx(
961
- FormattedMessage,
962
- {
963
- id: "Translate to {lang}",
964
- defaultMessage: "Translate to {lang}",
965
- values: {
966
- lang: langmap[lang].nativeName.toLowerCase()
967
- }
968
- }
969
- )
970
- }
971
- ) }, lang)) }) })
972
- ] });
973
- })()
974
- ] }) : /* @__PURE__ */ jsx("span", {});
975
- };
976
- Types.propTypes = {
977
- pathname: PropTypes.string.isRequired,
978
- types: PropTypes.arrayOf(
979
- PropTypes.shape({
980
- "@id": PropTypes.string,
981
- addable: PropTypes.bool,
982
- title: PropTypes.string
983
- })
984
- ).isRequired
985
- };
986
- const Types$1 = connect(
987
- (state) => ({
988
- types: filter(state.types.types, "addable"),
989
- currentLanguage: state.intl.locale
990
- }),
991
- {}
992
- )(Types);
993
- const messages$1 = defineMessages({
994
- personalPreferences: {
995
- id: "Personal Preferences",
996
- defaultMessage: "Personal Preferences"
997
- },
998
- default: {
999
- id: "Default",
1000
- defaultMessage: "Default"
1001
- },
1002
- language: {
1003
- id: "Language",
1004
- defaultMessage: "Language"
1005
- },
1006
- languageDescription: {
1007
- id: "Your preferred language",
1008
- defaultMessage: "Your preferred language"
1009
- },
1010
- saved: {
1011
- id: "Changes saved",
1012
- defaultMessage: "Changes saved"
1013
- },
1014
- back: {
1015
- id: "Back",
1016
- defaultMessage: "Back"
1017
- },
1018
- success: {
1019
- id: "Success",
1020
- defaultMessage: "Success"
1021
- }
1022
- });
1023
- const PersonalPreferences = (props) => {
1024
- const intl = useIntl();
1025
- const dispatch = useDispatch();
1026
- const { closeMenu } = props;
1027
- const onSubmit = (data) => {
1028
- let language = data.language || "en";
1029
- if ($149c1bd638913645$export$2e2bcd8739ae039.settings.supportedLanguages.includes(language)) {
1030
- const langFileName = toGettextLang(language);
1031
- import(
1032
- /* @vite-ignore */
1033
- "@root/../locales/" + langFileName + ".json"
1034
- ).then((locale) => {
1035
- dispatch(changeLanguage(language, locale.default));
1036
- });
1037
- }
1038
- toast.success(/* @__PURE__ */ jsx(Toast, { success: true, title: intl.formatMessage(messages$1.saved) }));
1039
- closeMenu();
1040
- };
1041
- const onCancel = () => {
1042
- closeMenu();
1043
- };
1044
- const { cookies } = props;
1045
- return /* @__PURE__ */ jsx(
1046
- Form,
1047
- {
1048
- formData: { language: cookies.get("I18N_LANGUAGE") || "" },
1049
- schema: {
1050
- fieldsets: [
1051
- {
1052
- id: "default",
1053
- title: intl.formatMessage(messages$1.default),
1054
- fields: ["language"]
1055
- }
1056
- ],
1057
- properties: {
1058
- language: {
1059
- description: intl.formatMessage(messages$1.languageDescription),
1060
- title: intl.formatMessage(messages$1.language),
1061
- type: "string",
1062
- choices: map(keys(languages), (lang) => [lang, languages[lang]])
1063
- }
1064
- },
1065
- required: []
1066
- },
1067
- onSubmit,
1068
- onCancel
1069
- }
1070
- );
1071
- };
1072
- PersonalPreferences.propTypes = {
1073
- closeMenu: PropTypes.func.isRequired
1074
- };
1075
- const PersonalPreferences$1 = compose(withCookies)(PersonalPreferences);
1076
- const StandardWrapper = (props) => {
1077
- function pull() {
1078
- props.unloadComponent();
1079
- }
1080
- return /* @__PURE__ */ jsxs(
1081
- "div",
1082
- {
1083
- className: cx(`${props.componentName} pastanaga-menu`, {
1084
- "has-inner-actions": props.hasActions
1085
- }),
1086
- style: {
1087
- flex: props.theToolbar.current ? `0 0 ${props.theToolbar.current.getBoundingClientRect().width}px` : null
1088
- },
1089
- children: [
1090
- /* @__PURE__ */ jsxs("header", { className: "header pulled", children: [
1091
- /* @__PURE__ */ jsx("button", { onClick: pull, children: /* @__PURE__ */ jsx(Icon, { name: backSVG, size: "30px" }) }),
1092
- /* @__PURE__ */ jsx("div", { className: "vertical divider" }),
1093
- /* @__PURE__ */ jsx("h2", { children: props.componentTitle || props.componentName })
1094
- ] }),
1095
- props.children
1096
- ]
1097
- }
1098
- );
1099
- };
1100
- StandardWrapper.propTypes = {
1101
- componentName: PropTypes.string.isRequired,
1102
- componentTitle: PropTypes.string,
1103
- unloadComponent: PropTypes.func.isRequired,
1104
- loadComponent: PropTypes.func.isRequired,
1105
- closeMenu: PropTypes.func.isRequired,
1106
- hasActions: PropTypes.bool
1107
- };
1108
- function setExpandedToolbar(isExpanded) {
1109
- return {
1110
- type: EXPAND_TOOLBAR,
1111
- isExpanded
1112
- };
1113
- }
1114
- const editSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<path fill-rule="evenodd" d="M11.9341,27 L9.0001,27 L9.0001,24.277 L19.9311,13.398 L22.7861,16.174 L11.9341,27 Z M26.3841,6.999 L29.2121,9.827 L24.2271,14.813 L21.3981,11.984 L26.3841,6.999 Z M28.9351,12.932 L30.6261,11.241 C31.4061,10.461 31.4061,9.193 30.6261,8.413 L27.7971,5.584 C27.0421,4.829 25.6721,4.828 24.9161,5.584 L7.0001,23.449 L7.0001,27.48 L5.2401,29.293 L6.6811,30.654 L8.3091,29 L12.7621,29 L27.5211,14.294 L29.0011,15.801 L24.4141,20.401 L25.8281,21.822 L30.4151,17.238 C30.7921,16.861 31.0001,16.361 31.0001,15.826 C31.0001,15.29 30.7921,14.789 30.4151,14.412 L28.9351,12.932 Z"/>' };
1115
- const unlockSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M27,30 C27,30.551 26.552,31 26,31 L10,31 C9.448,31 9,30.551 9,30 L9,18 C9,17.449 9.448,17 10,17 L26,17 C26.552,17 27,17.449 27,18 L27,30 Z M27,15.184 L27,12 C27,7.038 22.963,3 18,3 C13.037,3 9,7.038 9,12 L11,12 C11,8.14 14.141,5 18,5 C21.859,5 25,8.14 25,12 L25,15 L10,15 C8.346,15 7,16.346 7,18 L7,30 C7,31.654 8.346,33 10,33 L26,33 C27.654,33 29,31.654 29,30 L29,18 C29,16.698 28.161,15.598 27,15.184 L27,15.184 Z"/><path d="M18,20.5 C17.172,20.5 16.5,21.172 16.5,22 C16.5,22.443 16.695,22.836 17,23.111 L17,27 L19,27 L19,23.111 C19.305,22.836 19.5,22.443 19.5,22 C19.5,21.172 18.828,20.5 18,20.5"/></g>' };
1116
- const addSVG = { "attributes": { "xmlns": "http://www.w3.org/2000/svg", "width": "36", "height": "36", "viewBox": "0 0 36 36" }, "content": '<g fill-rule="evenodd"><path d="M6.9996,3.0003 L6.9996,33.0003 L29.0006,33.0003 L29.0006,11.5863 L20.4136,3.0003 L6.9996,3.0003 Z M9.0006,5.0003 L19.0006,5.0003 L19.0006,13.0003 L27.0006,13.0003 L27.0006,31.0003 L9.0006,31.0003 L9.0006,5.0003 Z M20.9996,6.4143 L25.5856,11.0003 L20.9996,11.0003 L20.9996,6.4143 Z"/><path d="M19 16 17 16 17 20 13 20 13 22 17 22 17 26 19 26 19 22 23 22 23 20 19 20z"/></g>' };
1117
- const messages = defineMessages({
1118
- edit: {
1119
- id: "Edit",
1120
- defaultMessage: "Edit"
1121
- },
1122
- contents: {
1123
- id: "Contents",
1124
- defaultMessage: "Contents"
1125
- },
1126
- add: {
1127
- id: "Add",
1128
- defaultMessage: "Add"
1129
- },
1130
- more: {
1131
- id: "More",
1132
- defaultMessage: "More"
1133
- },
1134
- personalTools: {
1135
- id: "Personal tools",
1136
- defaultMessage: "Personal tools"
1137
- },
1138
- shrinkToolbar: {
1139
- id: "Shrink toolbar",
1140
- defaultMessage: "Shrink toolbar"
1141
- },
1142
- personalInformation: {
1143
- id: "Personal Information",
1144
- defaultMessage: "Personal Information"
1145
- },
1146
- personalPreferences: {
1147
- id: "Personal Preferences",
1148
- defaultMessage: "Personal Preferences"
1149
- },
1150
- collection: {
1151
- id: "Collection",
1152
- defaultMessage: "Collection"
1153
- },
1154
- file: {
1155
- id: "File",
1156
- defaultMessage: "File"
1157
- },
1158
- link: {
1159
- id: "Link",
1160
- defaultMessage: "Link"
1161
- },
1162
- newsItem: {
1163
- id: "News Item",
1164
- defaultMessage: "News Item"
1165
- },
1166
- page: {
1167
- id: "Page",
1168
- defaultMessage: "Page"
1169
- },
1170
- back: {
1171
- id: "Back",
1172
- defaultMessage: "Back"
1173
- },
1174
- unlock: {
1175
- id: "Unlock",
1176
- defaultMessage: "Unlock"
1177
- }
1178
- });
1179
- let toolbarComponents = {
1180
- personalTools: { component: PersonalTools, wrapper: null },
1181
- more: { component: More, wrapper: null },
1182
- types: { component: Types$1, wrapper: null, contentAsProps: true },
1183
- profile: {
1184
- component: PersonalInformation,
1185
- wrapper: StandardWrapper,
1186
- wrapperTitle: messages.personalInformation,
1187
- hideToolbarBody: true
1188
- },
1189
- preferences: {
1190
- component: PersonalPreferences$1,
1191
- wrapper: StandardWrapper,
1192
- wrapperTitle: messages.personalPreferences,
1193
- hideToolbarBody: true
1194
- }
1195
- };
1196
- class Toolbar extends Component {
1197
- constructor(props) {
1198
- super(props);
1199
- __publicField(this, "toolbarRef", React__default.createRef());
1200
- __publicField(this, "toolbarWindow", React__default.createRef());
1201
- __publicField(this, "buttonRef", React__default.createRef());
1202
- __publicField(this, "handleShrink", () => {
1203
- const { cookies } = this.props;
1204
- cookies.set("toolbar_expanded", !this.state.expanded, getCookieOptions());
1205
- this.setState(
1206
- (state) => ({ expanded: !state.expanded }),
1207
- () => this.props.setExpandedToolbar(this.state.expanded)
1208
- );
1209
- });
1210
- __publicField(this, "closeMenu", () => {
1211
- this.setState(() => ({ showMenu: false, loadedComponents: [] }));
1212
- });
1213
- __publicField(this, "loadComponent", (type) => {
1214
- const { loadedComponents } = this.state;
1215
- if (!this.state.loadedComponents.includes(type)) {
1216
- this.setState({
1217
- loadedComponents: [...loadedComponents, type],
1218
- hideToolbarBody: toolbarComponents[type].hideToolbarBody || false
1219
- });
1220
- }
1221
- });
1222
- __publicField(this, "unloadComponent", () => {
1223
- this.setState((state) => ({
1224
- loadedComponents: state.loadedComponents.slice(0, -1),
1225
- hideToolbarBody: toolbarComponents[state.loadedComponents[state.loadedComponents.length - 2]].hideToolbarBody || false
1226
- }));
1227
- });
1228
- __publicField(this, "toggleButtonPressed", (e) => {
1229
- const target = e.target;
1230
- const button = target.tagName === "BUTTON" ? target : this.findAncestor(e.target, "button");
1231
- this.buttonRef.current = button;
1232
- });
1233
- __publicField(this, "toggleMenu", (e, selector) => {
1234
- if (this.state.showMenu) {
1235
- this.closeMenu();
1236
- return;
1237
- }
1238
- if (selector === "personalTools") {
1239
- this.setState((state) => ({
1240
- showMenu: !state.showMenu,
1241
- menuStyle: { bottom: 0 }
1242
- }));
1243
- } else if (selector === "more") {
1244
- this.setState((state) => ({
1245
- showMenu: !state.showMenu,
1246
- menuStyle: {
1247
- overflow: "visible",
1248
- top: 0
1249
- }
1250
- }));
1251
- } else {
1252
- this.setState((state) => ({
1253
- showMenu: !state.showMenu,
1254
- menuStyle: { top: 0 }
1255
- }));
1256
- }
1257
- this.toggleButtonPressed(e);
1258
- this.loadComponent(selector);
1259
- });
1260
- __publicField(this, "findAncestor", (el, sel) => {
1261
- while ((el = el.parentElement) && !(el.matches || el.matchesSelector).call(el, sel)) ;
1262
- return el;
1263
- });
1264
- __publicField(this, "handleClickOutside", (e) => {
1265
- const target = e.target;
1266
- if (this.pusher && doesNodeContainClick(this.pusher, e)) return;
1267
- const button = doesNodeContainClick(this.toolbarRef.current, e) && this.findAncestor(target, "button");
1268
- if (button && button === this.buttonRef.current) return;
1269
- this.closeMenu();
1270
- });
1271
- __publicField(this, "unlock", (e) => {
1272
- this.props.unlockContent(getBaseUrl(this.props.pathname), true);
1273
- });
1274
- const { cookies } = props;
1275
- this.state = {
1276
- expanded: cookies.get("toolbar_expanded") !== "false",
1277
- showMenu: false,
1278
- menuStyle: {},
1279
- menuComponents: [],
1280
- loadedComponents: [],
1281
- hideToolbarBody: false
1282
- };
1283
- }
1284
- /**
1285
- * Component will mount
1286
- * @method componentDidMount
1287
- * @returns {undefined}
1288
- */
1289
- componentDidMount() {
1290
- if (!hasApiExpander("actions", getBaseUrl(this.props.pathname))) {
1291
- this.props.listActions(getBaseUrl(this.props.pathname));
1292
- }
1293
- if (!hasApiExpander("types", getBaseUrl(this.props.pathname))) {
1294
- this.props.getTypes(getBaseUrl(this.props.pathname));
1295
- }
1296
- toolbarComponents = {
1297
- ...$149c1bd638913645$export$2e2bcd8739ae039.settings ? $149c1bd638913645$export$2e2bcd8739ae039.settings.additionalToolbarComponents || {} : {},
1298
- ...toolbarComponents
1299
- };
1300
- this.props.setExpandedToolbar(this.state.expanded);
1301
- document.addEventListener("mousedown", this.handleClickOutside, false);
1302
- }
1303
- /**
1304
- * Component will receive props
1305
- * @method componentWillReceiveProps
1306
- * @param {Object} nextProps Next properties
1307
- * @returns {undefined}
1308
- */
1309
- UNSAFE_componentWillReceiveProps(nextProps) {
1310
- if (nextProps.pathname !== this.props.pathname) {
1311
- if (!hasApiExpander("actions", getBaseUrl(nextProps.pathname))) {
1312
- this.props.listActions(getBaseUrl(nextProps.pathname));
1313
- }
1314
- if (!hasApiExpander("types", getBaseUrl(nextProps.pathname))) {
1315
- this.props.getTypes(getBaseUrl(nextProps.pathname));
1316
- }
1317
- }
1318
- if (this.props.unlockRequest.loading && nextProps.unlockRequest.loaded) {
1319
- this.props.listActions(getBaseUrl(nextProps.pathname));
1320
- }
1321
- }
1322
- /**
1323
- * Component will receive props
1324
- * @method componentWillUnmount
1325
- * @returns {undefined}
1326
- */
1327
- componentWillUnmount() {
1328
- document.removeEventListener("mousedown", this.handleClickOutside, false);
1329
- }
1330
- /**
1331
- * Render method.
1332
- * @method render
1333
- * @returns {string} Markup for the component.
1334
- */
1335
- render() {
1336
- var _a, _b, _c, _d;
1337
- const path = getBaseUrl(this.props.pathname);
1338
- const lock = (_a = this.props.content) == null ? void 0 : _a.lock;
1339
- const unlockAction = (lock == null ? void 0 : lock.locked) && (lock == null ? void 0 : lock.stealable) && (lock == null ? void 0 : lock.creator) !== this.props.userId;
1340
- const editAction = !unlockAction && find(this.props.actions.object, { id: "edit" });
1341
- const folderContentsAction = find(this.props.actions.object, {
1342
- id: "folderContents"
1343
- });
1344
- const { expanded } = this.state;
1345
- return this.props.token && /* @__PURE__ */ jsxs(Fragment, { children: [
1346
- /* @__PURE__ */ jsx(
1347
- BodyClass,
1348
- {
1349
- className: expanded ? "has-toolbar" : "has-toolbar-collapsed"
1350
- }
1351
- ),
1352
- /* @__PURE__ */ jsxs(
1353
- "div",
1354
- {
1355
- style: this.state.menuStyle,
1356
- className: this.state.showMenu ? "toolbar-content show" : "toolbar-content",
1357
- ref: this.toolbarWindow,
1358
- children: [
1359
- this.state.showMenu && // This sets the scroll locker in the body tag in mobile
1360
- /* @__PURE__ */ jsx(BodyClass, { className: "has-toolbar-menu-open" }),
1361
- /* @__PURE__ */ jsx(
1362
- "div",
1363
- {
1364
- className: "pusher-puller",
1365
- ref: (node) => this.pusher = node,
1366
- style: {
1367
- transform: this.toolbarWindow.current ? `translateX(-${(this.state.loadedComponents.length - 1) * this.toolbarWindow.current.getBoundingClientRect().width}px)` : null
1368
- },
1369
- children: this.state.loadedComponents.map(
1370
- (component, index) => (() => {
1371
- const ToolbarComponent = toolbarComponents[component].component;
1372
- const WrapperComponent = toolbarComponents[component].wrapper;
1373
- const haveActions = toolbarComponents[component].hideToolbarBody;
1374
- const title = toolbarComponents[component].wrapperTitle && this.props.intl.formatMessage(
1375
- toolbarComponents[component].wrapperTitle
1376
- );
1377
- if (WrapperComponent) {
1378
- return /* @__PURE__ */ jsx(
1379
- WrapperComponent,
1380
- {
1381
- componentName: component,
1382
- componentTitle: title,
1383
- pathname: this.props.pathname,
1384
- loadComponent: this.loadComponent,
1385
- unloadComponent: this.unloadComponent,
1386
- componentIndex: index,
1387
- theToolbar: this.toolbarWindow,
1388
- closeMenu: this.closeMenu,
1389
- hasActions: haveActions,
1390
- children: /* @__PURE__ */ jsx(
1391
- ToolbarComponent,
1392
- {
1393
- pathname: this.props.pathname,
1394
- loadComponent: this.loadComponent,
1395
- unloadComponent: this.unloadComponent,
1396
- componentIndex: index,
1397
- theToolbar: this.toolbarWindow,
1398
- closeMenu: this.closeMenu,
1399
- isToolbarEmbedded: true
1400
- }
1401
- )
1402
- },
1403
- `personalToolsComponent-${index}`
1404
- );
1405
- } else {
1406
- return /* @__PURE__ */ jsx(
1407
- ToolbarComponent,
1408
- {
1409
- pathname: this.props.pathname,
1410
- loadComponent: this.loadComponent,
1411
- unloadComponent: this.unloadComponent,
1412
- componentIndex: index,
1413
- theToolbar: this.toolbarWindow,
1414
- closeMenu: this.closeMenu,
1415
- content: toolbarComponents[component].contentAsProps ? this.props.content : null
1416
- },
1417
- `personalToolsComponent-${index}`
1418
- );
1419
- }
1420
- })()
1421
- )
1422
- }
1423
- )
1424
- ]
1425
- }
1426
- ),
1427
- /* @__PURE__ */ jsxs(
1428
- "div",
1429
- {
1430
- className: this.state.expanded ? "toolbar expanded" : "toolbar",
1431
- ref: this.toolbarRef,
1432
- children: [
1433
- /* @__PURE__ */ jsxs("div", { className: "toolbar-body", children: [
1434
- /* @__PURE__ */ jsxs("div", { className: "toolbar-actions", children: [
1435
- this.props.hideDefaultViewButtons && this.props.inner && /* @__PURE__ */ jsx(Fragment, { children: this.props.inner }),
1436
- !this.props.hideDefaultViewButtons && /* @__PURE__ */ jsxs(Fragment, { children: [
1437
- unlockAction && /* @__PURE__ */ jsx(
1438
- "button",
1439
- {
1440
- "aria-label": this.props.intl.formatMessage(
1441
- messages.unlock
1442
- ),
1443
- className: "unlock",
1444
- onClick: (e) => this.unlock(e),
1445
- tabIndex: 0,
1446
- children: /* @__PURE__ */ jsx(
1447
- Icon,
1448
- {
1449
- name: unlockSVG,
1450
- size: "30px",
1451
- className: "unlock",
1452
- title: this.props.intl.formatMessage(messages.unlock)
1453
- }
1454
- )
1455
- }
1456
- ),
1457
- editAction && /* @__PURE__ */ jsx(
1458
- Link,
1459
- {
1460
- "aria-label": this.props.intl.formatMessage(
1461
- messages.edit
1462
- ),
1463
- className: "edit",
1464
- to: `${path}/edit`,
1465
- children: /* @__PURE__ */ jsx(
1466
- Icon,
1467
- {
1468
- name: editSVG,
1469
- size: "30px",
1470
- className: "circled",
1471
- title: this.props.intl.formatMessage(messages.edit)
1472
- }
1473
- )
1474
- }
1475
- ),
1476
- this.props.content && this.props.content.is_folderish && folderContentsAction && !this.props.pathname.endsWith("/contents") && /* @__PURE__ */ jsx(
1477
- Link,
1478
- {
1479
- "aria-label": this.props.intl.formatMessage(
1480
- messages.contents
1481
- ),
1482
- to: `${path}/contents`,
1483
- children: /* @__PURE__ */ jsx(
1484
- Icon,
1485
- {
1486
- name: folderSVG,
1487
- size: "30px",
1488
- title: this.props.intl.formatMessage(
1489
- messages.contents
1490
- )
1491
- }
1492
- )
1493
- }
1494
- ),
1495
- this.props.content && this.props.content.is_folderish && folderContentsAction && this.props.pathname.endsWith("/contents") && /* @__PURE__ */ jsx(
1496
- Link,
1497
- {
1498
- to: `${path}`,
1499
- "aria-label": this.props.intl.formatMessage(
1500
- messages.back
1501
- ),
1502
- children: /* @__PURE__ */ jsx(
1503
- Icon,
1504
- {
1505
- name: backSVG,
1506
- className: "circled",
1507
- size: "30px",
1508
- title: this.props.intl.formatMessage(messages.back)
1509
- }
1510
- )
1511
- }
1512
- ),
1513
- this.props.content && (this.props.content.is_folderish && this.props.types.length > 0 || $149c1bd638913645$export$2e2bcd8739ae039.settings.isMultilingual && ((_b = this.props.content["@components"]) == null ? void 0 : _b.translations)) && /* @__PURE__ */ jsx(
1514
- "button",
1515
- {
1516
- className: "add",
1517
- "aria-label": this.props.intl.formatMessage(
1518
- messages.add
1519
- ),
1520
- onClick: (e) => this.toggleMenu(e, "types"),
1521
- tabIndex: 0,
1522
- id: "toolbar-add",
1523
- children: /* @__PURE__ */ jsx(
1524
- Icon,
1525
- {
1526
- name: addSVG,
1527
- size: "30px",
1528
- title: this.props.intl.formatMessage(messages.add)
1529
- }
1530
- )
1531
- }
1532
- ),
1533
- /* @__PURE__ */ jsx("div", { className: "toolbar-button-spacer" }),
1534
- /* @__PURE__ */ jsxs(
1535
- "button",
1536
- {
1537
- className: "more",
1538
- "aria-label": this.props.intl.formatMessage(messages.more),
1539
- onClick: (e) => this.toggleMenu(e, "more"),
1540
- tabIndex: 0,
1541
- id: "toolbar-more",
1542
- children: [
1543
- /* @__PURE__ */ jsx(
1544
- Icon,
1545
- {
1546
- className: "mobile hidden",
1547
- name: moreSVG,
1548
- size: "30px",
1549
- title: this.props.intl.formatMessage(messages.more)
1550
- }
1551
- ),
1552
- this.state.showMenu ? /* @__PURE__ */ jsx(
1553
- Icon,
1554
- {
1555
- className: "mobile only",
1556
- name: clearSVG,
1557
- size: "30px"
1558
- }
1559
- ) : /* @__PURE__ */ jsx(
1560
- Icon,
1561
- {
1562
- className: "mobile only",
1563
- name: moreSVG,
1564
- size: "30px"
1565
- }
1566
- )
1567
- ]
1568
- }
1569
- )
1570
- ] }),
1571
- /* @__PURE__ */ jsx(Pluggable, { name: "main.toolbar.top" })
1572
- ] }),
1573
- /* @__PURE__ */ jsxs("div", { className: "toolbar-bottom", children: [
1574
- /* @__PURE__ */ jsx(
1575
- Pluggable,
1576
- {
1577
- name: "main.toolbar.bottom",
1578
- params: { onClickHandler: this.toggleMenu }
1579
- }
1580
- ),
1581
- !this.props.hideDefaultViewButtons && /* @__PURE__ */ jsx(
1582
- "button",
1583
- {
1584
- className: "user",
1585
- "aria-label": this.props.intl.formatMessage(
1586
- messages.personalTools
1587
- ),
1588
- onClick: (e) => this.toggleMenu(e, "personalTools"),
1589
- tabIndex: 0,
1590
- id: "toolbar-personal",
1591
- children: /* @__PURE__ */ jsx(
1592
- Icon,
1593
- {
1594
- name: userSVG,
1595
- size: "30px",
1596
- title: this.props.intl.formatMessage(
1597
- messages.personalTools
1598
- )
1599
- }
1600
- )
1601
- }
1602
- )
1603
- ] })
1604
- ] }),
1605
- /* @__PURE__ */ jsx("div", { className: "toolbar-handler", children: /* @__PURE__ */ jsx(
1606
- "button",
1607
- {
1608
- "aria-label": this.props.intl.formatMessage(
1609
- messages.shrinkToolbar
1610
- ),
1611
- className: cx("toolbar-handler-button", {
1612
- [(_c = this.props.content) == null ? void 0 : _c.review_state]: (_d = this.props.content) == null ? void 0 : _d.review_state
1613
- }),
1614
- onClick: this.handleShrink
1615
- }
1616
- ) })
1617
- ]
1618
- }
1619
- ),
1620
- /* @__PURE__ */ jsx("div", { className: "pusher" })
1621
- ] });
1622
- }
1623
- }
1624
- /**
1625
- * Property types.
1626
- * @property {Object} propTypes Property types.
1627
- * @static
1628
- */
1629
- __publicField(Toolbar, "propTypes", {
1630
- actions: PropTypes.shape({
1631
- object: PropTypes.arrayOf(PropTypes.object),
1632
- object_buttons: PropTypes.arrayOf(PropTypes.object),
1633
- user: PropTypes.arrayOf(PropTypes.object)
1634
- }),
1635
- token: PropTypes.string,
1636
- userId: PropTypes.string,
1637
- pathname: PropTypes.string.isRequired,
1638
- content: PropTypes.shape({
1639
- "@type": PropTypes.string,
1640
- is_folderish: PropTypes.bool,
1641
- review_state: PropTypes.string
1642
- }),
1643
- getTypes: PropTypes.func.isRequired,
1644
- types: PropTypes.arrayOf(
1645
- PropTypes.shape({
1646
- "@id": PropTypes.string,
1647
- addable: PropTypes.bool,
1648
- title: PropTypes.string
1649
- })
1650
- ),
1651
- listActions: PropTypes.func.isRequired,
1652
- unlockContent: PropTypes.func,
1653
- unlockRequest: PropTypes.objectOf(PropTypes.any),
1654
- inner: PropTypes.element.isRequired,
1655
- hideDefaultViewButtons: PropTypes.bool
1656
- });
1657
- /**
1658
- * Default properties.
1659
- * @property {Object} defaultProps Default properties.
1660
- * @static
1661
- */
1662
- __publicField(Toolbar, "defaultProps", {
1663
- actions: null,
1664
- token: null,
1665
- userId: null,
1666
- content: null,
1667
- hideDefaultViewButtons: false,
1668
- types: []
1669
- });
1670
- const Toolbar$1 = compose(
1671
- injectIntl,
1672
- withCookies,
1673
- connect(
1674
- (state, props) => ({
1675
- actions: state.actions.actions,
1676
- token: state.userSession.token,
1677
- userId: state.userSession.token ? jwtDecode(state.userSession.token).sub : "",
1678
- content: state.content.data,
1679
- pathname: props.pathname,
1680
- types: filter(state.types.types, "addable"),
1681
- unlockRequest: state.content.unlock
1682
- }),
1683
- { getTypes, listActions, setExpandedToolbar, unlockContent }
1684
- )
1685
- )(Toolbar);
1686
- const Toolbar$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1687
- __proto__: null,
1688
- default: Toolbar$1
1689
- }, Symbol.toStringTag, { value: "Module" }));
1690
- export {
1691
- Toolbar$1 as T,
1692
- addSVG as a,
1693
- Toolbar$2 as b,
1694
- editSVG as e
1695
- };