@templatical/editor 0.43.1 → 0.43.3

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 (256) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-DOCvzGBe.js → AiChatSidebar-BAAypLEP.js} +7 -7
  3. package/dist/{AiFeatureMenu-xCJeD07B.js → AiFeatureMenu-CQcrDR-J.js} +4 -4
  4. package/dist/{BlockIssueBadge-BJ3A6mqh.js → BlockIssueBadge-DYI7ic1j.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-BQXfqhzu.js → BlockPreviewCanvas-x5W-Sdhg.js} +2 -2
  6. package/dist/{CloudHeaderExtras-TFmBJ0Ry.js → CloudHeaderExtras-DnLaX4ea.js} +2 -2
  7. package/dist/{CloudPanels-BnSBbYnw.js → CloudPanels-BHPG3d1o.js} +4 -4
  8. package/dist/{CollaboratorBar-7ry8EdUh.js → CollaboratorBar-DG6KroMt.js} +2 -2
  9. package/dist/{CommentsPanel-CGEhbjx0.js → CommentsPanel-Bzk6VhJg.js} +1 -1
  10. package/dist/{CommentsSidebar-CUpst9ou.js → CommentsSidebar-CaRC3c1b.js} +10 -10
  11. package/dist/{CountdownToolbar-B1a_UIuB.js → CountdownToolbar-B-pAigUh.js} +3 -3
  12. package/dist/{DesignReferenceSidebar-DkAmsBgM.js → DesignReferenceSidebar-DfuJyDBz.js} +5 -5
  13. package/dist/{IssuesPanel-lTpsCV4a.js → IssuesPanel-vWhcDIvb.js} +5 -5
  14. package/dist/{LogicTagInsertButton-B5YymR4U.js → LogicTagInsertButton-D2Fjo444.js} +3 -3
  15. package/dist/{MediaEditModal-B1X8qtJb.js → MediaEditModal-BuP8SJrv.js} +270 -230
  16. package/dist/{MediaPanels-DO30L1KS.js → MediaPanels-BkcF0r_r.js} +1 -1
  17. package/dist/{MergeTagInput-B0M_-X0K.js → MergeTagInput-fEOOY7OU.js} +1 -1
  18. package/dist/{MergeTagModeToggle-B-8W1tK7.js → MergeTagModeToggle-BOeEL52u.js} +3 -3
  19. package/dist/{ParagraphEditor-DVGeU0Am.js → ParagraphEditor-BlJGeBRY.js} +22 -22
  20. package/dist/{RestoreVersionDialog-DOhgYkiA.js → RestoreVersionDialog-DYaoFk5G.js} +3 -3
  21. package/dist/{RichTextEditorContent-AaLAArA0.js → RichTextEditorContent-GacK8qwu.js} +4 -4
  22. package/dist/{SaveBlockDialog-36MzPD2S.js → SaveBlockDialog-DR1UCtQY.js} +8 -8
  23. package/dist/{SavedBlocksBrowserModal-B5nFKszf.js → SavedBlocksBrowserModal-q_-qYW9a.js} +9 -9
  24. package/dist/{SavedBlocksPanels-BZkbP7eB.js → SavedBlocksPanels-nTH8NTAT.js} +1 -1
  25. package/dist/{SavedBlocksPickBar-ChoCMdu7.js → SavedBlocksPickBar-C7vHmc5c.js} +2 -2
  26. package/dist/{TemplateScoringPanel-C6ellAcs.js → TemplateScoringPanel-D9jeQCYl.js} +11 -11
  27. package/dist/{TemplateSettings-C_0qK-zs.js → TemplateSettings-ClfHwxUa.js} +5 -5
  28. package/dist/{TestEmailModal-CKW-VArm.js → TestEmailModal-DEnvrv38.js} +6 -6
  29. package/dist/{TestEmailPanel-BylYzjyM.js → TestEmailPanel-Ca9t6KG7.js} +1 -1
  30. package/dist/{TitleEditor-DoQ286_n.js → TitleEditor-D7mNs3s5.js} +9 -9
  31. package/dist/{ToggleSwitch-CtZ6adlX.js → ToggleSwitch-Z-rqEcig.js} +1 -1
  32. package/dist/{Toolbar-B6dG5_IP.js → Toolbar-DUgyDBkz.js} +28 -28
  33. package/dist/{TplModal-DHwQXySQ.js → TplModal-CYyFAScB.js} +1 -1
  34. package/dist/{VersionHistoryMenu-DdspCRSA.js → VersionHistoryMenu-D42tGKM6.js} +5 -5
  35. package/dist/{VersionHistoryPanels-C6QxmRUH.js → VersionHistoryPanels-o0HGvQJX.js} +1 -1
  36. package/dist/{VersionPreviewBanner-XUuLe36h.js → VersionPreviewBanner-D5RZtvUf.js} +1 -1
  37. package/dist/{WrapperBlock-BumDudbj.js → WrapperBlock-B0_vSfSD.js} +1 -1
  38. package/dist/{blockTypeIcons-Sg8SY1NQ.js → blockTypeIcons-CEk_GHmU.js} +2 -2
  39. package/dist/bundle-stats.json +6 -6
  40. package/dist/{ca-BTf1Zbqb.js → ca-CYQH3J0b.js} +6 -2
  41. package/dist/{ca--zGWn9AU.js → ca-DSwai-th.js} +1 -4
  42. package/dist/cdn/chunks/{AiChatSidebar-DiG-EQ-E.js → AiChatSidebar-oFwacME4.js} +2 -2
  43. package/dist/cdn/chunks/{AiChatSidebar-DiG-EQ-E.js.map → AiChatSidebar-oFwacME4.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-4TgzmLb3.js → AiFeatureMenu-BiHFJf9i.js} +3 -3
  45. package/dist/cdn/chunks/{AiFeatureMenu-4TgzmLb3.js.map → AiFeatureMenu-BiHFJf9i.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-ChQ0mPf5.js → BlockIssueBadge-CWlcDBFm.js} +2 -2
  47. package/dist/cdn/chunks/{BlockIssueBadge-ChQ0mPf5.js.map → BlockIssueBadge-CWlcDBFm.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-BpvK3Sh9.js → BlockPreviewCanvas-CIwIA3zq.js} +3 -3
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-BpvK3Sh9.js.map → BlockPreviewCanvas-CIwIA3zq.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudHeaderExtras-DqgOaWym.js → CloudHeaderExtras-BgsjwWUQ.js} +3 -3
  51. package/dist/cdn/chunks/{CloudHeaderExtras-DqgOaWym.js.map → CloudHeaderExtras-BgsjwWUQ.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-INOiwkET.js → CloudPanels-DFCwq8_J.js} +4 -4
  53. package/dist/cdn/chunks/{CloudPanels-INOiwkET.js.map → CloudPanels-DFCwq8_J.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CQ9EpYKQ.js → CollaboratorBar-CiMZfMwN.js} +3 -3
  55. package/dist/cdn/chunks/{CollaboratorBar-CQ9EpYKQ.js.map → CollaboratorBar-CiMZfMwN.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-CjhxGMjL.js → CommentsPanel-CL4grbMp.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-CjhxGMjL.js.map → CommentsPanel-CL4grbMp.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-D9bqMnlt.js → CommentsSidebar-tWYYKv1s.js} +2 -2
  59. package/dist/cdn/chunks/{CommentsSidebar-D9bqMnlt.js.map → CommentsSidebar-tWYYKv1s.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownToolbar-CIRx5w1U.js → CountdownToolbar-DfyqIppF.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownToolbar-CIRx5w1U.js.map → CountdownToolbar-DfyqIppF.js.map} +1 -1
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-C1-SbE_R.js → DesignReferenceSidebar-C6O12hvt.js} +2 -2
  63. package/dist/cdn/chunks/{DesignReferenceSidebar-C1-SbE_R.js.map → DesignReferenceSidebar-C6O12hvt.js.map} +1 -1
  64. package/dist/cdn/chunks/{IssuesPanel-qKY6UDd-.js → IssuesPanel-DYJXIwnw.js} +2 -2
  65. package/dist/cdn/chunks/{IssuesPanel-qKY6UDd-.js.map → IssuesPanel-DYJXIwnw.js.map} +1 -1
  66. package/dist/cdn/chunks/{LogicTagInsertButton-CItDS_U1.js → LogicTagInsertButton-FNMVxm_V.js} +2 -2
  67. package/dist/cdn/chunks/{LogicTagInsertButton-CItDS_U1.js.map → LogicTagInsertButton-FNMVxm_V.js.map} +1 -1
  68. package/dist/cdn/chunks/{MediaEditModal-CzUtXkpk.js → MediaEditModal-C9yZ0AJv.js} +272 -232
  69. package/dist/cdn/chunks/MediaEditModal-C9yZ0AJv.js.map +1 -0
  70. package/dist/cdn/chunks/{MediaPanels-DOLsh7WC.js → MediaPanels-DiKU1r9P.js} +2 -2
  71. package/dist/cdn/chunks/{MediaPanels-DOLsh7WC.js.map → MediaPanels-DiKU1r9P.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagInput-B33u3nxj.js → MergeTagInput-CSC64xNL.js} +2 -2
  73. package/dist/cdn/chunks/{MergeTagInput-B33u3nxj.js.map → MergeTagInput-CSC64xNL.js.map} +1 -1
  74. package/dist/cdn/chunks/{MergeTagModeToggle-Bz1CH3NT.js → MergeTagModeToggle-027RMXDP.js} +2 -2
  75. package/dist/cdn/chunks/{MergeTagModeToggle-Bz1CH3NT.js.map → MergeTagModeToggle-027RMXDP.js.map} +1 -1
  76. package/dist/cdn/chunks/{ParagraphEditor-B6A4yQ0A.js → ParagraphEditor-0Z26-N5u.js} +19 -19
  77. package/dist/cdn/chunks/{ParagraphEditor-B6A4yQ0A.js.map → ParagraphEditor-0Z26-N5u.js.map} +1 -1
  78. package/dist/cdn/chunks/{RestoreVersionDialog-B9rujl9w.js → RestoreVersionDialog-Dd1v1KLK.js} +3 -3
  79. package/dist/cdn/chunks/{RestoreVersionDialog-B9rujl9w.js.map → RestoreVersionDialog-Dd1v1KLK.js.map} +1 -1
  80. package/dist/cdn/chunks/{RichTextEditorContent-dOg1xFqv.js → RichTextEditorContent-BOZ_5I76.js} +4 -4
  81. package/dist/cdn/chunks/{RichTextEditorContent-dOg1xFqv.js.map → RichTextEditorContent-BOZ_5I76.js.map} +1 -1
  82. package/dist/cdn/chunks/{SaveBlockDialog-BNAeb6--.js → SaveBlockDialog-B6WQwNJD.js} +6 -6
  83. package/dist/cdn/chunks/{SaveBlockDialog-BNAeb6--.js.map → SaveBlockDialog-B6WQwNJD.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksBrowserModal--FoVqEnT.js → SavedBlocksBrowserModal-C015fVMV.js} +6 -6
  85. package/dist/cdn/chunks/{SavedBlocksBrowserModal--FoVqEnT.js.map → SavedBlocksBrowserModal-C015fVMV.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPanels-qKyPnVgk.js → SavedBlocksPanels-DZmfXW4x.js} +2 -2
  87. package/dist/cdn/chunks/{SavedBlocksPanels-qKyPnVgk.js.map → SavedBlocksPanels-DZmfXW4x.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksPickBar-BvLwca4B.js → SavedBlocksPickBar-DtCQFCCW.js} +3 -3
  89. package/dist/cdn/chunks/{SavedBlocksPickBar-BvLwca4B.js.map → SavedBlocksPickBar-DtCQFCCW.js.map} +1 -1
  90. package/dist/cdn/chunks/{TemplateScoringPanel-ebsrVge3.js → TemplateScoringPanel-CeCVyNV1.js} +2 -2
  91. package/dist/cdn/chunks/{TemplateScoringPanel-ebsrVge3.js.map → TemplateScoringPanel-CeCVyNV1.js.map} +1 -1
  92. package/dist/cdn/chunks/{TemplateSettings-BaEVdUTM.js → TemplateSettings-CuXwthI6.js} +4 -4
  93. package/dist/cdn/chunks/{TemplateSettings-BaEVdUTM.js.map → TemplateSettings-CuXwthI6.js.map} +1 -1
  94. package/dist/cdn/chunks/{TestEmailModal-DpYirvEL.js → TestEmailModal-DV1XKWRh.js} +6 -6
  95. package/dist/cdn/chunks/{TestEmailModal-DpYirvEL.js.map → TestEmailModal-DV1XKWRh.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailPanel-PAT70a2g.js → TestEmailPanel-CnVW00RI.js} +2 -2
  97. package/dist/cdn/chunks/{TestEmailPanel-PAT70a2g.js.map → TestEmailPanel-CnVW00RI.js.map} +1 -1
  98. package/dist/cdn/chunks/{TitleEditor-Dc7YB6Uy.js → TitleEditor-B9sKbRd4.js} +8 -8
  99. package/dist/cdn/chunks/{TitleEditor-Dc7YB6Uy.js.map → TitleEditor-B9sKbRd4.js.map} +1 -1
  100. package/dist/cdn/chunks/{ToggleSwitch-D-8dCEbI.js → ToggleSwitch-eHkFBx4o.js} +2 -2
  101. package/dist/cdn/chunks/{ToggleSwitch-D-8dCEbI.js.map → ToggleSwitch-eHkFBx4o.js.map} +1 -1
  102. package/dist/cdn/chunks/{Toolbar-BDzhrmGV.js → Toolbar-DeKbYejp.js} +15 -15
  103. package/dist/cdn/chunks/{Toolbar-BDzhrmGV.js.map → Toolbar-DeKbYejp.js.map} +1 -1
  104. package/dist/cdn/chunks/{TplModal-BbHRUc1Y.js → TplModal-Dqq-Ermd.js} +2 -2
  105. package/dist/cdn/chunks/{TplModal-BbHRUc1Y.js.map → TplModal-Dqq-Ermd.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryMenu-C_bBKOYU.js → VersionHistoryMenu-Kf4QFm7m.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryMenu-C_bBKOYU.js.map → VersionHistoryMenu-Kf4QFm7m.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryPanels-BoJsPIKa.js → VersionHistoryPanels-Cz8rde-s.js} +2 -2
  109. package/dist/cdn/chunks/{VersionHistoryPanels-BoJsPIKa.js.map → VersionHistoryPanels-Cz8rde-s.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionPreviewBanner-CKyrcgxJ.js → VersionPreviewBanner-DNYHqbj9.js} +2 -2
  111. package/dist/cdn/chunks/{VersionPreviewBanner-CKyrcgxJ.js.map → VersionPreviewBanner-DNYHqbj9.js.map} +1 -1
  112. package/dist/cdn/chunks/{WrapperBlock-CGg6rBnx.js → WrapperBlock-DIZHUwFn.js} +2 -2
  113. package/dist/cdn/chunks/{WrapperBlock-CGg6rBnx.js.map → WrapperBlock-DIZHUwFn.js.map} +1 -1
  114. package/dist/cdn/chunks/{blockTypeIcons-CdfCfqHE.js → blockTypeIcons-hgzxMFWX.js} +2 -2
  115. package/dist/cdn/chunks/{blockTypeIcons-CdfCfqHE.js.map → blockTypeIcons-hgzxMFWX.js.map} +1 -1
  116. package/dist/cdn/chunks/{ca-BTf1Zbqb.js → ca-CYQH3J0b.js} +7 -3
  117. package/dist/cdn/chunks/ca-CYQH3J0b.js.map +1 -0
  118. package/dist/cdn/chunks/{ca--zGWn9AU.js → ca-DSwai-th.js} +2 -5
  119. package/dist/cdn/chunks/ca-DSwai-th.js.map +1 -0
  120. package/dist/cdn/chunks/{de-BRNLKcDl.js → de-DOhKuphf.js} +2 -5
  121. package/dist/cdn/chunks/de-DOhKuphf.js.map +1 -0
  122. package/dist/cdn/chunks/{de-xzrh9PA3.js → de-JvCTMJPy.js} +7 -3
  123. package/dist/cdn/chunks/de-JvCTMJPy.js.map +1 -0
  124. package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -1
  125. package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -1
  126. package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -1
  127. package/dist/cdn/chunks/{editor-modal-CZQArGNj.js → editor-modal-cKeJ4wC2.js} +472 -428
  128. package/dist/cdn/chunks/editor-modal-cKeJ4wC2.js.map +1 -0
  129. package/dist/cdn/chunks/{en-JJjqHMjy.js → en-BE28ZcUF.js} +2 -5
  130. package/dist/cdn/chunks/en-BE28ZcUF.js.map +1 -0
  131. package/dist/cdn/chunks/en-CoNe1psX.js +2 -0
  132. package/dist/cdn/chunks/{es-BT4LSpE2.js → es-CAv-Vldw.js} +7 -3
  133. package/dist/cdn/chunks/es-CAv-Vldw.js.map +1 -0
  134. package/dist/cdn/chunks/{es-BIh8BxV9.js → es-oQI-dfx2.js} +2 -5
  135. package/dist/cdn/chunks/es-oQI-dfx2.js.map +1 -0
  136. package/dist/cdn/chunks/{extensions-Dy251lPd.js → extensions-rPP7qRRm.js} +3 -3
  137. package/dist/cdn/chunks/{extensions-Dy251lPd.js.map → extensions-rPP7qRRm.js.map} +1 -1
  138. package/dist/{fr-CI7OJoql.js → cdn/chunks/fr-DVPtxpR6.js} +8 -2
  139. package/dist/cdn/chunks/fr-DVPtxpR6.js.map +1 -0
  140. package/dist/cdn/chunks/{fr-C5VUZogP.js → fr-rzLdCMSG.js} +2 -5
  141. package/dist/cdn/chunks/fr-rzLdCMSG.js.map +1 -0
  142. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -1
  143. package/dist/cdn/chunks/{icons-CQnjugjy.js → icons-BF0mJX0V.js} +18 -18
  144. package/dist/cdn/chunks/{icons-CQnjugjy.js.map → icons-BF0mJX0V.js.map} +1 -1
  145. package/dist/{ja-DhlWUfke.js → cdn/chunks/ja-dcWzjStz.js} +8 -2
  146. package/dist/cdn/chunks/ja-dcWzjStz.js.map +1 -0
  147. package/dist/{ja-x5JYxaCW.js → cdn/chunks/ja-dyFc6Ghz.js} +3 -4
  148. package/dist/cdn/chunks/ja-dyFc6Ghz.js.map +1 -0
  149. package/dist/cdn/chunks/{liquid.browser-BypTT2oc.js → liquid.browser-DXPjcePu.js} +758 -719
  150. package/dist/cdn/chunks/liquid.browser-DXPjcePu.js.map +1 -0
  151. package/dist/cdn/chunks/{nl-UXxFyXV6.js → nl-BcQhRqKR.js} +2 -5
  152. package/dist/cdn/chunks/nl-BcQhRqKR.js.map +1 -0
  153. package/dist/{nl-D8y5OWGB.js → cdn/chunks/nl-LZNqQgE4.js} +8 -2
  154. package/dist/cdn/chunks/nl-LZNqQgE4.js.map +1 -0
  155. package/dist/cdn/chunks/{pt-BR-DMCbUBvJ.js → pt-BR-D6P_mNwA.js} +7 -3
  156. package/dist/cdn/chunks/pt-BR-D6P_mNwA.js.map +1 -0
  157. package/dist/cdn/chunks/{pt-BR-DHm3SP6W.js → pt-BR-UombhTMO.js} +2 -5
  158. package/dist/cdn/chunks/pt-BR-UombhTMO.js.map +1 -0
  159. package/dist/cdn/chunks/pusher-BbIHJKf3.js.map +1 -1
  160. package/dist/cdn/chunks/{src-BwsQ27UT.js → src-V9_ODH_1.js} +3 -3
  161. package/dist/cdn/chunks/{src-BwsQ27UT.js.map → src-V9_ODH_1.js.map} +1 -1
  162. package/dist/cdn/chunks/{tiptap-D1u8JIUW.js → tiptap-02G9FGkl.js} +3726 -3552
  163. package/dist/cdn/chunks/tiptap-02G9FGkl.js.map +1 -0
  164. package/dist/cdn/chunks/{useEditorCore-DoX2RgTl.js → useEditorCore-DWvAia8X.js} +14 -14
  165. package/dist/cdn/chunks/{useEditorCore-DoX2RgTl.js.map → useEditorCore-DWvAia8X.js.map} +1 -1
  166. package/dist/cdn/editor.css +1 -1
  167. package/dist/cdn/editor.js +337 -359
  168. package/dist/cdn/editor.js.map +1 -1
  169. package/dist/{check-BMx_TLAS.js → check-DEjsanPt.js} +1 -1
  170. package/dist/{chevron-down-KZf5mh9_.js → chevron-down-Cv11TeKQ.js} +1 -1
  171. package/dist/{chevron-right-BLZ60Vxw.js → chevron-right-R8dOpzBZ.js} +1 -1
  172. package/dist/{chevron-up-B9ynB8eU.js → chevron-up-DsDEytX1.js} +1 -1
  173. package/dist/{circle-alert-pjvFFDrF.js → circle-alert-B_NqWETg.js} +1 -1
  174. package/dist/{clock-CiiTBfF3.js → clock-CDGKPx_X.js} +1 -1
  175. package/dist/{copy-BF0_pQjH.js → copy-Dv2VltLv.js} +1 -1
  176. package/dist/{createLucideIcon-C2YOVVWx.js → createLucideIcon-MrFrvtkF.js} +5 -5
  177. package/dist/{de-BRNLKcDl.js → de-DOhKuphf.js} +1 -4
  178. package/dist/{de-xzrh9PA3.js → de-JvCTMJPy.js} +6 -2
  179. package/dist/{dist-CxmLZQso.js → dist-8By0p8ah.js} +5 -5
  180. package/dist/{dist-W_ERo6c_.js → dist-BYg1EL5g.js} +5 -5
  181. package/dist/{dist-C2Ge44fD.js → dist-BgSLW3Hn.js} +1704 -1303
  182. package/dist/{dist-B0dkvy7z.js → dist-CWc7nIkA.js} +5 -5
  183. package/dist/{dist-CIxmOOSG.js → dist-Ceew_u40.js} +448 -699
  184. package/dist/{dist-BwoEME8p.js → dist-CmwBvyW0.js} +172 -171
  185. package/dist/{dist-CJ7RZARo.js → dist-Czzst9ng.js} +302 -279
  186. package/dist/dist-D2m55Lvs.js +5 -0
  187. package/dist/{dist-p-LkiWIQ.js → dist-D4HP93ZF.js} +13 -13
  188. package/dist/{dist-BPWuzECC.js → dist-DdSWMtEP.js} +6 -6
  189. package/dist/{dist-DRmafAUz.js → dist-DmQckB4p.js} +29 -29
  190. package/dist/dist-Dw2_11LA.js +5 -0
  191. package/dist/{editor-modal-99FB40dl.js → editor-modal-DmgxKgII.js} +484 -440
  192. package/dist/{en-JJjqHMjy.js → en-BE28ZcUF.js} +1 -4
  193. package/dist/en-DXYNty6E.js +2 -0
  194. package/dist/{es-BT4LSpE2.js → es-CAv-Vldw.js} +6 -2
  195. package/dist/{es-BIh8BxV9.js → es-oQI-dfx2.js} +1 -4
  196. package/dist/{extensions-DqQXxrvP.js → extensions-CkwL1oWn.js} +61 -61
  197. package/dist/{eye-RdXYgrQZ.js → eye-BVxcDaZZ.js} +1 -1
  198. package/dist/{cdn/chunks/fr-CI7OJoql.js → fr-DVPtxpR6.js} +6 -4
  199. package/dist/{fr-C5VUZogP.js → fr-rzLdCMSG.js} +1 -4
  200. package/dist/{image-up-BwdoReQt.js → image-up-CnC4n-8q.js} +1 -1
  201. package/dist/index.d.ts +7 -1
  202. package/dist/{info-zFMSGrL1.js → info-q7gVjMBC.js} +1 -1
  203. package/dist/{cdn/chunks/ja-DhlWUfke.js → ja-dcWzjStz.js} +6 -4
  204. package/dist/{cdn/chunks/ja-x5JYxaCW.js → ja-dyFc6Ghz.js} +1 -6
  205. package/dist/{link-D7orqFBT.js → link-B1-UqOP6.js} +1 -1
  206. package/dist/{liquid.browser-wPG0n4Cs.js → liquid.browser-Cs4gOjeX.js} +757 -718
  207. package/dist/{list-BGt4Pgxc.js → list-BvlNrd6M.js} +1 -1
  208. package/dist/{loader-circle-BVBgkRGz.js → loader-circle-CJ8klGfl.js} +1 -1
  209. package/dist/{message-circle-D8YLsarv.js → message-circle-Bgepipq_.js} +1 -1
  210. package/dist/{nl-UXxFyXV6.js → nl-BcQhRqKR.js} +1 -4
  211. package/dist/{cdn/chunks/nl-D8y5OWGB.js → nl-LZNqQgE4.js} +6 -4
  212. package/dist/{package-CuFvk0L5.js → package-BYIdon2Q.js} +1 -1
  213. package/dist/{pencil-DRYbmZW7.js → pencil-Bhs9MNTT.js} +1 -1
  214. package/dist/{plus-Dv0b3kh0.js → plus-C0eGj8vT.js} +1 -1
  215. package/dist/{pt-BR-DMCbUBvJ.js → pt-BR-D6P_mNwA.js} +6 -2
  216. package/dist/{pt-BR-DHm3SP6W.js → pt-BR-UombhTMO.js} +1 -4
  217. package/dist/{refresh-cw-gYTIS5bJ.js → refresh-cw-BQTOIZKD.js} +1 -1
  218. package/dist/{search-D84_Ki_a.js → search-CeT7yRBa.js} +1 -1
  219. package/dist/{send-Cn-8_H_U.js → send-D7ck2xEq.js} +1 -1
  220. package/dist/{shield-check-BOoVWJtD.js → shield-check-CF_VbIbH.js} +1 -1
  221. package/dist/{smartphone-4Ej3PBw5.js → smartphone-CkVOj7Qn.js} +1 -1
  222. package/dist/{socialIcons-CzRJskEk.js → socialIcons-QYtdurnO.js} +1 -1
  223. package/dist/{sparkles-D3vnNe7O.js → sparkles-Cfb-Kkgv.js} +1 -1
  224. package/dist/style.css +1 -1
  225. package/dist/templatical-editor.js +475 -497
  226. package/dist/{text-align-start-Ci2h_Xly.js → text-align-start-CkFs2Zig.js} +13 -13
  227. package/dist/{trash-wmi4UKvv.js → trash-C2LPw5pa.js} +1 -1
  228. package/dist/{triangle-alert-DJ0r2wmQ.js → triangle-alert-gaUz4rum.js} +1 -1
  229. package/dist/{upload-XMde-TXf.js → upload-C_DYZD_p.js} +1 -1
  230. package/dist/{useEditorCore-CAhRAya8.js → useEditorCore-Cmv5ll-D.js} +20 -20
  231. package/dist/{useScrollToBlock-B4F7KCrf.js → useScrollToBlock-BsPYYJ8h.js} +1 -1
  232. package/dist/{x-BWrtpVl-.js → x-JhKma5YO.js} +1 -1
  233. package/package.json +25 -25
  234. package/dist/cdn/chunks/MediaEditModal-CzUtXkpk.js.map +0 -1
  235. package/dist/cdn/chunks/ca--zGWn9AU.js.map +0 -1
  236. package/dist/cdn/chunks/ca-BTf1Zbqb.js.map +0 -1
  237. package/dist/cdn/chunks/de-BRNLKcDl.js.map +0 -1
  238. package/dist/cdn/chunks/de-xzrh9PA3.js.map +0 -1
  239. package/dist/cdn/chunks/editor-modal-CZQArGNj.js.map +0 -1
  240. package/dist/cdn/chunks/en-9unxBjV8.js +0 -2
  241. package/dist/cdn/chunks/en-JJjqHMjy.js.map +0 -1
  242. package/dist/cdn/chunks/es-BIh8BxV9.js.map +0 -1
  243. package/dist/cdn/chunks/es-BT4LSpE2.js.map +0 -1
  244. package/dist/cdn/chunks/fr-C5VUZogP.js.map +0 -1
  245. package/dist/cdn/chunks/fr-CI7OJoql.js.map +0 -1
  246. package/dist/cdn/chunks/ja-DhlWUfke.js.map +0 -1
  247. package/dist/cdn/chunks/ja-x5JYxaCW.js.map +0 -1
  248. package/dist/cdn/chunks/liquid.browser-BypTT2oc.js.map +0 -1
  249. package/dist/cdn/chunks/nl-D8y5OWGB.js.map +0 -1
  250. package/dist/cdn/chunks/nl-UXxFyXV6.js.map +0 -1
  251. package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +0 -1
  252. package/dist/cdn/chunks/pt-BR-DMCbUBvJ.js.map +0 -1
  253. package/dist/cdn/chunks/tiptap-D1u8JIUW.js.map +0 -1
  254. package/dist/dist-BUHovM4k.js +0 -5
  255. package/dist/dist-DdOAotfz.js +0 -5
  256. package/dist/en-BvOjRLiw.js +0 -2
@@ -1,16 +1,16 @@
1
- import { A as e, At as t, B as n, F as r, M as i, N as a, P as o, R as s, S as c, T as l, V as u, Z as d, at as f, c as p, d as m, g as h, h as g, i as _, jt as v, kt as y, l as b, r as ee, s as te, u as x, v as S } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import { a as ne, c as re, o as ie, t as ae } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
- import { t as oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
- import { a as se, n as ce, o as le, r as ue, t as de } from "./editor-modal-99FB40dl.js";
1
+ import { A as e, At as t, B as n, F as r, M as i, N as a, P as o, R as s, S as c, T as l, V as u, Z as d, at as f, c as p, d as m, g as h, h as g, i as _, jt as v, kt as ee, l as y, r as te, s as ne, u as b, v as x } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
+ import { a as re, c as ie, o as ae, t as oe } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
+ import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
+ import { a as ce, n as le, o as ue, r as de, t as fe } from "./editor-modal-DmgxKgII.js";
5
5
  //#region ../media-library/src/composables/useImageCrop.ts
6
- var fe = {
6
+ var pe = {
7
7
  free: void 0,
8
8
  square: 1,
9
9
  landscape43: 4 / 3,
10
10
  landscape169: 16 / 9,
11
11
  original: void 0
12
12
  };
13
- function pe(e) {
13
+ function me(e) {
14
14
  return e === "image/png" || e === "image/gif" ? {
15
15
  mimeType: "image/png",
16
16
  quality: 1
@@ -22,7 +22,7 @@ function pe(e) {
22
22
  quality: .92
23
23
  };
24
24
  }
25
- function me(e, t, n) {
25
+ function he(e, t, n) {
26
26
  let r = e.width, i = e.height;
27
27
  if (!t && !n) return e;
28
28
  let a = r, o = i;
@@ -36,7 +36,7 @@ function me(e, t, n) {
36
36
  let c = s.getContext("2d");
37
37
  return c && (c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(e, 0, 0, a, o)), s;
38
38
  }
39
- function he(e, t, n) {
39
+ function ge(e, t, n) {
40
40
  return new Promise((r, i) => {
41
41
  e.toBlob((e) => {
42
42
  if (!e) {
@@ -48,7 +48,7 @@ function he(e, t, n) {
48
48
  }, n.mimeType, n.quality);
49
49
  });
50
50
  }
51
- function ge(e, t, n, r) {
51
+ function _e(e, t, n, r) {
52
52
  let i = e, a = t;
53
53
  if (n && i > n) {
54
54
  let e = n / i;
@@ -65,7 +65,7 @@ function ge(e, t, n, r) {
65
65
  }
66
66
  //#endregion
67
67
  //#region ../../node_modules/.pnpm/vue-advanced-cropper@2.8.9_vue@3.5.43_typescript@6.0.3_/node_modules/vue-advanced-cropper/dist/index.esm-bundler.js
68
- function _e(e, t) {
68
+ function ve(e, t) {
69
69
  var n = Object.keys(e);
70
70
  if (Object.getOwnPropertySymbols) {
71
71
  var r = Object.getOwnPropertySymbols(e);
@@ -75,18 +75,18 @@ function _e(e, t) {
75
75
  }
76
76
  return n;
77
77
  }
78
- function C(e) {
78
+ function S(e) {
79
79
  for (var t = 1; t < arguments.length; t++) {
80
80
  var n = arguments[t] == null ? {} : arguments[t];
81
- t % 2 ? _e(Object(n), !0).forEach((function(t) {
82
- w(e, t, n[t]);
83
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _e(Object(n)).forEach((function(t) {
81
+ t % 2 ? ve(Object(n), !0).forEach((function(t) {
82
+ C(e, t, n[t]);
83
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ve(Object(n)).forEach((function(t) {
84
84
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
85
85
  }));
86
86
  }
87
87
  return e;
88
88
  }
89
- function w(e, t, n) {
89
+ function C(e, t, n) {
90
90
  return t in e ? Object.defineProperty(e, t, {
91
91
  value: n,
92
92
  enumerable: !0,
@@ -94,7 +94,7 @@ function w(e, t, n) {
94
94
  writable: !0
95
95
  }) : e[t] = n, e;
96
96
  }
97
- function ve(e, t) {
97
+ function ye(e, t) {
98
98
  if (e == null) return {};
99
99
  var n, r, i = function(e, t) {
100
100
  if (e == null) return {};
@@ -108,28 +108,28 @@ function ve(e, t) {
108
108
  }
109
109
  return i;
110
110
  }
111
- function T(e) {
111
+ function w(e) {
112
112
  return function(e) {
113
- if (Array.isArray(e)) return E(e);
113
+ if (Array.isArray(e)) return T(e);
114
114
  }(e) || function(e) {
115
115
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
116
116
  }(e) || function(e, t) {
117
117
  if (e) {
118
- if (typeof e == "string") return E(e, t);
118
+ if (typeof e == "string") return T(e, t);
119
119
  var n = Object.prototype.toString.call(e).slice(8, -1);
120
120
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
121
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return E(e, t);
121
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return T(e, t);
122
122
  }
123
123
  }(e) || function() {
124
124
  throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
125
125
  }();
126
126
  }
127
- function E(e, t) {
127
+ function T(e, t) {
128
128
  (t == null || t > e.length) && (t = e.length);
129
129
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
130
130
  return r;
131
131
  }
132
- var ye = function(e) {
132
+ var E = function(e) {
133
133
  (function() {
134
134
  var t = {}.hasOwnProperty;
135
135
  function n() {
@@ -153,15 +153,15 @@ var ye = function(e) {
153
153
  }
154
154
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
155
155
  })();
156
- }, be, D, O = (ye(D = {
157
- path: be,
156
+ }, D, O, k = (E(O = {
157
+ path: D,
158
158
  exports: {},
159
159
  require: function(e, t) {
160
160
  return function() {
161
161
  throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
162
- }(t == null && D.path);
162
+ }(t == null && O.path);
163
163
  }
164
- }, D.exports), D.exports), k = function(e) {
164
+ }, O.exports), O.exports), A = function(e) {
165
165
  return function(t, n) {
166
166
  if (!t) return e;
167
167
  var r;
@@ -173,7 +173,7 @@ var ye = function(e) {
173
173
  }), "") : "");
174
174
  };
175
175
  };
176
- function A(e, t, n) {
176
+ function j(e, t, n) {
177
177
  var r, i, a, o, s;
178
178
  function c() {
179
179
  var l = Date.now() - o;
@@ -191,8 +191,8 @@ function A(e, t, n) {
191
191
  r &&= (s = e.apply(a, i), a = i = null, clearTimeout(r), null);
192
192
  }, l;
193
193
  }
194
- A.debounce = A;
195
- var j = A, M = function() {
194
+ j.debounce = j;
195
+ var be = j, M = function() {
196
196
  return M = Object.assign || function(e) {
197
197
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
198
198
  return e;
@@ -208,24 +208,24 @@ function N(e, t) {
208
208
  function P(e) {
209
209
  return /^blob:/.test(e);
210
210
  }
211
- function xe(e) {
211
+ function F(e) {
212
212
  return P(e) || function(e) {
213
213
  return /^data:/.test(e);
214
214
  }(e);
215
215
  }
216
- function F(e) {
216
+ function I(e) {
217
217
  return !!(e && e.constructor && e.call && e.apply);
218
218
  }
219
- function I(e) {
219
+ function L(e) {
220
220
  return e === void 0;
221
221
  }
222
- function L(e) {
222
+ function xe(e) {
223
223
  return typeof e == "object" && !!e;
224
224
  }
225
225
  function Se(e, t, n) {
226
226
  var r = {};
227
- return L(e) ? (Object.keys(t).forEach((function(i) {
228
- r[i] = I(e[i]) ? t[i] : L(t[i]) ? L(e[i]) ? Se(e[i], t[i], n[i]) : e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? !!e[i] : e[i];
227
+ return xe(e) ? (Object.keys(t).forEach((function(i) {
228
+ r[i] = L(e[i]) ? t[i] : xe(t[i]) ? xe(e[i]) ? Se(e[i], t[i], n[i]) : e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? !!e[i] : e[i];
229
229
  })), r) : e ? t : n;
230
230
  }
231
231
  function R(e) {
@@ -288,7 +288,7 @@ var z = function(e, t) {
288
288
  this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
289
289
  },
290
290
  onTouchStart: function(e) {
291
- e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = T(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
291
+ e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = w(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
292
292
  return {
293
293
  clientX: t.clientX + n.clientX / e.touches.length,
294
294
  clientY: t.clientY + n.clientY / e.touches.length
@@ -334,7 +334,7 @@ var z = function(e, t) {
334
334
  };
335
335
  },
336
336
  processMove: function(e, t) {
337
- var n = T(t);
337
+ var n = w(t);
338
338
  if (this.touches.length) {
339
339
  if (this.touches.length === 1 && n.length === 1) {
340
340
  var r = this.$refs.draggable;
@@ -361,7 +361,7 @@ var z = function(e, t) {
361
361
  ]
362
362
  };
363
363
  ke.render = function(t, n, r, i, o, s) {
364
- return e(), b("div", {
364
+ return e(), y("div", {
365
365
  ref: "draggable",
366
366
  class: r.classname,
367
367
  onTouchstart: n[1] ||= function() {
@@ -378,7 +378,7 @@ ke.render = function(t, n, r, i, o, s) {
378
378
  }
379
379
  }, [a(t.$slots, "default")], 34);
380
380
  };
381
- var Ae = k("vue-handler-wrapper"), je = {
381
+ var Ae = A("vue-handler-wrapper"), je = {
382
382
  name: "HandlerWrapper",
383
383
  components: { DraggableElement: ke },
384
384
  props: {
@@ -393,7 +393,7 @@ var Ae = k("vue-handler-wrapper"), je = {
393
393
  var e;
394
394
  if (this.horizontalPosition || this.verticalPosition) {
395
395
  var t, n = N(this.horizontalPosition, this.verticalPosition);
396
- e = Ae((w(t = {}, n.classname, !0), w(t, "disabled", this.disabled), t));
396
+ e = Ae((C(t = {}, n.classname, !0), C(t, "disabled", this.disabled), t));
397
397
  } else e = Ae({ disabled: this.disabled });
398
398
  return {
399
399
  root: e,
@@ -409,7 +409,7 @@ var Ae = k("vue-handler-wrapper"), je = {
409
409
  };
410
410
  je.render = function(t, r, i, s, c, l) {
411
411
  var u = o("DraggableElement");
412
- return e(), b("div", { class: l.classes.root }, [h(u, {
412
+ return e(), y("div", { class: l.classes.root }, [h(u, {
413
413
  class: l.classes.draggable,
414
414
  onDrag: r[1] ||= function(e) {
415
415
  return t.$emit("drag", e);
@@ -430,7 +430,7 @@ je.render = function(t, r, i, s, c, l) {
430
430
  _: 3
431
431
  }, 8, ["class"])], 2);
432
432
  };
433
- var Me = k("vue-line-wrapper"), Ne = {
433
+ var Me = A("vue-line-wrapper"), Ne = {
434
434
  name: "LineWrapper",
435
435
  components: { DraggableElement: ke },
436
436
  props: {
@@ -445,7 +445,7 @@ var Me = k("vue-line-wrapper"), Ne = {
445
445
  },
446
446
  computed: { classname: function() {
447
447
  var e;
448
- return Me((w(e = {}, this.position, !0), w(e, "disabled", this.disabled), e));
448
+ return Me((C(e = {}, this.position, !0), C(e, "disabled", this.disabled), e));
449
449
  } },
450
450
  emits: [
451
451
  "leave",
@@ -456,7 +456,7 @@ var Me = k("vue-line-wrapper"), Ne = {
456
456
  };
457
457
  Ne.render = function(t, r, i, s, c, l) {
458
458
  var u = o("DraggableElement");
459
- return e(), b(u, {
459
+ return e(), y(u, {
460
460
  class: l.classname,
461
461
  onDrag: r[1] ||= function(e) {
462
462
  return t.$emit("drag", e);
@@ -726,11 +726,11 @@ function $e(e) {
726
726
  }, l = M({}, t);
727
727
  return (Array.isArray(n) ? n : [n]).forEach((function(e) {
728
728
  var t = {};
729
- I((t = typeof e == "function" ? e({
729
+ L((t = typeof e == "function" ? e({
730
730
  coordinates: l,
731
731
  imageSize: r,
732
732
  visibleArea: s
733
- }) : e).width) && I(t.height) || (l = function(e, t) {
733
+ }) : e).width) && L(t.height) || (l = function(e, t) {
734
734
  return c(M(M(M({}, e), Q({
735
735
  width: t.width,
736
736
  height: t.height,
@@ -743,7 +743,7 @@ function $e(e) {
743
743
  left: e.left,
744
744
  top: e.top
745
745
  });
746
- }(l, M(M({}, l), t))), I(t.left) && I(t.top) || (l = c(l, M(M({}, l), t)));
746
+ }(l, M(M({}, l), t))), L(t.left) && L(t.top) || (l = c(l, M(M({}, l), t)));
747
747
  })), l;
748
748
  }
749
749
  function et(e) {
@@ -900,11 +900,11 @@ function ct(e) {
900
900
  })) }
901
901
  };
902
902
  c.factor && m && (c.factor < 1 ? (p = Math.max(c.factor, h.stencil.minimum)) > 1 && (p = 1) : c.factor > 1 && (p = Math.min(c.factor, Math.min(h.area.maximum, h.stencil.maximum))) < 1 && (p = 1)), p && (u = K(u, p, c.center));
903
- var g = n.left - r.left, _ = r.width + r.left - (n.width + n.left), v = n.top - r.top, y = r.height + r.top - (n.height + n.top);
903
+ var g = n.left - r.left, _ = r.width + r.left - (n.width + n.left), v = n.top - r.top, ee = r.height + r.top - (n.height + n.top);
904
904
  return u = Z(u = G(u, Y(u, {
905
905
  left: o.left === void 0 ? void 0 : o.left - g * p,
906
906
  top: o.top === void 0 ? void 0 : o.top - v * p,
907
- bottom: o.bottom === void 0 ? void 0 : o.bottom + y * p,
907
+ bottom: o.bottom === void 0 ? void 0 : o.bottom + ee * p,
908
908
  right: o.right === void 0 ? void 0 : o.right + _ * p
909
909
  })), a({
910
910
  visibleArea: u,
@@ -1004,7 +1004,7 @@ function dt(e) {
1004
1004
  function ft(e, t, n) {
1005
1005
  return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
1006
1006
  }
1007
- var pt = k("vue-simple-handler"), mt = k("vue-simple-handler-wrapper"), ht = {
1007
+ var pt = A("vue-simple-handler"), mt = A("vue-simple-handler-wrapper"), ht = {
1008
1008
  name: "SimpleHandler",
1009
1009
  components: { HandlerWrapper: je },
1010
1010
  props: {
@@ -1022,10 +1022,10 @@ var pt = k("vue-simple-handler"), mt = k("vue-simple-handler-wrapper"), ht = {
1022
1022
  return { hover: !1 };
1023
1023
  },
1024
1024
  computed: { classes: function() {
1025
- var e, t = (w(e = {}, this.horizontalPosition, !!this.horizontalPosition), w(e, this.verticalPosition, !!this.verticalPosition), w(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), w(e, "hover", this.hover), e);
1025
+ var e, t = (C(e = {}, this.horizontalPosition, !!this.horizontalPosition), C(e, this.verticalPosition, !!this.verticalPosition), C(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), C(e, "hover", this.hover), e);
1026
1026
  return {
1027
- default: O(pt(t), this.defaultClass, this.hover && this.hoverClass),
1028
- wrapper: O(mt(t), this.wrapperClass)
1027
+ default: k(pt(t), this.defaultClass, this.hover && this.hoverClass),
1028
+ wrapper: k(mt(t), this.wrapperClass)
1029
1029
  };
1030
1030
  } },
1031
1031
  methods: {
@@ -1046,7 +1046,7 @@ var pt = k("vue-simple-handler"), mt = k("vue-simple-handler-wrapper"), ht = {
1046
1046
  };
1047
1047
  ht.render = function(t, r, i, a, s, c) {
1048
1048
  var l = o("HandlerWrapper");
1049
- return e(), b(l, {
1049
+ return e(), y(l, {
1050
1050
  class: c.classes.wrapper,
1051
1051
  "vertical-position": i.verticalPosition,
1052
1052
  "horizontal-position": i.horizontalPosition,
@@ -1071,7 +1071,7 @@ ht.render = function(t, r, i, a, s, c) {
1071
1071
  "onLeave"
1072
1072
  ]);
1073
1073
  };
1074
- var gt = k("vue-simple-line"), _t = k("vue-simple-line-wrapper"), vt = {
1074
+ var gt = A("vue-simple-line"), _t = A("vue-simple-line-wrapper"), vt = {
1075
1075
  name: "SimpleLine",
1076
1076
  components: { LineWrapper: Ne },
1077
1077
  props: {
@@ -1089,8 +1089,8 @@ var gt = k("vue-simple-line"), _t = k("vue-simple-line-wrapper"), vt = {
1089
1089
  },
1090
1090
  computed: { classes: function() {
1091
1091
  return {
1092
- root: O(gt(w({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1093
- wrapper: O(_t(w({}, this.position, !0)), this.wrapperClass)
1092
+ root: k(gt(C({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1093
+ wrapper: k(_t(C({}, this.position, !0)), this.wrapperClass)
1094
1094
  };
1095
1095
  } },
1096
1096
  methods: {
@@ -1111,7 +1111,7 @@ var gt = k("vue-simple-line"), _t = k("vue-simple-line-wrapper"), vt = {
1111
1111
  };
1112
1112
  vt.render = function(t, r, i, a, s, c) {
1113
1113
  var l = o("LineWrapper");
1114
- return e(), b(l, {
1114
+ return e(), y(l, {
1115
1115
  class: c.classes.wrapper,
1116
1116
  position: i.position,
1117
1117
  disabled: i.disabled,
@@ -1134,7 +1134,7 @@ vt.render = function(t, r, i, a, s, c) {
1134
1134
  "onLeave"
1135
1135
  ]);
1136
1136
  };
1137
- var yt = k("vue-bounding-box"), bt = [
1137
+ var yt = A("vue-bounding-box"), bt = [
1138
1138
  "east",
1139
1139
  "west",
1140
1140
  null
@@ -1252,8 +1252,8 @@ var yt = k("vue-bounding-box"), bt = [
1252
1252
  n.horizontalDirection && n.verticalDirection || !e.lines[n.name] || t.push({
1253
1253
  name: n.name,
1254
1254
  component: e.linesComponent,
1255
- class: O(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1256
- wrapperClass: O(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1255
+ class: k(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1256
+ wrapperClass: k(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1257
1257
  hoverClass: e.classes.lines.hover,
1258
1258
  verticalDirection: n.verticalDirection,
1259
1259
  horizontalDirection: n.horizontalDirection,
@@ -1268,8 +1268,8 @@ var yt = k("vue-bounding-box"), bt = [
1268
1268
  var a = {
1269
1269
  name: i.name,
1270
1270
  component: e.handlersComponent,
1271
- class: O(e.classes.handlers.default, e.classes.handlers[i.name]),
1272
- wrapperClass: O(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1271
+ class: k(e.classes.handlers.default, e.classes.handlers[i.name]),
1272
+ wrapperClass: k(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1273
1273
  hoverClass: e.classes.handlers.hover,
1274
1274
  verticalDirection: i.verticalDirection,
1275
1275
  horizontalDirection: i.horizontalDirection,
@@ -1278,7 +1278,7 @@ var yt = k("vue-bounding-box"), bt = [
1278
1278
  if (n && r) {
1279
1279
  var o = i.horizontalDirection, s = i.verticalDirection, c = o === "east" ? n : o === "west" ? 0 : n / 2, l = s === "south" ? r : s === "north" ? 0 : r / 2;
1280
1280
  a.wrapperClass = yt("handler"), a.wrapperStyle = { transform: `translate(${c}px, ${l}px)` }, e.transitions && e.transitions.enabled && (a.wrapperStyle.transition = `${e.transitions.time}ms ${e.transitions.timingFunction}`);
1281
- } else a.wrapperClass = yt("handler", w({}, i.classname, !0));
1281
+ } else a.wrapperClass = yt("handler", C({}, i.classname, !0));
1282
1282
  t.push(a);
1283
1283
  }
1284
1284
  })), t;
@@ -1319,14 +1319,14 @@ var yt = k("vue-bounding-box"), bt = [
1319
1319
  emits: ["resize", "resize-end"]
1320
1320
  };
1321
1321
  St.render = function(t, n, o, s, c, l) {
1322
- return e(), b("div", {
1322
+ return e(), y("div", {
1323
1323
  ref: "box",
1324
1324
  class: l.classes.root,
1325
1325
  style: l.style
1326
1326
  }, [
1327
1327
  a(t.$slots, "default"),
1328
- h("div", null, [(e(!0), b(ee, null, i(l.lineNodes, (function(t) {
1329
- return e(), b(r(t.component), {
1328
+ h("div", null, [(e(!0), y(te, null, i(l.lineNodes, (function(t) {
1329
+ return e(), y(r(t.component), {
1330
1330
  key: t.name,
1331
1331
  "default-class": t.class,
1332
1332
  "hover-class": t.hoverClass,
@@ -1348,12 +1348,12 @@ St.render = function(t, n, o, s, c, l) {
1348
1348
  "onDrag"
1349
1349
  ]);
1350
1350
  })), 128))]),
1351
- (e(!0), b(ee, null, i(l.handlerNodes, (function(t) {
1352
- return e(), b("div", {
1351
+ (e(!0), y(te, null, i(l.handlerNodes, (function(t) {
1352
+ return e(), y("div", {
1353
1353
  key: t.name,
1354
1354
  style: t.wrapperStyle,
1355
1355
  class: t.wrapperClass
1356
- }, [(e(), b(r(t.component), {
1356
+ }, [(e(), y(r(t.component), {
1357
1357
  "default-class": t.class,
1358
1358
  "hover-class": t.hoverClass,
1359
1359
  "wrapper-class": t.wrapperClass,
@@ -1378,7 +1378,7 @@ St.render = function(t, n, o, s, c, l) {
1378
1378
  })), 128))
1379
1379
  ], 6);
1380
1380
  };
1381
- var Ct = k("vue-draggable-area"), wt = {
1381
+ var Ct = A("vue-draggable-area"), wt = {
1382
1382
  name: "DraggableArea",
1383
1383
  props: {
1384
1384
  movable: {
@@ -1406,7 +1406,7 @@ var Ct = k("vue-draggable-area"), wt = {
1406
1406
  onTouchStart: function(e) {
1407
1407
  if (e.cancelable) {
1408
1408
  var t = this.movable && e.touches.length === 1;
1409
- t && (this.touches = T(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1409
+ t && (this.touches = w(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1410
1410
  }
1411
1411
  },
1412
1412
  onTouchEnd: function() {
@@ -1452,7 +1452,7 @@ var Ct = k("vue-draggable-area"), wt = {
1452
1452
  };
1453
1453
  },
1454
1454
  processMove: function(e, t) {
1455
- var n = T(t);
1455
+ var n = w(t);
1456
1456
  if (this.touches.length) {
1457
1457
  var r = this.$refs.container.getBoundingClientRect(), i = r.left, a = r.top;
1458
1458
  this.touches.length === 1 && n.length === 1 && this.$emit("move", new De({
@@ -1468,7 +1468,7 @@ var Ct = k("vue-draggable-area"), wt = {
1468
1468
  emits: ["move", "move-end"]
1469
1469
  };
1470
1470
  wt.render = function(t, n, r, i, o, s) {
1471
- return e(), b("div", {
1471
+ return e(), y("div", {
1472
1472
  ref: "container",
1473
1473
  onTouchstart: n[1] ||= function() {
1474
1474
  return s.onTouchStart && s.onTouchStart.apply(s, arguments);
@@ -1607,7 +1607,7 @@ var At = {
1607
1607
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
1608
1608
  },
1609
1609
  created: function() {
1610
- this.transforming = !1, this.debouncedProcessEnd = j(this.processEnd), this.touches = [];
1610
+ this.transforming = !1, this.debouncedProcessEnd = be(this.processEnd), this.touches = [];
1611
1611
  },
1612
1612
  methods: {
1613
1613
  processMove: function(e, t) {
@@ -1641,7 +1641,7 @@ var At = {
1641
1641
  onTouchStart: function(e) {
1642
1642
  if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
1643
1643
  var t = this.$refs.container, n = t.getBoundingClientRect(), r = n.left, i = n.top, a = n.bottom, o = n.right;
1644
- this.touches = T(e.touches).filter((function(e) {
1644
+ this.touches = w(e.touches).filter((function(e) {
1645
1645
  return e.clientX > r && e.clientX < o && e.clientY > i && e.clientY < a;
1646
1646
  })), this.oldGeometricProperties = kt(this.touches, t);
1647
1647
  }
@@ -1652,7 +1652,7 @@ var At = {
1652
1652
  onTouchMove: function(e) {
1653
1653
  var t = this;
1654
1654
  if (this.touches.length) {
1655
- var n = T(e.touches).filter((function(e) {
1655
+ var n = w(e.touches).filter((function(e) {
1656
1656
  return !e.identifier || t.touches.find((function(t) {
1657
1657
  return t.identifier === e.identifier;
1658
1658
  }));
@@ -1700,7 +1700,7 @@ var At = {
1700
1700
  ]
1701
1701
  };
1702
1702
  At.render = function(t, n, r, i, o, s) {
1703
- return e(), b("div", {
1703
+ return e(), y("div", {
1704
1704
  ref: "container",
1705
1705
  onTouchstart: n[1] ||= function() {
1706
1706
  return s.onTouchStart && s.onTouchStart.apply(s, arguments);
@@ -1737,7 +1737,7 @@ var jt = {
1737
1737
  };
1738
1738
  jt.render = function(t, r, i, s, c, l) {
1739
1739
  var u = o("transformable-image");
1740
- return e(), b(u, {
1740
+ return e(), y(u, {
1741
1741
  "touch-move": i.touchMove,
1742
1742
  "touch-resize": i.touchResize,
1743
1743
  "mouse-move": i.mouseMove,
@@ -1760,7 +1760,7 @@ jt.render = function(t, r, i, s, c, l) {
1760
1760
  "wheel-resize"
1761
1761
  ]);
1762
1762
  };
1763
- var Mt = k("vue-preview"), Nt = {
1763
+ var Mt = A("vue-preview"), Nt = {
1764
1764
  props: {
1765
1765
  coordinates: { type: Object },
1766
1766
  transitions: { type: Object },
@@ -1793,7 +1793,7 @@ var Mt = k("vue-preview"), Nt = {
1793
1793
  root: Mt({ fill: this.fill }),
1794
1794
  wrapper: Mt("wrapper"),
1795
1795
  imageWrapper: Mt("image-wrapper"),
1796
- image: O(Mt("image"), this.imageClass)
1796
+ image: k(Mt("image"), this.imageClass)
1797
1797
  };
1798
1798
  },
1799
1799
  style: function() {
@@ -1812,7 +1812,7 @@ var Mt = k("vue-preview"), Nt = {
1812
1812
  },
1813
1813
  imageStyle: function() {
1814
1814
  if (this.coordinates && this.image) {
1815
- var e = this.coordinates.width / this.size.width, t = C(C({
1815
+ var e = this.coordinates.width / this.size.width, t = S(S({
1816
1816
  rotate: 0,
1817
1817
  flip: {
1818
1818
  horizontal: !1,
@@ -1885,7 +1885,7 @@ var Mt = k("vue-preview"), Nt = {
1885
1885
  }
1886
1886
  };
1887
1887
  Nt.render = function(t, n, r, i, a, o) {
1888
- return e(), b("div", {
1888
+ return e(), y("div", {
1889
1889
  ref: "root",
1890
1890
  class: o.classes.root,
1891
1891
  style: o.style
@@ -1898,7 +1898,7 @@ Nt.render = function(t, n, r, i, a, o) {
1898
1898
  src: r.image && r.image.src,
1899
1899
  class: o.classes.image,
1900
1900
  style: o.imageStyle
1901
- }, null, 14, ["src"]), [[ie, r.image && r.image.src]])], 6)], 6);
1901
+ }, null, 14, ["src"]), [[ae, r.image && r.image.src]])], 6)], 6);
1902
1902
  };
1903
1903
  var Pt = {
1904
1904
  components: { Preview: Nt },
@@ -1906,9 +1906,9 @@ var Pt = {
1906
1906
  };
1907
1907
  Pt.render = function(t, n, r, i, a, s) {
1908
1908
  var c = o("preview");
1909
- return e(), b(c, l(t.$attrs, { fill: !0 }), null, 16);
1909
+ return e(), y(c, l(t.$attrs, { fill: !0 }), null, 16);
1910
1910
  };
1911
- var Ft = k("vue-rectangle-stencil"), It = {
1911
+ var Ft = A("vue-rectangle-stencil"), It = {
1912
1912
  name: "RectangleStencil",
1913
1913
  components: {
1914
1914
  StencilPreview: Pt,
@@ -1983,13 +1983,13 @@ var Ft = k("vue-rectangle-stencil"), It = {
1983
1983
  computed: {
1984
1984
  classes: function() {
1985
1985
  return {
1986
- stencil: O(Ft({
1986
+ stencil: k(Ft({
1987
1987
  movable: this.movable,
1988
1988
  moving: this.moving,
1989
1989
  resizing: this.resizing
1990
1990
  }), this.moving && this.movingClass, this.resizing && this.resizingClass),
1991
- preview: O(Ft("preview"), this.previewClass),
1992
- boundingBox: O(Ft("bounding-box"), this.boundingBoxClass)
1991
+ preview: k(Ft("preview"), this.previewClass),
1992
+ boundingBox: k(Ft("bounding-box"), this.boundingBoxClass)
1993
1993
  };
1994
1994
  },
1995
1995
  style: function() {
@@ -2030,7 +2030,7 @@ var Ft = k("vue-rectangle-stencil"), It = {
2030
2030
  };
2031
2031
  It.render = function(t, r, i, a, s, c) {
2032
2032
  var l = o("stencil-preview"), u = o("draggable-area"), d = o("bounding-box");
2033
- return e(), b("div", {
2033
+ return e(), y("div", {
2034
2034
  class: c.classes.stencil,
2035
2035
  style: c.style
2036
2036
  }, [h(d, {
@@ -2099,7 +2099,7 @@ It.render = function(t, r, i, a, s, c) {
2099
2099
  "onResizeEnd"
2100
2100
  ])], 6);
2101
2101
  };
2102
- var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2102
+ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2103
2103
  name: "Cropper",
2104
2104
  components: { BackgroundWrapper: jt },
2105
2105
  props: {
@@ -2228,8 +2228,8 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2228
2228
  } else if (p === "height") {
2229
2229
  var _ = o.width - d * f;
2230
2230
  if (l.left && l.right) {
2231
- var v = c.left, y = c.right;
2232
- c.left = -ft(_, v, y), c.right = -ft(_, y, v);
2231
+ var v = c.left, ee = c.right;
2232
+ c.left = -ft(_, v, ee), c.right = -ft(_, ee, v);
2233
2233
  } else l.left ? c.left = -_ : l.right ? c.right = -_ : l.top ? c.top = 0 : l.bottom && (c.bottom = 0);
2234
2234
  }
2235
2235
  c = dt({
@@ -2372,7 +2372,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2372
2372
  height: 0
2373
2373
  },
2374
2374
  visibleArea: null,
2375
- coordinates: C({}, Re)
2375
+ coordinates: S({}, Re)
2376
2376
  };
2377
2377
  },
2378
2378
  computed: {
@@ -2451,10 +2451,10 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2451
2451
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
2452
2452
  var e = this.sizeRestrictionsAlgorithm({
2453
2453
  imageSize: this.imageSize,
2454
- minWidth: I(this.minWidth) ? 0 : R(this.minWidth),
2455
- minHeight: I(this.minHeight) ? 0 : R(this.minHeight),
2456
- maxWidth: I(this.maxWidth) ? 1 / 0 : R(this.maxWidth),
2457
- maxHeight: I(this.maxHeight) ? 1 / 0 : R(this.maxHeight)
2454
+ minWidth: L(this.minWidth) ? 0 : R(this.minWidth),
2455
+ minHeight: L(this.minHeight) ? 0 : R(this.minHeight),
2456
+ maxWidth: L(this.maxWidth) ? 1 / 0 : R(this.maxWidth),
2457
+ maxHeight: L(this.maxHeight) ? 1 / 0 : R(this.maxHeight)
2458
2458
  });
2459
2459
  if (e = function(e) {
2460
2460
  var t = e.areaRestrictions, n = e.sizeRestrictions;
@@ -2507,14 +2507,14 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2507
2507
  classes: function() {
2508
2508
  return {
2509
2509
  cropper: $(),
2510
- image: O($("image"), this.imageClass),
2510
+ image: k($("image"), this.imageClass),
2511
2511
  stencil: $("stencil"),
2512
- boundaries: O($("boundaries"), this.boundariesClass),
2513
- stretcher: O($("stretcher")),
2514
- background: O($("background"), this.backgroundClass),
2515
- foreground: O($("foreground"), this.foregroundClass),
2516
- imageWrapper: O($("image-wrapper")),
2517
- cropperWrapper: O($("cropper-wrapper"))
2512
+ boundaries: k($("boundaries"), this.boundariesClass),
2513
+ stretcher: k($("stretcher")),
2514
+ background: k($("background"), this.backgroundClass),
2515
+ foreground: k($("foreground"), this.foregroundClass),
2516
+ imageWrapper: k($("image-wrapper")),
2517
+ cropperWrapper: k($("cropper-wrapper"))
2518
2518
  };
2519
2519
  },
2520
2520
  stencilCoordinates: function() {
@@ -2551,7 +2551,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2551
2551
  }, n = {
2552
2552
  left: (1 - 1 / this.coefficient) * e.width / 2,
2553
2553
  top: (1 - 1 / this.coefficient) * e.height / 2
2554
- }, r = C(C({}, this.imageTransforms), {}, {
2554
+ }, r = S(S({}, this.imageTransforms), {}, {
2555
2555
  scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width),
2556
2556
  scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height)
2557
2557
  }), i = {
@@ -2600,7 +2600,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2600
2600
  }
2601
2601
  },
2602
2602
  created: function() {
2603
- this.debouncedUpdate = j(this.update, this.debounce), this.debouncedDisableTransitions = j(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
2603
+ this.debouncedUpdate = be(this.update, this.debounce), this.debouncedDisableTransitions = be(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
2604
2604
  },
2605
2605
  mounted: function() {
2606
2606
  this.$refs.image.addEventListener("load", this.onSuccessLoadImage), this.$refs.image.addEventListener("error", this.onFailLoadImage), this.onChangeImage(), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
@@ -2610,16 +2610,16 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2610
2610
  },
2611
2611
  methods: {
2612
2612
  getResult: function() {
2613
- var e = this.initialized ? this.prepareResult(C({}, this.coordinates)) : this.defaultCoordinates(), t = {
2613
+ var e = this.initialized ? this.prepareResult(S({}, this.coordinates)) : this.defaultCoordinates(), t = {
2614
2614
  rotate: this.imageTransforms.rotate % 360,
2615
- flip: C({}, this.imageTransforms.flip)
2615
+ flip: S({}, this.imageTransforms.flip)
2616
2616
  };
2617
2617
  if (this.src && this.imageLoaded) {
2618
2618
  var n = this;
2619
2619
  return {
2620
2620
  image: this.image,
2621
2621
  coordinates: e,
2622
- visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
2622
+ visibleArea: this.visibleArea ? S({}, this.visibleArea) : null,
2623
2623
  imageTransforms: t,
2624
2624
  get canvas() {
2625
2625
  return n.canvas ? n.getCanvas() : void 0;
@@ -2629,7 +2629,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2629
2629
  return {
2630
2630
  image: this.image,
2631
2631
  coordinates: e,
2632
- visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
2632
+ visibleArea: this.visibleArea ? S({}, this.visibleArea) : null,
2633
2633
  canvas: void 0,
2634
2634
  imageTransforms: t
2635
2635
  };
@@ -2689,7 +2689,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2689
2689
  top: Math.round(t.top)
2690
2690
  };
2691
2691
  return i.width > n.maxWidth ? i.width = Math.floor(t.width) : i.width < n.minWidth && (i.width = Math.ceil(t.width)), i.height > n.maxHeight ? i.height = Math.floor(t.height) : i.height < n.minHeight && (i.height = Math.ceil(t.height)), Z(i, r);
2692
- }(C(C({}, this.getPublicProperties()), {}, {
2692
+ }(S(S({}, this.getPublicProperties()), {}, {
2693
2693
  positionRestrictions: st(this.positionRestrictions, this.visibleArea),
2694
2694
  coordinates: e
2695
2695
  })) : e;
@@ -2711,10 +2711,10 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2711
2711
  sizeRestrictions: this.sizeRestrictions,
2712
2712
  stencilSize: this.getStencilSize()
2713
2713
  });
2714
- return C(C({}, a), {}, { changed: !ze(a.visibleArea, t) || !ze(a.coordinates, n) });
2714
+ return S(S({}, a), {}, { changed: !ze(a.visibleArea, t) || !ze(a.coordinates, n) });
2715
2715
  },
2716
2716
  runAutoZoom: function(e) {
2717
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = ve(t, Lt), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
2717
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = ye(t, Lt), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
2718
2718
  r && c && this.enableTransitions(), this.visibleArea = o, this.coordinates = s, r && c && this.debouncedDisableTransitions();
2719
2719
  },
2720
2720
  normalizeEvent: function(e) {
@@ -2746,7 +2746,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2746
2746
  })), a;
2747
2747
  }
2748
2748
  return t;
2749
- }(C(C({}, this.getPublicProperties()), {}, { event: e }));
2749
+ }(S(S({}, this.getPublicProperties()), {}, { event: e }));
2750
2750
  },
2751
2751
  getCanvas: function() {
2752
2752
  if (this.$refs.canvas) {
@@ -2761,7 +2761,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2761
2761
  top: 0
2762
2762
  }, a)), r);
2763
2763
  return s.translate(-(c.left - o.width / 2), -(c.top - o.height / 2)), s.rotate(r * Math.PI / 180), s.translate(i.horizontal ? a.width : 0, i.vertical ? a.height : 0), s.scale(i.horizontal ? -1 : 1, i.vertical ? -1 : 1), s.drawImage(t, 0, 0, a.width, a.height), s.restore(), e;
2764
- }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = C({
2764
+ }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = S({
2765
2765
  minWidth: 0,
2766
2766
  minHeight: 0,
2767
2767
  maxWidth: 1 / 0,
@@ -2828,7 +2828,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2828
2828
  t ||= this.stencilSize ? at : it;
2829
2829
  var n = this.sizeRestrictions;
2830
2830
  n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
2831
- var r = F(t) ? t({
2831
+ var r = I(t) ? t({
2832
2832
  boundaries: this.boundaries,
2833
2833
  imageSize: this.imageSize,
2834
2834
  aspectRatio: this.getAspectRatio(),
@@ -2837,13 +2837,13 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2837
2837
  visibleArea: this.visibleArea
2838
2838
  }) : t, i = this.defaultPosition || rt, a = [r, function(t) {
2839
2839
  var n = t.coordinates;
2840
- return C({}, F(i) ? i({
2840
+ return S({}, I(i) ? i({
2841
2841
  coordinates: n,
2842
2842
  imageSize: e.imageSize,
2843
2843
  visibleArea: e.visibleArea
2844
2844
  }) : e.defaultPosition);
2845
2845
  }];
2846
- this.delayedTransforms && a.push.apply(a, T(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(a, !0), this.delayedTransforms = null;
2846
+ this.delayedTransforms && a.push.apply(a, w(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(a, !0), this.delayedTransforms = null;
2847
2847
  }
2848
2848
  },
2849
2849
  clearImage: function() {
@@ -2873,7 +2873,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2873
2873
  cropper: n,
2874
2874
  imageSize: e.imageSize
2875
2875
  };
2876
- if (e.boundaries = F(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
2876
+ if (e.boundaries = I(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
2877
2877
  var t = e.cropper, n = e.imageSize, r = t.clientHeight, i = t.clientWidth, a = r, o = n.width * r / n.height;
2878
2878
  return o > i && (o = i, a = n.height * i / n.width), {
2879
2879
  width: o,
@@ -2890,10 +2890,10 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2890
2890
  },
2891
2891
  resetVisibleArea: function() {
2892
2892
  var e = this;
2893
- return this.appliedImageTransforms = C(C({}, this.defaultImageTransforms), {}, { flip: C({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
2893
+ return this.appliedImageTransforms = S(S({}, this.defaultImageTransforms), {}, { flip: S({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
2894
2894
  e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
2895
2895
  var t, n, r, i, a, o, s = e.defaultVisibleArea || ot;
2896
- e.visibleArea = F(s) ? s({
2896
+ e.visibleArea = I(s) ? s({
2897
2897
  imageSize: e.imageSize,
2898
2898
  boundaries: e.boundaries,
2899
2899
  coordinates: e.priority === "visible-area" ? null : e.coordinates,
@@ -2944,7 +2944,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2944
2944
  var e, t = this;
2945
2945
  if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
2946
2946
  if (function(e) {
2947
- if (xe(e)) return !1;
2947
+ if (F(e)) return !1;
2948
2948
  var t = window.location, n = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e) || [], r = {
2949
2949
  protocol: n[1] || "",
2950
2950
  host: n[2] || "",
@@ -2954,7 +2954,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2954
2954
  };
2955
2955
  return !(!r.protocol && !r.host && !r.port || r.protocol && r.protocol == t.protocol && r.host && r.host == t.host && r.host && i(r) == i(t));
2956
2956
  }(this.src)) {
2957
- var n = I(this.crossOrigin) ? this.canvas : this.crossOrigin;
2957
+ var n = L(this.crossOrigin) ? this.canvas : this.crossOrigin;
2958
2958
  !0 === n && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
2959
2959
  }
2960
2960
  if (this.checkOrientation) {
@@ -2997,13 +2997,13 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
2997
2997
  },
2998
2998
  onParseImage: function(e) {
2999
2999
  var t = this, n = e.source, r = e.arrayBuffer, i = e.orientation;
3000
- this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? P(n) || !xe(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
3000
+ this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? P(n) || !F(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
3001
3001
  for (var t = [], n = new Uint8Array(e); n.length > 0;) {
3002
3002
  var r = n.subarray(0, 8192);
3003
3003
  t.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), n = n.subarray(8192);
3004
3004
  }
3005
3005
  return "data:image/jpeg;base64," + btoa(t.join(""));
3006
- }(r) : this.imageAttributes.src = n, this.appliedImageTransforms = F(this.defaultTransforms) ? Tt(this.defaultTransforms()) : L(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
3006
+ }(r) : this.imageAttributes.src = n, this.appliedImageTransforms = I(this.defaultTransforms) ? Tt(this.defaultTransforms()) : xe(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
3007
3007
  var t = Tt({});
3008
3008
  if (e) switch (e) {
3009
3009
  case 2:
@@ -3027,7 +3027,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3027
3027
  case 8: t.rotate = -90;
3028
3028
  }
3029
3029
  return t;
3030
- }(i), this.defaultImageTransforms = C(C({}, this.appliedImageTransforms), {}, { flip: C({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3030
+ }(i), this.defaultImageTransforms = S(S({}, this.appliedImageTransforms), {}, { flip: S({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3031
3031
  var e = t.$refs.image;
3032
3032
  e && e.complete && (function(e) {
3033
3033
  return !!e.naturalWidth;
@@ -3043,7 +3043,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3043
3043
  onMove: function(e) {
3044
3044
  var t = this;
3045
3045
  this.transitionsOptions.enabled || this.awaitRender((function() {
3046
- t.coordinates = t.moveAlgorithm(C(C({}, t.getPublicProperties()), {}, {
3046
+ t.coordinates = t.moveAlgorithm(S(S({}, t.getPublicProperties()), {}, {
3047
3047
  positionRestrictions: st(t.positionRestrictions, t.visibleArea),
3048
3048
  coordinates: t.coordinates,
3049
3049
  event: t.normalizeEvent(e)
@@ -3054,7 +3054,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3054
3054
  var t = this;
3055
3055
  this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender((function() {
3056
3056
  var n = t.sizeRestrictions, r = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
3057
- t.coordinates = t.resizeAlgorithm(C(C({}, t.getPublicProperties()), {}, {
3057
+ t.coordinates = t.resizeAlgorithm(S(S({}, t.getPublicProperties()), {}, {
3058
3058
  positionRestrictions: st(t.positionRestrictions, t.visibleArea),
3059
3059
  sizeRestrictions: {
3060
3060
  maxWidth: Math.min(n.maxWidth, t.visibleArea.width),
@@ -3071,7 +3071,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3071
3071
  if (!this.transitionsOptions.enabled) {
3072
3072
  var n = t.transitions, r = n !== void 0 && n, i = t.normalize, a = i === void 0 || i;
3073
3073
  r && this.enableTransitions();
3074
- var o = ct(C(C({}, this.getPublicProperties()), {}, {
3074
+ var o = ct(S(S({}, this.getPublicProperties()), {}, {
3075
3075
  event: a ? this.normalizeEvent(e) : e,
3076
3076
  getAreaRestrictions: this.getAreaRestrictions,
3077
3077
  imageRestriction: this.imageRestriction,
@@ -3099,9 +3099,9 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3099
3099
  var s = this.$refs.stencil.aspectRatios();
3100
3100
  t = s.minimum, n = s.maximum;
3101
3101
  }
3102
- if (I(t) && (t = I(i) ? a : i), I(n) && (n = I(i) ? o : i), !e && (I(t) || I(n))) {
3102
+ if (L(t) && (t = L(i) ? a : i), L(n) && (n = L(i) ? o : i), !e && (L(t) || L(n))) {
3103
3103
  var c = this.getStencilSize(), l = c ? q(c) : null;
3104
- I(t) && (t = Ce(l) ? l : void 0), I(n) && (n = Ce(l) ? l : void 0);
3104
+ L(t) && (t = Ce(l) ? l : void 0), L(n) && (n = Ce(l) ? l : void 0);
3105
3105
  }
3106
3106
  return {
3107
3107
  minimum: t,
@@ -3119,7 +3119,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3119
3119
  coefficient: this.coefficient,
3120
3120
  coordinates: this.coordinates,
3121
3121
  aspectRatio: this.getAspectRatio(!0)
3122
- }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(q(i = F(n) ? n({
3122
+ }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(q(i = I(n) ? n({
3123
3123
  boundaries: t,
3124
3124
  aspectRatio: r
3125
3125
  }) : n), r) && (i = Q({
@@ -3164,13 +3164,13 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3164
3164
  };
3165
3165
  },
3166
3166
  defaultCoordinates: function() {
3167
- return C({}, Re);
3167
+ return S({}, Re);
3168
3168
  },
3169
3169
  flip: function(e, t) {
3170
3170
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
3171
3171
  if (!this.transitionsActive) {
3172
3172
  r && this.enableTransitions();
3173
- var i = C({}, this.imageTransforms.flip), a = ut({
3173
+ var i = S({}, this.imageTransforms.flip), a = ut({
3174
3174
  flip: {
3175
3175
  horizontal: e ? !i.horizontal : i.horizontal,
3176
3176
  vertical: t ? !i.vertical : i.vertical
@@ -3192,7 +3192,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3192
3192
  var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).transitions, n = t === void 0 || t;
3193
3193
  if (!this.transitionsActive) {
3194
3194
  n && this.enableTransitions();
3195
- var r = C({}, this.imageSize);
3195
+ var r = S({}, this.imageSize);
3196
3196
  this.appliedImageTransforms.rotate += e;
3197
3197
  var i = lt({
3198
3198
  visibleArea: this.visibleArea,
@@ -3224,7 +3224,7 @@ var Lt = ["transitions"], $ = k("vue-advanced-cropper"), Rt = {
3224
3224
  style: { display: "none" }
3225
3225
  };
3226
3226
  Rt.render = function(t, i, a, o, s, c) {
3227
- return e(), b("div", {
3227
+ return e(), y("div", {
3228
3228
  ref: "cropper",
3229
3229
  class: c.classes.cropper
3230
3230
  }, [h("div", {
@@ -3233,7 +3233,7 @@ Rt.render = function(t, i, a, o, s, c) {
3233
3233
  }, null, 2), h("div", {
3234
3234
  class: c.classes.boundaries,
3235
3235
  style: c.boundariesStyle
3236
- }, [(e(), b(r(a.backgroundWrapperComponent), {
3236
+ }, [(e(), y(r(a.backgroundWrapperComponent), {
3237
3237
  class: c.classes.cropperWrapper,
3238
3238
  "wheel-resize": c.settings.resizeImage.wheel,
3239
3239
  "touch-resize": c.settings.resizeImage.touch,
@@ -3254,13 +3254,13 @@ Rt.render = function(t, i, a, o, s, c) {
3254
3254
  src: s.imageAttributes.src,
3255
3255
  class: c.classes.image,
3256
3256
  style: c.imageStyle,
3257
- onMousedown: i[1] ||= re((function() {}), ["prevent"])
3257
+ onMousedown: i[1] ||= ie((function() {}), ["prevent"])
3258
3258
  }, null, 46, ["crossorigin", "src"])], 2),
3259
3259
  h("div", {
3260
3260
  class: c.classes.foreground,
3261
3261
  style: c.boundariesStyle
3262
3262
  }, null, 6),
3263
- u((e(), b(r(a.stencilComponent), l({
3263
+ u((e(), y(r(a.stencilComponent), l({
3264
3264
  ref: "stencil",
3265
3265
  image: c.image,
3266
3266
  coordinates: s.coordinates,
@@ -3280,9 +3280,9 @@ Rt.render = function(t, i, a, o, s, c) {
3280
3280
  "onResizeEnd",
3281
3281
  "onMove",
3282
3282
  "onMoveEnd"
3283
- ])), [[ie, s.imageLoaded]]),
3284
- a.canvas ? (e(), b("canvas", zt, null, 512)) : x("", !0),
3285
- a.canvas ? (e(), b("canvas", Bt, null, 512)) : x("", !0)
3283
+ ])), [[ae, s.imageLoaded]]),
3284
+ a.canvas ? (e(), y("canvas", zt, null, 512)) : b("", !0),
3285
+ a.canvas ? (e(), y("canvas", Bt, null, 512)) : b("", !0)
3286
3286
  ];
3287
3287
  })),
3288
3288
  _: 1
@@ -3351,70 +3351,107 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3351
3351
  for: "tpl-media-alt",
3352
3352
  class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium",
3353
3353
  style: { color: "var(--tpl-text-muted)" }
3354
- }, vn = ["placeholder"], yn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, bn = ["disabled"], xn = /*#__PURE__*/ oe(/* @__PURE__ */ S({
3354
+ }, vn = ["placeholder"], yn = {
3355
+ key: 0,
3356
+ id: "tpl-media-edit-error",
3357
+ role: "alert",
3358
+ class: "tpl:shrink-0 tpl:px-5 tpl:pt-3 tpl:text-xs",
3359
+ style: { color: "var(--tpl-danger)" }
3360
+ }, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/ se(/* @__PURE__ */ x({
3355
3361
  __name: "MediaEditModal",
3356
3362
  props: {
3357
3363
  visible: { type: Boolean },
3358
- item: {}
3364
+ item: {},
3365
+ save: { type: Function },
3366
+ canCrop: { type: Boolean }
3359
3367
  },
3360
- emits: ["save", "close"],
3368
+ emits: ["close"],
3361
3369
  setup(r, { emit: a }) {
3362
- let o = r, l = a, { t: S } = ue(), ie = c(le, null), oe = c(se, d(null)), _e = S.mediaLibrary, { isImageMimeType: C } = ce(), w = d(""), ve = d(""), T = d(null), E = d("free"), ye = d(void 0), be = d(void 0), D = d(""), O = d(""), k = d(void 0), A = d(null), j = d(!1), M = d(!1), N = d(!1), P = te(() => o.item ? [
3370
+ let o = r, l = a, { t: x } = de(), ae = c(ue, null), se = c(ce, d(null)), ve = x.mediaLibrary, { isImageMimeType: S } = le(), C = d(""), ye = d(""), w = d(null), T = d("free"), E = d(void 0), D = d(void 0), O = d(""), k = d(""), A = d(void 0), j = d(null), be = d(!1), M = d(!1), N = d(!1), P = d(null), F = null, I = [
3363
3371
  "image/jpeg",
3364
3372
  "image/png",
3365
- "image/webp",
3366
- "image/gif"
3367
- ].includes(o.item.mimeType ?? "") : !1), xe = te(() => E.value === "original" ? k.value : fe[E.value]), F = te(() => A.value ? ge(A.value.width, A.value.height, ye.value, be.value) : null);
3373
+ "image/webp"
3374
+ ], L = ne(() => !o.item || !o.canCrop ? !1 : I.includes(o.item.mimeType ?? "")), xe = ne(() => E.value !== void 0 || D.value !== void 0), Se = ne(() => T.value === "original" ? A.value : pe[T.value]), R = ne(() => j.value ? _e(j.value.width, j.value.height, E.value, D.value) : null);
3368
3375
  s(() => o.visible, (e) => {
3369
- e && o.item && (w.value = o.item.filename ?? "", ve.value = o.item.alt ?? "", E.value = "free", ye.value = void 0, be.value = void 0, D.value = "", O.value = "", k.value = void 0, A.value = null, j.value = !1, N.value = !1, o.item.width && o.item.height && (k.value = o.item.width / o.item.height));
3376
+ e && o.item && (C.value = o.item.filename ?? "", ye.value = o.item.alt ?? "", T.value = "free", E.value = void 0, D.value = void 0, O.value = "", k.value = "", A.value = void 0, j.value = null, be.value = !1, N.value = !1, P.value = null, F = null, o.item.width && o.item.height && (A.value = o.item.width / o.item.height));
3370
3377
  }, { immediate: !0 });
3371
- function I(e) {
3372
- e.coordinates && (A.value = {
3373
- width: Math.round(e.coordinates.width),
3374
- height: Math.round(e.coordinates.height)
3375
- }, N.value = !0);
3378
+ function Ce(e) {
3379
+ return {
3380
+ left: Math.round(e.left),
3381
+ top: Math.round(e.top),
3382
+ width: Math.round(e.width),
3383
+ height: Math.round(e.height)
3384
+ };
3376
3385
  }
3377
- function L() {
3378
- j.value = !0, !k.value && o.item?.width && o.item?.height && (k.value = o.item.width / o.item.height);
3386
+ function we(e, t) {
3387
+ return e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height;
3379
3388
  }
3380
- function Se(e) {
3389
+ function Te(e) {
3390
+ if (!e.coordinates) return;
3391
+ let t = Ce(e.coordinates);
3392
+ if (j.value = {
3393
+ width: t.width,
3394
+ height: t.height
3395
+ }, !F) {
3396
+ F = t;
3397
+ return;
3398
+ }
3399
+ N.value = !we(t, F);
3400
+ }
3401
+ function z({ imageSize: e }) {
3402
+ return {
3403
+ width: e.width,
3404
+ height: e.height
3405
+ };
3406
+ }
3407
+ function Ee() {
3408
+ be.value = !0, !A.value && o.item?.width && o.item?.height && (A.value = o.item.width / o.item.height);
3409
+ }
3410
+ function De(e) {
3381
3411
  let t = e.target.value;
3382
- D.value = t, ye.value = t && parseInt(t, 10) || void 0;
3412
+ O.value = t, E.value = t && parseInt(t, 10) || void 0;
3383
3413
  }
3384
- function R(e) {
3414
+ function Oe(e) {
3385
3415
  let t = e.target.value;
3386
- O.value = t, be.value = t && parseInt(t, 10) || void 0;
3416
+ k.value = t, D.value = t && parseInt(t, 10) || void 0;
3387
3417
  }
3388
- async function Ce() {
3389
- let e = w.value.trim();
3418
+ async function ke() {
3419
+ let e = C.value.trim();
3390
3420
  if (!e || !o.item || M.value) return;
3391
- let t = C(o.item.mimeType ?? ""), n;
3392
- if (P.value && T.value && N.value) {
3393
- M.value = !0;
3394
- try {
3395
- let { canvas: e } = T.value.getResult();
3396
- if (e) {
3397
- let t = me(e, ye.value, be.value), r = pe(o.item.mimeType ?? "");
3398
- n = { file: await he(t, o.item.filename ?? "image", r) };
3399
- }
3400
- } catch {
3401
- M.value = !1;
3402
- return;
3403
- }
3404
- M.value = !1;
3421
+ let t = o.item, n = S(t.mimeType ?? ""), r;
3422
+ if (M.value = !0, P.value = null, L.value && w.value && (N.value || xe.value)) try {
3423
+ let { canvas: e } = w.value.getResult();
3424
+ if (!e) throw Error("The cropper returned no canvas");
3425
+ let n = he(e, E.value, D.value);
3426
+ (N.value || n !== e) && (r = { file: await ge(n, t.filename ?? "image", me(t.mimeType ?? "")) });
3427
+ } catch {
3428
+ P.value = "crop", M.value = !1;
3429
+ return;
3430
+ }
3431
+ let i = await o.save(t.id, e, n ? ye.value : void 0, r);
3432
+ if (M.value = !1, i === "saved") {
3433
+ l("close");
3434
+ return;
3405
3435
  }
3406
- l("save", o.item.id, e, t ? ve.value : void 0, n), l("close");
3436
+ i === "replaced" && Ae(), P.value = "save";
3437
+ }
3438
+ function Ae() {
3439
+ let e = w.value?.getResult().coordinates;
3440
+ e && (F = Ce(e)), N.value = !1, E.value = void 0, D.value = void 0, O.value = "", k.value = "";
3407
3441
  }
3408
- let we = d(null), Te = te(() => o.visible && o.item !== null);
3409
- de(we, Te);
3410
- function z(e) {
3442
+ function je() {
3443
+ M.value || l("close");
3444
+ }
3445
+ let Me = d(null), Ne = ne(() => o.visible && o.item !== null);
3446
+ fe(Me, Ne);
3447
+ function B(e) {
3411
3448
  if (e.stopPropagation(), e.key === "Enter" && !M.value) {
3412
3449
  if (e.target?.closest("textarea, [contenteditable]")) return;
3413
- e.preventDefault(), Ce();
3450
+ e.preventDefault(), ke();
3414
3451
  }
3415
- e.key === "Escape" && l("close");
3452
+ e.key === "Escape" && je();
3416
3453
  }
3417
- return (a, o) => (e(), b(_, { to: f(oe) || "body" }, [h(ae, {
3454
+ return (a, o) => (e(), y(_, { to: f(se) || "body" }, [h(oe, {
3418
3455
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
3419
3456
  "enter-from-class": "tpl:opacity-0",
3420
3457
  "enter-to-class": "tpl:opacity-100",
@@ -3424,33 +3461,34 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3424
3461
  }, {
3425
3462
  default: n(() => [r.visible && r.item ? (e(), m("div", {
3426
3463
  key: 0,
3427
- "data-tpl-theme": f(ie),
3428
- class: y([f(oe) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3464
+ "data-tpl-theme": f(ae),
3465
+ class: ee([f(se) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3429
3466
  style: { "background-color": "var(--tpl-overlay)" },
3430
- onClick: o[3] ||= re((e) => l("close"), ["self"]),
3431
- onKeydown: z
3467
+ onClick: ie(je, ["self"]),
3468
+ onKeydown: B
3432
3469
  }, [p("div", {
3433
3470
  ref_key: "dialogRef",
3434
- ref: we,
3471
+ ref: Me,
3435
3472
  role: "dialog",
3436
3473
  "aria-modal": "true",
3437
3474
  "aria-labelledby": "tpl-media-edit-title",
3438
- class: y(["tpl:flex tpl:max-h-[90%] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", P.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
3475
+ class: ee(["tpl:flex tpl:max-h-[90%] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", L.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
3439
3476
  style: { "background-color": "var(--tpl-bg-elevated)" }
3440
3477
  }, [
3441
- p("div", Ht, [p("h3", Ut, v(f(S).mediaLibrary.editFile), 1)]),
3478
+ p("div", Ht, [p("h3", Ut, v(f(x).mediaLibrary.editFile), 1)]),
3442
3479
  p("div", Wt, [
3443
- P.value ? (e(), m("div", Gt, [p("div", Kt, [h(f(Rt), {
3480
+ L.value ? (e(), m("div", Gt, [p("div", Kt, [h(f(Rt), {
3444
3481
  ref_key: "cropperRef",
3445
- ref: T,
3482
+ ref: w,
3446
3483
  src: r.item.url,
3447
- "stencil-props": { aspectRatio: xe.value },
3484
+ "stencil-props": { aspectRatio: Se.value },
3448
3485
  class: "tpl:h-full tpl:w-full",
3449
3486
  "background-class": "tpl-cropper-background",
3450
- onChange: I,
3451
- onReady: L
3487
+ "default-size": z,
3488
+ onChange: Te,
3489
+ onReady: Ee
3452
3490
  }, null, 8, ["src", "stencil-props"])]), p("div", qt, [
3453
- p("div", null, [p("label", Jt, v(f(S).mediaLibrary.cropAspectRatio), 1), p("div", Yt, [(e(), m(ee, null, i([
3491
+ p("div", null, [p("label", Jt, v(f(x).mediaLibrary.cropAspectRatio), 1), p("div", Yt, [(e(), m(te, null, i([
3454
3492
  "free",
3455
3493
  "square",
3456
3494
  "landscape43",
@@ -3461,14 +3499,14 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3461
3499
  type: "button",
3462
3500
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
3463
3501
  style: t({
3464
- borderColor: E.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
3465
- backgroundColor: E.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
3466
- color: E.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
3502
+ borderColor: T.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
3503
+ backgroundColor: T.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
3504
+ color: T.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
3467
3505
  }),
3468
- onClick: (t) => E.value = e
3469
- }, v(f(_e)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
3470
- p("div", Zt, [p("div", Qt, [p("label", $t, [g(v(f(S).mediaLibrary.cropMaxWidth) + " ", 1), p("span", en, v(f(S).mediaLibrary.cropOptional), 1)]), p("div", tn, [p("input", {
3471
- value: D.value,
3506
+ onClick: (t) => T.value = e
3507
+ }, v(f(ve)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
3508
+ p("div", Zt, [p("div", Qt, [p("label", $t, [g(v(f(x).mediaLibrary.cropMaxWidth) + " ", 1), p("span", en, v(f(x).mediaLibrary.cropOptional), 1)]), p("div", tn, [p("input", {
3509
+ value: O.value,
3472
3510
  type: "number",
3473
3511
  min: "1",
3474
3512
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-8 tpl:pl-3 tpl:text-xs tpl:outline-none",
@@ -3477,10 +3515,10 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3477
3515
  "background-color": "var(--tpl-bg)",
3478
3516
  color: "var(--tpl-text)"
3479
3517
  },
3480
- placeholder: A.value?.width?.toString() || "",
3481
- onInput: Se
3482
- }, null, 40, nn), p("span", rn, v(f(S).mediaLibrary.cropPixels), 1)])]), p("div", an, [p("label", on, [g(v(f(S).mediaLibrary.cropMaxHeight) + " ", 1), p("span", sn, v(f(S).mediaLibrary.cropOptional), 1)]), p("div", cn, [p("input", {
3483
- value: O.value,
3518
+ placeholder: j.value?.width?.toString() || "",
3519
+ onInput: De
3520
+ }, null, 40, nn), p("span", rn, v(f(x).mediaLibrary.cropPixels), 1)])]), p("div", an, [p("label", on, [g(v(f(x).mediaLibrary.cropMaxHeight) + " ", 1), p("span", sn, v(f(x).mediaLibrary.cropOptional), 1)]), p("div", cn, [p("input", {
3521
+ value: k.value,
3484
3522
  type: "number",
3485
3523
  min: "1",
3486
3524
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-8 tpl:pl-3 tpl:text-xs tpl:outline-none",
@@ -3489,14 +3527,14 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3489
3527
  "background-color": "var(--tpl-bg)",
3490
3528
  color: "var(--tpl-text)"
3491
3529
  },
3492
- placeholder: A.value?.height?.toString() || "",
3493
- onInput: R
3494
- }, null, 40, ln), p("span", un, v(f(S).mediaLibrary.cropPixels), 1)])])]),
3495
- F.value ? (e(), m("div", dn, [p("span", null, v(f(S).mediaLibrary.cropOutputSize) + ": ", 1), p("span", fn, v(F.value.width) + " x " + v(F.value.height) + " " + v(f(S).mediaLibrary.cropPixels), 1)])) : x("", !0)
3496
- ])])) : x("", !0),
3497
- p("div", pn, [p("label", mn, v(f(S).mediaLibrary.fileName), 1), u(p("input", {
3530
+ placeholder: j.value?.height?.toString() || "",
3531
+ onInput: Oe
3532
+ }, null, 40, ln), p("span", un, v(f(x).mediaLibrary.cropPixels), 1)])])]),
3533
+ R.value ? (e(), m("div", dn, [p("span", null, v(f(x).mediaLibrary.cropOutputSize) + ": ", 1), p("span", fn, v(R.value.width) + " x " + v(R.value.height) + " " + v(f(x).mediaLibrary.cropPixels), 1)])) : b("", !0)
3534
+ ])])) : b("", !0),
3535
+ p("div", pn, [p("label", mn, v(f(x).mediaLibrary.fileName), 1), u(p("input", {
3498
3536
  id: "tpl-media-filename",
3499
- "onUpdate:modelValue": o[0] ||= (e) => w.value = e,
3537
+ "onUpdate:modelValue": o[0] ||= (e) => C.value = e,
3500
3538
  type: "text",
3501
3539
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
3502
3540
  style: {
@@ -3504,11 +3542,11 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3504
3542
  "background-color": "var(--tpl-bg)",
3505
3543
  color: "var(--tpl-text)"
3506
3544
  },
3507
- autofocus: !P.value
3508
- }, null, 8, hn), [[ne, w.value]])]),
3509
- f(C)(r.item.mimeType ?? "") ? (e(), m("div", gn, [p("label", _n, v(f(S).mediaLibrary.altText), 1), u(p("input", {
3545
+ autofocus: !L.value
3546
+ }, null, 8, hn), [[re, C.value]])]),
3547
+ f(S)(r.item.mimeType ?? "") ? (e(), m("div", gn, [p("label", _n, v(f(x).mediaLibrary.altText), 1), u(p("input", {
3510
3548
  id: "tpl-media-alt",
3511
- "onUpdate:modelValue": o[1] ||= (e) => ve.value = e,
3549
+ "onUpdate:modelValue": o[1] ||= (e) => ye.value = e,
3512
3550
  type: "text",
3513
3551
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
3514
3552
  style: {
@@ -3516,30 +3554,32 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3516
3554
  "background-color": "var(--tpl-bg)",
3517
3555
  color: "var(--tpl-text)"
3518
3556
  },
3519
- placeholder: f(S).mediaLibrary.altTextPlaceholder
3520
- }, null, 8, vn), [[ne, ve.value]])])) : x("", !0)
3557
+ placeholder: f(x).mediaLibrary.altTextPlaceholder
3558
+ }, null, 8, vn), [[re, ye.value]])])) : b("", !0)
3521
3559
  ]),
3522
- p("div", yn, [p("button", {
3560
+ P.value ? (e(), m("p", yn, v(P.value === "crop" ? f(x).mediaLibrary.editCropError : f(x).mediaLibrary.editSaveError), 1)) : b("", !0),
3561
+ p("div", bn, [p("button", {
3523
3562
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
3524
3563
  style: {
3525
3564
  "border-color": "var(--tpl-border)",
3526
3565
  color: "var(--tpl-text)",
3527
3566
  "background-color": "var(--tpl-bg)"
3528
3567
  },
3529
- onClick: o[2] ||= (e) => l("close")
3530
- }, v(f(S).mediaLibrary.cancel), 1), p("button", {
3568
+ disabled: M.value,
3569
+ onClick: je
3570
+ }, v(f(x).mediaLibrary.cancel), 9, xn), p("button", {
3531
3571
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
3532
3572
  style: {
3533
3573
  "background-color": "var(--tpl-primary)",
3534
3574
  color: "var(--tpl-on-primary)"
3535
3575
  },
3536
3576
  disabled: M.value,
3537
- onClick: Ce
3538
- }, v(M.value ? f(S).mediaLibrary.saving : f(S).mediaLibrary.saveChanges), 9, bn)])
3539
- ], 2)], 42, Vt)) : x("", !0)]),
3577
+ onClick: ke
3578
+ }, v(M.value ? f(x).mediaLibrary.saving : f(x).mediaLibrary.saveChanges), 9, Sn)])
3579
+ ], 2)], 42, Vt)) : b("", !0)]),
3540
3580
  _: 1
3541
3581
  })], 8, ["to"]));
3542
3582
  }
3543
- }), [["__scopeId", "data-v-51052195"]]);
3583
+ }), [["__scopeId", "data-v-7d9a1872"]]);
3544
3584
  //#endregion
3545
- export { xn as default };
3585
+ export { Cn as default };