@templatical/editor 0.52.1 → 0.53.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.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as
|
|
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-CPbgthOv.js";
|
|
4
4
|
// ../media-library/src/composables/useImageCrop.ts
|
|
5
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ?
|
|
80
|
-
|
|
81
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
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
|
|
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
|
|
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
|
|
109
|
+
function E(e) {
|
|
110
110
|
return function(e) {
|
|
111
|
-
if (Array.isArray(e)) return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
},
|
|
155
|
-
path:
|
|
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 &&
|
|
160
|
+
}(t == null && A.path);
|
|
161
161
|
}
|
|
162
|
-
},
|
|
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
|
|
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
|
-
|
|
193
|
-
var
|
|
194
|
-
return
|
|
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
|
-
},
|
|
197
|
+
}, P.apply(this, arguments);
|
|
198
198
|
};
|
|
199
|
-
function
|
|
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
|
|
206
|
+
function I(e) {
|
|
207
207
|
return /^blob:/.test(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
return
|
|
209
|
+
function L(e) {
|
|
210
|
+
return I(e) || function(e) {
|
|
211
211
|
return /^data:/.test(e);
|
|
212
212
|
}(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function R(e) {
|
|
215
215
|
return !!(e && e.constructor && e.call && e.apply);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function z(e) {
|
|
218
218
|
return e === void 0;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function ye(e) {
|
|
221
221
|
return typeof e == "object" && !!e;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function be(e, t, n) {
|
|
224
224
|
var r = {};
|
|
225
|
-
return
|
|
226
|
-
r[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
|
|
229
|
+
function B(e) {
|
|
230
230
|
var t = Number(e);
|
|
231
231
|
return Number.isNaN(t) ? e : t;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
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]") && !
|
|
236
|
+
}(e) && toString.call(e) == "[object Number]") && !Se(e);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Se(e) {
|
|
239
239
|
return e != e;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Ce(e, t) {
|
|
242
242
|
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
243
243
|
}
|
|
244
|
-
var
|
|
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
|
-
},
|
|
246
|
+
}, we = function(e, t) {
|
|
247
247
|
t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
|
|
248
|
-
},
|
|
248
|
+
}, Te = function(e) {
|
|
249
249
|
this.type = "move", this.directions = e;
|
|
250
|
-
},
|
|
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
|
-
}(),
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
362
|
-
return
|
|
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
|
|
366
|
+
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
367
367
|
},
|
|
368
368
|
onMousedown: t[2] ||= function() {
|
|
369
|
-
return
|
|
369
|
+
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
370
370
|
},
|
|
371
371
|
onMouseover: t[3] ||= function() {
|
|
372
|
-
return
|
|
372
|
+
return o.onMouseOver && o.onMouseOver.apply(o, arguments);
|
|
373
373
|
},
|
|
374
374
|
onMouseleave: t[4] ||= function() {
|
|
375
|
-
return
|
|
375
|
+
return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
|
|
376
376
|
}
|
|
377
|
-
}, [
|
|
377
|
+
}, [l(e.$slots, "default")], 34);
|
|
378
378
|
};
|
|
379
|
-
var
|
|
379
|
+
var Oe = M("vue-handler-wrapper"), ke = {
|
|
380
380
|
name: "HandlerWrapper",
|
|
381
|
-
components: { DraggableElement:
|
|
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 =
|
|
394
|
-
e =
|
|
395
|
-
} else e =
|
|
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:
|
|
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
|
-
|
|
409
|
-
var
|
|
410
|
-
return
|
|
411
|
-
class:
|
|
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:
|
|
426
|
-
return [
|
|
425
|
+
default: i((function() {
|
|
426
|
+
return [l(e.$slots, "default")];
|
|
427
427
|
})),
|
|
428
428
|
_: 3
|
|
429
429
|
}, 8, ["class"])], 2);
|
|
430
430
|
};
|
|
431
|
-
var
|
|
431
|
+
var Ae = M("vue-line-wrapper"), je = {
|
|
432
432
|
name: "LineWrapper",
|
|
433
|
-
components: { DraggableElement:
|
|
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
|
|
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
|
-
|
|
456
|
-
var
|
|
457
|
-
return
|
|
458
|
-
class:
|
|
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:
|
|
473
|
-
return [
|
|
472
|
+
default: i((function() {
|
|
473
|
+
return [l(e.$slots, "default")];
|
|
474
474
|
})),
|
|
475
475
|
_: 3
|
|
476
476
|
}, 8, ["class"]);
|
|
477
477
|
};
|
|
478
|
-
var
|
|
478
|
+
var H = [
|
|
479
479
|
"left",
|
|
480
480
|
"right",
|
|
481
481
|
"top",
|
|
482
482
|
"bottom"
|
|
483
|
-
],
|
|
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
|
-
],
|
|
488
|
+
], Ie = {
|
|
489
489
|
left: 0,
|
|
490
490
|
top: 0,
|
|
491
491
|
width: 0,
|
|
492
492
|
height: 0
|
|
493
493
|
};
|
|
494
|
-
function
|
|
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
|
|
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
|
|
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
|
|
532
|
-
var i = t[r], a =
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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 =
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
719
|
+
event: new Te({
|
|
720
720
|
left: t.left - e.left,
|
|
721
721
|
top: t.top - e.top
|
|
722
722
|
})
|
|
723
723
|
});
|
|
724
|
-
}, l =
|
|
724
|
+
}, l = P({}, t);
|
|
725
725
|
return (Array.isArray(n) ? n : [n]).forEach((function(e) {
|
|
726
726
|
var t = {};
|
|
727
|
-
|
|
727
|
+
z((t = typeof e == "function" ? e({
|
|
728
728
|
coordinates: l,
|
|
729
729
|
imageSize: r,
|
|
730
730
|
visibleArea: s
|
|
731
|
-
}) : e).width) &&
|
|
732
|
-
return c(
|
|
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,
|
|
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 =
|
|
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 =
|
|
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,
|
|
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(
|
|
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 =
|
|
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,
|
|
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(
|
|
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 =
|
|
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,
|
|
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,
|
|
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(
|
|
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(
|
|
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,
|
|
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,
|
|
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 =
|
|
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,
|
|
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:
|
|
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,
|
|
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(
|
|
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(
|
|
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 =
|
|
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 =
|
|
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,
|
|
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 =
|
|
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,
|
|
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 =
|
|
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 (
|
|
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,
|
|
970
|
+
var p = Math.min.apply(null, H.map((function(e) {
|
|
971
971
|
return f[e];
|
|
972
972
|
})));
|
|
973
|
-
p !== 1 / 0 &&
|
|
973
|
+
p !== 1 / 0 && H.forEach((function(e) {
|
|
974
974
|
c[e] *= p;
|
|
975
975
|
}));
|
|
976
|
-
} else
|
|
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 &&
|
|
981
|
+
m !== 1 / 0 && H.forEach((function(e) {
|
|
982
982
|
c[e] *= m;
|
|
983
983
|
}));
|
|
984
|
-
} else f.width !== 1 / 0 &&
|
|
984
|
+
} else f.width !== 1 / 0 && Me.forEach((function(e) {
|
|
985
985
|
c[e] *= f.width;
|
|
986
|
-
})), f.height !== 1 / 0 &&
|
|
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 =
|
|
994
|
+
var pt = M("vue-simple-handler"), mt = M("vue-simple-handler-wrapper"), ht = {
|
|
995
995
|
name: "SimpleHandler",
|
|
996
|
-
components: { HandlerWrapper:
|
|
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 = (
|
|
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:
|
|
1015
|
-
wrapper:
|
|
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,
|
|
1035
|
-
var
|
|
1036
|
-
return
|
|
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:
|
|
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 =
|
|
1061
|
+
var gt = M("vue-simple-line"), _t = M("vue-simple-line-wrapper"), vt = {
|
|
1062
1062
|
name: "SimpleLine",
|
|
1063
|
-
components: { LineWrapper:
|
|
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:
|
|
1080
|
-
wrapper:
|
|
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,
|
|
1100
|
-
var
|
|
1101
|
-
return
|
|
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:
|
|
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 =
|
|
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 =
|
|
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:
|
|
1243
|
-
wrapperClass:
|
|
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:
|
|
1259
|
-
wrapperClass:
|
|
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",
|
|
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
|
|
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,
|
|
1309
|
-
return
|
|
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
|
-
|
|
1315
|
-
S("div", null, [(
|
|
1316
|
-
return
|
|
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:
|
|
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
|
-
(
|
|
1339
|
-
return
|
|
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
|
-
}, [(
|
|
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:
|
|
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 =
|
|
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 =
|
|
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()) :
|
|
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 =
|
|
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
|
|
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,
|
|
1458
|
-
return
|
|
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
|
|
1461
|
+
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1462
1462
|
},
|
|
1463
1463
|
onMousedown: t[2] ||= function() {
|
|
1464
|
-
return
|
|
1464
|
+
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1465
1465
|
}
|
|
1466
|
-
}, [
|
|
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 +=
|
|
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 =
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 ||
|
|
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
|
|
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,
|
|
1690
|
-
return
|
|
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
|
|
1693
|
+
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1694
1694
|
},
|
|
1695
1695
|
onMousedown: t[2] ||= function() {
|
|
1696
|
-
return
|
|
1696
|
+
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1697
1697
|
},
|
|
1698
1698
|
onWheel: t[3] ||= function() {
|
|
1699
|
-
return
|
|
1699
|
+
return o.onWheel && o.onWheel.apply(o, arguments);
|
|
1700
1700
|
}
|
|
1701
|
-
}, [
|
|
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,
|
|
1726
|
-
var
|
|
1727
|
-
return
|
|
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:
|
|
1740
|
-
return [
|
|
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 =
|
|
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:
|
|
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 =
|
|
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,
|
|
1875
|
-
return
|
|
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
|
-
}, [
|
|
1883
|
+
}, [o(S("img", {
|
|
1884
1884
|
ref: "image",
|
|
1885
|
-
src:
|
|
1885
|
+
src: n.image && n.image.src,
|
|
1886
1886
|
class: s.classes.image,
|
|
1887
1887
|
style: s.imageStyle
|
|
1888
|
-
}, null, 14, ["src"]), [[b,
|
|
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(
|
|
1895
|
-
var c =
|
|
1896
|
-
return
|
|
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 =
|
|
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:
|
|
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:
|
|
1979
|
-
boundingBox:
|
|
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,
|
|
2019
|
-
var
|
|
2020
|
-
return
|
|
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(
|
|
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:
|
|
2041
|
-
return [S(
|
|
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:
|
|
2047
|
-
return [S(
|
|
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"], $ =
|
|
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
|
|
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 =
|
|
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 =
|
|
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),
|
|
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 &&
|
|
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
|
|
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 =
|
|
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,
|
|
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 =
|
|
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(
|
|
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:
|
|
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 =
|
|
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:
|
|
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:
|
|
2442
|
-
minHeight:
|
|
2443
|
-
maxWidth:
|
|
2444
|
-
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 =
|
|
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:
|
|
2493
|
+
image: j($("image"), this.imageClass),
|
|
2494
2494
|
stencil: $("stencil"),
|
|
2495
|
-
boundaries:
|
|
2496
|
-
stretcher:
|
|
2497
|
-
background:
|
|
2498
|
-
foreground:
|
|
2499
|
-
imageWrapper:
|
|
2500
|
-
cropperWrapper:
|
|
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 =
|
|
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 =
|
|
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(
|
|
2596
|
+
var e = this.initialized ? this.prepareResult(w({}, this.coordinates)) : this.defaultCoordinates(), t = {
|
|
2597
2597
|
rotate: this.imageTransforms.rotate % 360,
|
|
2598
|
-
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 ?
|
|
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 ?
|
|
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
|
|
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
|
|
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
|
-
}(
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
2721
|
-
return
|
|
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 =
|
|
2727
|
-
return
|
|
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
|
-
}(
|
|
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(
|
|
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 =
|
|
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 =
|
|
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
|
|
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,
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 (
|
|
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 =
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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(
|
|
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(
|
|
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(
|
|
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 (
|
|
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
|
-
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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(
|
|
3208
|
-
return
|
|
3207
|
+
Rt.render = function(n, a, s, c, l, u) {
|
|
3208
|
+
return r(), g("div", {
|
|
3209
3209
|
ref: "cropper",
|
|
3210
|
-
class:
|
|
3210
|
+
class: u.classes.cropper
|
|
3211
3211
|
}, [S("div", {
|
|
3212
3212
|
ref: "stretcher",
|
|
3213
|
-
class:
|
|
3213
|
+
class: u.classes.stretcher
|
|
3214
3214
|
}, null, 2), S("div", {
|
|
3215
|
-
class:
|
|
3216
|
-
style:
|
|
3217
|
-
}, [(
|
|
3218
|
-
class:
|
|
3219
|
-
"wheel-resize":
|
|
3220
|
-
"touch-resize":
|
|
3221
|
-
"touch-move":
|
|
3222
|
-
"mouse-move":
|
|
3223
|
-
onMove:
|
|
3224
|
-
onResize:
|
|
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:
|
|
3226
|
+
default: i((function() {
|
|
3227
3227
|
return [
|
|
3228
3228
|
S("div", {
|
|
3229
|
-
class:
|
|
3230
|
-
style:
|
|
3229
|
+
class: u.classes.background,
|
|
3230
|
+
style: u.boundariesStyle
|
|
3231
3231
|
}, null, 6),
|
|
3232
|
-
S("div", { class:
|
|
3232
|
+
S("div", { class: u.classes.imageWrapper }, [S("img", {
|
|
3233
3233
|
ref: "image",
|
|
3234
|
-
crossorigin:
|
|
3235
|
-
src:
|
|
3236
|
-
class:
|
|
3237
|
-
style:
|
|
3238
|
-
onMousedown:
|
|
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:
|
|
3242
|
-
style:
|
|
3241
|
+
class: u.classes.foreground,
|
|
3242
|
+
style: u.boundariesStyle
|
|
3243
3243
|
}, null, 6),
|
|
3244
|
-
|
|
3244
|
+
o((r(), g(t(s.stencilComponent), e({
|
|
3245
3245
|
ref: "stencil",
|
|
3246
|
-
image:
|
|
3247
|
-
coordinates:
|
|
3248
|
-
"stencil-coordinates":
|
|
3249
|
-
transitions:
|
|
3250
|
-
},
|
|
3251
|
-
onResize:
|
|
3252
|
-
onResizeEnd:
|
|
3253
|
-
onMove:
|
|
3254
|
-
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,
|
|
3265
|
-
|
|
3266
|
-
|
|
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__*/
|
|
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:
|
|
3350
|
-
let
|
|
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
|
-
],
|
|
3355
|
-
|
|
3356
|
-
e &&
|
|
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
|
|
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
|
|
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
|
|
3369
|
+
function Ce(e) {
|
|
3370
3370
|
if (!e.coordinates) return;
|
|
3371
|
-
let t =
|
|
3372
|
-
|
|
3371
|
+
let t = xe(e.coordinates);
|
|
3372
|
+
N.value = {
|
|
3373
3373
|
width: t.width,
|
|
3374
3374
|
height: t.height
|
|
3375
|
-
},
|
|
3375
|
+
}, L ? F.value = !Se(t, L) : L = t;
|
|
3376
3376
|
}
|
|
3377
|
-
function
|
|
3377
|
+
function V({ imageSize: e }) {
|
|
3378
3378
|
return {
|
|
3379
3379
|
width: e.width,
|
|
3380
3380
|
height: e.height
|
|
3381
3381
|
};
|
|
3382
3382
|
}
|
|
3383
|
-
function
|
|
3384
|
-
|
|
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
|
|
3386
|
+
function Te(e) {
|
|
3387
3387
|
let t = e.target.value;
|
|
3388
|
-
|
|
3388
|
+
A.value = t, O.value = t && parseInt(t, 10) || void 0;
|
|
3389
3389
|
}
|
|
3390
|
-
function
|
|
3390
|
+
function Ee(e) {
|
|
3391
3391
|
let t = e.target.value;
|
|
3392
|
-
|
|
3392
|
+
j.value = t, k.value = t && parseInt(t, 10) || void 0;
|
|
3393
3393
|
}
|
|
3394
|
-
async function
|
|
3395
|
-
let e =
|
|
3396
|
-
if (!e || !
|
|
3397
|
-
let t =
|
|
3398
|
-
if (
|
|
3399
|
-
let { canvas: e } =
|
|
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 =
|
|
3402
|
-
(
|
|
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
|
-
|
|
3404
|
+
I.value = "crop", P.value = !1;
|
|
3405
3405
|
return;
|
|
3406
3406
|
}
|
|
3407
|
-
let
|
|
3408
|
-
|
|
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
|
|
3411
|
-
let e =
|
|
3412
|
-
e && (
|
|
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
|
|
3415
|
-
|
|
3414
|
+
function ke() {
|
|
3415
|
+
P.value || l("close");
|
|
3416
3416
|
}
|
|
3417
|
-
let
|
|
3418
|
-
|
|
3419
|
-
function
|
|
3420
|
-
if (e.stopPropagation(), e.key === "Enter" && !
|
|
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(),
|
|
3422
|
+
e.preventDefault(), De();
|
|
3423
3423
|
}
|
|
3424
|
-
e.key === "Escape" &&
|
|
3424
|
+
e.key === "Escape" && ke();
|
|
3425
3425
|
}
|
|
3426
|
-
return (t,
|
|
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:
|
|
3434
|
+
default: i(() => [e.visible && e.item ? (r(), u("div", {
|
|
3435
3435
|
key: 0,
|
|
3436
|
-
"data-tpl-theme":
|
|
3437
|
-
class:
|
|
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:
|
|
3440
|
-
onKeydown:
|
|
3441
|
-
}, [
|
|
3439
|
+
onClick: _(ke, ["self"]),
|
|
3440
|
+
onKeydown: H
|
|
3441
|
+
}, [v("div", {
|
|
3442
3442
|
ref_key: "dialogRef",
|
|
3443
|
-
ref:
|
|
3443
|
+
ref: Ae,
|
|
3444
3444
|
role: "dialog",
|
|
3445
3445
|
"aria-modal": "true",
|
|
3446
3446
|
"aria-labelledby": "tpl-media-edit-title",
|
|
3447
|
-
class:
|
|
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
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
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:
|
|
3454
|
+
ref: E,
|
|
3455
3455
|
src: e.item.url,
|
|
3456
|
-
"stencil-props": { aspectRatio:
|
|
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":
|
|
3460
|
-
onChange:
|
|
3461
|
-
onReady:
|
|
3462
|
-
}, null, 8, ["src", "stencil-props"])]),
|
|
3463
|
-
|
|
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) =>
|
|
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:
|
|
3474
|
-
borderColor:
|
|
3475
|
-
backgroundColor:
|
|
3476
|
-
color:
|
|
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) =>
|
|
3479
|
-
},
|
|
3480
|
-
|
|
3481
|
-
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:
|
|
3491
|
-
onInput:
|
|
3492
|
-
}, null, 40, nn),
|
|
3493
|
-
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:
|
|
3503
|
-
onInput:
|
|
3504
|
-
}, null, 40, ln),
|
|
3505
|
-
|
|
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
|
-
|
|
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":
|
|
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: !
|
|
3518
|
-
}, null, 8, hn), [[te,
|
|
3519
|
-
|
|
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":
|
|
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:
|
|
3530
|
-
}, null, 8, vn), [[te,
|
|
3529
|
+
placeholder: f(b).mediaLibrary.altTextPlaceholder
|
|
3530
|
+
}, null, 8, vn), [[te, _e.value]])])) : h("", !0)
|
|
3531
3531
|
]),
|
|
3532
|
-
|
|
3533
|
-
|
|
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:
|
|
3541
|
-
onClick:
|
|
3542
|
-
},
|
|
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:
|
|
3549
|
-
onClick:
|
|
3550
|
-
},
|
|
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-
|
|
3558
|
+
//# sourceMappingURL=MediaEditModal-DDCIwr9U.js.map
|