@templatical/editor 0.52.0 → 0.52.1

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 (261) hide show
  1. package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
  2. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
  3. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
  4. package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
  5. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
  6. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  7. package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
  8. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
  9. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
  10. package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
  11. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
  12. package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
  13. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  14. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
  15. package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
  16. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  17. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
  18. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
  19. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
  20. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
  21. package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
  22. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
  23. package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
  24. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
  25. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
  26. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
  27. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
  28. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  29. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
  30. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
  31. package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
  32. package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
  33. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
  34. package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
  35. package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
  36. package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
  37. package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
  38. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
  39. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
  40. package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
  41. package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
  42. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
  45. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
  47. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  48. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
  49. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  50. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
  51. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  52. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
  53. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
  54. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  55. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  58. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
  59. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  60. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
  61. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  62. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
  63. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  64. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
  65. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  66. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
  67. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  68. package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
  69. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  70. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
  71. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  72. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
  73. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  74. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
  75. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  76. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
  77. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  78. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
  79. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  80. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
  81. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  82. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
  83. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  84. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
  85. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  86. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
  87. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  88. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
  89. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  90. package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
  91. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  92. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
  93. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  94. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
  95. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  96. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
  97. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  99. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  100. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
  101. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  102. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
  103. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  104. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
  105. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  106. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
  107. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  108. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
  109. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  110. package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
  111. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  112. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
  113. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  114. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
  115. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  116. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  117. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  120. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
  121. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  122. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
  123. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  124. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
  125. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  126. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  127. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
  129. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
  131. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
  132. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
  133. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
  134. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
  135. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
  137. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
  138. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  139. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
  140. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
  141. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
  142. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  143. package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
  144. package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
  145. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  146. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  147. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
  148. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  149. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
  150. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  151. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
  152. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
  153. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
  154. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  155. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
  156. package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
  157. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
  158. package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
  159. package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
  160. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  161. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
  162. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
  163. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
  164. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  165. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  166. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  167. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  168. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  169. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
  170. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  171. package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
  172. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  173. package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
  174. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  175. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
  176. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  177. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
  178. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  179. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
  180. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  181. package/dist/cdn/editor.css +1 -1
  182. package/dist/cdn/editor.js +1422 -1422
  183. package/dist/cdn/editor.js.map +1 -1
  184. package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
  185. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
  186. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
  187. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
  188. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
  189. package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
  190. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
  191. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
  192. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
  193. package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
  194. package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
  195. package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
  196. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
  197. package/dist/en-Db76vJbY.js +1 -0
  198. package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
  199. package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
  200. package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
  201. package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
  202. package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
  203. package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
  204. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  205. package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
  206. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
  207. package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
  208. package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
  209. package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
  210. package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
  211. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
  212. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
  213. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
  214. package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
  215. package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
  216. package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
  217. package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
  218. package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
  219. package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
  220. package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
  221. package/dist/style.css +1 -1
  222. package/dist/templatical-editor.js +1096 -1096
  223. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
  224. package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
  225. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
  226. package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
  227. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
  228. package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
  229. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  230. package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
  231. package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
  232. package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
  233. package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
  234. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
  235. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
  236. package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
  237. package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
  238. package/package.json +10 -10
  239. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  240. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  241. package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
  242. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  243. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  244. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  245. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  246. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  247. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  248. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  249. package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
  250. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  251. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  252. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  253. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  254. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  255. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  256. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  257. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  258. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  259. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  260. package/dist/en-CyEE7FPY.js +0 -1
  261. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
@@ -1,16 +1,16 @@
1
- import { At as e, C as t, E as n, F as r, H as i, I as a, Mt as o, N as s, P as c, Q as l, V as u, _ as d, a as f, c as p, d as m, f as h, g, j as _, jt as ee, l as v, ot as y, r as te, u as b, y as x, z as ne } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
2
- import { a as re, c as ie, o as ae, t as oe } from "./runtime-dom.esm-bundler-CLGymEyk.js";
3
- import { t as se } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
- import { a as ce, n as le, o as ue, r as de, t as fe } from "./editor-modal-Du9VI9q4.js";
1
+ import { $ as e, C as t, E as n, F as r, H as i, I as a, Mt as o, N as s, Nt as c, P as l, U as u, _ as d, a as f, c as p, d as m, f as h, g, j as _, jt as v, l as y, r as ee, st as b, u as x, y as S, z as te } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
+ import { a as ne, c as re, o as ie, t as ae } from "./runtime-dom.esm-bundler-BURR-bj5.js";
3
+ import { t as oe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
+ import { a as se, n as ce, o as le, r as ue, t as de } from "./editor-modal-zaZHcmlO.js";
5
5
  // ../media-library/src/composables/useImageCrop.ts
6
- var pe = {
6
+ var fe = {
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 me(e) {
13
+ function pe(e) {
14
14
  return e === "image/png" || e === "image/gif" ? {
15
15
  mimeType: "image/png",
16
16
  quality: 1
@@ -22,7 +22,7 @@ function me(e) {
22
22
  quality: .92
23
23
  };
24
24
  }
25
- function he(e, t, n) {
25
+ function me(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 he(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 ge(e, t, n) {
39
+ function he(e, t, n) {
40
40
  return new Promise((r, i) => {
41
41
  e.toBlob((e) => {
42
42
  if (!e) {
@@ -48,7 +48,7 @@ function ge(e, t, n) {
48
48
  }, n.mimeType, n.quality);
49
49
  });
50
50
  }
51
- function _e(e, t, n, r) {
51
+ function ge(e, t, n, r) {
52
52
  let i = e, a = t;
53
53
  if (n && i > n) {
54
54
  let e = n / i;
@@ -64,7 +64,7 @@ function _e(e, t, n, r) {
64
64
  };
65
65
  }
66
66
  // ../../node_modules/.pnpm/vue-advanced-cropper@2.8.9_vue@3.5.44_typescript@6.0.3_/node_modules/vue-advanced-cropper/dist/index.esm-bundler.js
67
- function ve(e, t) {
67
+ function _e(e, t) {
68
68
  var n = Object.keys(e);
69
69
  if (Object.getOwnPropertySymbols) {
70
70
  var r = Object.getOwnPropertySymbols(e);
@@ -74,18 +74,18 @@ function ve(e, t) {
74
74
  }
75
75
  return n;
76
76
  }
77
- function S(e) {
77
+ function C(e) {
78
78
  for (var t = 1; t < arguments.length; t++) {
79
79
  var n = arguments[t] == null ? {} : arguments[t];
80
- t % 2 ? ve(Object(n), !0).forEach((function(t) {
81
- C(e, t, n[t]);
82
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ve(Object(n)).forEach((function(t) {
80
+ t % 2 ? _e(Object(n), !0).forEach((function(t) {
81
+ w(e, t, n[t]);
82
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _e(Object(n)).forEach((function(t) {
83
83
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
84
84
  }));
85
85
  }
86
86
  return e;
87
87
  }
88
- function C(e, t, n) {
88
+ function w(e, t, n) {
89
89
  return t in e ? Object.defineProperty(e, t, {
90
90
  value: n,
91
91
  enumerable: !0,
@@ -93,7 +93,7 @@ function C(e, t, n) {
93
93
  writable: !0
94
94
  }) : e[t] = n, e;
95
95
  }
96
- function ye(e, t) {
96
+ function ve(e, t) {
97
97
  if (e == null) return {};
98
98
  var n, r, i = function(e, t) {
99
99
  if (e == null) return {};
@@ -107,28 +107,28 @@ function ye(e, t) {
107
107
  }
108
108
  return i;
109
109
  }
110
- function w(e) {
110
+ function T(e) {
111
111
  return function(e) {
112
- if (Array.isArray(e)) return T(e);
112
+ if (Array.isArray(e)) return E(e);
113
113
  }(e) || function(e) {
114
114
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
115
115
  }(e) || function(e, t) {
116
116
  if (e) {
117
- if (typeof e == "string") return T(e, t);
117
+ if (typeof e == "string") return E(e, t);
118
118
  var n = Object.prototype.toString.call(e).slice(8, -1);
119
119
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
120
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return T(e, t);
120
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return E(e, t);
121
121
  }
122
122
  }(e) || function() {
123
123
  throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
124
124
  }();
125
125
  }
126
- function T(e, t) {
126
+ function E(e, t) {
127
127
  (t == null || t > e.length) && (t = e.length);
128
128
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
129
129
  return r;
130
130
  }
131
- var E = function(e) {
131
+ var D = function(e) {
132
132
  (function() {
133
133
  var t = {}.hasOwnProperty;
134
134
  function n() {
@@ -152,15 +152,15 @@ var E = function(e) {
152
152
  }
153
153
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
154
154
  })();
155
- }, D, O, k = (E(O = {
156
- path: D,
155
+ }, O, k, A = (D(k = {
156
+ path: O,
157
157
  exports: {},
158
158
  require: function(e, t) {
159
159
  return function() {
160
160
  throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
161
- }(t == null && O.path);
161
+ }(t == null && k.path);
162
162
  }
163
- }, O.exports), O.exports), A = function(e) {
163
+ }, k.exports), k.exports), j = function(e) {
164
164
  return function(t, n) {
165
165
  if (!t) return e;
166
166
  var r;
@@ -172,7 +172,7 @@ var E = function(e) {
172
172
  }), "") : "");
173
173
  };
174
174
  };
175
- function j(e, t, n) {
175
+ function M(e, t, n) {
176
176
  var r, i, a, o, s;
177
177
  function c() {
178
178
  var l = Date.now() - o;
@@ -190,65 +190,65 @@ function j(e, t, n) {
190
190
  r &&= (s = e.apply(a, i), a = i = null, clearTimeout(r), null);
191
191
  }, l;
192
192
  }
193
- j.debounce = j;
194
- var be = j, M = function() {
195
- return M = Object.assign || function(e) {
193
+ M.debounce = M;
194
+ var ye = M, N = function() {
195
+ return N = Object.assign || function(e) {
196
196
  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]);
197
197
  return e;
198
- }, M.apply(this, arguments);
198
+ }, N.apply(this, arguments);
199
199
  };
200
- function N(e, t) {
200
+ function P(e, t) {
201
201
  var n, r;
202
202
  return e && t ? (n = "" + e + t[0].toUpperCase() + t.slice(1), r = e + "-" + t) : (n = e || t, r = e || t), {
203
203
  name: n,
204
204
  classname: r
205
205
  };
206
206
  }
207
- function P(e) {
207
+ function F(e) {
208
208
  return /^blob:/.test(e);
209
209
  }
210
- function F(e) {
211
- return P(e) || function(e) {
210
+ function I(e) {
211
+ return F(e) || function(e) {
212
212
  return /^data:/.test(e);
213
213
  }(e);
214
214
  }
215
- function I(e) {
215
+ function L(e) {
216
216
  return !!(e && e.constructor && e.call && e.apply);
217
217
  }
218
- function L(e) {
218
+ function R(e) {
219
219
  return e === void 0;
220
220
  }
221
- function xe(e) {
221
+ function be(e) {
222
222
  return typeof e == "object" && !!e;
223
223
  }
224
- function Se(e, t, n) {
224
+ function xe(e, t, n) {
225
225
  var r = {};
226
- return xe(e) ? (Object.keys(t).forEach((function(i) {
227
- 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];
226
+ return be(e) ? (Object.keys(t).forEach((function(i) {
227
+ r[i] = R(e[i]) ? t[i] : be(t[i]) ? be(e[i]) ? xe(e[i], t[i], n[i]) : e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? !!e[i] : e[i];
228
228
  })), r) : e ? t : n;
229
229
  }
230
- function R(e) {
230
+ function z(e) {
231
231
  var t = Number(e);
232
232
  return Number.isNaN(t) ? e : t;
233
233
  }
234
- function Ce(e) {
234
+ function Se(e) {
235
235
  return typeof (e == "number" || function(e) {
236
236
  return typeof e == "object" && !!e;
237
- }(e) && toString.call(e) == "[object Number]") && !we(e);
237
+ }(e) && toString.call(e) == "[object Number]") && !Ce(e);
238
238
  }
239
- function we(e) {
239
+ function Ce(e) {
240
240
  return e != e;
241
241
  }
242
- function Te(e, t) {
242
+ function we(e, t) {
243
243
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
244
244
  }
245
- var z = function(e, t) {
245
+ var B = function(e, t) {
246
246
  e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
247
- }, Ee = function(e, t) {
247
+ }, Te = function(e, t) {
248
248
  t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
249
- }, De = function(e) {
249
+ }, Ee = function(e) {
250
250
  this.type = "move", this.directions = e;
251
- }, Oe = function() {
251
+ }, De = function() {
252
252
  function e(e, t, n, r, i) {
253
253
  this.type = "drag", this.nativeEvent = e, this.position = n, this.previousPosition = r, this.element = t, this.anchor = i;
254
254
  }
@@ -266,7 +266,7 @@ var z = function(e, t) {
266
266
  top: 0
267
267
  };
268
268
  }, e;
269
- }(), ke = {
269
+ }(), Oe = {
270
270
  name: "DraggableElement",
271
271
  props: { classname: { type: String } },
272
272
  beforeMount: function() {
@@ -287,7 +287,7 @@ var z = function(e, t) {
287
287
  this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
288
288
  },
289
289
  onTouchStart: function(e) {
290
- 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) {
290
+ 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
291
  return {
292
292
  clientX: t.clientX + n.clientX / e.touches.length,
293
293
  clientY: t.clientY + n.clientY / e.touches.length
@@ -333,11 +333,11 @@ var z = function(e, t) {
333
333
  };
334
334
  },
335
335
  processMove: function(e, t) {
336
- var n = w(t);
336
+ var n = T(t);
337
337
  if (this.touches.length) {
338
338
  if (this.touches.length === 1 && n.length === 1) {
339
339
  var r = this.$refs.draggable;
340
- this.$emit("drag", new Oe(e, r, {
340
+ this.$emit("drag", new De(e, r, {
341
341
  left: n[0].clientX,
342
342
  top: n[0].clientY
343
343
  }, {
@@ -359,8 +359,8 @@ var z = function(e, t) {
359
359
  "enter"
360
360
  ]
361
361
  };
362
- ke.render = function(e, t, n, r, i, a) {
363
- return _(), b("div", {
362
+ Oe.render = function(e, t, n, r, i, a) {
363
+ return _(), x("div", {
364
364
  ref: "draggable",
365
365
  class: n.classname,
366
366
  onTouchstart: t[1] ||= function() {
@@ -375,11 +375,11 @@ ke.render = function(e, t, n, r, i, a) {
375
375
  onMouseleave: t[4] ||= function() {
376
376
  return a.onMouseLeave && a.onMouseLeave.apply(a, arguments);
377
377
  }
378
- }, [c(e.$slots, "default")], 34);
378
+ }, [l(e.$slots, "default")], 34);
379
379
  };
380
- var Ae = A("vue-handler-wrapper"), je = {
380
+ var ke = j("vue-handler-wrapper"), Ae = {
381
381
  name: "HandlerWrapper",
382
- components: { DraggableElement: ke },
382
+ components: { DraggableElement: Oe },
383
383
  props: {
384
384
  horizontalPosition: { type: String },
385
385
  verticalPosition: { type: String },
@@ -391,12 +391,12 @@ var Ae = A("vue-handler-wrapper"), je = {
391
391
  computed: { classes: function() {
392
392
  var e;
393
393
  if (this.horizontalPosition || this.verticalPosition) {
394
- var t, n = N(this.horizontalPosition, this.verticalPosition);
395
- e = Ae((C(t = {}, n.classname, !0), C(t, "disabled", this.disabled), t));
396
- } else e = Ae({ disabled: this.disabled });
394
+ var t, n = P(this.horizontalPosition, this.verticalPosition);
395
+ e = ke((w(t = {}, n.classname, !0), w(t, "disabled", this.disabled), t));
396
+ } else e = ke({ disabled: this.disabled });
397
397
  return {
398
398
  root: e,
399
- draggable: Ae("draggable")
399
+ draggable: ke("draggable")
400
400
  };
401
401
  } },
402
402
  emits: [
@@ -406,10 +406,10 @@ var Ae = A("vue-handler-wrapper"), je = {
406
406
  "drag-end"
407
407
  ]
408
408
  };
409
- je.render = function(e, t, n, i, a, o) {
410
- var s = r("DraggableElement");
411
- return _(), b("div", { class: o.classes.root }, [d(s, {
412
- class: o.classes.draggable,
409
+ Ae.render = function(e, t, n, a, o, s) {
410
+ var c = r("DraggableElement");
411
+ return _(), x("div", { class: s.classes.root }, [d(c, {
412
+ class: s.classes.draggable,
413
413
  onDrag: t[1] ||= function(t) {
414
414
  return e.$emit("drag", t);
415
415
  },
@@ -423,15 +423,15 @@ je.render = function(e, t, n, i, a, o) {
423
423
  return e.$emit("enter");
424
424
  }
425
425
  }, {
426
- default: u((function() {
427
- return [c(e.$slots, "default")];
426
+ default: i((function() {
427
+ return [l(e.$slots, "default")];
428
428
  })),
429
429
  _: 3
430
430
  }, 8, ["class"])], 2);
431
431
  };
432
- var Me = A("vue-line-wrapper"), Ne = {
432
+ var je = j("vue-line-wrapper"), Me = {
433
433
  name: "LineWrapper",
434
- components: { DraggableElement: ke },
434
+ components: { DraggableElement: Oe },
435
435
  props: {
436
436
  position: {
437
437
  type: String,
@@ -444,7 +444,7 @@ var Me = A("vue-line-wrapper"), Ne = {
444
444
  },
445
445
  computed: { classname: function() {
446
446
  var e;
447
- return Me((C(e = {}, this.position, !0), C(e, "disabled", this.disabled), e));
447
+ return je((w(e = {}, this.position, !0), w(e, "disabled", this.disabled), e));
448
448
  } },
449
449
  emits: [
450
450
  "leave",
@@ -453,10 +453,10 @@ var Me = A("vue-line-wrapper"), Ne = {
453
453
  "drag-end"
454
454
  ]
455
455
  };
456
- Ne.render = function(e, t, n, i, a, o) {
457
- var s = r("DraggableElement");
458
- return _(), b(s, {
459
- class: o.classname,
456
+ Me.render = function(e, t, n, a, o, s) {
457
+ var c = r("DraggableElement");
458
+ return _(), x(c, {
459
+ class: s.classname,
460
460
  onDrag: t[1] ||= function(t) {
461
461
  return e.$emit("drag", t);
462
462
  },
@@ -470,29 +470,29 @@ Ne.render = function(e, t, n, i, a, o) {
470
470
  return e.$emit("enter");
471
471
  }
472
472
  }, {
473
- default: u((function() {
474
- return [c(e.$slots, "default")];
473
+ default: i((function() {
474
+ return [l(e.$slots, "default")];
475
475
  })),
476
476
  _: 3
477
477
  }, 8, ["class"]);
478
478
  };
479
- var B = [
479
+ var V = [
480
480
  "left",
481
481
  "right",
482
482
  "top",
483
483
  "bottom"
484
- ], Pe = ["left", "right"], Fe = ["top", "bottom"], Ie = ["left", "top"], Le = [
484
+ ], Ne = ["left", "right"], Pe = ["top", "bottom"], Fe = ["left", "top"], Ie = [
485
485
  "fill-area",
486
486
  "fit-area",
487
487
  "stencil",
488
488
  "none"
489
- ], Re = {
489
+ ], Le = {
490
490
  left: 0,
491
491
  top: 0,
492
492
  width: 0,
493
493
  height: 0
494
494
  };
495
- function ze(e, t, n) {
495
+ function Re(e, t, n) {
496
496
  return !(n ||= [
497
497
  "width",
498
498
  "height",
@@ -502,7 +502,7 @@ function ze(e, t, n) {
502
502
  return e[n] !== t[n];
503
503
  }));
504
504
  }
505
- function V(e) {
505
+ function H(e) {
506
506
  return {
507
507
  left: e.left,
508
508
  top: e.top,
@@ -510,31 +510,31 @@ function V(e) {
510
510
  bottom: e.top + e.height
511
511
  };
512
512
  }
513
- function H(e, t) {
513
+ function U(e, t) {
514
514
  return {
515
515
  left: e.left - t.left,
516
516
  top: e.top - t.top
517
517
  };
518
518
  }
519
- function U(e) {
519
+ function W(e) {
520
520
  return {
521
521
  left: e.left + e.width / 2,
522
522
  top: e.top + e.height / 2
523
523
  };
524
524
  }
525
- function Be(e, t) {
525
+ function ze(e, t) {
526
526
  var n = {
527
527
  left: 0,
528
528
  top: 0,
529
529
  right: 0,
530
530
  bottom: 0
531
531
  };
532
- return B.forEach((function(r) {
533
- var i = t[r], a = V(e)[r];
532
+ return V.forEach((function(r) {
533
+ var i = t[r], a = H(e)[r];
534
534
  n[r] = i !== void 0 && a !== void 0 ? r === "left" || r === "top" ? Math.max(0, i - a) : Math.max(0, a - i) : 0;
535
535
  })), n;
536
536
  }
537
- function W(e, t) {
537
+ function G(e, t) {
538
538
  return {
539
539
  left: e.left - t.left,
540
540
  top: e.top - t.top,
@@ -542,22 +542,22 @@ function W(e, t) {
542
542
  height: e.height + t.top + t.bottom
543
543
  };
544
544
  }
545
- function Ve(e) {
545
+ function Be(e) {
546
546
  return {
547
547
  left: -e.left,
548
548
  top: -e.top
549
549
  };
550
550
  }
551
- function G(e, t) {
552
- return M(M({}, e), {
551
+ function K(e, t) {
552
+ return N(N({}, e), {
553
553
  left: e.left + t.left,
554
554
  top: e.top + t.top
555
555
  });
556
556
  }
557
- function K(e, t, n, r) {
557
+ function q(e, t, n, r) {
558
558
  if (t !== 1) {
559
559
  if (n) {
560
- var i = U(e);
560
+ var i = W(e);
561
561
  return {
562
562
  width: e.width * t,
563
563
  height: e.height * t,
@@ -574,17 +574,17 @@ function K(e, t, n, r) {
574
574
  }
575
575
  return e;
576
576
  }
577
- function q(e) {
577
+ function J(e) {
578
578
  return e.width / e.height;
579
579
  }
580
- function J(e, t) {
580
+ function Y(e, t) {
581
581
  return Math.min(t.right !== void 0 && t.left !== void 0 ? (t.right - t.left) / e.width : 1 / 0, t.bottom !== void 0 && t.top !== void 0 ? (t.bottom - t.top) / e.height : 1 / 0);
582
582
  }
583
- function Y(e, t) {
583
+ function Ve(e, t) {
584
584
  var n = {
585
585
  left: 0,
586
586
  top: 0
587
- }, r = Be(e, t);
587
+ }, r = ze(e, t);
588
588
  return r.left && r.left > 0 ? n.left = r.left : r.right && r.right > 0 && (n.left = -r.right), r.top && r.top > 0 ? n.top = r.top : r.bottom && r.bottom > 0 && (n.top = -r.bottom), n;
589
589
  }
590
590
  function He(e, t) {
@@ -592,7 +592,7 @@ function He(e, t) {
592
592
  return t.minimum && e < t.minimum ? n = t.minimum : t.maximum && e > t.maximum && (n = t.maximum), n;
593
593
  }
594
594
  function Ue(e, t) {
595
- var n = q(e), r = q(t);
595
+ var n = J(e), r = J(t);
596
596
  return t.width < 1 / 0 && t.height < 1 / 0 ? n > r ? {
597
597
  width: t.width,
598
598
  height: t.width / n
@@ -622,13 +622,13 @@ function X(e, t) {
622
622
  };
623
623
  }
624
624
  function Ge(e, t) {
625
- var n = Be(Z(e, t), t);
626
- return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((e.width + n.left + n.right) / e.width, J(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, J(e, t)) : 1;
625
+ var n = ze(Z(e, t), t);
626
+ return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((e.width + n.left + n.right) / e.width, Y(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, Y(e, t)) : 1;
627
627
  }
628
628
  function Z(e, t, n) {
629
629
  n === void 0 && (n = !1);
630
- var r = Y(e, t);
631
- return G(e, n ? Ve(r) : r);
630
+ var r = Ve(e, t);
631
+ return K(e, n ? Be(r) : r);
632
632
  }
633
633
  function Ke(e) {
634
634
  return {
@@ -637,7 +637,7 @@ function Ke(e) {
637
637
  };
638
638
  }
639
639
  function qe(e, t) {
640
- return M(M({}, e), {
640
+ return N(N({}, e), {
641
641
  minWidth: Math.min(t.width, e.minWidth),
642
642
  minHeight: Math.min(t.height, e.minHeight),
643
643
  maxWidth: Math.min(t.width, e.maxWidth),
@@ -647,7 +647,7 @@ function qe(e, t) {
647
647
  function Je(e, t, n) {
648
648
  n === void 0 && (n = !0);
649
649
  var r = {};
650
- return B.forEach((function(i) {
650
+ return V.forEach((function(i) {
651
651
  var a = e[i], o = t[i];
652
652
  a !== void 0 && o !== void 0 ? r[i] = i === "left" || i === "top" ? n ? Math.max(a, o) : Math.min(a, o) : n ? Math.min(a, o) : Math.max(a, o) : o === void 0 ? a !== void 0 && (r[i] = a) : r[i] = o;
653
653
  })), r;
@@ -657,7 +657,7 @@ function Ye(e, t) {
657
657
  }
658
658
  function Xe(e) {
659
659
  var t = e.size, n = e.aspectRatio, r = e.ignoreMinimum, i = e.sizeRestrictions;
660
- return !!((t.correctRatio || q(t) >= n.minimum && q(t) <= n.maximum) && t.height <= i.maxHeight && t.width <= i.maxWidth && t.width && t.height && (r || t.height >= i.minHeight && t.width >= i.minWidth));
660
+ return !!((t.correctRatio || J(t) >= n.minimum && J(t) <= n.maximum) && t.height <= i.maxHeight && t.width <= i.maxWidth && t.width && t.height && (r || t.height >= i.minHeight && t.width >= i.minWidth));
661
661
  }
662
662
  function Ze(e, t) {
663
663
  return (e.width - t.width) ** 2 + (e.height - t.height) ** 2;
@@ -709,28 +709,28 @@ function Q(e) {
709
709
  };
710
710
  }
711
711
  function Qe(e) {
712
- var t = e.event, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = G(n, t.directions);
713
- return G(a, Y(a, i));
712
+ var t = e.event, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = K(n, t.directions);
713
+ return K(a, Ve(a, i));
714
714
  }
715
715
  function $e(e) {
716
716
  var t = e.coordinates, n = e.transform, r = e.imageSize, i = e.sizeRestrictions, a = e.positionRestrictions, o = e.aspectRatio, s = e.visibleArea, c = function(e, t) {
717
717
  return Qe({
718
718
  coordinates: e,
719
719
  positionRestrictions: a,
720
- event: new De({
720
+ event: new Ee({
721
721
  left: t.left - e.left,
722
722
  top: t.top - e.top
723
723
  })
724
724
  });
725
- }, l = M({}, t);
725
+ }, l = N({}, t);
726
726
  return (Array.isArray(n) ? n : [n]).forEach((function(e) {
727
727
  var t = {};
728
- L((t = typeof e == "function" ? e({
728
+ R((t = typeof e == "function" ? e({
729
729
  coordinates: l,
730
730
  imageSize: r,
731
731
  visibleArea: s
732
- }) : e).width) && L(t.height) || (l = function(e, t) {
733
- return c(M(M(M({}, e), Q({
732
+ }) : e).width) && R(t.height) || (l = function(e, t) {
733
+ return c(N(N(N({}, e), Q({
734
734
  width: t.width,
735
735
  height: t.height,
736
736
  sizeRestrictions: i,
@@ -742,7 +742,7 @@ function $e(e) {
742
742
  left: e.left,
743
743
  top: e.top
744
744
  });
745
- }(l, M(M({}, l), t))), L(t.left) && L(t.top) || (l = c(l, M(M({}, l), t)));
745
+ }(l, N(N({}, l), t))), R(t.left) && R(t.top) || (l = c(l, N(N({}, l), t)));
746
746
  })), l;
747
747
  }
748
748
  function et(e) {
@@ -751,25 +751,25 @@ function et(e) {
751
751
  e.aspectRatio;
752
752
  var a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions;
753
753
  e.stencilReference;
754
- var c, l, u, d = M({}, r), f = M({}, i), p = M({}, a);
755
- c = q(p), l = q(d), u === void 0 && (u = .001), (c === 0 || l === 0 ? Math.abs(l - c) < u : Math.abs(l / c) < 1 + u && Math.abs(l / c) > 1 - u) || (d = M(M({}, d), Q({
754
+ var c, l, u, d = N({}, r), f = N({}, i), p = N({}, a);
755
+ c = J(p), l = J(d), u === void 0 && (u = .001), (c === 0 || l === 0 ? Math.abs(l - c) < u : Math.abs(l / c) < 1 + u && Math.abs(l / c) > 1 - u) || (d = N(N({}, d), Q({
756
756
  sizeRestrictions: o,
757
757
  width: d.width,
758
758
  height: d.height,
759
759
  aspectRatio: {
760
- minimum: q(p),
761
- maximum: q(p)
760
+ minimum: J(p),
761
+ maximum: J(p)
762
762
  }
763
763
  })));
764
- var m = Ge(f = K(f, d.width * n.width / (f.width * p.width)), t({
764
+ var m = Ge(f = q(f, d.width * n.width / (f.width * p.width)), t({
765
765
  visibleArea: f,
766
766
  type: "resize"
767
767
  }));
768
- return m !== 1 && (f = K(f, m), d = K(d, m)), f = Z(f = G(f, H(U(d), U(f))), t({
768
+ return m !== 1 && (f = q(f, m), d = q(d, m)), f = Z(f = K(f, U(W(d), W(f))), t({
769
769
  visibleArea: f,
770
770
  type: "move"
771
771
  })), {
772
- coordinates: d = Z(d, Ye(V(f), s)),
772
+ coordinates: d = Z(d, Ye(H(f), s)),
773
773
  visibleArea: f
774
774
  };
775
775
  }
@@ -778,21 +778,21 @@ function tt(e) {
778
778
  e.aspectRatio, e.stencilSize, e.sizeRestrictions;
779
779
  var o = e.positionRestrictions;
780
780
  e.stencilReference;
781
- var s = M({}, i), c = M({}, a);
781
+ var s = N({}, i), c = N({}, a);
782
782
  if (i && a && t.type !== "manipulateImage") {
783
783
  var l = {
784
784
  width: 0,
785
785
  height: 0
786
786
  };
787
- c.width, r.width, q(r) > q(s) ? (l.height = .8 * r.height, l.width = l.height * q(s)) : (l.width = .8 * r.width, l.height = l.width * q(s));
788
- var u = Ge(c = K(c, s.width * r.width / (c.width * l.width)), n({
787
+ c.width, r.width, J(r) > J(s) ? (l.height = .8 * r.height, l.width = l.height * J(s)) : (l.width = .8 * r.width, l.height = l.width * J(s));
788
+ var u = Ge(c = q(c, s.width * r.width / (c.width * l.width)), n({
789
789
  visibleArea: c,
790
790
  type: "resize"
791
791
  }));
792
- c = K(c, u), u !== 1 && (l.height /= u, l.width /= u), c = Z(c = G(c, H(U(s), U(c))), n({
792
+ c = q(c, u), u !== 1 && (l.height /= u, l.width /= u), c = Z(c = K(c, U(W(s), W(c))), n({
793
793
  visibleArea: c,
794
794
  type: "move"
795
- })), s = Z(s, Ye(V(c), o));
795
+ })), s = Z(s, Ye(H(c), o));
796
796
  }
797
797
  return {
798
798
  coordinates: s,
@@ -800,16 +800,16 @@ function tt(e) {
800
800
  };
801
801
  }
802
802
  function nt(e) {
803
- var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = M({}, r), o = M({}, n);
803
+ var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = N({}, r), o = N({}, n);
804
804
  if (t.type === "setCoordinates") {
805
805
  var s = Math.max(0, o.width - a.width), c = Math.max(0, o.height - a.height);
806
- s > c ? a = K(a, Math.min(o.width / a.width, J(a, i({
806
+ s > c ? a = q(a, Math.min(o.width / a.width, Y(a, i({
807
807
  visibleArea: a,
808
808
  type: "resize"
809
- })))) : c > s && (a = K(a, Math.min(o.height / a.height, J(a, i({
809
+ })))) : c > s && (a = q(a, Math.min(o.height / a.height, Y(a, i({
810
810
  visibleArea: a,
811
811
  type: "resize"
812
- }))))), a = Z(a = G(a, Ve(Y(o, V(a)))), i({
812
+ }))))), a = Z(a = K(a, Be(Ve(o, H(a)))), i({
813
813
  visibleArea: a,
814
814
  type: "move"
815
815
  }));
@@ -827,21 +827,21 @@ function rt(e) {
827
827
  };
828
828
  }
829
829
  function it(e) {
830
- var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum || 1 / 0, Math.max(r.minimum || 0, q(a))), s = a.width < a.height ? {
830
+ var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum || 1 / 0, Math.max(r.minimum || 0, J(a))), s = a.width < a.height ? {
831
831
  width: .8 * a.width,
832
832
  height: .8 * a.width / o
833
833
  } : {
834
834
  height: .8 * a.height,
835
835
  width: .8 * a.height * o
836
836
  };
837
- return Q(M(M({}, s), {
837
+ return Q(N(N({}, s), {
838
838
  aspectRatio: r,
839
839
  sizeRestrictions: i
840
840
  }));
841
841
  }
842
842
  function at(e) {
843
843
  var t, n, r = e.imageSize, i = e.visibleArea, a = e.boundaries, o = e.aspectRatio, s = e.sizeRestrictions, c = e.stencilSize, l = i || r;
844
- return q(l) > q(a) ? n = (t = c.height * l.height / a.height) * q(c) : t = (n = c.width * l.width / a.width) / q(c), Q({
844
+ return J(l) > J(a) ? n = (t = c.height * l.height / a.height) * J(c) : t = (n = c.width * l.width / a.width) / J(c), Q({
845
845
  width: n,
846
846
  height: t,
847
847
  aspectRatio: o,
@@ -849,26 +849,26 @@ function at(e) {
849
849
  });
850
850
  }
851
851
  function ot(e) {
852
- var t = e.getAreaRestrictions, n = e.coordinates, r = e.imageSize, i = q(e.boundaries);
852
+ var t = e.getAreaRestrictions, n = e.coordinates, r = e.imageSize, i = J(e.boundaries);
853
853
  if (n) {
854
854
  var a = {
855
855
  height: Math.max(n.height, r.height),
856
856
  width: Math.max(n.width, r.width)
857
857
  }, o = Ue({
858
- width: q(a) > i ? a.width : a.height * i,
859
- height: q(a) > i ? a.width / i : a.height
858
+ width: J(a) > i ? a.width : a.height * i,
859
+ height: J(a) > i ? a.width / i : a.height
860
860
  }, Ke(t())), s = {
861
861
  left: n.left + n.width / 2 - o.width / 2,
862
862
  top: n.top + n.height / 2 - o.height / 2,
863
863
  width: o.width,
864
864
  height: o.height
865
- }, c = Be(n, V(M({
865
+ }, c = ze(n, H(N({
866
866
  left: 0,
867
867
  top: 0
868
868
  }, r))), l = {};
869
869
  return !c.left && !c.right && s.width <= r.width && (l.left = 0, l.right = r.width), !c.top && !c.bottom && s.height <= r.height && (l.top = 0, l.bottom = r.height), Z(s, l);
870
870
  }
871
- var u = q(r);
871
+ var u = J(r);
872
872
  return o = {
873
873
  height: u > i ? r.height : r.width / i,
874
874
  width: u > i ? r.height * i : r.width
@@ -880,58 +880,58 @@ function ot(e) {
880
880
  };
881
881
  }
882
882
  function st(e, t) {
883
- return Je(e, V(t));
883
+ return Je(e, H(t));
884
884
  }
885
885
  function ct(e) {
886
- var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.sizeRestrictions, a = e.getAreaRestrictions, o = e.positionRestrictions, s = e.adjustStencil, c = t.scale, l = t.move, u = M({}, r), d = M({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
887
- u = G(u, {
886
+ var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.sizeRestrictions, a = e.getAreaRestrictions, o = e.positionRestrictions, s = e.adjustStencil, c = t.scale, l = t.move, u = N({}, r), d = N({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
887
+ u = K(u, {
888
888
  left: l.left || 0,
889
889
  top: l.top || 0
890
890
  });
891
891
  var h = {
892
892
  stencil: {
893
893
  minimum: Math.max(i.minWidth ? i.minWidth / d.width : 0, i.minHeight ? i.minHeight / d.height : 0),
894
- maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0, J(d, o))
894
+ maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0, Y(d, o))
895
895
  },
896
- area: { maximum: J(u, a({
896
+ area: { maximum: Y(u, a({
897
897
  visibleArea: u,
898
898
  type: "resize"
899
899
  })) }
900
900
  };
901
- 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));
902
- var g = n.left - r.left, _ = r.width + r.left - (n.width + n.left), ee = n.top - r.top, v = r.height + r.top - (n.height + n.top);
903
- return u = Z(u = G(u, Y(u, {
901
+ 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 = q(u, p, c.center));
902
+ 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
+ return u = Z(u = K(u, Ve(u, {
904
904
  left: o.left === void 0 ? void 0 : o.left - g * p,
905
- top: o.top === void 0 ? void 0 : o.top - ee * p,
906
- bottom: o.bottom === void 0 ? void 0 : o.bottom + v * p,
905
+ top: o.top === void 0 ? void 0 : o.top - v * p,
906
+ bottom: o.bottom === void 0 ? void 0 : o.bottom + y * p,
907
907
  right: o.right === void 0 ? void 0 : o.right + _ * p
908
908
  })), a({
909
909
  visibleArea: u,
910
910
  type: "move"
911
- })), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + ee * p, d = Z(d, Ye(V(u), o)), c.factor && m && s && (c.factor > 1 ? f = Math.min(h.area.maximum, c.factor) / p : c.factor < 1 && (f = Math.max(d.height / u.height, d.width / u.width, c.factor / p)), f !== 1 && (u = G(u = Z(u = K(u, f, c.factor > 1 ? c.center : U(d)), a({
911
+ })), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + v * p, d = Z(d, Ye(H(u), o)), c.factor && m && s && (c.factor > 1 ? f = Math.min(h.area.maximum, c.factor) / p : c.factor < 1 && (f = Math.max(d.height / u.height, d.width / u.width, c.factor / p)), f !== 1 && (u = K(u = Z(u = q(u, f, c.factor > 1 ? c.center : W(d)), a({
912
912
  visibleArea: u,
913
913
  type: "move"
914
- })), Ve(Y(d, V(u)))))), {
914
+ })), Be(Ve(d, H(u)))))), {
915
915
  coordinates: d,
916
916
  visibleArea: u
917
917
  };
918
918
  }
919
919
  function lt(e) {
920
- var t = e.aspectRatio, n = e.getAreaRestrictions, r = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.positionRestrictions, s = e.imageSize, c = e.previousImageSize, l = e.angle, u = M({}, r), d = M({}, i), f = X(U(M({
920
+ var t = e.aspectRatio, n = e.getAreaRestrictions, r = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.positionRestrictions, s = e.imageSize, c = e.previousImageSize, l = e.angle, u = N({}, r), d = N({}, i), f = X(W(N({
921
921
  left: 0,
922
922
  top: 0
923
923
  }, c)), l);
924
- return (u = M(M({}, Q({
924
+ return (u = N(N({}, Q({
925
925
  sizeRestrictions: a,
926
926
  aspectRatio: t,
927
927
  width: u.width,
928
928
  height: u.height
929
- })), X(U(u), l))).left -= f.left - s.width / 2 + u.width / 2, u.top -= f.top - s.height / 2 + u.height / 2, d = K(d, Ge(d, n({
929
+ })), X(W(u), l))).left -= f.left - s.width / 2 + u.width / 2, u.top -= f.top - s.height / 2 + u.height / 2, d = q(d, Ge(d, n({
930
930
  visibleArea: d,
931
931
  type: "resize"
932
932
  }))), {
933
933
  coordinates: u = Z(u, o),
934
- visibleArea: d = Z(d = G(d, H(U(u), U(r))), n({
934
+ visibleArea: d = Z(d = K(d, U(W(u), W(r))), n({
935
935
  visibleArea: d,
936
936
  type: "move"
937
937
  }))
@@ -940,19 +940,19 @@ function lt(e) {
940
940
  function ut(e) {
941
941
  var t = e.flip, n = e.previousFlip, r = e.rotate;
942
942
  e.aspectRatio;
943
- var i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = M({}, a), l = M({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
943
+ var i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = N({}, a), l = N({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
944
944
  if (u || d) {
945
945
  var f = X({
946
946
  left: s.width / 2,
947
947
  top: s.height / 2
948
- }, -r), p = X(U(c), -r), m = X({
948
+ }, -r), p = X(W(c), -r), m = X({
949
949
  left: u ? f.left - (p.left - f.left) : p.left,
950
950
  top: d ? f.top - (p.top - f.top) : p.top
951
951
  }, r);
952
- c = G(c, H(m, U(c))), p = X(U(l), -r), l = Z(l = G(l, H(m = X({
952
+ c = K(c, U(m, W(c))), p = X(W(l), -r), l = Z(l = K(l, U(m = X({
953
953
  left: u ? f.left - (p.left - f.left) : p.left,
954
954
  top: d ? f.top - (p.top - f.top) : p.top
955
- }, r), U(l))), i({
955
+ }, r), W(l))), i({
956
956
  visibleArea: l,
957
957
  type: "move"
958
958
  }));
@@ -963,10 +963,10 @@ function ut(e) {
963
963
  };
964
964
  }
965
965
  function dt(e) {
966
- var t = e.directions, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = e.sizeRestrictions, o = e.preserveRatio, s = e.compensate, c = M({}, t), l = W(n, c).width, u = W(n, c).height;
966
+ var t = e.directions, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = e.sizeRestrictions, o = e.preserveRatio, s = e.compensate, c = N({}, t), l = G(n, c).width, u = G(n, c).height;
967
967
  l < 0 && (c.left < 0 && c.right < 0 ? (c.left = -(n.width - a.minWidth) / (c.left / c.right), c.right = -(n.width - a.minWidth) / (c.right / c.left)) : c.left < 0 ? c.left = -(n.width - a.minWidth) : c.right < 0 && (c.right = -(n.width - a.minWidth))), u < 0 && (c.top < 0 && c.bottom < 0 ? (c.top = -(n.height - a.minHeight) / (c.top / c.bottom), c.bottom = -(n.height - a.minHeight) / (c.bottom / c.top)) : c.top < 0 ? c.top = -(n.height - a.minHeight) : c.bottom < 0 && (c.bottom = -(n.height - a.minHeight)));
968
- var d = Be(W(n, c), i);
969
- s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = Be(W(n, c), i));
968
+ var d = ze(G(n, c), i);
969
+ s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = ze(G(n, c), i));
970
970
  var f = {
971
971
  width: 1 / 0,
972
972
  height: 1 / 0,
@@ -975,27 +975,27 @@ function dt(e) {
975
975
  top: 1 / 0,
976
976
  bottom: 1 / 0
977
977
  };
978
- if (B.forEach((function(e) {
978
+ if (V.forEach((function(e) {
979
979
  var t = d[e];
980
980
  t && c[e] && (f[e] = Math.max(0, 1 - t / c[e]));
981
981
  })), o) {
982
- var p = Math.min.apply(null, B.map((function(e) {
982
+ var p = Math.min.apply(null, V.map((function(e) {
983
983
  return f[e];
984
984
  })));
985
- p !== 1 / 0 && B.forEach((function(e) {
985
+ p !== 1 / 0 && V.forEach((function(e) {
986
986
  c[e] *= p;
987
987
  }));
988
- } else B.forEach((function(e) {
988
+ } else V.forEach((function(e) {
989
989
  f[e] !== 1 / 0 && (c[e] *= f[e]);
990
990
  }));
991
- if (l = W(n, c).width, u = W(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
991
+ if (l = G(n, c).width, u = G(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
992
992
  var m = Math.min(f.width, f.height);
993
- m !== 1 / 0 && B.forEach((function(e) {
993
+ m !== 1 / 0 && V.forEach((function(e) {
994
994
  c[e] *= m;
995
995
  }));
996
- } else f.width !== 1 / 0 && Pe.forEach((function(e) {
996
+ } else f.width !== 1 / 0 && Ne.forEach((function(e) {
997
997
  c[e] *= f.width;
998
- })), f.height !== 1 / 0 && Fe.forEach((function(e) {
998
+ })), f.height !== 1 / 0 && Pe.forEach((function(e) {
999
999
  c[e] *= f.height;
1000
1000
  }));
1001
1001
  return c;
@@ -1003,9 +1003,9 @@ function dt(e) {
1003
1003
  function ft(e, t, n) {
1004
1004
  return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
1005
1005
  }
1006
- var pt = A("vue-simple-handler"), mt = A("vue-simple-handler-wrapper"), ht = {
1006
+ var pt = j("vue-simple-handler"), mt = j("vue-simple-handler-wrapper"), ht = {
1007
1007
  name: "SimpleHandler",
1008
- components: { HandlerWrapper: je },
1008
+ components: { HandlerWrapper: Ae },
1009
1009
  props: {
1010
1010
  defaultClass: { type: String },
1011
1011
  hoverClass: { type: String },
@@ -1021,10 +1021,10 @@ var pt = A("vue-simple-handler"), mt = A("vue-simple-handler-wrapper"), ht = {
1021
1021
  return { hover: !1 };
1022
1022
  },
1023
1023
  computed: { classes: function() {
1024
- 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);
1024
+ 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
1025
  return {
1026
- default: k(pt(t), this.defaultClass, this.hover && this.hoverClass),
1027
- wrapper: k(mt(t), this.wrapperClass)
1026
+ default: A(pt(t), this.defaultClass, this.hover && this.hoverClass),
1027
+ wrapper: A(mt(t), this.wrapperClass)
1028
1028
  };
1029
1029
  } },
1030
1030
  methods: {
@@ -1043,20 +1043,20 @@ var pt = A("vue-simple-handler"), mt = A("vue-simple-handler-wrapper"), ht = {
1043
1043
  },
1044
1044
  emits: ["drag", "drag-end"]
1045
1045
  };
1046
- ht.render = function(e, t, n, i, a, o) {
1047
- var s = r("HandlerWrapper");
1048
- return _(), b(s, {
1049
- class: o.classes.wrapper,
1046
+ ht.render = function(e, t, n, a, o, s) {
1047
+ var c = r("HandlerWrapper");
1048
+ return _(), x(c, {
1049
+ class: s.classes.wrapper,
1050
1050
  "vertical-position": n.verticalPosition,
1051
1051
  "horizontal-position": n.horizontalPosition,
1052
1052
  disabled: n.disabled,
1053
- onDrag: o.onDrag,
1054
- onDragEnd: o.onDragEnd,
1055
- onEnter: o.onEnter,
1056
- onLeave: o.onLeave
1053
+ onDrag: s.onDrag,
1054
+ onDragEnd: s.onDragEnd,
1055
+ onEnter: s.onEnter,
1056
+ onLeave: s.onLeave
1057
1057
  }, {
1058
- default: u((function() {
1059
- return [d("div", { class: o.classes.default }, null, 2)];
1058
+ default: i((function() {
1059
+ return [d("div", { class: s.classes.default }, null, 2)];
1060
1060
  })),
1061
1061
  _: 1
1062
1062
  }, 8, [
@@ -1070,9 +1070,9 @@ ht.render = function(e, t, n, i, a, o) {
1070
1070
  "onLeave"
1071
1071
  ]);
1072
1072
  };
1073
- var gt = A("vue-simple-line"), _t = A("vue-simple-line-wrapper"), vt = {
1073
+ var gt = j("vue-simple-line"), _t = j("vue-simple-line-wrapper"), vt = {
1074
1074
  name: "SimpleLine",
1075
- components: { LineWrapper: Ne },
1075
+ components: { LineWrapper: Me },
1076
1076
  props: {
1077
1077
  defaultClass: { type: String },
1078
1078
  hoverClass: { type: String },
@@ -1088,8 +1088,8 @@ var gt = A("vue-simple-line"), _t = A("vue-simple-line-wrapper"), vt = {
1088
1088
  },
1089
1089
  computed: { classes: function() {
1090
1090
  return {
1091
- root: k(gt(C({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1092
- wrapper: k(_t(C({}, this.position, !0)), this.wrapperClass)
1091
+ root: A(gt(w({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1092
+ wrapper: A(_t(w({}, this.position, !0)), this.wrapperClass)
1093
1093
  };
1094
1094
  } },
1095
1095
  methods: {
@@ -1108,19 +1108,19 @@ var gt = A("vue-simple-line"), _t = A("vue-simple-line-wrapper"), vt = {
1108
1108
  },
1109
1109
  emits: ["drag", "drag-end"]
1110
1110
  };
1111
- vt.render = function(e, t, n, i, a, o) {
1112
- var s = r("LineWrapper");
1113
- return _(), b(s, {
1114
- class: o.classes.wrapper,
1111
+ vt.render = function(e, t, n, a, o, s) {
1112
+ var c = r("LineWrapper");
1113
+ return _(), x(c, {
1114
+ class: s.classes.wrapper,
1115
1115
  position: n.position,
1116
1116
  disabled: n.disabled,
1117
- onDrag: o.onDrag,
1118
- onDragEnd: o.onDragEnd,
1119
- onEnter: o.onEnter,
1120
- onLeave: o.onLeave
1117
+ onDrag: s.onDrag,
1118
+ onDragEnd: s.onDragEnd,
1119
+ onEnter: s.onEnter,
1120
+ onLeave: s.onLeave
1121
1121
  }, {
1122
- default: u((function() {
1123
- return [d("div", { class: o.classes.root }, null, 2)];
1122
+ default: i((function() {
1123
+ return [d("div", { class: s.classes.root }, null, 2)];
1124
1124
  })),
1125
1125
  _: 1
1126
1126
  }, 8, [
@@ -1133,7 +1133,7 @@ vt.render = function(e, t, n, i, a, o) {
1133
1133
  "onLeave"
1134
1134
  ]);
1135
1135
  };
1136
- var yt = A("vue-bounding-box"), bt = [
1136
+ var yt = j("vue-bounding-box"), bt = [
1137
1137
  "east",
1138
1138
  "west",
1139
1139
  null
@@ -1219,7 +1219,7 @@ var yt = A("vue-bounding-box"), bt = [
1219
1219
  return bt.forEach((function(t) {
1220
1220
  xt.forEach((function(n) {
1221
1221
  if (t !== n) {
1222
- var r = N(t, n), i = r.name, a = r.classname;
1222
+ var r = P(t, n), i = r.name, a = r.classname;
1223
1223
  e.push({
1224
1224
  name: i,
1225
1225
  classname: a,
@@ -1251,8 +1251,8 @@ var yt = A("vue-bounding-box"), bt = [
1251
1251
  n.horizontalDirection && n.verticalDirection || !e.lines[n.name] || t.push({
1252
1252
  name: n.name,
1253
1253
  component: e.linesComponent,
1254
- class: k(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1255
- wrapperClass: k(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1254
+ class: A(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1255
+ wrapperClass: A(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1256
1256
  hoverClass: e.classes.lines.hover,
1257
1257
  verticalDirection: n.verticalDirection,
1258
1258
  horizontalDirection: n.horizontalDirection,
@@ -1267,8 +1267,8 @@ var yt = A("vue-bounding-box"), bt = [
1267
1267
  var a = {
1268
1268
  name: i.name,
1269
1269
  component: e.handlersComponent,
1270
- class: k(e.classes.handlers.default, e.classes.handlers[i.name]),
1271
- wrapperClass: k(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1270
+ class: A(e.classes.handlers.default, e.classes.handlers[i.name]),
1271
+ wrapperClass: A(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1272
1272
  hoverClass: e.classes.handlers.hover,
1273
1273
  verticalDirection: i.verticalDirection,
1274
1274
  horizontalDirection: i.horizontalDirection,
@@ -1277,7 +1277,7 @@ var yt = A("vue-bounding-box"), bt = [
1277
1277
  if (n && r) {
1278
1278
  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;
1279
1279
  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}`);
1280
- } else a.wrapperClass = yt("handler", C({}, i.classname, !0));
1280
+ } else a.wrapperClass = yt("handler", w({}, i.classname, !0));
1281
1281
  t.push(a);
1282
1282
  }
1283
1283
  })), t;
@@ -1303,7 +1303,7 @@ var yt = A("vue-bounding-box"), bt = [
1303
1303
  top: 0,
1304
1304
  bottom: 0
1305
1305
  };
1306
- t === "west" ? s.left -= a : t === "east" && (s.right += a), n === "north" ? s.top -= o : n === "south" && (s.bottom += o), !n && t ? r = "width" : n && !t && (r = "height"), this.resizable && this.$emit("resize", new Ee(s, {
1306
+ t === "west" ? s.left -= a : t === "east" && (s.right += a), n === "north" ? s.top -= o : n === "south" && (s.bottom += o), !n && t ? r = "width" : n && !t && (r = "height"), this.resizable && this.$emit("resize", new Te(s, {
1307
1307
  allowedDirections: {
1308
1308
  left: t === "west" || !t,
1309
1309
  right: t === "east" || !t,
@@ -1318,14 +1318,14 @@ var yt = A("vue-bounding-box"), bt = [
1318
1318
  emits: ["resize", "resize-end"]
1319
1319
  };
1320
1320
  St.render = function(e, t, n, r, i, o) {
1321
- return _(), b("div", {
1321
+ return _(), x("div", {
1322
1322
  ref: "box",
1323
1323
  class: o.classes.root,
1324
1324
  style: o.style
1325
1325
  }, [
1326
- c(e.$slots, "default"),
1327
- d("div", null, [(_(!0), b(te, null, s(o.lineNodes, (function(e) {
1328
- return _(), b(a(e.component), {
1326
+ l(e.$slots, "default"),
1327
+ d("div", null, [(_(!0), x(ee, null, s(o.lineNodes, (function(e) {
1328
+ return _(), x(a(e.component), {
1329
1329
  key: e.name,
1330
1330
  "default-class": e.class,
1331
1331
  "hover-class": e.hoverClass,
@@ -1347,12 +1347,12 @@ St.render = function(e, t, n, r, i, o) {
1347
1347
  "onDrag"
1348
1348
  ]);
1349
1349
  })), 128))]),
1350
- (_(!0), b(te, null, s(o.handlerNodes, (function(e) {
1351
- return _(), b("div", {
1350
+ (_(!0), x(ee, null, s(o.handlerNodes, (function(e) {
1351
+ return _(), x("div", {
1352
1352
  key: e.name,
1353
1353
  style: e.wrapperStyle,
1354
1354
  class: e.wrapperClass
1355
- }, [(_(), b(a(e.component), {
1355
+ }, [(_(), x(a(e.component), {
1356
1356
  "default-class": e.class,
1357
1357
  "hover-class": e.hoverClass,
1358
1358
  "wrapper-class": e.wrapperClass,
@@ -1377,7 +1377,7 @@ St.render = function(e, t, n, r, i, o) {
1377
1377
  })), 128))
1378
1378
  ], 6);
1379
1379
  };
1380
- var Ct = A("vue-draggable-area"), wt = {
1380
+ var Ct = j("vue-draggable-area"), wt = {
1381
1381
  name: "DraggableArea",
1382
1382
  props: {
1383
1383
  movable: {
@@ -1405,14 +1405,14 @@ var Ct = A("vue-draggable-area"), wt = {
1405
1405
  onTouchStart: function(e) {
1406
1406
  if (e.cancelable) {
1407
1407
  var t = this.movable && e.touches.length === 1;
1408
- t && (this.touches = w(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1408
+ t && (this.touches = T(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1409
1409
  }
1410
1410
  },
1411
1411
  onTouchEnd: function() {
1412
1412
  this.touchStarted = !1, this.processEnd();
1413
1413
  },
1414
1414
  onTouchMove: function(e) {
1415
- this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : Te({
1415
+ this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : we({
1416
1416
  x: this.touches[0].clientX,
1417
1417
  y: this.touches[0].clientY
1418
1418
  }, {
@@ -1451,10 +1451,10 @@ var Ct = A("vue-draggable-area"), wt = {
1451
1451
  };
1452
1452
  },
1453
1453
  processMove: function(e, t) {
1454
- var n = w(t);
1454
+ var n = T(t);
1455
1455
  if (this.touches.length) {
1456
1456
  var r = this.$refs.container.getBoundingClientRect(), i = r.left, a = r.top;
1457
- this.touches.length === 1 && n.length === 1 && this.$emit("move", new De({
1457
+ this.touches.length === 1 && n.length === 1 && this.$emit("move", new Ee({
1458
1458
  left: n[0].clientX - (i + this.anchor.x),
1459
1459
  top: n[0].clientY - (a + this.anchor.y)
1460
1460
  }));
@@ -1467,7 +1467,7 @@ var Ct = A("vue-draggable-area"), wt = {
1467
1467
  emits: ["move", "move-end"]
1468
1468
  };
1469
1469
  wt.render = function(e, t, n, r, i, a) {
1470
- return _(), b("div", {
1470
+ return _(), x("div", {
1471
1471
  ref: "container",
1472
1472
  onTouchstart: t[1] ||= function() {
1473
1473
  return a.onTouchStart && a.onTouchStart.apply(a, arguments);
@@ -1475,7 +1475,7 @@ wt.render = function(e, t, n, r, i, a) {
1475
1475
  onMousedown: t[2] ||= function() {
1476
1476
  return a.onMouseDown && a.onMouseDown.apply(a, arguments);
1477
1477
  }
1478
- }, [c(e.$slots, "default")], 544);
1478
+ }, [l(e.$slots, "default")], 544);
1479
1479
  };
1480
1480
  function Tt(e) {
1481
1481
  return {
@@ -1563,7 +1563,7 @@ function kt(e, t) {
1563
1563
  return e.forEach((function(t) {
1564
1564
  a.left += (t.clientX - r) / e.length, a.top += (t.clientY - i) / e.length;
1565
1565
  })), e.forEach((function(e) {
1566
- o += Te({
1566
+ o += we({
1567
1567
  x: a.left,
1568
1568
  y: a.top
1569
1569
  }, {
@@ -1606,18 +1606,18 @@ var At = {
1606
1606
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
1607
1607
  },
1608
1608
  created: function() {
1609
- this.transforming = !1, this.debouncedProcessEnd = be(this.processEnd), this.touches = [];
1609
+ this.transforming = !1, this.debouncedProcessEnd = ye(this.processEnd), this.touches = [];
1610
1610
  },
1611
1611
  methods: {
1612
1612
  processMove: function(e, t) {
1613
1613
  if (this.touches.length) {
1614
- if (this.touches.length === 1 && t.length === 1) this.$emit("move", new z({
1614
+ if (this.touches.length === 1 && t.length === 1) this.$emit("move", new B({
1615
1615
  left: this.touches[0].clientX - t[0].clientX,
1616
1616
  top: this.touches[0].clientY - t[0].clientY
1617
1617
  }));
1618
1618
  else if (this.touches.length > 1 && this.touchResize) {
1619
1619
  var n = kt(t, this.$refs.container), r = this.oldGeometricProperties;
1620
- r.count === n.count && r.count > 1 && this.$emit("resize", new z({
1620
+ r.count === n.count && r.count > 1 && this.$emit("resize", new B({
1621
1621
  left: r.centerMass.left - n.centerMass.left,
1622
1622
  top: r.centerMass.top - n.centerMass.top
1623
1623
  }, {
@@ -1640,7 +1640,7 @@ var At = {
1640
1640
  onTouchStart: function(e) {
1641
1641
  if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
1642
1642
  var t = this.$refs.container, n = t.getBoundingClientRect(), r = n.left, i = n.top, a = n.bottom, o = n.right;
1643
- this.touches = w(e.touches).filter((function(e) {
1643
+ this.touches = T(e.touches).filter((function(e) {
1644
1644
  return e.clientX > r && e.clientX < o && e.clientY > i && e.clientY < a;
1645
1645
  })), this.oldGeometricProperties = kt(this.touches, t);
1646
1646
  }
@@ -1651,7 +1651,7 @@ var At = {
1651
1651
  onTouchMove: function(e) {
1652
1652
  var t = this;
1653
1653
  if (this.touches.length) {
1654
- var n = w(e.touches).filter((function(e) {
1654
+ var n = T(e.touches).filter((function(e) {
1655
1655
  return !e.identifier || t.touches.find((function(t) {
1656
1656
  return t.identifier === e.identifier;
1657
1657
  }));
@@ -1680,11 +1680,11 @@ var At = {
1680
1680
  },
1681
1681
  onWheel: function(e) {
1682
1682
  if (this.wheelResize && this.processEvent(e)) {
1683
- var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top, i = 1 + this.wheelResize.ratio * (o = e.deltaY || e.detail || e.wheelDelta, (s = +o) == 0 || we(s) ? s : s > 0 ? 1 : -1), a = {
1683
+ var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top, i = 1 + this.wheelResize.ratio * (o = e.deltaY || e.detail || e.wheelDelta, (s = +o) == 0 || Ce(s) ? s : s > 0 ? 1 : -1), a = {
1684
1684
  left: e.clientX - n,
1685
1685
  top: e.clientY - r
1686
1686
  };
1687
- this.$emit("resize", new z({}, {
1687
+ this.$emit("resize", new B({}, {
1688
1688
  factor: i,
1689
1689
  center: a
1690
1690
  })), this.touches.length || this.debouncedProcessEnd();
@@ -1699,7 +1699,7 @@ var At = {
1699
1699
  ]
1700
1700
  };
1701
1701
  At.render = function(e, t, n, r, i, a) {
1702
- return _(), b("div", {
1702
+ return _(), x("div", {
1703
1703
  ref: "container",
1704
1704
  onTouchstart: t[1] ||= function() {
1705
1705
  return a.onTouchStart && a.onTouchStart.apply(a, arguments);
@@ -1710,7 +1710,7 @@ At.render = function(e, t, n, r, i, a) {
1710
1710
  onWheel: t[3] ||= function() {
1711
1711
  return a.onWheel && a.onWheel.apply(a, arguments);
1712
1712
  }
1713
- }, [c(e.$slots, "default")], 544);
1713
+ }, [l(e.$slots, "default")], 544);
1714
1714
  };
1715
1715
  var jt = {
1716
1716
  components: { TransformableImage: At },
@@ -1734,9 +1734,9 @@ var jt = {
1734
1734
  },
1735
1735
  emits: ["resize", "move"]
1736
1736
  };
1737
- jt.render = function(e, t, n, i, a, o) {
1738
- var s = r("transformable-image");
1739
- return _(), b(s, {
1737
+ jt.render = function(e, t, n, a, o, s) {
1738
+ var c = r("transformable-image");
1739
+ return _(), x(c, {
1740
1740
  "touch-move": n.touchMove,
1741
1741
  "touch-resize": n.touchResize,
1742
1742
  "mouse-move": n.mouseMove,
@@ -1748,8 +1748,8 @@ jt.render = function(e, t, n, i, a, o) {
1748
1748
  return e.$emit("resize", t);
1749
1749
  }
1750
1750
  }, {
1751
- default: u((function() {
1752
- return [c(e.$slots, "default")];
1751
+ default: i((function() {
1752
+ return [l(e.$slots, "default")];
1753
1753
  })),
1754
1754
  _: 3
1755
1755
  }, 8, [
@@ -1759,7 +1759,7 @@ jt.render = function(e, t, n, i, a, o) {
1759
1759
  "wheel-resize"
1760
1760
  ]);
1761
1761
  };
1762
- var Mt = A("vue-preview"), Nt = {
1762
+ var Mt = j("vue-preview"), Nt = {
1763
1763
  props: {
1764
1764
  coordinates: { type: Object },
1765
1765
  transitions: { type: Object },
@@ -1792,7 +1792,7 @@ var Mt = A("vue-preview"), Nt = {
1792
1792
  root: Mt({ fill: this.fill }),
1793
1793
  wrapper: Mt("wrapper"),
1794
1794
  imageWrapper: Mt("image-wrapper"),
1795
- image: k(Mt("image"), this.imageClass)
1795
+ image: A(Mt("image"), this.imageClass)
1796
1796
  };
1797
1797
  },
1798
1798
  style: function() {
@@ -1811,7 +1811,7 @@ var Mt = A("vue-preview"), Nt = {
1811
1811
  },
1812
1812
  imageStyle: function() {
1813
1813
  if (this.coordinates && this.image) {
1814
- var e = this.coordinates.width / this.size.width, t = S(S({
1814
+ var e = this.coordinates.width / this.size.width, t = C(C({
1815
1815
  rotate: 0,
1816
1816
  flip: {
1817
1817
  horizontal: !1,
@@ -1883,21 +1883,21 @@ var Mt = A("vue-preview"), Nt = {
1883
1883
  }
1884
1884
  }
1885
1885
  };
1886
- Nt.render = function(e, t, n, r, a, o) {
1887
- return _(), b("div", {
1886
+ Nt.render = function(e, t, n, r, i, a) {
1887
+ return _(), x("div", {
1888
1888
  ref: "root",
1889
- class: o.classes.root,
1890
- style: o.style
1889
+ class: a.classes.root,
1890
+ style: a.style
1891
1891
  }, [d("div", {
1892
1892
  ref: "wrapper",
1893
- class: o.classes.wrapper,
1894
- style: o.wrapperStyle
1895
- }, [i(d("img", {
1893
+ class: a.classes.wrapper,
1894
+ style: a.wrapperStyle
1895
+ }, [u(d("img", {
1896
1896
  ref: "image",
1897
1897
  src: n.image && n.image.src,
1898
- class: o.classes.image,
1899
- style: o.imageStyle
1900
- }, null, 14, ["src"]), [[ae, n.image && n.image.src]])], 6)], 6);
1898
+ class: a.classes.image,
1899
+ style: a.imageStyle
1900
+ }, null, 14, ["src"]), [[ie, n.image && n.image.src]])], 6)], 6);
1901
1901
  };
1902
1902
  var Pt = {
1903
1903
  components: { Preview: Nt },
@@ -1905,9 +1905,9 @@ var Pt = {
1905
1905
  };
1906
1906
  Pt.render = function(e, t, i, a, o, s) {
1907
1907
  var c = r("preview");
1908
- return _(), b(c, n(e.$attrs, { fill: !0 }), null, 16);
1908
+ return _(), x(c, n(e.$attrs, { fill: !0 }), null, 16);
1909
1909
  };
1910
- var Ft = A("vue-rectangle-stencil"), It = {
1910
+ var Ft = j("vue-rectangle-stencil"), It = {
1911
1911
  name: "RectangleStencil",
1912
1912
  components: {
1913
1913
  StencilPreview: Pt,
@@ -1982,13 +1982,13 @@ var Ft = A("vue-rectangle-stencil"), It = {
1982
1982
  computed: {
1983
1983
  classes: function() {
1984
1984
  return {
1985
- stencil: k(Ft({
1985
+ stencil: A(Ft({
1986
1986
  movable: this.movable,
1987
1987
  moving: this.moving,
1988
1988
  resizing: this.resizing
1989
1989
  }), this.moving && this.movingClass, this.resizing && this.resizingClass),
1990
- preview: k(Ft("preview"), this.previewClass),
1991
- boundingBox: k(Ft("bounding-box"), this.boundingBoxClass)
1990
+ preview: A(Ft("preview"), this.previewClass),
1991
+ boundingBox: A(Ft("bounding-box"), this.boundingBoxClass)
1992
1992
  };
1993
1993
  },
1994
1994
  style: function() {
@@ -2027,16 +2027,16 @@ var Ft = A("vue-rectangle-stencil"), It = {
2027
2027
  "move-end"
2028
2028
  ]
2029
2029
  };
2030
- It.render = function(e, t, n, i, a, o) {
2031
- var s = r("stencil-preview"), c = r("draggable-area"), l = r("bounding-box");
2032
- return _(), b("div", {
2033
- class: o.classes.stencil,
2034
- style: o.style
2035
- }, [d(l, {
2030
+ It.render = function(e, t, n, a, o, s) {
2031
+ var c = r("stencil-preview"), l = r("draggable-area"), u = r("bounding-box");
2032
+ return _(), x("div", {
2033
+ class: s.classes.stencil,
2034
+ style: s.style
2035
+ }, [d(u, {
2036
2036
  width: n.stencilCoordinates.width,
2037
2037
  height: n.stencilCoordinates.height,
2038
2038
  transitions: n.transitions,
2039
- class: o.classes.boundingBox,
2039
+ class: s.classes.boundingBox,
2040
2040
  handlers: n.handlers,
2041
2041
  "handlers-component": n.handlersComponent,
2042
2042
  "handlers-classes": n.handlersClasses,
@@ -2046,22 +2046,22 @@ It.render = function(e, t, n, i, a, o) {
2046
2046
  "lines-classes": n.linesClasses,
2047
2047
  "lines-wrappers-classes": n.linesWrappersClasses,
2048
2048
  resizable: n.resizable,
2049
- onResize: o.onResize,
2050
- onResizeEnd: o.onResizeEnd
2049
+ onResize: s.onResize,
2050
+ onResizeEnd: s.onResizeEnd
2051
2051
  }, {
2052
- default: u((function() {
2053
- return [d(c, {
2052
+ default: i((function() {
2053
+ return [d(l, {
2054
2054
  movable: n.movable,
2055
- onMove: o.onMove,
2056
- onMoveEnd: o.onMoveEnd
2055
+ onMove: s.onMove,
2056
+ onMoveEnd: s.onMoveEnd
2057
2057
  }, {
2058
- default: u((function() {
2059
- return [d(s, {
2058
+ default: i((function() {
2059
+ return [d(c, {
2060
2060
  image: n.image,
2061
2061
  coordinates: n.coordinates,
2062
2062
  width: n.stencilCoordinates.width,
2063
2063
  height: n.stencilCoordinates.height,
2064
- class: o.classes.preview,
2064
+ class: s.classes.preview,
2065
2065
  transitions: n.transitions
2066
2066
  }, null, 8, [
2067
2067
  "image",
@@ -2098,7 +2098,7 @@ It.render = function(e, t, n, i, a, o) {
2098
2098
  "onResizeEnd"
2099
2099
  ])], 6);
2100
2100
  };
2101
- var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2101
+ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2102
2102
  name: "Cropper",
2103
2103
  components: { BackgroundWrapper: jt },
2104
2104
  props: {
@@ -2164,7 +2164,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2164
2164
  type: String,
2165
2165
  default: "fit-area",
2166
2166
  validator: function(e) {
2167
- return Le.indexOf(e) !== -1;
2167
+ return Ie.indexOf(e) !== -1;
2168
2168
  }
2169
2169
  },
2170
2170
  roundResult: {
@@ -2198,24 +2198,24 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2198
2198
  resizeAlgorithm: {
2199
2199
  type: Function,
2200
2200
  default: function(e) {
2201
- var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = M(M({}, n), {
2201
+ var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = N(N({}, n), {
2202
2202
  right: n.left + n.width,
2203
2203
  bottom: n.top + n.height
2204
- }), s = t.params || {}, c = M({}, t.directions), l = s.allowedDirections || {
2204
+ }), s = t.params || {}, c = N({}, t.directions), l = s.allowedDirections || {
2205
2205
  left: !0,
2206
2206
  right: !0,
2207
2207
  bottom: !0,
2208
2208
  top: !0
2209
2209
  };
2210
- a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), B.forEach((function(e) {
2210
+ a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), V.forEach((function(e) {
2211
2211
  l[e] || (c[e] = 0);
2212
2212
  }));
2213
- var u = W(o, c = dt({
2213
+ var u = G(o, c = dt({
2214
2214
  coordinates: o,
2215
2215
  directions: c,
2216
2216
  sizeRestrictions: a,
2217
2217
  positionRestrictions: i
2218
- })).width, d = W(o, c).height, f = s.preserveRatio ? q(o) : He(u / d, r);
2218
+ })).width, d = G(o, c).height, f = s.preserveRatio ? J(o) : He(u / d, r);
2219
2219
  if (f) {
2220
2220
  var p = s.respectDirection;
2221
2221
  if (p ||= o.width >= o.height || f === 1 ? "width" : "height", p === "width") {
@@ -2227,8 +2227,8 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2227
2227
  } else if (p === "height") {
2228
2228
  var _ = o.width - d * f;
2229
2229
  if (l.left && l.right) {
2230
- var ee = c.left, v = c.right;
2231
- c.left = -ft(_, ee, v), c.right = -ft(_, v, ee);
2230
+ var v = c.left, y = c.right;
2231
+ c.left = -ft(_, v, y), c.right = -ft(_, y, v);
2232
2232
  } else l.left ? c.left = -_ : l.right ? c.right = -_ : l.top ? c.top = 0 : l.bottom && (c.bottom = 0);
2233
2233
  }
2234
2234
  c = dt({
@@ -2240,10 +2240,10 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2240
2240
  compensate: s.compensate
2241
2241
  });
2242
2242
  }
2243
- return u = W(o, c).width, d = W(o, c).height, (f = s.preserveRatio ? q(o) : He(u / d, r)) && Math.abs(f - u / d) > .001 && B.forEach((function(e) {
2243
+ return u = G(o, c).width, d = G(o, c).height, (f = s.preserveRatio ? J(o) : He(u / d, r)) && Math.abs(f - u / d) > .001 && V.forEach((function(e) {
2244
2244
  l[e] || (c[e] = 0);
2245
2245
  })), Qe({
2246
- event: new De({
2246
+ event: new Ee({
2247
2247
  left: -c.left,
2248
2248
  top: -c.top
2249
2249
  }),
@@ -2264,14 +2264,14 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2264
2264
  initStretcher: {
2265
2265
  type: Function,
2266
2266
  default: function(e) {
2267
- var t = e.stretcher, n = e.imageSize, r = q(n);
2267
+ var t = e.stretcher, n = e.imageSize, r = J(n);
2268
2268
  t.style.width = n.width + "px", t.style.height = t.clientWidth / r + "px", t.style.width = t.clientWidth + "px";
2269
2269
  }
2270
2270
  },
2271
2271
  fitCoordinates: {
2272
2272
  type: Function,
2273
2273
  default: function(e) {
2274
- var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = M(M({}, n), Q({
2274
+ var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = N(N({}, n), Q({
2275
2275
  width: n.width,
2276
2276
  height: n.height,
2277
2277
  aspectRatio: r,
@@ -2282,19 +2282,19 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2282
2282
  minWidth: Math.min(t.width, i.minWidth)
2283
2283
  }
2284
2284
  }));
2285
- return o = Z(o = G(o, H(U(n), U(o))), Ye(V(t), a));
2285
+ return o = Z(o = K(o, U(W(n), W(o))), Ye(H(t), a));
2286
2286
  }
2287
2287
  },
2288
2288
  fitVisibleArea: {
2289
2289
  type: Function,
2290
2290
  default: function(e) {
2291
- var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = M({}, t);
2292
- a.height = a.width / q(n), a.top += (t.height - a.height) / 2, (i.height - a.height > 0 || i.width - a.width > 0) && (a = K(a, Math.max(i.height / a.height, i.width / a.width)));
2293
- var o = Ve(Y(i, V(a = K(a, Ge(a, r({
2291
+ var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = N({}, t);
2292
+ a.height = a.width / J(n), a.top += (t.height - a.height) / 2, (i.height - a.height > 0 || i.width - a.width > 0) && (a = q(a, Math.max(i.height / a.height, i.width / a.width)));
2293
+ var o = Be(Ve(i, H(a = q(a, Ge(a, r({
2294
2294
  visibleArea: a,
2295
2295
  type: "resize"
2296
2296
  }))))));
2297
- return a.width < i.width && (o.left = 0), a.height < i.height && (o.top = 0), a = Z(a = G(a, o), r({
2297
+ return a.width < i.width && (o.left = 0), a.height < i.height && (o.top = 0), a = Z(a = K(a, o), r({
2298
2298
  visibleArea: a,
2299
2299
  type: "move"
2300
2300
  }));
@@ -2309,7 +2309,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2309
2309
  top: 0,
2310
2310
  right: r.width,
2311
2311
  bottom: r.height
2312
- } : i === "fit-area" && (q(n) > q(r) ? (o = {
2312
+ } : i === "fit-area" && (J(n) > J(r) ? (o = {
2313
2313
  top: 0,
2314
2314
  bottom: r.height
2315
2315
  }, t && a === "move" && (t.width > r.width ? (o.left = -(t.width - r.width) / 2, o.right = r.width - o.left) : (o.left = 0, o.right = r.width))) : (o = {
@@ -2371,7 +2371,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2371
2371
  height: 0
2372
2372
  },
2373
2373
  visibleArea: null,
2374
- coordinates: S({}, Re)
2374
+ coordinates: C({}, Le)
2375
2375
  };
2376
2376
  },
2377
2377
  computed: {
@@ -2409,7 +2409,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2409
2409
  return !!(this.visibleArea && this.imageLoaded);
2410
2410
  },
2411
2411
  settings: function() {
2412
- var e = Se(this.resizeImage, {
2412
+ var e = xe(this.resizeImage, {
2413
2413
  touch: !0,
2414
2414
  wheel: { ratio: .1 },
2415
2415
  adjustStencil: !0
@@ -2419,7 +2419,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2419
2419
  adjustStencil: !1
2420
2420
  });
2421
2421
  return {
2422
- moveImage: Se(this.moveImage, {
2422
+ moveImage: xe(this.moveImage, {
2423
2423
  touch: !0,
2424
2424
  mouse: !0
2425
2425
  }, {
@@ -2450,17 +2450,17 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2450
2450
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
2451
2451
  var e = this.sizeRestrictionsAlgorithm({
2452
2452
  imageSize: this.imageSize,
2453
- minWidth: L(this.minWidth) ? 0 : R(this.minWidth),
2454
- minHeight: L(this.minHeight) ? 0 : R(this.minHeight),
2455
- maxWidth: L(this.maxWidth) ? 1 / 0 : R(this.maxWidth),
2456
- maxHeight: L(this.maxHeight) ? 1 / 0 : R(this.maxHeight)
2453
+ minWidth: R(this.minWidth) ? 0 : z(this.minWidth),
2454
+ minHeight: R(this.minHeight) ? 0 : z(this.minHeight),
2455
+ maxWidth: R(this.maxWidth) ? 1 / 0 : z(this.maxWidth),
2456
+ maxHeight: R(this.maxHeight) ? 1 / 0 : z(this.maxHeight)
2457
2457
  });
2458
2458
  if (e = function(e) {
2459
2459
  var t = e.areaRestrictions, n = e.sizeRestrictions;
2460
2460
  e.imageSize;
2461
2461
  var r = e.boundaries, i = e.positionRestrictions;
2462
2462
  e.imageRestriction;
2463
- var a = M(M({}, n), {
2463
+ var a = N(N({}, n), {
2464
2464
  minWidth: n.minWidth === void 0 ? 0 : n.minWidth,
2465
2465
  minHeight: n.minHeight === void 0 ? 0 : n.minHeight,
2466
2466
  maxWidth: n.maxWidth === void 0 ? 1 / 0 : n.maxWidth,
@@ -2506,14 +2506,14 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2506
2506
  classes: function() {
2507
2507
  return {
2508
2508
  cropper: $(),
2509
- image: k($("image"), this.imageClass),
2509
+ image: A($("image"), this.imageClass),
2510
2510
  stencil: $("stencil"),
2511
- boundaries: k($("boundaries"), this.boundariesClass),
2512
- stretcher: k($("stretcher")),
2513
- background: k($("background"), this.backgroundClass),
2514
- foreground: k($("foreground"), this.foregroundClass),
2515
- imageWrapper: k($("image-wrapper")),
2516
- cropperWrapper: k($("cropper-wrapper"))
2511
+ boundaries: A($("boundaries"), this.boundariesClass),
2512
+ stretcher: A($("stretcher")),
2513
+ background: A($("background"), this.backgroundClass),
2514
+ foreground: A($("foreground"), this.foregroundClass),
2515
+ imageWrapper: A($("image-wrapper")),
2516
+ cropperWrapper: A($("cropper-wrapper"))
2517
2517
  };
2518
2518
  },
2519
2519
  stencilCoordinates: function() {
@@ -2550,7 +2550,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2550
2550
  }, n = {
2551
2551
  left: (1 - 1 / this.coefficient) * e.width / 2,
2552
2552
  top: (1 - 1 / this.coefficient) * e.height / 2
2553
- }, r = S(S({}, this.imageTransforms), {}, {
2553
+ }, r = C(C({}, this.imageTransforms), {}, {
2554
2554
  scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width),
2555
2555
  scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height)
2556
2556
  }), i = {
@@ -2599,7 +2599,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2599
2599
  }
2600
2600
  },
2601
2601
  created: function() {
2602
- this.debouncedUpdate = be(this.update, this.debounce), this.debouncedDisableTransitions = be(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
2602
+ this.debouncedUpdate = ye(this.update, this.debounce), this.debouncedDisableTransitions = ye(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
2603
2603
  },
2604
2604
  mounted: function() {
2605
2605
  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);
@@ -2609,16 +2609,16 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2609
2609
  },
2610
2610
  methods: {
2611
2611
  getResult: function() {
2612
- var e = this.initialized ? this.prepareResult(S({}, this.coordinates)) : this.defaultCoordinates(), t = {
2612
+ var e = this.initialized ? this.prepareResult(C({}, this.coordinates)) : this.defaultCoordinates(), t = {
2613
2613
  rotate: this.imageTransforms.rotate % 360,
2614
- flip: S({}, this.imageTransforms.flip)
2614
+ flip: C({}, this.imageTransforms.flip)
2615
2615
  };
2616
2616
  if (this.src && this.imageLoaded) {
2617
2617
  var n = this;
2618
2618
  return {
2619
2619
  image: this.image,
2620
2620
  coordinates: e,
2621
- visibleArea: this.visibleArea ? S({}, this.visibleArea) : null,
2621
+ visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
2622
2622
  imageTransforms: t,
2623
2623
  get canvas() {
2624
2624
  return n.canvas ? n.getCanvas() : void 0;
@@ -2628,14 +2628,14 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2628
2628
  return {
2629
2629
  image: this.image,
2630
2630
  coordinates: e,
2631
- visibleArea: this.visibleArea ? S({}, this.visibleArea) : null,
2631
+ visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
2632
2632
  canvas: void 0,
2633
2633
  imageTransforms: t
2634
2634
  };
2635
2635
  },
2636
2636
  zoom: function(e, t) {
2637
2637
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
2638
- this.onManipulateImage(new z({}, {
2638
+ this.onManipulateImage(new B({}, {
2639
2639
  factor: 1 / e,
2640
2640
  center: t
2641
2641
  }), {
@@ -2645,7 +2645,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2645
2645
  },
2646
2646
  move: function(e, t) {
2647
2647
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
2648
- this.onManipulateImage(new z({
2648
+ this.onManipulateImage(new B({
2649
2649
  left: e || 0,
2650
2650
  top: t || 0
2651
2651
  }), {
@@ -2688,7 +2688,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2688
2688
  top: Math.round(t.top)
2689
2689
  };
2690
2690
  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);
2691
- }(S(S({}, this.getPublicProperties()), {}, {
2691
+ }(C(C({}, this.getPublicProperties()), {}, {
2692
2692
  positionRestrictions: st(this.positionRestrictions, this.visibleArea),
2693
2693
  coordinates: e
2694
2694
  })) : e;
@@ -2710,16 +2710,16 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2710
2710
  sizeRestrictions: this.sizeRestrictions,
2711
2711
  stencilSize: this.getStencilSize()
2712
2712
  });
2713
- return S(S({}, a), {}, { changed: !ze(a.visibleArea, t) || !ze(a.coordinates, n) });
2713
+ return C(C({}, a), {}, { changed: !Re(a.visibleArea, t) || !Re(a.coordinates, n) });
2714
2714
  },
2715
2715
  runAutoZoom: function(e) {
2716
- 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;
2716
+ 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
2717
  r && c && this.enableTransitions(), this.visibleArea = o, this.coordinates = s, r && c && this.debouncedDisableTransitions();
2718
2718
  },
2719
2719
  normalizeEvent: function(e) {
2720
2720
  return function(e) {
2721
2721
  var t = e.event, n = e.visibleArea, r = e.coefficient;
2722
- if (t.type === "manipulateImage") return M(M({}, t), {
2722
+ if (t.type === "manipulateImage") return N(N({}, t), {
2723
2723
  move: {
2724
2724
  left: t.move && t.move.left ? r * t.move.left : 0,
2725
2725
  top: t.move && t.move.top ? r * t.move.top : 0
@@ -2733,19 +2733,19 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2733
2733
  }
2734
2734
  });
2735
2735
  if (t.type === "resize") {
2736
- var i = M(M({}, t), { directions: M({}, t.directions) });
2737
- return B.forEach((function(e) {
2736
+ var i = N(N({}, t), { directions: N({}, t.directions) });
2737
+ return V.forEach((function(e) {
2738
2738
  i.directions[e] *= r;
2739
2739
  })), i;
2740
2740
  }
2741
2741
  if (t.type === "move") {
2742
- var a = M(M({}, t), { directions: M({}, t.directions) });
2743
- return Ie.forEach((function(e) {
2742
+ var a = N(N({}, t), { directions: N({}, t.directions) });
2743
+ return Fe.forEach((function(e) {
2744
2744
  a.directions[e] *= r;
2745
2745
  })), a;
2746
2746
  }
2747
2747
  return t;
2748
- }(S(S({}, this.getPublicProperties()), {}, { event: e }));
2748
+ }(C(C({}, this.getPublicProperties()), {}, { event: e }));
2749
2749
  },
2750
2750
  getCanvas: function() {
2751
2751
  if (this.$refs.canvas) {
@@ -2755,12 +2755,12 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2755
2755
  height: t.naturalHeight
2756
2756
  }, o = We(a, r), s = e.getContext("2d");
2757
2757
  e.height = o.height, e.width = o.width, s.save();
2758
- var c = X(U(M({
2758
+ var c = X(W(N({
2759
2759
  left: 0,
2760
2760
  top: 0
2761
2761
  }, a)), r);
2762
2762
  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;
2763
- }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = S({
2763
+ }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = C({
2764
2764
  minWidth: 0,
2765
2765
  minHeight: 0,
2766
2766
  maxWidth: 1 / 0,
@@ -2827,7 +2827,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2827
2827
  t ||= this.stencilSize ? at : it;
2828
2828
  var n = this.sizeRestrictions;
2829
2829
  n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
2830
- var r = I(t) ? t({
2830
+ var r = L(t) ? t({
2831
2831
  boundaries: this.boundaries,
2832
2832
  imageSize: this.imageSize,
2833
2833
  aspectRatio: this.getAspectRatio(),
@@ -2836,13 +2836,13 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2836
2836
  visibleArea: this.visibleArea
2837
2837
  }) : t, i = this.defaultPosition || rt, a = [r, function(t) {
2838
2838
  var n = t.coordinates;
2839
- return S({}, I(i) ? i({
2839
+ return C({}, L(i) ? i({
2840
2840
  coordinates: n,
2841
2841
  imageSize: e.imageSize,
2842
2842
  visibleArea: e.visibleArea
2843
2843
  }) : e.defaultPosition);
2844
2844
  }];
2845
- this.delayedTransforms && a.push.apply(a, w(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(a, !0), this.delayedTransforms = null;
2845
+ 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
2846
  }
2847
2847
  },
2848
2848
  clearImage: function() {
@@ -2872,7 +2872,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2872
2872
  cropper: n,
2873
2873
  imageSize: e.imageSize
2874
2874
  };
2875
- if (e.boundaries = I(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
2875
+ if (e.boundaries = L(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
2876
2876
  var t = e.cropper, n = e.imageSize, r = t.clientHeight, i = t.clientWidth, a = r, o = n.width * r / n.height;
2877
2877
  return o > i && (o = i, a = n.height * i / n.width), {
2878
2878
  width: o,
@@ -2889,10 +2889,10 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2889
2889
  },
2890
2890
  resetVisibleArea: function() {
2891
2891
  var e = this;
2892
- return this.appliedImageTransforms = S(S({}, this.defaultImageTransforms), {}, { flip: S({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
2892
+ return this.appliedImageTransforms = C(C({}, this.defaultImageTransforms), {}, { flip: C({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
2893
2893
  e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
2894
2894
  var t, n, r, i, a, o, s = e.defaultVisibleArea || ot;
2895
- e.visibleArea = I(s) ? s({
2895
+ e.visibleArea = L(s) ? s({
2896
2896
  imageSize: e.imageSize,
2897
2897
  boundaries: e.boundaries,
2898
2898
  coordinates: e.priority === "visible-area" ? null : e.coordinates,
@@ -2902,7 +2902,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2902
2902
  visibleArea: e.visibleArea,
2903
2903
  boundaries: e.boundaries,
2904
2904
  getAreaRestrictions: e.getAreaRestrictions
2905
- }, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = M({}, n), o = q(r), a.width / a.height !== o && (a.height = a.width / o), Z(a, i({
2905
+ }, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = N({}, n), o = J(r), a.width / a.height !== o && (a.height = a.width / o), Z(a, i({
2906
2906
  visibleArea: a,
2907
2907
  type: "move"
2908
2908
  }))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({
@@ -2943,7 +2943,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2943
2943
  var e, t = this;
2944
2944
  if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
2945
2945
  if (function(e) {
2946
- if (F(e)) return !1;
2946
+ if (I(e)) return !1;
2947
2947
  var t = window.location, n = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e) || [], r = {
2948
2948
  protocol: n[1] || "",
2949
2949
  host: n[2] || "",
@@ -2953,7 +2953,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2953
2953
  };
2954
2954
  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));
2955
2955
  }(this.src)) {
2956
- var n = L(this.crossOrigin) ? this.canvas : this.crossOrigin;
2956
+ var n = R(this.crossOrigin) ? this.canvas : this.crossOrigin;
2957
2957
  !0 === n && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
2958
2958
  }
2959
2959
  if (this.checkOrientation) {
@@ -2996,13 +2996,13 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
2996
2996
  },
2997
2997
  onParseImage: function(e) {
2998
2998
  var t = this, n = e.source, r = e.arrayBuffer, i = e.orientation;
2999
- 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) {
2999
+ this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? F(n) || !I(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
3000
3000
  for (var t = [], n = new Uint8Array(e); n.length > 0;) {
3001
3001
  var r = n.subarray(0, 8192);
3002
3002
  t.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), n = n.subarray(8192);
3003
3003
  }
3004
3004
  return "data:image/jpeg;base64," + btoa(t.join(""));
3005
- }(r) : this.imageAttributes.src = n, this.appliedImageTransforms = I(this.defaultTransforms) ? Tt(this.defaultTransforms()) : xe(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
3005
+ }(r) : this.imageAttributes.src = n, this.appliedImageTransforms = L(this.defaultTransforms) ? Tt(this.defaultTransforms()) : be(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
3006
3006
  var t = Tt({});
3007
3007
  if (e) switch (e) {
3008
3008
  case 2:
@@ -3026,7 +3026,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3026
3026
  case 8: t.rotate = -90;
3027
3027
  }
3028
3028
  return t;
3029
- }(i), this.defaultImageTransforms = S(S({}, this.appliedImageTransforms), {}, { flip: S({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3029
+ }(i), this.defaultImageTransforms = C(C({}, this.appliedImageTransforms), {}, { flip: C({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3030
3030
  var e = t.$refs.image;
3031
3031
  e && e.complete && (function(e) {
3032
3032
  return !!e.naturalWidth;
@@ -3042,7 +3042,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3042
3042
  onMove: function(e) {
3043
3043
  var t = this;
3044
3044
  this.transitionsOptions.enabled || this.awaitRender((function() {
3045
- t.coordinates = t.moveAlgorithm(S(S({}, t.getPublicProperties()), {}, {
3045
+ t.coordinates = t.moveAlgorithm(C(C({}, t.getPublicProperties()), {}, {
3046
3046
  positionRestrictions: st(t.positionRestrictions, t.visibleArea),
3047
3047
  coordinates: t.coordinates,
3048
3048
  event: t.normalizeEvent(e)
@@ -3053,7 +3053,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3053
3053
  var t = this;
3054
3054
  this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender((function() {
3055
3055
  var n = t.sizeRestrictions, r = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
3056
- t.coordinates = t.resizeAlgorithm(S(S({}, t.getPublicProperties()), {}, {
3056
+ t.coordinates = t.resizeAlgorithm(C(C({}, t.getPublicProperties()), {}, {
3057
3057
  positionRestrictions: st(t.positionRestrictions, t.visibleArea),
3058
3058
  sizeRestrictions: {
3059
3059
  maxWidth: Math.min(n.maxWidth, t.visibleArea.width),
@@ -3070,7 +3070,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3070
3070
  if (!this.transitionsOptions.enabled) {
3071
3071
  var n = t.transitions, r = n !== void 0 && n, i = t.normalize, a = i === void 0 || i;
3072
3072
  r && this.enableTransitions();
3073
- var o = ct(S(S({}, this.getPublicProperties()), {}, {
3073
+ var o = ct(C(C({}, this.getPublicProperties()), {}, {
3074
3074
  event: a ? this.normalizeEvent(e) : e,
3075
3075
  getAreaRestrictions: this.getAreaRestrictions,
3076
3076
  imageRestriction: this.imageRestriction,
@@ -3098,9 +3098,9 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3098
3098
  var s = this.$refs.stencil.aspectRatios();
3099
3099
  t = s.minimum, n = s.maximum;
3100
3100
  }
3101
- if (L(t) && (t = L(i) ? a : i), L(n) && (n = L(i) ? o : i), !e && (L(t) || L(n))) {
3102
- var c = this.getStencilSize(), l = c ? q(c) : null;
3103
- L(t) && (t = Ce(l) ? l : void 0), L(n) && (n = Ce(l) ? l : void 0);
3101
+ if (R(t) && (t = R(i) ? a : i), R(n) && (n = R(i) ? o : i), !e && (R(t) || R(n))) {
3102
+ var c = this.getStencilSize(), l = c ? J(c) : null;
3103
+ R(t) && (t = Se(l) ? l : void 0), R(n) && (n = Se(l) ? l : void 0);
3104
3104
  }
3105
3105
  return {
3106
3106
  minimum: t,
@@ -3118,7 +3118,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3118
3118
  coefficient: this.coefficient,
3119
3119
  coordinates: this.coordinates,
3120
3120
  aspectRatio: this.getAspectRatio(!0)
3121
- }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(q(i = I(n) ? n({
3121
+ }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(J(i = L(n) ? n({
3122
3122
  boundaries: t,
3123
3123
  aspectRatio: r
3124
3124
  }) : n), r) && (i = Q({
@@ -3144,8 +3144,8 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3144
3144
  width: i.width,
3145
3145
  height: i.height,
3146
3146
  aspectRatio: {
3147
- minimum: q(i),
3148
- maximum: q(i)
3147
+ minimum: J(i),
3148
+ maximum: J(i)
3149
3149
  }
3150
3150
  })), i;
3151
3151
  var e, t, n, r, i;
@@ -3163,13 +3163,13 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3163
3163
  };
3164
3164
  },
3165
3165
  defaultCoordinates: function() {
3166
- return S({}, Re);
3166
+ return C({}, Le);
3167
3167
  },
3168
3168
  flip: function(e, t) {
3169
3169
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
3170
3170
  if (!this.transitionsActive) {
3171
3171
  r && this.enableTransitions();
3172
- var i = S({}, this.imageTransforms.flip), a = ut({
3172
+ var i = C({}, this.imageTransforms.flip), a = ut({
3173
3173
  flip: {
3174
3174
  horizontal: e ? !i.horizontal : i.horizontal,
3175
3175
  vertical: t ? !i.vertical : i.vertical
@@ -3191,7 +3191,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3191
3191
  var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).transitions, n = t === void 0 || t;
3192
3192
  if (!this.transitionsActive) {
3193
3193
  n && this.enableTransitions();
3194
- var r = S({}, this.imageSize);
3194
+ var r = C({}, this.imageSize);
3195
3195
  this.appliedImageTransforms.rotate += e;
3196
3196
  var i = lt({
3197
3197
  visibleArea: this.visibleArea,
@@ -3223,7 +3223,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
3223
3223
  style: { display: "none" }
3224
3224
  };
3225
3225
  Rt.render = function(e, t, r, o, s, c) {
3226
- return _(), b("div", {
3226
+ return _(), x("div", {
3227
3227
  ref: "cropper",
3228
3228
  class: c.classes.cropper
3229
3229
  }, [d("div", {
@@ -3232,7 +3232,7 @@ Rt.render = function(e, t, r, o, s, c) {
3232
3232
  }, null, 2), d("div", {
3233
3233
  class: c.classes.boundaries,
3234
3234
  style: c.boundariesStyle
3235
- }, [(_(), b(a(r.backgroundWrapperComponent), {
3235
+ }, [(_(), x(a(r.backgroundWrapperComponent), {
3236
3236
  class: c.classes.cropperWrapper,
3237
3237
  "wheel-resize": c.settings.resizeImage.wheel,
3238
3238
  "touch-resize": c.settings.resizeImage.touch,
@@ -3241,7 +3241,7 @@ Rt.render = function(e, t, r, o, s, c) {
3241
3241
  onMove: c.onManipulateImage,
3242
3242
  onResize: c.onManipulateImage
3243
3243
  }, {
3244
- default: u((function() {
3244
+ default: i((function() {
3245
3245
  return [
3246
3246
  d("div", {
3247
3247
  class: c.classes.background,
@@ -3253,13 +3253,13 @@ Rt.render = function(e, t, r, o, s, c) {
3253
3253
  src: s.imageAttributes.src,
3254
3254
  class: c.classes.image,
3255
3255
  style: c.imageStyle,
3256
- onMousedown: t[1] ||= ie((function() {}), ["prevent"])
3256
+ onMousedown: t[1] ||= re((function() {}), ["prevent"])
3257
3257
  }, null, 46, ["crossorigin", "src"])], 2),
3258
3258
  d("div", {
3259
3259
  class: c.classes.foreground,
3260
3260
  style: c.boundariesStyle
3261
3261
  }, null, 6),
3262
- i((_(), b(a(r.stencilComponent), n({
3262
+ u((_(), x(a(r.stencilComponent), n({
3263
3263
  ref: "stencil",
3264
3264
  image: c.image,
3265
3265
  coordinates: s.coordinates,
@@ -3279,9 +3279,9 @@ Rt.render = function(e, t, r, o, s, c) {
3279
3279
  "onResizeEnd",
3280
3280
  "onMove",
3281
3281
  "onMoveEnd"
3282
- ])), [[ae, s.imageLoaded]]),
3283
- r.canvas ? (_(), b("canvas", zt, null, 512)) : m("", !0),
3284
- r.canvas ? (_(), b("canvas", Bt, null, 512)) : m("", !0)
3282
+ ])), [[ie, s.imageLoaded]]),
3283
+ r.canvas ? (_(), x("canvas", zt, null, 512)) : m("", !0),
3284
+ r.canvas ? (_(), x("canvas", Bt, null, 512)) : m("", !0)
3285
3285
  ];
3286
3286
  })),
3287
3287
  _: 1
@@ -3355,7 +3355,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3355
3355
  role: "alert",
3356
3356
  class: "tpl:shrink-0 tpl:px-5 tpl:pt-3 tpl:text-xs",
3357
3357
  style: { color: "var(--tpl-danger)" }
3358
- }, 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({
3358
+ }, 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__*/ oe(/* @__PURE__ */ S({
3359
3359
  __name: "MediaEditModal",
3360
3360
  props: {
3361
3361
  visible: { type: Boolean },
@@ -3365,15 +3365,15 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3365
3365
  },
3366
3366
  emits: ["close"],
3367
3367
  setup(n, { emit: r }) {
3368
- let a = n, c = r, { t: x } = de(), ae = t(ue, null), se = t(ce, l(null)), ve = x.mediaLibrary, { isImageMimeType: S } = le(), C = l(""), ye = l(""), w = l(null), T = l("free"), E = l(void 0), D = l(void 0), O = l(""), k = l(""), A = l(void 0), j = l(null), be = l(!1), M = l(!1), N = l(!1), P = l(null), F = null, I = [
3368
+ let a = n, l = r, { t: S } = ue(), ie = t(le, null), oe = t(se, e(null)), _e = S.mediaLibrary, { isImageMimeType: C } = ce(), w = e(""), ve = e(""), T = e(null), E = e("free"), D = e(void 0), O = e(void 0), k = e(""), A = e(""), j = e(void 0), M = e(null), ye = e(!1), N = e(!1), P = e(!1), F = e(null), I = null, L = [
3369
3369
  "image/jpeg",
3370
3370
  "image/png",
3371
3371
  "image/webp"
3372
- ], L = p(() => !a.item || !a.canCrop ? !1 : I.includes(a.item.mimeType ?? "")), xe = p(() => E.value !== void 0 || D.value !== void 0), Se = p(() => T.value === "original" ? A.value : pe[T.value]), R = p(() => j.value ? _e(j.value.width, j.value.height, E.value, D.value) : null);
3373
- ne(() => a.visible, (e) => {
3374
- e && a.item && (C.value = a.item.filename ?? "", ye.value = a.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, a.item.width && a.item.height && (A.value = a.item.width / a.item.height));
3372
+ ], R = p(() => !a.item || !a.canCrop ? !1 : L.includes(a.item.mimeType ?? "")), be = p(() => D.value !== void 0 || O.value !== void 0), xe = p(() => E.value === "original" ? j.value : fe[E.value]), z = p(() => M.value ? ge(M.value.width, M.value.height, D.value, O.value) : null);
3373
+ te(() => a.visible, (e) => {
3374
+ e && a.item && (w.value = a.item.filename ?? "", ve.value = a.item.alt ?? "", E.value = "free", D.value = void 0, O.value = void 0, k.value = "", A.value = "", j.value = void 0, M.value = null, ye.value = !1, P.value = !1, F.value = null, I = null, a.item.width && a.item.height && (j.value = a.item.width / a.item.height));
3375
3375
  }, { immediate: !0 });
3376
- function Ce(e) {
3376
+ function Se(e) {
3377
3377
  return {
3378
3378
  left: Math.round(e.left),
3379
3379
  top: Math.round(e.top),
@@ -3381,67 +3381,67 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3381
3381
  height: Math.round(e.height)
3382
3382
  };
3383
3383
  }
3384
- function we(e, t) {
3384
+ function Ce(e, t) {
3385
3385
  return e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height;
3386
3386
  }
3387
- function Te(e) {
3387
+ function we(e) {
3388
3388
  if (!e.coordinates) return;
3389
- let t = Ce(e.coordinates);
3390
- j.value = {
3389
+ let t = Se(e.coordinates);
3390
+ M.value = {
3391
3391
  width: t.width,
3392
3392
  height: t.height
3393
- }, F ? N.value = !we(t, F) : F = t;
3393
+ }, I ? P.value = !Ce(t, I) : I = t;
3394
3394
  }
3395
- function z({ imageSize: e }) {
3395
+ function B({ imageSize: e }) {
3396
3396
  return {
3397
3397
  width: e.width,
3398
3398
  height: e.height
3399
3399
  };
3400
3400
  }
3401
- function Ee() {
3402
- be.value = !0, !A.value && a.item?.width && a.item?.height && (A.value = a.item.width / a.item.height);
3401
+ function Te() {
3402
+ ye.value = !0, !j.value && a.item?.width && a.item?.height && (j.value = a.item.width / a.item.height);
3403
3403
  }
3404
- function De(e) {
3404
+ function Ee(e) {
3405
3405
  let t = e.target.value;
3406
- O.value = t, E.value = t && parseInt(t, 10) || void 0;
3406
+ k.value = t, D.value = t && parseInt(t, 10) || void 0;
3407
3407
  }
3408
- function Oe(e) {
3408
+ function De(e) {
3409
3409
  let t = e.target.value;
3410
- k.value = t, D.value = t && parseInt(t, 10) || void 0;
3410
+ A.value = t, O.value = t && parseInt(t, 10) || void 0;
3411
3411
  }
3412
- async function ke() {
3413
- let e = C.value.trim();
3414
- if (!e || !a.item || M.value) return;
3415
- let t = a.item, n = S(t.mimeType ?? ""), r;
3416
- if (M.value = !0, P.value = null, L.value && w.value && (N.value || xe.value)) try {
3417
- let { canvas: e } = w.value.getResult();
3412
+ async function Oe() {
3413
+ let e = w.value.trim();
3414
+ if (!e || !a.item || N.value) return;
3415
+ let t = a.item, n = C(t.mimeType ?? ""), r;
3416
+ if (N.value = !0, F.value = null, R.value && T.value && (P.value || be.value)) try {
3417
+ let { canvas: e } = T.value.getResult();
3418
3418
  if (!e) throw Error("The cropper returned no canvas");
3419
- let n = he(e, E.value, D.value);
3420
- (N.value || n !== e) && (r = { file: await ge(n, t.filename ?? "image", me(t.mimeType ?? "")) });
3419
+ let n = me(e, D.value, O.value);
3420
+ (P.value || n !== e) && (r = { file: await he(n, t.filename ?? "image", pe(t.mimeType ?? "")) });
3421
3421
  } catch {
3422
- P.value = "crop", M.value = !1;
3422
+ F.value = "crop", N.value = !1;
3423
3423
  return;
3424
3424
  }
3425
- let i = await a.save(t.id, e, n ? ye.value : void 0, r);
3426
- M.value = !1, i === "saved" ? c("close") : (i === "replaced" && Ae(), P.value = "save");
3425
+ let i = await a.save(t.id, e, n ? ve.value : void 0, r);
3426
+ N.value = !1, i === "saved" ? l("close") : (i === "replaced" && ke(), F.value = "save");
3427
3427
  }
3428
- function Ae() {
3429
- let e = w.value?.getResult().coordinates;
3430
- e && (F = Ce(e)), N.value = !1, E.value = void 0, D.value = void 0, O.value = "", k.value = "";
3428
+ function ke() {
3429
+ let e = T.value?.getResult().coordinates;
3430
+ e && (I = Se(e)), P.value = !1, D.value = void 0, O.value = void 0, k.value = "", A.value = "";
3431
3431
  }
3432
- function je() {
3433
- M.value || c("close");
3432
+ function Ae() {
3433
+ N.value || l("close");
3434
3434
  }
3435
- let Me = l(null), Ne = p(() => a.visible && a.item !== null);
3436
- fe(Me, Ne);
3437
- function B(e) {
3438
- if (e.stopPropagation(), e.key === "Enter" && !M.value) {
3435
+ let je = e(null), Me = p(() => a.visible && a.item !== null);
3436
+ de(je, Me);
3437
+ function V(e) {
3438
+ if (e.stopPropagation(), e.key === "Enter" && !N.value) {
3439
3439
  if (e.target?.closest("textarea, [contenteditable]")) return;
3440
- e.preventDefault(), ke();
3440
+ e.preventDefault(), Oe();
3441
3441
  }
3442
- e.key === "Escape" && je();
3442
+ e.key === "Escape" && Ae();
3443
3443
  }
3444
- return (t, r) => (_(), b(f, { to: y(se) || "body" }, [d(oe, {
3444
+ return (e, t) => (_(), x(f, { to: b(oe) || "body" }, [d(ae, {
3445
3445
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
3446
3446
  "enter-from-class": "tpl:opacity-0",
3447
3447
  "enter-to-class": "tpl:opacity-100",
@@ -3449,54 +3449,54 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3449
3449
  "leave-from-class": "tpl:opacity-100",
3450
3450
  "leave-to-class": "tpl:opacity-0"
3451
3451
  }, {
3452
- default: u(() => [n.visible && n.item ? (_(), h("div", {
3452
+ default: i(() => [n.visible && n.item ? (_(), h("div", {
3453
3453
  key: 0,
3454
- "data-tpl-theme": y(ae),
3455
- class: e([y(se) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3454
+ "data-tpl-theme": b(ie),
3455
+ class: v([b(oe) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3456
3456
  style: { "background-color": "var(--tpl-overlay)" },
3457
- onClick: ie(je, ["self"]),
3458
- onKeydown: B
3459
- }, [v("div", {
3457
+ onClick: re(Ae, ["self"]),
3458
+ onKeydown: V
3459
+ }, [y("div", {
3460
3460
  ref_key: "dialogRef",
3461
- ref: Me,
3461
+ ref: je,
3462
3462
  role: "dialog",
3463
3463
  "aria-modal": "true",
3464
3464
  "aria-labelledby": "tpl-media-edit-title",
3465
- class: e(["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"]),
3465
+ class: v(["tpl:flex tpl:max-h-[90%] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", R.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
3466
3466
  style: { "background-color": "var(--tpl-bg-elevated)" }
3467
3467
  }, [
3468
- v("div", Ht, [v("h3", Ut, o(y(x).mediaLibrary.editFile), 1)]),
3469
- v("div", Wt, [
3470
- L.value ? (_(), h("div", Gt, [v("div", Kt, [d(y(Rt), {
3468
+ y("div", Ht, [y("h3", Ut, c(b(S).mediaLibrary.editFile), 1)]),
3469
+ y("div", Wt, [
3470
+ R.value ? (_(), h("div", Gt, [y("div", Kt, [d(b(Rt), {
3471
3471
  ref_key: "cropperRef",
3472
- ref: w,
3472
+ ref: T,
3473
3473
  src: n.item.url,
3474
- "stencil-props": { aspectRatio: Se.value },
3474
+ "stencil-props": { aspectRatio: xe.value },
3475
3475
  class: "tpl:h-full tpl:w-full",
3476
3476
  "background-class": "tpl-cropper-background",
3477
- "default-size": z,
3478
- onChange: Te,
3479
- onReady: Ee
3480
- }, null, 8, ["src", "stencil-props"])]), v("div", qt, [
3481
- v("div", null, [v("label", Jt, o(y(x).mediaLibrary.cropAspectRatio), 1), v("div", Yt, [(_(), h(te, null, s([
3477
+ "default-size": B,
3478
+ onChange: we,
3479
+ onReady: Te
3480
+ }, null, 8, ["src", "stencil-props"])]), y("div", qt, [
3481
+ y("div", null, [y("label", Jt, c(b(S).mediaLibrary.cropAspectRatio), 1), y("div", Yt, [(_(), h(ee, null, s([
3482
3482
  "free",
3483
3483
  "square",
3484
3484
  "landscape43",
3485
3485
  "landscape169",
3486
3486
  "original"
3487
- ], (e) => v("button", {
3487
+ ], (e) => y("button", {
3488
3488
  key: e,
3489
3489
  type: "button",
3490
3490
  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",
3491
- style: ee({
3492
- borderColor: T.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
3493
- backgroundColor: T.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
3494
- color: T.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
3491
+ style: o({
3492
+ borderColor: E.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
3493
+ backgroundColor: E.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
3494
+ color: E.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
3495
3495
  }),
3496
- onClick: (t) => T.value = e
3497
- }, o(y(ve)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
3498
- v("div", Zt, [v("div", Qt, [v("label", $t, [g(o(y(x).mediaLibrary.cropMaxWidth) + " ", 1), v("span", en, o(y(x).mediaLibrary.cropOptional), 1)]), v("div", tn, [v("input", {
3499
- value: O.value,
3496
+ onClick: (t) => E.value = e
3497
+ }, c(b(_e)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
3498
+ y("div", Zt, [y("div", Qt, [y("label", $t, [g(c(b(S).mediaLibrary.cropMaxWidth) + " ", 1), y("span", en, c(b(S).mediaLibrary.cropOptional), 1)]), y("div", tn, [y("input", {
3499
+ value: k.value,
3500
3500
  type: "number",
3501
3501
  min: "1",
3502
3502
  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",
@@ -3505,10 +3505,10 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3505
3505
  "background-color": "var(--tpl-bg)",
3506
3506
  color: "var(--tpl-text)"
3507
3507
  },
3508
- placeholder: j.value?.width?.toString() || "",
3509
- onInput: De
3510
- }, null, 40, nn), v("span", rn, o(y(x).mediaLibrary.cropPixels), 1)])]), v("div", an, [v("label", on, [g(o(y(x).mediaLibrary.cropMaxHeight) + " ", 1), v("span", sn, o(y(x).mediaLibrary.cropOptional), 1)]), v("div", cn, [v("input", {
3511
- value: k.value,
3508
+ placeholder: M.value?.width?.toString() || "",
3509
+ onInput: Ee
3510
+ }, null, 40, nn), y("span", rn, c(b(S).mediaLibrary.cropPixels), 1)])]), y("div", an, [y("label", on, [g(c(b(S).mediaLibrary.cropMaxHeight) + " ", 1), y("span", sn, c(b(S).mediaLibrary.cropOptional), 1)]), y("div", cn, [y("input", {
3511
+ value: A.value,
3512
3512
  type: "number",
3513
3513
  min: "1",
3514
3514
  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",
@@ -3517,14 +3517,14 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3517
3517
  "background-color": "var(--tpl-bg)",
3518
3518
  color: "var(--tpl-text)"
3519
3519
  },
3520
- placeholder: j.value?.height?.toString() || "",
3521
- onInput: Oe
3522
- }, null, 40, ln), v("span", un, o(y(x).mediaLibrary.cropPixels), 1)])])]),
3523
- R.value ? (_(), h("div", dn, [v("span", null, o(y(x).mediaLibrary.cropOutputSize) + ": ", 1), v("span", fn, o(R.value.width) + " x " + o(R.value.height) + " " + o(y(x).mediaLibrary.cropPixels), 1)])) : m("", !0)
3520
+ placeholder: M.value?.height?.toString() || "",
3521
+ onInput: De
3522
+ }, null, 40, ln), y("span", un, c(b(S).mediaLibrary.cropPixels), 1)])])]),
3523
+ z.value ? (_(), h("div", dn, [y("span", null, c(b(S).mediaLibrary.cropOutputSize) + ": ", 1), y("span", fn, c(z.value.width) + " x " + c(z.value.height) + " " + c(b(S).mediaLibrary.cropPixels), 1)])) : m("", !0)
3524
3524
  ])])) : m("", !0),
3525
- v("div", pn, [v("label", mn, o(y(x).mediaLibrary.fileName), 1), i(v("input", {
3525
+ y("div", pn, [y("label", mn, c(b(S).mediaLibrary.fileName), 1), u(y("input", {
3526
3526
  id: "tpl-media-filename",
3527
- "onUpdate:modelValue": r[0] ||= (e) => C.value = e,
3527
+ "onUpdate:modelValue": t[0] ||= (e) => w.value = e,
3528
3528
  type: "text",
3529
3529
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
3530
3530
  style: {
@@ -3532,11 +3532,11 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3532
3532
  "background-color": "var(--tpl-bg)",
3533
3533
  color: "var(--tpl-text)"
3534
3534
  },
3535
- autofocus: !L.value
3536
- }, null, 8, hn), [[re, C.value]])]),
3537
- y(S)(n.item.mimeType ?? "") ? (_(), h("div", gn, [v("label", _n, o(y(x).mediaLibrary.altText), 1), i(v("input", {
3535
+ autofocus: !R.value
3536
+ }, null, 8, hn), [[ne, w.value]])]),
3537
+ b(C)(n.item.mimeType ?? "") ? (_(), h("div", gn, [y("label", _n, c(b(S).mediaLibrary.altText), 1), u(y("input", {
3538
3538
  id: "tpl-media-alt",
3539
- "onUpdate:modelValue": r[1] ||= (e) => ye.value = e,
3539
+ "onUpdate:modelValue": t[1] ||= (e) => ve.value = e,
3540
3540
  type: "text",
3541
3541
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
3542
3542
  style: {
@@ -3544,28 +3544,28 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3544
3544
  "background-color": "var(--tpl-bg)",
3545
3545
  color: "var(--tpl-text)"
3546
3546
  },
3547
- placeholder: y(x).mediaLibrary.altTextPlaceholder
3548
- }, null, 8, vn), [[re, ye.value]])])) : m("", !0)
3547
+ placeholder: b(S).mediaLibrary.altTextPlaceholder
3548
+ }, null, 8, vn), [[ne, ve.value]])])) : m("", !0)
3549
3549
  ]),
3550
- P.value ? (_(), h("p", yn, o(P.value === "crop" ? y(x).mediaLibrary.editCropError : y(x).mediaLibrary.editSaveError), 1)) : m("", !0),
3551
- v("div", bn, [v("button", {
3550
+ F.value ? (_(), h("p", yn, c(F.value === "crop" ? b(S).mediaLibrary.editCropError : b(S).mediaLibrary.editSaveError), 1)) : m("", !0),
3551
+ y("div", bn, [y("button", {
3552
3552
  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",
3553
3553
  style: {
3554
3554
  "border-color": "var(--tpl-border)",
3555
3555
  color: "var(--tpl-text)",
3556
3556
  "background-color": "var(--tpl-bg)"
3557
3557
  },
3558
- disabled: M.value,
3559
- onClick: je
3560
- }, o(y(x).mediaLibrary.cancel), 9, xn), v("button", {
3558
+ disabled: N.value,
3559
+ onClick: Ae
3560
+ }, c(b(S).mediaLibrary.cancel), 9, xn), y("button", {
3561
3561
  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",
3562
3562
  style: {
3563
3563
  "background-color": "var(--tpl-primary)",
3564
3564
  color: "var(--tpl-on-primary)"
3565
3565
  },
3566
- disabled: M.value,
3567
- onClick: ke
3568
- }, o(M.value ? y(x).mediaLibrary.saving : y(x).mediaLibrary.saveChanges), 9, Sn)])
3566
+ disabled: N.value,
3567
+ onClick: Oe
3568
+ }, c(N.value ? b(S).mediaLibrary.saving : b(S).mediaLibrary.saveChanges), 9, Sn)])
3569
3569
  ], 2)], 42, Vt)) : m("", !0)]),
3570
3570
  _: 1
3571
3571
  })], 8, ["to"]));