@templatical/editor 0.51.1 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
- package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
- package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
- package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
- package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
- package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
- package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
- package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
- package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
- package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
- package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
- package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
- package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
- package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
- package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
- package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
- package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
- package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
- package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
- package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
- package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
- package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
- package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
- package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
- package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
- package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
- package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
- package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
- package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
- package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
- package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
- package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
- package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1433 -1454
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
- package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
- package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
- package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
- package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
- package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
- package/dist/dist-DyFArF_G.js +4 -0
- package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
- package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
- package/dist/dist-pA3ooG6N.js +4 -0
- package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
- package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
- package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
- package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
- package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
- package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
- package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
- package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
- package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
- package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
- package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
- package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
- package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
- package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
- package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
- package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
- package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
- package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
- package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
- package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
- package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
- package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
- package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
- package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
- package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
- package/dist/style.css +1 -1
- package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
- package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
- package/dist/templatical-editor.js +1231 -1251
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
- package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
- package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
- package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
- package/package.json +26 -24
- package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
- package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
- package/dist/IssuesPanel-C8nMUccy.js +0 -360
- package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
- package/dist/WrapperBlock-BO619LAb.js +0 -45
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
- package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
- package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
- package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
- package/dist/dist-BPFcLKTw.js +0 -5
- package/dist/dist-D7Yj7E-F.js +0 -5
- package/dist/en-DwV15ltA.js +0 -1
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
- package/dist/useEditorRoot-DUy67lJu.js +0 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
|
|
6
|
-
var
|
|
1
|
+
import { $ as e, C as t, E as n, F as r, H as i, I as a, Mt as o, N as s, Nt as c, P as l, U as u, _ as d, a as f, c as p, d as m, f as h, g, j as _, jt as v, l as y, r as ee, st as b, u as x, y as S, z as te } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
2
|
+
import { a as ne, c as re, o as ie, t as ae } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
3
|
+
import { t as oe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
4
|
+
import { a as se, n as ce, o as le, r as ue, t as de } from "./editor-modal-zaZHcmlO.js";
|
|
5
|
+
// ../media-library/src/composables/useImageCrop.ts
|
|
6
|
+
var fe = {
|
|
7
7
|
free: void 0,
|
|
8
8
|
square: 1,
|
|
9
9
|
landscape43: 4 / 3,
|
|
10
10
|
landscape169: 16 / 9,
|
|
11
11
|
original: void 0
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function pe(e) {
|
|
14
14
|
return e === "image/png" || e === "image/gif" ? {
|
|
15
15
|
mimeType: "image/png",
|
|
16
16
|
quality: 1
|
|
@@ -22,7 +22,7 @@ function me(e) {
|
|
|
22
22
|
quality: .92
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function me(e, t, n) {
|
|
26
26
|
let r = e.width, i = e.height;
|
|
27
27
|
if (!t && !n) return e;
|
|
28
28
|
let a = r, o = i;
|
|
@@ -36,7 +36,7 @@ function he(e, t, n) {
|
|
|
36
36
|
let c = s.getContext("2d");
|
|
37
37
|
return c && (c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(e, 0, 0, a, o)), s;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function he(e, t, n) {
|
|
40
40
|
return new Promise((r, i) => {
|
|
41
41
|
e.toBlob((e) => {
|
|
42
42
|
if (!e) {
|
|
@@ -48,7 +48,7 @@ function ge(e, t, n) {
|
|
|
48
48
|
}, n.mimeType, n.quality);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function ge(e, t, n, r) {
|
|
52
52
|
let i = e, a = t;
|
|
53
53
|
if (n && i > n) {
|
|
54
54
|
let e = n / i;
|
|
@@ -63,9 +63,8 @@ function _e(e, t, n, r) {
|
|
|
63
63
|
height: a
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
function ve(e, t) {
|
|
66
|
+
// ../../node_modules/.pnpm/vue-advanced-cropper@2.8.9_vue@3.5.44_typescript@6.0.3_/node_modules/vue-advanced-cropper/dist/index.esm-bundler.js
|
|
67
|
+
function _e(e, t) {
|
|
69
68
|
var n = Object.keys(e);
|
|
70
69
|
if (Object.getOwnPropertySymbols) {
|
|
71
70
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -75,18 +74,18 @@ function ve(e, t) {
|
|
|
75
74
|
}
|
|
76
75
|
return n;
|
|
77
76
|
}
|
|
78
|
-
function
|
|
77
|
+
function C(e) {
|
|
79
78
|
for (var t = 1; t < arguments.length; t++) {
|
|
80
79
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
81
|
-
t % 2 ?
|
|
82
|
-
|
|
83
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
80
|
+
t % 2 ? _e(Object(n), !0).forEach((function(t) {
|
|
81
|
+
w(e, t, n[t]);
|
|
82
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _e(Object(n)).forEach((function(t) {
|
|
84
83
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
85
84
|
}));
|
|
86
85
|
}
|
|
87
86
|
return e;
|
|
88
87
|
}
|
|
89
|
-
function
|
|
88
|
+
function w(e, t, n) {
|
|
90
89
|
return t in e ? Object.defineProperty(e, t, {
|
|
91
90
|
value: n,
|
|
92
91
|
enumerable: !0,
|
|
@@ -94,7 +93,7 @@ function C(e, t, n) {
|
|
|
94
93
|
writable: !0
|
|
95
94
|
}) : e[t] = n, e;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
96
|
+
function ve(e, t) {
|
|
98
97
|
if (e == null) return {};
|
|
99
98
|
var n, r, i = function(e, t) {
|
|
100
99
|
if (e == null) return {};
|
|
@@ -108,28 +107,28 @@ function ye(e, t) {
|
|
|
108
107
|
}
|
|
109
108
|
return i;
|
|
110
109
|
}
|
|
111
|
-
function
|
|
110
|
+
function T(e) {
|
|
112
111
|
return function(e) {
|
|
113
|
-
if (Array.isArray(e)) return
|
|
112
|
+
if (Array.isArray(e)) return E(e);
|
|
114
113
|
}(e) || function(e) {
|
|
115
114
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
116
115
|
}(e) || function(e, t) {
|
|
117
116
|
if (e) {
|
|
118
|
-
if (typeof e == "string") return
|
|
117
|
+
if (typeof e == "string") return E(e, t);
|
|
119
118
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
120
119
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
121
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
120
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return E(e, t);
|
|
122
121
|
}
|
|
123
122
|
}(e) || function() {
|
|
124
123
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
125
124
|
}();
|
|
126
125
|
}
|
|
127
|
-
function
|
|
126
|
+
function E(e, t) {
|
|
128
127
|
(t == null || t > e.length) && (t = e.length);
|
|
129
128
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
130
129
|
return r;
|
|
131
130
|
}
|
|
132
|
-
var
|
|
131
|
+
var D = function(e) {
|
|
133
132
|
(function() {
|
|
134
133
|
var t = {}.hasOwnProperty;
|
|
135
134
|
function n() {
|
|
@@ -153,15 +152,15 @@ var E = function(e) {
|
|
|
153
152
|
}
|
|
154
153
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
155
154
|
})();
|
|
156
|
-
},
|
|
157
|
-
path:
|
|
155
|
+
}, O, k, A = (D(k = {
|
|
156
|
+
path: O,
|
|
158
157
|
exports: {},
|
|
159
158
|
require: function(e, t) {
|
|
160
159
|
return function() {
|
|
161
160
|
throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
162
|
-
}(t == null &&
|
|
161
|
+
}(t == null && k.path);
|
|
163
162
|
}
|
|
164
|
-
},
|
|
163
|
+
}, k.exports), k.exports), j = function(e) {
|
|
165
164
|
return function(t, n) {
|
|
166
165
|
if (!t) return e;
|
|
167
166
|
var r;
|
|
@@ -173,7 +172,7 @@ var E = function(e) {
|
|
|
173
172
|
}), "") : "");
|
|
174
173
|
};
|
|
175
174
|
};
|
|
176
|
-
function
|
|
175
|
+
function M(e, t, n) {
|
|
177
176
|
var r, i, a, o, s;
|
|
178
177
|
function c() {
|
|
179
178
|
var l = Date.now() - o;
|
|
@@ -191,65 +190,65 @@ function j(e, t, n) {
|
|
|
191
190
|
r &&= (s = e.apply(a, i), a = i = null, clearTimeout(r), null);
|
|
192
191
|
}, l;
|
|
193
192
|
}
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
return
|
|
193
|
+
M.debounce = M;
|
|
194
|
+
var ye = M, N = function() {
|
|
195
|
+
return N = Object.assign || function(e) {
|
|
197
196
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
198
197
|
return e;
|
|
199
|
-
},
|
|
198
|
+
}, N.apply(this, arguments);
|
|
200
199
|
};
|
|
201
|
-
function
|
|
200
|
+
function P(e, t) {
|
|
202
201
|
var n, r;
|
|
203
202
|
return e && t ? (n = "" + e + t[0].toUpperCase() + t.slice(1), r = e + "-" + t) : (n = e || t, r = e || t), {
|
|
204
203
|
name: n,
|
|
205
204
|
classname: r
|
|
206
205
|
};
|
|
207
206
|
}
|
|
208
|
-
function
|
|
207
|
+
function F(e) {
|
|
209
208
|
return /^blob:/.test(e);
|
|
210
209
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
210
|
+
function I(e) {
|
|
211
|
+
return F(e) || function(e) {
|
|
213
212
|
return /^data:/.test(e);
|
|
214
213
|
}(e);
|
|
215
214
|
}
|
|
216
|
-
function
|
|
215
|
+
function L(e) {
|
|
217
216
|
return !!(e && e.constructor && e.call && e.apply);
|
|
218
217
|
}
|
|
219
|
-
function
|
|
218
|
+
function R(e) {
|
|
220
219
|
return e === void 0;
|
|
221
220
|
}
|
|
222
|
-
function
|
|
221
|
+
function be(e) {
|
|
223
222
|
return typeof e == "object" && !!e;
|
|
224
223
|
}
|
|
225
|
-
function
|
|
224
|
+
function xe(e, t, n) {
|
|
226
225
|
var r = {};
|
|
227
|
-
return
|
|
228
|
-
r[i] =
|
|
226
|
+
return be(e) ? (Object.keys(t).forEach((function(i) {
|
|
227
|
+
r[i] = R(e[i]) ? t[i] : be(t[i]) ? be(e[i]) ? xe(e[i], t[i], n[i]) : e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? !!e[i] : e[i];
|
|
229
228
|
})), r) : e ? t : n;
|
|
230
229
|
}
|
|
231
|
-
function
|
|
230
|
+
function z(e) {
|
|
232
231
|
var t = Number(e);
|
|
233
232
|
return Number.isNaN(t) ? e : t;
|
|
234
233
|
}
|
|
235
|
-
function
|
|
234
|
+
function Se(e) {
|
|
236
235
|
return typeof (e == "number" || function(e) {
|
|
237
236
|
return typeof e == "object" && !!e;
|
|
238
|
-
}(e) && toString.call(e) == "[object Number]") && !
|
|
237
|
+
}(e) && toString.call(e) == "[object Number]") && !Ce(e);
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function Ce(e) {
|
|
241
240
|
return e != e;
|
|
242
241
|
}
|
|
243
|
-
function
|
|
242
|
+
function we(e, t) {
|
|
244
243
|
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
245
244
|
}
|
|
246
|
-
var
|
|
245
|
+
var B = function(e, t) {
|
|
247
246
|
e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
|
|
248
|
-
},
|
|
247
|
+
}, Te = function(e, t) {
|
|
249
248
|
t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
|
|
250
|
-
},
|
|
249
|
+
}, Ee = function(e) {
|
|
251
250
|
this.type = "move", this.directions = e;
|
|
252
|
-
},
|
|
251
|
+
}, De = function() {
|
|
253
252
|
function e(e, t, n, r, i) {
|
|
254
253
|
this.type = "drag", this.nativeEvent = e, this.position = n, this.previousPosition = r, this.element = t, this.anchor = i;
|
|
255
254
|
}
|
|
@@ -267,7 +266,7 @@ var z = function(e, t) {
|
|
|
267
266
|
top: 0
|
|
268
267
|
};
|
|
269
268
|
}, e;
|
|
270
|
-
}(),
|
|
269
|
+
}(), Oe = {
|
|
271
270
|
name: "DraggableElement",
|
|
272
271
|
props: { classname: { type: String } },
|
|
273
272
|
beforeMount: function() {
|
|
@@ -288,7 +287,7 @@ var z = function(e, t) {
|
|
|
288
287
|
this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
|
|
289
288
|
},
|
|
290
289
|
onTouchStart: function(e) {
|
|
291
|
-
e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches =
|
|
290
|
+
e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = T(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
|
|
292
291
|
return {
|
|
293
292
|
clientX: t.clientX + n.clientX / e.touches.length,
|
|
294
293
|
clientY: t.clientY + n.clientY / e.touches.length
|
|
@@ -334,11 +333,11 @@ var z = function(e, t) {
|
|
|
334
333
|
};
|
|
335
334
|
},
|
|
336
335
|
processMove: function(e, t) {
|
|
337
|
-
var n =
|
|
336
|
+
var n = T(t);
|
|
338
337
|
if (this.touches.length) {
|
|
339
338
|
if (this.touches.length === 1 && n.length === 1) {
|
|
340
339
|
var r = this.$refs.draggable;
|
|
341
|
-
this.$emit("drag", new
|
|
340
|
+
this.$emit("drag", new De(e, r, {
|
|
342
341
|
left: n[0].clientX,
|
|
343
342
|
top: n[0].clientY
|
|
344
343
|
}, {
|
|
@@ -360,8 +359,8 @@ var z = function(e, t) {
|
|
|
360
359
|
"enter"
|
|
361
360
|
]
|
|
362
361
|
};
|
|
363
|
-
|
|
364
|
-
return _(),
|
|
362
|
+
Oe.render = function(e, t, n, r, i, a) {
|
|
363
|
+
return _(), x("div", {
|
|
365
364
|
ref: "draggable",
|
|
366
365
|
class: n.classname,
|
|
367
366
|
onTouchstart: t[1] ||= function() {
|
|
@@ -376,11 +375,11 @@ ke.render = function(e, t, n, r, i, a) {
|
|
|
376
375
|
onMouseleave: t[4] ||= function() {
|
|
377
376
|
return a.onMouseLeave && a.onMouseLeave.apply(a, arguments);
|
|
378
377
|
}
|
|
379
|
-
}, [
|
|
378
|
+
}, [l(e.$slots, "default")], 34);
|
|
380
379
|
};
|
|
381
|
-
var
|
|
380
|
+
var ke = j("vue-handler-wrapper"), Ae = {
|
|
382
381
|
name: "HandlerWrapper",
|
|
383
|
-
components: { DraggableElement:
|
|
382
|
+
components: { DraggableElement: Oe },
|
|
384
383
|
props: {
|
|
385
384
|
horizontalPosition: { type: String },
|
|
386
385
|
verticalPosition: { type: String },
|
|
@@ -392,12 +391,12 @@ var Ae = A("vue-handler-wrapper"), je = {
|
|
|
392
391
|
computed: { classes: function() {
|
|
393
392
|
var e;
|
|
394
393
|
if (this.horizontalPosition || this.verticalPosition) {
|
|
395
|
-
var t, n =
|
|
396
|
-
e =
|
|
397
|
-
} else e =
|
|
394
|
+
var t, n = P(this.horizontalPosition, this.verticalPosition);
|
|
395
|
+
e = ke((w(t = {}, n.classname, !0), w(t, "disabled", this.disabled), t));
|
|
396
|
+
} else e = ke({ disabled: this.disabled });
|
|
398
397
|
return {
|
|
399
398
|
root: e,
|
|
400
|
-
draggable:
|
|
399
|
+
draggable: ke("draggable")
|
|
401
400
|
};
|
|
402
401
|
} },
|
|
403
402
|
emits: [
|
|
@@ -407,10 +406,10 @@ var Ae = A("vue-handler-wrapper"), je = {
|
|
|
407
406
|
"drag-end"
|
|
408
407
|
]
|
|
409
408
|
};
|
|
410
|
-
|
|
411
|
-
var
|
|
412
|
-
return _(),
|
|
413
|
-
class:
|
|
409
|
+
Ae.render = function(e, t, n, a, o, s) {
|
|
410
|
+
var c = r("DraggableElement");
|
|
411
|
+
return _(), x("div", { class: s.classes.root }, [d(c, {
|
|
412
|
+
class: s.classes.draggable,
|
|
414
413
|
onDrag: t[1] ||= function(t) {
|
|
415
414
|
return e.$emit("drag", t);
|
|
416
415
|
},
|
|
@@ -424,15 +423,15 @@ je.render = function(e, t, n, i, a, o) {
|
|
|
424
423
|
return e.$emit("enter");
|
|
425
424
|
}
|
|
426
425
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
return [
|
|
426
|
+
default: i((function() {
|
|
427
|
+
return [l(e.$slots, "default")];
|
|
429
428
|
})),
|
|
430
429
|
_: 3
|
|
431
430
|
}, 8, ["class"])], 2);
|
|
432
431
|
};
|
|
433
|
-
var
|
|
432
|
+
var je = j("vue-line-wrapper"), Me = {
|
|
434
433
|
name: "LineWrapper",
|
|
435
|
-
components: { DraggableElement:
|
|
434
|
+
components: { DraggableElement: Oe },
|
|
436
435
|
props: {
|
|
437
436
|
position: {
|
|
438
437
|
type: String,
|
|
@@ -445,7 +444,7 @@ var Me = A("vue-line-wrapper"), Ne = {
|
|
|
445
444
|
},
|
|
446
445
|
computed: { classname: function() {
|
|
447
446
|
var e;
|
|
448
|
-
return
|
|
447
|
+
return je((w(e = {}, this.position, !0), w(e, "disabled", this.disabled), e));
|
|
449
448
|
} },
|
|
450
449
|
emits: [
|
|
451
450
|
"leave",
|
|
@@ -454,10 +453,10 @@ var Me = A("vue-line-wrapper"), Ne = {
|
|
|
454
453
|
"drag-end"
|
|
455
454
|
]
|
|
456
455
|
};
|
|
457
|
-
|
|
458
|
-
var
|
|
459
|
-
return _(),
|
|
460
|
-
class:
|
|
456
|
+
Me.render = function(e, t, n, a, o, s) {
|
|
457
|
+
var c = r("DraggableElement");
|
|
458
|
+
return _(), x(c, {
|
|
459
|
+
class: s.classname,
|
|
461
460
|
onDrag: t[1] ||= function(t) {
|
|
462
461
|
return e.$emit("drag", t);
|
|
463
462
|
},
|
|
@@ -471,29 +470,29 @@ Ne.render = function(e, t, n, i, a, o) {
|
|
|
471
470
|
return e.$emit("enter");
|
|
472
471
|
}
|
|
473
472
|
}, {
|
|
474
|
-
default:
|
|
475
|
-
return [
|
|
473
|
+
default: i((function() {
|
|
474
|
+
return [l(e.$slots, "default")];
|
|
476
475
|
})),
|
|
477
476
|
_: 3
|
|
478
477
|
}, 8, ["class"]);
|
|
479
478
|
};
|
|
480
|
-
var
|
|
479
|
+
var V = [
|
|
481
480
|
"left",
|
|
482
481
|
"right",
|
|
483
482
|
"top",
|
|
484
483
|
"bottom"
|
|
485
|
-
],
|
|
484
|
+
], Ne = ["left", "right"], Pe = ["top", "bottom"], Fe = ["left", "top"], Ie = [
|
|
486
485
|
"fill-area",
|
|
487
486
|
"fit-area",
|
|
488
487
|
"stencil",
|
|
489
488
|
"none"
|
|
490
|
-
],
|
|
489
|
+
], Le = {
|
|
491
490
|
left: 0,
|
|
492
491
|
top: 0,
|
|
493
492
|
width: 0,
|
|
494
493
|
height: 0
|
|
495
494
|
};
|
|
496
|
-
function
|
|
495
|
+
function Re(e, t, n) {
|
|
497
496
|
return !(n ||= [
|
|
498
497
|
"width",
|
|
499
498
|
"height",
|
|
@@ -503,7 +502,7 @@ function ze(e, t, n) {
|
|
|
503
502
|
return e[n] !== t[n];
|
|
504
503
|
}));
|
|
505
504
|
}
|
|
506
|
-
function
|
|
505
|
+
function H(e) {
|
|
507
506
|
return {
|
|
508
507
|
left: e.left,
|
|
509
508
|
top: e.top,
|
|
@@ -511,31 +510,31 @@ function V(e) {
|
|
|
511
510
|
bottom: e.top + e.height
|
|
512
511
|
};
|
|
513
512
|
}
|
|
514
|
-
function
|
|
513
|
+
function U(e, t) {
|
|
515
514
|
return {
|
|
516
515
|
left: e.left - t.left,
|
|
517
516
|
top: e.top - t.top
|
|
518
517
|
};
|
|
519
518
|
}
|
|
520
|
-
function
|
|
519
|
+
function W(e) {
|
|
521
520
|
return {
|
|
522
521
|
left: e.left + e.width / 2,
|
|
523
522
|
top: e.top + e.height / 2
|
|
524
523
|
};
|
|
525
524
|
}
|
|
526
|
-
function
|
|
525
|
+
function ze(e, t) {
|
|
527
526
|
var n = {
|
|
528
527
|
left: 0,
|
|
529
528
|
top: 0,
|
|
530
529
|
right: 0,
|
|
531
530
|
bottom: 0
|
|
532
531
|
};
|
|
533
|
-
return
|
|
534
|
-
var i = t[r], a =
|
|
532
|
+
return V.forEach((function(r) {
|
|
533
|
+
var i = t[r], a = H(e)[r];
|
|
535
534
|
n[r] = i !== void 0 && a !== void 0 ? r === "left" || r === "top" ? Math.max(0, i - a) : Math.max(0, a - i) : 0;
|
|
536
535
|
})), n;
|
|
537
536
|
}
|
|
538
|
-
function
|
|
537
|
+
function G(e, t) {
|
|
539
538
|
return {
|
|
540
539
|
left: e.left - t.left,
|
|
541
540
|
top: e.top - t.top,
|
|
@@ -543,22 +542,22 @@ function W(e, t) {
|
|
|
543
542
|
height: e.height + t.top + t.bottom
|
|
544
543
|
};
|
|
545
544
|
}
|
|
546
|
-
function
|
|
545
|
+
function Be(e) {
|
|
547
546
|
return {
|
|
548
547
|
left: -e.left,
|
|
549
548
|
top: -e.top
|
|
550
549
|
};
|
|
551
550
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
551
|
+
function K(e, t) {
|
|
552
|
+
return N(N({}, e), {
|
|
554
553
|
left: e.left + t.left,
|
|
555
554
|
top: e.top + t.top
|
|
556
555
|
});
|
|
557
556
|
}
|
|
558
|
-
function
|
|
557
|
+
function q(e, t, n, r) {
|
|
559
558
|
if (t !== 1) {
|
|
560
559
|
if (n) {
|
|
561
|
-
var i =
|
|
560
|
+
var i = W(e);
|
|
562
561
|
return {
|
|
563
562
|
width: e.width * t,
|
|
564
563
|
height: e.height * t,
|
|
@@ -575,17 +574,17 @@ function K(e, t, n, r) {
|
|
|
575
574
|
}
|
|
576
575
|
return e;
|
|
577
576
|
}
|
|
578
|
-
function
|
|
577
|
+
function J(e) {
|
|
579
578
|
return e.width / e.height;
|
|
580
579
|
}
|
|
581
|
-
function
|
|
580
|
+
function Y(e, t) {
|
|
582
581
|
return Math.min(t.right !== void 0 && t.left !== void 0 ? (t.right - t.left) / e.width : 1 / 0, t.bottom !== void 0 && t.top !== void 0 ? (t.bottom - t.top) / e.height : 1 / 0);
|
|
583
582
|
}
|
|
584
|
-
function
|
|
583
|
+
function Ve(e, t) {
|
|
585
584
|
var n = {
|
|
586
585
|
left: 0,
|
|
587
586
|
top: 0
|
|
588
|
-
}, r =
|
|
587
|
+
}, r = ze(e, t);
|
|
589
588
|
return r.left && r.left > 0 ? n.left = r.left : r.right && r.right > 0 && (n.left = -r.right), r.top && r.top > 0 ? n.top = r.top : r.bottom && r.bottom > 0 && (n.top = -r.bottom), n;
|
|
590
589
|
}
|
|
591
590
|
function He(e, t) {
|
|
@@ -593,7 +592,7 @@ function He(e, t) {
|
|
|
593
592
|
return t.minimum && e < t.minimum ? n = t.minimum : t.maximum && e > t.maximum && (n = t.maximum), n;
|
|
594
593
|
}
|
|
595
594
|
function Ue(e, t) {
|
|
596
|
-
var n =
|
|
595
|
+
var n = J(e), r = J(t);
|
|
597
596
|
return t.width < 1 / 0 && t.height < 1 / 0 ? n > r ? {
|
|
598
597
|
width: t.width,
|
|
599
598
|
height: t.width / n
|
|
@@ -623,13 +622,13 @@ function X(e, t) {
|
|
|
623
622
|
};
|
|
624
623
|
}
|
|
625
624
|
function Ge(e, t) {
|
|
626
|
-
var n =
|
|
627
|
-
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
|
+
var n = ze(Z(e, t), t);
|
|
626
|
+
return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((e.width + n.left + n.right) / e.width, Y(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, Y(e, t)) : 1;
|
|
628
627
|
}
|
|
629
628
|
function Z(e, t, n) {
|
|
630
629
|
n === void 0 && (n = !1);
|
|
631
|
-
var r =
|
|
632
|
-
return
|
|
630
|
+
var r = Ve(e, t);
|
|
631
|
+
return K(e, n ? Be(r) : r);
|
|
633
632
|
}
|
|
634
633
|
function Ke(e) {
|
|
635
634
|
return {
|
|
@@ -638,7 +637,7 @@ function Ke(e) {
|
|
|
638
637
|
};
|
|
639
638
|
}
|
|
640
639
|
function qe(e, t) {
|
|
641
|
-
return
|
|
640
|
+
return N(N({}, e), {
|
|
642
641
|
minWidth: Math.min(t.width, e.minWidth),
|
|
643
642
|
minHeight: Math.min(t.height, e.minHeight),
|
|
644
643
|
maxWidth: Math.min(t.width, e.maxWidth),
|
|
@@ -648,7 +647,7 @@ function qe(e, t) {
|
|
|
648
647
|
function Je(e, t, n) {
|
|
649
648
|
n === void 0 && (n = !0);
|
|
650
649
|
var r = {};
|
|
651
|
-
return
|
|
650
|
+
return V.forEach((function(i) {
|
|
652
651
|
var a = e[i], o = t[i];
|
|
653
652
|
a !== void 0 && o !== void 0 ? r[i] = i === "left" || i === "top" ? n ? Math.max(a, o) : Math.min(a, o) : n ? Math.min(a, o) : Math.max(a, o) : o === void 0 ? a !== void 0 && (r[i] = a) : r[i] = o;
|
|
654
653
|
})), r;
|
|
@@ -658,7 +657,7 @@ function Ye(e, t) {
|
|
|
658
657
|
}
|
|
659
658
|
function Xe(e) {
|
|
660
659
|
var t = e.size, n = e.aspectRatio, r = e.ignoreMinimum, i = e.sizeRestrictions;
|
|
661
|
-
return !!((t.correctRatio ||
|
|
660
|
+
return !!((t.correctRatio || J(t) >= n.minimum && J(t) <= n.maximum) && t.height <= i.maxHeight && t.width <= i.maxWidth && t.width && t.height && (r || t.height >= i.minHeight && t.width >= i.minWidth));
|
|
662
661
|
}
|
|
663
662
|
function Ze(e, t) {
|
|
664
663
|
return (e.width - t.width) ** 2 + (e.height - t.height) ** 2;
|
|
@@ -710,28 +709,28 @@ function Q(e) {
|
|
|
710
709
|
};
|
|
711
710
|
}
|
|
712
711
|
function Qe(e) {
|
|
713
|
-
var t = e.event, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a =
|
|
714
|
-
return
|
|
712
|
+
var t = e.event, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = K(n, t.directions);
|
|
713
|
+
return K(a, Ve(a, i));
|
|
715
714
|
}
|
|
716
715
|
function $e(e) {
|
|
717
716
|
var t = e.coordinates, n = e.transform, r = e.imageSize, i = e.sizeRestrictions, a = e.positionRestrictions, o = e.aspectRatio, s = e.visibleArea, c = function(e, t) {
|
|
718
717
|
return Qe({
|
|
719
718
|
coordinates: e,
|
|
720
719
|
positionRestrictions: a,
|
|
721
|
-
event: new
|
|
720
|
+
event: new Ee({
|
|
722
721
|
left: t.left - e.left,
|
|
723
722
|
top: t.top - e.top
|
|
724
723
|
})
|
|
725
724
|
});
|
|
726
|
-
}, l =
|
|
725
|
+
}, l = N({}, t);
|
|
727
726
|
return (Array.isArray(n) ? n : [n]).forEach((function(e) {
|
|
728
727
|
var t = {};
|
|
729
|
-
|
|
728
|
+
R((t = typeof e == "function" ? e({
|
|
730
729
|
coordinates: l,
|
|
731
730
|
imageSize: r,
|
|
732
731
|
visibleArea: s
|
|
733
|
-
}) : e).width) &&
|
|
734
|
-
return c(
|
|
732
|
+
}) : e).width) && R(t.height) || (l = function(e, t) {
|
|
733
|
+
return c(N(N(N({}, e), Q({
|
|
735
734
|
width: t.width,
|
|
736
735
|
height: t.height,
|
|
737
736
|
sizeRestrictions: i,
|
|
@@ -743,7 +742,7 @@ function $e(e) {
|
|
|
743
742
|
left: e.left,
|
|
744
743
|
top: e.top
|
|
745
744
|
});
|
|
746
|
-
}(l,
|
|
745
|
+
}(l, N(N({}, l), t))), R(t.left) && R(t.top) || (l = c(l, N(N({}, l), t)));
|
|
747
746
|
})), l;
|
|
748
747
|
}
|
|
749
748
|
function et(e) {
|
|
@@ -752,25 +751,25 @@ function et(e) {
|
|
|
752
751
|
e.aspectRatio;
|
|
753
752
|
var a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions;
|
|
754
753
|
e.stencilReference;
|
|
755
|
-
var c, l, u, d =
|
|
756
|
-
c =
|
|
754
|
+
var c, l, u, d = N({}, r), f = N({}, i), p = N({}, a);
|
|
755
|
+
c = J(p), l = J(d), u === void 0 && (u = .001), (c === 0 || l === 0 ? Math.abs(l - c) < u : Math.abs(l / c) < 1 + u && Math.abs(l / c) > 1 - u) || (d = N(N({}, d), Q({
|
|
757
756
|
sizeRestrictions: o,
|
|
758
757
|
width: d.width,
|
|
759
758
|
height: d.height,
|
|
760
759
|
aspectRatio: {
|
|
761
|
-
minimum:
|
|
762
|
-
maximum:
|
|
760
|
+
minimum: J(p),
|
|
761
|
+
maximum: J(p)
|
|
763
762
|
}
|
|
764
763
|
})));
|
|
765
|
-
var m = Ge(f =
|
|
764
|
+
var m = Ge(f = q(f, d.width * n.width / (f.width * p.width)), t({
|
|
766
765
|
visibleArea: f,
|
|
767
766
|
type: "resize"
|
|
768
767
|
}));
|
|
769
|
-
return m !== 1 && (f =
|
|
768
|
+
return m !== 1 && (f = q(f, m), d = q(d, m)), f = Z(f = K(f, U(W(d), W(f))), t({
|
|
770
769
|
visibleArea: f,
|
|
771
770
|
type: "move"
|
|
772
771
|
})), {
|
|
773
|
-
coordinates: d = Z(d, Ye(
|
|
772
|
+
coordinates: d = Z(d, Ye(H(f), s)),
|
|
774
773
|
visibleArea: f
|
|
775
774
|
};
|
|
776
775
|
}
|
|
@@ -779,21 +778,21 @@ function tt(e) {
|
|
|
779
778
|
e.aspectRatio, e.stencilSize, e.sizeRestrictions;
|
|
780
779
|
var o = e.positionRestrictions;
|
|
781
780
|
e.stencilReference;
|
|
782
|
-
var s =
|
|
781
|
+
var s = N({}, i), c = N({}, a);
|
|
783
782
|
if (i && a && t.type !== "manipulateImage") {
|
|
784
783
|
var l = {
|
|
785
784
|
width: 0,
|
|
786
785
|
height: 0
|
|
787
786
|
};
|
|
788
|
-
c.width, r.width,
|
|
789
|
-
var u = Ge(c =
|
|
787
|
+
c.width, r.width, J(r) > J(s) ? (l.height = .8 * r.height, l.width = l.height * J(s)) : (l.width = .8 * r.width, l.height = l.width * J(s));
|
|
788
|
+
var u = Ge(c = q(c, s.width * r.width / (c.width * l.width)), n({
|
|
790
789
|
visibleArea: c,
|
|
791
790
|
type: "resize"
|
|
792
791
|
}));
|
|
793
|
-
c =
|
|
792
|
+
c = q(c, u), u !== 1 && (l.height /= u, l.width /= u), c = Z(c = K(c, U(W(s), W(c))), n({
|
|
794
793
|
visibleArea: c,
|
|
795
794
|
type: "move"
|
|
796
|
-
})), s = Z(s, Ye(
|
|
795
|
+
})), s = Z(s, Ye(H(c), o));
|
|
797
796
|
}
|
|
798
797
|
return {
|
|
799
798
|
coordinates: s,
|
|
@@ -801,16 +800,16 @@ function tt(e) {
|
|
|
801
800
|
};
|
|
802
801
|
}
|
|
803
802
|
function nt(e) {
|
|
804
|
-
var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a =
|
|
803
|
+
var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = N({}, r), o = N({}, n);
|
|
805
804
|
if (t.type === "setCoordinates") {
|
|
806
805
|
var s = Math.max(0, o.width - a.width), c = Math.max(0, o.height - a.height);
|
|
807
|
-
s > c ? a =
|
|
806
|
+
s > c ? a = q(a, Math.min(o.width / a.width, Y(a, i({
|
|
808
807
|
visibleArea: a,
|
|
809
808
|
type: "resize"
|
|
810
|
-
})))) : c > s && (a =
|
|
809
|
+
})))) : c > s && (a = q(a, Math.min(o.height / a.height, Y(a, i({
|
|
811
810
|
visibleArea: a,
|
|
812
811
|
type: "resize"
|
|
813
|
-
}))))), a = Z(a =
|
|
812
|
+
}))))), a = Z(a = K(a, Be(Ve(o, H(a)))), i({
|
|
814
813
|
visibleArea: a,
|
|
815
814
|
type: "move"
|
|
816
815
|
}));
|
|
@@ -828,21 +827,21 @@ function rt(e) {
|
|
|
828
827
|
};
|
|
829
828
|
}
|
|
830
829
|
function it(e) {
|
|
831
|
-
var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum || 1 / 0, Math.max(r.minimum || 0,
|
|
830
|
+
var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum || 1 / 0, Math.max(r.minimum || 0, J(a))), s = a.width < a.height ? {
|
|
832
831
|
width: .8 * a.width,
|
|
833
832
|
height: .8 * a.width / o
|
|
834
833
|
} : {
|
|
835
834
|
height: .8 * a.height,
|
|
836
835
|
width: .8 * a.height * o
|
|
837
836
|
};
|
|
838
|
-
return Q(
|
|
837
|
+
return Q(N(N({}, s), {
|
|
839
838
|
aspectRatio: r,
|
|
840
839
|
sizeRestrictions: i
|
|
841
840
|
}));
|
|
842
841
|
}
|
|
843
842
|
function at(e) {
|
|
844
843
|
var t, n, r = e.imageSize, i = e.visibleArea, a = e.boundaries, o = e.aspectRatio, s = e.sizeRestrictions, c = e.stencilSize, l = i || r;
|
|
845
|
-
return
|
|
844
|
+
return J(l) > J(a) ? n = (t = c.height * l.height / a.height) * J(c) : t = (n = c.width * l.width / a.width) / J(c), Q({
|
|
846
845
|
width: n,
|
|
847
846
|
height: t,
|
|
848
847
|
aspectRatio: o,
|
|
@@ -850,26 +849,26 @@ function at(e) {
|
|
|
850
849
|
});
|
|
851
850
|
}
|
|
852
851
|
function ot(e) {
|
|
853
|
-
var t = e.getAreaRestrictions, n = e.coordinates, r = e.imageSize, i =
|
|
852
|
+
var t = e.getAreaRestrictions, n = e.coordinates, r = e.imageSize, i = J(e.boundaries);
|
|
854
853
|
if (n) {
|
|
855
854
|
var a = {
|
|
856
855
|
height: Math.max(n.height, r.height),
|
|
857
856
|
width: Math.max(n.width, r.width)
|
|
858
857
|
}, o = Ue({
|
|
859
|
-
width:
|
|
860
|
-
height:
|
|
858
|
+
width: J(a) > i ? a.width : a.height * i,
|
|
859
|
+
height: J(a) > i ? a.width / i : a.height
|
|
861
860
|
}, Ke(t())), s = {
|
|
862
861
|
left: n.left + n.width / 2 - o.width / 2,
|
|
863
862
|
top: n.top + n.height / 2 - o.height / 2,
|
|
864
863
|
width: o.width,
|
|
865
864
|
height: o.height
|
|
866
|
-
}, c =
|
|
865
|
+
}, c = ze(n, H(N({
|
|
867
866
|
left: 0,
|
|
868
867
|
top: 0
|
|
869
868
|
}, r))), l = {};
|
|
870
869
|
return !c.left && !c.right && s.width <= r.width && (l.left = 0, l.right = r.width), !c.top && !c.bottom && s.height <= r.height && (l.top = 0, l.bottom = r.height), Z(s, l);
|
|
871
870
|
}
|
|
872
|
-
var u =
|
|
871
|
+
var u = J(r);
|
|
873
872
|
return o = {
|
|
874
873
|
height: u > i ? r.height : r.width / i,
|
|
875
874
|
width: u > i ? r.height * i : r.width
|
|
@@ -881,58 +880,58 @@ function ot(e) {
|
|
|
881
880
|
};
|
|
882
881
|
}
|
|
883
882
|
function st(e, t) {
|
|
884
|
-
return Je(e,
|
|
883
|
+
return Je(e, H(t));
|
|
885
884
|
}
|
|
886
885
|
function ct(e) {
|
|
887
|
-
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 =
|
|
888
|
-
u =
|
|
886
|
+
var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.sizeRestrictions, a = e.getAreaRestrictions, o = e.positionRestrictions, s = e.adjustStencil, c = t.scale, l = t.move, u = N({}, r), d = N({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
|
|
887
|
+
u = K(u, {
|
|
889
888
|
left: l.left || 0,
|
|
890
889
|
top: l.top || 0
|
|
891
890
|
});
|
|
892
891
|
var h = {
|
|
893
892
|
stencil: {
|
|
894
893
|
minimum: Math.max(i.minWidth ? i.minWidth / d.width : 0, i.minHeight ? i.minHeight / d.height : 0),
|
|
895
|
-
maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0,
|
|
894
|
+
maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0, Y(d, o))
|
|
896
895
|
},
|
|
897
|
-
area: { maximum:
|
|
896
|
+
area: { maximum: Y(u, a({
|
|
898
897
|
visibleArea: u,
|
|
899
898
|
type: "resize"
|
|
900
899
|
})) }
|
|
901
900
|
};
|
|
902
|
-
c.factor && m && (c.factor < 1 ? (p = Math.max(c.factor, h.stencil.minimum)) > 1 && (p = 1) : c.factor > 1 && (p = Math.min(c.factor, Math.min(h.area.maximum, h.stencil.maximum))) < 1 && (p = 1)), p && (u =
|
|
903
|
-
var g = n.left - r.left, _ = r.width + r.left - (n.width + n.left),
|
|
904
|
-
return u = Z(u =
|
|
901
|
+
c.factor && m && (c.factor < 1 ? (p = Math.max(c.factor, h.stencil.minimum)) > 1 && (p = 1) : c.factor > 1 && (p = Math.min(c.factor, Math.min(h.area.maximum, h.stencil.maximum))) < 1 && (p = 1)), p && (u = q(u, p, c.center));
|
|
902
|
+
var g = n.left - r.left, _ = r.width + r.left - (n.width + n.left), v = n.top - r.top, y = r.height + r.top - (n.height + n.top);
|
|
903
|
+
return u = Z(u = K(u, Ve(u, {
|
|
905
904
|
left: o.left === void 0 ? void 0 : o.left - g * p,
|
|
906
|
-
top: o.top === void 0 ? void 0 : o.top -
|
|
907
|
-
bottom: o.bottom === void 0 ? void 0 : o.bottom +
|
|
905
|
+
top: o.top === void 0 ? void 0 : o.top - v * p,
|
|
906
|
+
bottom: o.bottom === void 0 ? void 0 : o.bottom + y * p,
|
|
908
907
|
right: o.right === void 0 ? void 0 : o.right + _ * p
|
|
909
908
|
})), a({
|
|
910
909
|
visibleArea: u,
|
|
911
910
|
type: "move"
|
|
912
|
-
})), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top +
|
|
911
|
+
})), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + v * p, d = Z(d, Ye(H(u), o)), c.factor && m && s && (c.factor > 1 ? f = Math.min(h.area.maximum, c.factor) / p : c.factor < 1 && (f = Math.max(d.height / u.height, d.width / u.width, c.factor / p)), f !== 1 && (u = K(u = Z(u = q(u, f, c.factor > 1 ? c.center : W(d)), a({
|
|
913
912
|
visibleArea: u,
|
|
914
913
|
type: "move"
|
|
915
|
-
})), Ve(
|
|
914
|
+
})), Be(Ve(d, H(u)))))), {
|
|
916
915
|
coordinates: d,
|
|
917
916
|
visibleArea: u
|
|
918
917
|
};
|
|
919
918
|
}
|
|
920
919
|
function lt(e) {
|
|
921
|
-
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 =
|
|
920
|
+
var t = e.aspectRatio, n = e.getAreaRestrictions, r = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.positionRestrictions, s = e.imageSize, c = e.previousImageSize, l = e.angle, u = N({}, r), d = N({}, i), f = X(W(N({
|
|
922
921
|
left: 0,
|
|
923
922
|
top: 0
|
|
924
923
|
}, c)), l);
|
|
925
|
-
return (u =
|
|
924
|
+
return (u = N(N({}, Q({
|
|
926
925
|
sizeRestrictions: a,
|
|
927
926
|
aspectRatio: t,
|
|
928
927
|
width: u.width,
|
|
929
928
|
height: u.height
|
|
930
|
-
})), X(
|
|
929
|
+
})), X(W(u), l))).left -= f.left - s.width / 2 + u.width / 2, u.top -= f.top - s.height / 2 + u.height / 2, d = q(d, Ge(d, n({
|
|
931
930
|
visibleArea: d,
|
|
932
931
|
type: "resize"
|
|
933
932
|
}))), {
|
|
934
933
|
coordinates: u = Z(u, o),
|
|
935
|
-
visibleArea: d = Z(d =
|
|
934
|
+
visibleArea: d = Z(d = K(d, U(W(u), W(r))), n({
|
|
936
935
|
visibleArea: d,
|
|
937
936
|
type: "move"
|
|
938
937
|
}))
|
|
@@ -941,19 +940,19 @@ function lt(e) {
|
|
|
941
940
|
function ut(e) {
|
|
942
941
|
var t = e.flip, n = e.previousFlip, r = e.rotate;
|
|
943
942
|
e.aspectRatio;
|
|
944
|
-
var i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c =
|
|
943
|
+
var i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = N({}, a), l = N({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
|
|
945
944
|
if (u || d) {
|
|
946
945
|
var f = X({
|
|
947
946
|
left: s.width / 2,
|
|
948
947
|
top: s.height / 2
|
|
949
|
-
}, -r), p = X(
|
|
948
|
+
}, -r), p = X(W(c), -r), m = X({
|
|
950
949
|
left: u ? f.left - (p.left - f.left) : p.left,
|
|
951
950
|
top: d ? f.top - (p.top - f.top) : p.top
|
|
952
951
|
}, r);
|
|
953
|
-
c =
|
|
952
|
+
c = K(c, U(m, W(c))), p = X(W(l), -r), l = Z(l = K(l, U(m = X({
|
|
954
953
|
left: u ? f.left - (p.left - f.left) : p.left,
|
|
955
954
|
top: d ? f.top - (p.top - f.top) : p.top
|
|
956
|
-
}, r),
|
|
955
|
+
}, r), W(l))), i({
|
|
957
956
|
visibleArea: l,
|
|
958
957
|
type: "move"
|
|
959
958
|
}));
|
|
@@ -964,10 +963,10 @@ function ut(e) {
|
|
|
964
963
|
};
|
|
965
964
|
}
|
|
966
965
|
function dt(e) {
|
|
967
|
-
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 =
|
|
966
|
+
var t = e.directions, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = e.sizeRestrictions, o = e.preserveRatio, s = e.compensate, c = N({}, t), l = G(n, c).width, u = G(n, c).height;
|
|
968
967
|
l < 0 && (c.left < 0 && c.right < 0 ? (c.left = -(n.width - a.minWidth) / (c.left / c.right), c.right = -(n.width - a.minWidth) / (c.right / c.left)) : c.left < 0 ? c.left = -(n.width - a.minWidth) : c.right < 0 && (c.right = -(n.width - a.minWidth))), u < 0 && (c.top < 0 && c.bottom < 0 ? (c.top = -(n.height - a.minHeight) / (c.top / c.bottom), c.bottom = -(n.height - a.minHeight) / (c.bottom / c.top)) : c.top < 0 ? c.top = -(n.height - a.minHeight) : c.bottom < 0 && (c.bottom = -(n.height - a.minHeight)));
|
|
969
|
-
var d =
|
|
970
|
-
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 =
|
|
968
|
+
var d = ze(G(n, c), i);
|
|
969
|
+
s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = ze(G(n, c), i));
|
|
971
970
|
var f = {
|
|
972
971
|
width: 1 / 0,
|
|
973
972
|
height: 1 / 0,
|
|
@@ -976,27 +975,27 @@ function dt(e) {
|
|
|
976
975
|
top: 1 / 0,
|
|
977
976
|
bottom: 1 / 0
|
|
978
977
|
};
|
|
979
|
-
if (
|
|
978
|
+
if (V.forEach((function(e) {
|
|
980
979
|
var t = d[e];
|
|
981
980
|
t && c[e] && (f[e] = Math.max(0, 1 - t / c[e]));
|
|
982
981
|
})), o) {
|
|
983
|
-
var p = Math.min.apply(null,
|
|
982
|
+
var p = Math.min.apply(null, V.map((function(e) {
|
|
984
983
|
return f[e];
|
|
985
984
|
})));
|
|
986
|
-
p !== 1 / 0 &&
|
|
985
|
+
p !== 1 / 0 && V.forEach((function(e) {
|
|
987
986
|
c[e] *= p;
|
|
988
987
|
}));
|
|
989
|
-
} else
|
|
988
|
+
} else V.forEach((function(e) {
|
|
990
989
|
f[e] !== 1 / 0 && (c[e] *= f[e]);
|
|
991
990
|
}));
|
|
992
|
-
if (l =
|
|
991
|
+
if (l = G(n, c).width, u = G(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
|
|
993
992
|
var m = Math.min(f.width, f.height);
|
|
994
|
-
m !== 1 / 0 &&
|
|
993
|
+
m !== 1 / 0 && V.forEach((function(e) {
|
|
995
994
|
c[e] *= m;
|
|
996
995
|
}));
|
|
997
|
-
} else f.width !== 1 / 0 &&
|
|
996
|
+
} else f.width !== 1 / 0 && Ne.forEach((function(e) {
|
|
998
997
|
c[e] *= f.width;
|
|
999
|
-
})), f.height !== 1 / 0 &&
|
|
998
|
+
})), f.height !== 1 / 0 && Pe.forEach((function(e) {
|
|
1000
999
|
c[e] *= f.height;
|
|
1001
1000
|
}));
|
|
1002
1001
|
return c;
|
|
@@ -1004,9 +1003,9 @@ function dt(e) {
|
|
|
1004
1003
|
function ft(e, t, n) {
|
|
1005
1004
|
return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
|
|
1006
1005
|
}
|
|
1007
|
-
var pt =
|
|
1006
|
+
var pt = j("vue-simple-handler"), mt = j("vue-simple-handler-wrapper"), ht = {
|
|
1008
1007
|
name: "SimpleHandler",
|
|
1009
|
-
components: { HandlerWrapper:
|
|
1008
|
+
components: { HandlerWrapper: Ae },
|
|
1010
1009
|
props: {
|
|
1011
1010
|
defaultClass: { type: String },
|
|
1012
1011
|
hoverClass: { type: String },
|
|
@@ -1022,10 +1021,10 @@ var pt = A("vue-simple-handler"), mt = A("vue-simple-handler-wrapper"), ht = {
|
|
|
1022
1021
|
return { hover: !1 };
|
|
1023
1022
|
},
|
|
1024
1023
|
computed: { classes: function() {
|
|
1025
|
-
var e, t = (
|
|
1024
|
+
var e, t = (w(e = {}, this.horizontalPosition, !!this.horizontalPosition), w(e, this.verticalPosition, !!this.verticalPosition), w(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), w(e, "hover", this.hover), e);
|
|
1026
1025
|
return {
|
|
1027
|
-
default:
|
|
1028
|
-
wrapper:
|
|
1026
|
+
default: A(pt(t), this.defaultClass, this.hover && this.hoverClass),
|
|
1027
|
+
wrapper: A(mt(t), this.wrapperClass)
|
|
1029
1028
|
};
|
|
1030
1029
|
} },
|
|
1031
1030
|
methods: {
|
|
@@ -1044,20 +1043,20 @@ var pt = A("vue-simple-handler"), mt = A("vue-simple-handler-wrapper"), ht = {
|
|
|
1044
1043
|
},
|
|
1045
1044
|
emits: ["drag", "drag-end"]
|
|
1046
1045
|
};
|
|
1047
|
-
ht.render = function(e, t, n,
|
|
1048
|
-
var
|
|
1049
|
-
return _(),
|
|
1050
|
-
class:
|
|
1046
|
+
ht.render = function(e, t, n, a, o, s) {
|
|
1047
|
+
var c = r("HandlerWrapper");
|
|
1048
|
+
return _(), x(c, {
|
|
1049
|
+
class: s.classes.wrapper,
|
|
1051
1050
|
"vertical-position": n.verticalPosition,
|
|
1052
1051
|
"horizontal-position": n.horizontalPosition,
|
|
1053
1052
|
disabled: n.disabled,
|
|
1054
|
-
onDrag:
|
|
1055
|
-
onDragEnd:
|
|
1056
|
-
onEnter:
|
|
1057
|
-
onLeave:
|
|
1053
|
+
onDrag: s.onDrag,
|
|
1054
|
+
onDragEnd: s.onDragEnd,
|
|
1055
|
+
onEnter: s.onEnter,
|
|
1056
|
+
onLeave: s.onLeave
|
|
1058
1057
|
}, {
|
|
1059
|
-
default:
|
|
1060
|
-
return [d("div", { class:
|
|
1058
|
+
default: i((function() {
|
|
1059
|
+
return [d("div", { class: s.classes.default }, null, 2)];
|
|
1061
1060
|
})),
|
|
1062
1061
|
_: 1
|
|
1063
1062
|
}, 8, [
|
|
@@ -1071,9 +1070,9 @@ ht.render = function(e, t, n, i, a, o) {
|
|
|
1071
1070
|
"onLeave"
|
|
1072
1071
|
]);
|
|
1073
1072
|
};
|
|
1074
|
-
var gt =
|
|
1073
|
+
var gt = j("vue-simple-line"), _t = j("vue-simple-line-wrapper"), vt = {
|
|
1075
1074
|
name: "SimpleLine",
|
|
1076
|
-
components: { LineWrapper:
|
|
1075
|
+
components: { LineWrapper: Me },
|
|
1077
1076
|
props: {
|
|
1078
1077
|
defaultClass: { type: String },
|
|
1079
1078
|
hoverClass: { type: String },
|
|
@@ -1089,8 +1088,8 @@ var gt = A("vue-simple-line"), _t = A("vue-simple-line-wrapper"), vt = {
|
|
|
1089
1088
|
},
|
|
1090
1089
|
computed: { classes: function() {
|
|
1091
1090
|
return {
|
|
1092
|
-
root:
|
|
1093
|
-
wrapper:
|
|
1091
|
+
root: A(gt(w({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
|
|
1092
|
+
wrapper: A(_t(w({}, this.position, !0)), this.wrapperClass)
|
|
1094
1093
|
};
|
|
1095
1094
|
} },
|
|
1096
1095
|
methods: {
|
|
@@ -1109,19 +1108,19 @@ var gt = A("vue-simple-line"), _t = A("vue-simple-line-wrapper"), vt = {
|
|
|
1109
1108
|
},
|
|
1110
1109
|
emits: ["drag", "drag-end"]
|
|
1111
1110
|
};
|
|
1112
|
-
vt.render = function(e, t, n,
|
|
1113
|
-
var
|
|
1114
|
-
return _(),
|
|
1115
|
-
class:
|
|
1111
|
+
vt.render = function(e, t, n, a, o, s) {
|
|
1112
|
+
var c = r("LineWrapper");
|
|
1113
|
+
return _(), x(c, {
|
|
1114
|
+
class: s.classes.wrapper,
|
|
1116
1115
|
position: n.position,
|
|
1117
1116
|
disabled: n.disabled,
|
|
1118
|
-
onDrag:
|
|
1119
|
-
onDragEnd:
|
|
1120
|
-
onEnter:
|
|
1121
|
-
onLeave:
|
|
1117
|
+
onDrag: s.onDrag,
|
|
1118
|
+
onDragEnd: s.onDragEnd,
|
|
1119
|
+
onEnter: s.onEnter,
|
|
1120
|
+
onLeave: s.onLeave
|
|
1122
1121
|
}, {
|
|
1123
|
-
default:
|
|
1124
|
-
return [d("div", { class:
|
|
1122
|
+
default: i((function() {
|
|
1123
|
+
return [d("div", { class: s.classes.root }, null, 2)];
|
|
1125
1124
|
})),
|
|
1126
1125
|
_: 1
|
|
1127
1126
|
}, 8, [
|
|
@@ -1134,7 +1133,7 @@ vt.render = function(e, t, n, i, a, o) {
|
|
|
1134
1133
|
"onLeave"
|
|
1135
1134
|
]);
|
|
1136
1135
|
};
|
|
1137
|
-
var yt =
|
|
1136
|
+
var yt = j("vue-bounding-box"), bt = [
|
|
1138
1137
|
"east",
|
|
1139
1138
|
"west",
|
|
1140
1139
|
null
|
|
@@ -1220,7 +1219,7 @@ var yt = A("vue-bounding-box"), bt = [
|
|
|
1220
1219
|
return bt.forEach((function(t) {
|
|
1221
1220
|
xt.forEach((function(n) {
|
|
1222
1221
|
if (t !== n) {
|
|
1223
|
-
var r =
|
|
1222
|
+
var r = P(t, n), i = r.name, a = r.classname;
|
|
1224
1223
|
e.push({
|
|
1225
1224
|
name: i,
|
|
1226
1225
|
classname: a,
|
|
@@ -1252,8 +1251,8 @@ var yt = A("vue-bounding-box"), bt = [
|
|
|
1252
1251
|
n.horizontalDirection && n.verticalDirection || !e.lines[n.name] || t.push({
|
|
1253
1252
|
name: n.name,
|
|
1254
1253
|
component: e.linesComponent,
|
|
1255
|
-
class:
|
|
1256
|
-
wrapperClass:
|
|
1254
|
+
class: A(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
|
|
1255
|
+
wrapperClass: A(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
|
|
1257
1256
|
hoverClass: e.classes.lines.hover,
|
|
1258
1257
|
verticalDirection: n.verticalDirection,
|
|
1259
1258
|
horizontalDirection: n.horizontalDirection,
|
|
@@ -1268,8 +1267,8 @@ var yt = A("vue-bounding-box"), bt = [
|
|
|
1268
1267
|
var a = {
|
|
1269
1268
|
name: i.name,
|
|
1270
1269
|
component: e.handlersComponent,
|
|
1271
|
-
class:
|
|
1272
|
-
wrapperClass:
|
|
1270
|
+
class: A(e.classes.handlers.default, e.classes.handlers[i.name]),
|
|
1271
|
+
wrapperClass: A(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
|
|
1273
1272
|
hoverClass: e.classes.handlers.hover,
|
|
1274
1273
|
verticalDirection: i.verticalDirection,
|
|
1275
1274
|
horizontalDirection: i.horizontalDirection,
|
|
@@ -1278,7 +1277,7 @@ var yt = A("vue-bounding-box"), bt = [
|
|
|
1278
1277
|
if (n && r) {
|
|
1279
1278
|
var o = i.horizontalDirection, s = i.verticalDirection, c = o === "east" ? n : o === "west" ? 0 : n / 2, l = s === "south" ? r : s === "north" ? 0 : r / 2;
|
|
1280
1279
|
a.wrapperClass = yt("handler"), a.wrapperStyle = { transform: `translate(${c}px, ${l}px)` }, e.transitions && e.transitions.enabled && (a.wrapperStyle.transition = `${e.transitions.time}ms ${e.transitions.timingFunction}`);
|
|
1281
|
-
} else a.wrapperClass = yt("handler",
|
|
1280
|
+
} else a.wrapperClass = yt("handler", w({}, i.classname, !0));
|
|
1282
1281
|
t.push(a);
|
|
1283
1282
|
}
|
|
1284
1283
|
})), t;
|
|
@@ -1304,7 +1303,7 @@ var yt = A("vue-bounding-box"), bt = [
|
|
|
1304
1303
|
top: 0,
|
|
1305
1304
|
bottom: 0
|
|
1306
1305
|
};
|
|
1307
|
-
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
|
|
1306
|
+
t === "west" ? s.left -= a : t === "east" && (s.right += a), n === "north" ? s.top -= o : n === "south" && (s.bottom += o), !n && t ? r = "width" : n && !t && (r = "height"), this.resizable && this.$emit("resize", new Te(s, {
|
|
1308
1307
|
allowedDirections: {
|
|
1309
1308
|
left: t === "west" || !t,
|
|
1310
1309
|
right: t === "east" || !t,
|
|
@@ -1319,14 +1318,14 @@ var yt = A("vue-bounding-box"), bt = [
|
|
|
1319
1318
|
emits: ["resize", "resize-end"]
|
|
1320
1319
|
};
|
|
1321
1320
|
St.render = function(e, t, n, r, i, o) {
|
|
1322
|
-
return _(),
|
|
1321
|
+
return _(), x("div", {
|
|
1323
1322
|
ref: "box",
|
|
1324
1323
|
class: o.classes.root,
|
|
1325
1324
|
style: o.style
|
|
1326
1325
|
}, [
|
|
1327
|
-
|
|
1328
|
-
d("div", null, [(_(!0),
|
|
1329
|
-
return _(),
|
|
1326
|
+
l(e.$slots, "default"),
|
|
1327
|
+
d("div", null, [(_(!0), x(ee, null, s(o.lineNodes, (function(e) {
|
|
1328
|
+
return _(), x(a(e.component), {
|
|
1330
1329
|
key: e.name,
|
|
1331
1330
|
"default-class": e.class,
|
|
1332
1331
|
"hover-class": e.hoverClass,
|
|
@@ -1348,12 +1347,12 @@ St.render = function(e, t, n, r, i, o) {
|
|
|
1348
1347
|
"onDrag"
|
|
1349
1348
|
]);
|
|
1350
1349
|
})), 128))]),
|
|
1351
|
-
(_(!0),
|
|
1352
|
-
return _(),
|
|
1350
|
+
(_(!0), x(ee, null, s(o.handlerNodes, (function(e) {
|
|
1351
|
+
return _(), x("div", {
|
|
1353
1352
|
key: e.name,
|
|
1354
1353
|
style: e.wrapperStyle,
|
|
1355
1354
|
class: e.wrapperClass
|
|
1356
|
-
}, [(_(),
|
|
1355
|
+
}, [(_(), x(a(e.component), {
|
|
1357
1356
|
"default-class": e.class,
|
|
1358
1357
|
"hover-class": e.hoverClass,
|
|
1359
1358
|
"wrapper-class": e.wrapperClass,
|
|
@@ -1378,7 +1377,7 @@ St.render = function(e, t, n, r, i, o) {
|
|
|
1378
1377
|
})), 128))
|
|
1379
1378
|
], 6);
|
|
1380
1379
|
};
|
|
1381
|
-
var Ct =
|
|
1380
|
+
var Ct = j("vue-draggable-area"), wt = {
|
|
1382
1381
|
name: "DraggableArea",
|
|
1383
1382
|
props: {
|
|
1384
1383
|
movable: {
|
|
@@ -1406,14 +1405,14 @@ var Ct = A("vue-draggable-area"), wt = {
|
|
|
1406
1405
|
onTouchStart: function(e) {
|
|
1407
1406
|
if (e.cancelable) {
|
|
1408
1407
|
var t = this.movable && e.touches.length === 1;
|
|
1409
|
-
t && (this.touches =
|
|
1408
|
+
t && (this.touches = T(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
|
|
1410
1409
|
}
|
|
1411
1410
|
},
|
|
1412
1411
|
onTouchEnd: function() {
|
|
1413
1412
|
this.touchStarted = !1, this.processEnd();
|
|
1414
1413
|
},
|
|
1415
1414
|
onTouchMove: function(e) {
|
|
1416
|
-
this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) :
|
|
1415
|
+
this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : we({
|
|
1417
1416
|
x: this.touches[0].clientX,
|
|
1418
1417
|
y: this.touches[0].clientY
|
|
1419
1418
|
}, {
|
|
@@ -1452,10 +1451,10 @@ var Ct = A("vue-draggable-area"), wt = {
|
|
|
1452
1451
|
};
|
|
1453
1452
|
},
|
|
1454
1453
|
processMove: function(e, t) {
|
|
1455
|
-
var n =
|
|
1454
|
+
var n = T(t);
|
|
1456
1455
|
if (this.touches.length) {
|
|
1457
1456
|
var r = this.$refs.container.getBoundingClientRect(), i = r.left, a = r.top;
|
|
1458
|
-
this.touches.length === 1 && n.length === 1 && this.$emit("move", new
|
|
1457
|
+
this.touches.length === 1 && n.length === 1 && this.$emit("move", new Ee({
|
|
1459
1458
|
left: n[0].clientX - (i + this.anchor.x),
|
|
1460
1459
|
top: n[0].clientY - (a + this.anchor.y)
|
|
1461
1460
|
}));
|
|
@@ -1468,7 +1467,7 @@ var Ct = A("vue-draggable-area"), wt = {
|
|
|
1468
1467
|
emits: ["move", "move-end"]
|
|
1469
1468
|
};
|
|
1470
1469
|
wt.render = function(e, t, n, r, i, a) {
|
|
1471
|
-
return _(),
|
|
1470
|
+
return _(), x("div", {
|
|
1472
1471
|
ref: "container",
|
|
1473
1472
|
onTouchstart: t[1] ||= function() {
|
|
1474
1473
|
return a.onTouchStart && a.onTouchStart.apply(a, arguments);
|
|
@@ -1476,7 +1475,7 @@ wt.render = function(e, t, n, r, i, a) {
|
|
|
1476
1475
|
onMousedown: t[2] ||= function() {
|
|
1477
1476
|
return a.onMouseDown && a.onMouseDown.apply(a, arguments);
|
|
1478
1477
|
}
|
|
1479
|
-
}, [
|
|
1478
|
+
}, [l(e.$slots, "default")], 544);
|
|
1480
1479
|
};
|
|
1481
1480
|
function Tt(e) {
|
|
1482
1481
|
return {
|
|
@@ -1564,7 +1563,7 @@ function kt(e, t) {
|
|
|
1564
1563
|
return e.forEach((function(t) {
|
|
1565
1564
|
a.left += (t.clientX - r) / e.length, a.top += (t.clientY - i) / e.length;
|
|
1566
1565
|
})), e.forEach((function(e) {
|
|
1567
|
-
o +=
|
|
1566
|
+
o += we({
|
|
1568
1567
|
x: a.left,
|
|
1569
1568
|
y: a.top
|
|
1570
1569
|
}, {
|
|
@@ -1607,18 +1606,18 @@ var At = {
|
|
|
1607
1606
|
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
1608
1607
|
},
|
|
1609
1608
|
created: function() {
|
|
1610
|
-
this.transforming = !1, this.debouncedProcessEnd =
|
|
1609
|
+
this.transforming = !1, this.debouncedProcessEnd = ye(this.processEnd), this.touches = [];
|
|
1611
1610
|
},
|
|
1612
1611
|
methods: {
|
|
1613
1612
|
processMove: function(e, t) {
|
|
1614
1613
|
if (this.touches.length) {
|
|
1615
|
-
if (this.touches.length === 1 && t.length === 1) this.$emit("move", new
|
|
1614
|
+
if (this.touches.length === 1 && t.length === 1) this.$emit("move", new B({
|
|
1616
1615
|
left: this.touches[0].clientX - t[0].clientX,
|
|
1617
1616
|
top: this.touches[0].clientY - t[0].clientY
|
|
1618
1617
|
}));
|
|
1619
1618
|
else if (this.touches.length > 1 && this.touchResize) {
|
|
1620
1619
|
var n = kt(t, this.$refs.container), r = this.oldGeometricProperties;
|
|
1621
|
-
r.count === n.count && r.count > 1 && this.$emit("resize", new
|
|
1620
|
+
r.count === n.count && r.count > 1 && this.$emit("resize", new B({
|
|
1622
1621
|
left: r.centerMass.left - n.centerMass.left,
|
|
1623
1622
|
top: r.centerMass.top - n.centerMass.top
|
|
1624
1623
|
}, {
|
|
@@ -1641,7 +1640,7 @@ var At = {
|
|
|
1641
1640
|
onTouchStart: function(e) {
|
|
1642
1641
|
if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
|
|
1643
1642
|
var t = this.$refs.container, n = t.getBoundingClientRect(), r = n.left, i = n.top, a = n.bottom, o = n.right;
|
|
1644
|
-
this.touches =
|
|
1643
|
+
this.touches = T(e.touches).filter((function(e) {
|
|
1645
1644
|
return e.clientX > r && e.clientX < o && e.clientY > i && e.clientY < a;
|
|
1646
1645
|
})), this.oldGeometricProperties = kt(this.touches, t);
|
|
1647
1646
|
}
|
|
@@ -1652,7 +1651,7 @@ var At = {
|
|
|
1652
1651
|
onTouchMove: function(e) {
|
|
1653
1652
|
var t = this;
|
|
1654
1653
|
if (this.touches.length) {
|
|
1655
|
-
var n =
|
|
1654
|
+
var n = T(e.touches).filter((function(e) {
|
|
1656
1655
|
return !e.identifier || t.touches.find((function(t) {
|
|
1657
1656
|
return t.identifier === e.identifier;
|
|
1658
1657
|
}));
|
|
@@ -1681,11 +1680,11 @@ var At = {
|
|
|
1681
1680
|
},
|
|
1682
1681
|
onWheel: function(e) {
|
|
1683
1682
|
if (this.wheelResize && this.processEvent(e)) {
|
|
1684
|
-
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 ||
|
|
1683
|
+
var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top, i = 1 + this.wheelResize.ratio * (o = e.deltaY || e.detail || e.wheelDelta, (s = +o) == 0 || Ce(s) ? s : s > 0 ? 1 : -1), a = {
|
|
1685
1684
|
left: e.clientX - n,
|
|
1686
1685
|
top: e.clientY - r
|
|
1687
1686
|
};
|
|
1688
|
-
this.$emit("resize", new
|
|
1687
|
+
this.$emit("resize", new B({}, {
|
|
1689
1688
|
factor: i,
|
|
1690
1689
|
center: a
|
|
1691
1690
|
})), this.touches.length || this.debouncedProcessEnd();
|
|
@@ -1700,7 +1699,7 @@ var At = {
|
|
|
1700
1699
|
]
|
|
1701
1700
|
};
|
|
1702
1701
|
At.render = function(e, t, n, r, i, a) {
|
|
1703
|
-
return _(),
|
|
1702
|
+
return _(), x("div", {
|
|
1704
1703
|
ref: "container",
|
|
1705
1704
|
onTouchstart: t[1] ||= function() {
|
|
1706
1705
|
return a.onTouchStart && a.onTouchStart.apply(a, arguments);
|
|
@@ -1711,7 +1710,7 @@ At.render = function(e, t, n, r, i, a) {
|
|
|
1711
1710
|
onWheel: t[3] ||= function() {
|
|
1712
1711
|
return a.onWheel && a.onWheel.apply(a, arguments);
|
|
1713
1712
|
}
|
|
1714
|
-
}, [
|
|
1713
|
+
}, [l(e.$slots, "default")], 544);
|
|
1715
1714
|
};
|
|
1716
1715
|
var jt = {
|
|
1717
1716
|
components: { TransformableImage: At },
|
|
@@ -1735,9 +1734,9 @@ var jt = {
|
|
|
1735
1734
|
},
|
|
1736
1735
|
emits: ["resize", "move"]
|
|
1737
1736
|
};
|
|
1738
|
-
jt.render = function(e, t, n,
|
|
1739
|
-
var
|
|
1740
|
-
return _(),
|
|
1737
|
+
jt.render = function(e, t, n, a, o, s) {
|
|
1738
|
+
var c = r("transformable-image");
|
|
1739
|
+
return _(), x(c, {
|
|
1741
1740
|
"touch-move": n.touchMove,
|
|
1742
1741
|
"touch-resize": n.touchResize,
|
|
1743
1742
|
"mouse-move": n.mouseMove,
|
|
@@ -1749,8 +1748,8 @@ jt.render = function(e, t, n, i, a, o) {
|
|
|
1749
1748
|
return e.$emit("resize", t);
|
|
1750
1749
|
}
|
|
1751
1750
|
}, {
|
|
1752
|
-
default:
|
|
1753
|
-
return [
|
|
1751
|
+
default: i((function() {
|
|
1752
|
+
return [l(e.$slots, "default")];
|
|
1754
1753
|
})),
|
|
1755
1754
|
_: 3
|
|
1756
1755
|
}, 8, [
|
|
@@ -1760,7 +1759,7 @@ jt.render = function(e, t, n, i, a, o) {
|
|
|
1760
1759
|
"wheel-resize"
|
|
1761
1760
|
]);
|
|
1762
1761
|
};
|
|
1763
|
-
var Mt =
|
|
1762
|
+
var Mt = j("vue-preview"), Nt = {
|
|
1764
1763
|
props: {
|
|
1765
1764
|
coordinates: { type: Object },
|
|
1766
1765
|
transitions: { type: Object },
|
|
@@ -1793,7 +1792,7 @@ var Mt = A("vue-preview"), Nt = {
|
|
|
1793
1792
|
root: Mt({ fill: this.fill }),
|
|
1794
1793
|
wrapper: Mt("wrapper"),
|
|
1795
1794
|
imageWrapper: Mt("image-wrapper"),
|
|
1796
|
-
image:
|
|
1795
|
+
image: A(Mt("image"), this.imageClass)
|
|
1797
1796
|
};
|
|
1798
1797
|
},
|
|
1799
1798
|
style: function() {
|
|
@@ -1812,7 +1811,7 @@ var Mt = A("vue-preview"), Nt = {
|
|
|
1812
1811
|
},
|
|
1813
1812
|
imageStyle: function() {
|
|
1814
1813
|
if (this.coordinates && this.image) {
|
|
1815
|
-
var e = this.coordinates.width / this.size.width, t =
|
|
1814
|
+
var e = this.coordinates.width / this.size.width, t = C(C({
|
|
1816
1815
|
rotate: 0,
|
|
1817
1816
|
flip: {
|
|
1818
1817
|
horizontal: !1,
|
|
@@ -1884,21 +1883,21 @@ var Mt = A("vue-preview"), Nt = {
|
|
|
1884
1883
|
}
|
|
1885
1884
|
}
|
|
1886
1885
|
};
|
|
1887
|
-
Nt.render = function(e, t, n, r,
|
|
1888
|
-
return _(),
|
|
1886
|
+
Nt.render = function(e, t, n, r, i, a) {
|
|
1887
|
+
return _(), x("div", {
|
|
1889
1888
|
ref: "root",
|
|
1890
|
-
class:
|
|
1891
|
-
style:
|
|
1889
|
+
class: a.classes.root,
|
|
1890
|
+
style: a.style
|
|
1892
1891
|
}, [d("div", {
|
|
1893
1892
|
ref: "wrapper",
|
|
1894
|
-
class:
|
|
1895
|
-
style:
|
|
1896
|
-
}, [
|
|
1893
|
+
class: a.classes.wrapper,
|
|
1894
|
+
style: a.wrapperStyle
|
|
1895
|
+
}, [u(d("img", {
|
|
1897
1896
|
ref: "image",
|
|
1898
1897
|
src: n.image && n.image.src,
|
|
1899
|
-
class:
|
|
1900
|
-
style:
|
|
1901
|
-
}, null, 14, ["src"]), [[
|
|
1898
|
+
class: a.classes.image,
|
|
1899
|
+
style: a.imageStyle
|
|
1900
|
+
}, null, 14, ["src"]), [[ie, n.image && n.image.src]])], 6)], 6);
|
|
1902
1901
|
};
|
|
1903
1902
|
var Pt = {
|
|
1904
1903
|
components: { Preview: Nt },
|
|
@@ -1906,9 +1905,9 @@ var Pt = {
|
|
|
1906
1905
|
};
|
|
1907
1906
|
Pt.render = function(e, t, i, a, o, s) {
|
|
1908
1907
|
var c = r("preview");
|
|
1909
|
-
return _(),
|
|
1908
|
+
return _(), x(c, n(e.$attrs, { fill: !0 }), null, 16);
|
|
1910
1909
|
};
|
|
1911
|
-
var Ft =
|
|
1910
|
+
var Ft = j("vue-rectangle-stencil"), It = {
|
|
1912
1911
|
name: "RectangleStencil",
|
|
1913
1912
|
components: {
|
|
1914
1913
|
StencilPreview: Pt,
|
|
@@ -1983,13 +1982,13 @@ var Ft = A("vue-rectangle-stencil"), It = {
|
|
|
1983
1982
|
computed: {
|
|
1984
1983
|
classes: function() {
|
|
1985
1984
|
return {
|
|
1986
|
-
stencil:
|
|
1985
|
+
stencil: A(Ft({
|
|
1987
1986
|
movable: this.movable,
|
|
1988
1987
|
moving: this.moving,
|
|
1989
1988
|
resizing: this.resizing
|
|
1990
1989
|
}), this.moving && this.movingClass, this.resizing && this.resizingClass),
|
|
1991
|
-
preview:
|
|
1992
|
-
boundingBox:
|
|
1990
|
+
preview: A(Ft("preview"), this.previewClass),
|
|
1991
|
+
boundingBox: A(Ft("bounding-box"), this.boundingBoxClass)
|
|
1993
1992
|
};
|
|
1994
1993
|
},
|
|
1995
1994
|
style: function() {
|
|
@@ -2028,16 +2027,16 @@ var Ft = A("vue-rectangle-stencil"), It = {
|
|
|
2028
2027
|
"move-end"
|
|
2029
2028
|
]
|
|
2030
2029
|
};
|
|
2031
|
-
It.render = function(e, t, n,
|
|
2032
|
-
var
|
|
2033
|
-
return _(),
|
|
2034
|
-
class:
|
|
2035
|
-
style:
|
|
2036
|
-
}, [d(
|
|
2030
|
+
It.render = function(e, t, n, a, o, s) {
|
|
2031
|
+
var c = r("stencil-preview"), l = r("draggable-area"), u = r("bounding-box");
|
|
2032
|
+
return _(), x("div", {
|
|
2033
|
+
class: s.classes.stencil,
|
|
2034
|
+
style: s.style
|
|
2035
|
+
}, [d(u, {
|
|
2037
2036
|
width: n.stencilCoordinates.width,
|
|
2038
2037
|
height: n.stencilCoordinates.height,
|
|
2039
2038
|
transitions: n.transitions,
|
|
2040
|
-
class:
|
|
2039
|
+
class: s.classes.boundingBox,
|
|
2041
2040
|
handlers: n.handlers,
|
|
2042
2041
|
"handlers-component": n.handlersComponent,
|
|
2043
2042
|
"handlers-classes": n.handlersClasses,
|
|
@@ -2047,22 +2046,22 @@ It.render = function(e, t, n, i, a, o) {
|
|
|
2047
2046
|
"lines-classes": n.linesClasses,
|
|
2048
2047
|
"lines-wrappers-classes": n.linesWrappersClasses,
|
|
2049
2048
|
resizable: n.resizable,
|
|
2050
|
-
onResize:
|
|
2051
|
-
onResizeEnd:
|
|
2049
|
+
onResize: s.onResize,
|
|
2050
|
+
onResizeEnd: s.onResizeEnd
|
|
2052
2051
|
}, {
|
|
2053
|
-
default:
|
|
2054
|
-
return [d(
|
|
2052
|
+
default: i((function() {
|
|
2053
|
+
return [d(l, {
|
|
2055
2054
|
movable: n.movable,
|
|
2056
|
-
onMove:
|
|
2057
|
-
onMoveEnd:
|
|
2055
|
+
onMove: s.onMove,
|
|
2056
|
+
onMoveEnd: s.onMoveEnd
|
|
2058
2057
|
}, {
|
|
2059
|
-
default:
|
|
2060
|
-
return [d(
|
|
2058
|
+
default: i((function() {
|
|
2059
|
+
return [d(c, {
|
|
2061
2060
|
image: n.image,
|
|
2062
2061
|
coordinates: n.coordinates,
|
|
2063
2062
|
width: n.stencilCoordinates.width,
|
|
2064
2063
|
height: n.stencilCoordinates.height,
|
|
2065
|
-
class:
|
|
2064
|
+
class: s.classes.preview,
|
|
2066
2065
|
transitions: n.transitions
|
|
2067
2066
|
}, null, 8, [
|
|
2068
2067
|
"image",
|
|
@@ -2099,7 +2098,7 @@ It.render = function(e, t, n, i, a, o) {
|
|
|
2099
2098
|
"onResizeEnd"
|
|
2100
2099
|
])], 6);
|
|
2101
2100
|
};
|
|
2102
|
-
var Lt = ["transitions"], $ =
|
|
2101
|
+
var Lt = ["transitions"], $ = j("vue-advanced-cropper"), Rt = {
|
|
2103
2102
|
name: "Cropper",
|
|
2104
2103
|
components: { BackgroundWrapper: jt },
|
|
2105
2104
|
props: {
|
|
@@ -2165,7 +2164,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2165
2164
|
type: String,
|
|
2166
2165
|
default: "fit-area",
|
|
2167
2166
|
validator: function(e) {
|
|
2168
|
-
return
|
|
2167
|
+
return Ie.indexOf(e) !== -1;
|
|
2169
2168
|
}
|
|
2170
2169
|
},
|
|
2171
2170
|
roundResult: {
|
|
@@ -2199,24 +2198,24 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2199
2198
|
resizeAlgorithm: {
|
|
2200
2199
|
type: Function,
|
|
2201
2200
|
default: function(e) {
|
|
2202
|
-
var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o =
|
|
2201
|
+
var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = N(N({}, n), {
|
|
2203
2202
|
right: n.left + n.width,
|
|
2204
2203
|
bottom: n.top + n.height
|
|
2205
|
-
}), s = t.params || {}, c =
|
|
2204
|
+
}), s = t.params || {}, c = N({}, t.directions), l = s.allowedDirections || {
|
|
2206
2205
|
left: !0,
|
|
2207
2206
|
right: !0,
|
|
2208
2207
|
bottom: !0,
|
|
2209
2208
|
top: !0
|
|
2210
2209
|
};
|
|
2211
|
-
a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0),
|
|
2210
|
+
a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), V.forEach((function(e) {
|
|
2212
2211
|
l[e] || (c[e] = 0);
|
|
2213
2212
|
}));
|
|
2214
|
-
var u =
|
|
2213
|
+
var u = G(o, c = dt({
|
|
2215
2214
|
coordinates: o,
|
|
2216
2215
|
directions: c,
|
|
2217
2216
|
sizeRestrictions: a,
|
|
2218
2217
|
positionRestrictions: i
|
|
2219
|
-
})).width, d =
|
|
2218
|
+
})).width, d = G(o, c).height, f = s.preserveRatio ? J(o) : He(u / d, r);
|
|
2220
2219
|
if (f) {
|
|
2221
2220
|
var p = s.respectDirection;
|
|
2222
2221
|
if (p ||= o.width >= o.height || f === 1 ? "width" : "height", p === "width") {
|
|
@@ -2228,8 +2227,8 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2228
2227
|
} else if (p === "height") {
|
|
2229
2228
|
var _ = o.width - d * f;
|
|
2230
2229
|
if (l.left && l.right) {
|
|
2231
|
-
var
|
|
2232
|
-
c.left = -ft(_,
|
|
2230
|
+
var v = c.left, y = c.right;
|
|
2231
|
+
c.left = -ft(_, v, y), c.right = -ft(_, y, v);
|
|
2233
2232
|
} else l.left ? c.left = -_ : l.right ? c.right = -_ : l.top ? c.top = 0 : l.bottom && (c.bottom = 0);
|
|
2234
2233
|
}
|
|
2235
2234
|
c = dt({
|
|
@@ -2241,10 +2240,10 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2241
2240
|
compensate: s.compensate
|
|
2242
2241
|
});
|
|
2243
2242
|
}
|
|
2244
|
-
return u =
|
|
2243
|
+
return u = G(o, c).width, d = G(o, c).height, (f = s.preserveRatio ? J(o) : He(u / d, r)) && Math.abs(f - u / d) > .001 && V.forEach((function(e) {
|
|
2245
2244
|
l[e] || (c[e] = 0);
|
|
2246
2245
|
})), Qe({
|
|
2247
|
-
event: new
|
|
2246
|
+
event: new Ee({
|
|
2248
2247
|
left: -c.left,
|
|
2249
2248
|
top: -c.top
|
|
2250
2249
|
}),
|
|
@@ -2265,14 +2264,14 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2265
2264
|
initStretcher: {
|
|
2266
2265
|
type: Function,
|
|
2267
2266
|
default: function(e) {
|
|
2268
|
-
var t = e.stretcher, n = e.imageSize, r =
|
|
2267
|
+
var t = e.stretcher, n = e.imageSize, r = J(n);
|
|
2269
2268
|
t.style.width = n.width + "px", t.style.height = t.clientWidth / r + "px", t.style.width = t.clientWidth + "px";
|
|
2270
2269
|
}
|
|
2271
2270
|
},
|
|
2272
2271
|
fitCoordinates: {
|
|
2273
2272
|
type: Function,
|
|
2274
2273
|
default: function(e) {
|
|
2275
|
-
var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o =
|
|
2274
|
+
var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = N(N({}, n), Q({
|
|
2276
2275
|
width: n.width,
|
|
2277
2276
|
height: n.height,
|
|
2278
2277
|
aspectRatio: r,
|
|
@@ -2283,19 +2282,19 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2283
2282
|
minWidth: Math.min(t.width, i.minWidth)
|
|
2284
2283
|
}
|
|
2285
2284
|
}));
|
|
2286
|
-
return o = Z(o =
|
|
2285
|
+
return o = Z(o = K(o, U(W(n), W(o))), Ye(H(t), a));
|
|
2287
2286
|
}
|
|
2288
2287
|
},
|
|
2289
2288
|
fitVisibleArea: {
|
|
2290
2289
|
type: Function,
|
|
2291
2290
|
default: function(e) {
|
|
2292
|
-
var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a =
|
|
2293
|
-
a.height = a.width /
|
|
2294
|
-
var o = Ve(
|
|
2291
|
+
var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = N({}, t);
|
|
2292
|
+
a.height = a.width / J(n), a.top += (t.height - a.height) / 2, (i.height - a.height > 0 || i.width - a.width > 0) && (a = q(a, Math.max(i.height / a.height, i.width / a.width)));
|
|
2293
|
+
var o = Be(Ve(i, H(a = q(a, Ge(a, r({
|
|
2295
2294
|
visibleArea: a,
|
|
2296
2295
|
type: "resize"
|
|
2297
2296
|
}))))));
|
|
2298
|
-
return a.width < i.width && (o.left = 0), a.height < i.height && (o.top = 0), a = Z(a =
|
|
2297
|
+
return a.width < i.width && (o.left = 0), a.height < i.height && (o.top = 0), a = Z(a = K(a, o), r({
|
|
2299
2298
|
visibleArea: a,
|
|
2300
2299
|
type: "move"
|
|
2301
2300
|
}));
|
|
@@ -2310,7 +2309,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2310
2309
|
top: 0,
|
|
2311
2310
|
right: r.width,
|
|
2312
2311
|
bottom: r.height
|
|
2313
|
-
} : i === "fit-area" && (
|
|
2312
|
+
} : i === "fit-area" && (J(n) > J(r) ? (o = {
|
|
2314
2313
|
top: 0,
|
|
2315
2314
|
bottom: r.height
|
|
2316
2315
|
}, t && a === "move" && (t.width > r.width ? (o.left = -(t.width - r.width) / 2, o.right = r.width - o.left) : (o.left = 0, o.right = r.width))) : (o = {
|
|
@@ -2372,7 +2371,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2372
2371
|
height: 0
|
|
2373
2372
|
},
|
|
2374
2373
|
visibleArea: null,
|
|
2375
|
-
coordinates:
|
|
2374
|
+
coordinates: C({}, Le)
|
|
2376
2375
|
};
|
|
2377
2376
|
},
|
|
2378
2377
|
computed: {
|
|
@@ -2410,7 +2409,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2410
2409
|
return !!(this.visibleArea && this.imageLoaded);
|
|
2411
2410
|
},
|
|
2412
2411
|
settings: function() {
|
|
2413
|
-
var e =
|
|
2412
|
+
var e = xe(this.resizeImage, {
|
|
2414
2413
|
touch: !0,
|
|
2415
2414
|
wheel: { ratio: .1 },
|
|
2416
2415
|
adjustStencil: !0
|
|
@@ -2420,7 +2419,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2420
2419
|
adjustStencil: !1
|
|
2421
2420
|
});
|
|
2422
2421
|
return {
|
|
2423
|
-
moveImage:
|
|
2422
|
+
moveImage: xe(this.moveImage, {
|
|
2424
2423
|
touch: !0,
|
|
2425
2424
|
mouse: !0
|
|
2426
2425
|
}, {
|
|
@@ -2451,17 +2450,17 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2451
2450
|
if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
|
|
2452
2451
|
var e = this.sizeRestrictionsAlgorithm({
|
|
2453
2452
|
imageSize: this.imageSize,
|
|
2454
|
-
minWidth:
|
|
2455
|
-
minHeight:
|
|
2456
|
-
maxWidth:
|
|
2457
|
-
maxHeight:
|
|
2453
|
+
minWidth: R(this.minWidth) ? 0 : z(this.minWidth),
|
|
2454
|
+
minHeight: R(this.minHeight) ? 0 : z(this.minHeight),
|
|
2455
|
+
maxWidth: R(this.maxWidth) ? 1 / 0 : z(this.maxWidth),
|
|
2456
|
+
maxHeight: R(this.maxHeight) ? 1 / 0 : z(this.maxHeight)
|
|
2458
2457
|
});
|
|
2459
2458
|
if (e = function(e) {
|
|
2460
2459
|
var t = e.areaRestrictions, n = e.sizeRestrictions;
|
|
2461
2460
|
e.imageSize;
|
|
2462
2461
|
var r = e.boundaries, i = e.positionRestrictions;
|
|
2463
2462
|
e.imageRestriction;
|
|
2464
|
-
var a =
|
|
2463
|
+
var a = N(N({}, n), {
|
|
2465
2464
|
minWidth: n.minWidth === void 0 ? 0 : n.minWidth,
|
|
2466
2465
|
minHeight: n.minHeight === void 0 ? 0 : n.minHeight,
|
|
2467
2466
|
maxWidth: n.maxWidth === void 0 ? 1 / 0 : n.maxWidth,
|
|
@@ -2507,14 +2506,14 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2507
2506
|
classes: function() {
|
|
2508
2507
|
return {
|
|
2509
2508
|
cropper: $(),
|
|
2510
|
-
image:
|
|
2509
|
+
image: A($("image"), this.imageClass),
|
|
2511
2510
|
stencil: $("stencil"),
|
|
2512
|
-
boundaries:
|
|
2513
|
-
stretcher:
|
|
2514
|
-
background:
|
|
2515
|
-
foreground:
|
|
2516
|
-
imageWrapper:
|
|
2517
|
-
cropperWrapper:
|
|
2511
|
+
boundaries: A($("boundaries"), this.boundariesClass),
|
|
2512
|
+
stretcher: A($("stretcher")),
|
|
2513
|
+
background: A($("background"), this.backgroundClass),
|
|
2514
|
+
foreground: A($("foreground"), this.foregroundClass),
|
|
2515
|
+
imageWrapper: A($("image-wrapper")),
|
|
2516
|
+
cropperWrapper: A($("cropper-wrapper"))
|
|
2518
2517
|
};
|
|
2519
2518
|
},
|
|
2520
2519
|
stencilCoordinates: function() {
|
|
@@ -2551,7 +2550,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2551
2550
|
}, n = {
|
|
2552
2551
|
left: (1 - 1 / this.coefficient) * e.width / 2,
|
|
2553
2552
|
top: (1 - 1 / this.coefficient) * e.height / 2
|
|
2554
|
-
}, r =
|
|
2553
|
+
}, r = C(C({}, this.imageTransforms), {}, {
|
|
2555
2554
|
scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width),
|
|
2556
2555
|
scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height)
|
|
2557
2556
|
}), i = {
|
|
@@ -2600,7 +2599,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2600
2599
|
}
|
|
2601
2600
|
},
|
|
2602
2601
|
created: function() {
|
|
2603
|
-
this.debouncedUpdate =
|
|
2602
|
+
this.debouncedUpdate = ye(this.update, this.debounce), this.debouncedDisableTransitions = ye(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
|
|
2604
2603
|
},
|
|
2605
2604
|
mounted: function() {
|
|
2606
2605
|
this.$refs.image.addEventListener("load", this.onSuccessLoadImage), this.$refs.image.addEventListener("error", this.onFailLoadImage), this.onChangeImage(), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
|
|
@@ -2610,16 +2609,16 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2610
2609
|
},
|
|
2611
2610
|
methods: {
|
|
2612
2611
|
getResult: function() {
|
|
2613
|
-
var e = this.initialized ? this.prepareResult(
|
|
2612
|
+
var e = this.initialized ? this.prepareResult(C({}, this.coordinates)) : this.defaultCoordinates(), t = {
|
|
2614
2613
|
rotate: this.imageTransforms.rotate % 360,
|
|
2615
|
-
flip:
|
|
2614
|
+
flip: C({}, this.imageTransforms.flip)
|
|
2616
2615
|
};
|
|
2617
2616
|
if (this.src && this.imageLoaded) {
|
|
2618
2617
|
var n = this;
|
|
2619
2618
|
return {
|
|
2620
2619
|
image: this.image,
|
|
2621
2620
|
coordinates: e,
|
|
2622
|
-
visibleArea: this.visibleArea ?
|
|
2621
|
+
visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
|
|
2623
2622
|
imageTransforms: t,
|
|
2624
2623
|
get canvas() {
|
|
2625
2624
|
return n.canvas ? n.getCanvas() : void 0;
|
|
@@ -2629,14 +2628,14 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2629
2628
|
return {
|
|
2630
2629
|
image: this.image,
|
|
2631
2630
|
coordinates: e,
|
|
2632
|
-
visibleArea: this.visibleArea ?
|
|
2631
|
+
visibleArea: this.visibleArea ? C({}, this.visibleArea) : null,
|
|
2633
2632
|
canvas: void 0,
|
|
2634
2633
|
imageTransforms: t
|
|
2635
2634
|
};
|
|
2636
2635
|
},
|
|
2637
2636
|
zoom: function(e, t) {
|
|
2638
2637
|
var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
|
|
2639
|
-
this.onManipulateImage(new
|
|
2638
|
+
this.onManipulateImage(new B({}, {
|
|
2640
2639
|
factor: 1 / e,
|
|
2641
2640
|
center: t
|
|
2642
2641
|
}), {
|
|
@@ -2646,7 +2645,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2646
2645
|
},
|
|
2647
2646
|
move: function(e, t) {
|
|
2648
2647
|
var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
|
|
2649
|
-
this.onManipulateImage(new
|
|
2648
|
+
this.onManipulateImage(new B({
|
|
2650
2649
|
left: e || 0,
|
|
2651
2650
|
top: t || 0
|
|
2652
2651
|
}), {
|
|
@@ -2689,7 +2688,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2689
2688
|
top: Math.round(t.top)
|
|
2690
2689
|
};
|
|
2691
2690
|
return i.width > n.maxWidth ? i.width = Math.floor(t.width) : i.width < n.minWidth && (i.width = Math.ceil(t.width)), i.height > n.maxHeight ? i.height = Math.floor(t.height) : i.height < n.minHeight && (i.height = Math.ceil(t.height)), Z(i, r);
|
|
2692
|
-
}(
|
|
2691
|
+
}(C(C({}, this.getPublicProperties()), {}, {
|
|
2693
2692
|
positionRestrictions: st(this.positionRestrictions, this.visibleArea),
|
|
2694
2693
|
coordinates: e
|
|
2695
2694
|
})) : e;
|
|
@@ -2711,16 +2710,16 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2711
2710
|
sizeRestrictions: this.sizeRestrictions,
|
|
2712
2711
|
stencilSize: this.getStencilSize()
|
|
2713
2712
|
});
|
|
2714
|
-
return
|
|
2713
|
+
return C(C({}, a), {}, { changed: !Re(a.visibleArea, t) || !Re(a.coordinates, n) });
|
|
2715
2714
|
},
|
|
2716
2715
|
runAutoZoom: function(e) {
|
|
2717
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i =
|
|
2716
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = ve(t, Lt), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
|
|
2718
2717
|
r && c && this.enableTransitions(), this.visibleArea = o, this.coordinates = s, r && c && this.debouncedDisableTransitions();
|
|
2719
2718
|
},
|
|
2720
2719
|
normalizeEvent: function(e) {
|
|
2721
2720
|
return function(e) {
|
|
2722
2721
|
var t = e.event, n = e.visibleArea, r = e.coefficient;
|
|
2723
|
-
if (t.type === "manipulateImage") return
|
|
2722
|
+
if (t.type === "manipulateImage") return N(N({}, t), {
|
|
2724
2723
|
move: {
|
|
2725
2724
|
left: t.move && t.move.left ? r * t.move.left : 0,
|
|
2726
2725
|
top: t.move && t.move.top ? r * t.move.top : 0
|
|
@@ -2734,19 +2733,19 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2734
2733
|
}
|
|
2735
2734
|
});
|
|
2736
2735
|
if (t.type === "resize") {
|
|
2737
|
-
var i =
|
|
2738
|
-
return
|
|
2736
|
+
var i = N(N({}, t), { directions: N({}, t.directions) });
|
|
2737
|
+
return V.forEach((function(e) {
|
|
2739
2738
|
i.directions[e] *= r;
|
|
2740
2739
|
})), i;
|
|
2741
2740
|
}
|
|
2742
2741
|
if (t.type === "move") {
|
|
2743
|
-
var a =
|
|
2744
|
-
return
|
|
2742
|
+
var a = N(N({}, t), { directions: N({}, t.directions) });
|
|
2743
|
+
return Fe.forEach((function(e) {
|
|
2745
2744
|
a.directions[e] *= r;
|
|
2746
2745
|
})), a;
|
|
2747
2746
|
}
|
|
2748
2747
|
return t;
|
|
2749
|
-
}(
|
|
2748
|
+
}(C(C({}, this.getPublicProperties()), {}, { event: e }));
|
|
2750
2749
|
},
|
|
2751
2750
|
getCanvas: function() {
|
|
2752
2751
|
if (this.$refs.canvas) {
|
|
@@ -2756,12 +2755,12 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2756
2755
|
height: t.naturalHeight
|
|
2757
2756
|
}, o = We(a, r), s = e.getContext("2d");
|
|
2758
2757
|
e.height = o.height, e.width = o.width, s.save();
|
|
2759
|
-
var c = X(
|
|
2758
|
+
var c = X(W(N({
|
|
2760
2759
|
left: 0,
|
|
2761
2760
|
top: 0
|
|
2762
2761
|
}, a)), r);
|
|
2763
2762
|
return s.translate(-(c.left - o.width / 2), -(c.top - o.height / 2)), s.rotate(r * Math.PI / 180), s.translate(i.horizontal ? a.width : 0, i.vertical ? a.height : 0), s.scale(i.horizontal ? -1 : 1, i.vertical ? -1 : 1), s.drawImage(t, 0, 0, a.width, a.height), s.restore(), e;
|
|
2764
|
-
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r =
|
|
2763
|
+
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = C({
|
|
2765
2764
|
minWidth: 0,
|
|
2766
2765
|
minHeight: 0,
|
|
2767
2766
|
maxWidth: 1 / 0,
|
|
@@ -2828,7 +2827,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2828
2827
|
t ||= this.stencilSize ? at : it;
|
|
2829
2828
|
var n = this.sizeRestrictions;
|
|
2830
2829
|
n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
|
|
2831
|
-
var r =
|
|
2830
|
+
var r = L(t) ? t({
|
|
2832
2831
|
boundaries: this.boundaries,
|
|
2833
2832
|
imageSize: this.imageSize,
|
|
2834
2833
|
aspectRatio: this.getAspectRatio(),
|
|
@@ -2837,13 +2836,13 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2837
2836
|
visibleArea: this.visibleArea
|
|
2838
2837
|
}) : t, i = this.defaultPosition || rt, a = [r, function(t) {
|
|
2839
2838
|
var n = t.coordinates;
|
|
2840
|
-
return
|
|
2839
|
+
return C({}, L(i) ? i({
|
|
2841
2840
|
coordinates: n,
|
|
2842
2841
|
imageSize: e.imageSize,
|
|
2843
2842
|
visibleArea: e.visibleArea
|
|
2844
2843
|
}) : e.defaultPosition);
|
|
2845
2844
|
}];
|
|
2846
|
-
this.delayedTransforms && a.push.apply(a,
|
|
2845
|
+
this.delayedTransforms && a.push.apply(a, T(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(a, !0), this.delayedTransforms = null;
|
|
2847
2846
|
}
|
|
2848
2847
|
},
|
|
2849
2848
|
clearImage: function() {
|
|
@@ -2873,7 +2872,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2873
2872
|
cropper: n,
|
|
2874
2873
|
imageSize: e.imageSize
|
|
2875
2874
|
};
|
|
2876
|
-
if (e.boundaries =
|
|
2875
|
+
if (e.boundaries = L(e.defaultBoundaries) ? e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? function(e) {
|
|
2877
2876
|
var t = e.cropper, n = e.imageSize, r = t.clientHeight, i = t.clientWidth, a = r, o = n.width * r / n.height;
|
|
2878
2877
|
return o > i && (o = i, a = n.height * i / n.width), {
|
|
2879
2878
|
width: o,
|
|
@@ -2890,10 +2889,10 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2890
2889
|
},
|
|
2891
2890
|
resetVisibleArea: function() {
|
|
2892
2891
|
var e = this;
|
|
2893
|
-
return this.appliedImageTransforms =
|
|
2892
|
+
return this.appliedImageTransforms = C(C({}, this.defaultImageTransforms), {}, { flip: C({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
|
|
2894
2893
|
e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
|
|
2895
2894
|
var t, n, r, i, a, o, s = e.defaultVisibleArea || ot;
|
|
2896
|
-
e.visibleArea =
|
|
2895
|
+
e.visibleArea = L(s) ? s({
|
|
2897
2896
|
imageSize: e.imageSize,
|
|
2898
2897
|
boundaries: e.boundaries,
|
|
2899
2898
|
coordinates: e.priority === "visible-area" ? null : e.coordinates,
|
|
@@ -2903,7 +2902,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2903
2902
|
visibleArea: e.visibleArea,
|
|
2904
2903
|
boundaries: e.boundaries,
|
|
2905
2904
|
getAreaRestrictions: e.getAreaRestrictions
|
|
2906
|
-
}, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a =
|
|
2905
|
+
}, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = N({}, n), o = J(r), a.width / a.height !== o && (a.height = a.width / o), Z(a, i({
|
|
2907
2906
|
visibleArea: a,
|
|
2908
2907
|
type: "move"
|
|
2909
2908
|
}))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({
|
|
@@ -2944,7 +2943,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2944
2943
|
var e, t = this;
|
|
2945
2944
|
if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
|
|
2946
2945
|
if (function(e) {
|
|
2947
|
-
if (
|
|
2946
|
+
if (I(e)) return !1;
|
|
2948
2947
|
var t = window.location, n = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e) || [], r = {
|
|
2949
2948
|
protocol: n[1] || "",
|
|
2950
2949
|
host: n[2] || "",
|
|
@@ -2954,7 +2953,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2954
2953
|
};
|
|
2955
2954
|
return !(!r.protocol && !r.host && !r.port || r.protocol && r.protocol == t.protocol && r.host && r.host == t.host && r.host && i(r) == i(t));
|
|
2956
2955
|
}(this.src)) {
|
|
2957
|
-
var n =
|
|
2956
|
+
var n = R(this.crossOrigin) ? this.canvas : this.crossOrigin;
|
|
2958
2957
|
!0 === n && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
|
|
2959
2958
|
}
|
|
2960
2959
|
if (this.checkOrientation) {
|
|
@@ -2997,13 +2996,13 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
2997
2996
|
},
|
|
2998
2997
|
onParseImage: function(e) {
|
|
2999
2998
|
var t = this, n = e.source, r = e.arrayBuffer, i = e.orientation;
|
|
3000
|
-
this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ?
|
|
2999
|
+
this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? F(n) || !I(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
|
|
3001
3000
|
for (var t = [], n = new Uint8Array(e); n.length > 0;) {
|
|
3002
3001
|
var r = n.subarray(0, 8192);
|
|
3003
3002
|
t.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), n = n.subarray(8192);
|
|
3004
3003
|
}
|
|
3005
3004
|
return "data:image/jpeg;base64," + btoa(t.join(""));
|
|
3006
|
-
}(r) : this.imageAttributes.src = n, this.appliedImageTransforms =
|
|
3005
|
+
}(r) : this.imageAttributes.src = n, this.appliedImageTransforms = L(this.defaultTransforms) ? Tt(this.defaultTransforms()) : be(this.defaultTransforms) ? Tt(this.defaultTransforms) : function(e) {
|
|
3007
3006
|
var t = Tt({});
|
|
3008
3007
|
if (e) switch (e) {
|
|
3009
3008
|
case 2:
|
|
@@ -3027,7 +3026,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3027
3026
|
case 8: t.rotate = -90;
|
|
3028
3027
|
}
|
|
3029
3028
|
return t;
|
|
3030
|
-
}(i), this.defaultImageTransforms =
|
|
3029
|
+
}(i), this.defaultImageTransforms = C(C({}, this.appliedImageTransforms), {}, { flip: C({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
|
|
3031
3030
|
var e = t.$refs.image;
|
|
3032
3031
|
e && e.complete && (function(e) {
|
|
3033
3032
|
return !!e.naturalWidth;
|
|
@@ -3043,7 +3042,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3043
3042
|
onMove: function(e) {
|
|
3044
3043
|
var t = this;
|
|
3045
3044
|
this.transitionsOptions.enabled || this.awaitRender((function() {
|
|
3046
|
-
t.coordinates = t.moveAlgorithm(
|
|
3045
|
+
t.coordinates = t.moveAlgorithm(C(C({}, t.getPublicProperties()), {}, {
|
|
3047
3046
|
positionRestrictions: st(t.positionRestrictions, t.visibleArea),
|
|
3048
3047
|
coordinates: t.coordinates,
|
|
3049
3048
|
event: t.normalizeEvent(e)
|
|
@@ -3054,7 +3053,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3054
3053
|
var t = this;
|
|
3055
3054
|
this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender((function() {
|
|
3056
3055
|
var n = t.sizeRestrictions, r = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
|
|
3057
|
-
t.coordinates = t.resizeAlgorithm(
|
|
3056
|
+
t.coordinates = t.resizeAlgorithm(C(C({}, t.getPublicProperties()), {}, {
|
|
3058
3057
|
positionRestrictions: st(t.positionRestrictions, t.visibleArea),
|
|
3059
3058
|
sizeRestrictions: {
|
|
3060
3059
|
maxWidth: Math.min(n.maxWidth, t.visibleArea.width),
|
|
@@ -3071,7 +3070,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3071
3070
|
if (!this.transitionsOptions.enabled) {
|
|
3072
3071
|
var n = t.transitions, r = n !== void 0 && n, i = t.normalize, a = i === void 0 || i;
|
|
3073
3072
|
r && this.enableTransitions();
|
|
3074
|
-
var o = ct(
|
|
3073
|
+
var o = ct(C(C({}, this.getPublicProperties()), {}, {
|
|
3075
3074
|
event: a ? this.normalizeEvent(e) : e,
|
|
3076
3075
|
getAreaRestrictions: this.getAreaRestrictions,
|
|
3077
3076
|
imageRestriction: this.imageRestriction,
|
|
@@ -3099,9 +3098,9 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3099
3098
|
var s = this.$refs.stencil.aspectRatios();
|
|
3100
3099
|
t = s.minimum, n = s.maximum;
|
|
3101
3100
|
}
|
|
3102
|
-
if (
|
|
3103
|
-
var c = this.getStencilSize(), l = c ?
|
|
3104
|
-
|
|
3101
|
+
if (R(t) && (t = R(i) ? a : i), R(n) && (n = R(i) ? o : i), !e && (R(t) || R(n))) {
|
|
3102
|
+
var c = this.getStencilSize(), l = c ? J(c) : null;
|
|
3103
|
+
R(t) && (t = Se(l) ? l : void 0), R(n) && (n = Se(l) ? l : void 0);
|
|
3105
3104
|
}
|
|
3106
3105
|
return {
|
|
3107
3106
|
minimum: t,
|
|
@@ -3119,7 +3118,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3119
3118
|
coefficient: this.coefficient,
|
|
3120
3119
|
coordinates: this.coordinates,
|
|
3121
3120
|
aspectRatio: this.getAspectRatio(!0)
|
|
3122
|
-
}, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(
|
|
3121
|
+
}, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, He(J(i = L(n) ? n({
|
|
3123
3122
|
boundaries: t,
|
|
3124
3123
|
aspectRatio: r
|
|
3125
3124
|
}) : n), r) && (i = Q({
|
|
@@ -3145,8 +3144,8 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3145
3144
|
width: i.width,
|
|
3146
3145
|
height: i.height,
|
|
3147
3146
|
aspectRatio: {
|
|
3148
|
-
minimum:
|
|
3149
|
-
maximum:
|
|
3147
|
+
minimum: J(i),
|
|
3148
|
+
maximum: J(i)
|
|
3150
3149
|
}
|
|
3151
3150
|
})), i;
|
|
3152
3151
|
var e, t, n, r, i;
|
|
@@ -3164,13 +3163,13 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3164
3163
|
};
|
|
3165
3164
|
},
|
|
3166
3165
|
defaultCoordinates: function() {
|
|
3167
|
-
return
|
|
3166
|
+
return C({}, Le);
|
|
3168
3167
|
},
|
|
3169
3168
|
flip: function(e, t) {
|
|
3170
3169
|
var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
|
|
3171
3170
|
if (!this.transitionsActive) {
|
|
3172
3171
|
r && this.enableTransitions();
|
|
3173
|
-
var i =
|
|
3172
|
+
var i = C({}, this.imageTransforms.flip), a = ut({
|
|
3174
3173
|
flip: {
|
|
3175
3174
|
horizontal: e ? !i.horizontal : i.horizontal,
|
|
3176
3175
|
vertical: t ? !i.vertical : i.vertical
|
|
@@ -3192,7 +3191,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3192
3191
|
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).transitions, n = t === void 0 || t;
|
|
3193
3192
|
if (!this.transitionsActive) {
|
|
3194
3193
|
n && this.enableTransitions();
|
|
3195
|
-
var r =
|
|
3194
|
+
var r = C({}, this.imageSize);
|
|
3196
3195
|
this.appliedImageTransforms.rotate += e;
|
|
3197
3196
|
var i = lt({
|
|
3198
3197
|
visibleArea: this.visibleArea,
|
|
@@ -3224,7 +3223,7 @@ var Lt = ["transitions"], $ = A("vue-advanced-cropper"), Rt = {
|
|
|
3224
3223
|
style: { display: "none" }
|
|
3225
3224
|
};
|
|
3226
3225
|
Rt.render = function(e, t, r, o, s, c) {
|
|
3227
|
-
return _(),
|
|
3226
|
+
return _(), x("div", {
|
|
3228
3227
|
ref: "cropper",
|
|
3229
3228
|
class: c.classes.cropper
|
|
3230
3229
|
}, [d("div", {
|
|
@@ -3233,7 +3232,7 @@ Rt.render = function(e, t, r, o, s, c) {
|
|
|
3233
3232
|
}, null, 2), d("div", {
|
|
3234
3233
|
class: c.classes.boundaries,
|
|
3235
3234
|
style: c.boundariesStyle
|
|
3236
|
-
}, [(_(),
|
|
3235
|
+
}, [(_(), x(a(r.backgroundWrapperComponent), {
|
|
3237
3236
|
class: c.classes.cropperWrapper,
|
|
3238
3237
|
"wheel-resize": c.settings.resizeImage.wheel,
|
|
3239
3238
|
"touch-resize": c.settings.resizeImage.touch,
|
|
@@ -3242,7 +3241,7 @@ Rt.render = function(e, t, r, o, s, c) {
|
|
|
3242
3241
|
onMove: c.onManipulateImage,
|
|
3243
3242
|
onResize: c.onManipulateImage
|
|
3244
3243
|
}, {
|
|
3245
|
-
default:
|
|
3244
|
+
default: i((function() {
|
|
3246
3245
|
return [
|
|
3247
3246
|
d("div", {
|
|
3248
3247
|
class: c.classes.background,
|
|
@@ -3254,13 +3253,13 @@ Rt.render = function(e, t, r, o, s, c) {
|
|
|
3254
3253
|
src: s.imageAttributes.src,
|
|
3255
3254
|
class: c.classes.image,
|
|
3256
3255
|
style: c.imageStyle,
|
|
3257
|
-
onMousedown: t[1] ||=
|
|
3256
|
+
onMousedown: t[1] ||= re((function() {}), ["prevent"])
|
|
3258
3257
|
}, null, 46, ["crossorigin", "src"])], 2),
|
|
3259
3258
|
d("div", {
|
|
3260
3259
|
class: c.classes.foreground,
|
|
3261
3260
|
style: c.boundariesStyle
|
|
3262
3261
|
}, null, 6),
|
|
3263
|
-
|
|
3262
|
+
u((_(), x(a(r.stencilComponent), n({
|
|
3264
3263
|
ref: "stencil",
|
|
3265
3264
|
image: c.image,
|
|
3266
3265
|
coordinates: s.coordinates,
|
|
@@ -3280,9 +3279,9 @@ Rt.render = function(e, t, r, o, s, c) {
|
|
|
3280
3279
|
"onResizeEnd",
|
|
3281
3280
|
"onMove",
|
|
3282
3281
|
"onMoveEnd"
|
|
3283
|
-
])), [[
|
|
3284
|
-
r.canvas ? (_(),
|
|
3285
|
-
r.canvas ? (_(),
|
|
3282
|
+
])), [[ie, s.imageLoaded]]),
|
|
3283
|
+
r.canvas ? (_(), x("canvas", zt, null, 512)) : m("", !0),
|
|
3284
|
+
r.canvas ? (_(), x("canvas", Bt, null, 512)) : m("", !0)
|
|
3286
3285
|
];
|
|
3287
3286
|
})),
|
|
3288
3287
|
_: 1
|
|
@@ -3296,8 +3295,7 @@ Rt.render = function(e, t, r, o, s, c) {
|
|
|
3296
3295
|
"onResize"
|
|
3297
3296
|
]))], 6)], 2);
|
|
3298
3297
|
};
|
|
3299
|
-
|
|
3300
|
-
//#region ../media-library/src/components/media/MediaEditModal.vue?vue&type=script&setup=true&lang.ts
|
|
3298
|
+
// ../media-library/src/components/media/MediaEditModal.vue?vue&type=script&setup=true&lang.ts
|
|
3301
3299
|
var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut = {
|
|
3302
3300
|
id: "tpl-media-edit-title",
|
|
3303
3301
|
class: "tpl:text-sm tpl:font-semibold",
|
|
@@ -3357,7 +3355,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3357
3355
|
role: "alert",
|
|
3358
3356
|
class: "tpl:shrink-0 tpl:px-5 tpl:pt-3 tpl:text-xs",
|
|
3359
3357
|
style: { color: "var(--tpl-danger)" }
|
|
3360
|
-
}, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/
|
|
3358
|
+
}, bn = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, xn = ["disabled"], Sn = ["disabled"], Cn = /*#__PURE__*/ oe(/* @__PURE__ */ S({
|
|
3361
3359
|
__name: "MediaEditModal",
|
|
3362
3360
|
props: {
|
|
3363
3361
|
visible: { type: Boolean },
|
|
@@ -3367,15 +3365,15 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3367
3365
|
},
|
|
3368
3366
|
emits: ["close"],
|
|
3369
3367
|
setup(n, { emit: r }) {
|
|
3370
|
-
let a = n,
|
|
3368
|
+
let a = n, l = r, { t: S } = ue(), ie = t(le, null), oe = t(se, e(null)), _e = S.mediaLibrary, { isImageMimeType: C } = ce(), w = e(""), ve = e(""), T = e(null), E = e("free"), D = e(void 0), O = e(void 0), k = e(""), A = e(""), j = e(void 0), M = e(null), ye = e(!1), N = e(!1), P = e(!1), F = e(null), I = null, L = [
|
|
3371
3369
|
"image/jpeg",
|
|
3372
3370
|
"image/png",
|
|
3373
3371
|
"image/webp"
|
|
3374
|
-
],
|
|
3375
|
-
|
|
3376
|
-
e && a.item && (
|
|
3372
|
+
], R = p(() => !a.item || !a.canCrop ? !1 : L.includes(a.item.mimeType ?? "")), be = p(() => D.value !== void 0 || O.value !== void 0), xe = p(() => E.value === "original" ? j.value : fe[E.value]), z = p(() => M.value ? ge(M.value.width, M.value.height, D.value, O.value) : null);
|
|
3373
|
+
te(() => a.visible, (e) => {
|
|
3374
|
+
e && a.item && (w.value = a.item.filename ?? "", ve.value = a.item.alt ?? "", E.value = "free", D.value = void 0, O.value = void 0, k.value = "", A.value = "", j.value = void 0, M.value = null, ye.value = !1, P.value = !1, F.value = null, I = null, a.item.width && a.item.height && (j.value = a.item.width / a.item.height));
|
|
3377
3375
|
}, { immediate: !0 });
|
|
3378
|
-
function
|
|
3376
|
+
function Se(e) {
|
|
3379
3377
|
return {
|
|
3380
3378
|
left: Math.round(e.left),
|
|
3381
3379
|
top: Math.round(e.top),
|
|
@@ -3383,67 +3381,67 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3383
3381
|
height: Math.round(e.height)
|
|
3384
3382
|
};
|
|
3385
3383
|
}
|
|
3386
|
-
function
|
|
3384
|
+
function Ce(e, t) {
|
|
3387
3385
|
return e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height;
|
|
3388
3386
|
}
|
|
3389
|
-
function
|
|
3387
|
+
function we(e) {
|
|
3390
3388
|
if (!e.coordinates) return;
|
|
3391
|
-
let t =
|
|
3392
|
-
|
|
3389
|
+
let t = Se(e.coordinates);
|
|
3390
|
+
M.value = {
|
|
3393
3391
|
width: t.width,
|
|
3394
3392
|
height: t.height
|
|
3395
|
-
},
|
|
3393
|
+
}, I ? P.value = !Ce(t, I) : I = t;
|
|
3396
3394
|
}
|
|
3397
|
-
function
|
|
3395
|
+
function B({ imageSize: e }) {
|
|
3398
3396
|
return {
|
|
3399
3397
|
width: e.width,
|
|
3400
3398
|
height: e.height
|
|
3401
3399
|
};
|
|
3402
3400
|
}
|
|
3403
|
-
function
|
|
3404
|
-
|
|
3401
|
+
function Te() {
|
|
3402
|
+
ye.value = !0, !j.value && a.item?.width && a.item?.height && (j.value = a.item.width / a.item.height);
|
|
3405
3403
|
}
|
|
3406
|
-
function
|
|
3404
|
+
function Ee(e) {
|
|
3407
3405
|
let t = e.target.value;
|
|
3408
|
-
|
|
3406
|
+
k.value = t, D.value = t && parseInt(t, 10) || void 0;
|
|
3409
3407
|
}
|
|
3410
|
-
function
|
|
3408
|
+
function De(e) {
|
|
3411
3409
|
let t = e.target.value;
|
|
3412
|
-
|
|
3410
|
+
A.value = t, O.value = t && parseInt(t, 10) || void 0;
|
|
3413
3411
|
}
|
|
3414
|
-
async function
|
|
3415
|
-
let e =
|
|
3416
|
-
if (!e || !a.item ||
|
|
3417
|
-
let t = a.item, n =
|
|
3418
|
-
if (
|
|
3419
|
-
let { canvas: e } =
|
|
3412
|
+
async function Oe() {
|
|
3413
|
+
let e = w.value.trim();
|
|
3414
|
+
if (!e || !a.item || N.value) return;
|
|
3415
|
+
let t = a.item, n = C(t.mimeType ?? ""), r;
|
|
3416
|
+
if (N.value = !0, F.value = null, R.value && T.value && (P.value || be.value)) try {
|
|
3417
|
+
let { canvas: e } = T.value.getResult();
|
|
3420
3418
|
if (!e) throw Error("The cropper returned no canvas");
|
|
3421
|
-
let n =
|
|
3422
|
-
(
|
|
3419
|
+
let n = me(e, D.value, O.value);
|
|
3420
|
+
(P.value || n !== e) && (r = { file: await he(n, t.filename ?? "image", pe(t.mimeType ?? "")) });
|
|
3423
3421
|
} catch {
|
|
3424
|
-
|
|
3422
|
+
F.value = "crop", N.value = !1;
|
|
3425
3423
|
return;
|
|
3426
3424
|
}
|
|
3427
|
-
let i = await a.save(t.id, e, n ?
|
|
3428
|
-
|
|
3425
|
+
let i = await a.save(t.id, e, n ? ve.value : void 0, r);
|
|
3426
|
+
N.value = !1, i === "saved" ? l("close") : (i === "replaced" && ke(), F.value = "save");
|
|
3429
3427
|
}
|
|
3430
|
-
function
|
|
3431
|
-
let e =
|
|
3432
|
-
e && (
|
|
3428
|
+
function ke() {
|
|
3429
|
+
let e = T.value?.getResult().coordinates;
|
|
3430
|
+
e && (I = Se(e)), P.value = !1, D.value = void 0, O.value = void 0, k.value = "", A.value = "";
|
|
3433
3431
|
}
|
|
3434
|
-
function
|
|
3435
|
-
|
|
3432
|
+
function Ae() {
|
|
3433
|
+
N.value || l("close");
|
|
3436
3434
|
}
|
|
3437
|
-
let
|
|
3438
|
-
|
|
3439
|
-
function
|
|
3440
|
-
if (e.stopPropagation(), e.key === "Enter" && !
|
|
3435
|
+
let je = e(null), Me = p(() => a.visible && a.item !== null);
|
|
3436
|
+
de(je, Me);
|
|
3437
|
+
function V(e) {
|
|
3438
|
+
if (e.stopPropagation(), e.key === "Enter" && !N.value) {
|
|
3441
3439
|
if (e.target?.closest("textarea, [contenteditable]")) return;
|
|
3442
|
-
e.preventDefault(),
|
|
3440
|
+
e.preventDefault(), Oe();
|
|
3443
3441
|
}
|
|
3444
|
-
e.key === "Escape" &&
|
|
3442
|
+
e.key === "Escape" && Ae();
|
|
3445
3443
|
}
|
|
3446
|
-
return (
|
|
3444
|
+
return (e, t) => (_(), x(f, { to: b(oe) || "body" }, [d(ae, {
|
|
3447
3445
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
3448
3446
|
"enter-from-class": "tpl:opacity-0",
|
|
3449
3447
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -3451,54 +3449,54 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3451
3449
|
"leave-from-class": "tpl:opacity-100",
|
|
3452
3450
|
"leave-to-class": "tpl:opacity-0"
|
|
3453
3451
|
}, {
|
|
3454
|
-
default:
|
|
3452
|
+
default: i(() => [n.visible && n.item ? (_(), h("div", {
|
|
3455
3453
|
key: 0,
|
|
3456
|
-
"data-tpl-theme":
|
|
3457
|
-
class:
|
|
3454
|
+
"data-tpl-theme": b(ie),
|
|
3455
|
+
class: v([b(oe) ? void 0 : "tpl", "tpl:fixed tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:p-4"]),
|
|
3458
3456
|
style: { "background-color": "var(--tpl-overlay)" },
|
|
3459
|
-
onClick:
|
|
3460
|
-
onKeydown:
|
|
3461
|
-
}, [
|
|
3457
|
+
onClick: re(Ae, ["self"]),
|
|
3458
|
+
onKeydown: V
|
|
3459
|
+
}, [y("div", {
|
|
3462
3460
|
ref_key: "dialogRef",
|
|
3463
|
-
ref:
|
|
3461
|
+
ref: je,
|
|
3464
3462
|
role: "dialog",
|
|
3465
3463
|
"aria-modal": "true",
|
|
3466
3464
|
"aria-labelledby": "tpl-media-edit-title",
|
|
3467
|
-
class:
|
|
3465
|
+
class: v(["tpl:flex tpl:max-h-[90%] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", R.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
|
|
3468
3466
|
style: { "background-color": "var(--tpl-bg-elevated)" }
|
|
3469
3467
|
}, [
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3468
|
+
y("div", Ht, [y("h3", Ut, c(b(S).mediaLibrary.editFile), 1)]),
|
|
3469
|
+
y("div", Wt, [
|
|
3470
|
+
R.value ? (_(), h("div", Gt, [y("div", Kt, [d(b(Rt), {
|
|
3473
3471
|
ref_key: "cropperRef",
|
|
3474
|
-
ref:
|
|
3472
|
+
ref: T,
|
|
3475
3473
|
src: n.item.url,
|
|
3476
|
-
"stencil-props": { aspectRatio:
|
|
3474
|
+
"stencil-props": { aspectRatio: xe.value },
|
|
3477
3475
|
class: "tpl:h-full tpl:w-full",
|
|
3478
3476
|
"background-class": "tpl-cropper-background",
|
|
3479
|
-
"default-size":
|
|
3480
|
-
onChange:
|
|
3481
|
-
onReady:
|
|
3482
|
-
}, null, 8, ["src", "stencil-props"])]),
|
|
3483
|
-
|
|
3477
|
+
"default-size": B,
|
|
3478
|
+
onChange: we,
|
|
3479
|
+
onReady: Te
|
|
3480
|
+
}, null, 8, ["src", "stencil-props"])]), y("div", qt, [
|
|
3481
|
+
y("div", null, [y("label", Jt, c(b(S).mediaLibrary.cropAspectRatio), 1), y("div", Yt, [(_(), h(ee, null, s([
|
|
3484
3482
|
"free",
|
|
3485
3483
|
"square",
|
|
3486
3484
|
"landscape43",
|
|
3487
3485
|
"landscape169",
|
|
3488
3486
|
"original"
|
|
3489
|
-
], (e) =>
|
|
3487
|
+
], (e) => y("button", {
|
|
3490
3488
|
key: e,
|
|
3491
3489
|
type: "button",
|
|
3492
3490
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
3493
|
-
style:
|
|
3494
|
-
borderColor:
|
|
3495
|
-
backgroundColor:
|
|
3496
|
-
color:
|
|
3491
|
+
style: o({
|
|
3492
|
+
borderColor: E.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
3493
|
+
backgroundColor: E.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
|
|
3494
|
+
color: E.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
3497
3495
|
}),
|
|
3498
|
-
onClick: (t) =>
|
|
3499
|
-
},
|
|
3500
|
-
|
|
3501
|
-
value:
|
|
3496
|
+
onClick: (t) => E.value = e
|
|
3497
|
+
}, c(b(_e)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Xt)), 64))])]),
|
|
3498
|
+
y("div", Zt, [y("div", Qt, [y("label", $t, [g(c(b(S).mediaLibrary.cropMaxWidth) + " ", 1), y("span", en, c(b(S).mediaLibrary.cropOptional), 1)]), y("div", tn, [y("input", {
|
|
3499
|
+
value: k.value,
|
|
3502
3500
|
type: "number",
|
|
3503
3501
|
min: "1",
|
|
3504
3502
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-8 tpl:pl-3 tpl:text-xs tpl:outline-none",
|
|
@@ -3507,10 +3505,10 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3507
3505
|
"background-color": "var(--tpl-bg)",
|
|
3508
3506
|
color: "var(--tpl-text)"
|
|
3509
3507
|
},
|
|
3510
|
-
placeholder:
|
|
3511
|
-
onInput:
|
|
3512
|
-
}, null, 40, nn),
|
|
3513
|
-
value:
|
|
3508
|
+
placeholder: M.value?.width?.toString() || "",
|
|
3509
|
+
onInput: Ee
|
|
3510
|
+
}, null, 40, nn), y("span", rn, c(b(S).mediaLibrary.cropPixels), 1)])]), y("div", an, [y("label", on, [g(c(b(S).mediaLibrary.cropMaxHeight) + " ", 1), y("span", sn, c(b(S).mediaLibrary.cropOptional), 1)]), y("div", cn, [y("input", {
|
|
3511
|
+
value: A.value,
|
|
3514
3512
|
type: "number",
|
|
3515
3513
|
min: "1",
|
|
3516
3514
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-8 tpl:pl-3 tpl:text-xs tpl:outline-none",
|
|
@@ -3519,14 +3517,14 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3519
3517
|
"background-color": "var(--tpl-bg)",
|
|
3520
3518
|
color: "var(--tpl-text)"
|
|
3521
3519
|
},
|
|
3522
|
-
placeholder:
|
|
3523
|
-
onInput:
|
|
3524
|
-
}, null, 40, ln),
|
|
3525
|
-
|
|
3520
|
+
placeholder: M.value?.height?.toString() || "",
|
|
3521
|
+
onInput: De
|
|
3522
|
+
}, null, 40, ln), y("span", un, c(b(S).mediaLibrary.cropPixels), 1)])])]),
|
|
3523
|
+
z.value ? (_(), h("div", dn, [y("span", null, c(b(S).mediaLibrary.cropOutputSize) + ": ", 1), y("span", fn, c(z.value.width) + " x " + c(z.value.height) + " " + c(b(S).mediaLibrary.cropPixels), 1)])) : m("", !0)
|
|
3526
3524
|
])])) : m("", !0),
|
|
3527
|
-
|
|
3525
|
+
y("div", pn, [y("label", mn, c(b(S).mediaLibrary.fileName), 1), u(y("input", {
|
|
3528
3526
|
id: "tpl-media-filename",
|
|
3529
|
-
"onUpdate:modelValue":
|
|
3527
|
+
"onUpdate:modelValue": t[0] ||= (e) => w.value = e,
|
|
3530
3528
|
type: "text",
|
|
3531
3529
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
|
|
3532
3530
|
style: {
|
|
@@ -3534,11 +3532,11 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3534
3532
|
"background-color": "var(--tpl-bg)",
|
|
3535
3533
|
color: "var(--tpl-text)"
|
|
3536
3534
|
},
|
|
3537
|
-
autofocus: !
|
|
3538
|
-
}, null, 8, hn), [[
|
|
3539
|
-
|
|
3535
|
+
autofocus: !R.value
|
|
3536
|
+
}, null, 8, hn), [[ne, w.value]])]),
|
|
3537
|
+
b(C)(n.item.mimeType ?? "") ? (_(), h("div", gn, [y("label", _n, c(b(S).mediaLibrary.altText), 1), u(y("input", {
|
|
3540
3538
|
id: "tpl-media-alt",
|
|
3541
|
-
"onUpdate:modelValue":
|
|
3539
|
+
"onUpdate:modelValue": t[1] ||= (e) => ve.value = e,
|
|
3542
3540
|
type: "text",
|
|
3543
3541
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
|
|
3544
3542
|
style: {
|
|
@@ -3546,32 +3544,31 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3546
3544
|
"background-color": "var(--tpl-bg)",
|
|
3547
3545
|
color: "var(--tpl-text)"
|
|
3548
3546
|
},
|
|
3549
|
-
placeholder:
|
|
3550
|
-
}, null, 8, vn), [[
|
|
3547
|
+
placeholder: b(S).mediaLibrary.altTextPlaceholder
|
|
3548
|
+
}, null, 8, vn), [[ne, ve.value]])])) : m("", !0)
|
|
3551
3549
|
]),
|
|
3552
|
-
|
|
3553
|
-
|
|
3550
|
+
F.value ? (_(), h("p", yn, c(F.value === "crop" ? b(S).mediaLibrary.editCropError : b(S).mediaLibrary.editSaveError), 1)) : m("", !0),
|
|
3551
|
+
y("div", bn, [y("button", {
|
|
3554
3552
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
3555
3553
|
style: {
|
|
3556
3554
|
"border-color": "var(--tpl-border)",
|
|
3557
3555
|
color: "var(--tpl-text)",
|
|
3558
3556
|
"background-color": "var(--tpl-bg)"
|
|
3559
3557
|
},
|
|
3560
|
-
disabled:
|
|
3561
|
-
onClick:
|
|
3562
|
-
},
|
|
3558
|
+
disabled: N.value,
|
|
3559
|
+
onClick: Ae
|
|
3560
|
+
}, c(b(S).mediaLibrary.cancel), 9, xn), y("button", {
|
|
3563
3561
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
3564
3562
|
style: {
|
|
3565
3563
|
"background-color": "var(--tpl-primary)",
|
|
3566
3564
|
color: "var(--tpl-on-primary)"
|
|
3567
3565
|
},
|
|
3568
|
-
disabled:
|
|
3569
|
-
onClick:
|
|
3570
|
-
},
|
|
3566
|
+
disabled: N.value,
|
|
3567
|
+
onClick: Oe
|
|
3568
|
+
}, c(N.value ? b(S).mediaLibrary.saving : b(S).mediaLibrary.saveChanges), 9, Sn)])
|
|
3571
3569
|
], 2)], 42, Vt)) : m("", !0)]),
|
|
3572
3570
|
_: 1
|
|
3573
3571
|
})], 8, ["to"]));
|
|
3574
3572
|
}
|
|
3575
3573
|
}), [["__scopeId", "data-v-7d9a1872"]]);
|
|
3576
|
-
//#endregion
|
|
3577
3574
|
export { Cn as default };
|