@templatical/editor 0.51.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-Cm11CsKH.js} +7 -8
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-DE8t8Rud.js} +8 -9
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-7ftS7d40.js} +18 -20
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-CxGp6klr.js} +5 -7
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-DNI-5CUj.js} +21 -22
- package/dist/{BlockIssueBadge-CKwZ1Vgn.js → BlockIssueBadge-6Ri2FfX-.js} +6 -7
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-Df9iz7sK.js} +10 -11
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-CsgyNNV1.js} +3 -4
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BDV4XQ_l.js} +8 -9
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-JQ3vQoqO.js} +4 -5
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-EeqqWcX6.js} +4 -5
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-BuftXc0U.js} +3 -5
- package/dist/{CommentsSidebar-Ca3DyFOX.js → CommentsSidebar-Co3x4uH0.js} +16 -17
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-BT3ZTH1F.js} +5 -6
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-CrL4WKy9.js} +8 -9
- package/dist/{IssuesPanel-C8nMUccy.js → IssuesPanel-BHFQ3wrP.js} +12 -13
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DZA5AoP9.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CSD9cfJB.js} +23 -30
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-DQl5w44r.js} +7 -10
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BFWYuJot.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-DE7kWwXx.js} +5 -6
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DvD0ne7N.js} +7 -8
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-DVPQkiYY.js} +3 -4
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-D-nqs82g.js} +55 -58
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-DqUPsLB9.js} +7 -8
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-Xq9D0Zs3.js} +9 -10
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-DAPv70p4.js} +13 -14
- package/dist/{SavedBlocksBrowserModal-wnkvxpm_.js → SavedBlocksBrowserModal-SRtN5h9q.js} +17 -18
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-ChbL9v9x.js} +3 -5
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-hRaiLNdu.js} +6 -7
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-D0XcH32O.js} +14 -15
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-Cb5t0yB2.js} +16 -18
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-COJQa2A9.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-BYk_9SpQ.js} +14 -15
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-poGWbduy.js} +2 -3
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-Dku_pZni.js} +134 -142
- package/dist/{TplModal-DCzBzicE.js → TplModal-9IndEYk5.js} +6 -7
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BG5qayvg.js} +12 -13
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-hPg7Q5-f.js} +3 -5
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-CSs7zum_.js} +5 -6
- package/dist/{WrapperBlock-BO619LAb.js → WrapperBlock-DwjK_IdJ.js} +6 -7
- 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-yt7SLzub.js} +3 -4
- package/dist/bundle-stats.json +7 -7
- 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-DjMoJCgU.js} +7 -8
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-DjMoJCgU.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BafAtBoA.js} +8 -9
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BafAtBoA.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DXeZgc7D.js} +15 -17
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DXeZgc7D.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-B4uAVRoO.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-B4uAVRoO.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-4F6vwhJ5.js} +21 -22
- package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js → BlockIssueBadge-DIJDqqcY.js} +6 -7
- package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js.map → BlockIssueBadge-DIJDqqcY.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-Ny1X_mee.js} +9 -10
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-Ny1X_mee.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-DtMORiLS.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-DtMORiLS.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-BkmLc2Fl.js} +7 -8
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-BkmLc2Fl.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Hf8r08Sw.js} +5 -6
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Hf8r08Sw.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-II8eYtKu.js} +6 -7
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-II8eYtKu.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-CAiwilM2.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-CAiwilM2.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-Dj8sDiLN.js} +18 -19
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js.map → CommentsSidebar-Dj8sDiLN.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-Dyr5P0IP.js} +6 -7
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-Dyr5P0IP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-CguFJdqn.js} +9 -10
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-CguFJdqn.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-pr7_nuLI.js} +9 -10
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-pr7_nuLI.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-DfJ_C33G.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-DfJ_C33G.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-B_ldj3TO.js} +18 -25
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-B_ldj3TO.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-CGfzcHwP.js} +7 -10
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-CGfzcHwP.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-D0BdxdqP.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-D0BdxdqP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-CFu9VXPS.js} +6 -7
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-CFu9VXPS.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BFpK5dxg.js} +7 -8
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BFpK5dxg.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-Zo0mYWbf.js} +4 -5
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-Zo0mYWbf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-DsPLVAgm.js} +35 -38
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js.map → ParagraphEditor-DsPLVAgm.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-B866zFP0.js} +9 -10
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-B866zFP0.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DaY63kye.js} +9 -10
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DaY63kye.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-B7nftAAS.js} +11 -12
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-B7nftAAS.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js → SavedBlocksBrowserModal-B9XCjDfm.js} +13 -14
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-B9XCjDfm.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C3nK90pz.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C3nK90pz.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-B166Mek9.js} +7 -8
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-B166Mek9.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-jWpmuWDR.js} +13 -14
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-jWpmuWDR.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-DcwKhFnI.js} +15 -17
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-DcwKhFnI.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-BDBAvAfI.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-BDBAvAfI.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-R2lQw6WA.js} +15 -16
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js.map → TitleEditor-R2lQw6WA.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-BDMugNES.js} +3 -4
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-BDMugNES.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CnvfW72e.js} +156 -164
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CnvfW72e.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js → TplModal-BDyeS69p.js} +6 -7
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-BDyeS69p.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-CmpgUI4Q.js} +13 -14
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-CmpgUI4Q.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-DB_FZyyg.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-DB_FZyyg.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-CZ--HOoa.js} +6 -7
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-CZ--HOoa.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-D3obNGab.js} +7 -8
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-D3obNGab.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-ikZAmd6U.js → blockTypeIcons-DFf7AyqI.js} +3 -4
- package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js.map → blockTypeIcons-DFf7AyqI.js.map} +1 -1
- 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-D6niZ2Rc.js} +27 -46
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-D6niZ2Rc.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-C2epoAwW.js} +3 -4
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-C2epoAwW.js.map} +1 -1
- package/dist/cdn/chunks/{dist-S-rLGqax.js → dist-CONcGNwy.js} +4 -5
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-CONcGNwy.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-B8hTTYFO.js} +19 -22
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js.map → draggable-B8hTTYFO.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js → editor-modal-cvYkpbHD.js} +66 -81
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-cvYkpbHD.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-CKAXAo3Z.js +1 -0
- 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/{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-ClDhn88e.js} +12 -17
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-ClDhn88e.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-HCBP93Ch.js} +50 -55
- package/dist/cdn/chunks/{icons-DNX6StSs.js.map → icons-HCBP93Ch.js.map} +1 -1
- 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-BF9gazbd.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-BF9gazbd.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-Bbt17cVz.js → liquid.browser-DkLBNrft.js} +705 -687
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.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-DpHCSESZ.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-DpHCSESZ.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-D-dsBq5t.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-D-dsBq5t.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-B2h15u0_.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-rJoqO1TJ.js} +167 -191
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-rJoqO1TJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-BKpAis_q.js} +502 -537
- package/dist/cdn/chunks/src-BKpAis_q.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-C9DTvn1H.js} +207 -171
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +1 -0
- package/dist/cdn/chunks/src-CUH_EI7k.js +647 -0
- package/dist/cdn/chunks/src-CUH_EI7k.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-ChSZybTi.js} +3364 -3240
- package/dist/cdn/chunks/tiptap-ChSZybTi.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-RJXyVnIf.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-RJXyVnIf.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CCVFi1YZ.js → useEditorCore-CjaEV_01.js} +534 -586
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-BT3c9CXj.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-11iqzC6m.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-11iqzC6m.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js → useLogicTag-vy5KGg5D.js} +5 -6
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-vy5KGg5D.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js → useMergeTag-BFBBjnwh.js} +5 -6
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-BFBBjnwh.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js → usePopoverPosition-AnVIwiVv.js} +7 -11
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-AnVIwiVv.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-C0dawxGr.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-C0dawxGr.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-C3CquBQN.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-C3CquBQN.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +389 -378
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-N3x4z_rH.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-gXu9qNwO.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-rL0ayGk5.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-0ugh8HnW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-B9Ls75B5.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-BqHBaCLm.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-B5VIdnwz.js} +11 -17
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-BV7Gwz_Z.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-DI4_YSnG.js → dist-BA-jTQgw.js} +3 -4
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{dist-C7EtxNCb.js → dist-CEdyyDn7.js} +2 -3
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-DtOF3bDW.js → dist-CzrLYq2s.js} +398 -344
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-C_dV9QAx.js → dist-DDN7yR-w.js} +7 -7
- 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/{editor-modal-Bzhl-PgI.js → editor-modal-Du9VI9q4.js} +203 -218
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/en-CyEE7FPY.js +1 -0
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- 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-FRYhx7qa.js} +59 -68
- package/dist/{eye-DWkSvYpj.js → eye-BKj9Tfnc.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-DNdvdTla.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Bx-kBkbH.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-DBjrQkYH.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-D8-rYdIQ.js} +1 -2
- package/dist/{liquid.browser-Ct2-EezB.js → liquid.browser-D1RxawkY.js} +704 -686
- package/dist/{list-bojQr9bn.js → list-BneisA27.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-DBEXphyx.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-Bg4xInCM.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-IH8COHzd.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-B40Vkfsp.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-CYdAHTds.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks-AbZArwkR.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-Bb1FWrU0.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-CLGymEyk.js} +7 -8
- package/dist/sanitizeHtml-CnOA1efV.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-BZEo08gi.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DHtrnXQs.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-dlN3vpA3.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-B_d52_eS.js} +256 -267
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-NOttoDnJ.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-B1CJgdt2.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 +413 -401
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-zpoXmb-Z.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-CGbk4Sgt.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-CKLMyGVp.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DQoackAn.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DcLtxOQZ.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-DG9UvWUm.js} +931 -984
- package/dist/useEditorRoot-BKr6nNkC.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-CeTm777E.js} +3 -4
- package/dist/{useLogicTag-DKLZ1T9H.js → useLogicTag-DFDYJeMN.js} +4 -5
- package/dist/{useMergeTag-Bhdx7AKk.js → useMergeTag-B46vACAG.js} +4 -5
- package/dist/{usePopoverPosition-BZea45XK.js → usePopoverPosition-C42kD7zt.js} +6 -10
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-C-NzvjeO.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CrlI8j5R.js} +14 -18
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-v_a4Oso8.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-zcrnmcmU.js} +1 -2
- package/package.json +24 -22
- package/dist/AiHeaderMenu-BEaTazx4.js +0 -36
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +0 -37
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/en-ifvu6oPv.js +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-K6fw_35b.js +0 -649
- package/dist/cdn/chunks/src-K6fw_35b.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- 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,50 +1,49 @@
|
|
|
1
|
-
import { A as e, At as t, C as n, D as r, G as i, H as a, I as o, M as s, Mt as c, N as l, O as u, P as d, Q as f, V as p, X as m, Y as h, _ as g, at as _, b as v, c as y, d as b, et as x, f as S, g as C, it as w, j as T, jt as E, k as D, l as O, ot as k, q as A, r as j, rt as
|
|
2
|
-
import { c as L, o as te, s as ne } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { $ as re, A as ie,
|
|
4
|
-
import { B as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as R } from "./logger-
|
|
9
|
-
import { t as
|
|
10
|
-
import { i as
|
|
11
|
-
import { r as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import "./
|
|
22
|
-
import
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
let e = ++
|
|
30
|
-
return
|
|
1
|
+
import { A as e, At as t, C as n, D as r, G as i, H as a, I as o, M as s, Mt as c, N as l, O as u, P as d, Q as f, V as p, X as m, Y as h, _ as g, at as _, b as v, c as y, d as b, et as x, f as S, g as C, it as w, j as T, jt as E, k as D, l as O, ot as k, q as A, r as j, rt as M, u as N, v as ee, x as P, y as F, z as I } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
|
|
2
|
+
import { c as L, o as te, s as ne } from "./runtime-dom.esm-bundler-CLGymEyk.js";
|
|
3
|
+
import { $ as re, A as ie, At as ae, B as oe, Ct as se, D as ce, Dt as le, E as ue, Et as de, F as fe, G as pe, K as me, L as he, M as ge, N as _e, O as ve, Ot as ye, P as be, Q as xe, R as Se, S as Ce, St as we, T as Te, Tt as Ee, V as De, W as Oe, Z as ke, _t as Ae, at as je, bt as Me, c as Ne, ct as Pe, d as Fe, ft as Ie, g as Le, gt as Re, h as ze, ht as Be, j as Ve, kt as He, nt as Ue, o as We, ot as Ge, p as Ke, q as qe, s as Je, st as Ye, tt as Xe, u as Ze, vt as Qe, w as $e, wt as et, xt as tt, yt as nt, z as rt } from "./dist-CzrLYq2s.js";
|
|
4
|
+
import { B as it, D as at, E as ot, L as st, M as ct, N as lt, O as ut, R as dt, S as ft, V as pt, _ as mt, a as ht, b as gt, d as _t, g as vt, l as yt, m as bt, n as xt, t as St, v as Ct, w as wt, x as Tt, y as Et } from "./socialIcons-B_d52_eS.js";
|
|
5
|
+
import { _ as Dt, h as Ot, v as kt, y as At } from "./dist-CEdyyDn7.js";
|
|
6
|
+
import { a as jt, c as Mt, i as Nt } from "./dist-BA-jTQgw.js";
|
|
7
|
+
import { $ as Pt, A as Ft, B as It, C as Lt, D as Rt, E as zt, F as Bt, H as Vt, I as Ht, J as Ut, K as Wt, L as Gt, M as Kt, N as qt, O as Jt, P as Yt, Q as Xt, R as Zt, S as Qt, T as $t, V as en, W as tn, X as nn, Y as rn, Z as an, _ as on, a as sn, b as cn, c as ln, d as un, f as dn, g as fn, h as pn, j as mn, k as hn, l as gn, m as _n, n as vn, o as yn, p as bn, q as xn, r as Sn, s as Cn, v as wn, w as Tn, x as En, y as Dn, z as On } from "./keys-DBjrQkYH.js";
|
|
8
|
+
import { t as R } from "./logger-BOu7oEtk.js";
|
|
9
|
+
import { t as kn } from "./useI18n-CeTm777E.js";
|
|
10
|
+
import { i as An, r as jn, s as Mn, t as Nn } from "./usePopoverPosition-C42kD7zt.js";
|
|
11
|
+
import { r as Pn, t as Fn } from "./templateSettingsFields-cjlP-jdw.js";
|
|
12
|
+
import { n as In, t as Ln } from "./sanitizeHtml-CnOA1efV.js";
|
|
13
|
+
import { t as Rn } from "./createLucideIcon-BV7Gwz_Z.js";
|
|
14
|
+
import { n as zn } from "./upload-DQoackAn.js";
|
|
15
|
+
import { t as Bn } from "./image-DNdvdTla.js";
|
|
16
|
+
import { t as Vn } from "./message-circle-Bg4xInCM.js";
|
|
17
|
+
import { t as Hn } from "./trash-CGbk4Sgt.js";
|
|
18
|
+
import { t as Un } from "./triangle-alert-CKLMyGVp.js";
|
|
19
|
+
import { t as Wn } from "./LoadingTrack-DZA5AoP9.js";
|
|
20
|
+
import { t as Gn } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
21
|
+
import { t as Kn } from "./useEditorRoot-BKr6nNkC.js";
|
|
22
|
+
import "./useCloudI18n-DcLtxOQZ.js";
|
|
23
|
+
import { t as qn } from "./useMergeTag-B46vACAG.js";
|
|
24
|
+
import { t as Jn } from "./useLogicTag-DFDYJeMN.js";
|
|
25
|
+
import { t as Yn } from "./readableTextColor-BfZUGnVj.js";
|
|
26
|
+
// src/utils/activeEditorTracker.ts
|
|
27
|
+
var Xn = /* @__PURE__ */ new Set(), Zn = 0, Qn = 0;
|
|
28
|
+
function $n() {
|
|
29
|
+
let e = ++Qn;
|
|
30
|
+
return Xn.add(e), Zn === 0 && (Zn = e), {
|
|
31
31
|
id: e,
|
|
32
|
-
isActive: () =>
|
|
32
|
+
isActive: () => Xn.size <= 1 || Zn === e,
|
|
33
33
|
claim: () => {
|
|
34
|
-
|
|
34
|
+
Zn = e;
|
|
35
35
|
},
|
|
36
36
|
dispose: () => {
|
|
37
|
-
if (
|
|
38
|
-
let e = Array.from(
|
|
39
|
-
|
|
37
|
+
if (Xn.delete(e), Zn === e) {
|
|
38
|
+
let e = Array.from(Xn);
|
|
39
|
+
Zn = e[e.length - 1] ?? 0;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
function Zn(e) {
|
|
44
|
+
// src/composables/usePreviewResolution.ts
|
|
45
|
+
var er = 500;
|
|
46
|
+
function tr(e) {
|
|
48
47
|
let t = typeof e.resolvePreview == "function", n = f(null), r = f(!1), i = f(!1), a = 0, o = null;
|
|
49
48
|
function s() {
|
|
50
49
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -55,13 +54,13 @@ function Zn(e) {
|
|
|
55
54
|
let o = ++a;
|
|
56
55
|
r.value = !0;
|
|
57
56
|
let s = {
|
|
58
|
-
content:
|
|
57
|
+
content: we(e.getContent()),
|
|
59
58
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
60
59
|
};
|
|
61
60
|
try {
|
|
62
61
|
let e = await t(s);
|
|
63
62
|
if (o !== a) return;
|
|
64
|
-
if (!
|
|
63
|
+
if (!Pe(e)) {
|
|
65
64
|
i.value = !0;
|
|
66
65
|
return;
|
|
67
66
|
}
|
|
@@ -76,7 +75,7 @@ function Zn(e) {
|
|
|
76
75
|
function l() {
|
|
77
76
|
t && (s(), n.value === null ? c() : o = setTimeout(() => {
|
|
78
77
|
o = null, c();
|
|
79
|
-
},
|
|
78
|
+
}, er));
|
|
80
79
|
}
|
|
81
80
|
return I(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
|
|
82
81
|
e ? l() : (s(), a++, r.value = !1, n.value = null, i.value = !1);
|
|
@@ -91,9 +90,8 @@ function Zn(e) {
|
|
|
91
90
|
supersedesSamples: y(() => t)
|
|
92
91
|
};
|
|
93
92
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
function Qn() {
|
|
93
|
+
// src/composables/useMergeTagPicker.ts
|
|
94
|
+
function nr() {
|
|
97
95
|
let e = f(!1), t = f([]), n = f(null), r = null;
|
|
98
96
|
function a(i, a) {
|
|
99
97
|
if (r) {
|
|
@@ -122,9 +120,8 @@ function Qn() {
|
|
|
122
120
|
resolve: o
|
|
123
121
|
};
|
|
124
122
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
function $n() {
|
|
123
|
+
// src/composables/useLogicTagPicker.ts
|
|
124
|
+
function rr() {
|
|
128
125
|
let e = f(!1), t = f([]), n = f([]), r = null;
|
|
129
126
|
function a(i, a) {
|
|
130
127
|
if (r) {
|
|
@@ -153,31 +150,30 @@ function $n() {
|
|
|
153
150
|
resolve: o
|
|
154
151
|
};
|
|
155
152
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
function er(e) {
|
|
153
|
+
// src/composables/useTemplateLint.ts
|
|
154
|
+
function ir(e) {
|
|
159
155
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 : !1;
|
|
160
156
|
}
|
|
161
|
-
var
|
|
162
|
-
function
|
|
157
|
+
var ar = !1;
|
|
158
|
+
function or(e) {
|
|
163
159
|
let t = f([]), n = f(0), r = f(-1), i = I(e.content, () => {
|
|
164
160
|
n.value++;
|
|
165
161
|
}, {
|
|
166
162
|
deep: !0,
|
|
167
163
|
flush: "sync"
|
|
168
|
-
}), a = f(!1), o = f(!1), s = x(null), c =
|
|
164
|
+
}), a = f(!1), o = f(!1), s = x(null), c = ir(e.options), l = null, u = !1;
|
|
169
165
|
c || d();
|
|
170
166
|
async function d() {
|
|
171
167
|
try {
|
|
172
168
|
let t = await import("@templatical/quality");
|
|
173
169
|
if (u) return;
|
|
174
|
-
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l =
|
|
170
|
+
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = At(e.content, p, {
|
|
175
171
|
debounce: e.debounce ?? 500,
|
|
176
172
|
deep: !0
|
|
177
173
|
});
|
|
178
174
|
} catch {
|
|
179
175
|
if (u) return;
|
|
180
|
-
o.value = !0,
|
|
176
|
+
o.value = !0, ar || (ar = !0, R.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
|
|
181
177
|
}
|
|
182
178
|
}
|
|
183
179
|
function p() {
|
|
@@ -208,9 +204,8 @@ function nr(e) {
|
|
|
208
204
|
destroy: g
|
|
209
205
|
};
|
|
210
206
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
function rr(e, t, n = []) {
|
|
207
|
+
// src/composables/useKeyboardReorder.ts
|
|
208
|
+
function sr(e, t, n = []) {
|
|
214
209
|
let r = f(null), i = f(""), a = null;
|
|
215
210
|
function o(t) {
|
|
216
211
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -237,7 +232,7 @@ function rr(e, t, n = []) {
|
|
|
237
232
|
let i = o(r);
|
|
238
233
|
if (!i) return "";
|
|
239
234
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
240
|
-
return a ?
|
|
235
|
+
return a ? ft(a, t.t, n) : "";
|
|
241
236
|
}
|
|
242
237
|
function c(t, n) {
|
|
243
238
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -304,15 +299,13 @@ function rr(e, t, n = []) {
|
|
|
304
299
|
drop: g
|
|
305
300
|
};
|
|
306
301
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
let t = kt("(prefers-color-scheme: dark)");
|
|
302
|
+
// src/composables/useUiTheme.ts
|
|
303
|
+
function cr(e) {
|
|
304
|
+
let t = Mt("(prefers-color-scheme: dark)");
|
|
311
305
|
return { resolvedTheme: y(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
312
306
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
var ar = {
|
|
307
|
+
// src/composables/useThemeStyles.ts
|
|
308
|
+
var lr = {
|
|
316
309
|
bg: "--tpl-bg",
|
|
317
310
|
bgElevated: "--tpl-bg-elevated",
|
|
318
311
|
bgHover: "--tpl-bg-hover",
|
|
@@ -336,19 +329,18 @@ var ar = {
|
|
|
336
329
|
dangerLight: "--tpl-danger-light",
|
|
337
330
|
canvasBg: "--tpl-canvas-bg"
|
|
338
331
|
};
|
|
339
|
-
function
|
|
332
|
+
function ur({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
340
333
|
return { themeStyles: y(() => {
|
|
341
334
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
342
|
-
if (a) for (let [e, t] of Object.entries(
|
|
335
|
+
if (a) for (let [e, t] of Object.entries(lr)) {
|
|
343
336
|
let n = a[e];
|
|
344
337
|
n && (r[t] = n);
|
|
345
338
|
}
|
|
346
339
|
return n && Object.assign(r, n()), r;
|
|
347
340
|
}) };
|
|
348
341
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
function sr() {
|
|
342
|
+
// src/composables/useBlockRegistry.ts
|
|
343
|
+
function dr() {
|
|
352
344
|
let e = x(/* @__PURE__ */ new Map());
|
|
353
345
|
function t(t, n) {
|
|
354
346
|
e.value.set(t, n), _(e);
|
|
@@ -356,7 +348,7 @@ function sr() {
|
|
|
356
348
|
function n(t, n) {
|
|
357
349
|
let r = `custom:${t.type}`, i = {
|
|
358
350
|
component: n,
|
|
359
|
-
createBlock: () =>
|
|
351
|
+
createBlock: () => ce(t),
|
|
360
352
|
definition: t
|
|
361
353
|
};
|
|
362
354
|
e.value.set(r, i), _(e);
|
|
@@ -382,11 +374,7 @@ function sr() {
|
|
|
382
374
|
let t = a(e.customType);
|
|
383
375
|
if (!t) return o("Block definition not found");
|
|
384
376
|
try {
|
|
385
|
-
|
|
386
|
-
return await new n({
|
|
387
|
-
strictVariables: !1,
|
|
388
|
-
strictFilters: !1
|
|
389
|
-
}).parseAndRender(t.template, e.fieldValues);
|
|
377
|
+
return await ve(await import("./liquid.browser-D1RxawkY.js")).parseAndRender(t.template, e.fieldValues);
|
|
390
378
|
} catch (t) {
|
|
391
379
|
return R.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
|
|
392
380
|
}
|
|
@@ -404,11 +392,10 @@ function sr() {
|
|
|
404
392
|
isRegistered: c
|
|
405
393
|
};
|
|
406
394
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
function cr(e, t) {
|
|
395
|
+
// src/composables/useCustomBlockStylesheets.ts
|
|
396
|
+
function fr(e, t) {
|
|
410
397
|
return y(() => {
|
|
411
|
-
let n =
|
|
398
|
+
let n = pr(e.value.blocks);
|
|
412
399
|
if (n.size === 0) return [];
|
|
413
400
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
414
401
|
for (let e of n) {
|
|
@@ -420,76 +407,75 @@ function cr(e, t) {
|
|
|
420
407
|
return i;
|
|
421
408
|
});
|
|
422
409
|
}
|
|
423
|
-
function
|
|
410
|
+
function pr(e) {
|
|
424
411
|
let t = /* @__PURE__ */ new Set();
|
|
425
|
-
return
|
|
412
|
+
return mr(e, t), t;
|
|
426
413
|
}
|
|
427
|
-
function
|
|
428
|
-
for (let n of e) if (
|
|
414
|
+
function mr(e, t) {
|
|
415
|
+
for (let n of e) if (je(n)) t.add(n.customType);
|
|
429
416
|
else if (n.type === "section") {
|
|
430
417
|
let e = n.children;
|
|
431
418
|
if (!e) continue;
|
|
432
|
-
for (let n of e)
|
|
433
|
-
} else
|
|
419
|
+
for (let n of e) mr(n, t);
|
|
420
|
+
} else Ie(n) && mr(n.children, t);
|
|
434
421
|
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
var dr = [
|
|
422
|
+
// src/utils/registerBuiltInBlocks.ts
|
|
423
|
+
var hr = [
|
|
438
424
|
{
|
|
439
425
|
type: "section",
|
|
440
|
-
createBlock:
|
|
426
|
+
createBlock: fe
|
|
441
427
|
},
|
|
442
428
|
{
|
|
443
429
|
type: "title",
|
|
444
|
-
createBlock:
|
|
430
|
+
createBlock: oe
|
|
445
431
|
},
|
|
446
432
|
{
|
|
447
433
|
type: "paragraph",
|
|
448
|
-
createBlock:
|
|
434
|
+
createBlock: be
|
|
449
435
|
},
|
|
450
436
|
{
|
|
451
437
|
type: "image",
|
|
452
|
-
createBlock:
|
|
438
|
+
createBlock: ge
|
|
453
439
|
},
|
|
454
440
|
{
|
|
455
441
|
type: "button",
|
|
456
|
-
createBlock:
|
|
442
|
+
createBlock: Te
|
|
457
443
|
},
|
|
458
444
|
{
|
|
459
445
|
type: "divider",
|
|
460
|
-
createBlock:
|
|
446
|
+
createBlock: ie
|
|
461
447
|
},
|
|
462
448
|
{
|
|
463
449
|
type: "video",
|
|
464
|
-
createBlock:
|
|
450
|
+
createBlock: De
|
|
465
451
|
},
|
|
466
452
|
{
|
|
467
453
|
type: "social",
|
|
468
|
-
createBlock:
|
|
454
|
+
createBlock: he
|
|
469
455
|
},
|
|
470
456
|
{
|
|
471
457
|
type: "menu",
|
|
472
|
-
createBlock:
|
|
458
|
+
createBlock: _e
|
|
473
459
|
},
|
|
474
460
|
{
|
|
475
461
|
type: "table",
|
|
476
|
-
createBlock:
|
|
462
|
+
createBlock: rt
|
|
477
463
|
},
|
|
478
464
|
{
|
|
479
465
|
type: "spacer",
|
|
480
|
-
createBlock:
|
|
466
|
+
createBlock: Se
|
|
481
467
|
},
|
|
482
468
|
{
|
|
483
469
|
type: "html",
|
|
484
|
-
createBlock:
|
|
470
|
+
createBlock: Ve
|
|
485
471
|
},
|
|
486
472
|
{
|
|
487
473
|
type: "countdown",
|
|
488
|
-
createBlock:
|
|
474
|
+
createBlock: ue
|
|
489
475
|
}
|
|
490
476
|
];
|
|
491
|
-
function
|
|
492
|
-
for (let n of
|
|
477
|
+
function gr(e, t) {
|
|
478
|
+
for (let n of hr) {
|
|
493
479
|
let r = t[n.type];
|
|
494
480
|
r && e.registerBuiltIn(n.type, {
|
|
495
481
|
component: r,
|
|
@@ -497,100 +483,95 @@ function fr(e, t) {
|
|
|
497
483
|
});
|
|
498
484
|
}
|
|
499
485
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
function pr(e) {
|
|
486
|
+
// src/utils/resolveHtmlBlockPreview.ts
|
|
487
|
+
function _r(e) {
|
|
503
488
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
504
489
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
function mr(e) {
|
|
490
|
+
// src/utils/collectOffPaletteDefaults.ts
|
|
491
|
+
function vr(e) {
|
|
508
492
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
509
493
|
}
|
|
510
|
-
function
|
|
511
|
-
let r = new Set(e.map((e) =>
|
|
512
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
494
|
+
function yr(e, t, n) {
|
|
495
|
+
let r = new Set(e.map((e) => jn(e))), i = [], a = (e, t) => {
|
|
496
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(jn(o)) && i.push(`${t}.${n}: ${o}`) : vr(o) && a(o, `${t}.${n}`);
|
|
513
497
|
}, o = t;
|
|
514
|
-
for (let [e, t] of Object.entries(
|
|
498
|
+
for (let [e, t] of Object.entries(We)) {
|
|
515
499
|
let n = o?.[e];
|
|
516
500
|
a({
|
|
517
501
|
...t,
|
|
518
|
-
...
|
|
502
|
+
...vr(n) ? n : {}
|
|
519
503
|
}, e);
|
|
520
504
|
}
|
|
521
505
|
return a({
|
|
522
|
-
...
|
|
506
|
+
...Je,
|
|
523
507
|
...n ?? {}
|
|
524
508
|
}, "template"), i;
|
|
525
509
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
function gr(e) {
|
|
510
|
+
// src/utils/localizedBlockDefaults.ts
|
|
511
|
+
function br(e) {
|
|
529
512
|
return {
|
|
530
513
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
531
514
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
532
515
|
button: { text: e.blockDefaults.button }
|
|
533
516
|
};
|
|
534
517
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
"./locales/
|
|
539
|
-
"./locales/
|
|
540
|
-
"./locales/
|
|
541
|
-
"./locales/
|
|
542
|
-
"./locales/
|
|
543
|
-
"./locales/
|
|
544
|
-
"./locales/
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
"./locales/cloud/
|
|
548
|
-
"./locales/cloud/
|
|
549
|
-
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-CHM-ZKvE.js")
|
|
518
|
+
// src/i18n/index.ts
|
|
519
|
+
var xr = /* #__PURE__ */ Object.assign({
|
|
520
|
+
"./locales/ca.ts": () => import("./ca-CD-Kt1qz.js"),
|
|
521
|
+
"./locales/de.ts": () => import("./de-CeFJ6wbM.js"),
|
|
522
|
+
"./locales/en.ts": () => import("./en-D14i5nFh.js"),
|
|
523
|
+
"./locales/es.ts": () => import("./es-zDacbMhs.js"),
|
|
524
|
+
"./locales/fr.ts": () => import("./fr-CSgYtjOd.js"),
|
|
525
|
+
"./locales/ja.ts": () => import("./ja-B7H3ID8O.js"),
|
|
526
|
+
"./locales/nl.ts": () => import("./nl-176ySmc5.js"),
|
|
527
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-dDlTwX18.js")
|
|
528
|
+
}), Sr = /* #__PURE__ */ Object.assign({
|
|
529
|
+
"./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
|
|
530
|
+
"./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
|
|
531
|
+
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
|
|
550
532
|
});
|
|
551
|
-
function
|
|
533
|
+
function Cr(e) {
|
|
552
534
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
553
535
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
536
|
+
var wr = Cr(xr), Tr = Cr(Sr);
|
|
537
|
+
function Er(e) {
|
|
556
538
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
557
539
|
}
|
|
558
|
-
function
|
|
559
|
-
let n =
|
|
560
|
-
return t.find((e) =>
|
|
540
|
+
function Dr(e, t) {
|
|
541
|
+
let n = Er(e);
|
|
542
|
+
return t.find((e) => Er(e) === n);
|
|
561
543
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
544
|
+
function Or(e) {
|
|
545
|
+
return Er(e).split("-")[0];
|
|
564
546
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
547
|
+
function kr(e, t) {
|
|
548
|
+
return Dr(e, t) ?? Dr(Or(e), t);
|
|
567
549
|
}
|
|
568
|
-
function
|
|
569
|
-
return
|
|
550
|
+
function Ar(e, t) {
|
|
551
|
+
return kr(e, t) ?? "en";
|
|
570
552
|
}
|
|
571
|
-
async function
|
|
572
|
-
let t =
|
|
553
|
+
async function jr(e) {
|
|
554
|
+
let t = xr[`./locales/${Ar(e, wr)}.ts`];
|
|
573
555
|
return (await t()).default;
|
|
574
556
|
}
|
|
575
|
-
async function
|
|
576
|
-
let t =
|
|
557
|
+
async function Mr(e) {
|
|
558
|
+
let t = Sr[`./locales/cloud/${Ar(e, Tr)}.ts`];
|
|
577
559
|
return (await t()).default;
|
|
578
560
|
}
|
|
579
|
-
function
|
|
580
|
-
return
|
|
561
|
+
function Nr(e) {
|
|
562
|
+
return kr(e, wr) !== void 0;
|
|
581
563
|
}
|
|
582
|
-
function
|
|
583
|
-
return
|
|
564
|
+
function Pr(e) {
|
|
565
|
+
return kr(e, Tr) !== void 0;
|
|
584
566
|
}
|
|
585
|
-
function
|
|
586
|
-
return [...
|
|
567
|
+
function Fr() {
|
|
568
|
+
return [...wr];
|
|
587
569
|
}
|
|
588
|
-
function
|
|
589
|
-
return [...
|
|
570
|
+
function Ir() {
|
|
571
|
+
return [...Tr];
|
|
590
572
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
var Nr = {
|
|
573
|
+
// src/i18n/contentDefaults.ts
|
|
574
|
+
var Lr = {
|
|
594
575
|
en: {
|
|
595
576
|
video: "Video",
|
|
596
577
|
days: "Days",
|
|
@@ -656,17 +637,17 @@ var Nr = {
|
|
|
656
637
|
expired: "このオファーは終了しました"
|
|
657
638
|
}
|
|
658
639
|
};
|
|
659
|
-
Object.keys(
|
|
660
|
-
var
|
|
661
|
-
function
|
|
662
|
-
if (!e) return
|
|
663
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
664
|
-
if (n) return
|
|
665
|
-
let r =
|
|
666
|
-
return r ?
|
|
667
|
-
}
|
|
668
|
-
function
|
|
669
|
-
let t =
|
|
640
|
+
Object.keys(Lr);
|
|
641
|
+
var Rr = new Map(Object.keys(Lr).map((e) => [e.toLowerCase(), e]));
|
|
642
|
+
function zr(e) {
|
|
643
|
+
if (!e) return Lr.en;
|
|
644
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Rr.get(t);
|
|
645
|
+
if (n) return Lr[n];
|
|
646
|
+
let r = Rr.get(Or(t));
|
|
647
|
+
return r ? Lr[r] : Lr.en;
|
|
648
|
+
}
|
|
649
|
+
function Br(e) {
|
|
650
|
+
let t = zr(e);
|
|
670
651
|
return {
|
|
671
652
|
video: { alt: t.video },
|
|
672
653
|
countdown: {
|
|
@@ -678,11 +659,10 @@ function Ir(e) {
|
|
|
678
659
|
}
|
|
679
660
|
};
|
|
680
661
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
function Lr(e, t) {
|
|
662
|
+
// src/utils/collectColorFieldIssues.ts
|
|
663
|
+
function Vr(e, t) {
|
|
684
664
|
let n = [], r = (r, i) => {
|
|
685
|
-
let a =
|
|
665
|
+
let a = Tt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
686
666
|
if (a.invalidPresets.length > 0 && n.push({
|
|
687
667
|
id: s("invalid-presets"),
|
|
688
668
|
message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
|
|
@@ -693,8 +673,8 @@ function Lr(e, t) {
|
|
|
693
673
|
id: s("allow-custom-ignored"),
|
|
694
674
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
695
675
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
696
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
697
|
-
e !== "" && !t.has(
|
|
676
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => jn(e)));
|
|
677
|
+
e !== "" && !t.has(jn(e)) && n.push({
|
|
698
678
|
id: s("off-palette-default"),
|
|
699
679
|
message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
|
|
700
680
|
});
|
|
@@ -704,9 +684,8 @@ function Lr(e, t) {
|
|
|
704
684
|
else if (t.type === "repeatable") for (let e of t.fields) e.type === "color" && r(e, `${t.key}[].${e.key}`);
|
|
705
685
|
return n;
|
|
706
686
|
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
function Rr(e) {
|
|
687
|
+
// src/utils/keyboardShortcuts.ts
|
|
688
|
+
function Hr(e) {
|
|
710
689
|
for (let t of e.composedPath()) {
|
|
711
690
|
if (!(t instanceof HTMLElement)) continue;
|
|
712
691
|
if (t.isContentEditable) return !0;
|
|
@@ -715,14 +694,14 @@ function Rr(e) {
|
|
|
715
694
|
}
|
|
716
695
|
return !1;
|
|
717
696
|
}
|
|
718
|
-
function
|
|
697
|
+
function Ur(e, t) {
|
|
719
698
|
let n = e.metaKey || e.ctrlKey;
|
|
720
699
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
721
700
|
else if (n && e.key.toLowerCase() === "z") {
|
|
722
|
-
if (
|
|
701
|
+
if (Hr(e)) return;
|
|
723
702
|
e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
|
|
724
703
|
} else {
|
|
725
|
-
if (t.isPicking?.() && !
|
|
704
|
+
if (t.isPicking?.() && !Hr(e)) {
|
|
726
705
|
if (e.key === "Escape") {
|
|
727
706
|
e.preventDefault(), t.onCancelPick?.();
|
|
728
707
|
return;
|
|
@@ -736,105 +715,103 @@ function zr(e, t) {
|
|
|
736
715
|
return;
|
|
737
716
|
}
|
|
738
717
|
}
|
|
739
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
718
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Hr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
740
719
|
}
|
|
741
720
|
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
function Br(e, t) {
|
|
721
|
+
// src/utils/blockComponentResolver.ts
|
|
722
|
+
function Wr(e, t) {
|
|
745
723
|
let n = { fontFamily: t(e.fontFamily) };
|
|
746
724
|
return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
|
|
747
725
|
}
|
|
748
|
-
function
|
|
726
|
+
function Gr(e, t, n) {
|
|
749
727
|
if (t) {
|
|
750
728
|
let n = t.getComponent(e);
|
|
751
729
|
if (n) return n;
|
|
752
730
|
}
|
|
753
731
|
return n[e.type] ?? null;
|
|
754
732
|
}
|
|
755
|
-
var
|
|
756
|
-
function
|
|
733
|
+
var Kr = "--tpl-block-bg-layer", qr = "tpl-has-bg-image";
|
|
734
|
+
function Jr(e, t) {
|
|
757
735
|
if (t === null) return {};
|
|
758
|
-
let n =
|
|
736
|
+
let n = Be(e);
|
|
759
737
|
if (n === null) return {};
|
|
760
|
-
let r = t?.trim(), i = r ?
|
|
738
|
+
let r = t?.trim(), i = r ? pe(r) : n.url;
|
|
761
739
|
return {
|
|
762
740
|
backgroundImage: `url("${i}")`,
|
|
763
741
|
backgroundSize: n.size,
|
|
764
742
|
backgroundPosition: n.position,
|
|
765
743
|
backgroundRepeat: n.repeat,
|
|
766
|
-
[
|
|
744
|
+
[Kr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
767
745
|
};
|
|
768
746
|
}
|
|
769
|
-
function
|
|
770
|
-
return e &&
|
|
747
|
+
function Yr(e) {
|
|
748
|
+
return e && Kr in e ? qr : void 0;
|
|
771
749
|
}
|
|
772
|
-
var
|
|
750
|
+
var Xr = {
|
|
773
751
|
top: "flex-start",
|
|
774
752
|
middle: "center",
|
|
775
753
|
bottom: "flex-end"
|
|
776
754
|
};
|
|
777
|
-
function
|
|
778
|
-
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${
|
|
755
|
+
function Zr(e, t) {
|
|
756
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Qr(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
779
757
|
return {
|
|
780
758
|
display: "flex",
|
|
781
759
|
flexDirection: "column",
|
|
782
|
-
justifyContent:
|
|
760
|
+
justifyContent: Xr[e.verticalAlign],
|
|
783
761
|
boxSizing: "border-box",
|
|
784
762
|
...n
|
|
785
763
|
};
|
|
786
764
|
}
|
|
787
|
-
function
|
|
765
|
+
function Qr(e, t) {
|
|
788
766
|
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
789
767
|
}
|
|
790
|
-
function
|
|
768
|
+
function $r(e, t = {}) {
|
|
791
769
|
if (e.type === "wrapper") return {};
|
|
792
770
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
793
771
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
794
772
|
backgroundColor: r || "transparent"
|
|
795
773
|
};
|
|
796
|
-
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ??
|
|
797
|
-
let n =
|
|
774
|
+
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ze.paragraphGap : Ze.paragraphGap}px`), e.type === "section") {
|
|
775
|
+
let n = ae(e.borderRadius);
|
|
798
776
|
n !== null && (i.borderRadius = n);
|
|
799
|
-
let r =
|
|
800
|
-
r?.applied && e.backgroundImage ? (Object.assign(i,
|
|
777
|
+
let r = Qe(e);
|
|
778
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, Zr(r, t.heroBoxWidth)), Object.assign(i, Jr({
|
|
801
779
|
...e.backgroundImage,
|
|
802
780
|
size: "cover",
|
|
803
781
|
repeat: !1
|
|
804
|
-
}, t.backgroundImageUrl))) : (Object.assign(i,
|
|
782
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, ti(e.border)), Object.assign(i, Jr(e.backgroundImage, t.backgroundImageUrl)));
|
|
805
783
|
}
|
|
806
784
|
return i;
|
|
807
785
|
}
|
|
808
|
-
function
|
|
809
|
-
return e.type === "section" ?
|
|
810
|
-
backgroundImageUrl:
|
|
786
|
+
function ei(e, t, n, r) {
|
|
787
|
+
return e.type === "section" ? $r(e, {
|
|
788
|
+
backgroundImageUrl: ot(t, e.backgroundImage, n),
|
|
811
789
|
heroBoxWidth: r
|
|
812
|
-
}) :
|
|
790
|
+
}) : $r(e);
|
|
813
791
|
}
|
|
814
|
-
function
|
|
792
|
+
function ti(e) {
|
|
815
793
|
let t = {};
|
|
816
|
-
for (let [n, r] of Object.entries(
|
|
794
|
+
for (let [n, r] of Object.entries(He(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
817
795
|
return t;
|
|
818
796
|
}
|
|
819
|
-
function
|
|
797
|
+
function ni(e, t = {}) {
|
|
820
798
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
821
799
|
let n = e.wrapper, r = {};
|
|
822
800
|
n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
|
|
823
|
-
let i =
|
|
824
|
-
return i !== null && (r.borderRadius = i), Object.assign(r,
|
|
801
|
+
let i = ae(n.borderRadius);
|
|
802
|
+
return i !== null && (r.borderRadius = i), Object.assign(r, Jr(n.backgroundImage, t.backgroundImageUrl)), r;
|
|
825
803
|
}
|
|
826
|
-
function
|
|
804
|
+
function ri(e, t = {}) {
|
|
827
805
|
if (e.type !== "wrapper") return null;
|
|
828
806
|
let n = {};
|
|
829
807
|
if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
|
|
830
808
|
let t = e.styles.padding;
|
|
831
809
|
n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
|
|
832
810
|
}
|
|
833
|
-
return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n,
|
|
811
|
+
return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Jr(e.backgroundImage, t.backgroundImageUrl)), n;
|
|
834
812
|
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
function ei(e, t, n, r = !1) {
|
|
813
|
+
// src/utils/mergeTagLabelSegments.ts
|
|
814
|
+
function ii(e, t, n, r = !1) {
|
|
838
815
|
if (!e) return [];
|
|
839
816
|
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
840
817
|
for (; (s = i.exec(e)) !== null;) {
|
|
@@ -843,18 +820,18 @@ function ei(e, t, n, r = !1) {
|
|
|
843
820
|
value: e.slice(o, s.index)
|
|
844
821
|
});
|
|
845
822
|
let i = s[0];
|
|
846
|
-
if (
|
|
847
|
-
let e = r ?
|
|
823
|
+
if (Ye(i, n)) {
|
|
824
|
+
let e = r ? re(i, t) : void 0;
|
|
848
825
|
a.push(e === void 0 ? {
|
|
849
826
|
type: "tag",
|
|
850
|
-
value:
|
|
827
|
+
value: xe(i, t)
|
|
851
828
|
} : {
|
|
852
829
|
type: "text",
|
|
853
830
|
value: e
|
|
854
831
|
});
|
|
855
832
|
} else Ge(i, n) ? a.push({
|
|
856
833
|
type: "tag",
|
|
857
|
-
value:
|
|
834
|
+
value: ke(i, n)
|
|
858
835
|
}) : a.push({
|
|
859
836
|
type: "text",
|
|
860
837
|
value: i
|
|
@@ -866,29 +843,28 @@ function ei(e, t, n, r = !1) {
|
|
|
866
843
|
value: e.slice(o)
|
|
867
844
|
}), a;
|
|
868
845
|
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
var ti = F({
|
|
846
|
+
// src/components/MergeTagPreviewText.vue
|
|
847
|
+
var ai = F({
|
|
872
848
|
name: "MergeTagPreviewText",
|
|
873
849
|
props: { text: {
|
|
874
850
|
type: String,
|
|
875
851
|
required: !0
|
|
876
852
|
} },
|
|
877
853
|
setup(e) {
|
|
878
|
-
let t = n(
|
|
854
|
+
let t = n(Jt, Bt), r = n(Yt, Ke.liquid), i = n(Xt, null), a = y(() => ii(e.text, t.value, r, i?.value ?? !1));
|
|
879
855
|
return () => a.value.map((e, t) => e.type === "tag" ? P("span", {
|
|
880
856
|
key: t,
|
|
881
857
|
class: "tpl-merge-tag-label"
|
|
882
858
|
}, e.value) : e.value);
|
|
883
859
|
}
|
|
884
|
-
}),
|
|
860
|
+
}), oi = ["href"], si = /* @__PURE__ */ F({
|
|
885
861
|
__name: "ButtonBlock",
|
|
886
862
|
props: {
|
|
887
863
|
block: {},
|
|
888
864
|
viewport: {}
|
|
889
865
|
},
|
|
890
866
|
setup(e) {
|
|
891
|
-
let t = e, n =
|
|
867
|
+
let t = e, n = Pt(wn, "ButtonBlock"), r = y(() => {
|
|
892
868
|
let e = {
|
|
893
869
|
display: "inline-block",
|
|
894
870
|
padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
|
|
@@ -897,26 +873,26 @@ var ti = F({
|
|
|
897
873
|
fontSize: `${t.block.fontSize}px`,
|
|
898
874
|
fontWeight: "bold",
|
|
899
875
|
textDecoration: "none",
|
|
900
|
-
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` :
|
|
876
|
+
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ae(t.block.borderRadius) ?? "0px",
|
|
901
877
|
textAlign: "center"
|
|
902
878
|
};
|
|
903
|
-
return Object.assign(e,
|
|
879
|
+
return Object.assign(e, ti(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
|
|
904
880
|
}), i = y(() => ({ textAlign: t.block.align ?? "center" }));
|
|
905
881
|
return (t, n) => (T(), S("div", { style: E(i.value) }, [O("a", {
|
|
906
882
|
href: e.block.url || "#",
|
|
907
883
|
style: E(r.value),
|
|
908
884
|
class: "tpl:cursor-default",
|
|
909
885
|
onClick: n[0] ||= L(() => {}, ["prevent"])
|
|
910
|
-
}, [g(
|
|
886
|
+
}, [g(ai, { text: e.block.text }, null, 8, ["text"])], 12, oi)], 4));
|
|
911
887
|
}
|
|
912
|
-
}),
|
|
888
|
+
}), ci = Rn({
|
|
913
889
|
name: "bookmark",
|
|
914
890
|
size: 24,
|
|
915
891
|
node: [["path", {
|
|
916
892
|
d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
|
|
917
893
|
key: "oz39mx"
|
|
918
894
|
}]]
|
|
919
|
-
}),
|
|
895
|
+
}), li = Rn({
|
|
920
896
|
name: "box",
|
|
921
897
|
size: 24,
|
|
922
898
|
node: [
|
|
@@ -933,7 +909,7 @@ var ti = F({
|
|
|
933
909
|
key: "d0xqtd"
|
|
934
910
|
}]
|
|
935
911
|
]
|
|
936
|
-
}),
|
|
912
|
+
}), ui = Rn({
|
|
937
913
|
name: "eye-off",
|
|
938
914
|
size: 24,
|
|
939
915
|
node: [
|
|
@@ -954,7 +930,7 @@ var ti = F({
|
|
|
954
930
|
key: "1ooewy"
|
|
955
931
|
}]
|
|
956
932
|
]
|
|
957
|
-
}),
|
|
933
|
+
}), di = Rn({
|
|
958
934
|
name: "funnel",
|
|
959
935
|
size: 24,
|
|
960
936
|
node: [["path", {
|
|
@@ -962,7 +938,7 @@ var ti = F({
|
|
|
962
938
|
key: "sc7q7i"
|
|
963
939
|
}]],
|
|
964
940
|
aliases: ["filter"]
|
|
965
|
-
}),
|
|
941
|
+
}), fi = Rn({
|
|
966
942
|
name: "grip-vertical",
|
|
967
943
|
size: 24,
|
|
968
944
|
node: [
|
|
@@ -1003,14 +979,14 @@ var ti = F({
|
|
|
1003
979
|
key: "f4zoj3"
|
|
1004
980
|
}]
|
|
1005
981
|
]
|
|
1006
|
-
}),
|
|
982
|
+
}), pi = Rn({
|
|
1007
983
|
name: "puzzle",
|
|
1008
984
|
size: 24,
|
|
1009
985
|
node: [["path", {
|
|
1010
986
|
d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
|
|
1011
987
|
key: "w46dr5"
|
|
1012
988
|
}]]
|
|
1013
|
-
}),
|
|
989
|
+
}), mi = Rn({
|
|
1014
990
|
name: "video",
|
|
1015
991
|
size: 24,
|
|
1016
992
|
node: [["path", {
|
|
@@ -1024,44 +1000,44 @@ var ti = F({
|
|
|
1024
1000
|
rx: "2",
|
|
1025
1001
|
key: "158x01"
|
|
1026
1002
|
}]]
|
|
1027
|
-
}),
|
|
1003
|
+
}), hi = ["innerHTML"], gi = [
|
|
1028
1004
|
"src",
|
|
1029
1005
|
"width",
|
|
1030
1006
|
"height"
|
|
1031
|
-
],
|
|
1007
|
+
], _i = /* @__PURE__ */ F({
|
|
1032
1008
|
__name: "CustomBlockIcon",
|
|
1033
1009
|
props: {
|
|
1034
1010
|
icon: {},
|
|
1035
1011
|
size: {}
|
|
1036
1012
|
},
|
|
1037
1013
|
setup(e) {
|
|
1038
|
-
let t = e, n = y(() => t.size ?? 20), r = y(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = y(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
|
|
1039
|
-
return (t,
|
|
1014
|
+
let t = e, n = y(() => t.size ?? 20), r = y(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = y(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = y(() => r.value ? In(t.icon ?? "") : "");
|
|
1015
|
+
return (t, o) => r.value ? (T(), S("span", {
|
|
1040
1016
|
key: 0,
|
|
1041
1017
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
1042
1018
|
style: E({
|
|
1043
1019
|
width: `${n.value}px`,
|
|
1044
1020
|
height: `${n.value}px`
|
|
1045
1021
|
}),
|
|
1046
|
-
innerHTML:
|
|
1047
|
-
}, null, 12,
|
|
1022
|
+
innerHTML: a.value
|
|
1023
|
+
}, null, 12, hi)) : i.value ? (T(), S("img", {
|
|
1048
1024
|
key: 1,
|
|
1049
1025
|
src: e.icon,
|
|
1050
1026
|
width: n.value,
|
|
1051
1027
|
height: n.value,
|
|
1052
1028
|
class: "tpl:inline-block",
|
|
1053
1029
|
alt: ""
|
|
1054
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, gi)) : (T(), N(k(li), {
|
|
1055
1031
|
key: 2,
|
|
1056
1032
|
size: n.value,
|
|
1057
1033
|
"stroke-width": 1.5
|
|
1058
1034
|
}, null, 8, ["size"]));
|
|
1059
1035
|
}
|
|
1060
|
-
}),
|
|
1061
|
-
function
|
|
1062
|
-
let n =
|
|
1036
|
+
}), vi = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1037
|
+
function yi(e, t) {
|
|
1038
|
+
let n = Kn(), r = null, i = null, a = null;
|
|
1063
1039
|
function o() {
|
|
1064
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1040
|
+
return e.value ? Array.from(e.value.querySelectorAll(vi)).filter((e) => e.offsetParent !== null) : [];
|
|
1065
1041
|
}
|
|
1066
1042
|
function s(e) {
|
|
1067
1043
|
if (e.key !== "Tab") return;
|
|
@@ -1076,7 +1052,7 @@ function hi(e, t) {
|
|
|
1076
1052
|
a = null;
|
|
1077
1053
|
let t = o();
|
|
1078
1054
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
1079
|
-
}), i =
|
|
1055
|
+
}), i = jt(e, "keydown", s);
|
|
1080
1056
|
}
|
|
1081
1057
|
function l(e = {}) {
|
|
1082
1058
|
let t = e.restoreFocus !== !1;
|
|
@@ -1089,15 +1065,14 @@ function hi(e, t) {
|
|
|
1089
1065
|
u(), l();
|
|
1090
1066
|
});
|
|
1091
1067
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
let [e, t] = Et(!1), n = x([]), r = !1;
|
|
1068
|
+
// src/composables/useEmoji.ts
|
|
1069
|
+
function bi() {
|
|
1070
|
+
let [e, t] = kt(!1), n = x([]), r = !1;
|
|
1096
1071
|
h(() => {
|
|
1097
1072
|
r = !0;
|
|
1098
1073
|
}), I(e, async (e) => {
|
|
1099
1074
|
if (e && n.value.length === 0) {
|
|
1100
|
-
let { emojiCategories: e } = await import("./emojiData-
|
|
1075
|
+
let { emojiCategories: e } = await import("./emojiData-CBNuCfum.js");
|
|
1101
1076
|
if (r) return;
|
|
1102
1077
|
n.value = e;
|
|
1103
1078
|
}
|
|
@@ -1115,9 +1090,8 @@ function gi() {
|
|
|
1115
1090
|
close: a
|
|
1116
1091
|
};
|
|
1117
1092
|
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
var _i = [
|
|
1093
|
+
// src/composables/useFonts.ts
|
|
1094
|
+
var xi = [
|
|
1121
1095
|
{
|
|
1122
1096
|
value: "Arial",
|
|
1123
1097
|
label: "Arial"
|
|
@@ -1146,19 +1120,19 @@ var _i = [
|
|
|
1146
1120
|
value: "Courier New",
|
|
1147
1121
|
label: "Courier New"
|
|
1148
1122
|
}
|
|
1149
|
-
],
|
|
1150
|
-
function
|
|
1151
|
-
if (e === void 0 || e === !0) return [...
|
|
1123
|
+
], Si = "Arial, sans-serif";
|
|
1124
|
+
function Ci(e) {
|
|
1125
|
+
if (e === void 0 || e === !0) return [...xi];
|
|
1152
1126
|
if (e === !1) return [];
|
|
1153
1127
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1154
1128
|
for (let i of e) {
|
|
1155
|
-
let e = i.toLowerCase(), a =
|
|
1156
|
-
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), R.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${
|
|
1129
|
+
let e = i.toLowerCase(), a = xi.find((t) => t.value.toLowerCase() === e);
|
|
1130
|
+
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), R.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${xi.map((e) => e.value).join(", ")}.`));
|
|
1157
1131
|
}
|
|
1158
1132
|
return t;
|
|
1159
1133
|
}
|
|
1160
|
-
function
|
|
1161
|
-
let t = f(e?.customFonts ?? []), n = f(!1), r =
|
|
1134
|
+
function wi(e) {
|
|
1135
|
+
let t = f(e?.customFonts ?? []), n = f(!1), r = Ci(e?.builtIns), a = y(() => e?.defaultFallback ?? Si), o = y(() => {
|
|
1162
1136
|
let e = [...r], n = t.value.map((e) => ({
|
|
1163
1137
|
value: e.name,
|
|
1164
1138
|
label: e.name,
|
|
@@ -1169,18 +1143,18 @@ function bi(e) {
|
|
|
1169
1143
|
function s(e) {
|
|
1170
1144
|
return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1171
1145
|
}
|
|
1172
|
-
let c = e?.defaultFont ??
|
|
1146
|
+
let c = e?.defaultFont ?? Si.split(",")[0].trim();
|
|
1173
1147
|
s(c) || R.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
|
|
1174
1148
|
function l() {
|
|
1175
1149
|
if (e?.defaultFont && s(e.defaultFont)) {
|
|
1176
1150
|
let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1177
1151
|
if (t) return t.value;
|
|
1178
1152
|
}
|
|
1179
|
-
return
|
|
1153
|
+
return Si;
|
|
1180
1154
|
}
|
|
1181
1155
|
let u = y(() => l());
|
|
1182
1156
|
function d(e) {
|
|
1183
|
-
return
|
|
1157
|
+
return Ae(e, {
|
|
1184
1158
|
customFonts: t.value,
|
|
1185
1159
|
defaultFallback: a.value
|
|
1186
1160
|
});
|
|
@@ -1222,14 +1196,13 @@ function bi(e) {
|
|
|
1222
1196
|
getDefaultFont: l
|
|
1223
1197
|
};
|
|
1224
1198
|
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
function xi(e, t, n) {
|
|
1199
|
+
// src/utils/mergeTagNodeSpec.ts
|
|
1200
|
+
function Ti(e, t, n) {
|
|
1228
1201
|
return Ge(e, n) ? {
|
|
1229
1202
|
type: "logicMergeTagNode",
|
|
1230
1203
|
attrs: {
|
|
1231
1204
|
value: e,
|
|
1232
|
-
keyword:
|
|
1205
|
+
keyword: ke(e, n)
|
|
1233
1206
|
}
|
|
1234
1207
|
} : {
|
|
1235
1208
|
type: "mergeTagNode",
|
|
@@ -1239,91 +1212,78 @@ function xi(e, t, n) {
|
|
|
1239
1212
|
}
|
|
1240
1213
|
};
|
|
1241
1214
|
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
function Si(e) {
|
|
1215
|
+
// src/utils/insertLogicTag.ts
|
|
1216
|
+
function Ei(e) {
|
|
1245
1217
|
return "before" in e && "after" in e;
|
|
1246
1218
|
}
|
|
1247
|
-
function
|
|
1248
|
-
if (!
|
|
1249
|
-
e.chain().focus().insertContent(
|
|
1219
|
+
function Di(e, t, n) {
|
|
1220
|
+
if (!Ei(t)) {
|
|
1221
|
+
e.chain().focus().insertContent(Ti(t.value, t.label, n)).run();
|
|
1250
1222
|
return;
|
|
1251
1223
|
}
|
|
1252
|
-
let r =
|
|
1224
|
+
let r = Ti(t.before, t.label, n), i = Ti(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1253
1225
|
a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1254
1226
|
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
function wi(e) {
|
|
1227
|
+
// src/utils/linkColorExtension.ts
|
|
1228
|
+
function Oi(e) {
|
|
1258
1229
|
if (!e) return null;
|
|
1259
1230
|
let t = e.trim();
|
|
1260
1231
|
return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
|
|
1261
1232
|
}
|
|
1262
|
-
function
|
|
1233
|
+
function ki(e) {
|
|
1263
1234
|
return e.extend({ addAttributes() {
|
|
1264
1235
|
return {
|
|
1265
1236
|
...this.parent?.(),
|
|
1266
1237
|
color: {
|
|
1267
1238
|
default: null,
|
|
1268
|
-
parseHTML: (e) =>
|
|
1239
|
+
parseHTML: (e) => Oi(An(e.style.color)),
|
|
1269
1240
|
renderHTML: (e) => {
|
|
1270
|
-
let t =
|
|
1241
|
+
let t = Oi(e.color);
|
|
1271
1242
|
return t ? { style: `color: ${t}` } : {};
|
|
1272
1243
|
}
|
|
1273
1244
|
}
|
|
1274
1245
|
};
|
|
1275
1246
|
} });
|
|
1276
1247
|
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
function Ei(e, t = Me.liquid) {
|
|
1248
|
+
// src/composables/useRichTextLinkDialog.ts
|
|
1249
|
+
function Ai(e, t = Ke.liquid) {
|
|
1280
1250
|
let n = f(!1), r = f(""), i = f(""), a = f(null);
|
|
1281
|
-
|
|
1251
|
+
yi(a, n);
|
|
1282
1252
|
function o() {
|
|
1283
1253
|
let t = e.value?.getAttributes("link") ?? {};
|
|
1284
1254
|
r.value = t.href || "", i.value = t.color || "", n.value = !0;
|
|
1285
1255
|
}
|
|
1286
1256
|
function s() {
|
|
1287
1257
|
if (r.value) {
|
|
1288
|
-
let t =
|
|
1258
|
+
let t = u(r.value);
|
|
1289
1259
|
if (t !== null) {
|
|
1290
|
-
let n =
|
|
1260
|
+
let n = Oi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1291
1261
|
n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
|
|
1292
1262
|
}
|
|
1293
1263
|
}
|
|
1294
|
-
|
|
1295
|
-
}
|
|
1296
|
-
let c =
|
|
1297
|
-
|
|
1298
|
-
"https",
|
|
1299
|
-
"mailto",
|
|
1300
|
-
"tel",
|
|
1301
|
-
"ftp",
|
|
1302
|
-
"ftps",
|
|
1303
|
-
"sms",
|
|
1304
|
-
"xmpp",
|
|
1305
|
-
"cid"
|
|
1306
|
-
]), l = /^(?:\/|\.{1,2}\/|\?)/;
|
|
1307
|
-
function u(e) {
|
|
1264
|
+
p();
|
|
1265
|
+
}
|
|
1266
|
+
let c = /^(?:\/|\.{1,2}\/|\?)/;
|
|
1267
|
+
function l(e) {
|
|
1308
1268
|
return RegExp(`^(?:${t.value.source})`).test(e);
|
|
1309
1269
|
}
|
|
1310
|
-
function
|
|
1270
|
+
function u(e) {
|
|
1311
1271
|
let t = e.trim();
|
|
1312
1272
|
if (!t) return null;
|
|
1313
1273
|
if (t.startsWith("#")) return t;
|
|
1314
1274
|
if (t.startsWith("//")) return `https:${t}`;
|
|
1315
|
-
if (
|
|
1316
|
-
let n =
|
|
1317
|
-
return n ?
|
|
1275
|
+
if (c.test(t)) return t;
|
|
1276
|
+
let n = me(t);
|
|
1277
|
+
return n ? Fe.some((e) => e === n) ? t : null : l(t) ? t : `https://${t}`;
|
|
1318
1278
|
}
|
|
1319
|
-
function
|
|
1320
|
-
e.value?.chain().focus().extendMarkRange("link").unsetLink().run(),
|
|
1279
|
+
function d() {
|
|
1280
|
+
e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p();
|
|
1321
1281
|
}
|
|
1322
|
-
function
|
|
1282
|
+
function p() {
|
|
1323
1283
|
n.value = !1, r.value = "", i.value = "";
|
|
1324
1284
|
}
|
|
1325
|
-
function
|
|
1326
|
-
e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" &&
|
|
1285
|
+
function m(e) {
|
|
1286
|
+
e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && p();
|
|
1327
1287
|
}
|
|
1328
1288
|
return {
|
|
1329
1289
|
showLinkDialog: n,
|
|
@@ -1332,22 +1292,21 @@ function Ei(e, t = Me.liquid) {
|
|
|
1332
1292
|
linkDialogRef: a,
|
|
1333
1293
|
openLinkDialog: o,
|
|
1334
1294
|
insertLink: s,
|
|
1335
|
-
removeLink:
|
|
1336
|
-
closeLinkDialog:
|
|
1337
|
-
handleLinkKeydown:
|
|
1295
|
+
removeLink: d,
|
|
1296
|
+
closeLinkDialog: p,
|
|
1297
|
+
handleLinkKeydown: m
|
|
1338
1298
|
};
|
|
1339
1299
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
let t = n(ln, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: s, autocomplete: c } = Hn(), { canInsertLogicTag: l, isRequesting: d, requestLogicTag: p } = Un(), m = n(en, null), h = (A(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = _e(s), _ = x(null), v = () => Ne(t?.content?.value?.settings ?? { locale: "en" });
|
|
1300
|
+
// src/composables/useRichTextEditor.ts
|
|
1301
|
+
function ji(e) {
|
|
1302
|
+
let t = n(fn, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: s, autocomplete: c } = qn(), { canInsertLogicTag: l, isRequesting: d, requestLogicTag: p } = Jn(), m = n(rn, null), h = (A(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = Xe(s), _ = x(null), v = () => Re(t?.content?.value?.settings ?? { locale: "en" });
|
|
1344
1303
|
I(v, (e) => {
|
|
1345
1304
|
let t = _.value?.view.dom;
|
|
1346
1305
|
t && t.setAttribute("dir", e);
|
|
1347
1306
|
});
|
|
1348
|
-
let { showLinkDialog: y, linkUrl: b, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } =
|
|
1307
|
+
let { showLinkDialog: y, linkUrl: b, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Ai(_, s), { start: k, stop: j } = Dt(() => _.value?.commands.focus("end"), 0, { immediate: !1 }), M = x(null), N = f(!0), ee = f(null), P = !1, F = null;
|
|
1349
1308
|
async function L() {
|
|
1350
|
-
|
|
1309
|
+
ee.value = null, N.value = !0;
|
|
1351
1310
|
try {
|
|
1352
1311
|
let { TiptapEditor: n, EC: i, extensions: a } = await e.loadExtensions({
|
|
1353
1312
|
mergeTags: r,
|
|
@@ -1357,7 +1316,7 @@ function Di(e) {
|
|
|
1357
1316
|
suggestionEmptyText: h
|
|
1358
1317
|
});
|
|
1359
1318
|
if (P) return;
|
|
1360
|
-
|
|
1319
|
+
M.value = i;
|
|
1361
1320
|
let o = /* @__PURE__ */ new Map();
|
|
1362
1321
|
a.forEach((e, t) => o.set(e.name, t));
|
|
1363
1322
|
let l = new n({
|
|
@@ -1373,10 +1332,10 @@ function Di(e) {
|
|
|
1373
1332
|
l.destroy();
|
|
1374
1333
|
return;
|
|
1375
1334
|
}
|
|
1376
|
-
_.value = l,
|
|
1335
|
+
_.value = l, N.value = !1, k();
|
|
1377
1336
|
} catch (t) {
|
|
1378
1337
|
if (P) return;
|
|
1379
|
-
R.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t),
|
|
1338
|
+
R.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), ee.value = t instanceof Error ? t.message : "Failed to load editor", N.value = !1;
|
|
1380
1339
|
}
|
|
1381
1340
|
}
|
|
1382
1341
|
function te() {
|
|
@@ -1394,7 +1353,7 @@ function Di(e) {
|
|
|
1394
1353
|
let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
|
|
1395
1354
|
r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
|
|
1396
1355
|
}
|
|
1397
|
-
|
|
1356
|
+
jt(document, "mousedown", re), u(() => {
|
|
1398
1357
|
P = !0, ne(), j(), _.value?.destroy();
|
|
1399
1358
|
});
|
|
1400
1359
|
async function ie() {
|
|
@@ -1406,13 +1365,13 @@ function Di(e) {
|
|
|
1406
1365
|
}
|
|
1407
1366
|
async function ae() {
|
|
1408
1367
|
let e = await p();
|
|
1409
|
-
P || (e && _.value ?
|
|
1368
|
+
P || (e && _.value ? Di(_.value, e, s) : _.value?.commands.focus());
|
|
1410
1369
|
}
|
|
1411
1370
|
return {
|
|
1412
1371
|
editor: _,
|
|
1413
|
-
EditorContent:
|
|
1414
|
-
isLoading:
|
|
1415
|
-
initError:
|
|
1372
|
+
EditorContent: M,
|
|
1373
|
+
isLoading: N,
|
|
1374
|
+
initError: ee,
|
|
1416
1375
|
retry: te,
|
|
1417
1376
|
showLinkDialog: y,
|
|
1418
1377
|
linkUrl: b,
|
|
@@ -1433,32 +1392,30 @@ function Di(e) {
|
|
|
1433
1392
|
handleAddLogicTag: ae
|
|
1434
1393
|
};
|
|
1435
1394
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
let t = kt(Oi);
|
|
1395
|
+
// src/composables/useSmallScreenNotice.ts
|
|
1396
|
+
var Mi = "(max-width: 767px)";
|
|
1397
|
+
function Ni(e) {
|
|
1398
|
+
let t = Mt(Mi);
|
|
1441
1399
|
return {
|
|
1442
1400
|
isSmallScreen: t,
|
|
1443
1401
|
showNotice: y(() => (w(e) ?? !0) && t.value)
|
|
1444
1402
|
};
|
|
1445
1403
|
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
var Ai = { class: "tpl:w-full" }, ji = {
|
|
1404
|
+
// src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1405
|
+
var Pi = { class: "tpl:w-full" }, Fi = {
|
|
1449
1406
|
key: 0,
|
|
1450
1407
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1451
|
-
},
|
|
1408
|
+
}, Ii = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Li = {
|
|
1452
1409
|
key: 1,
|
|
1453
1410
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1454
|
-
},
|
|
1411
|
+
}, Ri = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, zi = {
|
|
1455
1412
|
key: 2,
|
|
1456
1413
|
class: "tpl:relative"
|
|
1457
|
-
},
|
|
1414
|
+
}, Bi = ["innerHTML"], Vi = {
|
|
1458
1415
|
key: 0,
|
|
1459
1416
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1460
1417
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1461
|
-
},
|
|
1418
|
+
}, Hi = /* @__PURE__ */ F({
|
|
1462
1419
|
__name: "CustomBlock",
|
|
1463
1420
|
props: {
|
|
1464
1421
|
block: {},
|
|
@@ -1466,63 +1423,63 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1466
1423
|
},
|
|
1467
1424
|
emits: ["fetchData"],
|
|
1468
1425
|
setup(e, { emit: t }) {
|
|
1469
|
-
let r = e, i = t, { t: a } =
|
|
1470
|
-
definition:
|
|
1471
|
-
block:
|
|
1426
|
+
let r = e, i = t, { t: a } = kn(), o = n(Cn, null), s = f(""), l = y(() => Ln(s.value)), u = f(!1), d = y(() => o?.getDefinition(r.block.customType)), p = y(() => !!d.value), m = y(() => r.block), { isFetching: h, fetch: _, needsFetch: v, hasDataSource: x } = dt({
|
|
1427
|
+
definition: d,
|
|
1428
|
+
block: m,
|
|
1472
1429
|
onUpdate: (e, t) => {
|
|
1473
1430
|
i("fetchData", {
|
|
1474
1431
|
fieldValues: e,
|
|
1475
1432
|
dataSourceFetched: t
|
|
1476
1433
|
});
|
|
1477
1434
|
}
|
|
1478
|
-
}),
|
|
1479
|
-
if (!
|
|
1435
|
+
}), w = n(Jt, Bt), E = n(Xt, null), A = y(() => {
|
|
1436
|
+
if (!E?.value) return r.block;
|
|
1480
1437
|
let e = {};
|
|
1481
|
-
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ?
|
|
1438
|
+
for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? le(n, w.value) : n;
|
|
1482
1439
|
return {
|
|
1483
1440
|
...r.block,
|
|
1484
1441
|
fieldValues: e
|
|
1485
1442
|
};
|
|
1486
1443
|
});
|
|
1487
|
-
async function
|
|
1444
|
+
async function j() {
|
|
1488
1445
|
if (o) {
|
|
1489
|
-
|
|
1446
|
+
u.value = !1;
|
|
1490
1447
|
try {
|
|
1491
|
-
let e = await o.renderCustomBlock(
|
|
1492
|
-
e.includes("Template render error:") && (
|
|
1448
|
+
let e = await o.renderCustomBlock(A.value);
|
|
1449
|
+
e.includes("Template render error:") && (u.value = !0), s.value = e;
|
|
1493
1450
|
} catch {
|
|
1494
|
-
|
|
1451
|
+
u.value = !0, s.value = "";
|
|
1495
1452
|
}
|
|
1496
1453
|
}
|
|
1497
1454
|
}
|
|
1498
|
-
let
|
|
1455
|
+
let M = Ot(j, 150);
|
|
1499
1456
|
return D(() => {
|
|
1500
|
-
A();
|
|
1501
|
-
}), I(() => r.block.fieldValues, () => {
|
|
1502
|
-
j();
|
|
1503
|
-
}, { deep: !0 }), I(() => w?.value, () => {
|
|
1504
1457
|
j();
|
|
1505
|
-
}), (
|
|
1458
|
+
}), I(() => r.block.fieldValues, () => {
|
|
1459
|
+
M();
|
|
1460
|
+
}, { deep: !0 }), I(() => E?.value, () => {
|
|
1461
|
+
M();
|
|
1462
|
+
}), (e, t) => (T(), S("div", Pi, [p.value ? u.value ? (T(), S("div", Li, [g(k(Un), {
|
|
1506
1463
|
size: 24,
|
|
1507
1464
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1508
|
-
}), O("span",
|
|
1465
|
+
}), O("span", Ri, c(k(a).customBlocks.renderError), 1)])) : (T(), S("div", zi, [O("div", { innerHTML: l.value }, null, 8, Bi), k(x) && k(v) ? (T(), S("div", Vi, [k(h) ? (T(), N(Wn, {
|
|
1509
1466
|
key: 1,
|
|
1510
1467
|
class: "tpl:w-48"
|
|
1511
1468
|
})) : (T(), S("button", {
|
|
1512
1469
|
key: 0,
|
|
1513
1470
|
type: "button",
|
|
1514
1471
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1515
|
-
onClick: t[0] ||= L((...e) => k(
|
|
1516
|
-
}, [
|
|
1472
|
+
onClick: t[0] ||= L((...e) => k(_) && k(_)(...e), ["stop"])
|
|
1473
|
+
}, [d.value?.icon ? (T(), N(_i, {
|
|
1517
1474
|
key: 0,
|
|
1518
|
-
icon:
|
|
1475
|
+
icon: d.value.icon,
|
|
1519
1476
|
size: 16
|
|
1520
|
-
}, null, 8, ["icon"])) : b("", !0), C(" " + c(
|
|
1477
|
+
}, null, 8, ["icon"])) : b("", !0), C(" " + c(d.value?.dataSource?.label || k(a).customBlocks.dataSource.fetchButton), 1)]))])) : b("", !0)])) : (T(), S("div", Fi, [g(k(pi), {
|
|
1521
1478
|
size: 24,
|
|
1522
1479
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1523
|
-
}), O("span",
|
|
1480
|
+
}), O("span", Ii, c(k(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1524
1481
|
}
|
|
1525
|
-
}),
|
|
1482
|
+
}), Ui = { class: "tpl:w-full" }, Wi = /* @__PURE__ */ F({
|
|
1526
1483
|
__name: "DividerBlock",
|
|
1527
1484
|
props: {
|
|
1528
1485
|
block: {},
|
|
@@ -1534,28 +1491,28 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1534
1491
|
width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
|
|
1535
1492
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1536
1493
|
}));
|
|
1537
|
-
return (e, t) => (T(), S("div",
|
|
1494
|
+
return (e, t) => (T(), S("div", Ui, [O("hr", {
|
|
1538
1495
|
class: "tpl:m-0 tpl:border-none",
|
|
1539
1496
|
style: E(n.value)
|
|
1540
1497
|
}, null, 4)]));
|
|
1541
1498
|
}
|
|
1542
|
-
}),
|
|
1499
|
+
}), Gi = { class: "tpl:w-full" }, Ki = ["srcdoc", "title"], qi = {
|
|
1543
1500
|
key: 1,
|
|
1544
1501
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
1545
|
-
},
|
|
1502
|
+
}, Ji = {
|
|
1546
1503
|
key: 0,
|
|
1547
1504
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1548
|
-
},
|
|
1505
|
+
}, Yi = {
|
|
1549
1506
|
key: 1,
|
|
1550
1507
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1551
|
-
},
|
|
1508
|
+
}, Xi = /* @__PURE__ */ F({
|
|
1552
1509
|
__name: "HtmlBlock",
|
|
1553
1510
|
props: {
|
|
1554
1511
|
block: {},
|
|
1555
1512
|
viewport: {}
|
|
1556
1513
|
},
|
|
1557
1514
|
setup(e) {
|
|
1558
|
-
let t = e, { t: r } =
|
|
1515
|
+
let t = e, { t: r } = kn(), i = n(cn, !1), a = y(() => t.block.content.trim().length > 0), o = y(() => i && a.value), s = n(Jt, Bt), l = n(Xt, null), d = y(() => l?.value ? le(t.block.content, s.value) : t.block.content), p = f(null), m = f(60), h = null;
|
|
1559
1516
|
function _() {
|
|
1560
1517
|
let e = p.value?.contentDocument;
|
|
1561
1518
|
e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1569,7 +1526,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1569
1526
|
e || (h?.disconnect(), h = null);
|
|
1570
1527
|
}), u(() => {
|
|
1571
1528
|
h?.disconnect(), h = null;
|
|
1572
|
-
}), (e, t) => (T(), S("div",
|
|
1529
|
+
}), (e, t) => (T(), S("div", Gi, [o.value ? (T(), S("iframe", {
|
|
1573
1530
|
key: 0,
|
|
1574
1531
|
ref_key: "iframeRef",
|
|
1575
1532
|
ref: p,
|
|
@@ -1579,18 +1536,18 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1579
1536
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1580
1537
|
style: E({ height: `${m.value}px` }),
|
|
1581
1538
|
onLoad: v
|
|
1582
|
-
}, null, 44,
|
|
1539
|
+
}, null, 44, Ki)) : (T(), S("div", qi, [g(k(gt), {
|
|
1583
1540
|
size: 24,
|
|
1584
1541
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1585
|
-
}), a.value ? (T(), S("span",
|
|
1542
|
+
}), a.value ? (T(), S("span", Ji, c(k(r).html.preview), 1)) : (T(), S("span", Yi, c(k(r).html.empty), 1))]))]));
|
|
1586
1543
|
}
|
|
1587
|
-
}),
|
|
1544
|
+
}), Zi = ["data-drop-enabled"], Qi = ["href"], $i = ["src", "alt"], ea = ["src", "alt"], ta = {
|
|
1588
1545
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1589
1546
|
style: { opacity: "0.7" }
|
|
1590
|
-
},
|
|
1547
|
+
}, na = ["href"], ra = ["src", "alt"], ia = ["src", "alt"], aa = {
|
|
1591
1548
|
key: 4,
|
|
1592
1549
|
class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
1593
|
-
},
|
|
1550
|
+
}, oa = ["aria-label"], sa = { key: 1 }, ca = /* @__PURE__ */ F({
|
|
1594
1551
|
__name: "ImageBlock",
|
|
1595
1552
|
props: {
|
|
1596
1553
|
block: {},
|
|
@@ -1598,20 +1555,20 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1598
1555
|
},
|
|
1599
1556
|
emits: ["update"],
|
|
1600
1557
|
setup(e, { emit: t }) {
|
|
1601
|
-
let n = e, r = t, { t: i } =
|
|
1558
|
+
let n = e, r = t, { t: i } = kn(), { syntax: a } = qn(), o = y(() => Ce(n.block.src, a));
|
|
1602
1559
|
function s(e) {
|
|
1603
1560
|
let t = {
|
|
1604
1561
|
src: e.url,
|
|
1605
|
-
...
|
|
1562
|
+
...bt(vt(e.width, e.height))
|
|
1606
1563
|
};
|
|
1607
1564
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1608
1565
|
}
|
|
1609
|
-
let l = f(), { canBrowse: u, dropEnabled: d, isUploading: p, showOverlay: m, openMediaBrowser: h } =
|
|
1566
|
+
let l = f(), { canBrowse: u, dropEnabled: d, isUploading: p, showOverlay: m, openMediaBrowser: h } = yt({
|
|
1610
1567
|
target: l,
|
|
1611
1568
|
blocked: o,
|
|
1612
1569
|
apply: s
|
|
1613
1570
|
}), _ = y(() => ({ textAlign: n.block.align })), v = y(() => {
|
|
1614
|
-
let e = n.block.border, t = ["left", "right"].map((t) =>
|
|
1571
|
+
let e = n.block.border, t = ["left", "right"].map((t) => ye(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1615
1572
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1616
1573
|
}), x = y(() => {
|
|
1617
1574
|
let e = n.block.align;
|
|
@@ -1619,13 +1576,13 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1619
1576
|
maxWidth: "100%",
|
|
1620
1577
|
width: n.block.width === "full" ? v.value : `${n.block.width}px`,
|
|
1621
1578
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1622
|
-
borderRadius:
|
|
1623
|
-
...
|
|
1579
|
+
borderRadius: ae(n.block.borderRadius) ?? void 0,
|
|
1580
|
+
...ti(n.block.border),
|
|
1624
1581
|
display: "block",
|
|
1625
1582
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1626
1583
|
marginRight: e === "center" ? "auto" : void 0
|
|
1627
1584
|
};
|
|
1628
|
-
}), w =
|
|
1585
|
+
}), w = ut(() => o.value ? void 0 : n.block.src), D = ut(() => o.value ? n.block.placeholderUrl : void 0);
|
|
1629
1586
|
return (t, n) => (T(), S("div", {
|
|
1630
1587
|
ref_key: "dropZoneRef",
|
|
1631
1588
|
ref: l,
|
|
@@ -1633,7 +1590,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1633
1590
|
"data-drop-enabled": k(d),
|
|
1634
1591
|
class: "tpl:relative tpl:w-full",
|
|
1635
1592
|
style: E(_.value)
|
|
1636
|
-
}, [k(m) ? (T(),
|
|
1593
|
+
}, [k(m) ? (T(), N(_t, {
|
|
1637
1594
|
key: 0,
|
|
1638
1595
|
uploading: k(p),
|
|
1639
1596
|
size: "canvas"
|
|
@@ -1649,22 +1606,22 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1649
1606
|
src: k(D),
|
|
1650
1607
|
alt: e.block.alt || k(i).image.altTextPlaceholder,
|
|
1651
1608
|
style: E(x.value)
|
|
1652
|
-
}, null, 12,
|
|
1609
|
+
}, null, 12, $i)], 8, Qi)) : (T(), S("img", {
|
|
1653
1610
|
key: 1,
|
|
1654
1611
|
class: "tpl:border-0",
|
|
1655
1612
|
src: k(D),
|
|
1656
1613
|
alt: e.block.alt,
|
|
1657
1614
|
style: E(x.value)
|
|
1658
|
-
}, null, 12,
|
|
1615
|
+
}, null, 12, ea))], 64)) : e.block.src && o.value ? (T(), S("div", {
|
|
1659
1616
|
key: 2,
|
|
1660
1617
|
class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
1661
1618
|
style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, x.value])
|
|
1662
|
-
}, [g(k(
|
|
1619
|
+
}, [g(k(Bn), {
|
|
1663
1620
|
size: 32,
|
|
1664
1621
|
"stroke-width": 1.5,
|
|
1665
1622
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1666
1623
|
style: { opacity: "0.5" }
|
|
1667
|
-
}), O("span",
|
|
1624
|
+
}), O("span", ta, [g(ai, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (T(), S(j, { key: 3 }, [e.block.linkUrl ? (T(), S("a", {
|
|
1668
1625
|
key: 0,
|
|
1669
1626
|
href: e.block.linkUrl,
|
|
1670
1627
|
target: "_blank",
|
|
@@ -1676,33 +1633,33 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1676
1633
|
src: k(w),
|
|
1677
1634
|
alt: e.block.alt || k(i).image.altTextPlaceholder,
|
|
1678
1635
|
style: E(x.value)
|
|
1679
|
-
}, null, 12,
|
|
1636
|
+
}, null, 12, ra)], 8, na)) : (T(), S("img", {
|
|
1680
1637
|
key: 1,
|
|
1681
1638
|
class: "tpl:border-0",
|
|
1682
1639
|
src: k(w),
|
|
1683
1640
|
alt: e.block.alt,
|
|
1684
1641
|
style: E(x.value)
|
|
1685
|
-
}, null, 12,
|
|
1642
|
+
}, null, 12, ia))], 64)) : (T(), S("div", aa, [k(u) ? (T(), S("button", {
|
|
1686
1643
|
key: 0,
|
|
1687
1644
|
"aria-label": k(i).image.browseMedia,
|
|
1688
1645
|
class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1689
1646
|
onClick: n[2] ||= L((...e) => k(h) && k(h)(...e), ["stop"])
|
|
1690
|
-
}, [g(k(
|
|
1647
|
+
}, [g(k(Bn), {
|
|
1691
1648
|
size: 14,
|
|
1692
1649
|
"stroke-width": 1.5
|
|
1693
|
-
}), C(" " + c(k(i).image.browseMedia), 1)], 8,
|
|
1650
|
+
}), C(" " + c(k(i).image.browseMedia), 1)], 8, oa)) : (T(), S("span", sa, c(k(i).image.clickToAdd), 1))]))], 12, Zi));
|
|
1694
1651
|
}
|
|
1695
|
-
}),
|
|
1652
|
+
}), la = { class: "tpl:w-full" }, ua = ["href"], da = {
|
|
1696
1653
|
key: 1,
|
|
1697
1654
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
1698
|
-
},
|
|
1655
|
+
}, fa = /* @__PURE__ */ F({
|
|
1699
1656
|
__name: "MenuBlock",
|
|
1700
1657
|
props: {
|
|
1701
1658
|
block: {},
|
|
1702
1659
|
viewport: {}
|
|
1703
1660
|
},
|
|
1704
1661
|
setup(e) {
|
|
1705
|
-
let t = e, { t: n } =
|
|
1662
|
+
let t = e, { t: n } = kn(), r = Pt(wn, "MenuBlock"), i = y(() => ({
|
|
1706
1663
|
display: "flex",
|
|
1707
1664
|
flexWrap: "wrap",
|
|
1708
1665
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -1714,7 +1671,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1714
1671
|
function o(e) {
|
|
1715
1672
|
return e || t.block.linkColor || t.block.color;
|
|
1716
1673
|
}
|
|
1717
|
-
return (t, r) => (T(), S("div",
|
|
1674
|
+
return (t, r) => (T(), S("div", la, [a.value ? (T(), S("div", {
|
|
1718
1675
|
key: 0,
|
|
1719
1676
|
style: E(i.value)
|
|
1720
1677
|
}, [(T(!0), S(j, null, l(e.block.items, (t, n) => (T(), S(j, { key: t.id }, [O("a", {
|
|
@@ -1726,19 +1683,18 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
1726
1683
|
textDecoration: t.underline ? "underline" : "none"
|
|
1727
1684
|
}),
|
|
1728
1685
|
onClick: r[0] ||= L(() => {}, ["prevent"])
|
|
1729
|
-
}, [g(
|
|
1686
|
+
}, [g(ai, { text: t.text || "..." }, null, 8, ["text"])], 12, ua), n < e.block.items.length - 1 ? (T(), S("span", {
|
|
1730
1687
|
key: 0,
|
|
1731
1688
|
style: E({
|
|
1732
1689
|
color: e.block.separatorColor,
|
|
1733
1690
|
padding: `0 ${e.block.spacing}px`
|
|
1734
1691
|
})
|
|
1735
|
-
}, c(e.block.separator), 5)) : b("", !0)], 64))), 128))], 4)) : (T(), S("div",
|
|
1692
|
+
}, c(e.block.separator), 5)) : b("", !0)], 64))), 128))], 4)) : (T(), S("div", da, [g(k(Et), { size: 16 }), O("span", null, c(k(n).menu.addLinks), 1)]))]));
|
|
1736
1693
|
}
|
|
1737
1694
|
});
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
let t = n(Gt, Lt), r = n(qt, null), { syntax: i } = Hn(), a = y(() => r?.value ? ye(e(), t.value) : Pe(e(), t.value)), o = y(() => Ce(Wn(Ie(a.value, i)))), s = f(!1), c = f(null), { top: l, left: u } = At(c), { toLocal: d } = An(), p = y(() => d({
|
|
1695
|
+
// src/composables/useEditableTextBlock.ts
|
|
1696
|
+
function pa(e) {
|
|
1697
|
+
let t = n(Jt, Bt), r = n(Xt, null), { syntax: i } = qn(), a = y(() => r?.value ? de(e(), t.value) : Me(e(), t.value)), o = y(() => qe(Ln(nt(a.value, i)))), s = f(!1), c = f(null), { top: l, left: u } = Nt(c), { toLocal: d } = Nn(), p = y(() => d({
|
|
1742
1698
|
top: l.value - 8,
|
|
1743
1699
|
left: u.value
|
|
1744
1700
|
}));
|
|
@@ -1757,22 +1713,21 @@ function la(e) {
|
|
|
1757
1713
|
handleEditorDone: h
|
|
1758
1714
|
};
|
|
1759
1715
|
}
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
1716
|
+
// src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1717
|
+
var ma = ["innerHTML"], ha = /* @__PURE__ */ F({
|
|
1763
1718
|
__name: "ParagraphBlock",
|
|
1764
1719
|
props: {
|
|
1765
1720
|
block: {},
|
|
1766
1721
|
viewport: {}
|
|
1767
1722
|
},
|
|
1768
1723
|
setup(e) {
|
|
1769
|
-
let t = e, n =
|
|
1724
|
+
let t = e, n = ee(() => import("./ParagraphEditor-D-nqs82g.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = pa(() => t.block.content);
|
|
1770
1725
|
return (t, l) => (T(), S("div", {
|
|
1771
1726
|
ref_key: "blockRef",
|
|
1772
1727
|
ref: i,
|
|
1773
1728
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
1774
1729
|
onDblclick: l[0] ||= (...e) => k(s) && k(s)(...e)
|
|
1775
|
-
}, [k(r) ? (T(),
|
|
1730
|
+
}, [k(r) ? (T(), N(k(n), {
|
|
1776
1731
|
key: 0,
|
|
1777
1732
|
block: e.block,
|
|
1778
1733
|
"toolbar-position": k(a),
|
|
@@ -1785,26 +1740,26 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1785
1740
|
key: 1,
|
|
1786
1741
|
class: "tpl-text-content tpl:outline-none",
|
|
1787
1742
|
innerHTML: k(o)
|
|
1788
|
-
}, null, 8,
|
|
1743
|
+
}, null, 8, ma))], 544));
|
|
1789
1744
|
}
|
|
1790
|
-
}),
|
|
1745
|
+
}), ga = [
|
|
1791
1746
|
"data-block-id",
|
|
1792
1747
|
"data-block-type",
|
|
1793
1748
|
"data-tpl-picked"
|
|
1794
|
-
],
|
|
1749
|
+
], _a = ["data-lock-holder"], va = ["aria-label"], ya = [
|
|
1795
1750
|
"aria-label",
|
|
1796
1751
|
"aria-pressed",
|
|
1797
1752
|
"title"
|
|
1798
|
-
],
|
|
1753
|
+
], ba = ["aria-label", "title"], xa = ["aria-label", "title"], Sa = ["aria-label", "title"], Ca = {
|
|
1799
1754
|
key: 3,
|
|
1800
1755
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
1801
|
-
},
|
|
1756
|
+
}, wa = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Ta = {
|
|
1802
1757
|
key: 4,
|
|
1803
1758
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1804
|
-
},
|
|
1759
|
+
}, Ea = ["aria-label", "title"], Da = {
|
|
1805
1760
|
key: 5,
|
|
1806
1761
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1807
|
-
},
|
|
1762
|
+
}, Oa = ["aria-label"], ka = /*#__PURE__*/ Gn(/* @__PURE__ */ F({
|
|
1808
1763
|
__name: "BlockWrapper",
|
|
1809
1764
|
props: {
|
|
1810
1765
|
block: {},
|
|
@@ -1816,7 +1771,7 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1816
1771
|
},
|
|
1817
1772
|
emits: ["select"],
|
|
1818
1773
|
setup(e, { emit: i }) {
|
|
1819
|
-
let a =
|
|
1774
|
+
let a = ee(() => import("./BlockIssueBadge-6Ri2FfX-.js")), o = e, s = i, { t: l, format: u } = kn(), p = n(Qt, null), m = f(null), h = y(() => p?.liftedBlockId.value === o.block.id), _ = y(() => h.value ? u(l.blockActions.dragLifted, { block: o.block.type }) : l.blockActions.drag);
|
|
1820
1775
|
async function v() {
|
|
1821
1776
|
await r(), m.value?.focus();
|
|
1822
1777
|
}
|
|
@@ -1826,24 +1781,24 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1826
1781
|
let w = y(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), D = y(() => o.previewMode === !0 && w.value), A = y(() => o.viewport ? {
|
|
1827
1782
|
desktop: l.viewport.desktop,
|
|
1828
1783
|
mobile: l.viewport.mobile
|
|
1829
|
-
}[o.viewport] ?? o.viewport : ""), j = y(() => !!o.block.displayCondition),
|
|
1784
|
+
}[o.viewport] ?? o.viewport : ""), j = y(() => !!o.block.displayCondition), M = n(sn, null), N = n(dn, null), P = n(gn, {}), F = y(() => P.savedBlocks?.isPicking.value === !0), I = y(() => !o.nested && P.savedBlocks?.isAvailable.value === !0 && P.savedBlocks?.canCreate.value === !0), te = y(() => o.isSelected && !F.value), ne = y(() => P.comments?.getBlockCount(o.block.id) ?? 0), re = y(() => P.collaboration?.lockOf(o.block.id) ?? null), ie = y(() => re.value?.holder.type === "guest" ? l.collaboration.guest : re.value?.holder.name ?? ""), ae = y(() => P.collaboration?.agentHighlightOf(o.block.id) ?? P.ai?.highlightOf(o.block.id) ?? null), oe = at(() => o.block.type === "section" ? o.block.backgroundImage : void 0), se = at(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), ce = n(fn, null), le = n(Lt, void 0), ue = y(() => $r(o.block, {
|
|
1830
1785
|
backgroundImageUrl: oe.value,
|
|
1831
|
-
heroBoxWidth:
|
|
1832
|
-
})), de = y(() =>
|
|
1786
|
+
heroBoxWidth: ht(o.block, ce?.content.value, le)
|
|
1787
|
+
})), de = y(() => ni(o.block, { backgroundImageUrl: se.value }));
|
|
1833
1788
|
function fe(e) {
|
|
1834
1789
|
o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
|
|
1835
1790
|
}
|
|
1836
1791
|
function pe() {
|
|
1837
|
-
|
|
1792
|
+
M?.deleteBlock(o.block.id);
|
|
1838
1793
|
}
|
|
1839
1794
|
function me() {
|
|
1840
|
-
|
|
1795
|
+
M?.duplicateBlock(o.block);
|
|
1841
1796
|
}
|
|
1842
1797
|
function he() {
|
|
1843
1798
|
P.savedBlocks?.startPicking(o.block.id);
|
|
1844
1799
|
}
|
|
1845
1800
|
function ge() {
|
|
1846
|
-
|
|
1801
|
+
N?.toggleBlock(o.block.id);
|
|
1847
1802
|
}
|
|
1848
1803
|
return (n, r) => D.value ? b("", !0) : (T(), S("div", {
|
|
1849
1804
|
key: 0,
|
|
@@ -1872,9 +1827,9 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1872
1827
|
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
1873
1828
|
style: E({
|
|
1874
1829
|
backgroundColor: re.value.holder.color,
|
|
1875
|
-
color: k(
|
|
1830
|
+
color: k(Yn)(re.value.holder.color)
|
|
1876
1831
|
})
|
|
1877
|
-
}, c(k(u)(k(l).collaboration.editing, { name: ie.value })), 5)], 12,
|
|
1832
|
+
}, c(k(u)(k(l).collaboration.editing, { name: ie.value })), 5)], 12, _a)) : b("", !0),
|
|
1878
1833
|
ae.value === null ? b("", !0) : (T(), S("div", {
|
|
1879
1834
|
key: ae.value,
|
|
1880
1835
|
"data-testid": "block-agent-highlight",
|
|
@@ -1896,107 +1851,105 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
|
|
|
1896
1851
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
1897
1852
|
title: k(l).blockActions.drag,
|
|
1898
1853
|
onKeydown: x
|
|
1899
|
-
}, [g(k(
|
|
1854
|
+
}, [g(k(fi), {
|
|
1900
1855
|
size: 14,
|
|
1901
1856
|
"stroke-width": 1.5
|
|
1902
|
-
})], 40,
|
|
1857
|
+
})], 40, ya),
|
|
1903
1858
|
O("button", {
|
|
1904
1859
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
1905
1860
|
"aria-label": k(l).blockActions.duplicate,
|
|
1906
1861
|
title: k(l).blockActions.duplicate,
|
|
1907
1862
|
onClick: L(me, ["stop"])
|
|
1908
|
-
}, [g(k(
|
|
1863
|
+
}, [g(k(zn), {
|
|
1909
1864
|
size: 14,
|
|
1910
1865
|
"stroke-width": 1.5
|
|
1911
|
-
})], 8,
|
|
1866
|
+
})], 8, ba),
|
|
1912
1867
|
I.value ? (T(), S("button", {
|
|
1913
1868
|
key: 0,
|
|
1914
1869
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
1915
1870
|
"aria-label": k(l).blockActions.saveAsBlock,
|
|
1916
1871
|
title: k(l).blockActions.saveAsBlock,
|
|
1917
1872
|
onClick: L(he, ["stop"])
|
|
1918
|
-
}, [g(k(
|
|
1873
|
+
}, [g(k(ci), {
|
|
1919
1874
|
size: 14,
|
|
1920
1875
|
"stroke-width": 1.5
|
|
1921
|
-
})], 8,
|
|
1876
|
+
})], 8, xa)) : b("", !0),
|
|
1922
1877
|
O("button", {
|
|
1923
1878
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
1924
1879
|
"aria-label": k(l).blockActions.delete,
|
|
1925
1880
|
title: k(l).blockActions.delete,
|
|
1926
1881
|
onClick: L(pe, ["stop"])
|
|
1927
|
-
}, [g(k(
|
|
1882
|
+
}, [g(k(Hn), {
|
|
1928
1883
|
size: 14,
|
|
1929
1884
|
"stroke-width": 1.5
|
|
1930
|
-
})], 8,
|
|
1931
|
-
], 8,
|
|
1932
|
-
w.value ? (T(), S("div",
|
|
1885
|
+
})], 8, Sa)
|
|
1886
|
+
], 8, va)) : b("", !0),
|
|
1887
|
+
w.value ? (T(), S("div", Ca, [O("span", wa, [g(k(ui), {
|
|
1933
1888
|
size: 12,
|
|
1934
1889
|
"stroke-width": 1.5
|
|
1935
1890
|
}), C(" " + c(k(u)(k(l).blockActions.hiddenOnViewport, { viewport: A.value })), 1)])])) : b("", !0),
|
|
1936
|
-
j.value && !w.value ? (T(), S("div",
|
|
1891
|
+
j.value && !w.value ? (T(), S("div", Ta, [O("button", {
|
|
1937
1892
|
"data-testid": "condition-toggle",
|
|
1938
1893
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
1939
1894
|
"aria-label": k(l).blockActions.conditionToggle,
|
|
1940
1895
|
title: e.block.displayCondition?.label,
|
|
1941
1896
|
onClick: L(ge, ["stop"])
|
|
1942
|
-
}, [g(k(
|
|
1897
|
+
}, [g(k(di), {
|
|
1943
1898
|
size: 12,
|
|
1944
1899
|
"stroke-width": 2
|
|
1945
|
-
})], 8,
|
|
1946
|
-
ne.value > 0 && !w.value ? (T(), S("div",
|
|
1900
|
+
})], 8, Ea)])) : b("", !0),
|
|
1901
|
+
ne.value > 0 && !w.value ? (T(), S("div", Da, [O("button", {
|
|
1947
1902
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
1948
1903
|
"aria-label": k(u)(k(l).blockActions.comments, { count: String(ne.value) }),
|
|
1949
1904
|
onClick: r[0] ||= L((t) => k(P).comments?.openForBlock(e.block.id), ["stop"])
|
|
1950
|
-
}, [g(k(
|
|
1905
|
+
}, [g(k(Vn), {
|
|
1951
1906
|
size: 12,
|
|
1952
1907
|
"stroke-width": 2.5
|
|
1953
|
-
}), C(" " + c(ne.value), 1)], 8,
|
|
1908
|
+
}), C(" " + c(ne.value), 1)], 8, Oa)])) : b("", !0),
|
|
1954
1909
|
de.value ? (T(), S("div", {
|
|
1955
1910
|
key: 6,
|
|
1956
|
-
class: t(["tpl-section-wrapper tpl-email-surface", k(
|
|
1911
|
+
class: t(["tpl-section-wrapper tpl-email-surface", k(Yr)(de.value)]),
|
|
1957
1912
|
style: E(de.value)
|
|
1958
1913
|
}, [O("div", {
|
|
1959
|
-
class: t(["tpl-block-content tpl-email-surface", k(
|
|
1914
|
+
class: t(["tpl-block-content tpl-email-surface", k(Yr)(ue.value)]),
|
|
1960
1915
|
style: E(ue.value)
|
|
1961
1916
|
}, [d(n.$slots, "default", {}, void 0, !0)], 6)], 6)) : (T(), S("div", {
|
|
1962
1917
|
key: 7,
|
|
1963
|
-
class: t(["tpl-block-content tpl-email-surface", k(
|
|
1918
|
+
class: t(["tpl-block-content tpl-email-surface", k(Yr)(ue.value)]),
|
|
1964
1919
|
style: E(ue.value)
|
|
1965
1920
|
}, [d(n.$slots, "default", {}, void 0, !0)], 6))
|
|
1966
|
-
], 10,
|
|
1921
|
+
], 10, ga));
|
|
1967
1922
|
}
|
|
1968
1923
|
}), [["__scopeId", "data-v-126b991e"]]);
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
function Ea(e) {
|
|
1924
|
+
// src/utils/unwrapParagraph.ts
|
|
1925
|
+
function Aa(e) {
|
|
1972
1926
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
1973
1927
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
1974
1928
|
}
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
var Da = /* @__PURE__ */ F({
|
|
1929
|
+
// src/components/blocks/TitleBlock.vue
|
|
1930
|
+
var ja = /* @__PURE__ */ F({
|
|
1978
1931
|
__name: "TitleBlock",
|
|
1979
1932
|
props: {
|
|
1980
1933
|
block: {},
|
|
1981
1934
|
viewport: {}
|
|
1982
1935
|
},
|
|
1983
1936
|
setup(e) {
|
|
1984
|
-
let t = e, n =
|
|
1937
|
+
let t = e, n = ee(() => import("./TitleEditor-BYk_9SpQ.js")), r = Pt(wn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = pa(() => t.block.content), d = y(() => {
|
|
1985
1938
|
let e = {
|
|
1986
|
-
fontSize: `${
|
|
1987
|
-
lineHeight: String(
|
|
1939
|
+
fontSize: `${Ne[t.block.level]}px`,
|
|
1940
|
+
lineHeight: String(ze),
|
|
1988
1941
|
fontWeight: "700",
|
|
1989
1942
|
textAlign: t.block.textAlign
|
|
1990
1943
|
};
|
|
1991
1944
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
|
|
1992
|
-
}), f = y(() => `h${t.block.level}`), p = y(() =>
|
|
1945
|
+
}), f = y(() => `h${t.block.level}`), p = y(() => Aa(c.value));
|
|
1993
1946
|
return (t, r) => (T(), S("div", {
|
|
1994
1947
|
ref_key: "blockRef",
|
|
1995
1948
|
ref: a,
|
|
1996
1949
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
1997
1950
|
style: E(d.value),
|
|
1998
1951
|
onDblclick: r[0] ||= (...e) => k(l) && k(l)(...e)
|
|
1999
|
-
}, [k(i) ? (T(),
|
|
1952
|
+
}, [k(i) ? (T(), N(k(n), {
|
|
2000
1953
|
key: 0,
|
|
2001
1954
|
block: e.block,
|
|
2002
1955
|
"toolbar-position": k(s),
|
|
@@ -2005,7 +1958,7 @@ var Da = /* @__PURE__ */ F({
|
|
|
2005
1958
|
"block",
|
|
2006
1959
|
"toolbar-position",
|
|
2007
1960
|
"onDone"
|
|
2008
|
-
])) : (T(),
|
|
1961
|
+
])) : (T(), N(o(f.value), {
|
|
2009
1962
|
key: 1,
|
|
2010
1963
|
class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-[inherit] tpl:outline-none",
|
|
2011
1964
|
style: {
|
|
@@ -2015,14 +1968,14 @@ var Da = /* @__PURE__ */ F({
|
|
|
2015
1968
|
innerHTML: p.value
|
|
2016
1969
|
}, null, 8, ["innerHTML"]))], 36));
|
|
2017
1970
|
}
|
|
2018
|
-
}),
|
|
2019
|
-
function
|
|
2020
|
-
let n =
|
|
2021
|
-
n.color =
|
|
2022
|
-
let r =
|
|
2023
|
-
r.content = `<p style="text-align: center"><span style="color: ${
|
|
2024
|
-
let i =
|
|
2025
|
-
return i.align = "center",
|
|
1971
|
+
}), Ma = "hero", Na = "#1f2937", Pa = "#ffffff";
|
|
1972
|
+
function Fa(e, t) {
|
|
1973
|
+
let n = $e("title", e);
|
|
1974
|
+
n.color = Pa, n.textAlign = "center";
|
|
1975
|
+
let r = $e("paragraph", e);
|
|
1976
|
+
r.content = `<p style="text-align: center"><span style="color: ${Pa}">${Ia(t)}</span></p>`;
|
|
1977
|
+
let i = $e("button", e);
|
|
1978
|
+
return i.align = "center", fe({
|
|
2026
1979
|
columns: "1",
|
|
2027
1980
|
children: [[
|
|
2028
1981
|
n,
|
|
@@ -2040,98 +1993,96 @@ function ja(e, t) {
|
|
|
2040
1993
|
bottom: 48,
|
|
2041
1994
|
left: 24
|
|
2042
1995
|
},
|
|
2043
|
-
backgroundColor:
|
|
1996
|
+
backgroundColor: Na
|
|
2044
1997
|
}
|
|
2045
1998
|
});
|
|
2046
1999
|
}
|
|
2047
|
-
function
|
|
2000
|
+
function Ia(e) {
|
|
2048
2001
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2049
2002
|
}
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
return e.dataset.blockType !== "section" && !Na.has(e.dataset.paletteType ?? "");
|
|
2003
|
+
// src/utils/sectionColumnDrop.ts
|
|
2004
|
+
var La = /* @__PURE__ */ new Set(["section", Ma]);
|
|
2005
|
+
function Ra(e) {
|
|
2006
|
+
return e.dataset.blockType !== "section" && !La.has(e.dataset.paletteType ?? "");
|
|
2055
2007
|
}
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
var Fa = Object.defineProperty, Ia = Object.getOwnPropertySymbols, La = Object.prototype.hasOwnProperty, Ra = Object.prototype.propertyIsEnumerable, za = (e, t, n) => t in e ? Fa(e, t, {
|
|
2008
|
+
// ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
|
|
2009
|
+
var za = Object.defineProperty, Ba = Object.getOwnPropertySymbols, Va = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable, Ua = (e, t, n) => t in e ? za(e, t, {
|
|
2059
2010
|
enumerable: !0,
|
|
2060
2011
|
configurable: !0,
|
|
2061
2012
|
writable: !0,
|
|
2062
2013
|
value: n
|
|
2063
|
-
}) : e[t] = n,
|
|
2064
|
-
for (var n in t ||= {})
|
|
2065
|
-
if (
|
|
2014
|
+
}) : e[t] = n, Wa = (e, t) => {
|
|
2015
|
+
for (var n in t ||= {}) Va.call(t, n) && Ua(e, n, t[n]);
|
|
2016
|
+
if (Ba) for (var n of Ba(t)) Ha.call(t, n) && Ua(e, n, t[n]);
|
|
2066
2017
|
return e;
|
|
2067
|
-
},
|
|
2018
|
+
}, Ga = (e, t) => {
|
|
2068
2019
|
var n = {};
|
|
2069
|
-
for (var r in e)
|
|
2070
|
-
if (e != null &&
|
|
2020
|
+
for (var r in e) Va.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2021
|
+
if (e != null && Ba) for (var r of Ba(e)) t.indexOf(r) < 0 && Ha.call(e, r) && (n[r] = e[r]);
|
|
2071
2022
|
return n;
|
|
2072
|
-
},
|
|
2073
|
-
function
|
|
2074
|
-
console.warn(
|
|
2023
|
+
}, Ka = "[vue-draggable-plus]: ";
|
|
2024
|
+
function qa(e) {
|
|
2025
|
+
console.warn(Ka + e);
|
|
2075
2026
|
}
|
|
2076
|
-
function
|
|
2077
|
-
console.error(
|
|
2027
|
+
function Ja(e) {
|
|
2028
|
+
console.error(Ka + e);
|
|
2078
2029
|
}
|
|
2079
|
-
function
|
|
2030
|
+
function Ya(e, t, n) {
|
|
2080
2031
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
2081
2032
|
}
|
|
2082
|
-
function
|
|
2033
|
+
function Xa(e) {
|
|
2083
2034
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
2084
2035
|
}
|
|
2085
|
-
function
|
|
2086
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
2036
|
+
function Za(e) {
|
|
2037
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Xa(n)] = e[n]), t), {});
|
|
2087
2038
|
}
|
|
2088
|
-
function
|
|
2039
|
+
function Qa(e, t) {
|
|
2089
2040
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
2090
2041
|
}
|
|
2091
|
-
function
|
|
2042
|
+
function $a(e, t, n) {
|
|
2092
2043
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
2093
2044
|
}
|
|
2094
|
-
function
|
|
2045
|
+
function eo(e) {
|
|
2095
2046
|
return e === void 0;
|
|
2096
2047
|
}
|
|
2097
|
-
function
|
|
2048
|
+
function to(e) {
|
|
2098
2049
|
return typeof e == "string";
|
|
2099
2050
|
}
|
|
2100
|
-
function
|
|
2051
|
+
function no(e, t, n) {
|
|
2101
2052
|
let r = e.children[n];
|
|
2102
2053
|
e.insertBefore(t, r);
|
|
2103
2054
|
}
|
|
2104
|
-
function
|
|
2055
|
+
function ro(e) {
|
|
2105
2056
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2106
2057
|
}
|
|
2107
|
-
function
|
|
2058
|
+
function io(e, t = document) {
|
|
2108
2059
|
let n = null;
|
|
2109
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
2060
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || qa(`Element not found: ${e}`), n;
|
|
2110
2061
|
}
|
|
2111
|
-
function
|
|
2062
|
+
function ao(e, t, n = null) {
|
|
2112
2063
|
return function(...r) {
|
|
2113
2064
|
return e.apply(n, r), t.apply(n, r);
|
|
2114
2065
|
};
|
|
2115
2066
|
}
|
|
2116
|
-
function
|
|
2117
|
-
let n =
|
|
2067
|
+
function oo(e, t) {
|
|
2068
|
+
let n = Wa({}, e);
|
|
2118
2069
|
return Object.keys(t).forEach((r) => {
|
|
2119
|
-
n[r] ? n[r] =
|
|
2070
|
+
n[r] ? n[r] = ao(e[r], t[r]) : n[r] = t[r];
|
|
2120
2071
|
}), n;
|
|
2121
2072
|
}
|
|
2122
|
-
function
|
|
2073
|
+
function so(e) {
|
|
2123
2074
|
return e instanceof HTMLElement;
|
|
2124
2075
|
}
|
|
2125
|
-
function
|
|
2076
|
+
function co(e, t) {
|
|
2126
2077
|
Object.keys(e).forEach((n) => {
|
|
2127
2078
|
t(n, e[n]);
|
|
2128
2079
|
});
|
|
2129
2080
|
}
|
|
2130
|
-
function
|
|
2081
|
+
function lo(e) {
|
|
2131
2082
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
2132
2083
|
}
|
|
2133
|
-
var
|
|
2134
|
-
function
|
|
2084
|
+
var uo = Object.assign;
|
|
2085
|
+
function fo(e, t) {
|
|
2135
2086
|
var n = Object.keys(e);
|
|
2136
2087
|
if (Object.getOwnPropertySymbols) {
|
|
2137
2088
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2141,26 +2092,26 @@ function so(e, t) {
|
|
|
2141
2092
|
}
|
|
2142
2093
|
return n;
|
|
2143
2094
|
}
|
|
2144
|
-
function
|
|
2095
|
+
function po(e) {
|
|
2145
2096
|
for (var t = 1; t < arguments.length; t++) {
|
|
2146
2097
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2147
|
-
t % 2 ?
|
|
2148
|
-
|
|
2149
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2098
|
+
t % 2 ? fo(Object(n), !0).forEach(function(t) {
|
|
2099
|
+
ho(e, t, n[t]);
|
|
2100
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fo(Object(n)).forEach(function(t) {
|
|
2150
2101
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2151
2102
|
});
|
|
2152
2103
|
}
|
|
2153
2104
|
return e;
|
|
2154
2105
|
}
|
|
2155
|
-
function
|
|
2106
|
+
function mo(e) {
|
|
2156
2107
|
"@babel/helpers - typeof";
|
|
2157
|
-
return
|
|
2108
|
+
return mo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2158
2109
|
return typeof e;
|
|
2159
2110
|
} : function(e) {
|
|
2160
2111
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2161
|
-
},
|
|
2112
|
+
}, mo(e);
|
|
2162
2113
|
}
|
|
2163
|
-
function
|
|
2114
|
+
function ho(e, t, n) {
|
|
2164
2115
|
return t in e ? Object.defineProperty(e, t, {
|
|
2165
2116
|
value: n,
|
|
2166
2117
|
enumerable: !0,
|
|
@@ -2168,44 +2119,44 @@ function uo(e, t, n) {
|
|
|
2168
2119
|
writable: !0
|
|
2169
2120
|
}) : e[t] = n, e;
|
|
2170
2121
|
}
|
|
2171
|
-
function
|
|
2172
|
-
return
|
|
2122
|
+
function go() {
|
|
2123
|
+
return go = Object.assign || function(e) {
|
|
2173
2124
|
for (var t = 1; t < arguments.length; t++) {
|
|
2174
2125
|
var n = arguments[t];
|
|
2175
2126
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2176
2127
|
}
|
|
2177
2128
|
return e;
|
|
2178
|
-
},
|
|
2129
|
+
}, go.apply(this, arguments);
|
|
2179
2130
|
}
|
|
2180
|
-
function
|
|
2131
|
+
function _o(e, t) {
|
|
2181
2132
|
if (e == null) return {};
|
|
2182
2133
|
for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2183
2134
|
return n;
|
|
2184
2135
|
}
|
|
2185
|
-
function
|
|
2136
|
+
function vo(e, t) {
|
|
2186
2137
|
if (e == null) return {};
|
|
2187
|
-
var n =
|
|
2138
|
+
var n = _o(e, t), r, i;
|
|
2188
2139
|
if (Object.getOwnPropertySymbols) {
|
|
2189
2140
|
var a = Object.getOwnPropertySymbols(e);
|
|
2190
2141
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2191
2142
|
}
|
|
2192
2143
|
return n;
|
|
2193
2144
|
}
|
|
2194
|
-
var
|
|
2195
|
-
function
|
|
2145
|
+
var yo = "1.15.2";
|
|
2146
|
+
function bo(e) {
|
|
2196
2147
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2197
2148
|
}
|
|
2198
|
-
var
|
|
2149
|
+
var xo = bo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), So = bo(/Edge/i), Co = bo(/firefox/i), wo = bo(/safari/i) && !bo(/chrome/i) && !bo(/android/i), To = bo(/iP(ad|od|hone)/i), Eo = bo(/chrome/i) && bo(/android/i), Do = {
|
|
2199
2150
|
capture: !1,
|
|
2200
2151
|
passive: !1
|
|
2201
2152
|
};
|
|
2202
2153
|
function z(e, t, n) {
|
|
2203
|
-
e.addEventListener(t, n, !
|
|
2154
|
+
e.addEventListener(t, n, !xo && Do);
|
|
2204
2155
|
}
|
|
2205
2156
|
function B(e, t, n) {
|
|
2206
|
-
e.removeEventListener(t, n, !
|
|
2157
|
+
e.removeEventListener(t, n, !xo && Do);
|
|
2207
2158
|
}
|
|
2208
|
-
function
|
|
2159
|
+
function Oo(e, t) {
|
|
2209
2160
|
if (t) {
|
|
2210
2161
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
2211
2162
|
if (e.matches) return e.matches(t);
|
|
@@ -2217,22 +2168,22 @@ function wo(e, t) {
|
|
|
2217
2168
|
return !1;
|
|
2218
2169
|
}
|
|
2219
2170
|
}
|
|
2220
|
-
function
|
|
2171
|
+
function ko(e) {
|
|
2221
2172
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2222
2173
|
}
|
|
2223
|
-
function
|
|
2174
|
+
function Ao(e, t, n, r) {
|
|
2224
2175
|
if (e) {
|
|
2225
2176
|
n ||= document;
|
|
2226
2177
|
do {
|
|
2227
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
2178
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Oo(e, t) : Oo(e, t)) || r && e === n) return e;
|
|
2228
2179
|
if (e === n) break;
|
|
2229
|
-
} while (e =
|
|
2180
|
+
} while (e = ko(e));
|
|
2230
2181
|
}
|
|
2231
2182
|
return null;
|
|
2232
2183
|
}
|
|
2233
|
-
var
|
|
2234
|
-
function
|
|
2235
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
2184
|
+
var jo = /\s+/g;
|
|
2185
|
+
function Mo(e, t, n) {
|
|
2186
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(jo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(jo, " "));
|
|
2236
2187
|
}
|
|
2237
2188
|
function V(e, t, n) {
|
|
2238
2189
|
var r = e && e.style;
|
|
@@ -2241,7 +2192,7 @@ function V(e, t, n) {
|
|
|
2241
2192
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
2242
2193
|
}
|
|
2243
2194
|
}
|
|
2244
|
-
function
|
|
2195
|
+
function No(e, t) {
|
|
2245
2196
|
var n = "";
|
|
2246
2197
|
if (typeof e == "string") n = e;
|
|
2247
2198
|
else do {
|
|
@@ -2251,7 +2202,7 @@ function ko(e, t) {
|
|
|
2251
2202
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2252
2203
|
return i && new i(n);
|
|
2253
2204
|
}
|
|
2254
|
-
function
|
|
2205
|
+
function Po(e, t, n) {
|
|
2255
2206
|
if (e) {
|
|
2256
2207
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
2257
2208
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -2259,13 +2210,13 @@ function Ao(e, t, n) {
|
|
|
2259
2210
|
}
|
|
2260
2211
|
return [];
|
|
2261
2212
|
}
|
|
2262
|
-
function
|
|
2213
|
+
function Fo() {
|
|
2263
2214
|
return document.scrollingElement || document.documentElement;
|
|
2264
2215
|
}
|
|
2265
2216
|
function H(e, t, n, r, i) {
|
|
2266
2217
|
if (e.getBoundingClientRect || e === window) {
|
|
2267
2218
|
var a, o, s, c, l, u, d;
|
|
2268
|
-
if (e !== window && e.parentNode && e !==
|
|
2219
|
+
if (e !== window && e.parentNode && e !== Fo() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !xo)) do
|
|
2269
2220
|
if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
|
|
2270
2221
|
var f = i.getBoundingClientRect();
|
|
2271
2222
|
o -= f.top + parseInt(V(i, "border-top-width")), s -= f.left + parseInt(V(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -2273,7 +2224,7 @@ function H(e, t, n, r, i) {
|
|
|
2273
2224
|
}
|
|
2274
2225
|
while (i = i.parentNode);
|
|
2275
2226
|
if (r && e !== window) {
|
|
2276
|
-
var p =
|
|
2227
|
+
var p = No(i || e), m = p && p.a, h = p && p.d;
|
|
2277
2228
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
2278
2229
|
}
|
|
2279
2230
|
return {
|
|
@@ -2286,18 +2237,18 @@ function H(e, t, n, r, i) {
|
|
|
2286
2237
|
};
|
|
2287
2238
|
}
|
|
2288
2239
|
}
|
|
2289
|
-
function
|
|
2290
|
-
for (var r =
|
|
2240
|
+
function Io(e, t, n) {
|
|
2241
|
+
for (var r = Ho(e, !0), i = H(e)[t]; r;) {
|
|
2291
2242
|
var a = H(r)[n], o = void 0;
|
|
2292
2243
|
if (o = i >= a, !o) return r;
|
|
2293
|
-
if (r ===
|
|
2294
|
-
r =
|
|
2244
|
+
if (r === Fo()) break;
|
|
2245
|
+
r = Ho(r, !1);
|
|
2295
2246
|
}
|
|
2296
2247
|
return !1;
|
|
2297
2248
|
}
|
|
2298
|
-
function
|
|
2249
|
+
function Lo(e, t, n, r) {
|
|
2299
2250
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
2300
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
2251
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ao(o[a], n.draggable, e, !1)) {
|
|
2301
2252
|
if (i === t) return o[a];
|
|
2302
2253
|
i++;
|
|
2303
2254
|
}
|
|
@@ -2305,84 +2256,84 @@ function No(e, t, n, r) {
|
|
|
2305
2256
|
}
|
|
2306
2257
|
return null;
|
|
2307
2258
|
}
|
|
2308
|
-
function
|
|
2309
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !
|
|
2259
|
+
function Ro(e, t) {
|
|
2260
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !Oo(n, t));) n = n.previousElementSibling;
|
|
2310
2261
|
return n || null;
|
|
2311
2262
|
}
|
|
2312
|
-
function
|
|
2263
|
+
function zo(e, t) {
|
|
2313
2264
|
var n = 0;
|
|
2314
2265
|
if (!e || !e.parentNode) return -1;
|
|
2315
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
2266
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Oo(e, t)) && n++;
|
|
2316
2267
|
return n;
|
|
2317
2268
|
}
|
|
2318
|
-
function
|
|
2319
|
-
var t = 0, n = 0, r =
|
|
2269
|
+
function Bo(e) {
|
|
2270
|
+
var t = 0, n = 0, r = Fo();
|
|
2320
2271
|
if (e) do {
|
|
2321
|
-
var i =
|
|
2272
|
+
var i = No(e), a = i.a, o = i.d;
|
|
2322
2273
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
2323
2274
|
} while (e !== r && (e = e.parentNode));
|
|
2324
2275
|
return [t, n];
|
|
2325
2276
|
}
|
|
2326
|
-
function
|
|
2277
|
+
function Vo(e, t) {
|
|
2327
2278
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2328
2279
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2329
2280
|
}
|
|
2330
2281
|
return -1;
|
|
2331
2282
|
}
|
|
2332
|
-
function
|
|
2333
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2283
|
+
function Ho(e, t) {
|
|
2284
|
+
if (!e || !e.getBoundingClientRect) return Fo();
|
|
2334
2285
|
var n = e, r = !1;
|
|
2335
2286
|
do
|
|
2336
2287
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2337
2288
|
var i = V(n);
|
|
2338
2289
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2339
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2290
|
+
if (!n.getBoundingClientRect || n === document.body) return Fo();
|
|
2340
2291
|
if (r || t) return n;
|
|
2341
2292
|
r = !0;
|
|
2342
2293
|
}
|
|
2343
2294
|
}
|
|
2344
2295
|
while (n = n.parentNode);
|
|
2345
|
-
return
|
|
2296
|
+
return Fo();
|
|
2346
2297
|
}
|
|
2347
|
-
function
|
|
2298
|
+
function Uo(e, t) {
|
|
2348
2299
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2349
2300
|
return e;
|
|
2350
2301
|
}
|
|
2351
|
-
function
|
|
2302
|
+
function Wo(e, t) {
|
|
2352
2303
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
2353
2304
|
}
|
|
2354
|
-
var
|
|
2355
|
-
function
|
|
2305
|
+
var Go;
|
|
2306
|
+
function Ko(e, t) {
|
|
2356
2307
|
return function() {
|
|
2357
|
-
if (!
|
|
2308
|
+
if (!Go) {
|
|
2358
2309
|
var n = arguments, r = this;
|
|
2359
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2360
|
-
|
|
2310
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Go = setTimeout(function() {
|
|
2311
|
+
Go = void 0;
|
|
2361
2312
|
}, t);
|
|
2362
2313
|
}
|
|
2363
2314
|
};
|
|
2364
2315
|
}
|
|
2365
|
-
function
|
|
2366
|
-
clearTimeout(
|
|
2316
|
+
function qo() {
|
|
2317
|
+
clearTimeout(Go), Go = void 0;
|
|
2367
2318
|
}
|
|
2368
|
-
function
|
|
2319
|
+
function Jo(e, t, n) {
|
|
2369
2320
|
e.scrollLeft += t, e.scrollTop += n;
|
|
2370
2321
|
}
|
|
2371
|
-
function
|
|
2322
|
+
function Yo(e) {
|
|
2372
2323
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2373
2324
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2374
2325
|
}
|
|
2375
|
-
function
|
|
2326
|
+
function Xo(e, t, n) {
|
|
2376
2327
|
var r = {};
|
|
2377
2328
|
return Array.from(e.children).forEach(function(i) {
|
|
2378
|
-
if (
|
|
2329
|
+
if (Ao(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
2379
2330
|
var a = H(i);
|
|
2380
2331
|
r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
|
|
2381
2332
|
}
|
|
2382
2333
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
2383
2334
|
}
|
|
2384
|
-
var
|
|
2385
|
-
function
|
|
2335
|
+
var Zo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2336
|
+
function Qo() {
|
|
2386
2337
|
var e = [], t;
|
|
2387
2338
|
return {
|
|
2388
2339
|
captureAnimationState: function() {
|
|
@@ -2392,9 +2343,9 @@ function Jo() {
|
|
|
2392
2343
|
target: t,
|
|
2393
2344
|
rect: H(t)
|
|
2394
2345
|
});
|
|
2395
|
-
var n =
|
|
2346
|
+
var n = po({}, e[e.length - 1].rect);
|
|
2396
2347
|
if (t.thisAnimationDuration) {
|
|
2397
|
-
var r =
|
|
2348
|
+
var r = No(t, !0);
|
|
2398
2349
|
r && (n.top -= r.f, n.left -= r.e);
|
|
2399
2350
|
}
|
|
2400
2351
|
t.fromRect = n;
|
|
@@ -2405,7 +2356,7 @@ function Jo() {
|
|
|
2405
2356
|
e.push(t);
|
|
2406
2357
|
},
|
|
2407
2358
|
removeAnimationState: function(t) {
|
|
2408
|
-
e.splice(
|
|
2359
|
+
e.splice(Vo(e, { target: t }), 1);
|
|
2409
2360
|
},
|
|
2410
2361
|
animateAll: function(n) {
|
|
2411
2362
|
var r = this;
|
|
@@ -2413,8 +2364,8 @@ function Jo() {
|
|
|
2413
2364
|
else {
|
|
2414
2365
|
var i = !1, a = 0;
|
|
2415
2366
|
e.forEach(function(e) {
|
|
2416
|
-
var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d =
|
|
2417
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
2367
|
+
var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = No(n, !0);
|
|
2368
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Wo(c, s) && !Wo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = es(u, c, l, r.options)), Wo(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
2418
2369
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
2419
2370
|
}, t), n.thisAnimationDuration = t);
|
|
2420
2371
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -2425,26 +2376,26 @@ function Jo() {
|
|
|
2425
2376
|
animate: function(e, t, n, r) {
|
|
2426
2377
|
if (r) {
|
|
2427
2378
|
V(e, "transition", ""), V(e, "transform", "");
|
|
2428
|
-
var i =
|
|
2429
|
-
e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
2379
|
+
var i = No(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
2380
|
+
e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = $o(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
2430
2381
|
V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
2431
2382
|
}, r);
|
|
2432
2383
|
}
|
|
2433
2384
|
}
|
|
2434
2385
|
};
|
|
2435
2386
|
}
|
|
2436
|
-
function
|
|
2387
|
+
function $o(e) {
|
|
2437
2388
|
return e.offsetWidth;
|
|
2438
2389
|
}
|
|
2439
|
-
function
|
|
2390
|
+
function es(e, t, n, r) {
|
|
2440
2391
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
2441
2392
|
}
|
|
2442
|
-
var
|
|
2393
|
+
var ts = [], ns = { initializeByDefault: !0 }, rs = {
|
|
2443
2394
|
mount: function(e) {
|
|
2444
|
-
for (var t in
|
|
2445
|
-
|
|
2395
|
+
for (var t in ns) ns.hasOwnProperty(t) && !(t in e) && (e[t] = ns[t]);
|
|
2396
|
+
ts.forEach(function(t) {
|
|
2446
2397
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2447
|
-
}),
|
|
2398
|
+
}), ts.push(e);
|
|
2448
2399
|
},
|
|
2449
2400
|
pluginEvent: function(e, t, n) {
|
|
2450
2401
|
var r = this;
|
|
@@ -2452,16 +2403,16 @@ var Zo = [], Qo = { initializeByDefault: !0 }, $o = {
|
|
|
2452
2403
|
r.eventCanceled = !0;
|
|
2453
2404
|
};
|
|
2454
2405
|
var i = e + "Global";
|
|
2455
|
-
|
|
2456
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2406
|
+
ts.forEach(function(r) {
|
|
2407
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](po({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](po({ sortable: t }, n)));
|
|
2457
2408
|
});
|
|
2458
2409
|
},
|
|
2459
2410
|
initializePlugins: function(e, t, n, r) {
|
|
2460
|
-
for (var i in
|
|
2411
|
+
for (var i in ts.forEach(function(r) {
|
|
2461
2412
|
var i = r.pluginName;
|
|
2462
2413
|
if (e.options[i] || r.initializeByDefault) {
|
|
2463
2414
|
var a = new r(e, t, e.options);
|
|
2464
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2415
|
+
a.sortable = e, a.options = e.options, e[i] = a, go(n, a.defaults);
|
|
2465
2416
|
}
|
|
2466
2417
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2467
2418
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2470,56 +2421,56 @@ var Zo = [], Qo = { initializeByDefault: !0 }, $o = {
|
|
|
2470
2421
|
},
|
|
2471
2422
|
getEventProperties: function(e, t) {
|
|
2472
2423
|
var n = {};
|
|
2473
|
-
return
|
|
2474
|
-
typeof r.eventProperties == "function" &&
|
|
2424
|
+
return ts.forEach(function(r) {
|
|
2425
|
+
typeof r.eventProperties == "function" && go(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2475
2426
|
}), n;
|
|
2476
2427
|
},
|
|
2477
2428
|
modifyOption: function(e, t, n) {
|
|
2478
2429
|
var r;
|
|
2479
|
-
return
|
|
2430
|
+
return ts.forEach(function(i) {
|
|
2480
2431
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2481
2432
|
}), r;
|
|
2482
2433
|
}
|
|
2483
2434
|
};
|
|
2484
|
-
function
|
|
2435
|
+
function is(e) {
|
|
2485
2436
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
2486
|
-
if (t ||= n && n[
|
|
2437
|
+
if (t ||= n && n[Zo], t) {
|
|
2487
2438
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
2488
|
-
window.CustomEvent && !
|
|
2439
|
+
window.CustomEvent && !xo && !So ? h = new CustomEvent(r, {
|
|
2489
2440
|
bubbles: !0,
|
|
2490
2441
|
cancelable: !0
|
|
2491
2442
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
2492
|
-
var v =
|
|
2443
|
+
var v = po(po({}, m), rs.getEventProperties(r, t));
|
|
2493
2444
|
for (var y in v) h[y] = v[y];
|
|
2494
2445
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
2495
2446
|
}
|
|
2496
2447
|
}
|
|
2497
|
-
var
|
|
2498
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
2499
|
-
|
|
2448
|
+
var as = ["evt"], U = function(e, t) {
|
|
2449
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = vo(n, as);
|
|
2450
|
+
rs.pluginEvent.bind(Q)(e, t, po({
|
|
2500
2451
|
dragEl: G,
|
|
2501
2452
|
parentEl: K,
|
|
2502
2453
|
ghostEl: q,
|
|
2503
2454
|
rootEl: J,
|
|
2504
|
-
nextEl:
|
|
2505
|
-
lastDownEl:
|
|
2455
|
+
nextEl: os,
|
|
2456
|
+
lastDownEl: ss,
|
|
2506
2457
|
cloneEl: Y,
|
|
2507
|
-
cloneHidden:
|
|
2508
|
-
dragStarted:
|
|
2458
|
+
cloneHidden: cs,
|
|
2459
|
+
dragStarted: Cs,
|
|
2509
2460
|
putSortable: X,
|
|
2510
2461
|
activeSortable: Q.active,
|
|
2511
2462
|
originalEvent: r,
|
|
2512
|
-
oldIndex:
|
|
2513
|
-
oldDraggableIndex:
|
|
2514
|
-
newIndex:
|
|
2515
|
-
newDraggableIndex:
|
|
2516
|
-
hideGhostForTarget:
|
|
2517
|
-
unhideGhostForTarget:
|
|
2463
|
+
oldIndex: ls,
|
|
2464
|
+
oldDraggableIndex: ds,
|
|
2465
|
+
newIndex: us,
|
|
2466
|
+
newDraggableIndex: fs,
|
|
2467
|
+
hideGhostForTarget: Vs,
|
|
2468
|
+
unhideGhostForTarget: Hs,
|
|
2518
2469
|
cloneNowHidden: function() {
|
|
2519
|
-
|
|
2470
|
+
cs = !0;
|
|
2520
2471
|
},
|
|
2521
2472
|
cloneNowShown: function() {
|
|
2522
|
-
|
|
2473
|
+
cs = !1;
|
|
2523
2474
|
},
|
|
2524
2475
|
dispatchSortableEvent: function(e) {
|
|
2525
2476
|
W({
|
|
@@ -2531,45 +2482,45 @@ var ts = ["evt"], U = function(e, t) {
|
|
|
2531
2482
|
}, i));
|
|
2532
2483
|
};
|
|
2533
2484
|
function W(e) {
|
|
2534
|
-
|
|
2485
|
+
is(po({
|
|
2535
2486
|
putSortable: X,
|
|
2536
2487
|
cloneEl: Y,
|
|
2537
2488
|
targetEl: G,
|
|
2538
2489
|
rootEl: J,
|
|
2539
|
-
oldIndex:
|
|
2540
|
-
oldDraggableIndex:
|
|
2541
|
-
newIndex:
|
|
2542
|
-
newDraggableIndex:
|
|
2490
|
+
oldIndex: ls,
|
|
2491
|
+
oldDraggableIndex: ds,
|
|
2492
|
+
newIndex: us,
|
|
2493
|
+
newDraggableIndex: fs
|
|
2543
2494
|
}, e));
|
|
2544
2495
|
}
|
|
2545
|
-
var G, K, q, J,
|
|
2546
|
-
if (
|
|
2547
|
-
if (
|
|
2496
|
+
var G, K, q, J, os, ss, Y, cs, ls, us, ds, fs, ps, X, ms = !1, hs = !1, gs = [], _s, vs, ys, bs, xs, Ss, Cs, ws, Ts, Es = !1, Ds = !1, Os, Z, ks = [], As = !1, js = [], Ms = typeof document < "u", Ns = To, Ps = So || xo ? "cssFloat" : "float", Fs = Ms && !Eo && !To && "draggable" in document.createElement("div"), Is = function() {
|
|
2497
|
+
if (Ms) {
|
|
2498
|
+
if (xo) return !1;
|
|
2548
2499
|
var e = document.createElement("x");
|
|
2549
2500
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2550
2501
|
}
|
|
2551
|
-
}(),
|
|
2552
|
-
var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
2502
|
+
}(), Ls = function(e, t) {
|
|
2503
|
+
var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Lo(e, 0, t), a = Lo(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
|
|
2553
2504
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2554
2505
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2555
2506
|
if (i && o.float && o.float !== "none") {
|
|
2556
2507
|
var u = o.float === "left" ? "left" : "right";
|
|
2557
2508
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2558
2509
|
}
|
|
2559
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2560
|
-
},
|
|
2510
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Ps] === "none" || a && n[Ps] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2511
|
+
}, Rs = function(e, t, n) {
|
|
2561
2512
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
2562
2513
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2563
|
-
},
|
|
2514
|
+
}, zs = function(e, t) {
|
|
2564
2515
|
var n;
|
|
2565
|
-
return
|
|
2566
|
-
var i = r[
|
|
2567
|
-
if (i && !
|
|
2516
|
+
return gs.some(function(r) {
|
|
2517
|
+
var i = r[Zo].options.emptyInsertThreshold;
|
|
2518
|
+
if (i && !Ro(r)) {
|
|
2568
2519
|
var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2569
2520
|
if (o && s) return n = r;
|
|
2570
2521
|
}
|
|
2571
2522
|
}), n;
|
|
2572
|
-
},
|
|
2523
|
+
}, Bs = function(e) {
|
|
2573
2524
|
function t(e, n) {
|
|
2574
2525
|
return function(r, i, a, o) {
|
|
2575
2526
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2582,31 +2533,31 @@ var G, K, q, J, ns, rs, Y, is, as, os, ss, cs, ls, X, us = !1, ds = !1, fs = [],
|
|
|
2582
2533
|
};
|
|
2583
2534
|
}
|
|
2584
2535
|
var n = {}, r = e.group;
|
|
2585
|
-
|
|
2586
|
-
},
|
|
2587
|
-
!
|
|
2588
|
-
},
|
|
2589
|
-
!
|
|
2536
|
+
r && mo(r) == "object" || (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
2537
|
+
}, Vs = function() {
|
|
2538
|
+
!Is && q && V(q, "display", "none");
|
|
2539
|
+
}, Hs = function() {
|
|
2540
|
+
!Is && q && V(q, "display", "");
|
|
2590
2541
|
};
|
|
2591
|
-
|
|
2592
|
-
if (
|
|
2542
|
+
Ms && !Eo && document.addEventListener("click", function(e) {
|
|
2543
|
+
if (hs) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), hs = !1, !1;
|
|
2593
2544
|
}, !0);
|
|
2594
|
-
var
|
|
2545
|
+
var Us = function(e) {
|
|
2595
2546
|
if (G) {
|
|
2596
2547
|
e = e.touches ? e.touches[0] : e;
|
|
2597
|
-
var t =
|
|
2548
|
+
var t = zs(e.clientX, e.clientY);
|
|
2598
2549
|
if (t) {
|
|
2599
2550
|
var n = {};
|
|
2600
2551
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2601
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
2552
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Zo]._onDragOver(n);
|
|
2602
2553
|
}
|
|
2603
2554
|
}
|
|
2604
|
-
},
|
|
2605
|
-
G && G.parentNode[
|
|
2555
|
+
}, Ws = function(e) {
|
|
2556
|
+
G && G.parentNode[Zo]._isOutsideThisEl(e.target);
|
|
2606
2557
|
};
|
|
2607
2558
|
function Q(e, t) {
|
|
2608
2559
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
2609
|
-
this.el = e, this.options = t =
|
|
2560
|
+
this.el = e, this.options = t = go({}, t), e[Zo] = this;
|
|
2610
2561
|
var n = {
|
|
2611
2562
|
group: null,
|
|
2612
2563
|
sort: !0,
|
|
@@ -2619,7 +2570,7 @@ function Q(e, t) {
|
|
|
2619
2570
|
invertedSwapThreshold: null,
|
|
2620
2571
|
removeCloneOnHide: !0,
|
|
2621
2572
|
direction: function() {
|
|
2622
|
-
return
|
|
2573
|
+
return Ls(e, this.options);
|
|
2623
2574
|
},
|
|
2624
2575
|
ghostClass: "sortable-ghost",
|
|
2625
2576
|
chosenClass: "sortable-chosen",
|
|
@@ -2646,17 +2597,17 @@ function Q(e, t) {
|
|
|
2646
2597
|
x: 0,
|
|
2647
2598
|
y: 0
|
|
2648
2599
|
},
|
|
2649
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
2600
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !wo,
|
|
2650
2601
|
emptyInsertThreshold: 5
|
|
2651
2602
|
};
|
|
2652
|
-
for (var r in
|
|
2653
|
-
for (var i in
|
|
2654
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
2603
|
+
for (var r in rs.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
2604
|
+
for (var i in Bs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2605
|
+
this.nativeDraggable = !t.forceFallback && Fs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), gs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), go(this, Qo());
|
|
2655
2606
|
}
|
|
2656
2607
|
Q.prototype = {
|
|
2657
2608
|
constructor: Q,
|
|
2658
2609
|
_isOutsideThisEl: function(e) {
|
|
2659
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2610
|
+
!this.el.contains(e) && e !== this.el && (ws = null);
|
|
2660
2611
|
},
|
|
2661
2612
|
_getDirection: function(e, t) {
|
|
2662
2613
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
@@ -2664,8 +2615,8 @@ Q.prototype = {
|
|
|
2664
2615
|
_onTapStart: function(e) {
|
|
2665
2616
|
if (e.cancelable) {
|
|
2666
2617
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
2667
|
-
if (
|
|
2668
|
-
if (
|
|
2618
|
+
if (ec(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && wo && s && s.tagName.toUpperCase() === "SELECT") && (s = Ao(s, r.draggable, n, !1), !(s && s.animated) && ss !== s)) {
|
|
2619
|
+
if (ls = zo(s), ds = zo(s, r.draggable), typeof l == "function") {
|
|
2669
2620
|
if (l.call(this, e, s, this)) {
|
|
2670
2621
|
W({
|
|
2671
2622
|
sortable: t,
|
|
@@ -2678,7 +2629,7 @@ Q.prototype = {
|
|
|
2678
2629
|
return;
|
|
2679
2630
|
}
|
|
2680
2631
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
2681
|
-
if (r =
|
|
2632
|
+
if (r = Ao(c, r.trim(), n, !1), r) return W({
|
|
2682
2633
|
sortable: t,
|
|
2683
2634
|
rootEl: r,
|
|
2684
2635
|
name: "filter",
|
|
@@ -2690,7 +2641,7 @@ Q.prototype = {
|
|
|
2690
2641
|
i && e.cancelable && e.preventDefault();
|
|
2691
2642
|
return;
|
|
2692
2643
|
}
|
|
2693
|
-
r.handle && !
|
|
2644
|
+
r.handle && !Ao(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
2694
2645
|
}
|
|
2695
2646
|
}
|
|
2696
2647
|
},
|
|
@@ -2698,19 +2649,19 @@ Q.prototype = {
|
|
|
2698
2649
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2699
2650
|
if (n && !G && n.parentNode === i) {
|
|
2700
2651
|
var c = H(n);
|
|
2701
|
-
if (J = i, G = n, K = G.parentNode,
|
|
2652
|
+
if (J = i, G = n, K = G.parentNode, os = G.nextSibling, ss = n, ps = a.group, Q.dragged = G, _s = {
|
|
2702
2653
|
target: G,
|
|
2703
2654
|
clientX: (t || e).clientX,
|
|
2704
2655
|
clientY: (t || e).clientY
|
|
2705
|
-
},
|
|
2706
|
-
U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !
|
|
2656
|
+
}, xs = _s.clientX - c.left, Ss = _s.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
2657
|
+
U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !Co && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
|
|
2707
2658
|
sortable: r,
|
|
2708
2659
|
name: "choose",
|
|
2709
2660
|
originalEvent: e
|
|
2710
|
-
}),
|
|
2661
|
+
}), Mo(G, a.chosenClass, !0));
|
|
2711
2662
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2712
|
-
|
|
2713
|
-
}), z(o, "dragover",
|
|
2663
|
+
Po(G, e.trim(), qs);
|
|
2664
|
+
}), z(o, "dragover", Us), z(o, "mousemove", Us), z(o, "touchmove", Us), z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop), Co && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(So || xo))) {
|
|
2714
2665
|
if (Q.eventCanceled) {
|
|
2715
2666
|
this._onDrop();
|
|
2716
2667
|
return;
|
|
@@ -2724,7 +2675,7 @@ Q.prototype = {
|
|
|
2724
2675
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
2725
2676
|
},
|
|
2726
2677
|
_disableDelayedDrag: function() {
|
|
2727
|
-
G &&
|
|
2678
|
+
G && qs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2728
2679
|
},
|
|
2729
2680
|
_disableDelayedDragEvents: function() {
|
|
2730
2681
|
var e = this.el.ownerDocument;
|
|
@@ -2733,16 +2684,16 @@ Q.prototype = {
|
|
|
2733
2684
|
_triggerDragStart: function(e, t) {
|
|
2734
2685
|
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : t ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(G, "dragend", this), z(J, "dragstart", this._onDragStart));
|
|
2735
2686
|
try {
|
|
2736
|
-
document.selection ?
|
|
2687
|
+
document.selection ? tc(function() {
|
|
2737
2688
|
document.selection.empty();
|
|
2738
2689
|
}) : window.getSelection().removeAllRanges();
|
|
2739
2690
|
} catch {}
|
|
2740
2691
|
},
|
|
2741
2692
|
_dragStarted: function(e, t) {
|
|
2742
|
-
if (
|
|
2743
|
-
U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover",
|
|
2693
|
+
if (ms = !1, J && G) {
|
|
2694
|
+
U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Ws);
|
|
2744
2695
|
var n = this.options;
|
|
2745
|
-
!e &&
|
|
2696
|
+
!e && Mo(G, n.dragClass, !1), Mo(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
|
|
2746
2697
|
sortable: this,
|
|
2747
2698
|
name: "start",
|
|
2748
2699
|
originalEvent: t
|
|
@@ -2750,33 +2701,33 @@ Q.prototype = {
|
|
|
2750
2701
|
} else this._nulling();
|
|
2751
2702
|
},
|
|
2752
2703
|
_emulateDragOver: function() {
|
|
2753
|
-
if (
|
|
2754
|
-
this._lastX =
|
|
2755
|
-
for (var e = document.elementFromPoint(
|
|
2756
|
-
if (G.parentNode[
|
|
2757
|
-
if (t[
|
|
2704
|
+
if (vs) {
|
|
2705
|
+
this._lastX = vs.clientX, this._lastY = vs.clientY, Vs();
|
|
2706
|
+
for (var e = document.elementFromPoint(vs.clientX, vs.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(vs.clientX, vs.clientY), e !== t);) t = e;
|
|
2707
|
+
if (G.parentNode[Zo]._isOutsideThisEl(e), t) do {
|
|
2708
|
+
if (t[Zo]) {
|
|
2758
2709
|
var n = void 0;
|
|
2759
|
-
if (n = t[
|
|
2760
|
-
clientX:
|
|
2761
|
-
clientY:
|
|
2710
|
+
if (n = t[Zo]._onDragOver({
|
|
2711
|
+
clientX: vs.clientX,
|
|
2712
|
+
clientY: vs.clientY,
|
|
2762
2713
|
target: e,
|
|
2763
2714
|
rootEl: t
|
|
2764
2715
|
}), n && !this.options.dragoverBubble) break;
|
|
2765
2716
|
}
|
|
2766
2717
|
e = t;
|
|
2767
2718
|
} while (t = t.parentNode);
|
|
2768
|
-
|
|
2719
|
+
Hs();
|
|
2769
2720
|
}
|
|
2770
2721
|
},
|
|
2771
2722
|
_onTouchMove: function(e) {
|
|
2772
|
-
if (
|
|
2773
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q &&
|
|
2774
|
-
if (!Q.active && !
|
|
2723
|
+
if (_s) {
|
|
2724
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && No(q, !0), o = q && a && a.a, s = q && a && a.d, c = Ns && Z && Bo(Z), l = (i.clientX - _s.clientX + r.x) / (o || 1) + (c ? c[0] - ks[0] : 0) / (o || 1), u = (i.clientY - _s.clientY + r.y) / (s || 1) + (c ? c[1] - ks[1] : 0) / (s || 1);
|
|
2725
|
+
if (!Q.active && !ms) {
|
|
2775
2726
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2776
2727
|
this._onDragStart(e, !0);
|
|
2777
2728
|
}
|
|
2778
2729
|
if (q) {
|
|
2779
|
-
a ? (a.e += l - (
|
|
2730
|
+
a ? (a.e += l - (ys || 0), a.f += u - (bs || 0)) : a = {
|
|
2780
2731
|
a: 1,
|
|
2781
2732
|
b: 0,
|
|
2782
2733
|
c: 0,
|
|
@@ -2785,35 +2736,35 @@ Q.prototype = {
|
|
|
2785
2736
|
f: u
|
|
2786
2737
|
};
|
|
2787
2738
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2788
|
-
V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d),
|
|
2739
|
+
V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), ys = l, bs = u, vs = i;
|
|
2789
2740
|
}
|
|
2790
2741
|
e.cancelable && e.preventDefault();
|
|
2791
2742
|
}
|
|
2792
2743
|
},
|
|
2793
2744
|
_appendGhost: function() {
|
|
2794
2745
|
if (!q) {
|
|
2795
|
-
var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0,
|
|
2796
|
-
if (
|
|
2746
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, Ns, !0, e), n = this.options;
|
|
2747
|
+
if (Ns) {
|
|
2797
2748
|
for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
2798
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
2749
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Fo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Fo(), ks = Bo(Z);
|
|
2799
2750
|
}
|
|
2800
|
-
q = G.cloneNode(!0),
|
|
2751
|
+
q = G.cloneNode(!0), Mo(q, n.ghostClass, !1), Mo(q, n.fallbackClass, !0), Mo(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", Ns ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", xs / parseInt(q.style.width) * 100 + "% " + Ss / parseInt(q.style.height) * 100 + "%");
|
|
2801
2752
|
}
|
|
2802
2753
|
},
|
|
2803
2754
|
_onDragStart: function(e, t) {
|
|
2804
2755
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
2805
|
-
U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y =
|
|
2756
|
+
U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y = Yo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Mo(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = tc(function() {
|
|
2806
2757
|
U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
|
|
2807
2758
|
sortable: n,
|
|
2808
2759
|
name: "clone"
|
|
2809
2760
|
}));
|
|
2810
|
-
}), !t &&
|
|
2761
|
+
}), !t && Mo(G, i.dragClass, !0), t ? (hs = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (B(document, "mouseup", n._onDrop), B(document, "touchend", n._onDrop), B(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), z(document, "drop", n), V(G, "transform", "translateZ(0)")), ms = !0, n._dragStartId = tc(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), Cs = !0, wo && V(document.body, "user-select", "none"));
|
|
2811
2762
|
},
|
|
2812
2763
|
_onDragOver: function(e) {
|
|
2813
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
2814
|
-
if (
|
|
2764
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = ps === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
2765
|
+
if (As) return;
|
|
2815
2766
|
function h(o, s) {
|
|
2816
|
-
U(o, p,
|
|
2767
|
+
U(o, p, po({
|
|
2817
2768
|
evt: e,
|
|
2818
2769
|
isOwner: l,
|
|
2819
2770
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2825,7 +2776,7 @@ Q.prototype = {
|
|
|
2825
2776
|
target: n,
|
|
2826
2777
|
completed: _,
|
|
2827
2778
|
onMove: function(n, i) {
|
|
2828
|
-
return
|
|
2779
|
+
return Ks(J, t, G, r, n, H(n), e, i);
|
|
2829
2780
|
},
|
|
2830
2781
|
changed: v
|
|
2831
2782
|
}, s));
|
|
@@ -2834,50 +2785,50 @@ Q.prototype = {
|
|
|
2834
2785
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2835
2786
|
}
|
|
2836
2787
|
function _(r) {
|
|
2837
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
2788
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Mo(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Mo(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
2838
2789
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2839
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (
|
|
2790
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (ws = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Zo]._isOutsideThisEl(e.target), !r && Us(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2840
2791
|
}
|
|
2841
2792
|
function v() {
|
|
2842
|
-
|
|
2793
|
+
us = zo(G), fs = zo(G, o.draggable), W({
|
|
2843
2794
|
sortable: p,
|
|
2844
2795
|
name: "change",
|
|
2845
2796
|
toEl: t,
|
|
2846
|
-
newIndex:
|
|
2847
|
-
newDraggableIndex:
|
|
2797
|
+
newIndex: us,
|
|
2798
|
+
newDraggableIndex: fs,
|
|
2848
2799
|
originalEvent: e
|
|
2849
2800
|
});
|
|
2850
2801
|
}
|
|
2851
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
2802
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ao(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
2852
2803
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2853
|
-
if (
|
|
2804
|
+
if (hs = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = ps.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
2854
2805
|
if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
2855
|
-
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
2856
|
-
var y =
|
|
2857
|
-
if (!y ||
|
|
2806
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (os ? J.insertBefore(G, os) : J.appendChild(G)), _(!0);
|
|
2807
|
+
var y = Ro(t, o.draggable);
|
|
2808
|
+
if (!y || Xs(e, f, this) && !y.animated) {
|
|
2858
2809
|
if (y === G) return _(!1);
|
|
2859
|
-
if (y && t === e.target && (n = y), n && (i = H(n)),
|
|
2860
|
-
} else if (y &&
|
|
2861
|
-
var b =
|
|
2810
|
+
if (y && t === e.target && (n = y), n && (i = H(n)), Ks(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
|
|
2811
|
+
} else if (y && Ys(e, f, this)) {
|
|
2812
|
+
var b = Lo(t, 0, o, !0);
|
|
2862
2813
|
if (b === G) return _(!1);
|
|
2863
|
-
if (n = b, i = H(n),
|
|
2814
|
+
if (n = b, i = H(n), Ks(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
2864
2815
|
} else if (n.parentNode === t) {
|
|
2865
2816
|
i = H(n);
|
|
2866
|
-
var x = 0, S, C = G.parentNode !== t, w = !
|
|
2867
|
-
|
|
2817
|
+
var x = 0, S, C = G.parentNode !== t, w = !Rs(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Io(n, "top", "top") || Io(G, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
2818
|
+
ws !== n && (S = i[T], Es = !1, Ds = !w && o.invertSwap || C), x = Zs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ds, ws === n);
|
|
2868
2819
|
var O;
|
|
2869
2820
|
if (x !== 0) {
|
|
2870
|
-
var k =
|
|
2821
|
+
var k = zo(G);
|
|
2871
2822
|
do
|
|
2872
2823
|
k -= x, O = K.children[k];
|
|
2873
2824
|
while (O && (V(O, "display") === "none" || O === q));
|
|
2874
2825
|
}
|
|
2875
2826
|
if (x === 0 || O === n) return _(!1);
|
|
2876
|
-
|
|
2827
|
+
ws = n, Ts = x;
|
|
2877
2828
|
var A = n.nextElementSibling, j = !1;
|
|
2878
2829
|
j = x === 1;
|
|
2879
|
-
var
|
|
2880
|
-
if (
|
|
2830
|
+
var M = Ks(J, t, G, r, n, i, e, j);
|
|
2831
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), As = !0, setTimeout(Js, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Jo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Ds && (Os = Math.abs(S - H(n)[T])), v(), _(!0);
|
|
2881
2832
|
}
|
|
2882
2833
|
if (t.contains(G)) return _(!1);
|
|
2883
2834
|
}
|
|
@@ -2885,7 +2836,7 @@ Q.prototype = {
|
|
|
2885
2836
|
},
|
|
2886
2837
|
_ignoreWhileAnimating: null,
|
|
2887
2838
|
_offMoveEvents: function() {
|
|
2888
|
-
B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover",
|
|
2839
|
+
B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Us), B(document, "mousemove", Us), B(document, "touchmove", Us);
|
|
2889
2840
|
},
|
|
2890
2841
|
_offUpEvents: function() {
|
|
2891
2842
|
var e = this.el.ownerDocument;
|
|
@@ -2893,14 +2844,14 @@ Q.prototype = {
|
|
|
2893
2844
|
},
|
|
2894
2845
|
_onDrop: function(e) {
|
|
2895
2846
|
var t = this.el, n = this.options;
|
|
2896
|
-
|
|
2847
|
+
us = zo(G), fs = zo(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, us = zo(G), fs = zo(G, n.draggable), Q.eventCanceled || (ms = !1, Ds = !1, Es = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), nc(this.cloneId), nc(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (Cs && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && B(G, "dragend", this), qs(G), G.style["will-change"] = "", Cs && !ms && Mo(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Mo(G, this.options.chosenClass, !1), W({
|
|
2897
2848
|
sortable: this,
|
|
2898
2849
|
name: "unchoose",
|
|
2899
2850
|
toEl: K,
|
|
2900
2851
|
newIndex: null,
|
|
2901
2852
|
newDraggableIndex: null,
|
|
2902
2853
|
originalEvent: e
|
|
2903
|
-
}), J === K ?
|
|
2854
|
+
}), J === K ? us !== ls && us >= 0 && (W({
|
|
2904
2855
|
sortable: this,
|
|
2905
2856
|
name: "update",
|
|
2906
2857
|
toEl: K,
|
|
@@ -2910,7 +2861,7 @@ Q.prototype = {
|
|
|
2910
2861
|
name: "sort",
|
|
2911
2862
|
toEl: K,
|
|
2912
2863
|
originalEvent: e
|
|
2913
|
-
})) : (
|
|
2864
|
+
})) : (us >= 0 && (W({
|
|
2914
2865
|
rootEl: K,
|
|
2915
2866
|
name: "add",
|
|
2916
2867
|
toEl: K,
|
|
@@ -2932,7 +2883,7 @@ Q.prototype = {
|
|
|
2932
2883
|
name: "sort",
|
|
2933
2884
|
toEl: K,
|
|
2934
2885
|
originalEvent: e
|
|
2935
|
-
})), X && X.save()), Q.active && ((
|
|
2886
|
+
})), X && X.save()), Q.active && ((us == null || us === -1) && (us = ls, fs = ds), W({
|
|
2936
2887
|
sortable: this,
|
|
2937
2888
|
name: "end",
|
|
2938
2889
|
toEl: K,
|
|
@@ -2940,9 +2891,9 @@ Q.prototype = {
|
|
|
2940
2891
|
}), this.save())))), this._nulling();
|
|
2941
2892
|
},
|
|
2942
2893
|
_nulling: function() {
|
|
2943
|
-
U("nulling", this), J = G = K = q =
|
|
2894
|
+
U("nulling", this), J = G = K = q = os = Y = ss = cs = _s = vs = Cs = us = fs = ls = ds = ws = Ts = X = ps = Q.dragged = Q.ghost = Q.clone = Q.active = null, js.forEach(function(e) {
|
|
2944
2895
|
e.checked = !0;
|
|
2945
|
-
}),
|
|
2896
|
+
}), js.length = ys = bs = 0;
|
|
2946
2897
|
},
|
|
2947
2898
|
handleEvent: function(e) {
|
|
2948
2899
|
switch (e.type) {
|
|
@@ -2952,20 +2903,20 @@ Q.prototype = {
|
|
|
2952
2903
|
break;
|
|
2953
2904
|
case "dragenter":
|
|
2954
2905
|
case "dragover":
|
|
2955
|
-
G && (this._onDragOver(e),
|
|
2906
|
+
G && (this._onDragOver(e), Gs(e));
|
|
2956
2907
|
break;
|
|
2957
2908
|
case "selectstart": e.preventDefault();
|
|
2958
2909
|
}
|
|
2959
2910
|
},
|
|
2960
2911
|
toArray: function() {
|
|
2961
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
2912
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ao(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || $s(t));
|
|
2962
2913
|
return e;
|
|
2963
2914
|
},
|
|
2964
2915
|
sort: function(e, t) {
|
|
2965
2916
|
var n = {}, r = this.el;
|
|
2966
2917
|
this.toArray().forEach(function(e, t) {
|
|
2967
2918
|
var i = r.children[t];
|
|
2968
|
-
|
|
2919
|
+
Ao(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
2969
2920
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
2970
2921
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
2971
2922
|
}), t && this.animateAll();
|
|
@@ -2975,122 +2926,122 @@ Q.prototype = {
|
|
|
2975
2926
|
e && e.set && e.set(this);
|
|
2976
2927
|
},
|
|
2977
2928
|
closest: function(e, t) {
|
|
2978
|
-
return
|
|
2929
|
+
return Ao(e, t || this.options.draggable, this.el, !1);
|
|
2979
2930
|
},
|
|
2980
2931
|
option: function(e, t) {
|
|
2981
2932
|
var n = this.options;
|
|
2982
2933
|
if (t === void 0) return n[e];
|
|
2983
|
-
var r =
|
|
2984
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
2934
|
+
var r = rs.modifyOption(this, e, t);
|
|
2935
|
+
n[e] = r === void 0 ? t : r, e === "group" && Bs(n);
|
|
2985
2936
|
},
|
|
2986
2937
|
destroy: function() {
|
|
2987
2938
|
U("destroy", this);
|
|
2988
2939
|
var e = this.el;
|
|
2989
|
-
e[
|
|
2940
|
+
e[Zo] = null, B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart), B(e, "pointerdown", this._onTapStart), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
2990
2941
|
e.removeAttribute("draggable");
|
|
2991
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2942
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), gs.splice(gs.indexOf(this.el), 1), this.el = e = null;
|
|
2992
2943
|
},
|
|
2993
2944
|
_hideClone: function() {
|
|
2994
|
-
if (!
|
|
2945
|
+
if (!cs) {
|
|
2995
2946
|
if (U("hideClone", this), Q.eventCanceled) return;
|
|
2996
|
-
V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y),
|
|
2947
|
+
V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), cs = !0;
|
|
2997
2948
|
}
|
|
2998
2949
|
},
|
|
2999
2950
|
_showClone: function(e) {
|
|
3000
2951
|
if (e.lastPutMode !== "clone") this._hideClone();
|
|
3001
|
-
else if (
|
|
2952
|
+
else if (cs) {
|
|
3002
2953
|
if (U("showClone", this), Q.eventCanceled) return;
|
|
3003
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) :
|
|
2954
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : os ? J.insertBefore(Y, os) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), cs = !1;
|
|
3004
2955
|
}
|
|
3005
2956
|
}
|
|
3006
2957
|
};
|
|
3007
|
-
function
|
|
2958
|
+
function Gs(e) {
|
|
3008
2959
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3009
2960
|
}
|
|
3010
|
-
function
|
|
3011
|
-
var c, l = e[
|
|
3012
|
-
return window.CustomEvent && !
|
|
2961
|
+
function Ks(e, t, n, r, i, a, o, s) {
|
|
2962
|
+
var c, l = e[Zo], u = l.options.onMove, d;
|
|
2963
|
+
return window.CustomEvent && !xo && !So ? c = new CustomEvent("move", {
|
|
3013
2964
|
bubbles: !0,
|
|
3014
2965
|
cancelable: !0
|
|
3015
2966
|
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || H(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
3016
2967
|
}
|
|
3017
|
-
function
|
|
2968
|
+
function qs(e) {
|
|
3018
2969
|
e.draggable = !1;
|
|
3019
2970
|
}
|
|
3020
|
-
function
|
|
3021
|
-
|
|
2971
|
+
function Js() {
|
|
2972
|
+
As = !1;
|
|
3022
2973
|
}
|
|
3023
|
-
function
|
|
3024
|
-
var r = H(
|
|
2974
|
+
function Ys(e, t, n) {
|
|
2975
|
+
var r = H(Lo(n.el, 0, n.options, !0)), i = Xo(n.el, n.options, q), a = 10;
|
|
3025
2976
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
3026
2977
|
}
|
|
3027
|
-
function
|
|
3028
|
-
var r = H(
|
|
2978
|
+
function Xs(e, t, n) {
|
|
2979
|
+
var r = H(Ro(n.el, n.options.draggable)), i = Xo(n.el, n.options, q), a = 10;
|
|
3029
2980
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
3030
2981
|
}
|
|
3031
|
-
function
|
|
2982
|
+
function Zs(e, t, n, r, i, a, o, s) {
|
|
3032
2983
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
3033
2984
|
if (!o) {
|
|
3034
|
-
if (s &&
|
|
3035
|
-
if (!
|
|
3036
|
-
else if (
|
|
3037
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
2985
|
+
if (s && Os < l * i) {
|
|
2986
|
+
if (!Es && (Ts === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Es = !0), Es) f = !0;
|
|
2987
|
+
else if (Ts === 1 ? c < u + Os : c > d - Os) return -Ts;
|
|
2988
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Qs(t);
|
|
3038
2989
|
}
|
|
3039
2990
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
3040
2991
|
}
|
|
3041
|
-
function
|
|
3042
|
-
return
|
|
2992
|
+
function Qs(e) {
|
|
2993
|
+
return zo(G) < zo(e) ? 1 : -1;
|
|
3043
2994
|
}
|
|
3044
|
-
function
|
|
2995
|
+
function $s(e) {
|
|
3045
2996
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
3046
2997
|
return r.toString(36);
|
|
3047
2998
|
}
|
|
3048
|
-
function
|
|
3049
|
-
|
|
2999
|
+
function ec(e) {
|
|
3000
|
+
js.length = 0;
|
|
3050
3001
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
3051
3002
|
var r = t[n];
|
|
3052
|
-
r.checked &&
|
|
3003
|
+
r.checked && js.push(r);
|
|
3053
3004
|
}
|
|
3054
3005
|
}
|
|
3055
|
-
function
|
|
3006
|
+
function tc(e) {
|
|
3056
3007
|
return setTimeout(e, 0);
|
|
3057
3008
|
}
|
|
3058
|
-
function
|
|
3009
|
+
function nc(e) {
|
|
3059
3010
|
return clearTimeout(e);
|
|
3060
3011
|
}
|
|
3061
|
-
|
|
3062
|
-
(Q.active ||
|
|
3012
|
+
Ms && z(document, "touchmove", function(e) {
|
|
3013
|
+
(Q.active || ms) && e.cancelable && e.preventDefault();
|
|
3063
3014
|
}), Q.utils = {
|
|
3064
3015
|
on: z,
|
|
3065
3016
|
off: B,
|
|
3066
3017
|
css: V,
|
|
3067
|
-
find:
|
|
3018
|
+
find: Po,
|
|
3068
3019
|
is: function(e, t) {
|
|
3069
|
-
return !!
|
|
3070
|
-
},
|
|
3071
|
-
extend:
|
|
3072
|
-
throttle:
|
|
3073
|
-
closest:
|
|
3074
|
-
toggleClass:
|
|
3075
|
-
clone:
|
|
3076
|
-
index:
|
|
3077
|
-
nextTick:
|
|
3078
|
-
cancelNextTick:
|
|
3079
|
-
detectDirection:
|
|
3080
|
-
getChild:
|
|
3020
|
+
return !!Ao(e, t, e, !1);
|
|
3021
|
+
},
|
|
3022
|
+
extend: Uo,
|
|
3023
|
+
throttle: Ko,
|
|
3024
|
+
closest: Ao,
|
|
3025
|
+
toggleClass: Mo,
|
|
3026
|
+
clone: Yo,
|
|
3027
|
+
index: zo,
|
|
3028
|
+
nextTick: tc,
|
|
3029
|
+
cancelNextTick: nc,
|
|
3030
|
+
detectDirection: Ls,
|
|
3031
|
+
getChild: Lo
|
|
3081
3032
|
}, Q.get = function(e) {
|
|
3082
|
-
return e[
|
|
3033
|
+
return e[Zo];
|
|
3083
3034
|
}, Q.mount = function() {
|
|
3084
3035
|
var e = [...arguments];
|
|
3085
3036
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3086
3037
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3087
|
-
e.utils && (Q.utils =
|
|
3038
|
+
e.utils && (Q.utils = po(po({}, Q.utils), e.utils)), rs.mount(e);
|
|
3088
3039
|
});
|
|
3089
3040
|
}, Q.create = function(e, t) {
|
|
3090
3041
|
return new Q(e, t);
|
|
3091
|
-
}, Q.version =
|
|
3092
|
-
var $ = [],
|
|
3093
|
-
function
|
|
3042
|
+
}, Q.version = yo;
|
|
3043
|
+
var $ = [], rc, ic, ac = !1, oc, sc, cc, lc;
|
|
3044
|
+
function uc() {
|
|
3094
3045
|
function e() {
|
|
3095
3046
|
for (var e in this.defaults = {
|
|
3096
3047
|
scroll: !0,
|
|
@@ -3110,63 +3061,63 @@ function oc() {
|
|
|
3110
3061
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3111
3062
|
},
|
|
3112
3063
|
drop: function() {
|
|
3113
|
-
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
3064
|
+
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), fc(), dc(), qo();
|
|
3114
3065
|
},
|
|
3115
3066
|
nulling: function() {
|
|
3116
|
-
|
|
3067
|
+
cc = ic = rc = ac = lc = oc = sc = null, $.length = 0;
|
|
3117
3068
|
},
|
|
3118
3069
|
_handleFallbackAutoScroll: function(e) {
|
|
3119
3070
|
this._handleAutoScroll(e, !0);
|
|
3120
3071
|
},
|
|
3121
3072
|
_handleAutoScroll: function(e, t) {
|
|
3122
3073
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3123
|
-
if (
|
|
3124
|
-
|
|
3125
|
-
var o =
|
|
3126
|
-
|
|
3127
|
-
var a =
|
|
3128
|
-
a !== o && (o = a,
|
|
3129
|
-
}, 10),
|
|
3074
|
+
if (cc = e, t || this.options.forceAutoScrollFallback || So || xo || wo) {
|
|
3075
|
+
pc(e, this.options, a, t);
|
|
3076
|
+
var o = Ho(a, !0);
|
|
3077
|
+
ac && (!lc || r !== oc || i !== sc) && (lc && fc(), lc = setInterval(function() {
|
|
3078
|
+
var a = Ho(document.elementFromPoint(r, i), !0);
|
|
3079
|
+
a !== o && (o = a, dc()), pc(e, n.options, a, t);
|
|
3080
|
+
}, 10), oc = r, sc = i);
|
|
3130
3081
|
} else {
|
|
3131
|
-
if (!this.options.bubbleScroll ||
|
|
3132
|
-
|
|
3082
|
+
if (!this.options.bubbleScroll || Ho(a, !0) === Fo()) {
|
|
3083
|
+
dc();
|
|
3133
3084
|
return;
|
|
3134
3085
|
}
|
|
3135
|
-
|
|
3086
|
+
pc(e, this.options, Ho(a, !1), !1);
|
|
3136
3087
|
}
|
|
3137
3088
|
}
|
|
3138
|
-
},
|
|
3089
|
+
}, go(e, {
|
|
3139
3090
|
pluginName: "scroll",
|
|
3140
3091
|
initializeByDefault: !0
|
|
3141
3092
|
});
|
|
3142
3093
|
}
|
|
3143
|
-
function
|
|
3094
|
+
function dc() {
|
|
3144
3095
|
$.forEach(function(e) {
|
|
3145
3096
|
clearInterval(e.pid);
|
|
3146
3097
|
}), $ = [];
|
|
3147
3098
|
}
|
|
3148
|
-
function
|
|
3149
|
-
clearInterval(
|
|
3099
|
+
function fc() {
|
|
3100
|
+
clearInterval(lc);
|
|
3150
3101
|
}
|
|
3151
|
-
var
|
|
3102
|
+
var pc = Ko(function(e, t, n, r) {
|
|
3152
3103
|
if (t.scroll) {
|
|
3153
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
3154
|
-
|
|
3155
|
-
var d = 0, f =
|
|
3104
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Fo(), l = !1, u;
|
|
3105
|
+
ic !== n && (ic = n, dc(), rc = t.scroll, u = t.scrollFn, rc === !0 && (rc = Ho(n, !0)));
|
|
3106
|
+
var d = 0, f = rc;
|
|
3156
3107
|
do {
|
|
3157
3108
|
var p = f, m = H(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = V(p), E = p.scrollLeft, D = p.scrollTop;
|
|
3158
3109
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
3159
3110
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
3160
3111
|
if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
|
|
3161
3112
|
($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
3162
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3113
|
+
r && this.layer === 0 && Q.active._onTouchMove(cc);
|
|
3163
3114
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3164
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
3115
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[Zo], n, t, e, cc, $[this.layer].el) !== "continue" || Jo($[this.layer].el, n, t);
|
|
3165
3116
|
}.bind({ layer: d }), 24))), d++;
|
|
3166
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3167
|
-
|
|
3117
|
+
} while (t.bubbleScroll && f !== c && (f = Ho(f, !1)));
|
|
3118
|
+
ac = l;
|
|
3168
3119
|
}
|
|
3169
|
-
}, 30),
|
|
3120
|
+
}, 30), mc = function(e) {
|
|
3170
3121
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3171
3122
|
if (t) {
|
|
3172
3123
|
var c = n || i;
|
|
@@ -3178,8 +3129,8 @@ var lc = Ho(function(e, t, n, r) {
|
|
|
3178
3129
|
}));
|
|
3179
3130
|
}
|
|
3180
3131
|
};
|
|
3181
|
-
function
|
|
3182
|
-
|
|
3132
|
+
function hc() {}
|
|
3133
|
+
hc.prototype = {
|
|
3183
3134
|
startIndex: null,
|
|
3184
3135
|
dragStart: function(e) {
|
|
3185
3136
|
var t = e.oldDraggableIndex;
|
|
@@ -3188,67 +3139,67 @@ dc.prototype = {
|
|
|
3188
3139
|
onSpill: function(e) {
|
|
3189
3140
|
var t = e.dragEl, n = e.putSortable;
|
|
3190
3141
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
3191
|
-
var r =
|
|
3142
|
+
var r = Lo(this.sortable.el, this.startIndex, this.options);
|
|
3192
3143
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3193
3144
|
},
|
|
3194
|
-
drop:
|
|
3195
|
-
},
|
|
3196
|
-
function
|
|
3197
|
-
|
|
3145
|
+
drop: mc
|
|
3146
|
+
}, go(hc, { pluginName: "revertOnSpill" });
|
|
3147
|
+
function gc() {}
|
|
3148
|
+
gc.prototype = {
|
|
3198
3149
|
onSpill: function(e) {
|
|
3199
3150
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3200
3151
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3201
3152
|
},
|
|
3202
|
-
drop:
|
|
3203
|
-
},
|
|
3204
|
-
function
|
|
3153
|
+
drop: mc
|
|
3154
|
+
}, go(gc, { pluginName: "removeOnSpill" }), Q.mount(new uc()), Q.mount(gc, hc);
|
|
3155
|
+
function _c(e) {
|
|
3205
3156
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3206
3157
|
}
|
|
3207
|
-
function
|
|
3158
|
+
function vc(t) {
|
|
3208
3159
|
v() && e(t);
|
|
3209
3160
|
}
|
|
3210
|
-
function
|
|
3161
|
+
function yc(e) {
|
|
3211
3162
|
v() ? D(e) : r(e);
|
|
3212
3163
|
}
|
|
3213
|
-
var
|
|
3214
|
-
function
|
|
3215
|
-
|
|
3164
|
+
var bc = null, xc = null;
|
|
3165
|
+
function Sc(e = null, t = null) {
|
|
3166
|
+
bc = e, xc = t;
|
|
3216
3167
|
}
|
|
3217
|
-
function
|
|
3168
|
+
function Cc() {
|
|
3218
3169
|
return {
|
|
3219
|
-
data:
|
|
3220
|
-
clonedData:
|
|
3170
|
+
data: bc,
|
|
3171
|
+
clonedData: xc
|
|
3221
3172
|
};
|
|
3222
3173
|
}
|
|
3223
|
-
var
|
|
3224
|
-
function
|
|
3174
|
+
var wc = Symbol("cloneElement");
|
|
3175
|
+
function Tc(...e) {
|
|
3225
3176
|
let t = v()?.proxy, n = null, i = e[0], [, a, o] = e;
|
|
3226
3177
|
Array.isArray(k(a)) || (o = a, a = null);
|
|
3227
|
-
let s = null, { immediate: c = !0, clone: l =
|
|
3178
|
+
let s = null, { immediate: c = !0, clone: l = _c, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(o) ?? {};
|
|
3228
3179
|
function p(e) {
|
|
3229
3180
|
let { from: t, oldIndex: r, item: i } = e, o = Array.from(t.childNodes);
|
|
3230
3181
|
n = u && !d ? o.slice(0, -1) : o;
|
|
3231
3182
|
let s = k(k(a)?.[r]), c = l(s);
|
|
3232
|
-
|
|
3183
|
+
Sc(s, c), i[wc] = c;
|
|
3233
3184
|
}
|
|
3234
3185
|
function m(e) {
|
|
3235
|
-
let t = e.item[
|
|
3236
|
-
if (!
|
|
3237
|
-
if (
|
|
3186
|
+
let t = e.item[wc];
|
|
3187
|
+
if (!eo(t)) {
|
|
3188
|
+
if (ro(e.item), A(a)) {
|
|
3238
3189
|
let n = [...k(a)];
|
|
3239
|
-
a.value =
|
|
3190
|
+
a.value = $a(n, e.newDraggableIndex, t);
|
|
3240
3191
|
return;
|
|
3241
3192
|
}
|
|
3242
|
-
|
|
3193
|
+
$a(k(a), e.newDraggableIndex, t);
|
|
3243
3194
|
}
|
|
3244
3195
|
}
|
|
3245
3196
|
function h(e) {
|
|
3246
3197
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: o, clone: s } = e;
|
|
3247
|
-
if (
|
|
3198
|
+
if (no(t, n, r), o === "clone") ro(s);
|
|
3248
3199
|
else if (A(a)) {
|
|
3249
3200
|
let e = [...k(a)];
|
|
3250
|
-
a.value =
|
|
3251
|
-
} else
|
|
3201
|
+
a.value = Qa(e, i);
|
|
3202
|
+
} else Qa(k(a), i);
|
|
3252
3203
|
}
|
|
3253
3204
|
function g(e) {
|
|
3254
3205
|
if (f) {
|
|
@@ -3256,10 +3207,10 @@ function xc(...e) {
|
|
|
3256
3207
|
return;
|
|
3257
3208
|
}
|
|
3258
3209
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: o } = e;
|
|
3259
|
-
if (
|
|
3210
|
+
if (ro(n), no(t, n, r), A(a)) {
|
|
3260
3211
|
let e = [...k(a)];
|
|
3261
|
-
a.value =
|
|
3262
|
-
} else
|
|
3212
|
+
a.value = Ya(e, i, o);
|
|
3213
|
+
} else Ya(k(a), i, o);
|
|
3263
3214
|
}
|
|
3264
3215
|
function _(e) {
|
|
3265
3216
|
let { newIndex: t, oldIndex: i, from: a, to: o } = e, s = null, c = t === i && a === o;
|
|
@@ -3278,7 +3229,7 @@ function xc(...e) {
|
|
|
3278
3229
|
n = null;
|
|
3279
3230
|
}
|
|
3280
3231
|
r(() => {
|
|
3281
|
-
if (
|
|
3232
|
+
if (Sc(), s) throw s;
|
|
3282
3233
|
});
|
|
3283
3234
|
}
|
|
3284
3235
|
let y = {
|
|
@@ -3290,19 +3241,19 @@ function xc(...e) {
|
|
|
3290
3241
|
};
|
|
3291
3242
|
function b(e) {
|
|
3292
3243
|
let n = k(i);
|
|
3293
|
-
return e ||=
|
|
3244
|
+
return e ||= to(n) ? io(n, t?.$el) : n, e && !so(e) && (e = e.$el), e || Ja("Root element not found"), e;
|
|
3294
3245
|
}
|
|
3295
3246
|
function x() {
|
|
3296
|
-
let e = k(o) ?? {}, { immediate: t, clone: n } = e, r =
|
|
3297
|
-
return
|
|
3298
|
-
|
|
3299
|
-
}),
|
|
3247
|
+
let e = k(o) ?? {}, { immediate: t, clone: n } = e, r = Ga(e, ["immediate", "clone"]);
|
|
3248
|
+
return co(r, (e, t) => {
|
|
3249
|
+
lo(e) && (r[e] = (e, ...n) => (uo(e, Cc()), t(e, ...n)));
|
|
3250
|
+
}), oo(a === null ? {} : y, r);
|
|
3300
3251
|
}
|
|
3301
3252
|
let S = (e) => {
|
|
3302
3253
|
e = b(e), s && C.destroy(), s = new Q(e, x());
|
|
3303
3254
|
};
|
|
3304
3255
|
I(() => o, () => {
|
|
3305
|
-
s &&
|
|
3256
|
+
s && co(x(), (e, t) => {
|
|
3306
3257
|
s?.option(e, t);
|
|
3307
3258
|
});
|
|
3308
3259
|
}, { deep: !0 });
|
|
@@ -3315,15 +3266,15 @@ function xc(...e) {
|
|
|
3315
3266
|
toArray: () => s?.toArray(),
|
|
3316
3267
|
closest: (...e) => s?.closest(...e)
|
|
3317
3268
|
};
|
|
3318
|
-
return
|
|
3269
|
+
return yc(() => {
|
|
3319
3270
|
c && S();
|
|
3320
|
-
}),
|
|
3271
|
+
}), vc(C.destroy), Wa({
|
|
3321
3272
|
start: S,
|
|
3322
3273
|
pause: () => C?.option("disabled", !0),
|
|
3323
3274
|
resume: () => C?.option("disabled", !1)
|
|
3324
3275
|
}, C);
|
|
3325
3276
|
}
|
|
3326
|
-
var
|
|
3277
|
+
var Ec = [
|
|
3327
3278
|
"update",
|
|
3328
3279
|
"start",
|
|
3329
3280
|
"add",
|
|
@@ -3336,7 +3287,7 @@ var Sc = [
|
|
|
3336
3287
|
"clone",
|
|
3337
3288
|
"move",
|
|
3338
3289
|
"change"
|
|
3339
|
-
],
|
|
3290
|
+
], Dc = [
|
|
3340
3291
|
"clone",
|
|
3341
3292
|
"animation",
|
|
3342
3293
|
"ghostClass",
|
|
@@ -3380,47 +3331,46 @@ var Sc = [
|
|
|
3380
3331
|
"tag",
|
|
3381
3332
|
"target",
|
|
3382
3333
|
"customUpdate",
|
|
3383
|
-
...
|
|
3384
|
-
],
|
|
3334
|
+
...Ec.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
3335
|
+
], Oc = F({
|
|
3385
3336
|
name: "VueDraggable",
|
|
3386
3337
|
model: {
|
|
3387
3338
|
prop: "modelValue",
|
|
3388
3339
|
event: "update:modelValue"
|
|
3389
3340
|
},
|
|
3390
|
-
props:
|
|
3391
|
-
emits: ["update:modelValue", ...
|
|
3341
|
+
props: Dc,
|
|
3342
|
+
emits: ["update:modelValue", ...Ec],
|
|
3392
3343
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
3393
|
-
let a =
|
|
3344
|
+
let a = Ec.reduce((e, t) => {
|
|
3394
3345
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
3395
3346
|
return e[r] = (...e) => n(t, ...e), e;
|
|
3396
3347
|
}, {}), o = y(() => {
|
|
3397
|
-
let t =
|
|
3348
|
+
let t = M(e), { modelValue: n } = t, r = Ga(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
3398
3349
|
let r = k(n);
|
|
3399
3350
|
return r !== void 0 && (e[t] = r), e;
|
|
3400
3351
|
}, {});
|
|
3401
|
-
return
|
|
3352
|
+
return Wa(Wa({}, a), Za(Wa(Wa({}, i), o)));
|
|
3402
3353
|
}), s = y({
|
|
3403
3354
|
get: () => e.modelValue,
|
|
3404
3355
|
set: (e) => n("update:modelValue", e)
|
|
3405
|
-
}), c = f(), l = m(
|
|
3356
|
+
}), c = f(), l = m(Tc(e.target || c, s, o));
|
|
3406
3357
|
return r(l), () => P(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
3407
3358
|
}
|
|
3408
|
-
}),
|
|
3359
|
+
}), kc = {
|
|
3409
3360
|
mounted: "mounted",
|
|
3410
3361
|
unmounted: "unmounted"
|
|
3411
3362
|
};
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
3363
|
+
kc.mounted, kc.unmounted;
|
|
3364
|
+
// src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3365
|
+
var Ac = { class: "tpl:relative tpl:w-full" }, jc = {
|
|
3416
3366
|
key: 0,
|
|
3417
3367
|
"data-testid": "hero-image-hint",
|
|
3418
3368
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
3419
|
-
},
|
|
3369
|
+
}, Mc = {
|
|
3420
3370
|
key: 0,
|
|
3421
3371
|
"data-testid": "section-drop-hint",
|
|
3422
3372
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
3423
|
-
},
|
|
3373
|
+
}, Nc = /* @__PURE__ */ F({
|
|
3424
3374
|
__name: "SectionBlock",
|
|
3425
3375
|
props: {
|
|
3426
3376
|
block: {},
|
|
@@ -3428,13 +3378,13 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3428
3378
|
},
|
|
3429
3379
|
setup(e) {
|
|
3430
3380
|
let r = {
|
|
3431
|
-
title:
|
|
3432
|
-
paragraph:
|
|
3433
|
-
image:
|
|
3434
|
-
button:
|
|
3435
|
-
divider:
|
|
3436
|
-
custom:
|
|
3437
|
-
}, i = e, { t: s } =
|
|
3381
|
+
title: ja,
|
|
3382
|
+
paragraph: ha,
|
|
3383
|
+
image: ca,
|
|
3384
|
+
button: si,
|
|
3385
|
+
divider: Wi,
|
|
3386
|
+
custom: Hi
|
|
3387
|
+
}, i = e, { t: s } = kn(), u = Pt(fn, "SectionBlock"), d = n(dn, null), m = n(Cn, null), h = n(gn, {}), _ = n(Sn, null);
|
|
3438
3388
|
function v(e) {
|
|
3439
3389
|
let t = h.savedBlocks;
|
|
3440
3390
|
t?.isPicking.value ? t.togglePick(i.block.id) : u.selectBlock(e);
|
|
@@ -3462,16 +3412,16 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3462
3412
|
function A(e) {
|
|
3463
3413
|
return _?.value === !1 || !d?.isHidden(e);
|
|
3464
3414
|
}
|
|
3465
|
-
function
|
|
3415
|
+
function M(e) {
|
|
3466
3416
|
return !D(e).some((e) => A(e.id));
|
|
3467
3417
|
}
|
|
3468
|
-
let
|
|
3418
|
+
let ee = f(null);
|
|
3469
3419
|
function P(e) {
|
|
3470
|
-
return u.state.previewMode ? !1 :
|
|
3420
|
+
return u.state.previewMode ? !1 : M(e) ? !0 : ee.value === e && D(e).filter((e) => A(e.id)).length <= 1;
|
|
3471
3421
|
}
|
|
3472
3422
|
let F = y(() => {
|
|
3473
3423
|
if (u.state.previewMode) return !1;
|
|
3474
|
-
let e =
|
|
3424
|
+
let e = Qe(i.block);
|
|
3475
3425
|
return e !== null && !e.applied && e.reason === "image";
|
|
3476
3426
|
});
|
|
3477
3427
|
function I(e) {
|
|
@@ -3486,7 +3436,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3486
3436
|
r[e] = n, u.updateBlock(i.block.id, { children: r });
|
|
3487
3437
|
}
|
|
3488
3438
|
function re(e) {
|
|
3489
|
-
return
|
|
3439
|
+
return Gr(e, m, r);
|
|
3490
3440
|
}
|
|
3491
3441
|
function ie(e, t) {
|
|
3492
3442
|
e.type === "custom" && u.updateBlock(e.id, {
|
|
@@ -3494,16 +3444,16 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3494
3444
|
dataSourceFetched: t.dataSourceFetched
|
|
3495
3445
|
});
|
|
3496
3446
|
}
|
|
3497
|
-
return (n, r) => (T(), S("div",
|
|
3447
|
+
return (n, r) => (T(), S("div", Ac, [F.value ? (T(), S("div", jc, [O("span", null, c(k(s).section.heroAddImage), 1)])) : b("", !0), O("div", { class: t(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(T(!0), S(j, null, l(C.value, (n, i) => (T(), S("div", {
|
|
3498
3448
|
key: i,
|
|
3499
3449
|
class: t(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", I(i) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
3500
3450
|
style: E({ width: w.value ? "100%" : x.value[i] })
|
|
3501
|
-
}, [g(k(
|
|
3451
|
+
}, [g(k(Oc), {
|
|
3502
3452
|
"model-value": D(i),
|
|
3503
3453
|
group: {
|
|
3504
3454
|
name: "blocks",
|
|
3505
3455
|
pull: !0,
|
|
3506
|
-
put: (e, t, n) => k(
|
|
3456
|
+
put: (e, t, n) => k(Ra)(n)
|
|
3507
3457
|
},
|
|
3508
3458
|
animation: 150,
|
|
3509
3459
|
"ghost-class": "tpl-ghost",
|
|
@@ -3517,11 +3467,11 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3517
3467
|
"tpl:min-h-[60px]": P(i),
|
|
3518
3468
|
"tpl:min-h-[34px]": L(i)
|
|
3519
3469
|
}]),
|
|
3520
|
-
onStart: (e) =>
|
|
3521
|
-
onEnd: r[0] ||= (e) =>
|
|
3470
|
+
onStart: (e) => ee.value = i,
|
|
3471
|
+
onEnd: r[0] ||= (e) => ee.value = null,
|
|
3522
3472
|
"onUpdate:modelValue": (e) => ne(i, e)
|
|
3523
3473
|
}, {
|
|
3524
|
-
default: p(() => [(T(!0), S(j, null, l(D(i), (t) => a((T(), S("div", { key: t.id }, [g(
|
|
3474
|
+
default: p(() => [(T(!0), S(j, null, l(D(i), (t) => a((T(), S("div", { key: t.id }, [g(ka, {
|
|
3525
3475
|
block: t,
|
|
3526
3476
|
"is-selected": k(u).state.selectedBlockId === t.id,
|
|
3527
3477
|
viewport: e.viewport,
|
|
@@ -3529,7 +3479,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3529
3479
|
nested: "",
|
|
3530
3480
|
onSelect: (e) => v(t.id)
|
|
3531
3481
|
}, {
|
|
3532
|
-
default: p(() => [(T(),
|
|
3482
|
+
default: p(() => [(T(), N(o(re(t)), {
|
|
3533
3483
|
block: t,
|
|
3534
3484
|
viewport: e.viewport,
|
|
3535
3485
|
onFetchData: (e) => ie(t, e),
|
|
@@ -3555,14 +3505,14 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3555
3505
|
"class",
|
|
3556
3506
|
"onStart",
|
|
3557
3507
|
"onUpdate:modelValue"
|
|
3558
|
-
]), I(i) ? (T(), S("div",
|
|
3508
|
+
]), I(i) ? (T(), S("div", Mc, [O("span", null, c(k(s).section.dropHere), 1)])) : b("", !0)], 6))), 128))], 2)]));
|
|
3559
3509
|
}
|
|
3560
|
-
}),
|
|
3510
|
+
}), Pc = ["width", "height"], Fc = [
|
|
3561
3511
|
"d",
|
|
3562
3512
|
"stroke",
|
|
3563
3513
|
"stroke-opacity",
|
|
3564
3514
|
"stroke-width"
|
|
3565
|
-
],
|
|
3515
|
+
], Ic = ["d", "fill"], Lc = /* @__PURE__ */ F({
|
|
3566
3516
|
__name: "SocialIconSvg",
|
|
3567
3517
|
props: {
|
|
3568
3518
|
platform: {},
|
|
@@ -3571,7 +3521,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3571
3521
|
iconSize: {}
|
|
3572
3522
|
},
|
|
3573
3523
|
setup(e) {
|
|
3574
|
-
let t = e, n = y(() =>
|
|
3524
|
+
let t = e, n = y(() => xt[t.platform]), r = y(() => St[t.iconSize]), i = y(() => se(t.platform, t.iconTone)), a = y(() => Ee(t.iconStyle, t.iconTone)), o = y(() => {
|
|
3575
3525
|
let e = {
|
|
3576
3526
|
display: "inline-flex",
|
|
3577
3527
|
alignItems: "center",
|
|
@@ -3609,7 +3559,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3609
3559
|
};
|
|
3610
3560
|
default: return e;
|
|
3611
3561
|
}
|
|
3612
|
-
}), s = y(() =>
|
|
3562
|
+
}), s = y(() => et(t.iconStyle)), c = y(() => Math.floor(r.value * s.value));
|
|
3613
3563
|
function l(e) {
|
|
3614
3564
|
let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
|
|
3615
3565
|
return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
|
|
@@ -3630,28 +3580,28 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3630
3580
|
"stroke-opacity": a.value.opacity,
|
|
3631
3581
|
"stroke-width": a.value.width / s.value,
|
|
3632
3582
|
"stroke-linejoin": "round"
|
|
3633
|
-
}, null, 8,
|
|
3583
|
+
}, null, 8, Fc)) : b("", !0), O("path", {
|
|
3634
3584
|
d: n.value.path,
|
|
3635
3585
|
fill: u.value
|
|
3636
|
-
}, null, 8,
|
|
3586
|
+
}, null, 8, Ic)], 8, Pc))], 4));
|
|
3637
3587
|
}
|
|
3638
|
-
}),
|
|
3588
|
+
}), Rc = { class: "tpl:w-full" }, zc = ["href"], Bc = {
|
|
3639
3589
|
key: 1,
|
|
3640
3590
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3641
|
-
},
|
|
3591
|
+
}, Vc = /* @__PURE__ */ F({
|
|
3642
3592
|
__name: "SocialIconsBlock",
|
|
3643
3593
|
props: {
|
|
3644
3594
|
block: {},
|
|
3645
3595
|
viewport: {}
|
|
3646
3596
|
},
|
|
3647
3597
|
setup(e) {
|
|
3648
|
-
let t = e, { t: n } =
|
|
3598
|
+
let t = e, { t: n } = kn(), r = y(() => ({
|
|
3649
3599
|
display: "flex",
|
|
3650
3600
|
flexWrap: "wrap",
|
|
3651
3601
|
gap: `${t.block.spacing}px`,
|
|
3652
3602
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
3653
3603
|
})), i = y(() => t.block.icons.length > 0);
|
|
3654
|
-
return (t, a) => (T(), S("div",
|
|
3604
|
+
return (t, a) => (T(), S("div", Rc, [i.value ? (T(), S("div", {
|
|
3655
3605
|
key: 0,
|
|
3656
3606
|
style: E(r.value)
|
|
3657
3607
|
}, [(T(!0), S(j, null, l(e.block.icons, (t) => (T(), S("a", {
|
|
@@ -3659,7 +3609,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3659
3609
|
href: t.url || "#",
|
|
3660
3610
|
class: "tpl:cursor-default",
|
|
3661
3611
|
onClick: a[0] ||= L(() => {}, ["prevent"])
|
|
3662
|
-
}, [g(
|
|
3612
|
+
}, [g(Lc, {
|
|
3663
3613
|
platform: t.platform,
|
|
3664
3614
|
"icon-style": e.block.iconStyle,
|
|
3665
3615
|
"icon-tone": e.block.iconTone,
|
|
@@ -3669,44 +3619,44 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3669
3619
|
"icon-style",
|
|
3670
3620
|
"icon-tone",
|
|
3671
3621
|
"icon-size"
|
|
3672
|
-
])], 8,
|
|
3622
|
+
])], 8, zc))), 128))], 4)) : (T(), S("div", Bc, [g(k(Ct), { size: 16 }), O("span", null, c(k(n).social.addIcons), 1)]))]));
|
|
3673
3623
|
}
|
|
3674
|
-
}),
|
|
3624
|
+
}), Hc = { class: "tpl:w-full" }, Uc = {
|
|
3675
3625
|
key: 0,
|
|
3676
3626
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
3677
3627
|
style: {
|
|
3678
3628
|
"background-color": "var(--tpl-bg-hover)",
|
|
3679
3629
|
color: "var(--tpl-text-dim)"
|
|
3680
3630
|
}
|
|
3681
|
-
},
|
|
3631
|
+
}, Wc = /* @__PURE__ */ F({
|
|
3682
3632
|
__name: "SpacerBlock",
|
|
3683
3633
|
props: {
|
|
3684
3634
|
block: {},
|
|
3685
3635
|
viewport: {}
|
|
3686
3636
|
},
|
|
3687
3637
|
setup(e) {
|
|
3688
|
-
let n = e, r =
|
|
3638
|
+
let n = e, r = Pt(fn, "SpacerBlock"), i = y(() => ({
|
|
3689
3639
|
height: `${n.block.height}px`,
|
|
3690
3640
|
minHeight: `${n.block.height}px`,
|
|
3691
3641
|
...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
3692
3642
|
}));
|
|
3693
|
-
return (n, a) => (T(), S("div",
|
|
3643
|
+
return (n, a) => (T(), S("div", Hc, [O("div", {
|
|
3694
3644
|
style: E(i.value),
|
|
3695
3645
|
class: t(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !k(r).state.previewMode }])
|
|
3696
|
-
}, [k(r).state.previewMode ? b("", !0) : (T(), S("span",
|
|
3646
|
+
}, [k(r).state.previewMode ? b("", !0) : (T(), S("span", Uc, c(e.block.height) + "px ", 1))], 6)]));
|
|
3697
3647
|
}
|
|
3698
|
-
}),
|
|
3648
|
+
}), Gc = { class: "tpl:w-full" }, Kc = { key: 0 }, qc = [
|
|
3699
3649
|
"aria-label",
|
|
3700
3650
|
"data-placeholder",
|
|
3701
3651
|
"onBlur"
|
|
3702
|
-
],
|
|
3652
|
+
], Jc = [
|
|
3703
3653
|
"aria-label",
|
|
3704
3654
|
"data-placeholder",
|
|
3705
3655
|
"onBlur"
|
|
3706
|
-
],
|
|
3656
|
+
], Yc = {
|
|
3707
3657
|
key: 1,
|
|
3708
3658
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3709
|
-
},
|
|
3659
|
+
}, Xc = /*#__PURE__*/ Gn(/* @__PURE__ */ F({
|
|
3710
3660
|
__name: "TableBlock",
|
|
3711
3661
|
props: {
|
|
3712
3662
|
block: {},
|
|
@@ -3720,7 +3670,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3720
3670
|
updated(e, t) {
|
|
3721
3671
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
3722
3672
|
}
|
|
3723
|
-
}, n = e, { t: r } =
|
|
3673
|
+
}, n = e, { t: r } = kn(), i = Pt(fn, "TableBlock"), o = Pt(wn, "TableBlock"), s = y(() => n.block.rows.length > 0), u = y(() => {
|
|
3724
3674
|
let e = {
|
|
3725
3675
|
width: "100%",
|
|
3726
3676
|
borderCollapse: "collapse",
|
|
@@ -3751,11 +3701,11 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3751
3701
|
} : n);
|
|
3752
3702
|
i.updateBlock(n.block.id, { rows: o });
|
|
3753
3703
|
}
|
|
3754
|
-
return (e, n) => (T(), S("div",
|
|
3704
|
+
return (e, n) => (T(), S("div", Gc, [s.value ? (T(), S("table", {
|
|
3755
3705
|
key: 0,
|
|
3756
3706
|
style: E(u.value),
|
|
3757
3707
|
class: "tpl-table-editable"
|
|
3758
|
-
}, [p.value ? (T(), S("thead",
|
|
3708
|
+
}, [p.value ? (T(), S("thead", Kc, [O("tr", null, [(T(!0), S(j, null, l(p.value.cells, (e) => a((T(), S("th", {
|
|
3759
3709
|
key: e.id,
|
|
3760
3710
|
style: E(f.value),
|
|
3761
3711
|
"aria-label": k(r).table.cellPlaceholder,
|
|
@@ -3764,7 +3714,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3764
3714
|
onBlur: (t) => _(p.value.id, e.id, t),
|
|
3765
3715
|
onKeydown: n[0] ||= ne(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3766
3716
|
onClick: L(h, ["stop"])
|
|
3767
|
-
}, null, 44,
|
|
3717
|
+
}, null, 44, qc)), [[t, e.content]])), 128))])])) : b("", !0), O("tbody", null, [(T(!0), S(j, null, l(m.value, (e) => (T(), S("tr", { key: e.id }, [(T(!0), S(j, null, l(e.cells, (i) => a((T(), S("td", {
|
|
3768
3718
|
key: i.id,
|
|
3769
3719
|
style: E(d.value),
|
|
3770
3720
|
"aria-label": k(r).table.cellPlaceholder,
|
|
@@ -3773,9 +3723,9 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3773
3723
|
onBlur: (t) => _(e.id, i.id, t),
|
|
3774
3724
|
onKeydown: n[1] ||= ne(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3775
3725
|
onClick: L(h, ["stop"])
|
|
3776
|
-
}, null, 44,
|
|
3726
|
+
}, null, 44, Jc)), [[t, i.content]])), 128))]))), 128))])], 4)) : (T(), S("div", Yc, [g(k(mt), { size: 16 }), O("span", null, c(k(r).table.empty), 1)]))]));
|
|
3777
3727
|
}
|
|
3778
|
-
}), [["__scopeId", "data-v-6751d456"]]),
|
|
3728
|
+
}), [["__scopeId", "data-v-6751d456"]]), Zc = /* @__PURE__ */ F({
|
|
3779
3729
|
__name: "VideoPlayButton",
|
|
3780
3730
|
props: { hoverEffect: {
|
|
3781
3731
|
type: Boolean,
|
|
@@ -3791,9 +3741,8 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
|
|
|
3791
3741
|
}, [O("polygon", { points: "5,3 19,12 5,21" })])], -1)]], 2));
|
|
3792
3742
|
}
|
|
3793
3743
|
});
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
function Jc(e) {
|
|
3744
|
+
// src/utils/videoThumbnail.ts
|
|
3745
|
+
function Qc(e) {
|
|
3797
3746
|
if (!e) return {
|
|
3798
3747
|
platform: "unknown",
|
|
3799
3748
|
videoId: null,
|
|
@@ -3825,25 +3774,24 @@ function Jc(e) {
|
|
|
3825
3774
|
thumbnailUrl: null
|
|
3826
3775
|
};
|
|
3827
3776
|
}
|
|
3828
|
-
function
|
|
3829
|
-
return t ||
|
|
3777
|
+
function $c(e, t) {
|
|
3778
|
+
return t || Qc(e).thumbnailUrl;
|
|
3830
3779
|
}
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
var Xc = ["src", "alt"], Zc = {
|
|
3780
|
+
// src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3781
|
+
var el = ["src", "alt"], tl = {
|
|
3834
3782
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
3835
3783
|
style: { opacity: "0.7" }
|
|
3836
|
-
},
|
|
3784
|
+
}, nl = ["href"], rl = ["src", "alt"], il = ["src", "alt"], al = {
|
|
3837
3785
|
key: 3,
|
|
3838
3786
|
class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
3839
|
-
},
|
|
3787
|
+
}, ol = /* @__PURE__ */ F({
|
|
3840
3788
|
__name: "VideoBlock",
|
|
3841
3789
|
props: {
|
|
3842
3790
|
block: {},
|
|
3843
3791
|
viewport: {}
|
|
3844
3792
|
},
|
|
3845
3793
|
setup(e) {
|
|
3846
|
-
let t = e, { t: n } =
|
|
3794
|
+
let t = e, { t: n } = kn(), { syntax: r } = qn(), i = y(() => Ce(t.block.url, r) || Ce(t.block.thumbnailUrl, r)), a = ut(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = ut(() => i.value ? t.block.placeholderUrl : void 0), s = y(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : $c(t.block.url)), l = y(() => ({ textAlign: t.block.align })), u = y(() => {
|
|
3847
3795
|
let e = t.block.align;
|
|
3848
3796
|
return {
|
|
3849
3797
|
maxWidth: "100%",
|
|
@@ -3853,7 +3801,7 @@ var Xc = ["src", "alt"], Zc = {
|
|
|
3853
3801
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
3854
3802
|
marginRight: e === "center" ? "auto" : void 0
|
|
3855
3803
|
};
|
|
3856
|
-
}), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() =>
|
|
3804
|
+
}), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() => Ce(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
3857
3805
|
return (t, r) => (T(), S("div", {
|
|
3858
3806
|
class: "tpl:w-full",
|
|
3859
3807
|
style: E(l.value)
|
|
@@ -3866,16 +3814,16 @@ var Xc = ["src", "alt"], Zc = {
|
|
|
3866
3814
|
src: k(o),
|
|
3867
3815
|
alt: e.block.alt,
|
|
3868
3816
|
style: E(d.value)
|
|
3869
|
-
}, null, 12,
|
|
3817
|
+
}, null, 12, el), g(Zc)], 4)) : i.value ? (T(), S("div", {
|
|
3870
3818
|
key: 1,
|
|
3871
3819
|
class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
3872
3820
|
style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
3873
|
-
}, [g(k(
|
|
3821
|
+
}, [g(k(mi), {
|
|
3874
3822
|
size: 36,
|
|
3875
3823
|
"stroke-width": 1.5,
|
|
3876
3824
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
3877
3825
|
style: { opacity: "0.5" }
|
|
3878
|
-
}), O("span",
|
|
3826
|
+
}), O("span", tl, [g(ai, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (T(), S(j, { key: 2 }, [e.block.url ? (T(), S("a", {
|
|
3879
3827
|
key: 0,
|
|
3880
3828
|
href: e.block.url,
|
|
3881
3829
|
target: "_blank",
|
|
@@ -3888,7 +3836,7 @@ var Xc = ["src", "alt"], Zc = {
|
|
|
3888
3836
|
src: s.value,
|
|
3889
3837
|
alt: e.block.alt,
|
|
3890
3838
|
style: E(d.value)
|
|
3891
|
-
}, null, 12,
|
|
3839
|
+
}, null, 12, rl), g(Zc, { "hover-effect": "" })], 12, nl)) : (T(), S("div", {
|
|
3892
3840
|
key: 1,
|
|
3893
3841
|
class: "tpl:relative tpl:inline-block",
|
|
3894
3842
|
style: E(u.value)
|
|
@@ -3897,53 +3845,53 @@ var Xc = ["src", "alt"], Zc = {
|
|
|
3897
3845
|
src: s.value,
|
|
3898
3846
|
alt: e.block.alt,
|
|
3899
3847
|
style: E(d.value)
|
|
3900
|
-
}, null, 12,
|
|
3848
|
+
}, null, 12, il), g(Zc)], 4))], 64)) : (T(), S("div", al, [g(k(mi), {
|
|
3901
3849
|
size: 40,
|
|
3902
3850
|
"stroke-width": 1.5,
|
|
3903
3851
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
3904
3852
|
}), O("span", null, c(k(n).video.addVideo), 1)]))], 4));
|
|
3905
3853
|
}
|
|
3906
|
-
}),
|
|
3907
|
-
section:
|
|
3908
|
-
title:
|
|
3909
|
-
paragraph:
|
|
3910
|
-
image:
|
|
3911
|
-
button:
|
|
3912
|
-
divider:
|
|
3913
|
-
video:
|
|
3914
|
-
social:
|
|
3915
|
-
menu:
|
|
3916
|
-
table:
|
|
3917
|
-
spacer:
|
|
3918
|
-
html:
|
|
3919
|
-
countdown:
|
|
3854
|
+
}), sl = {
|
|
3855
|
+
section: Nc,
|
|
3856
|
+
title: ja,
|
|
3857
|
+
paragraph: ha,
|
|
3858
|
+
image: ca,
|
|
3859
|
+
button: si,
|
|
3860
|
+
divider: Wi,
|
|
3861
|
+
video: ol,
|
|
3862
|
+
social: Vc,
|
|
3863
|
+
menu: fa,
|
|
3864
|
+
table: Xc,
|
|
3865
|
+
spacer: Wc,
|
|
3866
|
+
html: Xi,
|
|
3867
|
+
countdown: ee(() => import("./CountdownBlock-BT3ZTH1F.js"))
|
|
3920
3868
|
};
|
|
3921
|
-
function
|
|
3922
|
-
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: o, format: c } =
|
|
3869
|
+
function cl(e) {
|
|
3870
|
+
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: o, format: c } = kn(r), l = y(() => Oe(Oe(Oe(br(r), Br(t.content.value.settings?.locale)), Re(t.content.value.settings) === "rtl" ? {
|
|
3923
3871
|
title: { textAlign: "right" },
|
|
3924
3872
|
table: { textAlign: "right" }
|
|
3925
3873
|
} : {}), n.blockDefaults ?? {}));
|
|
3926
3874
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
3927
|
-
let { resolvedTheme: u } =
|
|
3875
|
+
let { resolvedTheme: u } = cr(y(() => t.state.uiTheme)), d = f(n.theme ?? {}), { themeStyles: p } = ur({
|
|
3928
3876
|
themeOverrides: d,
|
|
3929
3877
|
resolvedTheme: u,
|
|
3930
3878
|
extraStyles: () => ({
|
|
3931
3879
|
"--tpl-drop-text": `"${r.canvas.dropHere}"`,
|
|
3932
3880
|
...e.themeExtraStyles?.()
|
|
3933
3881
|
})
|
|
3934
|
-
}), m = e.history ??
|
|
3882
|
+
}), m = e.history ?? it({
|
|
3935
3883
|
content: t.content,
|
|
3936
3884
|
setContent: (e, n) => t.setContent(e, n)
|
|
3937
3885
|
});
|
|
3938
|
-
e.history ||
|
|
3939
|
-
let g =
|
|
3886
|
+
e.history || pt(t, m);
|
|
3887
|
+
let g = lt({
|
|
3940
3888
|
addBlock: t.addBlock,
|
|
3941
3889
|
removeBlock: t.removeBlock,
|
|
3942
3890
|
updateBlock: t.updateBlock,
|
|
3943
3891
|
selectBlock: t.selectBlock,
|
|
3944
3892
|
findBlockLocation: t.findBlockLocation,
|
|
3945
3893
|
blockDefaults: () => l.value
|
|
3946
|
-
}), _ =
|
|
3894
|
+
}), _ = st(t), v = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? ct({
|
|
3947
3895
|
content: t.content,
|
|
3948
3896
|
isDirty: () => t.state.isDirty,
|
|
3949
3897
|
...e.autoSaveOptions
|
|
@@ -3951,30 +3899,30 @@ function il(e) {
|
|
|
3951
3899
|
v && (b = I(m.isNavigating, (e) => {
|
|
3952
3900
|
e ? v.pause() : v.resume();
|
|
3953
3901
|
}));
|
|
3954
|
-
let S =
|
|
3902
|
+
let S = sr(t, {
|
|
3955
3903
|
t: o,
|
|
3956
3904
|
format: c
|
|
3957
|
-
}, n.customBlocks ?? []), C =
|
|
3905
|
+
}, n.customBlocks ?? []), C = Mn(n.colors);
|
|
3958
3906
|
if (C.allowCustomIgnored && R.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), C.invalidPresets.length > 0 && R.warn(`config.colors.presets skipped invalid entries: ${C.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), C.allowCustom === !1) {
|
|
3959
|
-
let e =
|
|
3907
|
+
let e = yr(C.presets, n.blockDefaults, n.templateDefaults);
|
|
3960
3908
|
e.length > 0 && R.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
|
|
3961
3909
|
}
|
|
3962
|
-
let w =
|
|
3963
|
-
for (let e of w.unknown) R.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${
|
|
3964
|
-
let T =
|
|
3965
|
-
|
|
3910
|
+
let w = Pn(n.templateSettings);
|
|
3911
|
+
for (let e of w.unknown) R.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Fn.join(", ")}) — skipping it.`);
|
|
3912
|
+
let T = dr();
|
|
3913
|
+
gr(T, sl);
|
|
3966
3914
|
let E = /* @__PURE__ */ new Set();
|
|
3967
3915
|
function D(e) {
|
|
3968
3916
|
for (let t of e) {
|
|
3969
|
-
T.registerCustom(t,
|
|
3970
|
-
for (let e of
|
|
3917
|
+
T.registerCustom(t, Hi);
|
|
3918
|
+
for (let e of Vr(t, C)) E.has(e.id) || (E.add(e.id), R.warn(e.message));
|
|
3971
3919
|
}
|
|
3972
3920
|
}
|
|
3973
3921
|
n.customBlocks?.length && D(n.customBlocks);
|
|
3974
|
-
let O =
|
|
3922
|
+
let O = $n();
|
|
3975
3923
|
if (i() && h(O.dispose), e.containerEl) {
|
|
3976
3924
|
let t = e.containerEl;
|
|
3977
|
-
|
|
3925
|
+
jt(document, "pointerdown", (e) => {
|
|
3978
3926
|
let n = t.value;
|
|
3979
3927
|
n && (e.composedPath?.() ?? []).includes(n) && O.claim();
|
|
3980
3928
|
}, { capture: !0 });
|
|
@@ -3984,7 +3932,7 @@ function il(e) {
|
|
|
3984
3932
|
t ? t.save() : v?.flush();
|
|
3985
3933
|
}
|
|
3986
3934
|
function A(n) {
|
|
3987
|
-
O.isActive() &&
|
|
3935
|
+
O.isActive() && Ur(n, {
|
|
3988
3936
|
history: m,
|
|
3989
3937
|
selectBlock: (e) => t.selectBlock(e),
|
|
3990
3938
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
@@ -3995,50 +3943,50 @@ function il(e) {
|
|
|
3995
3943
|
onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
|
|
3996
3944
|
});
|
|
3997
3945
|
}
|
|
3998
|
-
|
|
3999
|
-
let j = f(null),
|
|
4000
|
-
s(
|
|
4001
|
-
let
|
|
3946
|
+
jt(document, "keydown", A);
|
|
3947
|
+
let j = f(null), M = e.editorRoot ?? document;
|
|
3948
|
+
s(on, M), s(It, j), s(rn, r), s(fn, t), s(Dn, m), s(sn, g), s(dn, _), s(wn, a), s(Ut, p), s(an, u), s(yn, l), s(nn, n.locale), s(Cn, T), s(bn, n.customBlocks ?? []), s(On, n.paletteBlocks), s(cn, _r(n.htmlBlockPreview)), s(Lt, n.layout), s(tn, n.sectionWrapper), s(un, C), s(xn, w.fields), s(_n, fr(t.content, T));
|
|
3949
|
+
let N = tt(n.mergeTags?.syntax);
|
|
4002
3950
|
for (let e of ["opener", "closer"]) {
|
|
4003
|
-
let t =
|
|
3951
|
+
let t = N[e];
|
|
4004
3952
|
typeof t == "string" && t.trim() === "" && R.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
|
|
4005
3953
|
}
|
|
4006
|
-
typeof
|
|
4007
|
-
let
|
|
3954
|
+
typeof N.opener != "string" && typeof N.closer == "string" && N.closer.trim() !== "" && Xe(N) === null && R.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
|
|
3955
|
+
let ee = x(n.mergeTags?.tags ?? []);
|
|
4008
3956
|
function P(e) {
|
|
4009
|
-
Array.isArray(e) ?
|
|
3957
|
+
Array.isArray(e) ? ee.value = e : R.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
4010
3958
|
}
|
|
4011
|
-
s(
|
|
4012
|
-
let F = f(
|
|
4013
|
-
s(
|
|
4014
|
-
let L =
|
|
3959
|
+
s(Jt, ee), s(Yt, N), s(Zt, n.mergeTags?.onRequest ?? null), s(hn, n.mergeTags?.autocomplete !== !1), s(qt, n.mergeTags?.showRawValue !== !1);
|
|
3960
|
+
let F = f(Ue(n.mergeTags?.tags ?? []));
|
|
3961
|
+
s(Kt, F);
|
|
3962
|
+
let L = tr({
|
|
4015
3963
|
resolvePreview: n.resolvePreview,
|
|
4016
3964
|
getContent: () => {
|
|
4017
3965
|
let e = t.content.value;
|
|
4018
|
-
return n.layout && t.state.previewMode ?
|
|
3966
|
+
return n.layout && t.state.previewMode ? Le(n.layout, e) : e;
|
|
4019
3967
|
},
|
|
4020
3968
|
isActive: () => t.state.previewMode
|
|
4021
3969
|
});
|
|
4022
|
-
s(
|
|
3970
|
+
s(en, L), s(Vt, n.resolvePreview);
|
|
4023
3971
|
let te = y(() => !(t.state.previewMode && L.isConfigured));
|
|
4024
|
-
s(
|
|
4025
|
-
let ne =
|
|
4026
|
-
s(
|
|
4027
|
-
let
|
|
3972
|
+
s(Sn, te);
|
|
3973
|
+
let ne = nr();
|
|
3974
|
+
s(Ft, ne), s(mn, f(!1)), s(Rt, f(!1)), s($t, n.logicTags?.tags ?? []), s(Tn, n.logicTags?.pairs ?? []), s(Ht, n.logicTags?.onRequest ?? null), s(zt, rr()), s(Gt, n.onRequestMedia ?? null), s(ln, n.canDropMedia ?? null), s(En, n.resolveImageUrl ? wt(n.resolveImageUrl) : null), s(pn, n.displayConditions?.conditions ?? []), s(vn, n.displayConditions?.allowCustom ?? !1), s(gn, e.capabilities ?? {}), s(Qt, S);
|
|
3975
|
+
let re = ir(n.lint) ? null : or({
|
|
4028
3976
|
content: t.content,
|
|
4029
3977
|
options: n.lint ?? {},
|
|
4030
3978
|
updateBlock: t.updateBlock,
|
|
4031
3979
|
updateSettings: t.updateSettings,
|
|
4032
3980
|
removeBlock: t.removeBlock
|
|
4033
3981
|
});
|
|
4034
|
-
s(
|
|
4035
|
-
function
|
|
4036
|
-
b?.(),
|
|
3982
|
+
s(Wt, re);
|
|
3983
|
+
function ie() {
|
|
3984
|
+
b?.(), re?.destroy(), v?.destroy(), m.destroy();
|
|
4037
3985
|
}
|
|
4038
3986
|
return {
|
|
4039
3987
|
t: o,
|
|
4040
3988
|
format: c,
|
|
4041
|
-
editorRoot:
|
|
3989
|
+
editorRoot: M,
|
|
4042
3990
|
history: m,
|
|
4043
3991
|
blockActions: g,
|
|
4044
3992
|
conditionPreview: _,
|
|
@@ -4048,17 +3996,16 @@ function il(e) {
|
|
|
4048
3996
|
themeOverrides: d,
|
|
4049
3997
|
registry: T,
|
|
4050
3998
|
keyboardReorder: S,
|
|
4051
|
-
templateLint:
|
|
3999
|
+
templateLint: re,
|
|
4052
4000
|
popoverRoot: j,
|
|
4053
4001
|
mergeTagSampleMode: F,
|
|
4054
4002
|
previewResolution: L,
|
|
4055
4003
|
appliesConditionFilter: te,
|
|
4056
4004
|
registerCustomBlocks: D,
|
|
4057
4005
|
setMergeTags: P,
|
|
4058
|
-
mergeTags:
|
|
4059
|
-
mergeTagSyntax:
|
|
4060
|
-
destroy:
|
|
4006
|
+
mergeTags: ee,
|
|
4007
|
+
mergeTagSyntax: N,
|
|
4008
|
+
destroy: ie
|
|
4061
4009
|
};
|
|
4062
4010
|
}
|
|
4063
|
-
|
|
4064
|
-
export { Yr as A, Or as B, hi as C, ii as D, oi as E, wr as F, Zn as H, Mr as I, jr as L, Br as M, $r as N, ri as O, Vr as P, Ar as R, gi as S, ci as T, Dr as V, Ri as _, Lc as a, Ti as b, Oa as c, Ta as d, da as f, Bi as g, Ki as h, Bc as i, Xr as j, Gr as k, ja as l, ia as m, nl as n, kc as o, ca as p, Kc as r, wc as s, il as t, Da as u, ki as v, pi as w, bi as x, Di as y, kr as z };
|
|
4011
|
+
export { $r as A, Mr as B, yi as C, ci as D, ui as E, Or as F, tr as H, Ir as I, Fr as L, Wr as M, ri as N, si as O, Gr as P, Pr as R, bi as S, fi as T, jr as V, Hi as _, Vc as a, ki as b, Ma as c, ka as d, ha as f, Wi as g, Xi as h, Wc as i, ei as j, Yr as k, Fa as l, ca as m, ol as n, Nc as o, fa as p, Xc as r, Oc as s, cl as t, ja as u, Ni as v, _i as w, wi as x, ji as y, Nr as z };
|