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