@templatical/editor 0.52.1 → 0.54.0

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 (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,15 +1,15 @@
1
- import { C as e, D as t, G as n, I as r, L as i, P as a, R as o, V as s, W as c, _ as l, b as u, dt as d, et as f, f as p, ft as m, g as h, h as g, k as _, l as v, m as y, n as ee, o as te, p as ne, s as b, st as x, u as re, ut as ie, x as S, z as ae } from "./draggable-Du8AUMFT.js";
2
- import { t as oe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
- import { a as se, n as ce, o as le, r as ue, t as de } from "./editor-modal-CyCe560f.js";
1
+ import { A as e, B as t, C as n, F as r, G as i, H as a, K as o, L as s, O as c, R as l, _ as u, b as d, ct as f, dt as p, f as m, g as h, h as g, l as _, m as v, mt as y, n as ee, o as te, p as ne, pt as re, s as b, tt as x, u as ie, x as S, z as C } from "./draggable-DepKdldn.js";
2
+ import { t as ae } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
+ import { a as oe, n as se, o as ce, r as le, t as ue } from "./editor-modal-erQEOHZN.js";
4
4
  // ../media-library/src/composables/useImageCrop.ts
5
- var fe = {
5
+ var de = {
6
6
  free: void 0,
7
7
  square: 1,
8
8
  landscape43: 4 / 3,
9
9
  landscape169: 16 / 9,
10
10
  original: void 0
11
11
  };
12
- function pe(e) {
12
+ function fe(e) {
13
13
  return e === "image/png" || e === "image/gif" ? {
14
14
  mimeType: "image/png",
15
15
  quality: 1
@@ -21,7 +21,7 @@ function pe(e) {
21
21
  quality: .92
22
22
  };
23
23
  }
24
- function me(e, t, n) {
24
+ function pe(e, t, n) {
25
25
  let r = e.width, i = e.height;
26
26
  if (!t && !n) return e;
27
27
  let a = r, o = i;
@@ -35,7 +35,7 @@ function me(e, t, n) {
35
35
  let c = s.getContext("2d");
36
36
  return c && (c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(e, 0, 0, a, o)), s;
37
37
  }
38
- function he(e, t, n) {
38
+ function me(e, t, n) {
39
39
  return new Promise((r, i) => {
40
40
  e.toBlob((e) => {
41
41
  if (!e) {
@@ -47,7 +47,7 @@ function he(e, t, n) {
47
47
  }, n.mimeType, n.quality);
48
48
  });
49
49
  }
50
- function ge(e, t, n, r) {
50
+ function he(e, t, n, r) {
51
51
  let i = e, a = t;
52
52
  if (n && i > n) {
53
53
  let e = n / i;
@@ -63,7 +63,7 @@ function ge(e, t, n, r) {
63
63
  };
64
64
  }
65
65
  // ../../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
66
- function _e(e, t) {
66
+ function ge(e, t) {
67
67
  var n = Object.keys(e);
68
68
  if (Object.getOwnPropertySymbols) {
69
69
  var r = Object.getOwnPropertySymbols(e);
@@ -73,18 +73,18 @@ function _e(e, t) {
73
73
  }
74
74
  return n;
75
75
  }
76
- function C(e) {
76
+ function w(e) {
77
77
  for (var t = 1; t < arguments.length; t++) {
78
78
  var n = arguments[t] == null ? {} : arguments[t];
79
- t % 2 ? _e(Object(n), !0).forEach((function(t) {
80
- w(e, t, n[t]);
81
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _e(Object(n)).forEach((function(t) {
79
+ t % 2 ? ge(Object(n), !0).forEach((function(t) {
80
+ T(e, t, n[t]);
81
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ge(Object(n)).forEach((function(t) {
82
82
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
83
83
  }));
84
84
  }
85
85
  return e;
86
86
  }
87
- function w(e, t, n) {
87
+ function T(e, t, n) {
88
88
  return t in e ? Object.defineProperty(e, t, {
89
89
  value: n,
90
90
  enumerable: !0,
@@ -92,7 +92,7 @@ function w(e, t, n) {
92
92
  writable: !0
93
93
  }) : e[t] = n, e;
94
94
  }
95
- function ve(e, t) {
95
+ function _e(e, t) {
96
96
  if (e == null) return {};
97
97
  var n, r, i = function(e, t) {
98
98
  if (e == null) return {};
@@ -106,28 +106,28 @@ function ve(e, t) {
106
106
  }
107
107
  return i;
108
108
  }
109
- function T(e) {
109
+ function E(e) {
110
110
  return function(e) {
111
- if (Array.isArray(e)) return E(e);
111
+ if (Array.isArray(e)) return D(e);
112
112
  }(e) || function(e) {
113
113
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
114
114
  }(e) || function(e, t) {
115
115
  if (e) {
116
- if (typeof e == "string") return E(e, t);
116
+ if (typeof e == "string") return D(e, t);
117
117
  var n = Object.prototype.toString.call(e).slice(8, -1);
118
118
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
119
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return E(e, t);
119
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return D(e, t);
120
120
  }
121
121
  }(e) || function() {
122
122
  throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
123
123
  }();
124
124
  }
125
- function E(e, t) {
125
+ function D(e, t) {
126
126
  (t == null || t > e.length) && (t = e.length);
127
127
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
128
128
  return r;
129
129
  }
130
- var D = function(e) {
130
+ var O = function(e) {
131
131
  (function() {
132
132
  var t = {}.hasOwnProperty;
133
133
  function n() {
@@ -151,15 +151,15 @@ var D = function(e) {
151
151
  }
152
152
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
153
153
  })();
154
- }, O, k, A = (D(k = {
155
- path: O,
154
+ }, k, A, j = (O(A = {
155
+ path: k,
156
156
  exports: {},
157
157
  require: function(e, t) {
158
158
  return function() {
159
159
  throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
160
- }(t == null && k.path);
160
+ }(t == null && A.path);
161
161
  }
162
- }, k.exports), k.exports), j = function(e) {
162
+ }, A.exports), A.exports), M = function(e) {
163
163
  return function(t, n) {
164
164
  if (!t) return e;
165
165
  var r;
@@ -171,7 +171,7 @@ var D = function(e) {
171
171
  }), "") : "");
172
172
  };
173
173
  };
174
- function M(e, t, n) {
174
+ function N(e, t, n) {
175
175
  var r, i, a, o, s;
176
176
  function c() {
177
177
  var l = Date.now() - o;
@@ -189,65 +189,65 @@ function M(e, t, n) {
189
189
  r &&= (s = e.apply(a, i), a = i = null, clearTimeout(r), null);
190
190
  }, l;
191
191
  }
192
- M.debounce = M;
193
- var ye = M, N = function() {
194
- return N = Object.assign || function(e) {
192
+ N.debounce = N;
193
+ var ve = N, P = function() {
194
+ return P = Object.assign || function(e) {
195
195
  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]);
196
196
  return e;
197
- }, N.apply(this, arguments);
197
+ }, P.apply(this, arguments);
198
198
  };
199
- function P(e, t) {
199
+ function F(e, t) {
200
200
  var n, r;
201
201
  return e && t ? (n = "" + e + t[0].toUpperCase() + t.slice(1), r = e + "-" + t) : (n = e || t, r = e || t), {
202
202
  name: n,
203
203
  classname: r
204
204
  };
205
205
  }
206
- function F(e) {
206
+ function I(e) {
207
207
  return /^blob:/.test(e);
208
208
  }
209
- function I(e) {
210
- return F(e) || function(e) {
209
+ function L(e) {
210
+ return I(e) || function(e) {
211
211
  return /^data:/.test(e);
212
212
  }(e);
213
213
  }
214
- function L(e) {
214
+ function R(e) {
215
215
  return !!(e && e.constructor && e.call && e.apply);
216
216
  }
217
- function R(e) {
217
+ function z(e) {
218
218
  return e === void 0;
219
219
  }
220
- function be(e) {
220
+ function ye(e) {
221
221
  return typeof e == "object" && !!e;
222
222
  }
223
- function xe(e, t, n) {
223
+ function be(e, t, n) {
224
224
  var r = {};
225
- return be(e) ? (Object.keys(t).forEach((function(i) {
226
- 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];
225
+ return ye(e) ? (Object.keys(t).forEach((function(i) {
226
+ r[i] = z(e[i]) ? t[i] : ye(t[i]) ? ye(e[i]) ? be(e[i], t[i], n[i]) : e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? !!e[i] : e[i];
227
227
  })), r) : e ? t : n;
228
228
  }
229
- function z(e) {
229
+ function B(e) {
230
230
  var t = Number(e);
231
231
  return Number.isNaN(t) ? e : t;
232
232
  }
233
- function Se(e) {
233
+ function xe(e) {
234
234
  return typeof (e == "number" || function(e) {
235
235
  return typeof e == "object" && !!e;
236
- }(e) && toString.call(e) == "[object Number]") && !Ce(e);
236
+ }(e) && toString.call(e) == "[object Number]") && !Se(e);
237
237
  }
238
- function Ce(e) {
238
+ function Se(e) {
239
239
  return e != e;
240
240
  }
241
- function we(e, t) {
241
+ function Ce(e, t) {
242
242
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
243
243
  }
244
- var B = function(e, t) {
244
+ var V = function(e, t) {
245
245
  e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
246
- }, Te = function(e, t) {
246
+ }, we = function(e, t) {
247
247
  t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
248
- }, Ee = function(e) {
248
+ }, Te = function(e) {
249
249
  this.type = "move", this.directions = e;
250
- }, De = function() {
250
+ }, Ee = function() {
251
251
  function e(e, t, n, r, i) {
252
252
  this.type = "drag", this.nativeEvent = e, this.position = n, this.previousPosition = r, this.element = t, this.anchor = i;
253
253
  }
@@ -265,7 +265,7 @@ var B = function(e, t) {
265
265
  top: 0
266
266
  };
267
267
  }, e;
268
- }(), Oe = {
268
+ }(), De = {
269
269
  name: "DraggableElement",
270
270
  props: { classname: { type: String } },
271
271
  beforeMount: function() {
@@ -286,7 +286,7 @@ var B = function(e, t) {
286
286
  this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
287
287
  },
288
288
  onTouchStart: function(e) {
289
- 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) {
289
+ e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = E(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
290
290
  return {
291
291
  clientX: t.clientX + n.clientX / e.touches.length,
292
292
  clientY: t.clientY + n.clientY / e.touches.length
@@ -332,11 +332,11 @@ var B = function(e, t) {
332
332
  };
333
333
  },
334
334
  processMove: function(e, t) {
335
- var n = T(t);
335
+ var n = E(t);
336
336
  if (this.touches.length) {
337
337
  if (this.touches.length === 1 && n.length === 1) {
338
338
  var r = this.$refs.draggable;
339
- this.$emit("drag", new De(e, r, {
339
+ this.$emit("drag", new Ee(e, r, {
340
340
  left: n[0].clientX,
341
341
  top: n[0].clientY
342
342
  }, {
@@ -358,27 +358,27 @@ var B = function(e, t) {
358
358
  "enter"
359
359
  ]
360
360
  };
361
- Oe.render = function(e, t, n, r, o, s) {
362
- return a(), g("div", {
361
+ De.render = function(e, t, n, i, a, o) {
362
+ return r(), g("div", {
363
363
  ref: "draggable",
364
364
  class: n.classname,
365
365
  onTouchstart: t[1] ||= function() {
366
- return s.onTouchStart && s.onTouchStart.apply(s, arguments);
366
+ return o.onTouchStart && o.onTouchStart.apply(o, arguments);
367
367
  },
368
368
  onMousedown: t[2] ||= function() {
369
- return s.onMouseDown && s.onMouseDown.apply(s, arguments);
369
+ return o.onMouseDown && o.onMouseDown.apply(o, arguments);
370
370
  },
371
371
  onMouseover: t[3] ||= function() {
372
- return s.onMouseOver && s.onMouseOver.apply(s, arguments);
372
+ return o.onMouseOver && o.onMouseOver.apply(o, arguments);
373
373
  },
374
374
  onMouseleave: t[4] ||= function() {
375
- return s.onMouseLeave && s.onMouseLeave.apply(s, arguments);
375
+ return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
376
376
  }
377
- }, [i(e.$slots, "default")], 34);
377
+ }, [l(e.$slots, "default")], 34);
378
378
  };
379
- var ke = j("vue-handler-wrapper"), Ae = {
379
+ var Oe = M("vue-handler-wrapper"), ke = {
380
380
  name: "HandlerWrapper",
381
- components: { DraggableElement: Oe },
381
+ components: { DraggableElement: De },
382
382
  props: {
383
383
  horizontalPosition: { type: String },
384
384
  verticalPosition: { type: String },
@@ -390,12 +390,12 @@ var ke = j("vue-handler-wrapper"), Ae = {
390
390
  computed: { classes: function() {
391
391
  var e;
392
392
  if (this.horizontalPosition || this.verticalPosition) {
393
- var t, n = P(this.horizontalPosition, this.verticalPosition);
394
- e = ke((w(t = {}, n.classname, !0), w(t, "disabled", this.disabled), t));
395
- } else e = ke({ disabled: this.disabled });
393
+ var t, n = F(this.horizontalPosition, this.verticalPosition);
394
+ e = Oe((T(t = {}, n.classname, !0), T(t, "disabled", this.disabled), t));
395
+ } else e = Oe({ disabled: this.disabled });
396
396
  return {
397
397
  root: e,
398
- draggable: ke("draggable")
398
+ draggable: Oe("draggable")
399
399
  };
400
400
  } },
401
401
  emits: [
@@ -405,10 +405,10 @@ var ke = j("vue-handler-wrapper"), Ae = {
405
405
  "drag-end"
406
406
  ]
407
407
  };
408
- Ae.render = function(e, t, n, r, s, l) {
409
- var u = o("DraggableElement");
410
- return a(), g("div", { class: l.classes.root }, [S(u, {
411
- class: l.classes.draggable,
408
+ ke.render = function(e, t, n, a, o, s) {
409
+ var c = C("DraggableElement");
410
+ return r(), g("div", { class: s.classes.root }, [S(c, {
411
+ class: s.classes.draggable,
412
412
  onDrag: t[1] ||= function(t) {
413
413
  return e.$emit("drag", t);
414
414
  },
@@ -422,15 +422,15 @@ Ae.render = function(e, t, n, r, s, l) {
422
422
  return e.$emit("enter");
423
423
  }
424
424
  }, {
425
- default: c((function() {
426
- return [i(e.$slots, "default")];
425
+ default: i((function() {
426
+ return [l(e.$slots, "default")];
427
427
  })),
428
428
  _: 3
429
429
  }, 8, ["class"])], 2);
430
430
  };
431
- var je = j("vue-line-wrapper"), Me = {
431
+ var Ae = M("vue-line-wrapper"), je = {
432
432
  name: "LineWrapper",
433
- components: { DraggableElement: Oe },
433
+ components: { DraggableElement: De },
434
434
  props: {
435
435
  position: {
436
436
  type: String,
@@ -443,7 +443,7 @@ var je = j("vue-line-wrapper"), Me = {
443
443
  },
444
444
  computed: { classname: function() {
445
445
  var e;
446
- return je((w(e = {}, this.position, !0), w(e, "disabled", this.disabled), e));
446
+ return Ae((T(e = {}, this.position, !0), T(e, "disabled", this.disabled), e));
447
447
  } },
448
448
  emits: [
449
449
  "leave",
@@ -452,10 +452,10 @@ var je = j("vue-line-wrapper"), Me = {
452
452
  "drag-end"
453
453
  ]
454
454
  };
455
- Me.render = function(e, t, n, r, s, l) {
456
- var u = o("DraggableElement");
457
- return a(), g(u, {
458
- class: l.classname,
455
+ je.render = function(e, t, n, a, o, s) {
456
+ var c = C("DraggableElement");
457
+ return r(), g(c, {
458
+ class: s.classname,
459
459
  onDrag: t[1] ||= function(t) {
460
460
  return e.$emit("drag", t);
461
461
  },
@@ -469,29 +469,29 @@ Me.render = function(e, t, n, r, s, l) {
469
469
  return e.$emit("enter");
470
470
  }
471
471
  }, {
472
- default: c((function() {
473
- return [i(e.$slots, "default")];
472
+ default: i((function() {
473
+ return [l(e.$slots, "default")];
474
474
  })),
475
475
  _: 3
476
476
  }, 8, ["class"]);
477
477
  };
478
- var V = [
478
+ var H = [
479
479
  "left",
480
480
  "right",
481
481
  "top",
482
482
  "bottom"
483
- ], Ne = ["left", "right"], Pe = ["top", "bottom"], Fe = ["left", "top"], Ie = [
483
+ ], Me = ["left", "right"], Ne = ["top", "bottom"], Pe = ["left", "top"], Fe = [
484
484
  "fill-area",
485
485
  "fit-area",
486
486
  "stencil",
487
487
  "none"
488
- ], Le = {
488
+ ], Ie = {
489
489
  left: 0,
490
490
  top: 0,
491
491
  width: 0,
492
492
  height: 0
493
493
  };
494
- function Re(e, t, n) {
494
+ function Le(e, t, n) {
495
495
  return !(n ||= [
496
496
  "width",
497
497
  "height",
@@ -501,7 +501,7 @@ function Re(e, t, n) {
501
501
  return e[n] !== t[n];
502
502
  }));
503
503
  }
504
- function H(e) {
504
+ function U(e) {
505
505
  return {
506
506
  left: e.left,
507
507
  top: e.top,
@@ -509,7 +509,7 @@ function H(e) {
509
509
  bottom: e.top + e.height
510
510
  };
511
511
  }
512
- function U(e, t) {
512
+ function Re(e, t) {
513
513
  return {
514
514
  left: e.left - t.left,
515
515
  top: e.top - t.top
@@ -528,8 +528,8 @@ function ze(e, t) {
528
528
  right: 0,
529
529
  bottom: 0
530
530
  };
531
- return V.forEach((function(r) {
532
- var i = t[r], a = H(e)[r];
531
+ return H.forEach((function(r) {
532
+ var i = t[r], a = U(e)[r];
533
533
  n[r] = i !== void 0 && a !== void 0 ? r === "left" || r === "top" ? Math.max(0, i - a) : Math.max(0, a - i) : 0;
534
534
  })), n;
535
535
  }
@@ -548,7 +548,7 @@ function Be(e) {
548
548
  };
549
549
  }
550
550
  function K(e, t) {
551
- return N(N({}, e), {
551
+ return P(P({}, e), {
552
552
  left: e.left + t.left,
553
553
  top: e.top + t.top
554
554
  });
@@ -576,10 +576,10 @@ function q(e, t, n, r) {
576
576
  function J(e) {
577
577
  return e.width / e.height;
578
578
  }
579
- function Y(e, t) {
579
+ function Ve(e, t) {
580
580
  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);
581
581
  }
582
- function Ve(e, t) {
582
+ function Y(e, t) {
583
583
  var n = {
584
584
  left: 0,
585
585
  top: 0
@@ -622,11 +622,11 @@ function X(e, t) {
622
622
  }
623
623
  function Ge(e, t) {
624
624
  var n = ze(Z(e, t), t);
625
- 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;
625
+ 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, Ve(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, Ve(e, t)) : 1;
626
626
  }
627
627
  function Z(e, t, n) {
628
628
  n === void 0 && (n = !1);
629
- var r = Ve(e, t);
629
+ var r = Y(e, t);
630
630
  return K(e, n ? Be(r) : r);
631
631
  }
632
632
  function Ke(e) {
@@ -636,7 +636,7 @@ function Ke(e) {
636
636
  };
637
637
  }
638
638
  function qe(e, t) {
639
- return N(N({}, e), {
639
+ return P(P({}, e), {
640
640
  minWidth: Math.min(t.width, e.minWidth),
641
641
  minHeight: Math.min(t.height, e.minHeight),
642
642
  maxWidth: Math.min(t.width, e.maxWidth),
@@ -646,7 +646,7 @@ function qe(e, t) {
646
646
  function Je(e, t, n) {
647
647
  n === void 0 && (n = !0);
648
648
  var r = {};
649
- return V.forEach((function(i) {
649
+ return H.forEach((function(i) {
650
650
  var a = e[i], o = t[i];
651
651
  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;
652
652
  })), r;
@@ -709,27 +709,27 @@ function Q(e) {
709
709
  }
710
710
  function Qe(e) {
711
711
  var t = e.event, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = K(n, t.directions);
712
- return K(a, Ve(a, i));
712
+ return K(a, Y(a, i));
713
713
  }
714
714
  function $e(e) {
715
715
  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) {
716
716
  return Qe({
717
717
  coordinates: e,
718
718
  positionRestrictions: a,
719
- event: new Ee({
719
+ event: new Te({
720
720
  left: t.left - e.left,
721
721
  top: t.top - e.top
722
722
  })
723
723
  });
724
- }, l = N({}, t);
724
+ }, l = P({}, t);
725
725
  return (Array.isArray(n) ? n : [n]).forEach((function(e) {
726
726
  var t = {};
727
- R((t = typeof e == "function" ? e({
727
+ z((t = typeof e == "function" ? e({
728
728
  coordinates: l,
729
729
  imageSize: r,
730
730
  visibleArea: s
731
- }) : e).width) && R(t.height) || (l = function(e, t) {
732
- return c(N(N(N({}, e), Q({
731
+ }) : e).width) && z(t.height) || (l = function(e, t) {
732
+ return c(P(P(P({}, e), Q({
733
733
  width: t.width,
734
734
  height: t.height,
735
735
  sizeRestrictions: i,
@@ -741,12 +741,12 @@ function $e(e) {
741
741
  left: e.left,
742
742
  top: e.top
743
743
  });
744
- }(l, N(N({}, l), t))), R(t.left) && R(t.top) || (l = c(l, N(N({}, l), t)));
744
+ }(l, P(P({}, l), t))), z(t.left) && z(t.top) || (l = c(l, P(P({}, l), t)));
745
745
  })), l;
746
746
  }
747
747
  function et(e) {
748
- var t = e.getAreaRestrictions, n = e.boundaries, r = e.coordinates, i = e.visibleArea, a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions, c, l, u, d = N({}, r), f = N({}, i), p = N({}, a);
749
- 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({
748
+ var t = e.getAreaRestrictions, n = e.boundaries, r = e.coordinates, i = e.visibleArea, a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions, c, l, u, d = P({}, r), f = P({}, i), p = P({}, a);
749
+ 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 = P(P({}, d), Q({
750
750
  sizeRestrictions: o,
751
751
  width: d.width,
752
752
  height: d.height,
@@ -759,16 +759,16 @@ function et(e) {
759
759
  visibleArea: f,
760
760
  type: "resize"
761
761
  }));
762
- return m !== 1 && (f = q(f, m), d = q(d, m)), f = Z(f = K(f, U(W(d), W(f))), t({
762
+ return m !== 1 && (f = q(f, m), d = q(d, m)), f = Z(f = K(f, Re(W(d), W(f))), t({
763
763
  visibleArea: f,
764
764
  type: "move"
765
765
  })), {
766
- coordinates: d = Z(d, Ye(H(f), s)),
766
+ coordinates: d = Z(d, Ye(U(f), s)),
767
767
  visibleArea: f
768
768
  };
769
769
  }
770
770
  function tt(e) {
771
- var t = e.event, n = e.getAreaRestrictions, r = e.boundaries, i = e.coordinates, a = e.visibleArea, o = e.positionRestrictions, s = N({}, i), c = N({}, a);
771
+ var t = e.event, n = e.getAreaRestrictions, r = e.boundaries, i = e.coordinates, a = e.visibleArea, o = e.positionRestrictions, s = P({}, i), c = P({}, a);
772
772
  if (i && a && t.type !== "manipulateImage") {
773
773
  var l = {
774
774
  width: 0,
@@ -779,10 +779,10 @@ function tt(e) {
779
779
  visibleArea: c,
780
780
  type: "resize"
781
781
  }));
782
- c = q(c, u), u !== 1 && (l.height /= u, l.width /= u), c = Z(c = K(c, U(W(s), W(c))), n({
782
+ c = q(c, u), u !== 1 && (l.height /= u, l.width /= u), c = Z(c = K(c, Re(W(s), W(c))), n({
783
783
  visibleArea: c,
784
784
  type: "move"
785
- })), s = Z(s, Ye(H(c), o));
785
+ })), s = Z(s, Ye(U(c), o));
786
786
  }
787
787
  return {
788
788
  coordinates: s,
@@ -790,16 +790,16 @@ function tt(e) {
790
790
  };
791
791
  }
792
792
  function nt(e) {
793
- var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = N({}, r), o = N({}, n);
793
+ var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = P({}, r), o = P({}, n);
794
794
  if (t.type === "setCoordinates") {
795
795
  var s = Math.max(0, o.width - a.width), c = Math.max(0, o.height - a.height);
796
- s > c ? a = q(a, Math.min(o.width / a.width, Y(a, i({
796
+ s > c ? a = q(a, Math.min(o.width / a.width, Ve(a, i({
797
797
  visibleArea: a,
798
798
  type: "resize"
799
- })))) : c > s && (a = q(a, Math.min(o.height / a.height, Y(a, i({
799
+ })))) : c > s && (a = q(a, Math.min(o.height / a.height, Ve(a, i({
800
800
  visibleArea: a,
801
801
  type: "resize"
802
- }))))), a = Z(a = K(a, Be(Ve(o, H(a)))), i({
802
+ }))))), a = Z(a = K(a, Be(Y(o, U(a)))), i({
803
803
  visibleArea: a,
804
804
  type: "move"
805
805
  }));
@@ -824,7 +824,7 @@ function it(e) {
824
824
  height: .8 * a.height,
825
825
  width: .8 * a.height * o
826
826
  };
827
- return Q(N(N({}, s), {
827
+ return Q(P(P({}, s), {
828
828
  aspectRatio: r,
829
829
  sizeRestrictions: i
830
830
  }));
@@ -852,7 +852,7 @@ function ot(e) {
852
852
  top: n.top + n.height / 2 - o.height / 2,
853
853
  width: o.width,
854
854
  height: o.height
855
- }, c = ze(n, H(N({
855
+ }, c = ze(n, U(P({
856
856
  left: 0,
857
857
  top: 0
858
858
  }, r))), l = {};
@@ -870,10 +870,10 @@ function ot(e) {
870
870
  };
871
871
  }
872
872
  function st(e, t) {
873
- return Je(e, H(t));
873
+ return Je(e, U(t));
874
874
  }
875
875
  function ct(e) {
876
- 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;
876
+ 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 = P({}, r), d = P({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
877
877
  u = K(u, {
878
878
  left: l.left || 0,
879
879
  top: l.top || 0
@@ -881,16 +881,16 @@ function ct(e) {
881
881
  var h = {
882
882
  stencil: {
883
883
  minimum: Math.max(i.minWidth ? i.minWidth / d.width : 0, i.minHeight ? i.minHeight / d.height : 0),
884
- maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0, Y(d, o))
884
+ maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0, Ve(d, o))
885
885
  },
886
- area: { maximum: Y(u, a({
886
+ area: { maximum: Ve(u, a({
887
887
  visibleArea: u,
888
888
  type: "resize"
889
889
  })) }
890
890
  };
891
891
  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));
892
892
  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);
893
- return u = Z(u = K(u, Ve(u, {
893
+ return u = Z(u = K(u, Y(u, {
894
894
  left: o.left === void 0 ? void 0 : o.left - g * p,
895
895
  top: o.top === void 0 ? void 0 : o.top - v * p,
896
896
  bottom: o.bottom === void 0 ? void 0 : o.bottom + y * p,
@@ -898,20 +898,20 @@ function ct(e) {
898
898
  })), a({
899
899
  visibleArea: u,
900
900
  type: "move"
901
- })), 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({
901
+ })), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + v * p, d = Z(d, Ye(U(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({
902
902
  visibleArea: u,
903
903
  type: "move"
904
- })), Be(Ve(d, H(u)))))), {
904
+ })), Be(Y(d, U(u)))))), {
905
905
  coordinates: d,
906
906
  visibleArea: u
907
907
  };
908
908
  }
909
909
  function lt(e) {
910
- 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({
910
+ 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 = P({}, r), d = P({}, i), f = X(W(P({
911
911
  left: 0,
912
912
  top: 0
913
913
  }, c)), l);
914
- return (u = N(N({}, Q({
914
+ return (u = P(P({}, Q({
915
915
  sizeRestrictions: a,
916
916
  aspectRatio: t,
917
917
  width: u.width,
@@ -921,14 +921,14 @@ function lt(e) {
921
921
  type: "resize"
922
922
  }))), {
923
923
  coordinates: u = Z(u, o),
924
- visibleArea: d = Z(d = K(d, U(W(u), W(r))), n({
924
+ visibleArea: d = Z(d = K(d, Re(W(u), W(r))), n({
925
925
  visibleArea: d,
926
926
  type: "move"
927
927
  }))
928
928
  };
929
929
  }
930
930
  function ut(e) {
931
- var t = e.flip, n = e.previousFlip, r = e.rotate, 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;
931
+ var t = e.flip, n = e.previousFlip, r = e.rotate, i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = P({}, a), l = P({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
932
932
  if (u || d) {
933
933
  var f = X({
934
934
  left: s.width / 2,
@@ -937,7 +937,7 @@ function ut(e) {
937
937
  left: u ? f.left - (p.left - f.left) : p.left,
938
938
  top: d ? f.top - (p.top - f.top) : p.top
939
939
  }, r);
940
- c = K(c, U(m, W(c))), p = X(W(l), -r), l = Z(l = K(l, U(m = X({
940
+ c = K(c, Re(m, W(c))), p = X(W(l), -r), l = Z(l = K(l, Re(m = X({
941
941
  left: u ? f.left - (p.left - f.left) : p.left,
942
942
  top: d ? f.top - (p.top - f.top) : p.top
943
943
  }, r), W(l))), i({
@@ -951,7 +951,7 @@ function ut(e) {
951
951
  };
952
952
  }
953
953
  function dt(e) {
954
- 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;
954
+ 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 = P({}, t), l = G(n, c).width, u = G(n, c).height;
955
955
  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)));
956
956
  var d = ze(G(n, c), i);
957
957
  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));
@@ -963,27 +963,27 @@ function dt(e) {
963
963
  top: 1 / 0,
964
964
  bottom: 1 / 0
965
965
  };
966
- if (V.forEach((function(e) {
966
+ if (H.forEach((function(e) {
967
967
  var t = d[e];
968
968
  t && c[e] && (f[e] = Math.max(0, 1 - t / c[e]));
969
969
  })), o) {
970
- var p = Math.min.apply(null, V.map((function(e) {
970
+ var p = Math.min.apply(null, H.map((function(e) {
971
971
  return f[e];
972
972
  })));
973
- p !== 1 / 0 && V.forEach((function(e) {
973
+ p !== 1 / 0 && H.forEach((function(e) {
974
974
  c[e] *= p;
975
975
  }));
976
- } else V.forEach((function(e) {
976
+ } else H.forEach((function(e) {
977
977
  f[e] !== 1 / 0 && (c[e] *= f[e]);
978
978
  }));
979
979
  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) {
980
980
  var m = Math.min(f.width, f.height);
981
- m !== 1 / 0 && V.forEach((function(e) {
981
+ m !== 1 / 0 && H.forEach((function(e) {
982
982
  c[e] *= m;
983
983
  }));
984
- } else f.width !== 1 / 0 && Ne.forEach((function(e) {
984
+ } else f.width !== 1 / 0 && Me.forEach((function(e) {
985
985
  c[e] *= f.width;
986
- })), f.height !== 1 / 0 && Pe.forEach((function(e) {
986
+ })), f.height !== 1 / 0 && Ne.forEach((function(e) {
987
987
  c[e] *= f.height;
988
988
  }));
989
989
  return c;
@@ -991,9 +991,9 @@ function dt(e) {
991
991
  function ft(e, t, n) {
992
992
  return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
993
993
  }
994
- var pt = j("vue-simple-handler"), mt = j("vue-simple-handler-wrapper"), ht = {
994
+ var pt = M("vue-simple-handler"), mt = M("vue-simple-handler-wrapper"), ht = {
995
995
  name: "SimpleHandler",
996
- components: { HandlerWrapper: Ae },
996
+ components: { HandlerWrapper: ke },
997
997
  props: {
998
998
  defaultClass: { type: String },
999
999
  hoverClass: { type: String },
@@ -1009,10 +1009,10 @@ var pt = j("vue-simple-handler"), mt = j("vue-simple-handler-wrapper"), ht = {
1009
1009
  return { hover: !1 };
1010
1010
  },
1011
1011
  computed: { classes: function() {
1012
- 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);
1012
+ var e, t = (T(e = {}, this.horizontalPosition, !!this.horizontalPosition), T(e, this.verticalPosition, !!this.verticalPosition), T(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), T(e, "hover", this.hover), e);
1013
1013
  return {
1014
- default: A(pt(t), this.defaultClass, this.hover && this.hoverClass),
1015
- wrapper: A(mt(t), this.wrapperClass)
1014
+ default: j(pt(t), this.defaultClass, this.hover && this.hoverClass),
1015
+ wrapper: j(mt(t), this.wrapperClass)
1016
1016
  };
1017
1017
  } },
1018
1018
  methods: {
@@ -1031,9 +1031,9 @@ var pt = j("vue-simple-handler"), mt = j("vue-simple-handler-wrapper"), ht = {
1031
1031
  },
1032
1032
  emits: ["drag", "drag-end"]
1033
1033
  };
1034
- ht.render = function(e, t, n, r, i, s) {
1035
- var l = o("HandlerWrapper");
1036
- return a(), g(l, {
1034
+ ht.render = function(e, t, n, a, o, s) {
1035
+ var c = C("HandlerWrapper");
1036
+ return r(), g(c, {
1037
1037
  class: s.classes.wrapper,
1038
1038
  "vertical-position": n.verticalPosition,
1039
1039
  "horizontal-position": n.horizontalPosition,
@@ -1043,7 +1043,7 @@ ht.render = function(e, t, n, r, i, s) {
1043
1043
  onEnter: s.onEnter,
1044
1044
  onLeave: s.onLeave
1045
1045
  }, {
1046
- default: c((function() {
1046
+ default: i((function() {
1047
1047
  return [S("div", { class: s.classes.default }, null, 2)];
1048
1048
  })),
1049
1049
  _: 1
@@ -1058,9 +1058,9 @@ ht.render = function(e, t, n, r, i, s) {
1058
1058
  "onLeave"
1059
1059
  ]);
1060
1060
  };
1061
- var gt = j("vue-simple-line"), _t = j("vue-simple-line-wrapper"), vt = {
1061
+ var gt = M("vue-simple-line"), _t = M("vue-simple-line-wrapper"), vt = {
1062
1062
  name: "SimpleLine",
1063
- components: { LineWrapper: Me },
1063
+ components: { LineWrapper: je },
1064
1064
  props: {
1065
1065
  defaultClass: { type: String },
1066
1066
  hoverClass: { type: String },
@@ -1076,8 +1076,8 @@ var gt = j("vue-simple-line"), _t = j("vue-simple-line-wrapper"), vt = {
1076
1076
  },
1077
1077
  computed: { classes: function() {
1078
1078
  return {
1079
- root: A(gt(w({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1080
- wrapper: A(_t(w({}, this.position, !0)), this.wrapperClass)
1079
+ root: j(gt(T({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1080
+ wrapper: j(_t(T({}, this.position, !0)), this.wrapperClass)
1081
1081
  };
1082
1082
  } },
1083
1083
  methods: {
@@ -1096,9 +1096,9 @@ var gt = j("vue-simple-line"), _t = j("vue-simple-line-wrapper"), vt = {
1096
1096
  },
1097
1097
  emits: ["drag", "drag-end"]
1098
1098
  };
1099
- vt.render = function(e, t, n, r, i, s) {
1100
- var l = o("LineWrapper");
1101
- return a(), g(l, {
1099
+ vt.render = function(e, t, n, a, o, s) {
1100
+ var c = C("LineWrapper");
1101
+ return r(), g(c, {
1102
1102
  class: s.classes.wrapper,
1103
1103
  position: n.position,
1104
1104
  disabled: n.disabled,
@@ -1107,7 +1107,7 @@ vt.render = function(e, t, n, r, i, s) {
1107
1107
  onEnter: s.onEnter,
1108
1108
  onLeave: s.onLeave
1109
1109
  }, {
1110
- default: c((function() {
1110
+ default: i((function() {
1111
1111
  return [S("div", { class: s.classes.root }, null, 2)];
1112
1112
  })),
1113
1113
  _: 1
@@ -1121,7 +1121,7 @@ vt.render = function(e, t, n, r, i, s) {
1121
1121
  "onLeave"
1122
1122
  ]);
1123
1123
  };
1124
- var yt = j("vue-bounding-box"), bt = [
1124
+ var yt = M("vue-bounding-box"), bt = [
1125
1125
  "east",
1126
1126
  "west",
1127
1127
  null
@@ -1207,7 +1207,7 @@ var yt = j("vue-bounding-box"), bt = [
1207
1207
  return bt.forEach((function(t) {
1208
1208
  xt.forEach((function(n) {
1209
1209
  if (t !== n) {
1210
- var r = P(t, n);
1210
+ var r = F(t, n);
1211
1211
  e.push({
1212
1212
  name: r.name,
1213
1213
  classname: r.classname,
@@ -1239,8 +1239,8 @@ var yt = j("vue-bounding-box"), bt = [
1239
1239
  n.horizontalDirection && n.verticalDirection || !e.lines[n.name] || t.push({
1240
1240
  name: n.name,
1241
1241
  component: e.linesComponent,
1242
- class: A(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1243
- wrapperClass: A(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1242
+ class: j(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1243
+ wrapperClass: j(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1244
1244
  hoverClass: e.classes.lines.hover,
1245
1245
  verticalDirection: n.verticalDirection,
1246
1246
  horizontalDirection: n.horizontalDirection,
@@ -1255,8 +1255,8 @@ var yt = j("vue-bounding-box"), bt = [
1255
1255
  var a = {
1256
1256
  name: i.name,
1257
1257
  component: e.handlersComponent,
1258
- class: A(e.classes.handlers.default, e.classes.handlers[i.name]),
1259
- wrapperClass: A(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1258
+ class: j(e.classes.handlers.default, e.classes.handlers[i.name]),
1259
+ wrapperClass: j(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1260
1260
  hoverClass: e.classes.handlers.hover,
1261
1261
  verticalDirection: i.verticalDirection,
1262
1262
  horizontalDirection: i.horizontalDirection,
@@ -1265,7 +1265,7 @@ var yt = j("vue-bounding-box"), bt = [
1265
1265
  if (n && r) {
1266
1266
  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;
1267
1267
  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}`);
1268
- } else a.wrapperClass = yt("handler", w({}, i.classname, !0));
1268
+ } else a.wrapperClass = yt("handler", T({}, i.classname, !0));
1269
1269
  t.push(a);
1270
1270
  }
1271
1271
  })), t;
@@ -1291,7 +1291,7 @@ var yt = j("vue-bounding-box"), bt = [
1291
1291
  top: 0,
1292
1292
  bottom: 0
1293
1293
  };
1294
- 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, {
1294
+ 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 we(s, {
1295
1295
  allowedDirections: {
1296
1296
  left: t === "west" || !t,
1297
1297
  right: t === "east" || !t,
@@ -1305,15 +1305,15 @@ var yt = j("vue-bounding-box"), bt = [
1305
1305
  },
1306
1306
  emits: ["resize", "resize-end"]
1307
1307
  };
1308
- St.render = function(e, t, n, o, s, c) {
1309
- return a(), g("div", {
1308
+ St.render = function(e, n, i, a, o, c) {
1309
+ return r(), g("div", {
1310
1310
  ref: "box",
1311
1311
  class: c.classes.root,
1312
1312
  style: c.style
1313
1313
  }, [
1314
- i(e.$slots, "default"),
1315
- S("div", null, [(a(!0), g(re, null, r(c.lineNodes, (function(e) {
1316
- return a(), g(ae(e.component), {
1314
+ l(e.$slots, "default"),
1315
+ S("div", null, [(r(!0), g(ie, null, s(c.lineNodes, (function(e) {
1316
+ return r(), g(t(e.component), {
1317
1317
  key: e.name,
1318
1318
  "default-class": e.class,
1319
1319
  "hover-class": e.hoverClass,
@@ -1323,7 +1323,7 @@ St.render = function(e, t, n, o, s, c) {
1323
1323
  onDrag: function(t) {
1324
1324
  return c.onHandlerDrag(t, e.horizontalDirection, e.verticalDirection);
1325
1325
  },
1326
- onDragEnd: t[1] ||= function(e) {
1326
+ onDragEnd: n[1] ||= function(e) {
1327
1327
  return c.onEnd();
1328
1328
  }
1329
1329
  }, null, 8, [
@@ -1335,12 +1335,12 @@ St.render = function(e, t, n, o, s, c) {
1335
1335
  "onDrag"
1336
1336
  ]);
1337
1337
  })), 128))]),
1338
- (a(!0), g(re, null, r(c.handlerNodes, (function(e) {
1339
- return a(), g("div", {
1338
+ (r(!0), g(ie, null, s(c.handlerNodes, (function(e) {
1339
+ return r(), g("div", {
1340
1340
  key: e.name,
1341
1341
  style: e.wrapperStyle,
1342
1342
  class: e.wrapperClass
1343
- }, [(a(), g(ae(e.component), {
1343
+ }, [(r(), g(t(e.component), {
1344
1344
  "default-class": e.class,
1345
1345
  "hover-class": e.hoverClass,
1346
1346
  "wrapper-class": e.wrapperClass,
@@ -1350,7 +1350,7 @@ St.render = function(e, t, n, o, s, c) {
1350
1350
  onDrag: function(t) {
1351
1351
  return c.onHandlerDrag(t, e.horizontalDirection, e.verticalDirection);
1352
1352
  },
1353
- onDragEnd: t[2] ||= function(e) {
1353
+ onDragEnd: n[2] ||= function(e) {
1354
1354
  return c.onEnd();
1355
1355
  }
1356
1356
  }, null, 8, [
@@ -1365,7 +1365,7 @@ St.render = function(e, t, n, o, s, c) {
1365
1365
  })), 128))
1366
1366
  ], 6);
1367
1367
  };
1368
- var Ct = j("vue-draggable-area"), wt = {
1368
+ var Ct = M("vue-draggable-area"), wt = {
1369
1369
  name: "DraggableArea",
1370
1370
  props: {
1371
1371
  movable: {
@@ -1393,14 +1393,14 @@ var Ct = j("vue-draggable-area"), wt = {
1393
1393
  onTouchStart: function(e) {
1394
1394
  if (e.cancelable) {
1395
1395
  var t = this.movable && e.touches.length === 1;
1396
- t && (this.touches = T(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1396
+ t && (this.touches = E(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1397
1397
  }
1398
1398
  },
1399
1399
  onTouchEnd: function() {
1400
1400
  this.touchStarted = !1, this.processEnd();
1401
1401
  },
1402
1402
  onTouchMove: function(e) {
1403
- this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : we({
1403
+ this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : Ce({
1404
1404
  x: this.touches[0].clientX,
1405
1405
  y: this.touches[0].clientY
1406
1406
  }, {
@@ -1439,10 +1439,10 @@ var Ct = j("vue-draggable-area"), wt = {
1439
1439
  };
1440
1440
  },
1441
1441
  processMove: function(e, t) {
1442
- var n = T(t);
1442
+ var n = E(t);
1443
1443
  if (this.touches.length) {
1444
1444
  var r = this.$refs.container.getBoundingClientRect(), i = r.left, a = r.top;
1445
- this.touches.length === 1 && n.length === 1 && this.$emit("move", new Ee({
1445
+ this.touches.length === 1 && n.length === 1 && this.$emit("move", new Te({
1446
1446
  left: n[0].clientX - (i + this.anchor.x),
1447
1447
  top: n[0].clientY - (a + this.anchor.y)
1448
1448
  }));
@@ -1454,16 +1454,16 @@ var Ct = j("vue-draggable-area"), wt = {
1454
1454
  },
1455
1455
  emits: ["move", "move-end"]
1456
1456
  };
1457
- wt.render = function(e, t, n, r, o, s) {
1458
- return a(), g("div", {
1457
+ wt.render = function(e, t, n, i, a, o) {
1458
+ return r(), g("div", {
1459
1459
  ref: "container",
1460
1460
  onTouchstart: t[1] ||= function() {
1461
- return s.onTouchStart && s.onTouchStart.apply(s, arguments);
1461
+ return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1462
1462
  },
1463
1463
  onMousedown: t[2] ||= function() {
1464
- return s.onMouseDown && s.onMouseDown.apply(s, arguments);
1464
+ return o.onMouseDown && o.onMouseDown.apply(o, arguments);
1465
1465
  }
1466
- }, [i(e.$slots, "default")], 544);
1466
+ }, [l(e.$slots, "default")], 544);
1467
1467
  };
1468
1468
  function Tt(e) {
1469
1469
  return {
@@ -1551,7 +1551,7 @@ function kt(e, t) {
1551
1551
  return e.forEach((function(t) {
1552
1552
  a.left += (t.clientX - r) / e.length, a.top += (t.clientY - i) / e.length;
1553
1553
  })), e.forEach((function(e) {
1554
- o += we({
1554
+ o += Ce({
1555
1555
  x: a.left,
1556
1556
  y: a.top
1557
1557
  }, {
@@ -1594,18 +1594,18 @@ var At = {
1594
1594
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
1595
1595
  },
1596
1596
  created: function() {
1597
- this.transforming = !1, this.debouncedProcessEnd = ye(this.processEnd), this.touches = [];
1597
+ this.transforming = !1, this.debouncedProcessEnd = ve(this.processEnd), this.touches = [];
1598
1598
  },
1599
1599
  methods: {
1600
1600
  processMove: function(e, t) {
1601
1601
  if (this.touches.length) {
1602
- if (this.touches.length === 1 && t.length === 1) this.$emit("move", new B({
1602
+ if (this.touches.length === 1 && t.length === 1) this.$emit("move", new V({
1603
1603
  left: this.touches[0].clientX - t[0].clientX,
1604
1604
  top: this.touches[0].clientY - t[0].clientY
1605
1605
  }));
1606
1606
  else if (this.touches.length > 1 && this.touchResize) {
1607
1607
  var n = kt(t, this.$refs.container), r = this.oldGeometricProperties;
1608
- r.count === n.count && r.count > 1 && this.$emit("resize", new B({
1608
+ r.count === n.count && r.count > 1 && this.$emit("resize", new V({
1609
1609
  left: r.centerMass.left - n.centerMass.left,
1610
1610
  top: r.centerMass.top - n.centerMass.top
1611
1611
  }, {
@@ -1628,7 +1628,7 @@ var At = {
1628
1628
  onTouchStart: function(e) {
1629
1629
  if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
1630
1630
  var t = this.$refs.container, n = t.getBoundingClientRect(), r = n.left, i = n.top, a = n.bottom, o = n.right;
1631
- this.touches = T(e.touches).filter((function(e) {
1631
+ this.touches = E(e.touches).filter((function(e) {
1632
1632
  return e.clientX > r && e.clientX < o && e.clientY > i && e.clientY < a;
1633
1633
  })), this.oldGeometricProperties = kt(this.touches, t);
1634
1634
  }
@@ -1639,7 +1639,7 @@ var At = {
1639
1639
  onTouchMove: function(e) {
1640
1640
  var t = this;
1641
1641
  if (this.touches.length) {
1642
- var n = T(e.touches).filter((function(e) {
1642
+ var n = E(e.touches).filter((function(e) {
1643
1643
  return !e.identifier || t.touches.find((function(t) {
1644
1644
  return t.identifier === e.identifier;
1645
1645
  }));
@@ -1668,11 +1668,11 @@ var At = {
1668
1668
  },
1669
1669
  onWheel: function(e) {
1670
1670
  if (this.wheelResize && this.processEvent(e)) {
1671
- 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 = {
1671
+ 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 || Se(s) ? s : s > 0 ? 1 : -1), a = {
1672
1672
  left: e.clientX - n,
1673
1673
  top: e.clientY - r
1674
1674
  };
1675
- this.$emit("resize", new B({}, {
1675
+ this.$emit("resize", new V({}, {
1676
1676
  factor: i,
1677
1677
  center: a
1678
1678
  })), this.touches.length || this.debouncedProcessEnd();
@@ -1686,19 +1686,19 @@ var At = {
1686
1686
  "transform-end"
1687
1687
  ]
1688
1688
  };
1689
- At.render = function(e, t, n, r, o, s) {
1690
- return a(), g("div", {
1689
+ At.render = function(e, t, n, i, a, o) {
1690
+ return r(), g("div", {
1691
1691
  ref: "container",
1692
1692
  onTouchstart: t[1] ||= function() {
1693
- return s.onTouchStart && s.onTouchStart.apply(s, arguments);
1693
+ return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1694
1694
  },
1695
1695
  onMousedown: t[2] ||= function() {
1696
- return s.onMouseDown && s.onMouseDown.apply(s, arguments);
1696
+ return o.onMouseDown && o.onMouseDown.apply(o, arguments);
1697
1697
  },
1698
1698
  onWheel: t[3] ||= function() {
1699
- return s.onWheel && s.onWheel.apply(s, arguments);
1699
+ return o.onWheel && o.onWheel.apply(o, arguments);
1700
1700
  }
1701
- }, [i(e.$slots, "default")], 544);
1701
+ }, [l(e.$slots, "default")], 544);
1702
1702
  };
1703
1703
  var jt = {
1704
1704
  components: { TransformableImage: At },
@@ -1722,9 +1722,9 @@ var jt = {
1722
1722
  },
1723
1723
  emits: ["resize", "move"]
1724
1724
  };
1725
- jt.render = function(e, t, n, r, s, l) {
1726
- var u = o("transformable-image");
1727
- return a(), g(u, {
1725
+ jt.render = function(e, t, n, a, o, s) {
1726
+ var c = C("transformable-image");
1727
+ return r(), g(c, {
1728
1728
  "touch-move": n.touchMove,
1729
1729
  "touch-resize": n.touchResize,
1730
1730
  "mouse-move": n.mouseMove,
@@ -1736,8 +1736,8 @@ jt.render = function(e, t, n, r, s, l) {
1736
1736
  return e.$emit("resize", t);
1737
1737
  }
1738
1738
  }, {
1739
- default: c((function() {
1740
- return [i(e.$slots, "default")];
1739
+ default: i((function() {
1740
+ return [l(e.$slots, "default")];
1741
1741
  })),
1742
1742
  _: 3
1743
1743
  }, 8, [
@@ -1747,7 +1747,7 @@ jt.render = function(e, t, n, r, s, l) {
1747
1747
  "wheel-resize"
1748
1748
  ]);
1749
1749
  };
1750
- var Mt = j("vue-preview"), Nt = {
1750
+ var Mt = M("vue-preview"), Nt = {
1751
1751
  props: {
1752
1752
  coordinates: { type: Object },
1753
1753
  transitions: { type: Object },
@@ -1780,7 +1780,7 @@ var Mt = j("vue-preview"), Nt = {
1780
1780
  root: Mt({ fill: this.fill }),
1781
1781
  wrapper: Mt("wrapper"),
1782
1782
  imageWrapper: Mt("image-wrapper"),
1783
- image: A(Mt("image"), this.imageClass)
1783
+ image: j(Mt("image"), this.imageClass)
1784
1784
  };
1785
1785
  },
1786
1786
  style: function() {
@@ -1799,7 +1799,7 @@ var Mt = j("vue-preview"), Nt = {
1799
1799
  },
1800
1800
  imageStyle: function() {
1801
1801
  if (this.coordinates && this.image) {
1802
- var e = this.coordinates.width / this.size.width, t = C(C({
1802
+ var e = this.coordinates.width / this.size.width, t = w(w({
1803
1803
  rotate: 0,
1804
1804
  flip: {
1805
1805
  horizontal: !1,
@@ -1871,8 +1871,8 @@ var Mt = j("vue-preview"), Nt = {
1871
1871
  }
1872
1872
  }
1873
1873
  };
1874
- Nt.render = function(e, t, r, i, o, s) {
1875
- return a(), g("div", {
1874
+ Nt.render = function(e, t, n, i, a, s) {
1875
+ return r(), g("div", {
1876
1876
  ref: "root",
1877
1877
  class: s.classes.root,
1878
1878
  style: s.style
@@ -1880,22 +1880,22 @@ Nt.render = function(e, t, r, i, o, s) {
1880
1880
  ref: "wrapper",
1881
1881
  class: s.classes.wrapper,
1882
1882
  style: s.wrapperStyle
1883
- }, [n(S("img", {
1883
+ }, [o(S("img", {
1884
1884
  ref: "image",
1885
- src: r.image && r.image.src,
1885
+ src: n.image && n.image.src,
1886
1886
  class: s.classes.image,
1887
1887
  style: s.imageStyle
1888
- }, null, 14, ["src"]), [[b, r.image && r.image.src]])], 6)], 6);
1888
+ }, null, 14, ["src"]), [[b, n.image && n.image.src]])], 6)], 6);
1889
1889
  };
1890
1890
  var Pt = {
1891
1891
  components: { Preview: Nt },
1892
1892
  inheritAttrs: !1
1893
1893
  };
1894
- Pt.render = function(e, t, n, r, i, s) {
1895
- var c = o("preview");
1896
- return a(), g(c, _(e.$attrs, { fill: !0 }), null, 16);
1894
+ Pt.render = function(t, n, i, a, o, s) {
1895
+ var c = C("preview");
1896
+ return r(), g(c, e(t.$attrs, { fill: !0 }), null, 16);
1897
1897
  };
1898
- var Ft = j("vue-rectangle-stencil"), It = {
1898
+ var Ft = M("vue-rectangle-stencil"), It = {
1899
1899
  name: "RectangleStencil",
1900
1900
  components: {
1901
1901
  StencilPreview: Pt,
@@ -1970,13 +1970,13 @@ var Ft = j("vue-rectangle-stencil"), It = {
1970
1970
  computed: {
1971
1971
  classes: function() {
1972
1972
  return {
1973
- stencil: A(Ft({
1973
+ stencil: j(Ft({
1974
1974
  movable: this.movable,
1975
1975
  moving: this.moving,
1976
1976
  resizing: this.resizing
1977
1977
  }), this.moving && this.movingClass, this.resizing && this.resizingClass),
1978
- preview: A(Ft("preview"), this.previewClass),
1979
- boundingBox: A(Ft("bounding-box"), this.boundingBoxClass)
1978
+ preview: j(Ft("preview"), this.previewClass),
1979
+ boundingBox: j(Ft("bounding-box"), this.boundingBoxClass)
1980
1980
  };
1981
1981
  },
1982
1982
  style: function() {
@@ -2015,12 +2015,12 @@ var Ft = j("vue-rectangle-stencil"), It = {
2015
2015
  "move-end"
2016
2016
  ]
2017
2017
  };
2018
- It.render = function(e, t, n, r, i, s) {
2019
- var l = o("stencil-preview"), u = o("draggable-area"), d = o("bounding-box");
2020
- return a(), g("div", {
2018
+ It.render = function(e, t, n, a, o, s) {
2019
+ var c = C("stencil-preview"), l = C("draggable-area"), u = C("bounding-box");
2020
+ return r(), g("div", {
2021
2021
  class: s.classes.stencil,
2022
2022
  style: s.style
2023
- }, [S(d, {
2023
+ }, [S(u, {
2024
2024
  width: n.stencilCoordinates.width,
2025
2025
  height: n.stencilCoordinates.height,
2026
2026
  transitions: n.transitions,
@@ -2037,14 +2037,14 @@ It.render = function(e, t, n, r, i, s) {
2037
2037
  onResize: s.onResize,
2038
2038
  onResizeEnd: s.onResizeEnd
2039
2039
  }, {
2040
- default: c((function() {
2041
- return [S(u, {
2040
+ default: i((function() {
2041
+ return [S(l, {
2042
2042
  movable: n.movable,
2043
2043
  onMove: s.onMove,
2044
2044
  onMoveEnd: s.onMoveEnd
2045
2045
  }, {
2046
- default: c((function() {
2047
- return [S(l, {
2046
+ default: i((function() {
2047
+ return [S(c, {
2048
2048
  image: n.image,
2049
2049
  coordinates: n.coordinates,
2050
2050
  width: n.stencilCoordinates.width,
@@ -2086,7 +2086,7 @@ It.render = function(e, t, n, r, i, s) {
2086
2086
  "onResizeEnd"
2087
2087
  ])], 6);
2088
2088
  };
2089
- var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2089
+ var Lt = ["transitions"], $ = M("vue-advanced-cropper"), Rt = {
2090
2090
  name: "Cropper",
2091
2091
  components: { BackgroundWrapper: jt },
2092
2092
  props: {
@@ -2152,7 +2152,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2152
2152
  type: String,
2153
2153
  default: "fit-area",
2154
2154
  validator: function(e) {
2155
- return Ie.indexOf(e) !== -1;
2155
+ return Fe.indexOf(e) !== -1;
2156
2156
  }
2157
2157
  },
2158
2158
  roundResult: {
@@ -2186,16 +2186,16 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2186
2186
  resizeAlgorithm: {
2187
2187
  type: Function,
2188
2188
  default: function(e) {
2189
- var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = N(N({}, n), {
2189
+ var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = P(P({}, n), {
2190
2190
  right: n.left + n.width,
2191
2191
  bottom: n.top + n.height
2192
- }), s = t.params || {}, c = N({}, t.directions), l = s.allowedDirections || {
2192
+ }), s = t.params || {}, c = P({}, t.directions), l = s.allowedDirections || {
2193
2193
  left: !0,
2194
2194
  right: !0,
2195
2195
  bottom: !0,
2196
2196
  top: !0
2197
2197
  };
2198
- a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), V.forEach((function(e) {
2198
+ a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), H.forEach((function(e) {
2199
2199
  l[e] || (c[e] = 0);
2200
2200
  }));
2201
2201
  var u = G(o, c = dt({
@@ -2228,10 +2228,10 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2228
2228
  compensate: s.compensate
2229
2229
  });
2230
2230
  }
2231
- 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) {
2231
+ 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 && H.forEach((function(e) {
2232
2232
  l[e] || (c[e] = 0);
2233
2233
  })), Qe({
2234
- event: new Ee({
2234
+ event: new Te({
2235
2235
  left: -c.left,
2236
2236
  top: -c.top
2237
2237
  }),
@@ -2259,7 +2259,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2259
2259
  fitCoordinates: {
2260
2260
  type: Function,
2261
2261
  default: function(e) {
2262
- var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = N(N({}, n), Q({
2262
+ var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = P(P({}, n), Q({
2263
2263
  width: n.width,
2264
2264
  height: n.height,
2265
2265
  aspectRatio: r,
@@ -2270,15 +2270,15 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2270
2270
  minWidth: Math.min(t.width, i.minWidth)
2271
2271
  }
2272
2272
  }));
2273
- return o = Z(o = K(o, U(W(n), W(o))), Ye(H(t), a));
2273
+ return o = Z(o = K(o, Re(W(n), W(o))), Ye(U(t), a));
2274
2274
  }
2275
2275
  },
2276
2276
  fitVisibleArea: {
2277
2277
  type: Function,
2278
2278
  default: function(e) {
2279
- var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = N({}, t);
2279
+ var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = P({}, t);
2280
2280
  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)));
2281
- var o = Be(Ve(i, H(a = q(a, Ge(a, r({
2281
+ var o = Be(Y(i, U(a = q(a, Ge(a, r({
2282
2282
  visibleArea: a,
2283
2283
  type: "resize"
2284
2284
  }))))));
@@ -2359,7 +2359,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2359
2359
  height: 0
2360
2360
  },
2361
2361
  visibleArea: null,
2362
- coordinates: C({}, Le)
2362
+ coordinates: w({}, Ie)
2363
2363
  };
2364
2364
  },
2365
2365
  computed: {
@@ -2397,7 +2397,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2397
2397
  return !!(this.visibleArea && this.imageLoaded);
2398
2398
  },
2399
2399
  settings: function() {
2400
- var e = xe(this.resizeImage, {
2400
+ var e = be(this.resizeImage, {
2401
2401
  touch: !0,
2402
2402
  wheel: { ratio: .1 },
2403
2403
  adjustStencil: !0
@@ -2407,7 +2407,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2407
2407
  adjustStencil: !1
2408
2408
  });
2409
2409
  return {
2410
- moveImage: xe(this.moveImage, {
2410
+ moveImage: be(this.moveImage, {
2411
2411
  touch: !0,
2412
2412
  mouse: !0
2413
2413
  }, {
@@ -2438,13 +2438,13 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2438
2438
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
2439
2439
  var e = this.sizeRestrictionsAlgorithm({
2440
2440
  imageSize: this.imageSize,
2441
- minWidth: R(this.minWidth) ? 0 : z(this.minWidth),
2442
- minHeight: R(this.minHeight) ? 0 : z(this.minHeight),
2443
- maxWidth: R(this.maxWidth) ? 1 / 0 : z(this.maxWidth),
2444
- maxHeight: R(this.maxHeight) ? 1 / 0 : z(this.maxHeight)
2441
+ minWidth: z(this.minWidth) ? 0 : B(this.minWidth),
2442
+ minHeight: z(this.minHeight) ? 0 : B(this.minHeight),
2443
+ maxWidth: z(this.maxWidth) ? 1 / 0 : B(this.maxWidth),
2444
+ maxHeight: z(this.maxHeight) ? 1 / 0 : B(this.maxHeight)
2445
2445
  });
2446
2446
  if (e = function(e) {
2447
- var t = e.areaRestrictions, n = e.sizeRestrictions, r = e.boundaries, i = e.positionRestrictions, a = N(N({}, n), {
2447
+ var t = e.areaRestrictions, n = e.sizeRestrictions, r = e.boundaries, i = e.positionRestrictions, a = P(P({}, n), {
2448
2448
  minWidth: n.minWidth === void 0 ? 0 : n.minWidth,
2449
2449
  minHeight: n.minHeight === void 0 ? 0 : n.minHeight,
2450
2450
  maxWidth: n.maxWidth === void 0 ? 1 / 0 : n.maxWidth,
@@ -2490,14 +2490,14 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2490
2490
  classes: function() {
2491
2491
  return {
2492
2492
  cropper: $(),
2493
- image: A($("image"), this.imageClass),
2493
+ image: j($("image"), this.imageClass),
2494
2494
  stencil: $("stencil"),
2495
- boundaries: A($("boundaries"), this.boundariesClass),
2496
- stretcher: A($("stretcher")),
2497
- background: A($("background"), this.backgroundClass),
2498
- foreground: A($("foreground"), this.foregroundClass),
2499
- imageWrapper: A($("image-wrapper")),
2500
- cropperWrapper: A($("cropper-wrapper"))
2495
+ boundaries: j($("boundaries"), this.boundariesClass),
2496
+ stretcher: j($("stretcher")),
2497
+ background: j($("background"), this.backgroundClass),
2498
+ foreground: j($("foreground"), this.foregroundClass),
2499
+ imageWrapper: j($("image-wrapper")),
2500
+ cropperWrapper: j($("cropper-wrapper"))
2501
2501
  };
2502
2502
  },
2503
2503
  stencilCoordinates: function() {
@@ -2534,7 +2534,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2534
2534
  }, n = {
2535
2535
  left: (1 - 1 / this.coefficient) * e.width / 2,
2536
2536
  top: (1 - 1 / this.coefficient) * e.height / 2
2537
- }, r = C(C({}, this.imageTransforms), {}, {
2537
+ }, r = w(w({}, this.imageTransforms), {}, {
2538
2538
  scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width),
2539
2539
  scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height)
2540
2540
  }), i = {
@@ -2583,7 +2583,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2583
2583
  }
2584
2584
  },
2585
2585
  created: function() {
2586
- this.debouncedUpdate = ye(this.update, this.debounce), this.debouncedDisableTransitions = ye(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
2586
+ this.debouncedUpdate = ve(this.update, this.debounce), this.debouncedDisableTransitions = ve(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
2587
2587
  },
2588
2588
  mounted: function() {
2589
2589
  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);
@@ -2593,16 +2593,16 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2593
2593
  },
2594
2594
  methods: {
2595
2595
  getResult: function() {
2596
- var e = this.initialized ? this.prepareResult(C({}, this.coordinates)) : this.defaultCoordinates(), t = {
2596
+ var e = this.initialized ? this.prepareResult(w({}, this.coordinates)) : this.defaultCoordinates(), t = {
2597
2597
  rotate: this.imageTransforms.rotate % 360,
2598
- flip: C({}, this.imageTransforms.flip)
2598
+ flip: w({}, this.imageTransforms.flip)
2599
2599
  };
2600
2600
  if (this.src && this.imageLoaded) {
2601
2601
  var n = this;
2602
2602
  return {
2603
2603
  image: this.image,
2604
2604
  coordinates: e,
2605
- visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
2605
+ visibleArea: this.visibleArea ? w({}, this.visibleArea) : null,
2606
2606
  imageTransforms: t,
2607
2607
  get canvas() {
2608
2608
  return n.canvas ? n.getCanvas() : void 0;
@@ -2612,14 +2612,14 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2612
2612
  return {
2613
2613
  image: this.image,
2614
2614
  coordinates: e,
2615
- visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
2615
+ visibleArea: this.visibleArea ? w({}, this.visibleArea) : null,
2616
2616
  canvas: void 0,
2617
2617
  imageTransforms: t
2618
2618
  };
2619
2619
  },
2620
2620
  zoom: function(e, t) {
2621
2621
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
2622
- this.onManipulateImage(new B({}, {
2622
+ this.onManipulateImage(new V({}, {
2623
2623
  factor: 1 / e,
2624
2624
  center: t
2625
2625
  }), {
@@ -2629,7 +2629,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2629
2629
  },
2630
2630
  move: function(e, t) {
2631
2631
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
2632
- this.onManipulateImage(new B({
2632
+ this.onManipulateImage(new V({
2633
2633
  left: e || 0,
2634
2634
  top: t || 0
2635
2635
  }), {
@@ -2672,7 +2672,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2672
2672
  top: Math.round(t.top)
2673
2673
  };
2674
2674
  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);
2675
- }(C(C({}, this.getPublicProperties()), {}, {
2675
+ }(w(w({}, this.getPublicProperties()), {}, {
2676
2676
  positionRestrictions: st(this.positionRestrictions, this.visibleArea),
2677
2677
  coordinates: e
2678
2678
  })) : e;
@@ -2694,16 +2694,16 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2694
2694
  sizeRestrictions: this.sizeRestrictions,
2695
2695
  stencilSize: this.getStencilSize()
2696
2696
  });
2697
- return C(C({}, a), {}, { changed: !Re(a.visibleArea, t) || !Re(a.coordinates, n) });
2697
+ return w(w({}, a), {}, { changed: !Le(a.visibleArea, t) || !Le(a.coordinates, n) });
2698
2698
  },
2699
2699
  runAutoZoom: function(e) {
2700
- 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;
2700
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = _e(t, Lt), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
2701
2701
  r && c && this.enableTransitions(), this.visibleArea = o, this.coordinates = s, r && c && this.debouncedDisableTransitions();
2702
2702
  },
2703
2703
  normalizeEvent: function(e) {
2704
2704
  return function(e) {
2705
2705
  var t = e.event, n = e.visibleArea, r = e.coefficient;
2706
- if (t.type === "manipulateImage") return N(N({}, t), {
2706
+ if (t.type === "manipulateImage") return P(P({}, t), {
2707
2707
  move: {
2708
2708
  left: t.move && t.move.left ? r * t.move.left : 0,
2709
2709
  top: t.move && t.move.top ? r * t.move.top : 0
@@ -2717,19 +2717,19 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2717
2717
  }
2718
2718
  });
2719
2719
  if (t.type === "resize") {
2720
- var i = N(N({}, t), { directions: N({}, t.directions) });
2721
- return V.forEach((function(e) {
2720
+ var i = P(P({}, t), { directions: P({}, t.directions) });
2721
+ return H.forEach((function(e) {
2722
2722
  i.directions[e] *= r;
2723
2723
  })), i;
2724
2724
  }
2725
2725
  if (t.type === "move") {
2726
- var a = N(N({}, t), { directions: N({}, t.directions) });
2727
- return Fe.forEach((function(e) {
2726
+ var a = P(P({}, t), { directions: P({}, t.directions) });
2727
+ return Pe.forEach((function(e) {
2728
2728
  a.directions[e] *= r;
2729
2729
  })), a;
2730
2730
  }
2731
2731
  return t;
2732
- }(C(C({}, this.getPublicProperties()), {}, { event: e }));
2732
+ }(w(w({}, this.getPublicProperties()), {}, { event: e }));
2733
2733
  },
2734
2734
  getCanvas: function() {
2735
2735
  if (this.$refs.canvas) {
@@ -2739,12 +2739,12 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2739
2739
  height: t.naturalHeight
2740
2740
  }, o = We(a, r), s = e.getContext("2d");
2741
2741
  e.height = o.height, e.width = o.width, s.save();
2742
- var c = X(W(N({
2742
+ var c = X(W(P({
2743
2743
  left: 0,
2744
2744
  top: 0
2745
2745
  }, a)), r);
2746
2746
  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;
2747
- }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = C({
2747
+ }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = w({
2748
2748
  minWidth: 0,
2749
2749
  minHeight: 0,
2750
2750
  maxWidth: 1 / 0,
@@ -2809,7 +2809,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2809
2809
  this.$refs.cropper, this.$refs.image;
2810
2810
  var t = this.defaultSize;
2811
2811
  t ||= this.stencilSize ? at : it, this.sizeRestrictions;
2812
- var n = L(t) ? t({
2812
+ var n = R(t) ? t({
2813
2813
  boundaries: this.boundaries,
2814
2814
  imageSize: this.imageSize,
2815
2815
  aspectRatio: this.getAspectRatio(),
@@ -2818,13 +2818,13 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2818
2818
  visibleArea: this.visibleArea
2819
2819
  }) : t, r = this.defaultPosition || rt, i = [n, function(t) {
2820
2820
  var n = t.coordinates;
2821
- return C({}, L(r) ? r({
2821
+ return w({}, R(r) ? r({
2822
2822
  coordinates: n,
2823
2823
  imageSize: e.imageSize,
2824
2824
  visibleArea: e.visibleArea
2825
2825
  }) : e.defaultPosition);
2826
2826
  }];
2827
- this.delayedTransforms && i.push.apply(i, T(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(i, !0), this.delayedTransforms = null;
2827
+ this.delayedTransforms && i.push.apply(i, E(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(i, !0), this.delayedTransforms = null;
2828
2828
  }
2829
2829
  },
2830
2830
  clearImage: function() {
@@ -2854,7 +2854,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2854
2854
  cropper: n,
2855
2855
  imageSize: e.imageSize
2856
2856
  };
2857
- if (e.boundaries = L(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
2857
+ if (e.boundaries = R(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
2858
2858
  var t = e.cropper, n = e.imageSize, r = t.clientHeight, i = t.clientWidth, a = r, o = n.width * r / n.height;
2859
2859
  return o > i && (o = i, a = n.height * i / n.width), {
2860
2860
  width: o,
@@ -2871,10 +2871,10 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2871
2871
  },
2872
2872
  resetVisibleArea: function() {
2873
2873
  var e = this;
2874
- return this.appliedImageTransforms = C(C({}, this.defaultImageTransforms), {}, { flip: C({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
2874
+ return this.appliedImageTransforms = w(w({}, this.defaultImageTransforms), {}, { flip: w({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
2875
2875
  e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
2876
2876
  var t, n, r, i, a, o, s = e.defaultVisibleArea || ot;
2877
- e.visibleArea = L(s) ? s({
2877
+ e.visibleArea = R(s) ? s({
2878
2878
  imageSize: e.imageSize,
2879
2879
  boundaries: e.boundaries,
2880
2880
  coordinates: e.priority === "visible-area" ? null : e.coordinates,
@@ -2884,7 +2884,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2884
2884
  visibleArea: e.visibleArea,
2885
2885
  boundaries: e.boundaries,
2886
2886
  getAreaRestrictions: e.getAreaRestrictions
2887
- }, 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({
2887
+ }, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = P({}, n), o = J(r), a.width / a.height !== o && (a.height = a.width / o), Z(a, i({
2888
2888
  visibleArea: a,
2889
2889
  type: "move"
2890
2890
  }))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({
@@ -2925,7 +2925,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2925
2925
  var e, t = this;
2926
2926
  if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
2927
2927
  if (function(e) {
2928
- if (I(e)) return !1;
2928
+ if (L(e)) return !1;
2929
2929
  var t = window.location, n = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e) || [], r = {
2930
2930
  protocol: n[1] || "",
2931
2931
  host: n[2] || "",
@@ -2935,7 +2935,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2935
2935
  };
2936
2936
  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));
2937
2937
  }(this.src)) {
2938
- var n = R(this.crossOrigin) ? this.canvas : this.crossOrigin;
2938
+ var n = z(this.crossOrigin) ? this.canvas : this.crossOrigin;
2939
2939
  !0 === n && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
2940
2940
  }
2941
2941
  if (this.checkOrientation) {
@@ -2978,13 +2978,13 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
2978
2978
  },
2979
2979
  onParseImage: function(e) {
2980
2980
  var t = this, n = e.source, r = e.arrayBuffer, i = e.orientation;
2981
- 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) {
2981
+ this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? I(n) || !L(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
2982
2982
  for (var t = [], n = new Uint8Array(e); n.length > 0;) {
2983
2983
  var r = n.subarray(0, 8192);
2984
2984
  t.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), n = n.subarray(8192);
2985
2985
  }
2986
2986
  return "data:image/jpeg;base64," + btoa(t.join(""));
2987
- }(r) : this.imageAttributes.src = n, this.appliedImageTransforms = L(this.defaultTransforms) ? Tt(this.defaultTransforms()) : be(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
2987
+ }(r) : this.imageAttributes.src = n, this.appliedImageTransforms = R(this.defaultTransforms) ? Tt(this.defaultTransforms()) : ye(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
2988
2988
  var t = Tt({});
2989
2989
  if (e) switch (e) {
2990
2990
  case 2:
@@ -3008,7 +3008,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3008
3008
  case 8: t.rotate = -90;
3009
3009
  }
3010
3010
  return t;
3011
- }(i), this.defaultImageTransforms = C(C({}, this.appliedImageTransforms), {}, { flip: C({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3011
+ }(i), this.defaultImageTransforms = w(w({}, this.appliedImageTransforms), {}, { flip: w({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3012
3012
  var e = t.$refs.image;
3013
3013
  e && e.complete && (function(e) {
3014
3014
  return !!e.naturalWidth;
@@ -3024,7 +3024,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3024
3024
  onMove: function(e) {
3025
3025
  var t = this;
3026
3026
  this.transitionsOptions.enabled || this.awaitRender((function() {
3027
- t.coordinates = t.moveAlgorithm(C(C({}, t.getPublicProperties()), {}, {
3027
+ t.coordinates = t.moveAlgorithm(w(w({}, t.getPublicProperties()), {}, {
3028
3028
  positionRestrictions: st(t.positionRestrictions, t.visibleArea),
3029
3029
  coordinates: t.coordinates,
3030
3030
  event: t.normalizeEvent(e)
@@ -3035,7 +3035,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3035
3035
  var t = this;
3036
3036
  this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender((function() {
3037
3037
  var n = t.sizeRestrictions, r = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
3038
- t.coordinates = t.resizeAlgorithm(C(C({}, t.getPublicProperties()), {}, {
3038
+ t.coordinates = t.resizeAlgorithm(w(w({}, t.getPublicProperties()), {}, {
3039
3039
  positionRestrictions: st(t.positionRestrictions, t.visibleArea),
3040
3040
  sizeRestrictions: {
3041
3041
  maxWidth: Math.min(n.maxWidth, t.visibleArea.width),
@@ -3052,7 +3052,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3052
3052
  if (!this.transitionsOptions.enabled) {
3053
3053
  var n = t.transitions, r = n !== void 0 && n, i = t.normalize, a = i === void 0 || i;
3054
3054
  r && this.enableTransitions();
3055
- var o = ct(C(C({}, this.getPublicProperties()), {}, {
3055
+ var o = ct(w(w({}, this.getPublicProperties()), {}, {
3056
3056
  event: a ? this.normalizeEvent(e) : e,
3057
3057
  getAreaRestrictions: this.getAreaRestrictions,
3058
3058
  imageRestriction: this.imageRestriction,
@@ -3080,9 +3080,9 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3080
3080
  var s = this.$refs.stencil.aspectRatios();
3081
3081
  t = s.minimum, n = s.maximum;
3082
3082
  }
3083
- if (R(t) && (t = R(i) ? a : i), R(n) && (n = R(i) ? o : i), !e && (R(t) || R(n))) {
3083
+ if (z(t) && (t = z(i) ? a : i), z(n) && (n = z(i) ? o : i), !e && (z(t) || z(n))) {
3084
3084
  var c = this.getStencilSize(), l = c ? J(c) : null;
3085
- R(t) && (t = Se(l) ? l : void 0), R(n) && (n = Se(l) ? l : void 0);
3085
+ z(t) && (t = xe(l) ? l : void 0), z(n) && (n = xe(l) ? l : void 0);
3086
3086
  }
3087
3087
  return {
3088
3088
  minimum: t,
@@ -3100,7 +3100,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3100
3100
  coefficient: this.coefficient,
3101
3101
  coordinates: this.coordinates,
3102
3102
  aspectRatio: this.getAspectRatio(!0)
3103
- }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(J(i = L(n) ? n({
3103
+ }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(J(i = R(n) ? n({
3104
3104
  boundaries: t,
3105
3105
  aspectRatio: r
3106
3106
  }) : n), r) && (i = Q({
@@ -3145,13 +3145,13 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3145
3145
  };
3146
3146
  },
3147
3147
  defaultCoordinates: function() {
3148
- return C({}, Le);
3148
+ return w({}, Ie);
3149
3149
  },
3150
3150
  flip: function(e, t) {
3151
3151
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
3152
3152
  if (!this.transitionsActive) {
3153
3153
  r && this.enableTransitions();
3154
- var i = C({}, this.imageTransforms.flip), a = ut({
3154
+ var i = w({}, this.imageTransforms.flip), a = ut({
3155
3155
  flip: {
3156
3156
  horizontal: e ? !i.horizontal : i.horizontal,
3157
3157
  vertical: t ? !i.vertical : i.vertical
@@ -3173,7 +3173,7 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3173
3173
  var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).transitions, n = t === void 0 || t;
3174
3174
  if (!this.transitionsActive) {
3175
3175
  n && this.enableTransitions();
3176
- var r = C({}, this.imageSize);
3176
+ var r = w({}, this.imageSize);
3177
3177
  this.appliedImageTransforms.rotate += e;
3178
3178
  var i = lt({
3179
3179
  visibleArea: this.visibleArea,
@@ -3204,54 +3204,54 @@ var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
3204
3204
  ref: "sourceCanvas",
3205
3205
  style: { display: "none" }
3206
3206
  };
3207
- Rt.render = function(e, t, r, i, o, s) {
3208
- return a(), g("div", {
3207
+ Rt.render = function(n, a, s, c, l, u) {
3208
+ return r(), g("div", {
3209
3209
  ref: "cropper",
3210
- class: s.classes.cropper
3210
+ class: u.classes.cropper
3211
3211
  }, [S("div", {
3212
3212
  ref: "stretcher",
3213
- class: s.classes.stretcher
3213
+ class: u.classes.stretcher
3214
3214
  }, null, 2), S("div", {
3215
- class: s.classes.boundaries,
3216
- style: s.boundariesStyle
3217
- }, [(a(), g(ae(r.backgroundWrapperComponent), {
3218
- class: s.classes.cropperWrapper,
3219
- "wheel-resize": s.settings.resizeImage.wheel,
3220
- "touch-resize": s.settings.resizeImage.touch,
3221
- "touch-move": s.settings.moveImage.touch,
3222
- "mouse-move": s.settings.moveImage.mouse,
3223
- onMove: s.onManipulateImage,
3224
- onResize: s.onManipulateImage
3215
+ class: u.classes.boundaries,
3216
+ style: u.boundariesStyle
3217
+ }, [(r(), g(t(s.backgroundWrapperComponent), {
3218
+ class: u.classes.cropperWrapper,
3219
+ "wheel-resize": u.settings.resizeImage.wheel,
3220
+ "touch-resize": u.settings.resizeImage.touch,
3221
+ "touch-move": u.settings.moveImage.touch,
3222
+ "mouse-move": u.settings.moveImage.mouse,
3223
+ onMove: u.onManipulateImage,
3224
+ onResize: u.onManipulateImage
3225
3225
  }, {
3226
- default: c((function() {
3226
+ default: i((function() {
3227
3227
  return [
3228
3228
  S("div", {
3229
- class: s.classes.background,
3230
- style: s.boundariesStyle
3229
+ class: u.classes.background,
3230
+ style: u.boundariesStyle
3231
3231
  }, null, 6),
3232
- S("div", { class: s.classes.imageWrapper }, [S("img", {
3232
+ S("div", { class: u.classes.imageWrapper }, [S("img", {
3233
3233
  ref: "image",
3234
- crossorigin: o.imageAttributes.crossOrigin,
3235
- src: o.imageAttributes.src,
3236
- class: s.classes.image,
3237
- style: s.imageStyle,
3238
- onMousedown: t[1] ||= v((function() {}), ["prevent"])
3234
+ crossorigin: l.imageAttributes.crossOrigin,
3235
+ src: l.imageAttributes.src,
3236
+ class: u.classes.image,
3237
+ style: u.imageStyle,
3238
+ onMousedown: a[1] ||= _((function() {}), ["prevent"])
3239
3239
  }, null, 46, ["crossorigin", "src"])], 2),
3240
3240
  S("div", {
3241
- class: s.classes.foreground,
3242
- style: s.boundariesStyle
3241
+ class: u.classes.foreground,
3242
+ style: u.boundariesStyle
3243
3243
  }, null, 6),
3244
- n((a(), g(ae(r.stencilComponent), _({
3244
+ o((r(), g(t(s.stencilComponent), e({
3245
3245
  ref: "stencil",
3246
- image: s.image,
3247
- coordinates: o.coordinates,
3248
- "stencil-coordinates": s.stencilCoordinates,
3249
- transitions: s.transitionsOptions
3250
- }, r.stencilProps, {
3251
- onResize: s.onResize,
3252
- onResizeEnd: s.onResizeEnd,
3253
- onMove: s.onMove,
3254
- onMoveEnd: s.onMoveEnd
3246
+ image: u.image,
3247
+ coordinates: l.coordinates,
3248
+ "stencil-coordinates": u.stencilCoordinates,
3249
+ transitions: u.transitionsOptions
3250
+ }, s.stencilProps, {
3251
+ onResize: u.onResize,
3252
+ onResizeEnd: u.onResizeEnd,
3253
+ onMove: u.onMove,
3254
+ onMoveEnd: u.onMoveEnd
3255
3255
  }), null, 16, [
3256
3256
  "image",
3257
3257
  "coordinates",
@@ -3261,9 +3261,9 @@ Rt.render = function(e, t, r, i, o, s) {
3261
3261
  "onResizeEnd",
3262
3262
  "onMove",
3263
3263
  "onMoveEnd"
3264
- ])), [[b, o.imageLoaded]]),
3265
- r.canvas ? (a(), g("canvas", zt, null, 512)) : h("", !0),
3266
- r.canvas ? (a(), g("canvas", Bt, null, 512)) : h("", !0)
3264
+ ])), [[b, l.imageLoaded]]),
3265
+ s.canvas ? (r(), g("canvas", zt, null, 512)) : h("", !0),
3266
+ s.canvas ? (r(), g("canvas", Bt, null, 512)) : h("", !0)
3267
3267
  ];
3268
3268
  })),
3269
3269
  _: 1
@@ -3337,7 +3337,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3337
3337
  role: "alert",
3338
3338
  class: "tpl:shrink-0 tpl:px-5 tpl:pt-3 tpl:text-xs",
3339
3339
  style: { color: "var(--tpl-danger)" }
3340
- }, 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__ */ e({
3340
+ }, 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__*/ ae(/* @__PURE__ */ n({
3341
3341
  __name: "MediaEditModal",
3342
3342
  props: {
3343
3343
  visible: { type: Boolean },
@@ -3346,16 +3346,16 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3346
3346
  canCrop: { type: Boolean }
3347
3347
  },
3348
3348
  emits: ["close"],
3349
- setup(e, { emit: i }) {
3350
- let o = e, _ = i, { t: b } = ue(), ae = t(le, null), oe = t(se, f(null)), _e = b.mediaLibrary, { isImageMimeType: C } = ce(), w = f(""), ve = f(""), T = f(null), E = f("free"), D = f(void 0), O = f(void 0), k = f(""), A = f(""), j = f(void 0), M = f(null), ye = f(!1), N = f(!1), P = f(!1), F = f(null), I = null, L = [
3349
+ setup(e, { emit: t }) {
3350
+ let n = e, l = t, { t: b } = le(), C = c(ce, null), ae = c(oe, x(null)), ge = b.mediaLibrary, { isImageMimeType: w } = se(), T = x(""), _e = x(""), E = x(null), D = x("free"), O = x(void 0), k = x(void 0), A = x(""), j = x(""), M = x(void 0), N = x(null), ve = x(!1), P = x(!1), F = x(!1), I = x(null), L = null, R = [
3351
3351
  "image/jpeg",
3352
3352
  "image/png",
3353
3353
  "image/webp"
3354
- ], R = ne(() => !o.item || !o.canCrop ? !1 : L.includes(o.item.mimeType ?? "")), be = ne(() => D.value !== void 0 || O.value !== void 0), xe = ne(() => E.value === "original" ? j.value : fe[E.value]), z = ne(() => M.value ? ge(M.value.width, M.value.height, D.value, O.value) : null);
3355
- s(() => o.visible, (e) => {
3356
- e && o.item && (w.value = o.item.filename ?? "", ve.value = o.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, o.item.width && o.item.height && (j.value = o.item.width / o.item.height));
3354
+ ], z = ne(() => !n.item || !n.canCrop ? !1 : R.includes(n.item.mimeType ?? "")), ye = ne(() => O.value !== void 0 || k.value !== void 0), be = ne(() => D.value === "original" ? M.value : de[D.value]), B = ne(() => N.value ? he(N.value.width, N.value.height, O.value, k.value) : null);
3355
+ a(() => n.visible, (e) => {
3356
+ e && n.item && (T.value = n.item.filename ?? "", _e.value = n.item.alt ?? "", D.value = "free", O.value = void 0, k.value = void 0, A.value = "", j.value = "", M.value = void 0, N.value = null, ve.value = !1, F.value = !1, I.value = null, L = null, n.item.width && n.item.height && (M.value = n.item.width / n.item.height));
3357
3357
  }, { immediate: !0 });
3358
- function Se(e) {
3358
+ function xe(e) {
3359
3359
  return {
3360
3360
  left: Math.round(e.left),
3361
3361
  top: Math.round(e.top),
@@ -3363,67 +3363,67 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3363
3363
  height: Math.round(e.height)
3364
3364
  };
3365
3365
  }
3366
- function Ce(e, t) {
3366
+ function Se(e, t) {
3367
3367
  return e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height;
3368
3368
  }
3369
- function we(e) {
3369
+ function Ce(e) {
3370
3370
  if (!e.coordinates) return;
3371
- let t = Se(e.coordinates);
3372
- M.value = {
3371
+ let t = xe(e.coordinates);
3372
+ N.value = {
3373
3373
  width: t.width,
3374
3374
  height: t.height
3375
- }, I ? P.value = !Ce(t, I) : I = t;
3375
+ }, L ? F.value = !Se(t, L) : L = t;
3376
3376
  }
3377
- function B({ imageSize: e }) {
3377
+ function V({ imageSize: e }) {
3378
3378
  return {
3379
3379
  width: e.width,
3380
3380
  height: e.height
3381
3381
  };
3382
3382
  }
3383
- function Te() {
3384
- ye.value = !0, !j.value && o.item?.width && o.item?.height && (j.value = o.item.width / o.item.height);
3383
+ function we() {
3384
+ ve.value = !0, !M.value && n.item?.width && n.item?.height && (M.value = n.item.width / n.item.height);
3385
3385
  }
3386
- function Ee(e) {
3386
+ function Te(e) {
3387
3387
  let t = e.target.value;
3388
- k.value = t, D.value = t && parseInt(t, 10) || void 0;
3388
+ A.value = t, O.value = t && parseInt(t, 10) || void 0;
3389
3389
  }
3390
- function De(e) {
3390
+ function Ee(e) {
3391
3391
  let t = e.target.value;
3392
- A.value = t, O.value = t && parseInt(t, 10) || void 0;
3392
+ j.value = t, k.value = t && parseInt(t, 10) || void 0;
3393
3393
  }
3394
- async function Oe() {
3395
- let e = w.value.trim();
3396
- if (!e || !o.item || N.value) return;
3397
- let t = o.item, n = C(t.mimeType ?? ""), r;
3398
- if (N.value = !0, F.value = null, R.value && T.value && (P.value || be.value)) try {
3399
- let { canvas: e } = T.value.getResult();
3394
+ async function De() {
3395
+ let e = T.value.trim();
3396
+ if (!e || !n.item || P.value) return;
3397
+ let t = n.item, r = w(t.mimeType ?? ""), i;
3398
+ if (P.value = !0, I.value = null, z.value && E.value && (F.value || ye.value)) try {
3399
+ let { canvas: e } = E.value.getResult();
3400
3400
  if (!e) throw Error("The cropper returned no canvas");
3401
- let n = me(e, D.value, O.value);
3402
- (P.value || n !== e) && (r = { file: await he(n, t.filename ?? "image", pe(t.mimeType ?? "")) });
3401
+ let n = pe(e, O.value, k.value);
3402
+ (F.value || n !== e) && (i = { file: await me(n, t.filename ?? "image", fe(t.mimeType ?? "")) });
3403
3403
  } catch {
3404
- F.value = "crop", N.value = !1;
3404
+ I.value = "crop", P.value = !1;
3405
3405
  return;
3406
3406
  }
3407
- let i = await o.save(t.id, e, n ? ve.value : void 0, r);
3408
- N.value = !1, i === "saved" ? _("close") : (i === "replaced" && ke(), F.value = "save");
3407
+ let a = await n.save(t.id, e, r ? _e.value : void 0, i);
3408
+ P.value = !1, a === "saved" ? l("close") : (a === "replaced" && Oe(), I.value = "save");
3409
3409
  }
3410
- function ke() {
3411
- let e = T.value?.getResult().coordinates;
3412
- e && (I = Se(e)), P.value = !1, D.value = void 0, O.value = void 0, k.value = "", A.value = "";
3410
+ function Oe() {
3411
+ let e = E.value?.getResult().coordinates;
3412
+ e && (L = xe(e)), F.value = !1, O.value = void 0, k.value = void 0, A.value = "", j.value = "";
3413
3413
  }
3414
- function Ae() {
3415
- N.value || _("close");
3414
+ function ke() {
3415
+ P.value || l("close");
3416
3416
  }
3417
- let je = f(null), Me = ne(() => o.visible && o.item !== null);
3418
- de(je, Me);
3419
- function V(e) {
3420
- if (e.stopPropagation(), e.key === "Enter" && !N.value) {
3417
+ let Ae = x(null), je = ne(() => n.visible && n.item !== null);
3418
+ ue(Ae, je);
3419
+ function H(e) {
3420
+ if (e.stopPropagation(), e.key === "Enter" && !P.value) {
3421
3421
  if (e.target?.closest("textarea, [contenteditable]")) return;
3422
- e.preventDefault(), Oe();
3422
+ e.preventDefault(), De();
3423
3423
  }
3424
- e.key === "Escape" && Ae();
3424
+ e.key === "Escape" && ke();
3425
3425
  }
3426
- return (t, i) => (a(), g(p, { to: x(oe) || "body" }, [S(ee, {
3426
+ return (t, n) => (r(), g(m, { to: f(ae) || "body" }, [S(ee, {
3427
3427
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
3428
3428
  "enter-from-class": "tpl:opacity-0",
3429
3429
  "enter-to-class": "tpl:opacity-100",
@@ -3431,54 +3431,54 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3431
3431
  "leave-from-class": "tpl:opacity-100",
3432
3432
  "leave-to-class": "tpl:opacity-0"
3433
3433
  }, {
3434
- default: c(() => [e.visible && e.item ? (a(), l("div", {
3434
+ default: i(() => [e.visible && e.item ? (r(), u("div", {
3435
3435
  key: 0,
3436
- "data-tpl-theme": x(ae),
3437
- class: ie([x(oe) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3436
+ "data-tpl-theme": f(C),
3437
+ class: p([f(ae) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
3438
3438
  style: { "background-color": "var(--tpl-overlay)" },
3439
- onClick: v(Ae, ["self"]),
3440
- onKeydown: V
3441
- }, [y("div", {
3439
+ onClick: _(ke, ["self"]),
3440
+ onKeydown: H
3441
+ }, [v("div", {
3442
3442
  ref_key: "dialogRef",
3443
- ref: je,
3443
+ ref: Ae,
3444
3444
  role: "dialog",
3445
3445
  "aria-modal": "true",
3446
3446
  "aria-labelledby": "tpl-media-edit-title",
3447
- class: ie(["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"]),
3447
+ class: p(["tpl:flex tpl:max-h-[90%] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", z.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
3448
3448
  style: { "background-color": "var(--tpl-bg-elevated)" }
3449
3449
  }, [
3450
- y("div", Ht, [y("h3", Ut, m(x(b).mediaLibrary.editFile), 1)]),
3451
- y("div", Wt, [
3452
- R.value ? (a(), l("div", Gt, [y("div", Kt, [S(x(Rt), {
3450
+ v("div", Ht, [v("h3", Ut, y(f(b).mediaLibrary.editFile), 1)]),
3451
+ v("div", Wt, [
3452
+ z.value ? (r(), u("div", Gt, [v("div", Kt, [S(f(Rt), {
3453
3453
  ref_key: "cropperRef",
3454
- ref: T,
3454
+ ref: E,
3455
3455
  src: e.item.url,
3456
- "stencil-props": { aspectRatio: xe.value },
3456
+ "stencil-props": { aspectRatio: be.value },
3457
3457
  class: "tpl:h-full tpl:w-full",
3458
3458
  "background-class": "tpl-cropper-background",
3459
- "default-size": B,
3460
- onChange: we,
3461
- onReady: Te
3462
- }, null, 8, ["src", "stencil-props"])]), y("div", qt, [
3463
- y("div", null, [y("label", Jt, m(x(b).mediaLibrary.cropAspectRatio), 1), y("div", Yt, [(a(), l(re, null, r([
3459
+ "default-size": V,
3460
+ onChange: Ce,
3461
+ onReady: we
3462
+ }, null, 8, ["src", "stencil-props"])]), v("div", qt, [
3463
+ v("div", null, [v("label", Jt, y(f(b).mediaLibrary.cropAspectRatio), 1), v("div", Yt, [(r(), u(ie, null, s([
3464
3464
  "free",
3465
3465
  "square",
3466
3466
  "landscape43",
3467
3467
  "landscape169",
3468
3468
  "original"
3469
- ], (e) => y("button", {
3469
+ ], (e) => v("button", {
3470
3470
  key: e,
3471
3471
  type: "button",
3472
3472
  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",
3473
- style: d({
3474
- borderColor: E.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
3475
- backgroundColor: E.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
3476
- color: E.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
3473
+ style: re({
3474
+ borderColor: D.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
3475
+ backgroundColor: D.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
3476
+ color: D.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
3477
3477
  }),
3478
- onClick: (t) => E.value = e
3479
- }, m(x(_e)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
3480
- y("div", Zt, [y("div", Qt, [y("label", $t, [u(m(x(b).mediaLibrary.cropMaxWidth) + " ", 1), y("span", en, m(x(b).mediaLibrary.cropOptional), 1)]), y("div", tn, [y("input", {
3481
- value: k.value,
3478
+ onClick: (t) => D.value = e
3479
+ }, y(f(ge)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
3480
+ v("div", Zt, [v("div", Qt, [v("label", $t, [d(y(f(b).mediaLibrary.cropMaxWidth) + " ", 1), v("span", en, y(f(b).mediaLibrary.cropOptional), 1)]), v("div", tn, [v("input", {
3481
+ value: A.value,
3482
3482
  type: "number",
3483
3483
  min: "1",
3484
3484
  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",
@@ -3487,10 +3487,10 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3487
3487
  "background-color": "var(--tpl-bg)",
3488
3488
  color: "var(--tpl-text)"
3489
3489
  },
3490
- placeholder: M.value?.width?.toString() || "",
3491
- onInput: Ee
3492
- }, null, 40, nn), y("span", rn, m(x(b).mediaLibrary.cropPixels), 1)])]), y("div", an, [y("label", on, [u(m(x(b).mediaLibrary.cropMaxHeight) + " ", 1), y("span", sn, m(x(b).mediaLibrary.cropOptional), 1)]), y("div", cn, [y("input", {
3493
- value: A.value,
3490
+ placeholder: N.value?.width?.toString() || "",
3491
+ onInput: Te
3492
+ }, null, 40, nn), v("span", rn, y(f(b).mediaLibrary.cropPixels), 1)])]), v("div", an, [v("label", on, [d(y(f(b).mediaLibrary.cropMaxHeight) + " ", 1), v("span", sn, y(f(b).mediaLibrary.cropOptional), 1)]), v("div", cn, [v("input", {
3493
+ value: j.value,
3494
3494
  type: "number",
3495
3495
  min: "1",
3496
3496
  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",
@@ -3499,14 +3499,14 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3499
3499
  "background-color": "var(--tpl-bg)",
3500
3500
  color: "var(--tpl-text)"
3501
3501
  },
3502
- placeholder: M.value?.height?.toString() || "",
3503
- onInput: De
3504
- }, null, 40, ln), y("span", un, m(x(b).mediaLibrary.cropPixels), 1)])])]),
3505
- z.value ? (a(), l("div", dn, [y("span", null, m(x(b).mediaLibrary.cropOutputSize) + ": ", 1), y("span", fn, m(z.value.width) + " x " + m(z.value.height) + " " + m(x(b).mediaLibrary.cropPixels), 1)])) : h("", !0)
3502
+ placeholder: N.value?.height?.toString() || "",
3503
+ onInput: Ee
3504
+ }, null, 40, ln), v("span", un, y(f(b).mediaLibrary.cropPixels), 1)])])]),
3505
+ B.value ? (r(), u("div", dn, [v("span", null, y(f(b).mediaLibrary.cropOutputSize) + ": ", 1), v("span", fn, y(B.value.width) + " x " + y(B.value.height) + " " + y(f(b).mediaLibrary.cropPixels), 1)])) : h("", !0)
3506
3506
  ])])) : h("", !0),
3507
- y("div", pn, [y("label", mn, m(x(b).mediaLibrary.fileName), 1), n(y("input", {
3507
+ v("div", pn, [v("label", mn, y(f(b).mediaLibrary.fileName), 1), o(v("input", {
3508
3508
  id: "tpl-media-filename",
3509
- "onUpdate:modelValue": i[0] ||= (e) => w.value = e,
3509
+ "onUpdate:modelValue": n[0] ||= (e) => T.value = e,
3510
3510
  type: "text",
3511
3511
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
3512
3512
  style: {
@@ -3514,11 +3514,11 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3514
3514
  "background-color": "var(--tpl-bg)",
3515
3515
  color: "var(--tpl-text)"
3516
3516
  },
3517
- autofocus: !R.value
3518
- }, null, 8, hn), [[te, w.value]])]),
3519
- x(C)(e.item.mimeType ?? "") ? (a(), l("div", gn, [y("label", _n, m(x(b).mediaLibrary.altText), 1), n(y("input", {
3517
+ autofocus: !z.value
3518
+ }, null, 8, hn), [[te, T.value]])]),
3519
+ f(w)(e.item.mimeType ?? "") ? (r(), u("div", gn, [v("label", _n, y(f(b).mediaLibrary.altText), 1), o(v("input", {
3520
3520
  id: "tpl-media-alt",
3521
- "onUpdate:modelValue": i[1] ||= (e) => ve.value = e,
3521
+ "onUpdate:modelValue": n[1] ||= (e) => _e.value = e,
3522
3522
  type: "text",
3523
3523
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
3524
3524
  style: {
@@ -3526,28 +3526,28 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3526
3526
  "background-color": "var(--tpl-bg)",
3527
3527
  color: "var(--tpl-text)"
3528
3528
  },
3529
- placeholder: x(b).mediaLibrary.altTextPlaceholder
3530
- }, null, 8, vn), [[te, ve.value]])])) : h("", !0)
3529
+ placeholder: f(b).mediaLibrary.altTextPlaceholder
3530
+ }, null, 8, vn), [[te, _e.value]])])) : h("", !0)
3531
3531
  ]),
3532
- F.value ? (a(), l("p", yn, m(F.value === "crop" ? x(b).mediaLibrary.editCropError : x(b).mediaLibrary.editSaveError), 1)) : h("", !0),
3533
- y("div", bn, [y("button", {
3532
+ I.value ? (r(), u("p", yn, y(I.value === "crop" ? f(b).mediaLibrary.editCropError : f(b).mediaLibrary.editSaveError), 1)) : h("", !0),
3533
+ v("div", bn, [v("button", {
3534
3534
  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",
3535
3535
  style: {
3536
3536
  "border-color": "var(--tpl-border)",
3537
3537
  color: "var(--tpl-text)",
3538
3538
  "background-color": "var(--tpl-bg)"
3539
3539
  },
3540
- disabled: N.value,
3541
- onClick: Ae
3542
- }, m(x(b).mediaLibrary.cancel), 9, xn), y("button", {
3540
+ disabled: P.value,
3541
+ onClick: ke
3542
+ }, y(f(b).mediaLibrary.cancel), 9, xn), v("button", {
3543
3543
  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",
3544
3544
  style: {
3545
3545
  "background-color": "var(--tpl-primary)",
3546
3546
  color: "var(--tpl-on-primary)"
3547
3547
  },
3548
- disabled: N.value,
3549
- onClick: Oe
3550
- }, m(N.value ? x(b).mediaLibrary.saving : x(b).mediaLibrary.saveChanges), 9, Sn)])
3548
+ disabled: P.value,
3549
+ onClick: De
3550
+ }, y(P.value ? f(b).mediaLibrary.saving : f(b).mediaLibrary.saveChanges), 9, Sn)])
3551
3551
  ], 2)], 42, Vt)) : h("", !0)]),
3552
3552
  _: 1
3553
3553
  })], 8, ["to"]));
@@ -3555,4 +3555,4 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
3555
3555
  }), [["__scopeId", "data-v-7d9a1872"]]);
3556
3556
  export { Cn as default };
3557
3557
 
3558
- //# sourceMappingURL=MediaEditModal-Cpcod6_U.js.map
3558
+ //# sourceMappingURL=MediaEditModal-Dz972UFx.js.map