@templatical/editor 0.59.1 → 0.60.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/dist/{AiAltTextPopover-CwyKz_9U.js → AiAltTextPopover-DiIaqDtB.js} +3 -3
- package/dist/{AiAltTextReview-DNFnR1PN.js → AiAltTextReview-DIe0WBbj.js} +3 -3
- package/dist/{AiChatPanel-DWWVvJIP.js → AiChatPanel-aj2TPO9F.js} +10 -10
- package/dist/{AiPanels-CESbBB63.js → AiPanels-CRM3jf82.js} +1 -1
- package/dist/{AiRewriteMenu-DH6j1jOA.js → AiRewriteMenu-F3GyXBsk.js} +11 -11
- package/dist/{BlockIssueBadge-3k568_Od.js → BlockIssueBadge-DlhA_I6J.js} +4 -4
- package/dist/{BlockPreviewCanvas-BLJxLwTT.js → BlockPreviewCanvas-DYspUXMO.js} +29 -50
- package/dist/{CloudHeaderExtras-xrHubAHL.js → CloudHeaderExtras-DC_oNrxz.js} +1 -1
- package/dist/{CloudPanels-qW-MObRD.js → CloudPanels-CAMn545-.js} +4 -4
- package/dist/{CollaborationNotices-D9GQ477K.js → CollaborationNotices-CnfS8BQy.js} +2 -2
- package/dist/{CollaboratorBar-DsRjAaqd.js → CollaboratorBar-DufLdLQP.js} +2 -2
- package/dist/{CommentsPanel-lb-IFzjl.js → CommentsPanel-C2hFFs0o.js} +1 -1
- package/dist/{CommentsSidebar-CVVTCWBH.js → CommentsSidebar-CgEwxt2T.js} +12 -12
- package/dist/{CountdownBlock-CSEq79Nc.js → CountdownBlock-AYPypmcX.js} +2 -2
- package/dist/{CountdownToolbar-BV9yQi9k.js → CountdownToolbar-CNqYDevp.js} +5 -5
- package/dist/{IssuesPanel-pxcWAQJM.js → IssuesPanel-cPKhimE9.js} +12 -12
- package/dist/{LanguageMenu-D_xbvq3D.js → LanguageMenu-zxlpmw2x.js} +14 -14
- package/dist/{LocaleNotices-j4aMFfmc.js → LocaleNotices-PIfpvCCI.js} +4 -4
- package/dist/{LogicTagInsertButton-BDIsyl3C.js → LogicTagInsertButton-DqTkGJSR.js} +21 -21
- package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
- package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
- package/dist/{MergeTagInput-De1yWoc2.js → MergeTagInput-Jly1Pw0v.js} +1 -1
- package/dist/{MergeTagModeToggle-CL96pI1E.js → MergeTagModeToggle-5kaFLRAm.js} +6 -6
- package/dist/{MergeTagTextarea-DDyV8U44.js → MergeTagTextarea-CCfirhcR.js} +7 -7
- package/dist/{ParagraphEditor-DpOsnnai.js → ParagraphEditor-DTdnxgDZ.js} +46 -46
- package/dist/{RestoreVersionDialog-JQEkVIh5.js → RestoreVersionDialog-cUYu3Xqs.js} +4 -4
- package/dist/{RichTextEditorContent-C2Yj1-ZA.js → RichTextEditorContent-Aub9tOHF.js} +8 -8
- package/dist/{SaveBlockDialog-BPf6tDhg.js → SaveBlockDialog-D_ie3uIF.js} +9 -9
- package/dist/{SavedBlocksBrowserModal-DnDCfwSv.js → SavedBlocksBrowserModal-fhSnYT1l.js} +11 -11
- package/dist/{SavedBlocksPanels-D5YaVCem.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
- package/dist/{SavedBlocksPickBar-OQ7ey3MD.js → SavedBlocksPickBar-CpWkCa8G.js} +3 -3
- package/dist/{TemplateSettings-CBCaybvd.js → TemplateSettings-BJ4a8RBr.js} +12 -12
- package/dist/{TestEmailModal-BDp85wIp.js → TestEmailModal-BEoapoDc.js} +14 -12
- package/dist/{TestEmailPanel-DkJx0Ptk.js → TestEmailPanel-DgyzokCf.js} +1 -1
- package/dist/{TitleEditor-wzknZqu_.js → TitleEditor-BQoSPgOi.js} +13 -13
- package/dist/{Toolbar-FIYSw3Us.js → Toolbar-KhPpWyX1.js} +857 -756
- package/dist/{TplModal-C57J-uF0.js → TplModal-F_kA7luG.js} +4 -4
- package/dist/{VersionHistoryMenu-6jMve6By.js → VersionHistoryMenu-Bz4G8cNm.js} +7 -7
- package/dist/{VersionHistoryPanels-BZ0GT52h.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
- package/dist/{VersionPreviewBanner-Bq8z1SUc.js → VersionPreviewBanner-BeppXZyn.js} +2 -2
- package/dist/{WrapperBlock-C4XrJkx5.js → WrapperBlock-Ds7yfbhg.js} +4 -4
- package/dist/{blockTypeIcons-VX_8UQ21.js → blockTypeIcons-Do1QqDjg.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -1
- package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js → AiAltTextPopover-CUzIaLRK.js} +4 -4
- package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js → AiAltTextReview-BXBlE71X.js} +4 -4
- package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
- package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js → AiChatPanel-BKydciDQ.js} +4 -4
- package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js → AiPanels-De-cIZ4p.js} +2 -2
- package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-B23ozFnP.js → AiRewriteMenu-C9vBUTIB.js} +9 -9
- package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js → BlockIssueBadge-B3CTTvgw.js} +4 -4
- package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-CaRneMZ8.js → BlockPreviewCanvas-B4Bj--kc.js} +30 -51
- package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js → CloudHeaderExtras-Cd-ePldd.js} +2 -2
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-xAEirqNC.js → CloudPanels-CQ75I3hQ.js} +4 -4
- package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js → CollaborationNotices-CgLea-hu.js} +3 -3
- package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js → CollaboratorBar-CjRcbebT.js} +3 -3
- package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js → CommentsPanel-D_ud9GMN.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js → CommentsSidebar-CXn1EGAI.js} +4 -4
- package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js → CountdownBlock--hlKE2aj.js} +3 -3
- package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js → CountdownToolbar-BOyk_4k7.js} +6 -6
- package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js → IssuesPanel-DOC94ZsH.js} +8 -8
- package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-Cl0ajnXZ.js → LanguageMenu-DktneIpL.js} +100 -100
- package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js → LocaleNotices-B2NgnHoP.js} +4 -4
- package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js → LogicTagInsertButton-CQ8RiOou.js} +10 -10
- package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js → MergeTagInput-D7FZ0ca0.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js → MergeTagModeToggle-CySCCEDs.js} +5 -5
- package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js → MergeTagTextarea-DJbWTYVH.js} +6 -6
- package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-BoGELRr-.js → ParagraphEditor-DAQUWqQJ.js} +26 -26
- package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CaKiSq-9.js → RestoreVersionDialog-COTRe_rM.js} +4 -4
- package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js → RichTextEditorContent-DeWPMd9V.js} +8 -8
- package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-BAR0G4UO.js → SaveBlockDialog-adQMbKR1.js} +8 -8
- package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-KYaLkQ.js → SavedBlocksBrowserModal-CGIFCRAx.js} +8 -8
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-C3OF0EeB.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-BnyPXw5W.js → SavedBlocksPickBar-DmleyUrn.js} +4 -4
- package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js → TemplateSettings-Csjef99q.js} +10 -10
- package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-B9d3ZsH7.js → TestEmailModal-ClkexOtF.js} +13 -11
- package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel--fPi6QjN.js → TestEmailPanel-DYEYzhU2.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-Cn4fnSpa.js → TitleEditor-opvaIgVr.js} +12 -12
- package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
- package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js → Toolbar-DbqkKRXy.js} +825 -724
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-jMfK19PC.js → TplModal-DLV5OeMD.js} +5 -5
- package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js → VersionHistoryMenu-DBd0zwjE.js} +4 -4
- package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DJpySkvq.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js → VersionPreviewBanner-D-yHxWWY.js} +3 -3
- package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-Bi9XgDmX.js → WrapperBlock-Ce_k8m_x.js} +5 -5
- package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
- package/dist/cdn/chunks/{ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +7 -2
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
- package/dist/cdn/chunks/{composables-Cp6gZ7qV.js → composables-Brr4m0Sg.js} +526 -550
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js → createCloudRuntime-QPeg45XL.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
- package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
- package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
- package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
- package/dist/cdn/chunks/en-DkulseE1.js +1 -0
- package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
- package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BYJPv1sA.js → extensions-BpuyqKVY.js} +6 -6
- package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
- package/dist/cdn/chunks/{fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +7 -2
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
- package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
- package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
- package/dist/{ja-BH4MS1Ye.js → cdn/chunks/ja-B4Kx7uBX.js} +8 -1
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +11 -0
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -0
- package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js → normalizeMergeTagMarkup-B81BAWKT.js} +61 -61
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
- package/dist/{preRenderCustomBlocks-CgPtlLGL.js → cdn/chunks/preRenderCustomBlocks-CQuaMxuv.js} +3 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
- package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js → sanitizeHtml-BdAjvU9I.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js → socialIcons-Df9dNe7I.js} +463 -485
- package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
- package/dist/cdn/chunks/{src-BRyzUujm.js → src-B3v_3j9b.js} +586 -554
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
- package/dist/{dist-BTjObRcv.js → cdn/chunks/src-BHgVGOTi.js} +872 -700
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
- package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
- package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js → useCloudI18n-BTV9uu3c.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js.map → useCloudI18n-BTV9uu3c.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js → useEditorRoot-D0Lp2x4_.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js.map → useEditorRoot-D0Lp2x4_.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js → useI18n-DPg6rPbu.js} +2 -2
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js.map → useI18n-DPg6rPbu.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-7iwZ1UhB.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js → useLogicTag-DOIlsGk8.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js → useMergeTag-DUNl364g.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js.map → useMergeTag-DUNl364g.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js → usePopoverPosition-CBp9uwjV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js.map → usePopoverPosition-CBp9uwjV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js → useScrollToBlock-32EnuMwu.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js.map → useScrollToBlock-32EnuMwu.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js → withCurrentFont-ufGLu2Vt.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +573 -573
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
- package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
- package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
- package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
- package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
- package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
- package/dist/{composables-jTnTSqdm.js → composables-5KJV0O9T.js} +933 -957
- package/dist/{createCloudRuntime-DiUnYjKr.js → createCloudRuntime-BdoKeYJi.js} +3 -3
- package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
- package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
- package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
- package/dist/dist-AyAOL8Bj.js +4 -0
- package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
- package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
- package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
- package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
- package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
- package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
- package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
- package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
- package/dist/dist-DkPTWQuO.js +4 -0
- package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
- package/dist/{cdn/chunks/src-CVHGPKSW.js → dist-DsA7NeIy.js} +691 -649
- package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
- package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
- package/dist/en-DwxgN_-Y.js +1 -0
- package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
- package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
- package/dist/{extensions-CAuXwpbI.js → extensions-DCJGAZ9z.js} +74 -74
- package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
- package/dist/{fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -1
- package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
- package/dist/index.d.ts +37 -7
- package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
- package/dist/{cdn/chunks/ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -3
- package/dist/keys-B4DimcgX.js +9 -0
- package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
- package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
- package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
- package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
- package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
- package/dist/{normalizeMergeTagMarkup-fgoVMKAc.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
- package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
- package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
- package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
- package/dist/{cdn/chunks/preRenderCustomBlocks-CxwYcAQe.js → preRenderCustomBlocks-D3GzENVB.js} +1 -3
- package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
- package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
- package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
- package/dist/{sanitizeHtml-D2wueiEe.js → sanitizeHtml-BcbjlypU.js} +6 -6
- package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
- package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
- package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
- package/dist/{socialIcons-RKdTgJip.js → socialIcons-By2LPWOQ.js} +563 -585
- package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
- package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +640 -640
- package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
- package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
- package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
- package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
- package/dist/{useCloudI18n-nMZ9f_4b.js → useCloudI18n-BnuOL1YS.js} +1 -1
- package/dist/{useEditorRoot-DpssP9rX.js → useEditorRoot-DWfC2CVC.js} +1 -1
- package/dist/{useI18n-C2p-qHeb.js → useI18n-Cx9W7OWb.js} +1 -1
- package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
- package/dist/{useLogicTag-59fmujI7.js → useLogicTag-f0SJ1Cd2.js} +2 -2
- package/dist/{useMergeTag-M1vauWet.js → useMergeTag-0-EudwkV.js} +4 -4
- package/dist/{usePopoverPosition-L9MOHBM-.js → usePopoverPosition-DF0ZYH7g.js} +1 -1
- package/dist/{useScrollToBlock-BMF0Dt5l.js → useScrollToBlock-CtM_ydOS.js} +2 -2
- package/dist/withCurrentFont-BOg3jmCT.js +18 -0
- package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/AiAltTextPopover-Dj-VLU88.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-tVkJPOk6.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-CYPvHQGQ.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-ChTLCmMS.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-B23ozFnP.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-BKO4Mr8f.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CaRneMZ8.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-O_K3jmgO.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-xAEirqNC.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-CwAoa-73.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-DdQQwtwd.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-C8AKtxiG.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-FxY0RHSq.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-DGgnPUlu.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-9PtYUgCW.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-Co-ffgWa.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-Cl0ajnXZ.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-BVDJ7kyj.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-DPYA8LJW.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput-Cxfjq3tx.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BmNGV3yc.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-DmwrPAss.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BoGELRr-.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-CaKiSq-9.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Dq4TROOg.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-BAR0G4UO.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C-KYaLkQ.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-C3OF0EeB.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-BnyPXw5W.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-uoiUkd2l.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-B9d3ZsH7.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel--fPi6QjN.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cn4fnSpa.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BzAuH2G4.js.map +0 -1
- package/dist/cdn/chunks/TplModal-jMfK19PC.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-DDqYMqC2.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DJpySkvq.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-CYT5QUoc.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-Bi9XgDmX.js.map +0 -1
- package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
- package/dist/cdn/chunks/composables-Cp6gZ7qV.js.map +0 -1
- package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
- package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
- package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
- package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
- package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
- package/dist/cdn/chunks/extensions-BYJPv1sA.js.map +0 -1
- package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
- package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
- package/dist/cdn/chunks/keys-DNv3xXxI.js +0 -11
- package/dist/cdn/chunks/keys-DNv3xXxI.js.map +0 -1
- package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-bvQ57o1m.js.map +0 -1
- package/dist/cdn/chunks/src-BRyzUujm.js.map +0 -1
- package/dist/cdn/chunks/src-CVHGPKSW.js.map +0 -1
- package/dist/cdn/chunks/src-aFRxbwqP.js +0 -707
- package/dist/cdn/chunks/src-aFRxbwqP.js.map +0 -1
- package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-7iwZ1UhB.js +0 -33
- package/dist/dist-CkIeJEsa.js +0 -4
- package/dist/dist-eAgG-nCb.js +0 -4
- package/dist/en-DvCaYqiR.js +0 -1
- package/dist/keys-BeQy64On.js +0 -9
- package/dist/useLocalizedDisplay-9RqT2y_Y.js +0 -31
- package/dist/withCurrentFont-BXZ7g-K6.js +0 -18
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r } from "./dist-B6ptxfPo.js";
|
|
2
2
|
import { c as i, o as a, s as o } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
3
3
|
import { A as s, B as c, D as l, F as u, Ft as d, H as f, L as p, M as m, Mt as h, N as g, O as _, P as v, Pt as y, Q as b, S as x, U as S, W as C, Y as w, Z as T, _ as E, a as ee, at as D, b as O, c as k, ct as A, d as j, et as M, f as N, g as te, j as ne, k as re, l as P, nt as ie, ot as F, q as I, r as L, st as ae, u as R, v as oe, w as z, y as B } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
4
|
-
import { t as se } from "./useEditorRoot-
|
|
5
|
-
import { t as ce } from "./useI18n-
|
|
6
|
-
import "./useCloudI18n-
|
|
7
|
-
import { t as V } from "./useMergeTag-
|
|
4
|
+
import { t as se } from "./useEditorRoot-DWfC2CVC.js";
|
|
5
|
+
import { t as ce } from "./useI18n-Cx9W7OWb.js";
|
|
6
|
+
import "./useCloudI18n-BnuOL1YS.js";
|
|
7
|
+
import { t as V } from "./useMergeTag-0-EudwkV.js";
|
|
8
8
|
import { _ as le, h as ue, v as de, y as fe } from "./dist-A328tG0Z.js";
|
|
9
|
-
import { $ as pe,
|
|
10
|
-
import { t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { n as
|
|
13
|
-
import { $ as
|
|
14
|
-
import { t as
|
|
15
|
-
import { B as
|
|
16
|
-
import { r as
|
|
17
|
-
import { i as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { m as
|
|
27
|
-
import { t as
|
|
28
|
-
import { n as
|
|
29
|
-
import { t as
|
|
30
|
-
import { t as
|
|
31
|
-
import { t as
|
|
32
|
-
var
|
|
9
|
+
import { $ as pe, B as me, Bt as he, C as ge, Et as _e, Ft as ve, G as ye, Gt as be, H as xe, I as Se, Jt as Ce, K as we, Kt as Te, L as Ee, Lt as De, Nt as Oe, P as ke, Q as Ae, Qt as je, R as Me, St as Ne, Tt as Pe, U as Fe, Ut as Ie, W as Le, Wt as Re, X as ze, Xt as Be, Yt as Ve, Z as He, Zt as Ue, an as We, b as Ge, c as Ke, cn as qe, ct as Je, dn as Ye, en as Xe, et as Ze, fn as Qe, ft as $e, gn as et, gt as tt, h as nt, ht as rt, in as it, it as at, j as ot, l as st, ln as ct, lt, m as ut, mt as dt, nn as ft, nt as pt, on as mt, q as ht, qt as gt, rn as _t, st as vt, tn as yt, u as bt, un as xt, ut as St, v as Ct, vt as wt, wt as Tt, x as Et, yt as Dt, z as Ot } from "./dist-DsA7NeIy.js";
|
|
10
|
+
import { t as kt } from "./logger-BOu7oEtk.js";
|
|
11
|
+
import { a as At, c as jt, i as Mt, n as Nt, o as Pt, t as Ft } from "./usePopoverPosition-DF0ZYH7g.js";
|
|
12
|
+
import { n as It } from "./useLocalizedDisplay-_P6-hXaO.js";
|
|
13
|
+
import { $ as Lt, A as Rt, B as zt, C as Bt, D as Vt, F as Ht, G as Ut, H as Wt, I as Gt, J as Kt, K as qt, L as Jt, M as Yt, N as Xt, O as Zt, P as Qt, R as $t, S as en, T as tn, U as nn, V as rn, W as an, X as on, Y as sn, Z as cn, _ as ln, a as un, at as dn, b as fn, c as pn, ct as mn, d as hn, et as gn, g as _n, h as vn, i as yn, it as bn, j as xn, k as Sn, l as Cn, lt as wn, m as Tn, nt as En, ot as Dn, p as On, q as kn, r as An, rt as jn, s as Mn, st as Nn, u as Pn, ut as Fn, v as In, w as Ln, x as Rn, y as zn, z as Bn } from "./keys-B4DimcgX.js";
|
|
14
|
+
import { t as Vn } from "./useLogicTag-f0SJ1Cd2.js";
|
|
15
|
+
import { B as Hn, C as Un, D as Wn, E as Gn, F as Kn, H as qn, O as Jn, P as Yn, T as Xn, U as Zn, _ as Qn, a as $n, f as er, h as tr, k as nr, n as rr, o as ir, t as ar, u as or, v as sr, w as cr, x as lr, y as ur, z as dr } from "./socialIcons-By2LPWOQ.js";
|
|
16
|
+
import { r as fr, t as pr } from "./templateSettingsFields-cjlP-jdw.js";
|
|
17
|
+
import { i as mr, r as hr, t as gr } from "./sanitizeHtml-BcbjlypU.js";
|
|
18
|
+
import { t as _r } from "./createLucideIcon-B6Zkn9r0.js";
|
|
19
|
+
import { t as vr } from "./LoadingTrack-c4SeD16s.js";
|
|
20
|
+
import { t as yr } from "./triangle-exclamation-point-BR-W6pQm.js";
|
|
21
|
+
import { t as br } from "./image-DfRxUmUh.js";
|
|
22
|
+
import { t as xr } from "./clock-Rw4btQn-.js";
|
|
23
|
+
import { t as Sr } from "./pencil-T4qqyRLl.js";
|
|
24
|
+
import { t as Cr } from "./languageName-DEEOhDWI.js";
|
|
25
|
+
import { t as wr } from "./plural-CyxrJXL1.js";
|
|
26
|
+
import { m as Tr, w as Er, x as Dr } from "./styleConstants-Br6CIRoS.js";
|
|
27
|
+
import { t as Or } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
28
|
+
import { n as kr } from "./upload-B_Eoqj-4.js";
|
|
29
|
+
import { t as Ar } from "./message-circle-Bj4F9bBO.js";
|
|
30
|
+
import { t as jr } from "./trash-YZPJMZc7.js";
|
|
31
|
+
import { t as Mr } from "./readableTextColor-BfZUGnVj.js";
|
|
32
|
+
var Nr = _r({
|
|
33
33
|
name: "bookmark",
|
|
34
34
|
size: 24,
|
|
35
35
|
node: [["path", {
|
|
36
36
|
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",
|
|
37
37
|
key: "oz39mx"
|
|
38
38
|
}]]
|
|
39
|
-
}),
|
|
39
|
+
}), Pr = _r({
|
|
40
40
|
name: "box",
|
|
41
41
|
size: 24,
|
|
42
42
|
node: [
|
|
@@ -53,7 +53,7 @@ var kr = pr({
|
|
|
53
53
|
key: "d0xqtd"
|
|
54
54
|
}]
|
|
55
55
|
]
|
|
56
|
-
}),
|
|
56
|
+
}), Fr = _r({
|
|
57
57
|
name: "eye-off",
|
|
58
58
|
size: 24,
|
|
59
59
|
node: [
|
|
@@ -74,7 +74,7 @@ var kr = pr({
|
|
|
74
74
|
key: "1ooewy"
|
|
75
75
|
}]
|
|
76
76
|
]
|
|
77
|
-
}),
|
|
77
|
+
}), Ir = _r({
|
|
78
78
|
name: "funnel",
|
|
79
79
|
size: 24,
|
|
80
80
|
node: [["path", {
|
|
@@ -82,7 +82,7 @@ var kr = pr({
|
|
|
82
82
|
key: "sc7q7i"
|
|
83
83
|
}]],
|
|
84
84
|
aliases: ["filter"]
|
|
85
|
-
}),
|
|
85
|
+
}), Lr = _r({
|
|
86
86
|
name: "grip-vertical",
|
|
87
87
|
size: 24,
|
|
88
88
|
node: [
|
|
@@ -123,14 +123,14 @@ var kr = pr({
|
|
|
123
123
|
key: "f4zoj3"
|
|
124
124
|
}]
|
|
125
125
|
]
|
|
126
|
-
}),
|
|
126
|
+
}), Rr = _r({
|
|
127
127
|
name: "puzzle",
|
|
128
128
|
size: 24,
|
|
129
129
|
node: [["path", {
|
|
130
130
|
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",
|
|
131
131
|
key: "w46dr5"
|
|
132
132
|
}]]
|
|
133
|
-
}),
|
|
133
|
+
}), zr = _r({
|
|
134
134
|
name: "video",
|
|
135
135
|
size: 24,
|
|
136
136
|
node: [["path", {
|
|
@@ -144,11 +144,11 @@ var kr = pr({
|
|
|
144
144
|
rx: "2",
|
|
145
145
|
key: "158x01"
|
|
146
146
|
}]]
|
|
147
|
-
}),
|
|
148
|
-
function
|
|
147
|
+
}), Br = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
148
|
+
function Vr(t, n) {
|
|
149
149
|
let r = se(), i = null, a = null, o = null;
|
|
150
150
|
function s() {
|
|
151
|
-
return t.value ? Array.from(t.value.querySelectorAll(
|
|
151
|
+
return t.value ? Array.from(t.value.querySelectorAll(Br)).filter((e) => e.offsetParent !== null) : [];
|
|
152
152
|
}
|
|
153
153
|
function l(e) {
|
|
154
154
|
if (e.key !== "Tab") return;
|
|
@@ -177,7 +177,7 @@ function Lr(t, n) {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
// src/composables/useEmoji.ts
|
|
180
|
-
function
|
|
180
|
+
function Hr() {
|
|
181
181
|
let [e, t] = de(!1), n = ie([]), r = !1;
|
|
182
182
|
T(() => {
|
|
183
183
|
r = !0;
|
|
@@ -202,7 +202,7 @@ function Rr() {
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
// src/composables/useBlockRegistry.ts
|
|
205
|
-
function
|
|
205
|
+
function Ur() {
|
|
206
206
|
let e = ie(/* @__PURE__ */ new Map());
|
|
207
207
|
function t(t, n) {
|
|
208
208
|
e.value.set(t, n), ae(e);
|
|
@@ -210,7 +210,7 @@ function zr() {
|
|
|
210
210
|
function n(t, n) {
|
|
211
211
|
let r = `custom:${t.type}`, i = {
|
|
212
212
|
component: n,
|
|
213
|
-
createBlock: () =>
|
|
213
|
+
createBlock: () => Ot(t),
|
|
214
214
|
definition: t
|
|
215
215
|
};
|
|
216
216
|
e.value.set(r, i), ae(e);
|
|
@@ -236,9 +236,9 @@ function zr() {
|
|
|
236
236
|
let t = a(e.customType);
|
|
237
237
|
if (!t) return o("Block definition not found");
|
|
238
238
|
try {
|
|
239
|
-
return await
|
|
239
|
+
return await me(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
|
|
240
240
|
} catch (t) {
|
|
241
|
-
return
|
|
241
|
+
return kt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
function c(t) {
|
|
@@ -255,7 +255,7 @@ function zr() {
|
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
// src/composables/useFonts.ts
|
|
258
|
-
var
|
|
258
|
+
var Wr = [
|
|
259
259
|
{
|
|
260
260
|
value: "Arial",
|
|
261
261
|
label: "Arial"
|
|
@@ -284,19 +284,19 @@ var Br = [
|
|
|
284
284
|
value: "Courier New",
|
|
285
285
|
label: "Courier New"
|
|
286
286
|
}
|
|
287
|
-
],
|
|
288
|
-
function
|
|
289
|
-
if (e === void 0 || e === !0) return [...
|
|
287
|
+
], Gr = "Arial, sans-serif";
|
|
288
|
+
function Kr(e) {
|
|
289
|
+
if (e === void 0 || e === !0) return [...Wr];
|
|
290
290
|
if (e === !1) return [];
|
|
291
291
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
292
292
|
for (let i of e) {
|
|
293
|
-
let e = i.toLowerCase(), a =
|
|
294
|
-
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e),
|
|
293
|
+
let e = i.toLowerCase(), a = Wr.find((t) => t.value.toLowerCase() === e);
|
|
294
|
+
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), kt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Wr.map((e) => e.value).join(", ")}.`));
|
|
295
295
|
}
|
|
296
296
|
return t;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
let t = M(e?.customFonts ?? []), n = M(!1), r =
|
|
298
|
+
function qr(e) {
|
|
299
|
+
let t = M(e?.customFonts ?? []), n = M(!1), r = Kr(e?.builtIns), i = k(() => e?.defaultFallback ?? Gr), a = k(() => {
|
|
300
300
|
let e = [...r], n = t.value.map((e) => ({
|
|
301
301
|
value: e.name,
|
|
302
302
|
label: e.name,
|
|
@@ -307,18 +307,18 @@ function Ur(e) {
|
|
|
307
307
|
function o(e) {
|
|
308
308
|
return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
309
309
|
}
|
|
310
|
-
let s = e?.defaultFont ??
|
|
311
|
-
o(s) ||
|
|
310
|
+
let s = e?.defaultFont ?? Gr.split(",")[0].trim();
|
|
311
|
+
o(s) || kt.warn(`config.fonts: new templates seed "${s}", 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.`);
|
|
312
312
|
function c() {
|
|
313
313
|
if (e?.defaultFont && o(e.defaultFont)) {
|
|
314
314
|
let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
315
315
|
if (t) return t.value;
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return Gr;
|
|
318
318
|
}
|
|
319
319
|
let l = k(() => c());
|
|
320
320
|
function u(e) {
|
|
321
|
-
return
|
|
321
|
+
return gt(e, {
|
|
322
322
|
customFonts: t.value,
|
|
323
323
|
defaultFallback: i.value
|
|
324
324
|
});
|
|
@@ -337,7 +337,7 @@ function Ur(e) {
|
|
|
337
337
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
338
338
|
});
|
|
339
339
|
} catch (t) {
|
|
340
|
-
|
|
340
|
+
kt.warn(`Failed to load custom font "${e.name}":`, t);
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
343
|
await Promise.allSettled(e), f || (n.value = !0);
|
|
@@ -361,7 +361,7 @@ function Ur(e) {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
// src/composables/useThemeStyles.ts
|
|
364
|
-
var
|
|
364
|
+
var Jr = {
|
|
365
365
|
bg: "--tpl-bg",
|
|
366
366
|
bgElevated: "--tpl-bg-elevated",
|
|
367
367
|
bgHover: "--tpl-bg-hover",
|
|
@@ -385,10 +385,10 @@ var Wr = {
|
|
|
385
385
|
dangerLight: "--tpl-danger-light",
|
|
386
386
|
canvasBg: "--tpl-canvas-bg"
|
|
387
387
|
};
|
|
388
|
-
function
|
|
388
|
+
function Yr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
389
389
|
return { themeStyles: k(() => {
|
|
390
390
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
391
|
-
if (a) for (let [e, t] of Object.entries(
|
|
391
|
+
if (a) for (let [e, t] of Object.entries(Jr)) {
|
|
392
392
|
let n = a[e];
|
|
393
393
|
n && (r[t] = n);
|
|
394
394
|
}
|
|
@@ -396,12 +396,12 @@ function Gr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
396
396
|
}) };
|
|
397
397
|
}
|
|
398
398
|
// src/utils/mergeTagNodeSpec.ts
|
|
399
|
-
function
|
|
400
|
-
return
|
|
399
|
+
function Xr(e, t, n) {
|
|
400
|
+
return Tt(e, n) ? {
|
|
401
401
|
type: "logicMergeTagNode",
|
|
402
402
|
attrs: {
|
|
403
403
|
value: e,
|
|
404
|
-
keyword:
|
|
404
|
+
keyword: dt(e, n)
|
|
405
405
|
}
|
|
406
406
|
} : {
|
|
407
407
|
type: "mergeTagNode",
|
|
@@ -412,32 +412,32 @@ function Kr(e, t, n) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
// src/utils/insertLogicTag.ts
|
|
415
|
-
function
|
|
415
|
+
function Zr(e) {
|
|
416
416
|
return "before" in e && "after" in e;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
if (!
|
|
420
|
-
e.chain().focus().insertContent(
|
|
418
|
+
function Qr(e, t, n) {
|
|
419
|
+
if (!Zr(t)) {
|
|
420
|
+
e.chain().focus().insertContent(Xr(t.value, t.label, n)).run();
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
|
-
let r =
|
|
423
|
+
let r = Xr(t.before, t.label, n), i = Xr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
424
424
|
a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
425
425
|
}
|
|
426
426
|
// src/utils/linkColorExtension.ts
|
|
427
|
-
function
|
|
427
|
+
function $r(e) {
|
|
428
428
|
if (!e) return null;
|
|
429
429
|
let t = e.trim();
|
|
430
430
|
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;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function ei(e) {
|
|
433
433
|
return e.extend({ addAttributes() {
|
|
434
434
|
return {
|
|
435
435
|
...this.parent?.(),
|
|
436
436
|
color: {
|
|
437
437
|
default: null,
|
|
438
|
-
parseHTML: (e) =>
|
|
438
|
+
parseHTML: (e) => $r(Pt(e.style.color)),
|
|
439
439
|
renderHTML: (e) => {
|
|
440
|
-
let t =
|
|
440
|
+
let t = $r(e.color);
|
|
441
441
|
return t ? { style: `color: ${t}` } : {};
|
|
442
442
|
}
|
|
443
443
|
}
|
|
@@ -445,9 +445,9 @@ function Xr(e) {
|
|
|
445
445
|
} });
|
|
446
446
|
}
|
|
447
447
|
// src/composables/useRichTextLinkDialog.ts
|
|
448
|
-
function
|
|
448
|
+
function ti(e, t = Ct.liquid, n = () => !0) {
|
|
449
449
|
let r = M(!1), i = M(""), a = M(""), o = M(null);
|
|
450
|
-
|
|
450
|
+
Vr(o, r);
|
|
451
451
|
function s() {
|
|
452
452
|
if (!n()) return;
|
|
453
453
|
let t = e.value?.getAttributes("link") ?? {};
|
|
@@ -458,7 +458,7 @@ function Zr(e, t = qe.liquid, n = () => !0) {
|
|
|
458
458
|
if (i.value) {
|
|
459
459
|
let t = d(i.value);
|
|
460
460
|
if (t !== null) {
|
|
461
|
-
let n =
|
|
461
|
+
let n = $r(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
462
462
|
n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
|
|
463
463
|
}
|
|
464
464
|
}
|
|
@@ -475,8 +475,8 @@ function Zr(e, t = qe.liquid, n = () => !0) {
|
|
|
475
475
|
if (t.startsWith("#")) return t;
|
|
476
476
|
if (t.startsWith("//")) return `https:${t}`;
|
|
477
477
|
if (l.test(t)) return t;
|
|
478
|
-
let n =
|
|
479
|
-
return n ?
|
|
478
|
+
let n = Je(t);
|
|
479
|
+
return n ? nt.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
|
|
480
480
|
}
|
|
481
481
|
function f() {
|
|
482
482
|
n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
|
|
@@ -500,13 +500,13 @@ function Zr(e, t = qe.liquid, n = () => !0) {
|
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
// src/composables/useRichTextEditor.ts
|
|
503
|
-
function
|
|
504
|
-
let n = z(
|
|
503
|
+
function ni(t) {
|
|
504
|
+
let n = z(In, null), r = jt(), i = z(sn, null), a = k(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: l, requestMergeTag: u, syntax: d, autocomplete: f } = V(), { canInsertLogicTag: p, isRequesting: m, requestLogicTag: h } = Vn(), g = z(dn, null), _ = (w(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = wt(d), y = ie(null), b = n?.content ? It(n) : null, x = () => Te(b?.settings.value ?? { locale: "en" });
|
|
505
505
|
c(x, (e) => {
|
|
506
506
|
let t = y.value?.view.dom;
|
|
507
507
|
t && t.setAttribute("dir", e);
|
|
508
508
|
});
|
|
509
|
-
let { showLinkDialog: S, linkUrl: C, linkColor: T, linkDialogRef: E, openLinkDialog: ee, insertLink: D, removeLink: O, closeLinkDialog: A, handleLinkKeydown: j } =
|
|
509
|
+
let { showLinkDialog: S, linkUrl: C, linkColor: T, linkDialogRef: E, openLinkDialog: ee, insertLink: D, removeLink: O, closeLinkDialog: A, handleLinkKeydown: j } = ti(y, d, () => a.value);
|
|
510
510
|
c(a, (e) => {
|
|
511
511
|
if (y.value?.setEditable(e, !1), !e) {
|
|
512
512
|
A();
|
|
@@ -545,7 +545,7 @@ function Qr(t) {
|
|
|
545
545
|
y.value = c, P.value = !1, N();
|
|
546
546
|
} catch (e) {
|
|
547
547
|
if (I) return;
|
|
548
|
-
|
|
548
|
+
kt.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
function R() {
|
|
@@ -577,7 +577,7 @@ function Qr(t) {
|
|
|
577
577
|
async function ce() {
|
|
578
578
|
if (!a.value) return;
|
|
579
579
|
let e = await h();
|
|
580
|
-
!I && a.value && (e && y.value ?
|
|
580
|
+
!I && a.value && (e && y.value ? Qr(y.value, e, d) : y.value?.commands.focus());
|
|
581
581
|
}
|
|
582
582
|
return {
|
|
583
583
|
editor: y,
|
|
@@ -606,25 +606,25 @@ function Qr(t) {
|
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
608
|
// src/utils/activeEditorTracker.ts
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
let e = ++
|
|
612
|
-
return
|
|
609
|
+
var ri = /* @__PURE__ */ new Set(), ii = 0, ai = 0;
|
|
610
|
+
function oi() {
|
|
611
|
+
let e = ++ai;
|
|
612
|
+
return ri.add(e), ii === 0 && (ii = e), {
|
|
613
613
|
id: e,
|
|
614
|
-
isActive: () =>
|
|
614
|
+
isActive: () => ri.size <= 1 || ii === e,
|
|
615
615
|
claim: () => {
|
|
616
|
-
|
|
616
|
+
ii = e;
|
|
617
617
|
},
|
|
618
618
|
dispose: () => {
|
|
619
|
-
if (
|
|
620
|
-
let e = Array.from(
|
|
621
|
-
|
|
619
|
+
if (ri.delete(e), ii === e) {
|
|
620
|
+
let e = Array.from(ri);
|
|
621
|
+
ii = e[e.length - 1] ?? 0;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
// src/utils/resolveLintOptions.ts
|
|
627
|
-
function
|
|
627
|
+
function si(e) {
|
|
628
628
|
let t = e.contentLocale ?? e.content?.settings.locale;
|
|
629
629
|
return {
|
|
630
630
|
...e.lint,
|
|
@@ -633,8 +633,8 @@ function ri(e) {
|
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
// src/composables/usePreviewResolution.ts
|
|
636
|
-
var
|
|
637
|
-
function
|
|
636
|
+
var ci = 500;
|
|
637
|
+
function li(e) {
|
|
638
638
|
let t = typeof e.resolvePreview == "function", n = M(null), r = M(!1), i = M(!1), a = M(!1), o = 0, s = null;
|
|
639
639
|
function l() {
|
|
640
640
|
s !== null && (clearTimeout(s), s = null);
|
|
@@ -645,7 +645,7 @@ function ai(e) {
|
|
|
645
645
|
let c = ++o;
|
|
646
646
|
r.value = !0;
|
|
647
647
|
let l = {
|
|
648
|
-
content:
|
|
648
|
+
content: Xe(e.getContent()),
|
|
649
649
|
surface: e.surface,
|
|
650
650
|
trigger: t,
|
|
651
651
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
@@ -653,7 +653,7 @@ function ai(e) {
|
|
|
653
653
|
try {
|
|
654
654
|
let e = await s(l);
|
|
655
655
|
if (c !== o) return;
|
|
656
|
-
if (!
|
|
656
|
+
if (!_e(e)) {
|
|
657
657
|
i.value = !0, n.value = null;
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
@@ -668,7 +668,7 @@ function ai(e) {
|
|
|
668
668
|
function d(e) {
|
|
669
669
|
t && (l(), !a.value && e !== "recipient" ? u(e) : s = setTimeout(() => {
|
|
670
670
|
s = null, u(e);
|
|
671
|
-
},
|
|
671
|
+
}, ci));
|
|
672
672
|
}
|
|
673
673
|
function f() {
|
|
674
674
|
t && e.isActive() && (l(), u("refresh"));
|
|
@@ -695,12 +695,13 @@ function ai(e) {
|
|
|
695
695
|
isResolving: r,
|
|
696
696
|
isInitialResolve: k(() => r.value && !a.value),
|
|
697
697
|
hasFailed: i,
|
|
698
|
+
isShowingResolved: k(() => n.value !== null),
|
|
698
699
|
supersedesSamples: k(() => t),
|
|
699
700
|
refresh: f
|
|
700
701
|
};
|
|
701
702
|
}
|
|
702
703
|
// src/composables/useMergeTagPicker.ts
|
|
703
|
-
function
|
|
704
|
+
function ui() {
|
|
704
705
|
let e = M(!1), t = M([]), n = M(null), r = null;
|
|
705
706
|
function i(i, a) {
|
|
706
707
|
if (r) {
|
|
@@ -730,7 +731,7 @@ function oi() {
|
|
|
730
731
|
};
|
|
731
732
|
}
|
|
732
733
|
// src/composables/useLogicTagPicker.ts
|
|
733
|
-
function
|
|
734
|
+
function di() {
|
|
734
735
|
let e = M(!1), t = M([]), n = M([]), r = null;
|
|
735
736
|
function i(i, a) {
|
|
736
737
|
if (r) {
|
|
@@ -760,14 +761,14 @@ function si() {
|
|
|
760
761
|
};
|
|
761
762
|
}
|
|
762
763
|
// src/composables/useTemplateLint.ts
|
|
763
|
-
function
|
|
764
|
+
function fi(e) {
|
|
764
765
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
|
|
765
766
|
}
|
|
766
|
-
var
|
|
767
|
-
function
|
|
767
|
+
var pi = !1;
|
|
768
|
+
function mi(e) {
|
|
768
769
|
let t = M([]), n = M(0), r = M(-1), i = c(e.content, () => {
|
|
769
770
|
n.value++;
|
|
770
|
-
}, { deep: !0 }), a = M(!1), o = M(!1), s = ie(null), l =
|
|
771
|
+
}, { deep: !0 }), a = M(!1), o = M(!1), s = ie(null), l = fi(e.options), u = null, d = !1;
|
|
771
772
|
l || f();
|
|
772
773
|
async function f() {
|
|
773
774
|
try {
|
|
@@ -776,7 +777,7 @@ function ui(e) {
|
|
|
776
777
|
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = fe(n, p, { debounce: e.debounce ?? 500 });
|
|
777
778
|
} catch {
|
|
778
779
|
if (d) return;
|
|
779
|
-
o.value = !0,
|
|
780
|
+
o.value = !0, pi || (pi = !0, kt.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."));
|
|
780
781
|
}
|
|
781
782
|
}
|
|
782
783
|
function p() {
|
|
@@ -815,7 +816,7 @@ function ui(e) {
|
|
|
815
816
|
};
|
|
816
817
|
}
|
|
817
818
|
// src/composables/useKeyboardReorder.ts
|
|
818
|
-
function
|
|
819
|
+
function hi(e, t, n = []) {
|
|
819
820
|
let r = M(null), i = M(""), a = null;
|
|
820
821
|
function o(t) {
|
|
821
822
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -842,7 +843,7 @@ function di(e, t, n = []) {
|
|
|
842
843
|
let i = o(r);
|
|
843
844
|
if (!i) return "";
|
|
844
845
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
845
|
-
return a ?
|
|
846
|
+
return a ? ur(a, t.t, n) : "";
|
|
846
847
|
}
|
|
847
848
|
function c(t, n) {
|
|
848
849
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -910,14 +911,14 @@ function di(e, t, n = []) {
|
|
|
910
911
|
};
|
|
911
912
|
}
|
|
912
913
|
// src/composables/useUiTheme.ts
|
|
913
|
-
function
|
|
914
|
+
function gi(e) {
|
|
914
915
|
let n = t("(prefers-color-scheme: dark)");
|
|
915
916
|
return { resolvedTheme: k(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
|
|
916
917
|
}
|
|
917
918
|
// src/composables/useCustomBlockStylesheets.ts
|
|
918
|
-
function
|
|
919
|
+
function _i(e, t) {
|
|
919
920
|
return k(() => {
|
|
920
|
-
let n =
|
|
921
|
+
let n = vi(e.value.blocks);
|
|
921
922
|
if (n.size === 0) return [];
|
|
922
923
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
923
924
|
for (let e of n) {
|
|
@@ -929,31 +930,31 @@ function pi(e, t) {
|
|
|
929
930
|
return i;
|
|
930
931
|
});
|
|
931
932
|
}
|
|
932
|
-
function
|
|
933
|
+
function vi(e) {
|
|
933
934
|
let t = /* @__PURE__ */ new Set();
|
|
934
|
-
return
|
|
935
|
+
return yi(e, t), t;
|
|
935
936
|
}
|
|
936
|
-
function
|
|
937
|
-
for (let n of e) if (
|
|
937
|
+
function yi(e, t) {
|
|
938
|
+
for (let n of e) if (Ne(n)) t.add(n.customType);
|
|
938
939
|
else if (n.type === "section") {
|
|
939
940
|
let e = n.children;
|
|
940
941
|
if (!e) continue;
|
|
941
|
-
for (let n of e)
|
|
942
|
-
} else
|
|
942
|
+
for (let n of e) yi(n, t);
|
|
943
|
+
} else Oe(n) && yi(n.children, t);
|
|
943
944
|
}
|
|
944
945
|
// src/utils/registerBuiltInBlocks.ts
|
|
945
|
-
var
|
|
946
|
+
var bi = [
|
|
946
947
|
{
|
|
947
948
|
type: "section",
|
|
948
|
-
createBlock:
|
|
949
|
+
createBlock: ht
|
|
949
950
|
},
|
|
950
951
|
{
|
|
951
952
|
type: "title",
|
|
952
|
-
createBlock:
|
|
953
|
+
createBlock: pe
|
|
953
954
|
},
|
|
954
955
|
{
|
|
955
956
|
type: "paragraph",
|
|
956
|
-
createBlock:
|
|
957
|
+
createBlock: we
|
|
957
958
|
},
|
|
958
959
|
{
|
|
959
960
|
type: "image",
|
|
@@ -961,43 +962,43 @@ var gi = [
|
|
|
961
962
|
},
|
|
962
963
|
{
|
|
963
964
|
type: "button",
|
|
964
|
-
createBlock:
|
|
965
|
+
createBlock: Ee
|
|
965
966
|
},
|
|
966
967
|
{
|
|
967
968
|
type: "divider",
|
|
968
|
-
createBlock:
|
|
969
|
+
createBlock: xe
|
|
969
970
|
},
|
|
970
971
|
{
|
|
971
972
|
type: "video",
|
|
972
|
-
createBlock:
|
|
973
|
+
createBlock: Ze
|
|
973
974
|
},
|
|
974
975
|
{
|
|
975
976
|
type: "social",
|
|
976
|
-
createBlock:
|
|
977
|
+
createBlock: ze
|
|
977
978
|
},
|
|
978
979
|
{
|
|
979
980
|
type: "menu",
|
|
980
|
-
createBlock:
|
|
981
|
+
createBlock: ye
|
|
981
982
|
},
|
|
982
983
|
{
|
|
983
984
|
type: "table",
|
|
984
|
-
createBlock:
|
|
985
|
+
createBlock: Ae
|
|
985
986
|
},
|
|
986
987
|
{
|
|
987
988
|
type: "spacer",
|
|
988
|
-
createBlock:
|
|
989
|
+
createBlock: He
|
|
989
990
|
},
|
|
990
991
|
{
|
|
991
992
|
type: "html",
|
|
992
|
-
createBlock:
|
|
993
|
+
createBlock: Fe
|
|
993
994
|
},
|
|
994
995
|
{
|
|
995
996
|
type: "countdown",
|
|
996
|
-
createBlock:
|
|
997
|
+
createBlock: Me
|
|
997
998
|
}
|
|
998
999
|
];
|
|
999
|
-
function
|
|
1000
|
-
for (let n of
|
|
1000
|
+
function xi(e, t) {
|
|
1001
|
+
for (let n of bi) {
|
|
1001
1002
|
let r = t[n.type];
|
|
1002
1003
|
r && e.registerBuiltIn(n.type, {
|
|
1003
1004
|
component: r,
|
|
@@ -1006,31 +1007,31 @@ function _i(e, t) {
|
|
|
1006
1007
|
}
|
|
1007
1008
|
}
|
|
1008
1009
|
// src/utils/resolveHtmlBlockPreview.ts
|
|
1009
|
-
function
|
|
1010
|
+
function Si(e) {
|
|
1010
1011
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
1011
1012
|
}
|
|
1012
1013
|
// src/utils/collectOffPaletteDefaults.ts
|
|
1013
|
-
function
|
|
1014
|
+
function Ci(e) {
|
|
1014
1015
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1015
1016
|
}
|
|
1016
|
-
function
|
|
1017
|
-
let r = new Set(e.map((e) =>
|
|
1018
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
1017
|
+
function wi(e, t, n) {
|
|
1018
|
+
let r = new Set(e.map((e) => At(e))), i = [], a = (e, t) => {
|
|
1019
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(At(o)) && i.push(`${t}.${n}: ${o}`) : Ci(o) && a(o, `${t}.${n}`);
|
|
1019
1020
|
}, o = t;
|
|
1020
|
-
for (let [e, t] of Object.entries(
|
|
1021
|
+
for (let [e, t] of Object.entries(Ke)) {
|
|
1021
1022
|
let n = o?.[e];
|
|
1022
1023
|
a({
|
|
1023
1024
|
...t,
|
|
1024
|
-
...
|
|
1025
|
+
...Ci(n) ? n : {}
|
|
1025
1026
|
}, e);
|
|
1026
1027
|
}
|
|
1027
1028
|
return a({
|
|
1028
|
-
...
|
|
1029
|
+
...st,
|
|
1029
1030
|
...n ?? {}
|
|
1030
1031
|
}, "template"), i;
|
|
1031
1032
|
}
|
|
1032
1033
|
// src/utils/localizedBlockDefaults.ts
|
|
1033
|
-
function
|
|
1034
|
+
function Ti(e) {
|
|
1034
1035
|
return {
|
|
1035
1036
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
1036
1037
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
@@ -1038,63 +1039,63 @@ function xi(e) {
|
|
|
1038
1039
|
};
|
|
1039
1040
|
}
|
|
1040
1041
|
// src/i18n/index.ts
|
|
1041
|
-
var
|
|
1042
|
-
"./locales/ca.ts": () => import("./ca-
|
|
1043
|
-
"./locales/da.ts": () => import("./da-
|
|
1044
|
-
"./locales/de.ts": () => import("./de-
|
|
1045
|
-
"./locales/en.ts": () => import("./en-
|
|
1046
|
-
"./locales/es.ts": () => import("./es-
|
|
1047
|
-
"./locales/fr.ts": () => import("./fr-
|
|
1048
|
-
"./locales/ja.ts": () => import("./ja-
|
|
1049
|
-
"./locales/nl.ts": () => import("./nl-
|
|
1050
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
1051
|
-
}),
|
|
1042
|
+
var Ei = /* #__PURE__ */ Object.assign({
|
|
1043
|
+
"./locales/ca.ts": () => import("./ca-Ce3NmK9v.js"),
|
|
1044
|
+
"./locales/da.ts": () => import("./da-4YwDAuEr.js"),
|
|
1045
|
+
"./locales/de.ts": () => import("./de-BlQ0vdZJ.js"),
|
|
1046
|
+
"./locales/en.ts": () => import("./en-MlNeQVSG.js"),
|
|
1047
|
+
"./locales/es.ts": () => import("./es-2s8x4OM2.js"),
|
|
1048
|
+
"./locales/fr.ts": () => import("./fr-D3MjrsgQ.js"),
|
|
1049
|
+
"./locales/ja.ts": () => import("./ja-B4Kx7uBX.js"),
|
|
1050
|
+
"./locales/nl.ts": () => import("./nl-U65iX7wN.js"),
|
|
1051
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-_jsX1xLv.js")
|
|
1052
|
+
}), Di = /* #__PURE__ */ Object.assign({
|
|
1052
1053
|
"./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
|
|
1053
1054
|
"./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
|
|
1054
1055
|
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
|
|
1055
1056
|
});
|
|
1056
|
-
function
|
|
1057
|
+
function Oi(e) {
|
|
1057
1058
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
1058
1059
|
}
|
|
1059
|
-
var
|
|
1060
|
-
function
|
|
1060
|
+
var ki = Oi(Ei), Ai = Oi(Di);
|
|
1061
|
+
function ji(e) {
|
|
1061
1062
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
-
let n =
|
|
1065
|
-
return t.find((e) =>
|
|
1064
|
+
function Mi(e, t) {
|
|
1065
|
+
let n = ji(e);
|
|
1066
|
+
return t.find((e) => ji(e) === n);
|
|
1066
1067
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return
|
|
1068
|
+
function Ni(e) {
|
|
1069
|
+
return ji(e).split("-")[0];
|
|
1069
1070
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return
|
|
1071
|
+
function Pi(e, t) {
|
|
1072
|
+
return Mi(e, t) ?? Mi(Ni(e), t);
|
|
1072
1073
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1074
|
+
function Fi(e, t) {
|
|
1075
|
+
return Pi(e, t) ?? "en";
|
|
1075
1076
|
}
|
|
1076
|
-
async function
|
|
1077
|
-
let t =
|
|
1077
|
+
async function Ii(e) {
|
|
1078
|
+
let t = Ei[`./locales/${Fi(e, ki)}.ts`];
|
|
1078
1079
|
return (await t()).default;
|
|
1079
1080
|
}
|
|
1080
|
-
async function
|
|
1081
|
-
let t =
|
|
1081
|
+
async function Li(e) {
|
|
1082
|
+
let t = Di[`./locales/cloud/${Fi(e, Ai)}.ts`];
|
|
1082
1083
|
return (await t()).default;
|
|
1083
1084
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return
|
|
1085
|
+
function Ri(e) {
|
|
1086
|
+
return Pi(e, ki) !== void 0;
|
|
1086
1087
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return
|
|
1088
|
+
function zi(e) {
|
|
1089
|
+
return Pi(e, Ai) !== void 0;
|
|
1089
1090
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return [...
|
|
1091
|
+
function Bi() {
|
|
1092
|
+
return [...ki];
|
|
1092
1093
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return [...
|
|
1094
|
+
function Vi() {
|
|
1095
|
+
return [...Ai];
|
|
1095
1096
|
}
|
|
1096
1097
|
// src/i18n/contentDefaults.ts
|
|
1097
|
-
var
|
|
1098
|
+
var Hi = {
|
|
1098
1099
|
en: {
|
|
1099
1100
|
video: "Video",
|
|
1100
1101
|
days: "Days",
|
|
@@ -1168,17 +1169,17 @@ var Ri = {
|
|
|
1168
1169
|
expired: "Dette tilbud er udløbet"
|
|
1169
1170
|
}
|
|
1170
1171
|
};
|
|
1171
|
-
Object.keys(
|
|
1172
|
-
var
|
|
1173
|
-
function
|
|
1174
|
-
if (!e) return
|
|
1175
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
1176
|
-
if (n) return
|
|
1177
|
-
let r =
|
|
1178
|
-
return r ?
|
|
1179
|
-
}
|
|
1180
|
-
function
|
|
1181
|
-
let t =
|
|
1172
|
+
Object.keys(Hi);
|
|
1173
|
+
var Ui = new Map(Object.keys(Hi).map((e) => [e.toLowerCase(), e]));
|
|
1174
|
+
function Wi(e) {
|
|
1175
|
+
if (!e) return Hi.en;
|
|
1176
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ui.get(t);
|
|
1177
|
+
if (n) return Hi[n];
|
|
1178
|
+
let r = Ui.get(Ni(t));
|
|
1179
|
+
return r ? Hi[r] : Hi.en;
|
|
1180
|
+
}
|
|
1181
|
+
function Gi(e) {
|
|
1182
|
+
let t = Wi(e);
|
|
1182
1183
|
return {
|
|
1183
1184
|
video: { alt: t.video },
|
|
1184
1185
|
countdown: {
|
|
@@ -1191,9 +1192,9 @@ function Vi(e) {
|
|
|
1191
1192
|
};
|
|
1192
1193
|
}
|
|
1193
1194
|
// src/utils/collectColorFieldIssues.ts
|
|
1194
|
-
function
|
|
1195
|
+
function Ki(e, t) {
|
|
1195
1196
|
let n = [], r = (r, i) => {
|
|
1196
|
-
let a =
|
|
1197
|
+
let a = sr(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
1197
1198
|
if (a.invalidPresets.length > 0 && n.push({
|
|
1198
1199
|
id: s("invalid-presets"),
|
|
1199
1200
|
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." : "")
|
|
@@ -1204,8 +1205,8 @@ function Hi(e, t) {
|
|
|
1204
1205
|
id: s("allow-custom-ignored"),
|
|
1205
1206
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
1206
1207
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
1207
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
1208
|
-
e !== "" && !t.has(
|
|
1208
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => At(e)));
|
|
1209
|
+
e !== "" && !t.has(At(e)) && n.push({
|
|
1209
1210
|
id: s("off-palette-default"),
|
|
1210
1211
|
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.`
|
|
1211
1212
|
});
|
|
@@ -1216,7 +1217,7 @@ function Hi(e, t) {
|
|
|
1216
1217
|
return n;
|
|
1217
1218
|
}
|
|
1218
1219
|
// src/utils/keyboardShortcuts.ts
|
|
1219
|
-
function
|
|
1220
|
+
function qi(e) {
|
|
1220
1221
|
for (let t of e.composedPath()) {
|
|
1221
1222
|
if (!(t instanceof HTMLElement)) continue;
|
|
1222
1223
|
if (t.isContentEditable) return !0;
|
|
@@ -1225,14 +1226,14 @@ function Ui(e) {
|
|
|
1225
1226
|
}
|
|
1226
1227
|
return !1;
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
+
function Ji(e, t) {
|
|
1229
1230
|
let n = e.metaKey || e.ctrlKey;
|
|
1230
1231
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
1231
1232
|
else if (n && e.key.toLowerCase() === "z") {
|
|
1232
|
-
if (
|
|
1233
|
+
if (qi(e)) return;
|
|
1233
1234
|
e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
|
|
1234
1235
|
} else {
|
|
1235
|
-
if (t.isPicking?.() && !
|
|
1236
|
+
if (t.isPicking?.() && !qi(e)) {
|
|
1236
1237
|
if (e.key === "Escape") {
|
|
1237
1238
|
e.preventDefault(), t.onCancelPick?.();
|
|
1238
1239
|
return;
|
|
@@ -1246,139 +1247,139 @@ function Wi(e, t) {
|
|
|
1246
1247
|
return;
|
|
1247
1248
|
}
|
|
1248
1249
|
}
|
|
1249
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
1250
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !qi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
1250
1251
|
}
|
|
1251
1252
|
}
|
|
1252
1253
|
// src/utils/blockComponentResolver.ts
|
|
1253
|
-
function
|
|
1254
|
+
function Yi(e, t) {
|
|
1254
1255
|
let n = { fontFamily: t(e.fontFamily) };
|
|
1255
1256
|
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;
|
|
1256
1257
|
}
|
|
1257
|
-
function
|
|
1258
|
+
function Xi(e, t, n) {
|
|
1258
1259
|
if (t) {
|
|
1259
1260
|
let n = t.getComponent(e);
|
|
1260
1261
|
if (n) return n;
|
|
1261
1262
|
}
|
|
1262
1263
|
return n[e.type] ?? null;
|
|
1263
1264
|
}
|
|
1264
|
-
var
|
|
1265
|
-
function
|
|
1265
|
+
var Zi = "--tpl-block-bg-layer", Qi = "--tpl-email-frame-width", $i = "tpl-has-bg-image";
|
|
1266
|
+
function ea(e, t) {
|
|
1266
1267
|
if (t === null) return {};
|
|
1267
|
-
let n =
|
|
1268
|
+
let n = be(e);
|
|
1268
1269
|
if (n === null) return {};
|
|
1269
|
-
let r = t?.trim(), i = r ?
|
|
1270
|
+
let r = t?.trim(), i = r ? vt(r) : n.url;
|
|
1270
1271
|
return {
|
|
1271
1272
|
backgroundImage: `url("${i}")`,
|
|
1272
1273
|
backgroundSize: n.size,
|
|
1273
1274
|
backgroundPosition: n.position,
|
|
1274
1275
|
backgroundRepeat: n.repeat,
|
|
1275
|
-
[
|
|
1276
|
+
[Zi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
1276
1277
|
};
|
|
1277
1278
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return e &&
|
|
1279
|
+
function ta(e) {
|
|
1280
|
+
return e && Zi in e ? $i : void 0;
|
|
1280
1281
|
}
|
|
1281
|
-
var
|
|
1282
|
+
var na = {
|
|
1282
1283
|
top: "flex-start",
|
|
1283
1284
|
middle: "center",
|
|
1284
1285
|
bottom: "flex-end"
|
|
1285
1286
|
};
|
|
1286
|
-
function
|
|
1287
|
-
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${
|
|
1287
|
+
function ra(e, t) {
|
|
1288
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${ia(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
1288
1289
|
return {
|
|
1289
1290
|
display: "flex",
|
|
1290
1291
|
flexDirection: "column",
|
|
1291
|
-
justifyContent:
|
|
1292
|
+
justifyContent: na[e.verticalAlign],
|
|
1292
1293
|
boxSizing: "border-box",
|
|
1293
1294
|
...n
|
|
1294
1295
|
};
|
|
1295
1296
|
}
|
|
1296
|
-
function
|
|
1297
|
+
function ia(e, t) {
|
|
1297
1298
|
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
1298
1299
|
}
|
|
1299
|
-
function
|
|
1300
|
+
function aa(e, t = {}) {
|
|
1300
1301
|
if (e.type === "wrapper") return {};
|
|
1301
1302
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
1302
1303
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
1303
1304
|
backgroundColor: r || "transparent"
|
|
1304
1305
|
};
|
|
1305
|
-
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ??
|
|
1306
|
-
let n =
|
|
1306
|
+
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ut.paragraphGap : ut.paragraphGap}px`), e.type === "section") {
|
|
1307
|
+
let n = Qe(e.borderRadius);
|
|
1307
1308
|
n !== null && (i.borderRadius = n);
|
|
1308
|
-
let r =
|
|
1309
|
-
r?.applied && e.backgroundImage ? (Object.assign(i,
|
|
1309
|
+
let r = Ce(e);
|
|
1310
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, ra(r, t.heroBoxWidth)), Object.assign(i, ea({
|
|
1310
1311
|
...e.backgroundImage,
|
|
1311
1312
|
size: "cover",
|
|
1312
1313
|
repeat: !1
|
|
1313
|
-
}, t.backgroundImageUrl))) : (Object.assign(i,
|
|
1314
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, sa(e.border)), Object.assign(i, ea(e.backgroundImage, t.backgroundImageUrl)));
|
|
1314
1315
|
}
|
|
1315
1316
|
return i;
|
|
1316
1317
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e.type === "section" ?
|
|
1319
|
-
backgroundImageUrl:
|
|
1318
|
+
function oa(e, t, n, r) {
|
|
1319
|
+
return e.type === "section" ? aa(e, {
|
|
1320
|
+
backgroundImageUrl: Un(t, e.backgroundImage, n),
|
|
1320
1321
|
heroBoxWidth: r
|
|
1321
|
-
}) :
|
|
1322
|
+
}) : aa(e);
|
|
1322
1323
|
}
|
|
1323
|
-
function
|
|
1324
|
+
function sa(e) {
|
|
1324
1325
|
let t = {};
|
|
1325
1326
|
for (let [n, r] of Object.entries(Ye(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
1326
1327
|
return t;
|
|
1327
1328
|
}
|
|
1328
|
-
var
|
|
1329
|
+
var ca = {
|
|
1329
1330
|
width: "100cqw",
|
|
1330
1331
|
maxWidth: "none",
|
|
1331
1332
|
marginInline: "calc(50% - 50cqw)",
|
|
1332
1333
|
boxSizing: "border-box"
|
|
1333
1334
|
};
|
|
1334
|
-
function
|
|
1335
|
+
function la(e) {
|
|
1335
1336
|
return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
|
|
1336
1337
|
}
|
|
1337
|
-
function
|
|
1338
|
+
function ua(e) {
|
|
1338
1339
|
let t = {
|
|
1339
1340
|
width: "var(--tpl-email-frame-width)",
|
|
1340
1341
|
maxWidth: "100%",
|
|
1341
1342
|
marginInline: "auto",
|
|
1342
1343
|
boxSizing: "border-box"
|
|
1343
1344
|
};
|
|
1344
|
-
return e && (t.padding =
|
|
1345
|
+
return e && (t.padding = la(e)), t;
|
|
1345
1346
|
}
|
|
1346
|
-
function
|
|
1347
|
+
function da(e, t = {}) {
|
|
1347
1348
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
1348
1349
|
let n = e.wrapper, r = {};
|
|
1349
|
-
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding =
|
|
1350
|
-
let e =
|
|
1350
|
+
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = la(n.padding)), !n.fullWidth) {
|
|
1351
|
+
let e = Qe(n.borderRadius);
|
|
1351
1352
|
e !== null && (r.borderRadius = e);
|
|
1352
1353
|
}
|
|
1353
|
-
return Object.assign(r,
|
|
1354
|
+
return Object.assign(r, ea(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, ca), r;
|
|
1354
1355
|
}
|
|
1355
|
-
function
|
|
1356
|
+
function fa(e, t = {}) {
|
|
1356
1357
|
if (e.type !== "wrapper") return null;
|
|
1357
1358
|
let n = {};
|
|
1358
|
-
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding =
|
|
1359
|
+
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = la(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, ea(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, ca), n;
|
|
1359
1360
|
}
|
|
1360
1361
|
// src/utils/mergeTagLabelSegments.ts
|
|
1361
|
-
function
|
|
1362
|
+
function pa(e, t, n, r = !1) {
|
|
1362
1363
|
if (!e) return [];
|
|
1363
1364
|
let i = [], a = 0;
|
|
1364
|
-
for (let o of
|
|
1365
|
+
for (let o of yt(e, n)) {
|
|
1365
1366
|
o.index > a && i.push({
|
|
1366
1367
|
type: "text",
|
|
1367
1368
|
value: e.slice(a, o.index)
|
|
1368
1369
|
});
|
|
1369
1370
|
let s = o.value;
|
|
1370
1371
|
if (Pe(s, n)) {
|
|
1371
|
-
let e = r ?
|
|
1372
|
+
let e = r ? tt(s, t) : void 0;
|
|
1372
1373
|
i.push(e === void 0 ? {
|
|
1373
1374
|
type: "tag",
|
|
1374
|
-
value:
|
|
1375
|
+
value: rt(s, t)
|
|
1375
1376
|
} : {
|
|
1376
1377
|
type: "text",
|
|
1377
1378
|
value: e
|
|
1378
1379
|
});
|
|
1379
|
-
} else
|
|
1380
|
+
} else Tt(s, n) ? i.push({
|
|
1380
1381
|
type: "tag",
|
|
1381
|
-
value:
|
|
1382
|
+
value: dt(s, n)
|
|
1382
1383
|
}) : i.push({
|
|
1383
1384
|
type: "text",
|
|
1384
1385
|
value: s
|
|
@@ -1391,27 +1392,27 @@ function la(e, t, n, r = !1) {
|
|
|
1391
1392
|
}), i;
|
|
1392
1393
|
}
|
|
1393
1394
|
// src/components/MergeTagPreviewText.vue
|
|
1394
|
-
var
|
|
1395
|
+
var ma = B({
|
|
1395
1396
|
name: "MergeTagPreviewText",
|
|
1396
1397
|
props: { text: {
|
|
1397
1398
|
type: String,
|
|
1398
1399
|
required: !0
|
|
1399
1400
|
} },
|
|
1400
1401
|
setup(e) {
|
|
1401
|
-
let t = z(
|
|
1402
|
+
let t = z(Qt, rn), n = z(zt, Ct.liquid), r = z(wn, null), i = k(() => pa(e.text, t.value, n, r?.value ?? !1));
|
|
1402
1403
|
return () => i.value.map((e, t) => e.type === "tag" ? x("span", {
|
|
1403
1404
|
key: t,
|
|
1404
1405
|
class: "tpl-merge-tag-label"
|
|
1405
1406
|
}, e.value) : e.value);
|
|
1406
1407
|
}
|
|
1407
|
-
}),
|
|
1408
|
+
}), ha = ["href"], ga = /* @__PURE__ */ B({
|
|
1408
1409
|
__name: "ButtonBlock",
|
|
1409
1410
|
props: {
|
|
1410
1411
|
block: {},
|
|
1411
1412
|
viewport: {}
|
|
1412
1413
|
},
|
|
1413
1414
|
setup(e) {
|
|
1414
|
-
let t = e, n =
|
|
1415
|
+
let t = e, n = Fn(fn, "ButtonBlock");
|
|
1415
1416
|
function r(e) {
|
|
1416
1417
|
return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
|
|
1417
1418
|
}
|
|
@@ -1422,33 +1423,33 @@ var ua = B({
|
|
|
1422
1423
|
backgroundColor: t.block.backgroundColor,
|
|
1423
1424
|
color: t.block.textColor,
|
|
1424
1425
|
fontSize: `${t.block.fontSize}px`,
|
|
1425
|
-
lineHeight: String(
|
|
1426
|
+
lineHeight: String(ot(t.block)),
|
|
1426
1427
|
fontWeight: r(t.block.fontWeight),
|
|
1427
1428
|
textDecoration: "none",
|
|
1428
|
-
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` :
|
|
1429
|
+
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Qe(t.block.borderRadius) ?? "0px",
|
|
1429
1430
|
textAlign: "center"
|
|
1430
1431
|
};
|
|
1431
|
-
return Object.assign(e,
|
|
1432
|
+
return Object.assign(e, sa(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") : typeof t.block.width == "string" && he(t.block.width) !== null && (e.width = t.block.width, e.boxSizing = "border-box"), e;
|
|
1432
1433
|
}), o = k(() => ({ textAlign: t.block.align ?? "center" }));
|
|
1433
1434
|
return (t, n) => (m(), N("div", { style: y(o.value) }, [P("a", {
|
|
1434
1435
|
href: e.block.url || "#",
|
|
1435
1436
|
style: y(a.value),
|
|
1436
1437
|
class: "tpl:cursor-default",
|
|
1437
1438
|
onClick: n[0] ||= i(() => {}, ["prevent"])
|
|
1438
|
-
}, [E(
|
|
1439
|
+
}, [E(ma, { text: e.block.text }, null, 8, ["text"])], 12, ha)], 4));
|
|
1439
1440
|
}
|
|
1440
|
-
}),
|
|
1441
|
+
}), _a = ["innerHTML"], va = [
|
|
1441
1442
|
"src",
|
|
1442
1443
|
"width",
|
|
1443
1444
|
"height"
|
|
1444
|
-
],
|
|
1445
|
+
], ya = /* @__PURE__ */ B({
|
|
1445
1446
|
__name: "CustomBlockIcon",
|
|
1446
1447
|
props: {
|
|
1447
1448
|
icon: {},
|
|
1448
1449
|
size: {}
|
|
1449
1450
|
},
|
|
1450
1451
|
setup(e) {
|
|
1451
|
-
let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = k(() => r.value ?
|
|
1452
|
+
let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = k(() => r.value ? hr(t.icon ?? "") : "");
|
|
1452
1453
|
return (t, o) => r.value ? (m(), N("span", {
|
|
1453
1454
|
key: 0,
|
|
1454
1455
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
@@ -1457,33 +1458,33 @@ var ua = B({
|
|
|
1457
1458
|
height: `${n.value}px`
|
|
1458
1459
|
}),
|
|
1459
1460
|
innerHTML: a.value
|
|
1460
|
-
}, null, 12,
|
|
1461
|
+
}, null, 12, _a)) : i.value ? (m(), N("img", {
|
|
1461
1462
|
key: 1,
|
|
1462
1463
|
src: e.icon,
|
|
1463
1464
|
width: n.value,
|
|
1464
1465
|
height: n.value,
|
|
1465
1466
|
class: "tpl:inline-block",
|
|
1466
1467
|
alt: ""
|
|
1467
|
-
}, null, 8,
|
|
1468
|
+
}, null, 8, va)) : (m(), R(A(Pr), {
|
|
1468
1469
|
key: 2,
|
|
1469
1470
|
size: n.value,
|
|
1470
1471
|
"stroke-width": 1.5
|
|
1471
1472
|
}, null, 8, ["size"]));
|
|
1472
1473
|
}
|
|
1473
|
-
}),
|
|
1474
|
+
}), ba = { class: "tpl:w-full" }, xa = {
|
|
1474
1475
|
key: 0,
|
|
1475
1476
|
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)]"
|
|
1476
|
-
},
|
|
1477
|
+
}, Sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ca = {
|
|
1477
1478
|
key: 1,
|
|
1478
1479
|
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)]"
|
|
1479
|
-
},
|
|
1480
|
+
}, wa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ta = {
|
|
1480
1481
|
key: 2,
|
|
1481
1482
|
class: "tpl:relative"
|
|
1482
|
-
},
|
|
1483
|
+
}, Ea = ["innerHTML"], Da = {
|
|
1483
1484
|
key: 0,
|
|
1484
1485
|
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]",
|
|
1485
1486
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1486
|
-
},
|
|
1487
|
+
}, Oa = /* @__PURE__ */ B({
|
|
1487
1488
|
__name: "CustomBlock",
|
|
1488
1489
|
props: {
|
|
1489
1490
|
block: {},
|
|
@@ -1491,7 +1492,7 @@ var ua = B({
|
|
|
1491
1492
|
},
|
|
1492
1493
|
emits: ["fetchData"],
|
|
1493
1494
|
setup(e, { emit: t }) {
|
|
1494
|
-
let n = e, r = t, { t: a } = ce(), o = z(
|
|
1495
|
+
let n = e, r = t, { t: a } = ce(), o = z(Cn, null), l = M(""), u = k(() => gr(l.value)), f = M(!1), p = k(() => o?.getDefinition(n.block.customType)), h = k(() => !!p.value), g = k(() => n.block), { isFetching: _, fetch: v, needsFetch: y, hasDataSource: b } = Hn({
|
|
1495
1496
|
definition: p,
|
|
1496
1497
|
block: g,
|
|
1497
1498
|
onUpdate: (e, t) => {
|
|
@@ -1500,10 +1501,10 @@ var ua = B({
|
|
|
1500
1501
|
dataSourceFetched: t
|
|
1501
1502
|
});
|
|
1502
1503
|
}
|
|
1503
|
-
}), x = z(
|
|
1504
|
+
}), x = z(Qt, rn), S = z(wn, null), C = k(() => {
|
|
1504
1505
|
if (!S?.value) return n.block;
|
|
1505
1506
|
let e = {};
|
|
1506
|
-
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ?
|
|
1507
|
+
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ct(r, x.value) : r;
|
|
1507
1508
|
return {
|
|
1508
1509
|
...n.block,
|
|
1509
1510
|
fieldValues: e
|
|
@@ -1527,10 +1528,10 @@ var ua = B({
|
|
|
1527
1528
|
T();
|
|
1528
1529
|
}, { deep: !0 }), c(() => S?.value, () => {
|
|
1529
1530
|
T();
|
|
1530
|
-
}), (e, t) => (m(), N("div",
|
|
1531
|
+
}), (e, t) => (m(), N("div", ba, [h.value ? f.value ? (m(), N("div", Ca, [E(A(yr), {
|
|
1531
1532
|
size: 24,
|
|
1532
1533
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1533
|
-
}), P("span",
|
|
1534
|
+
}), P("span", wa, d(A(a).customBlocks.renderError), 1)])) : (m(), N("div", Ta, [P("div", { innerHTML: u.value }, null, 8, Ea), A(b) && A(y) ? (m(), N("div", Da, [A(_) ? (m(), R(vr, {
|
|
1534
1535
|
key: 1,
|
|
1535
1536
|
class: "tpl:w-48"
|
|
1536
1537
|
})) : (m(), N("button", {
|
|
@@ -1538,16 +1539,16 @@ var ua = B({
|
|
|
1538
1539
|
type: "button",
|
|
1539
1540
|
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)]",
|
|
1540
1541
|
onClick: t[0] ||= i((...e) => A(v) && A(v)(...e), ["stop"])
|
|
1541
|
-
}, [p.value?.icon ? (m(), R(
|
|
1542
|
+
}, [p.value?.icon ? (m(), R(ya, {
|
|
1542
1543
|
key: 0,
|
|
1543
1544
|
icon: p.value.icon,
|
|
1544
1545
|
size: 16
|
|
1545
|
-
}, null, 8, ["icon"])) : j("", !0), te(" " + d(p.value?.dataSource?.label || A(a).customBlocks.dataSource.fetchButton), 1)]))])) : j("", !0)])) : (m(), N("div",
|
|
1546
|
+
}, null, 8, ["icon"])) : j("", !0), te(" " + d(p.value?.dataSource?.label || A(a).customBlocks.dataSource.fetchButton), 1)]))])) : j("", !0)])) : (m(), N("div", xa, [E(A(Rr), {
|
|
1546
1547
|
size: 24,
|
|
1547
1548
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1548
|
-
}), P("span",
|
|
1549
|
+
}), P("span", Sa, d(A(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1549
1550
|
}
|
|
1550
|
-
}),
|
|
1551
|
+
}), ka = { class: "tpl:w-full" }, Aa = /* @__PURE__ */ B({
|
|
1551
1552
|
__name: "DividerBlock",
|
|
1552
1553
|
props: {
|
|
1553
1554
|
block: {},
|
|
@@ -1559,28 +1560,28 @@ var ua = B({
|
|
|
1559
1560
|
width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
|
|
1560
1561
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1561
1562
|
}));
|
|
1562
|
-
return (e, t) => (m(), N("div",
|
|
1563
|
+
return (e, t) => (m(), N("div", ka, [P("hr", {
|
|
1563
1564
|
class: "tpl:m-0 tpl:border-none",
|
|
1564
1565
|
style: y(n.value)
|
|
1565
1566
|
}, null, 4)]));
|
|
1566
1567
|
}
|
|
1567
|
-
}),
|
|
1568
|
+
}), ja = { class: "tpl:w-full" }, Ma = ["srcdoc", "title"], Na = {
|
|
1568
1569
|
key: 1,
|
|
1569
1570
|
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)]"
|
|
1570
|
-
},
|
|
1571
|
+
}, Pa = {
|
|
1571
1572
|
key: 0,
|
|
1572
1573
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1573
|
-
},
|
|
1574
|
+
}, Fa = {
|
|
1574
1575
|
key: 1,
|
|
1575
1576
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1576
|
-
},
|
|
1577
|
+
}, Ia = /* @__PURE__ */ B({
|
|
1577
1578
|
__name: "HtmlBlock",
|
|
1578
1579
|
props: {
|
|
1579
1580
|
block: {},
|
|
1580
1581
|
viewport: {}
|
|
1581
1582
|
},
|
|
1582
1583
|
setup(e) {
|
|
1583
|
-
let t = e, { t: n } = ce(), r = z(
|
|
1584
|
+
let t = e, { t: n } = ce(), r = z(en, !1), i = k(() => t.block.content.trim().length > 0), a = k(() => r && i.value), o = z(Qt, rn), s = z(wn, null), l = k(() => s?.value ? ct(t.block.content, o.value) : t.block.content), u = M(null), f = M(60), p = null;
|
|
1584
1585
|
function h() {
|
|
1585
1586
|
let e = u.value?.contentDocument;
|
|
1586
1587
|
e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1594,7 +1595,7 @@ var ua = B({
|
|
|
1594
1595
|
e || (p?.disconnect(), p = null);
|
|
1595
1596
|
}), re(() => {
|
|
1596
1597
|
p?.disconnect(), p = null;
|
|
1597
|
-
}), (e, t) => (m(), N("div",
|
|
1598
|
+
}), (e, t) => (m(), N("div", ja, [a.value ? (m(), N("iframe", {
|
|
1598
1599
|
key: 0,
|
|
1599
1600
|
ref_key: "iframeRef",
|
|
1600
1601
|
ref: u,
|
|
@@ -1604,18 +1605,18 @@ var ua = B({
|
|
|
1604
1605
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1605
1606
|
style: y({ height: `${f.value}px` }),
|
|
1606
1607
|
onLoad: g
|
|
1607
|
-
}, null, 44,
|
|
1608
|
+
}, null, 44, Ma)) : (m(), N("div", Na, [E(A(nr), {
|
|
1608
1609
|
size: 24,
|
|
1609
1610
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1610
|
-
}), i.value ? (m(), N("span",
|
|
1611
|
+
}), i.value ? (m(), N("span", Pa, d(A(n).html.preview), 1)) : (m(), N("span", Fa, d(A(n).html.empty), 1))]))]));
|
|
1611
1612
|
}
|
|
1612
|
-
}),
|
|
1613
|
+
}), La = ["data-drop-enabled"], Ra = ["href"], za = ["src", "alt"], Ba = ["src", "alt"], Va = {
|
|
1613
1614
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1614
1615
|
style: { opacity: "0.7" }
|
|
1615
|
-
},
|
|
1616
|
+
}, Ha = ["href"], Ua = ["src", "alt"], Wa = ["src", "alt"], Ga = {
|
|
1616
1617
|
key: 4,
|
|
1617
1618
|
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)]"
|
|
1618
|
-
},
|
|
1619
|
+
}, Ka = ["aria-label"], qa = { key: 1 }, Ja = /* @__PURE__ */ B({
|
|
1619
1620
|
__name: "ImageBlock",
|
|
1620
1621
|
props: {
|
|
1621
1622
|
block: {},
|
|
@@ -1623,20 +1624,20 @@ var ua = B({
|
|
|
1623
1624
|
},
|
|
1624
1625
|
emits: ["update"],
|
|
1625
1626
|
setup(e, { emit: t }) {
|
|
1626
|
-
let n = e, r = t, { t: a } = ce(), { syntax: o } = V(), s = k(() =>
|
|
1627
|
+
let n = e, r = t, { t: a } = ce(), { syntax: o } = V(), s = k(() => ke(n.block.src, o));
|
|
1627
1628
|
function c(e) {
|
|
1628
1629
|
let t = {
|
|
1629
1630
|
src: e.url,
|
|
1630
|
-
...
|
|
1631
|
+
...tr(Qn(e.width, e.height))
|
|
1631
1632
|
};
|
|
1632
1633
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1633
1634
|
}
|
|
1634
|
-
let l = M(), { canBrowse: u, dropEnabled: f, isUploading: p, showOverlay: h, openMediaBrowser: g } =
|
|
1635
|
+
let l = M(), { canBrowse: u, dropEnabled: f, isUploading: p, showOverlay: h, openMediaBrowser: g } = or({
|
|
1635
1636
|
target: l,
|
|
1636
1637
|
blocked: s,
|
|
1637
1638
|
apply: c
|
|
1638
1639
|
}), _ = k(() => ({ textAlign: n.block.align })), v = k(() => {
|
|
1639
|
-
let e = n.block.border, t = ["left", "right"].map((t) =>
|
|
1640
|
+
let e = n.block.border, t = ["left", "right"].map((t) => xt(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1640
1641
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1641
1642
|
}), b = k(() => {
|
|
1642
1643
|
let e = n.block.align;
|
|
@@ -1644,13 +1645,13 @@ var ua = B({
|
|
|
1644
1645
|
maxWidth: "100%",
|
|
1645
1646
|
width: n.block.width === "full" ? v.value : `${n.block.width}px`,
|
|
1646
1647
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1647
|
-
borderRadius:
|
|
1648
|
-
...
|
|
1648
|
+
borderRadius: Qe(n.block.borderRadius) ?? void 0,
|
|
1649
|
+
...sa(n.block.border),
|
|
1649
1650
|
display: "block",
|
|
1650
1651
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1651
1652
|
marginRight: e === "center" ? "auto" : void 0
|
|
1652
1653
|
};
|
|
1653
|
-
}), x =
|
|
1654
|
+
}), x = Xn(() => s.value ? void 0 : n.block.src), S = Xn(() => s.value ? n.block.placeholderUrl : void 0);
|
|
1654
1655
|
return (t, n) => (m(), N("div", {
|
|
1655
1656
|
ref_key: "dropZoneRef",
|
|
1656
1657
|
ref: l,
|
|
@@ -1658,7 +1659,7 @@ var ua = B({
|
|
|
1658
1659
|
"data-drop-enabled": A(f),
|
|
1659
1660
|
class: "tpl:relative tpl:w-full",
|
|
1660
1661
|
style: y(_.value)
|
|
1661
|
-
}, [A(h) ? (m(), R(
|
|
1662
|
+
}, [A(h) ? (m(), R(er, {
|
|
1662
1663
|
key: 0,
|
|
1663
1664
|
uploading: A(p),
|
|
1664
1665
|
size: "canvas"
|
|
@@ -1674,22 +1675,22 @@ var ua = B({
|
|
|
1674
1675
|
src: A(S),
|
|
1675
1676
|
alt: e.block.alt || A(a).image.altTextPlaceholder,
|
|
1676
1677
|
style: y(b.value)
|
|
1677
|
-
}, null, 12,
|
|
1678
|
+
}, null, 12, za)], 8, Ra)) : (m(), N("img", {
|
|
1678
1679
|
key: 1,
|
|
1679
1680
|
class: "tpl:border-0",
|
|
1680
1681
|
src: A(S),
|
|
1681
1682
|
alt: e.block.alt,
|
|
1682
1683
|
style: y(b.value)
|
|
1683
|
-
}, null, 12,
|
|
1684
|
+
}, null, 12, Ba))], 64)) : e.block.src && s.value ? (m(), N("div", {
|
|
1684
1685
|
key: 2,
|
|
1685
1686
|
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)]",
|
|
1686
1687
|
style: y([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
|
|
1687
|
-
}, [E(A(
|
|
1688
|
+
}, [E(A(br), {
|
|
1688
1689
|
size: 32,
|
|
1689
1690
|
"stroke-width": 1.5,
|
|
1690
1691
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1691
1692
|
style: { opacity: "0.5" }
|
|
1692
|
-
}), P("span",
|
|
1693
|
+
}), P("span", Va, [E(ma, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (m(), N(L, { key: 3 }, [e.block.linkUrl ? (m(), N("a", {
|
|
1693
1694
|
key: 0,
|
|
1694
1695
|
href: e.block.linkUrl,
|
|
1695
1696
|
target: "_blank",
|
|
@@ -1701,33 +1702,33 @@ var ua = B({
|
|
|
1701
1702
|
src: A(x),
|
|
1702
1703
|
alt: e.block.alt || A(a).image.altTextPlaceholder,
|
|
1703
1704
|
style: y(b.value)
|
|
1704
|
-
}, null, 12,
|
|
1705
|
+
}, null, 12, Ua)], 8, Ha)) : (m(), N("img", {
|
|
1705
1706
|
key: 1,
|
|
1706
1707
|
class: "tpl:border-0",
|
|
1707
1708
|
src: A(x),
|
|
1708
1709
|
alt: e.block.alt,
|
|
1709
1710
|
style: y(b.value)
|
|
1710
|
-
}, null, 12,
|
|
1711
|
+
}, null, 12, Wa))], 64)) : (m(), N("div", Ga, [A(u) ? (m(), N("button", {
|
|
1711
1712
|
key: 0,
|
|
1712
1713
|
"aria-label": A(a).image.browseMedia,
|
|
1713
1714
|
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)]",
|
|
1714
1715
|
onClick: n[2] ||= i((...e) => A(g) && A(g)(...e), ["stop"])
|
|
1715
|
-
}, [E(A(
|
|
1716
|
+
}, [E(A(br), {
|
|
1716
1717
|
size: 14,
|
|
1717
1718
|
"stroke-width": 1.5
|
|
1718
|
-
}), te(" " + d(A(a).image.browseMedia), 1)], 8,
|
|
1719
|
+
}), te(" " + d(A(a).image.browseMedia), 1)], 8, Ka)) : (m(), N("span", qa, d(A(a).image.clickToAdd), 1))]))], 12, La));
|
|
1719
1720
|
}
|
|
1720
|
-
}),
|
|
1721
|
+
}), Ya = { class: "tpl:w-full" }, Xa = ["href"], Za = {
|
|
1721
1722
|
key: 1,
|
|
1722
1723
|
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)]"
|
|
1723
|
-
},
|
|
1724
|
+
}, Qa = /* @__PURE__ */ B({
|
|
1724
1725
|
__name: "MenuBlock",
|
|
1725
1726
|
props: {
|
|
1726
1727
|
block: {},
|
|
1727
1728
|
viewport: {}
|
|
1728
1729
|
},
|
|
1729
1730
|
setup(e) {
|
|
1730
|
-
let t = e, { t: n } = ce(), r =
|
|
1731
|
+
let t = e, { t: n } = ce(), r = Fn(fn, "MenuBlock"), a = k(() => ({
|
|
1731
1732
|
display: "flex",
|
|
1732
1733
|
flexWrap: "wrap",
|
|
1733
1734
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -1739,7 +1740,7 @@ var ua = B({
|
|
|
1739
1740
|
function s(e) {
|
|
1740
1741
|
return e || t.block.linkColor || t.block.color;
|
|
1741
1742
|
}
|
|
1742
|
-
return (t, r) => (m(), N("div",
|
|
1743
|
+
return (t, r) => (m(), N("div", Ya, [o.value ? (m(), N("div", {
|
|
1743
1744
|
key: 0,
|
|
1744
1745
|
style: y(a.value)
|
|
1745
1746
|
}, [(m(!0), N(L, null, v(e.block.items, (t, n) => (m(), N(L, { key: t.id }, [P("a", {
|
|
@@ -1751,49 +1752,49 @@ var ua = B({
|
|
|
1751
1752
|
textDecoration: t.underline ? "underline" : "none"
|
|
1752
1753
|
}),
|
|
1753
1754
|
onClick: r[0] ||= i(() => {}, ["prevent"])
|
|
1754
|
-
}, [E(
|
|
1755
|
+
}, [E(ma, { text: t.text || "..." }, null, 8, ["text"])], 12, Xa), n < e.block.items.length - 1 ? (m(), N("span", {
|
|
1755
1756
|
key: 0,
|
|
1756
1757
|
style: y({
|
|
1757
1758
|
color: e.block.separatorColor,
|
|
1758
1759
|
padding: `0 ${e.block.spacing}px`
|
|
1759
1760
|
})
|
|
1760
|
-
}, d(e.block.separator), 5)) : j("", !0)], 64))), 128))], 4)) : (m(), N("div",
|
|
1761
|
+
}, d(e.block.separator), 5)) : j("", !0)], 64))), 128))], 4)) : (m(), N("div", Za, [E(A(Jn), { size: 16 }), P("span", null, d(A(n).menu.addLinks), 1)]))]));
|
|
1761
1762
|
}
|
|
1762
1763
|
});
|
|
1763
1764
|
// src/composables/useEditableTextBlock.ts
|
|
1764
|
-
function
|
|
1765
|
-
let t = z(
|
|
1766
|
-
c(() =>
|
|
1767
|
-
e && (
|
|
1765
|
+
function $a(e) {
|
|
1766
|
+
let t = z(Qt, rn), r = z(wn, null), i = z(gn, null), a = z(sn, null), { syntax: o } = V(), s = k(() => r?.value ? qe(e(), t.value) : Be(e(), t.value)), l = k(() => i?.value ? et(e(), t.value, o) : Ve(s.value, o)), u = k(() => lt(gr(l.value))), d = M(!1);
|
|
1767
|
+
c(() => a?.value, (e) => {
|
|
1768
|
+
e && (d.value = !1);
|
|
1768
1769
|
});
|
|
1769
|
-
let
|
|
1770
|
-
top:
|
|
1771
|
-
left:
|
|
1770
|
+
let f = M(null), { top: p, left: m } = n(f), { toLocal: h } = Ft(), g = k(() => h({
|
|
1771
|
+
top: p.value - 8,
|
|
1772
|
+
left: m.value
|
|
1772
1773
|
}));
|
|
1773
|
-
function
|
|
1774
|
-
|
|
1774
|
+
function _() {
|
|
1775
|
+
a?.value || (d.value = !0);
|
|
1775
1776
|
}
|
|
1776
|
-
function
|
|
1777
|
-
|
|
1777
|
+
function v() {
|
|
1778
|
+
d.value = !1;
|
|
1778
1779
|
}
|
|
1779
1780
|
return {
|
|
1780
|
-
isEditing:
|
|
1781
|
-
blockRef:
|
|
1782
|
-
toolbarPosition:
|
|
1783
|
-
resolvedContent:
|
|
1784
|
-
handleDoubleClick:
|
|
1785
|
-
handleEditorDone:
|
|
1781
|
+
isEditing: d,
|
|
1782
|
+
blockRef: f,
|
|
1783
|
+
toolbarPosition: g,
|
|
1784
|
+
resolvedContent: u,
|
|
1785
|
+
handleDoubleClick: _,
|
|
1786
|
+
handleEditorDone: v
|
|
1786
1787
|
};
|
|
1787
1788
|
}
|
|
1788
1789
|
// src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1789
|
-
var
|
|
1790
|
+
var eo = ["innerHTML"], to = /* @__PURE__ */ B({
|
|
1790
1791
|
__name: "ParagraphBlock",
|
|
1791
1792
|
props: {
|
|
1792
1793
|
block: {},
|
|
1793
1794
|
viewport: {}
|
|
1794
1795
|
},
|
|
1795
1796
|
setup(e) {
|
|
1796
|
-
let t = e, n = oe(() => import("./ParagraphEditor-
|
|
1797
|
+
let t = e, n = oe(() => import("./ParagraphEditor-DTdnxgDZ.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = $a(() => t.block.content);
|
|
1797
1798
|
return (t, l) => (m(), N("div", {
|
|
1798
1799
|
ref_key: "blockRef",
|
|
1799
1800
|
ref: i,
|
|
@@ -1812,11 +1813,11 @@ var Xa = ["innerHTML"], Za = /* @__PURE__ */ B({
|
|
|
1812
1813
|
key: 1,
|
|
1813
1814
|
class: "tpl-text-content tpl:outline-none",
|
|
1814
1815
|
innerHTML: A(o)
|
|
1815
|
-
}, null, 8,
|
|
1816
|
+
}, null, 8, eo))], 544));
|
|
1816
1817
|
}
|
|
1817
1818
|
});
|
|
1818
1819
|
// src/utils/updateBlockList.ts
|
|
1819
|
-
function
|
|
1820
|
+
function no(e, t, n, r = 0, i) {
|
|
1820
1821
|
let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
|
|
1821
1822
|
if (o.some((e) => !s.includes(e.id))) return;
|
|
1822
1823
|
let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
|
|
@@ -1829,19 +1830,19 @@ function Qa(e, t, n, r = 0, i) {
|
|
|
1829
1830
|
l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
|
|
1830
1831
|
}
|
|
1831
1832
|
// src/utils/mergeTagTokens.ts
|
|
1832
|
-
function
|
|
1833
|
+
function ro(e, t, n) {
|
|
1833
1834
|
let r = [], i = "\0MT";
|
|
1834
1835
|
for (; e.includes(i);) i += "_";
|
|
1835
|
-
let a = n === "html" ?
|
|
1836
|
+
let a = n === "html" ? Re(e, (e) => {
|
|
1836
1837
|
let t = r.push(e) - 1;
|
|
1837
1838
|
return `${i}${t}\u0000`;
|
|
1838
1839
|
}) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
|
|
1839
1840
|
start: e.index,
|
|
1840
1841
|
end: e.index + e[0].length
|
|
1841
|
-
})), s = [], c =
|
|
1842
|
+
})), s = [], c = ft(a, t, "logic"), l = [], u = 0;
|
|
1842
1843
|
for (let e of ["logic", "value"]) {
|
|
1843
1844
|
let r = 0;
|
|
1844
|
-
for (let i of e === "logic" ? c :
|
|
1845
|
+
for (let i of e === "logic" ? c : ft(a, t, "value")) {
|
|
1845
1846
|
let t = i.index, a = t + i.value.length;
|
|
1846
1847
|
for (; o[r]?.end <= t;) r++;
|
|
1847
1848
|
let c = o[r];
|
|
@@ -1857,51 +1858,51 @@ function $a(e, t, n) {
|
|
|
1857
1858
|
}), s.push({
|
|
1858
1859
|
start: t,
|
|
1859
1860
|
end: a,
|
|
1860
|
-
value: n === "html" ?
|
|
1861
|
+
value: n === "html" ? pt(i.value) : i.value
|
|
1861
1862
|
});
|
|
1862
1863
|
}
|
|
1863
1864
|
}
|
|
1864
1865
|
}
|
|
1865
1866
|
return [...r, ...s.map((e) => e.value)].sort();
|
|
1866
1867
|
}
|
|
1867
|
-
function
|
|
1868
|
-
return JSON.stringify(
|
|
1868
|
+
function io(e, t, n, r) {
|
|
1869
|
+
return JSON.stringify(ro(e, n, r)) !== JSON.stringify(ro(t, n, r));
|
|
1869
1870
|
}
|
|
1870
1871
|
// src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
|
|
1871
|
-
var
|
|
1872
|
+
var ao = [
|
|
1872
1873
|
"data-state",
|
|
1873
1874
|
"aria-label",
|
|
1874
1875
|
"title",
|
|
1875
1876
|
"aria-expanded",
|
|
1876
1877
|
"aria-controls",
|
|
1877
1878
|
"onKeydown"
|
|
1878
|
-
],
|
|
1879
|
+
], oo = [
|
|
1879
1880
|
"aria-label",
|
|
1880
1881
|
"aria-labelledby",
|
|
1881
1882
|
"aria-describedby",
|
|
1882
1883
|
"onKeydown"
|
|
1883
|
-
],
|
|
1884
|
+
], so = ["id"], co = ["id"], lo = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, uo = ["disabled"], fo = {
|
|
1884
1885
|
key: 0,
|
|
1885
1886
|
class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
|
|
1886
|
-
},
|
|
1887
|
+
}, po = {
|
|
1887
1888
|
key: 1,
|
|
1888
1889
|
class: "tpl:m-0"
|
|
1889
|
-
},
|
|
1890
|
+
}, mo = { class: "tpl:m-0" }, ho = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, go = {
|
|
1890
1891
|
key: 3,
|
|
1891
1892
|
class: "tpl:m-0"
|
|
1892
|
-
},
|
|
1893
|
+
}, _o = {
|
|
1893
1894
|
key: 4,
|
|
1894
1895
|
class: "tpl:m-0"
|
|
1895
|
-
},
|
|
1896
|
+
}, vo = {
|
|
1896
1897
|
key: 5,
|
|
1897
1898
|
class: "tpl:m-0"
|
|
1898
|
-
},
|
|
1899
|
+
}, yo = {
|
|
1899
1900
|
key: 6,
|
|
1900
1901
|
class: "tpl:m-0 tpl:list-none tpl:p-0"
|
|
1901
|
-
},
|
|
1902
|
+
}, bo = ["onClick"], xo = {
|
|
1902
1903
|
key: 7,
|
|
1903
1904
|
class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
1904
|
-
},
|
|
1905
|
+
}, So = ["data-testid", "disabled"], Co = /*#__PURE__*/ Or(/* @__PURE__ */ B({
|
|
1905
1906
|
__name: "LocaleStatusChip",
|
|
1906
1907
|
props: {
|
|
1907
1908
|
blockId: {},
|
|
@@ -1921,24 +1922,24 @@ var to = [
|
|
|
1921
1922
|
},
|
|
1922
1923
|
emits: ["target"],
|
|
1923
1924
|
setup(e, { emit: t }) {
|
|
1924
|
-
let n = e, r = t, a = z(
|
|
1925
|
+
let n = e, r = t, a = z(In, null), s = z(Dn, null), l = z(Vt, null), u = z(Nn, "en") ?? "en", { t: f, format: g } = ce(), b = se(), x = Nt(), { toLocal: S } = Ft(), C = M(null), w = M(null), T = M(!1), E = M(!1), D = M(null), O = M(null), te = null, re = M({
|
|
1925
1926
|
top: 0,
|
|
1926
1927
|
left: 0
|
|
1927
1928
|
}), ie = M({
|
|
1928
1929
|
maxHeight: 0,
|
|
1929
1930
|
maxWidth: 0
|
|
1930
|
-
}), F = `tpl-locale-popover-${
|
|
1931
|
+
}), F = `tpl-locale-popover-${$e()}`, I = k(() => Cr(a?.activeLocale?.value ?? "")), ae = k(() => Cr(a?.content.value.settings.locale ?? "en"));
|
|
1931
1932
|
function oe(e, t) {
|
|
1932
1933
|
switch (e) {
|
|
1933
1934
|
case "tags-differ": return f.localization.tagsDiffer;
|
|
1934
1935
|
case "hidden": return g(f.localization.hidden, { language: I.value });
|
|
1935
1936
|
case "changed": return g(f.localization.changed, { language: I.value });
|
|
1936
|
-
case "default-stale": return
|
|
1937
|
-
case "missing": return t === 1 ? f.localization.notTranslated :
|
|
1938
|
-
default: return t === 1 ? f.localization.outOfDate :
|
|
1937
|
+
case "default-stale": return wr(f.localization.staleLanguages, t, u);
|
|
1938
|
+
case "missing": return t === 1 ? f.localization.notTranslated : wr(f.localization.notTranslatedCount, t, u);
|
|
1939
|
+
default: return t === 1 ? f.localization.outOfDate : wr(f.localization.staleCount, t, u);
|
|
1939
1940
|
}
|
|
1940
1941
|
}
|
|
1941
|
-
let B = k(() => oe(n.state, n.count)), V = k(() => n.popoverState ?? n.state), le = k(() => n.popoverCount ?? n.count), ue = k(() => oe(V.value, le.value)), de = k(() => n.state === "hidden" ?
|
|
1942
|
+
let B = k(() => oe(n.state, n.count)), V = k(() => n.popoverState ?? n.state), le = k(() => n.popoverCount ?? n.count), ue = k(() => oe(V.value, le.value)), de = k(() => n.state === "hidden" ? Fr : n.state === "changed" ? Sr : n.state === "default-stale" ? mr : n.state === "stale" ? xr : yr), fe = k(() => V.value === "default-stale" || (V.value === "missing" || V.value === "stale") && le.value > 1), pe = k(() => n.editable && n.eligibleGaps && s?.isAvailable.value);
|
|
1942
1943
|
function me(e = !1) {
|
|
1943
1944
|
T.value = !1, E.value = !1, te = null, e && C.value?.focus({ preventScroll: !0 });
|
|
1944
1945
|
}
|
|
@@ -2047,7 +2048,7 @@ var to = [
|
|
|
2047
2048
|
size: 12,
|
|
2048
2049
|
"stroke-width": 2,
|
|
2049
2050
|
"aria-hidden": "true"
|
|
2050
|
-
}))], 40,
|
|
2051
|
+
}))], 40, ao), A(x) && T.value ? (m(), R(ee, {
|
|
2051
2052
|
key: 0,
|
|
2052
2053
|
to: A(x)
|
|
2053
2054
|
}, [P("div", {
|
|
@@ -2073,80 +2074,80 @@ var to = [
|
|
|
2073
2074
|
P("h3", {
|
|
2074
2075
|
id: `${F}-question`,
|
|
2075
2076
|
class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
2076
|
-
}, d(A(
|
|
2077
|
+
}, d(A(wr)(A(f).localization.translationConfirmation, e.translationCount ?? 0, A(u))), 9, so),
|
|
2077
2078
|
P("p", {
|
|
2078
2079
|
id: `${F}-warning`,
|
|
2079
2080
|
class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
|
|
2080
|
-
}, d(A(g)(A(f).localization.translationDescription, { language: I.value })), 9,
|
|
2081
|
-
P("div",
|
|
2081
|
+
}, d(A(g)(A(f).localization.translationDescription, { language: I.value })), 9, co),
|
|
2082
|
+
P("div", lo, [P("button", {
|
|
2082
2083
|
ref_key: "confirmationCancel",
|
|
2083
2084
|
ref: O,
|
|
2084
2085
|
type: "button",
|
|
2085
2086
|
"data-testid": "translation-confirm-cancel",
|
|
2086
|
-
class: h(A(
|
|
2087
|
+
class: h(A(Er)),
|
|
2087
2088
|
onClick: Ee
|
|
2088
2089
|
}, d(A(f).localization.cancel), 3), P("button", {
|
|
2089
2090
|
type: "button",
|
|
2090
2091
|
"data-testid": "translation-confirm",
|
|
2091
|
-
class: h(A(
|
|
2092
|
+
class: h(A(Dr)),
|
|
2092
2093
|
disabled: !pe.value || !!A(s)?.running.value || !e.translationCount,
|
|
2093
2094
|
onClick: Oe
|
|
2094
|
-
}, d(A(
|
|
2095
|
+
}, d(A(wr)(A(f).localization.translateAllFields, e.translationCount ?? 0, A(u))), 11, uo)])
|
|
2095
2096
|
], 64)) : (m(), N(L, { key: 1 }, [
|
|
2096
|
-
fe.value ? (m(), N("p",
|
|
2097
|
-
V.value === "missing" ? (m(), N("p",
|
|
2097
|
+
fe.value ? (m(), N("p", fo, d(ue.value), 1)) : j("", !0),
|
|
2098
|
+
V.value === "missing" ? (m(), N("p", po, d(A(g)(A(f).localization.missingExplanation, { default: ae.value })), 1)) : V.value === "stale" ? (m(), N(L, { key: 2 }, [P("p", mo, d(A(g)(A(f).localization.staleExplanation, { default: ae.value })), 1), P("p", ho, d(A(g)(A(f).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : V.value === "tags-differ" ? (m(), N("p", go, d(A(g)(A(f).localization.tagsDifferExplanation, { default: ae.value })), 1)) : V.value === "changed" ? (m(), N("p", _o, d(A(wr)(A(f).localization.changedProperties, le.value, A(u), { default: ae.value })), 1)) : V.value === "hidden" ? (m(), N("p", vo, d(A(g)(A(f).localization.hiddenExplanation, { language: I.value })), 1)) : (m(), N("ul", yo, [(m(!0), N(L, null, v(e.staleLocales, (e) => (m(), N("li", {
|
|
2098
2099
|
key: e,
|
|
2099
2100
|
class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
|
|
2100
|
-
}, [P("span", null, d(A(
|
|
2101
|
+
}, [P("span", null, d(A(Cr)(e)), 1), P("button", {
|
|
2101
2102
|
type: "button",
|
|
2102
|
-
class: h(A(
|
|
2103
|
+
class: h(A(Tr)),
|
|
2103
2104
|
onClick: (t) => we(e)
|
|
2104
|
-
}, d(A(f).localization.open), 11,
|
|
2105
|
-
e.editable && V.value !== "default-stale" ? (m(), N("div",
|
|
2105
|
+
}, d(A(f).localization.open), 11, bo)]))), 128))])),
|
|
2106
|
+
e.editable && V.value !== "default-stale" ? (m(), N("div", xo, [
|
|
2106
2107
|
pe.value && (V.value === "missing" || V.value === "stale" || V.value === "tags-differ") ? (m(), N("button", {
|
|
2107
2108
|
key: 0,
|
|
2108
2109
|
type: "button",
|
|
2109
2110
|
ref_key: "retranslate",
|
|
2110
2111
|
ref: D,
|
|
2111
2112
|
"data-testid": V.value === "missing" ? "locale-translate" : "locale-retranslate",
|
|
2112
|
-
class: h(A(
|
|
2113
|
+
class: h(A(Er)),
|
|
2113
2114
|
disabled: !!A(s)?.running.value,
|
|
2114
2115
|
onClick: Te
|
|
2115
|
-
}, d(V.value === "missing" ? A(f).localization.translate : A(f).localization.retranslate), 11,
|
|
2116
|
+
}, d(V.value === "missing" ? A(f).localization.translate : A(f).localization.retranslate), 11, So)) : j("", !0),
|
|
2116
2117
|
V.value === "stale" || V.value === "tags-differ" ? (m(), N(L, { key: 1 }, [V.value === "stale" ? (m(), N("button", {
|
|
2117
2118
|
key: 0,
|
|
2118
2119
|
type: "button",
|
|
2119
2120
|
"data-testid": "locale-keep",
|
|
2120
|
-
class: h(pe.value ? A(
|
|
2121
|
+
class: h(pe.value ? A(Tr) : A(Er)),
|
|
2121
2122
|
onClick: xe
|
|
2122
2123
|
}, d(A(f).localization.keep), 3)) : j("", !0), P("button", {
|
|
2123
2124
|
type: "button",
|
|
2124
2125
|
"data-testid": "locale-use-default",
|
|
2125
|
-
class: h(V.value === "tags-differ" && !pe.value ? A(
|
|
2126
|
+
class: h(V.value === "tags-differ" && !pe.value ? A(Er) : A(Tr)),
|
|
2126
2127
|
onClick: n[0] ||= (t) => Se(V.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
|
|
2127
2128
|
}, d(A(g)(A(f).localization.useDefaultLanguage, { default: ae.value })), 3)], 64)) : j("", !0),
|
|
2128
2129
|
V.value === "changed" ? (m(), N("button", {
|
|
2129
2130
|
key: 2,
|
|
2130
2131
|
type: "button",
|
|
2131
2132
|
"data-testid": "locale-reset",
|
|
2132
|
-
class: h(A(
|
|
2133
|
+
class: h(A(Er)),
|
|
2133
2134
|
onClick: n[1] ||= (t) => Se(e.setPaths)
|
|
2134
2135
|
}, d(A(f).localization.resetChanges), 3)) : j("", !0),
|
|
2135
2136
|
V.value === "hidden" ? (m(), N("button", {
|
|
2136
2137
|
key: 3,
|
|
2137
2138
|
type: "button",
|
|
2138
2139
|
"data-testid": "locale-show",
|
|
2139
|
-
class: h(A(
|
|
2140
|
+
class: h(A(Er)),
|
|
2140
2141
|
onClick: Ce
|
|
2141
2142
|
}, d(A(f).localization.show), 3)) : j("", !0)
|
|
2142
2143
|
])) : j("", !0)
|
|
2143
|
-
], 64))], 44,
|
|
2144
|
+
], 64))], 44, oo)], 8, ["to"])) : j("", !0)], 64));
|
|
2144
2145
|
}
|
|
2145
|
-
}), [["__scopeId", "data-v-3343ae7d"]]),
|
|
2146
|
+
}), [["__scopeId", "data-v-3343ae7d"]]), wo = /* @__PURE__ */ B({
|
|
2146
2147
|
__name: "LocaleMarkers",
|
|
2147
2148
|
props: { block: {} },
|
|
2148
2149
|
setup(e) {
|
|
2149
|
-
let t = e, n = z(
|
|
2150
|
+
let t = e, n = z(In, null), r = z(Zt, void 0), i = z(vn, []), a = z(zt, Ct.liquid), o = z(yn, k(() => /* @__PURE__ */ new Set())), s = k(() => n?.activeLocale?.value), l = k(() => s.value ? t.block.l10n?.[s.value] : void 0), u = k(() => ({
|
|
2150
2151
|
blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
|
|
2151
2152
|
...t.block,
|
|
2152
2153
|
children: []
|
|
@@ -2155,14 +2156,14 @@ var to = [
|
|
|
2155
2156
|
locale: n.content.value.settings.locale,
|
|
2156
2157
|
locales: n.content.value.settings.locales
|
|
2157
2158
|
}
|
|
2158
|
-
})), d = k(() => n && s.value && !o.value.has(s.value) ?
|
|
2159
|
+
})), d = k(() => n && s.value && !o.value.has(s.value) ? ve(u.value, s.value, i) : {
|
|
2159
2160
|
missing: [],
|
|
2160
2161
|
stale: [],
|
|
2161
2162
|
translated: []
|
|
2162
2163
|
}), f = k(() => d.value.stale.map((e) => e.slice(t.block.id.length + 1))), p = k(() => d.value.translated.flatMap((e) => {
|
|
2163
|
-
let n = e.slice(t.block.id.length + 1), r =
|
|
2164
|
-
return typeof r == "string" && i !== void 0 &&
|
|
2165
|
-
})), h = M(null), g = k(() => n && s.value && !o.value.has(s.value) ?
|
|
2164
|
+
let n = e.slice(t.block.id.length + 1), r = Ie(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || Et[t.block.type]?.includes(n) ? "html" : "text";
|
|
2165
|
+
return typeof r == "string" && i !== void 0 && io(r, i, a, o) ? [n] : [];
|
|
2166
|
+
})), h = M(null), g = k(() => n && s.value && !o.value.has(s.value) ? De(u.value, s.value, {
|
|
2166
2167
|
syntax: a,
|
|
2167
2168
|
definitions: i,
|
|
2168
2169
|
doNotTranslate: r?.doNotTranslate,
|
|
@@ -2172,9 +2173,9 @@ var to = [
|
|
|
2172
2173
|
let n = e.slice(t.block.id.length + 1);
|
|
2173
2174
|
return d.value.translated.includes(e) && !p.value.includes(n);
|
|
2174
2175
|
})), v = k(() => Object.keys(l.value?.set ?? {}).filter((e) => {
|
|
2175
|
-
let n = e.split("."), r = n.pop(), i = n.length ?
|
|
2176
|
-
return Array.isArray(i) ?
|
|
2177
|
-
})), y = k(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) &&
|
|
2176
|
+
let n = e.split("."), r = n.pop(), i = n.length ? Ie(t.block, n.join(".")) : t.block;
|
|
2177
|
+
return Array.isArray(i) ? Ie(i, r) !== void 0 : i !== void 0;
|
|
2178
|
+
})), y = k(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && ve(u.value, e, i).stale.length > 0) : []), b = k(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : d.value.missing.length ? "missing" : f.value.length ? "stale" : p.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
|
|
2178
2179
|
function x(e) {
|
|
2179
2180
|
return e === "missing" ? d.value.missing.length : e === "stale" ? f.value.length : e === "tags-differ" ? p.value.length : e === "default-stale" ? y.value.length : v.value.length;
|
|
2180
2181
|
}
|
|
@@ -2183,12 +2184,12 @@ var to = [
|
|
|
2183
2184
|
h.value = null;
|
|
2184
2185
|
});
|
|
2185
2186
|
let T = k(() => {
|
|
2186
|
-
let e =
|
|
2187
|
+
let e = Ie(t.block, f.value[0] ?? "");
|
|
2187
2188
|
if (typeof e != "string") return "";
|
|
2188
2189
|
let n = e.split(/<[^>]*>/).join("");
|
|
2189
2190
|
return Array.from(n).slice(0, 60).join("");
|
|
2190
2191
|
});
|
|
2191
|
-
return (t, n) => A(r) && b.value ? (m(), R(
|
|
2192
|
+
return (t, n) => A(r) && b.value ? (m(), R(Co, {
|
|
2192
2193
|
key: 0,
|
|
2193
2194
|
"block-id": e.block.id,
|
|
2194
2195
|
state: b.value,
|
|
@@ -2222,21 +2223,21 @@ var to = [
|
|
|
2222
2223
|
"editable"
|
|
2223
2224
|
])) : j("", !0);
|
|
2224
2225
|
}
|
|
2225
|
-
}),
|
|
2226
|
+
}), To = [
|
|
2226
2227
|
"data-block-id",
|
|
2227
2228
|
"data-block-type",
|
|
2228
2229
|
"data-tpl-picked"
|
|
2229
|
-
],
|
|
2230
|
+
], Eo = ["aria-label"], Do = ["data-lock-holder"], Oo = ["aria-label"], ko = [
|
|
2230
2231
|
"aria-label",
|
|
2231
2232
|
"aria-pressed",
|
|
2232
2233
|
"title"
|
|
2233
|
-
],
|
|
2234
|
+
], Ao = ["aria-label", "title"], jo = ["aria-label", "title"], Mo = ["aria-label", "title"], No = {
|
|
2234
2235
|
key: 3,
|
|
2235
2236
|
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"
|
|
2236
|
-
},
|
|
2237
|
+
}, Po = { 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)]" }, Fo = {
|
|
2237
2238
|
key: 4,
|
|
2238
2239
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2239
|
-
},
|
|
2240
|
+
}, Io = ["aria-label", "title"], Lo = /*#__PURE__*/ Or(/* @__PURE__ */ B({
|
|
2240
2241
|
__name: "BlockWrapper",
|
|
2241
2242
|
props: {
|
|
2242
2243
|
block: {},
|
|
@@ -2249,7 +2250,7 @@ var to = [
|
|
|
2249
2250
|
},
|
|
2250
2251
|
emits: ["select"],
|
|
2251
2252
|
setup(t, { emit: n }) {
|
|
2252
|
-
let a = oe(() => import("./BlockIssueBadge-
|
|
2253
|
+
let a = oe(() => import("./BlockIssueBadge-DlhA_I6J.js")), o = t, s = k(() => o.displayBlock ?? o.block), l = n, { t: p, format: g } = ce(), v = z(Ln, null), b = M(null), x = k(() => v?.liftedBlockId.value === o.block.id), S = k(() => x.value ? g(p.blockActions.dragLifted, { block: o.block.type }) : p.blockActions.drag);
|
|
2253
2254
|
async function C() {
|
|
2254
2255
|
await _(), b.value?.focus();
|
|
2255
2256
|
}
|
|
@@ -2259,7 +2260,7 @@ var to = [
|
|
|
2259
2260
|
let T = k(() => !o.viewport || !s.value.visibility ? !1 : s.value.visibility[o.viewport] === !1), ee = k(() => !!(xe?.activeLocale?.value && o.block.l10n?.[xe.activeLocale.value]?.hidden)), D = k(() => o.previewMode === !0 && (T.value || ee.value)), O = k(() => o.viewport ? {
|
|
2260
2261
|
desktop: p.viewport.desktop,
|
|
2261
2262
|
mobile: p.viewport.mobile
|
|
2262
|
-
}[o.viewport] ?? o.viewport : ""), ne = k(() => !!s.value.displayCondition), re = z(
|
|
2263
|
+
}[o.viewport] ?? o.viewport : ""), ne = k(() => !!s.value.displayCondition), re = z(Mn, null), ie = z(Tn, null), F = z(hn, {}), I = k(() => F.savedBlocks?.isPicking.value === !0), L = k(() => !o.nested && F.savedBlocks?.isAvailable.value === !0 && F.savedBlocks?.canCreate.value === !0), ae = k(() => o.isSelected && !I.value), B = k(() => F.comments?.getBlockCount(o.block.id) ?? 0), se = M(null), V = M(null), le = M(null), ue = M(null), de = M({
|
|
2263
2264
|
left: "calc(100% + 8px)",
|
|
2264
2265
|
top: "50%"
|
|
2265
2266
|
}), fe = M(!1), pe = k(() => V.value ?? ue.value), me = k(() => pe.value?.closest(".tpl-body"));
|
|
@@ -2299,15 +2300,15 @@ var to = [
|
|
|
2299
2300
|
ue.value,
|
|
2300
2301
|
me.value
|
|
2301
2302
|
].filter((e) => !!e) : []), he), e(me, "scroll", he, { passive: !0 });
|
|
2302
|
-
let ge = k(() => F.collaboration?.lockOf(o.block.id) ?? null), _e = k(() => ge.value?.holder.type === "guest" ? p.collaboration.guest : ge.value?.holder.name ?? ""), ve = k(() => F.collaboration?.agentHighlightOf(o.block.id) ?? F.ai?.highlightOf(o.block.id) ?? null), ye =
|
|
2303
|
-
c([() => xe?.activeLocale?.value, () =>
|
|
2304
|
-
let
|
|
2303
|
+
let ge = k(() => F.collaboration?.lockOf(o.block.id) ?? null), _e = k(() => ge.value?.holder.type === "guest" ? p.collaboration.guest : ge.value?.holder.name ?? ""), ve = k(() => F.collaboration?.agentHighlightOf(o.block.id) ?? F.ai?.highlightOf(o.block.id) ?? null), ye = cr(() => s.value.type === "section" ? s.value.backgroundImage : void 0), be = cr(() => s.value.type === "section" ? s.value.wrapper?.backgroundImage : void 0), xe = z(In, null), Se = xe ? It(xe) : null, Ce = z(Sn, null) ?? Se?.content ?? null;
|
|
2304
|
+
c([() => xe?.activeLocale?.value, () => Se && Te(Se.settings.value)], he, { flush: "post" });
|
|
2305
|
+
let we = z(tn, void 0), Ee = k(() => aa(s.value, {
|
|
2305
2306
|
backgroundImageUrl: ye.value,
|
|
2306
|
-
heroBoxWidth:
|
|
2307
|
-
})), De = k(() =>
|
|
2307
|
+
heroBoxWidth: $n(s.value) ? ir(s.value, Ce?.value, we) : void 0
|
|
2308
|
+
})), De = k(() => da(s.value, { backgroundImageUrl: be.value })), Oe = k(() => {
|
|
2308
2309
|
let e = s.value;
|
|
2309
2310
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
|
|
2310
|
-
}), ke = k(() =>
|
|
2311
|
+
}), ke = k(() => ua(Oe.value?.wrapper?.padding));
|
|
2311
2312
|
function Ae(e) {
|
|
2312
2313
|
o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), l("select"));
|
|
2313
2314
|
}
|
|
@@ -2351,12 +2352,12 @@ var to = [
|
|
|
2351
2352
|
class: h(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 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)]", fe.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
|
|
2352
2353
|
"aria-label": A(g)(A(p).blockActions.comments, { count: String(B.value) }),
|
|
2353
2354
|
onClick: n[0] ||= i((e) => A(F).comments?.openForBlock(t.block.id), ["stop"])
|
|
2354
|
-
}, [E(A(
|
|
2355
|
+
}, [E(A(Ar), {
|
|
2355
2356
|
size: 12,
|
|
2356
2357
|
"stroke-width": 2.5
|
|
2357
|
-
}), te(" " + d(B.value), 1)], 10,
|
|
2358
|
+
}), te(" " + d(B.value), 1)], 10, Eo)) : j("", !0),
|
|
2358
2359
|
E(A(a), { "block-id": t.block.id }, null, 8, ["block-id"]),
|
|
2359
|
-
t.previewMode ? j("", !0) : (m(), R(
|
|
2360
|
+
t.previewMode ? j("", !0) : (m(), R(wo, {
|
|
2360
2361
|
key: 1,
|
|
2361
2362
|
block: t.block
|
|
2362
2363
|
}, null, 8, ["block"]))
|
|
@@ -2374,9 +2375,9 @@ var to = [
|
|
|
2374
2375
|
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",
|
|
2375
2376
|
style: y({
|
|
2376
2377
|
backgroundColor: ge.value.holder.color,
|
|
2377
|
-
color: A(
|
|
2378
|
+
color: A(Mr)(ge.value.holder.color)
|
|
2378
2379
|
})
|
|
2379
|
-
}, d(A(g)(A(p).collaboration.editing, { name: _e.value })), 5)], 12,
|
|
2380
|
+
}, d(A(g)(A(p).collaboration.editing, { name: _e.value })), 5)], 12, Do)) : j("", !0),
|
|
2380
2381
|
ve.value === null ? j("", !0) : (m(), N("div", {
|
|
2381
2382
|
key: ve.value,
|
|
2382
2383
|
"data-testid": "block-agent-highlight",
|
|
@@ -2401,81 +2402,81 @@ var to = [
|
|
|
2401
2402
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2402
2403
|
title: A(p).blockActions.drag,
|
|
2403
2404
|
onKeydown: w
|
|
2404
|
-
}, [E(A(
|
|
2405
|
+
}, [E(A(Lr), {
|
|
2405
2406
|
size: 14,
|
|
2406
2407
|
"stroke-width": 1.5
|
|
2407
|
-
})], 40,
|
|
2408
|
+
})], 40, ko),
|
|
2408
2409
|
P("button", {
|
|
2409
2410
|
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",
|
|
2410
2411
|
"aria-label": A(p).blockActions.duplicate,
|
|
2411
2412
|
title: A(p).blockActions.duplicate,
|
|
2412
2413
|
onClick: i(Me, ["stop"])
|
|
2413
|
-
}, [E(A(
|
|
2414
|
+
}, [E(A(kr), {
|
|
2414
2415
|
size: 14,
|
|
2415
2416
|
"stroke-width": 1.5
|
|
2416
|
-
})], 8,
|
|
2417
|
+
})], 8, Ao),
|
|
2417
2418
|
L.value ? (m(), N("button", {
|
|
2418
2419
|
key: 0,
|
|
2419
2420
|
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",
|
|
2420
2421
|
"aria-label": A(p).blockActions.saveAsBlock,
|
|
2421
2422
|
title: A(p).blockActions.saveAsBlock,
|
|
2422
2423
|
onClick: i(Ne, ["stop"])
|
|
2423
|
-
}, [E(A(
|
|
2424
|
+
}, [E(A(Nr), {
|
|
2424
2425
|
size: 14,
|
|
2425
2426
|
"stroke-width": 1.5
|
|
2426
|
-
})], 8,
|
|
2427
|
+
})], 8, jo)) : j("", !0),
|
|
2427
2428
|
P("button", {
|
|
2428
2429
|
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",
|
|
2429
2430
|
"aria-label": A(p).blockActions.delete,
|
|
2430
2431
|
title: A(p).blockActions.delete,
|
|
2431
2432
|
onClick: i(je, ["stop"])
|
|
2432
|
-
}, [E(A(
|
|
2433
|
+
}, [E(A(jr), {
|
|
2433
2434
|
size: 14,
|
|
2434
2435
|
"stroke-width": 1.5
|
|
2435
|
-
})], 8,
|
|
2436
|
-
], 12,
|
|
2437
|
-
T.value ? (m(), N("div",
|
|
2436
|
+
})], 8, Mo)
|
|
2437
|
+
], 12, Oo)) : j("", !0),
|
|
2438
|
+
T.value ? (m(), N("div", No, [P("span", Po, [E(A(Fr), {
|
|
2438
2439
|
size: 12,
|
|
2439
2440
|
"stroke-width": 1.5
|
|
2440
2441
|
}), te(" " + d(A(g)(A(p).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : j("", !0),
|
|
2441
|
-
ne.value && !T.value ? (m(), N("div",
|
|
2442
|
+
ne.value && !T.value ? (m(), N("div", Fo, [P("button", {
|
|
2442
2443
|
"data-testid": "condition-toggle",
|
|
2443
2444
|
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)]",
|
|
2444
2445
|
"aria-label": A(p).blockActions.conditionToggle,
|
|
2445
2446
|
title: t.block.displayCondition?.label,
|
|
2446
2447
|
onClick: i(Pe, ["stop"])
|
|
2447
|
-
}, [E(A(
|
|
2448
|
+
}, [E(A(Ir), {
|
|
2448
2449
|
size: 12,
|
|
2449
2450
|
"stroke-width": 2
|
|
2450
|
-
})], 8,
|
|
2451
|
+
})], 8, Io)])) : j("", !0),
|
|
2451
2452
|
De.value ? (m(), N("div", {
|
|
2452
2453
|
key: 5,
|
|
2453
|
-
class: h(["tpl-section-wrapper tpl-email-surface", A(
|
|
2454
|
+
class: h(["tpl-section-wrapper tpl-email-surface", A(ta)(De.value)]),
|
|
2454
2455
|
style: y(De.value)
|
|
2455
2456
|
}, [Oe.value ? (m(), N("div", {
|
|
2456
2457
|
key: 0,
|
|
2457
2458
|
class: "tpl-band-frame",
|
|
2458
2459
|
style: y(ke.value)
|
|
2459
2460
|
}, [P("div", {
|
|
2460
|
-
class: h(["tpl-block-content tpl-email-surface", A(
|
|
2461
|
+
class: h(["tpl-block-content tpl-email-surface", A(ta)(Ee.value)]),
|
|
2461
2462
|
style: y(Ee.value)
|
|
2462
2463
|
}, [u(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (m(), N("div", {
|
|
2463
2464
|
key: 1,
|
|
2464
|
-
class: h(["tpl-block-content tpl-email-surface", A(
|
|
2465
|
+
class: h(["tpl-block-content tpl-email-surface", A(ta)(Ee.value)]),
|
|
2465
2466
|
style: y(Ee.value)
|
|
2466
2467
|
}, [u(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (m(), N("div", {
|
|
2467
2468
|
key: 6,
|
|
2468
|
-
class: h(["tpl-block-content tpl-email-surface", A(
|
|
2469
|
+
class: h(["tpl-block-content tpl-email-surface", A(ta)(Ee.value)]),
|
|
2469
2470
|
style: y(Ee.value)
|
|
2470
2471
|
}, [u(e.$slots, "default", {}, void 0, !0)], 6))
|
|
2471
|
-
], 10,
|
|
2472
|
+
], 10, To));
|
|
2472
2473
|
}
|
|
2473
2474
|
}), [["__scopeId", "data-v-872194d3"]]);
|
|
2474
2475
|
// src/utils/unwrapParagraph.ts
|
|
2475
|
-
function
|
|
2476
|
+
function Ro(e) {
|
|
2476
2477
|
let t = /^\s*<p\b/.exec(e);
|
|
2477
2478
|
if (!t) return e;
|
|
2478
|
-
let n =
|
|
2479
|
+
let n = St(e, t[0].length);
|
|
2479
2480
|
if (n === -1) return e;
|
|
2480
2481
|
let r = /<\/p>\s*$/.exec(e);
|
|
2481
2482
|
if (!r || r.index <= n) return e;
|
|
@@ -2483,22 +2484,22 @@ function Po(e) {
|
|
|
2483
2484
|
return /<\/p>\s*<p\b/i.test(i) ? e : i;
|
|
2484
2485
|
}
|
|
2485
2486
|
// src/components/blocks/TitleBlock.vue
|
|
2486
|
-
var
|
|
2487
|
+
var zo = /* @__PURE__ */ B({
|
|
2487
2488
|
__name: "TitleBlock",
|
|
2488
2489
|
props: {
|
|
2489
2490
|
block: {},
|
|
2490
2491
|
viewport: {}
|
|
2491
2492
|
},
|
|
2492
2493
|
setup(e) {
|
|
2493
|
-
let t = e, n = oe(() => import("./TitleEditor-
|
|
2494
|
+
let t = e, n = oe(() => import("./TitleEditor-BQoSPgOi.js")), r = Fn(fn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = $a(() => t.block.content), u = k(() => {
|
|
2494
2495
|
let e = {
|
|
2495
|
-
fontSize: `${
|
|
2496
|
-
lineHeight: String(
|
|
2496
|
+
fontSize: `${bt[t.block.level]}px`,
|
|
2497
|
+
lineHeight: String(Ge),
|
|
2497
2498
|
fontWeight: "700",
|
|
2498
2499
|
textAlign: t.block.textAlign
|
|
2499
2500
|
};
|
|
2500
2501
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
|
|
2501
|
-
}), d = k(() => `h${t.block.level}`), f = k(() =>
|
|
2502
|
+
}), d = k(() => `h${t.block.level}`), f = k(() => gr(Ro(s.value)));
|
|
2502
2503
|
return (t, r) => (m(), N("div", {
|
|
2503
2504
|
ref_key: "blockRef",
|
|
2504
2505
|
ref: a,
|
|
@@ -2524,14 +2525,14 @@ var Fo = /* @__PURE__ */ B({
|
|
|
2524
2525
|
innerHTML: f.value
|
|
2525
2526
|
}, null, 8, ["innerHTML"]))], 36));
|
|
2526
2527
|
}
|
|
2527
|
-
}),
|
|
2528
|
-
function
|
|
2529
|
-
let n =
|
|
2530
|
-
n.color =
|
|
2531
|
-
let r =
|
|
2532
|
-
r.content = `<p style="text-align: center"><span style="color: ${
|
|
2533
|
-
let i =
|
|
2534
|
-
return i.align = "center",
|
|
2528
|
+
}), Bo = "hero", Vo = "#1f2937", Ho = "#ffffff";
|
|
2529
|
+
function Uo(e, t) {
|
|
2530
|
+
let n = Se("title", e);
|
|
2531
|
+
n.color = Ho, n.textAlign = "center";
|
|
2532
|
+
let r = Se("paragraph", e);
|
|
2533
|
+
r.content = `<p style="text-align: center"><span style="color: ${Ho}">${Wo(t)}</span></p>`;
|
|
2534
|
+
let i = Se("button", e);
|
|
2535
|
+
return i.align = "center", ht({
|
|
2535
2536
|
columns: "1",
|
|
2536
2537
|
children: [[
|
|
2537
2538
|
n,
|
|
@@ -2549,96 +2550,96 @@ function zo(e, t) {
|
|
|
2549
2550
|
bottom: 48,
|
|
2550
2551
|
left: 24
|
|
2551
2552
|
},
|
|
2552
|
-
backgroundColor:
|
|
2553
|
+
backgroundColor: Vo
|
|
2553
2554
|
}
|
|
2554
2555
|
});
|
|
2555
2556
|
}
|
|
2556
|
-
function
|
|
2557
|
+
function Wo(e) {
|
|
2557
2558
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2558
2559
|
}
|
|
2559
2560
|
// src/utils/sectionColumnDrop.ts
|
|
2560
|
-
var
|
|
2561
|
-
function
|
|
2562
|
-
return e.dataset.blockType !== "section" && !
|
|
2561
|
+
var Go = /* @__PURE__ */ new Set(["section", Bo]);
|
|
2562
|
+
function Ko(e) {
|
|
2563
|
+
return e.dataset.blockType !== "section" && !Go.has(e.dataset.paletteType ?? "");
|
|
2563
2564
|
}
|
|
2564
2565
|
// ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
|
|
2565
|
-
var
|
|
2566
|
+
var qo = Object.defineProperty, Jo = Object.getOwnPropertySymbols, Yo = Object.prototype.hasOwnProperty, Xo = Object.prototype.propertyIsEnumerable, Zo = (e, t, n) => t in e ? qo(e, t, {
|
|
2566
2567
|
enumerable: !0,
|
|
2567
2568
|
configurable: !0,
|
|
2568
2569
|
writable: !0,
|
|
2569
2570
|
value: n
|
|
2570
|
-
}) : e[t] = n,
|
|
2571
|
-
for (var n in t ||= {})
|
|
2572
|
-
if (
|
|
2571
|
+
}) : e[t] = n, Qo = (e, t) => {
|
|
2572
|
+
for (var n in t ||= {}) Yo.call(t, n) && Zo(e, n, t[n]);
|
|
2573
|
+
if (Jo) for (var n of Jo(t)) Xo.call(t, n) && Zo(e, n, t[n]);
|
|
2573
2574
|
return e;
|
|
2574
|
-
},
|
|
2575
|
+
}, $o = (e, t) => {
|
|
2575
2576
|
var n = {};
|
|
2576
|
-
for (var r in e)
|
|
2577
|
-
if (e != null &&
|
|
2577
|
+
for (var r in e) Yo.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2578
|
+
if (e != null && Jo) for (var r of Jo(e)) t.indexOf(r) < 0 && Xo.call(e, r) && (n[r] = e[r]);
|
|
2578
2579
|
return n;
|
|
2579
|
-
},
|
|
2580
|
-
function
|
|
2581
|
-
console.warn(
|
|
2580
|
+
}, es = "[vue-draggable-plus]: ";
|
|
2581
|
+
function ts(e) {
|
|
2582
|
+
console.warn(es + e);
|
|
2582
2583
|
}
|
|
2583
|
-
function
|
|
2584
|
-
console.error(
|
|
2584
|
+
function ns(e) {
|
|
2585
|
+
console.error(es + e);
|
|
2585
2586
|
}
|
|
2586
|
-
function
|
|
2587
|
+
function rs(e, t, n) {
|
|
2587
2588
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
2588
2589
|
}
|
|
2589
|
-
function
|
|
2590
|
+
function is(e) {
|
|
2590
2591
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
2591
2592
|
}
|
|
2592
|
-
function
|
|
2593
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
2593
|
+
function as(e) {
|
|
2594
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[is(n)] = e[n]), t), {});
|
|
2594
2595
|
}
|
|
2595
|
-
function
|
|
2596
|
+
function os(e, t) {
|
|
2596
2597
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
2597
2598
|
}
|
|
2598
|
-
function
|
|
2599
|
+
function ss(e, t, n) {
|
|
2599
2600
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
2600
2601
|
}
|
|
2601
|
-
function
|
|
2602
|
+
function cs(e) {
|
|
2602
2603
|
return e === void 0;
|
|
2603
2604
|
}
|
|
2604
|
-
function
|
|
2605
|
+
function ls(e) {
|
|
2605
2606
|
return typeof e == "string";
|
|
2606
2607
|
}
|
|
2607
|
-
function
|
|
2608
|
+
function us(e, t, n) {
|
|
2608
2609
|
let r = e.children[n];
|
|
2609
2610
|
e.insertBefore(t, r);
|
|
2610
2611
|
}
|
|
2611
|
-
function
|
|
2612
|
+
function ds(e) {
|
|
2612
2613
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2613
2614
|
}
|
|
2614
|
-
function
|
|
2615
|
+
function fs(e, t = document) {
|
|
2615
2616
|
let n = null;
|
|
2616
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
2617
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || ts(`Element not found: ${e}`), n;
|
|
2617
2618
|
}
|
|
2618
|
-
function
|
|
2619
|
+
function ps(e, t, n = null) {
|
|
2619
2620
|
return function(...r) {
|
|
2620
2621
|
return e.apply(n, r), t.apply(n, r);
|
|
2621
2622
|
};
|
|
2622
2623
|
}
|
|
2623
|
-
function
|
|
2624
|
-
let n =
|
|
2624
|
+
function ms(e, t) {
|
|
2625
|
+
let n = Qo({}, e);
|
|
2625
2626
|
return Object.keys(t).forEach((r) => {
|
|
2626
|
-
n[r] ? n[r] =
|
|
2627
|
+
n[r] ? n[r] = ps(e[r], t[r]) : n[r] = t[r];
|
|
2627
2628
|
}), n;
|
|
2628
2629
|
}
|
|
2629
|
-
function
|
|
2630
|
+
function hs(e) {
|
|
2630
2631
|
return e instanceof HTMLElement;
|
|
2631
2632
|
}
|
|
2632
|
-
function
|
|
2633
|
+
function gs(e, t) {
|
|
2633
2634
|
Object.keys(e).forEach((n) => {
|
|
2634
2635
|
t(n, e[n]);
|
|
2635
2636
|
});
|
|
2636
2637
|
}
|
|
2637
|
-
function
|
|
2638
|
+
function _s(e) {
|
|
2638
2639
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
2639
2640
|
}
|
|
2640
|
-
var
|
|
2641
|
-
function
|
|
2641
|
+
var vs = Object.assign;
|
|
2642
|
+
function ys(e, t) {
|
|
2642
2643
|
var n = Object.keys(e);
|
|
2643
2644
|
if (Object.getOwnPropertySymbols) {
|
|
2644
2645
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2648,26 +2649,26 @@ function hs(e, t) {
|
|
|
2648
2649
|
}
|
|
2649
2650
|
return n;
|
|
2650
2651
|
}
|
|
2651
|
-
function
|
|
2652
|
+
function bs(e) {
|
|
2652
2653
|
for (var t = 1; t < arguments.length; t++) {
|
|
2653
2654
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2654
|
-
t % 2 ?
|
|
2655
|
-
|
|
2656
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2655
|
+
t % 2 ? ys(Object(n), !0).forEach(function(t) {
|
|
2656
|
+
Ss(e, t, n[t]);
|
|
2657
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ys(Object(n)).forEach(function(t) {
|
|
2657
2658
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2658
2659
|
});
|
|
2659
2660
|
}
|
|
2660
2661
|
return e;
|
|
2661
2662
|
}
|
|
2662
|
-
function
|
|
2663
|
+
function xs(e) {
|
|
2663
2664
|
"@babel/helpers - typeof";
|
|
2664
|
-
return
|
|
2665
|
+
return xs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2665
2666
|
return typeof e;
|
|
2666
2667
|
} : function(e) {
|
|
2667
2668
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2668
|
-
},
|
|
2669
|
+
}, xs(e);
|
|
2669
2670
|
}
|
|
2670
|
-
function
|
|
2671
|
+
function Ss(e, t, n) {
|
|
2671
2672
|
return t in e ? Object.defineProperty(e, t, {
|
|
2672
2673
|
value: n,
|
|
2673
2674
|
enumerable: !0,
|
|
@@ -2675,44 +2676,44 @@ function vs(e, t, n) {
|
|
|
2675
2676
|
writable: !0
|
|
2676
2677
|
}) : e[t] = n, e;
|
|
2677
2678
|
}
|
|
2678
|
-
function
|
|
2679
|
-
return
|
|
2679
|
+
function Cs() {
|
|
2680
|
+
return Cs = Object.assign || function(e) {
|
|
2680
2681
|
for (var t = 1; t < arguments.length; t++) {
|
|
2681
2682
|
var n = arguments[t];
|
|
2682
2683
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2683
2684
|
}
|
|
2684
2685
|
return e;
|
|
2685
|
-
},
|
|
2686
|
+
}, Cs.apply(this, arguments);
|
|
2686
2687
|
}
|
|
2687
|
-
function
|
|
2688
|
+
function ws(e, t) {
|
|
2688
2689
|
if (e == null) return {};
|
|
2689
2690
|
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]);
|
|
2690
2691
|
return n;
|
|
2691
2692
|
}
|
|
2692
|
-
function
|
|
2693
|
+
function Ts(e, t) {
|
|
2693
2694
|
if (e == null) return {};
|
|
2694
|
-
var n =
|
|
2695
|
+
var n = ws(e, t), r, i;
|
|
2695
2696
|
if (Object.getOwnPropertySymbols) {
|
|
2696
2697
|
var a = Object.getOwnPropertySymbols(e);
|
|
2697
2698
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2698
2699
|
}
|
|
2699
2700
|
return n;
|
|
2700
2701
|
}
|
|
2701
|
-
var
|
|
2702
|
-
function
|
|
2702
|
+
var Es = "1.15.2";
|
|
2703
|
+
function Ds(e) {
|
|
2703
2704
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2704
2705
|
}
|
|
2705
|
-
var
|
|
2706
|
+
var Os = Ds(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ks = Ds(/Edge/i), As = Ds(/firefox/i), js = Ds(/safari/i) && !Ds(/chrome/i) && !Ds(/android/i), Ms = Ds(/iP(ad|od|hone)/i), Ns = Ds(/chrome/i) && Ds(/android/i), Ps = {
|
|
2706
2707
|
capture: !1,
|
|
2707
2708
|
passive: !1
|
|
2708
2709
|
};
|
|
2709
2710
|
function H(e, t, n) {
|
|
2710
|
-
e.addEventListener(t, n, !
|
|
2711
|
+
e.addEventListener(t, n, !Os && Ps);
|
|
2711
2712
|
}
|
|
2712
2713
|
function U(e, t, n) {
|
|
2713
|
-
e.removeEventListener(t, n, !
|
|
2714
|
+
e.removeEventListener(t, n, !Os && Ps);
|
|
2714
2715
|
}
|
|
2715
|
-
function
|
|
2716
|
+
function Fs(e, t) {
|
|
2716
2717
|
if (t) {
|
|
2717
2718
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
2718
2719
|
if (e.matches) return e.matches(t);
|
|
@@ -2724,22 +2725,22 @@ function js(e, t) {
|
|
|
2724
2725
|
return !1;
|
|
2725
2726
|
}
|
|
2726
2727
|
}
|
|
2727
|
-
function
|
|
2728
|
+
function Is(e) {
|
|
2728
2729
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2729
2730
|
}
|
|
2730
|
-
function
|
|
2731
|
+
function Ls(e, t, n, r) {
|
|
2731
2732
|
if (e) {
|
|
2732
2733
|
n ||= document;
|
|
2733
2734
|
do {
|
|
2734
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
2735
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Fs(e, t) : Fs(e, t)) || r && e === n) return e;
|
|
2735
2736
|
if (e === n) break;
|
|
2736
|
-
} while (e =
|
|
2737
|
+
} while (e = Is(e));
|
|
2737
2738
|
}
|
|
2738
2739
|
return null;
|
|
2739
2740
|
}
|
|
2740
|
-
var
|
|
2741
|
-
function
|
|
2742
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
2741
|
+
var Rs = /\s+/g;
|
|
2742
|
+
function zs(e, t, n) {
|
|
2743
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Rs, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Rs, " "));
|
|
2743
2744
|
}
|
|
2744
2745
|
function W(e, t, n) {
|
|
2745
2746
|
var r = e && e.style;
|
|
@@ -2748,7 +2749,7 @@ function W(e, t, n) {
|
|
|
2748
2749
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
2749
2750
|
}
|
|
2750
2751
|
}
|
|
2751
|
-
function
|
|
2752
|
+
function Bs(e, t) {
|
|
2752
2753
|
var n = "";
|
|
2753
2754
|
if (typeof e == "string") n = e;
|
|
2754
2755
|
else do {
|
|
@@ -2758,7 +2759,7 @@ function Is(e, t) {
|
|
|
2758
2759
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2759
2760
|
return i && new i(n);
|
|
2760
2761
|
}
|
|
2761
|
-
function
|
|
2762
|
+
function Vs(e, t, n) {
|
|
2762
2763
|
if (e) {
|
|
2763
2764
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
2764
2765
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -2766,13 +2767,13 @@ function Ls(e, t, n) {
|
|
|
2766
2767
|
}
|
|
2767
2768
|
return [];
|
|
2768
2769
|
}
|
|
2769
|
-
function
|
|
2770
|
+
function Hs() {
|
|
2770
2771
|
return document.scrollingElement || document.documentElement;
|
|
2771
2772
|
}
|
|
2772
2773
|
function G(e, t, n, r, i) {
|
|
2773
2774
|
if (e.getBoundingClientRect || e === window) {
|
|
2774
2775
|
var a, o, s, c, l, u, d;
|
|
2775
|
-
if (e !== window && e.parentNode && e !==
|
|
2776
|
+
if (e !== window && e.parentNode && e !== Hs() ? (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, !Os)) do
|
|
2776
2777
|
if (i && i.getBoundingClientRect && (W(i, "transform") !== "none" || n && W(i, "position") !== "static")) {
|
|
2777
2778
|
var f = i.getBoundingClientRect();
|
|
2778
2779
|
o -= f.top + parseInt(W(i, "border-top-width")), s -= f.left + parseInt(W(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -2780,7 +2781,7 @@ function G(e, t, n, r, i) {
|
|
|
2780
2781
|
}
|
|
2781
2782
|
while (i = i.parentNode);
|
|
2782
2783
|
if (r && e !== window) {
|
|
2783
|
-
var p =
|
|
2784
|
+
var p = Bs(i || e), m = p && p.a, h = p && p.d;
|
|
2784
2785
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
2785
2786
|
}
|
|
2786
2787
|
return {
|
|
@@ -2793,18 +2794,18 @@ function G(e, t, n, r, i) {
|
|
|
2793
2794
|
};
|
|
2794
2795
|
}
|
|
2795
2796
|
}
|
|
2796
|
-
function
|
|
2797
|
-
for (var r =
|
|
2797
|
+
function Us(e, t, n) {
|
|
2798
|
+
for (var r = Ys(e, !0), i = G(e)[t]; r;) {
|
|
2798
2799
|
var a = G(r)[n], o = void 0;
|
|
2799
2800
|
if (o = i >= a, !o) return r;
|
|
2800
|
-
if (r ===
|
|
2801
|
-
r =
|
|
2801
|
+
if (r === Hs()) break;
|
|
2802
|
+
r = Ys(r, !1);
|
|
2802
2803
|
}
|
|
2803
2804
|
return !1;
|
|
2804
2805
|
}
|
|
2805
|
-
function
|
|
2806
|
+
function Ws(e, t, n, r) {
|
|
2806
2807
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
2807
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
2808
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ls(o[a], n.draggable, e, !1)) {
|
|
2808
2809
|
if (i === t) return o[a];
|
|
2809
2810
|
i++;
|
|
2810
2811
|
}
|
|
@@ -2812,84 +2813,84 @@ function Bs(e, t, n, r) {
|
|
|
2812
2813
|
}
|
|
2813
2814
|
return null;
|
|
2814
2815
|
}
|
|
2815
|
-
function
|
|
2816
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || W(n, "display") === "none" || t && !
|
|
2816
|
+
function Gs(e, t) {
|
|
2817
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || W(n, "display") === "none" || t && !Fs(n, t));) n = n.previousElementSibling;
|
|
2817
2818
|
return n || null;
|
|
2818
2819
|
}
|
|
2819
|
-
function
|
|
2820
|
+
function Ks(e, t) {
|
|
2820
2821
|
var n = 0;
|
|
2821
2822
|
if (!e || !e.parentNode) return -1;
|
|
2822
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
2823
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Fs(e, t)) && n++;
|
|
2823
2824
|
return n;
|
|
2824
2825
|
}
|
|
2825
|
-
function
|
|
2826
|
-
var t = 0, n = 0, r =
|
|
2826
|
+
function qs(e) {
|
|
2827
|
+
var t = 0, n = 0, r = Hs();
|
|
2827
2828
|
if (e) do {
|
|
2828
|
-
var i =
|
|
2829
|
+
var i = Bs(e), a = i.a, o = i.d;
|
|
2829
2830
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
2830
2831
|
} while (e !== r && (e = e.parentNode));
|
|
2831
2832
|
return [t, n];
|
|
2832
2833
|
}
|
|
2833
|
-
function
|
|
2834
|
+
function Js(e, t) {
|
|
2834
2835
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2835
2836
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2836
2837
|
}
|
|
2837
2838
|
return -1;
|
|
2838
2839
|
}
|
|
2839
|
-
function
|
|
2840
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2840
|
+
function Ys(e, t) {
|
|
2841
|
+
if (!e || !e.getBoundingClientRect) return Hs();
|
|
2841
2842
|
var n = e, r = !1;
|
|
2842
2843
|
do
|
|
2843
2844
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2844
2845
|
var i = W(n);
|
|
2845
2846
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2846
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2847
|
+
if (!n.getBoundingClientRect || n === document.body) return Hs();
|
|
2847
2848
|
if (r || t) return n;
|
|
2848
2849
|
r = !0;
|
|
2849
2850
|
}
|
|
2850
2851
|
}
|
|
2851
2852
|
while (n = n.parentNode);
|
|
2852
|
-
return
|
|
2853
|
+
return Hs();
|
|
2853
2854
|
}
|
|
2854
|
-
function
|
|
2855
|
+
function Xs(e, t) {
|
|
2855
2856
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2856
2857
|
return e;
|
|
2857
2858
|
}
|
|
2858
|
-
function
|
|
2859
|
+
function Zs(e, t) {
|
|
2859
2860
|
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);
|
|
2860
2861
|
}
|
|
2861
|
-
var
|
|
2862
|
-
function
|
|
2862
|
+
var Qs;
|
|
2863
|
+
function $s(e, t) {
|
|
2863
2864
|
return function() {
|
|
2864
|
-
if (!
|
|
2865
|
+
if (!Qs) {
|
|
2865
2866
|
var n = arguments, r = this;
|
|
2866
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2867
|
-
|
|
2867
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Qs = setTimeout(function() {
|
|
2868
|
+
Qs = void 0;
|
|
2868
2869
|
}, t);
|
|
2869
2870
|
}
|
|
2870
2871
|
};
|
|
2871
2872
|
}
|
|
2872
|
-
function
|
|
2873
|
-
clearTimeout(
|
|
2873
|
+
function ec() {
|
|
2874
|
+
clearTimeout(Qs), Qs = void 0;
|
|
2874
2875
|
}
|
|
2875
|
-
function
|
|
2876
|
+
function tc(e, t, n) {
|
|
2876
2877
|
e.scrollLeft += t, e.scrollTop += n;
|
|
2877
2878
|
}
|
|
2878
|
-
function
|
|
2879
|
+
function nc(e) {
|
|
2879
2880
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2880
2881
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2881
2882
|
}
|
|
2882
|
-
function
|
|
2883
|
+
function rc(e, t, n) {
|
|
2883
2884
|
var r = {};
|
|
2884
2885
|
return Array.from(e.children).forEach(function(i) {
|
|
2885
|
-
if (
|
|
2886
|
+
if (Ls(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
2886
2887
|
var a = G(i);
|
|
2887
2888
|
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);
|
|
2888
2889
|
}
|
|
2889
2890
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
2890
2891
|
}
|
|
2891
|
-
var
|
|
2892
|
-
function
|
|
2892
|
+
var ic = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2893
|
+
function ac() {
|
|
2893
2894
|
var e = [], t;
|
|
2894
2895
|
return {
|
|
2895
2896
|
captureAnimationState: function() {
|
|
@@ -2899,9 +2900,9 @@ function tc() {
|
|
|
2899
2900
|
target: t,
|
|
2900
2901
|
rect: G(t)
|
|
2901
2902
|
});
|
|
2902
|
-
var n =
|
|
2903
|
+
var n = bs({}, e[e.length - 1].rect);
|
|
2903
2904
|
if (t.thisAnimationDuration) {
|
|
2904
|
-
var r =
|
|
2905
|
+
var r = Bs(t, !0);
|
|
2905
2906
|
r && (n.top -= r.f, n.left -= r.e);
|
|
2906
2907
|
}
|
|
2907
2908
|
t.fromRect = n;
|
|
@@ -2912,7 +2913,7 @@ function tc() {
|
|
|
2912
2913
|
e.push(t);
|
|
2913
2914
|
},
|
|
2914
2915
|
removeAnimationState: function(t) {
|
|
2915
|
-
e.splice(
|
|
2916
|
+
e.splice(Js(e, { target: t }), 1);
|
|
2916
2917
|
},
|
|
2917
2918
|
animateAll: function(n) {
|
|
2918
2919
|
var r = this;
|
|
@@ -2920,8 +2921,8 @@ function tc() {
|
|
|
2920
2921
|
else {
|
|
2921
2922
|
var i = !1, a = 0;
|
|
2922
2923
|
e.forEach(function(e) {
|
|
2923
|
-
var t = 0, n = e.target, o = n.fromRect, s = G(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d =
|
|
2924
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
2924
|
+
var t = 0, n = e.target, o = n.fromRect, s = G(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Bs(n, !0);
|
|
2925
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Zs(c, s) && !Zs(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = sc(u, c, l, r.options)), Zs(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() {
|
|
2925
2926
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
2926
2927
|
}, t), n.thisAnimationDuration = t);
|
|
2927
2928
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -2932,26 +2933,26 @@ function tc() {
|
|
|
2932
2933
|
animate: function(e, t, n, r) {
|
|
2933
2934
|
if (r) {
|
|
2934
2935
|
W(e, "transition", ""), W(e, "transform", "");
|
|
2935
|
-
var i =
|
|
2936
|
-
e.animatingX = !!s, e.animatingY = !!c, W(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
2936
|
+
var i = Bs(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
2937
|
+
e.animatingX = !!s, e.animatingY = !!c, W(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = oc(e), W(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), W(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
2937
2938
|
W(e, "transition", ""), W(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
2938
2939
|
}, r);
|
|
2939
2940
|
}
|
|
2940
2941
|
}
|
|
2941
2942
|
};
|
|
2942
2943
|
}
|
|
2943
|
-
function
|
|
2944
|
+
function oc(e) {
|
|
2944
2945
|
return e.offsetWidth;
|
|
2945
2946
|
}
|
|
2946
|
-
function
|
|
2947
|
+
function sc(e, t, n, r) {
|
|
2947
2948
|
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;
|
|
2948
2949
|
}
|
|
2949
|
-
var
|
|
2950
|
+
var cc = [], lc = { initializeByDefault: !0 }, uc = {
|
|
2950
2951
|
mount: function(e) {
|
|
2951
|
-
for (var t in
|
|
2952
|
-
|
|
2952
|
+
for (var t in lc) lc.hasOwnProperty(t) && !(t in e) && (e[t] = lc[t]);
|
|
2953
|
+
cc.forEach(function(t) {
|
|
2953
2954
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2954
|
-
}),
|
|
2955
|
+
}), cc.push(e);
|
|
2955
2956
|
},
|
|
2956
2957
|
pluginEvent: function(e, t, n) {
|
|
2957
2958
|
var r = this;
|
|
@@ -2959,16 +2960,16 @@ var ic = [], ac = { initializeByDefault: !0 }, oc = {
|
|
|
2959
2960
|
r.eventCanceled = !0;
|
|
2960
2961
|
};
|
|
2961
2962
|
var i = e + "Global";
|
|
2962
|
-
|
|
2963
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2963
|
+
cc.forEach(function(r) {
|
|
2964
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](bs({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](bs({ sortable: t }, n)));
|
|
2964
2965
|
});
|
|
2965
2966
|
},
|
|
2966
2967
|
initializePlugins: function(e, t, n, r) {
|
|
2967
|
-
for (var i in
|
|
2968
|
+
for (var i in cc.forEach(function(r) {
|
|
2968
2969
|
var i = r.pluginName;
|
|
2969
2970
|
if (e.options[i] || r.initializeByDefault) {
|
|
2970
2971
|
var a = new r(e, t, e.options);
|
|
2971
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2972
|
+
a.sortable = e, a.options = e.options, e[i] = a, Cs(n, a.defaults);
|
|
2972
2973
|
}
|
|
2973
2974
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2974
2975
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2977,59 +2978,59 @@ var ic = [], ac = { initializeByDefault: !0 }, oc = {
|
|
|
2977
2978
|
},
|
|
2978
2979
|
getEventProperties: function(e, t) {
|
|
2979
2980
|
var n = {};
|
|
2980
|
-
return
|
|
2981
|
-
typeof r.eventProperties == "function" &&
|
|
2981
|
+
return cc.forEach(function(r) {
|
|
2982
|
+
typeof r.eventProperties == "function" && Cs(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2982
2983
|
}), n;
|
|
2983
2984
|
},
|
|
2984
2985
|
modifyOption: function(e, t, n) {
|
|
2985
2986
|
var r;
|
|
2986
|
-
return
|
|
2987
|
+
return cc.forEach(function(i) {
|
|
2987
2988
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2988
2989
|
}), r;
|
|
2989
2990
|
}
|
|
2990
2991
|
};
|
|
2991
|
-
function
|
|
2992
|
+
function dc(e) {
|
|
2992
2993
|
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;
|
|
2993
|
-
if (t ||= n && n[
|
|
2994
|
+
if (t ||= n && n[ic], t) {
|
|
2994
2995
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
2995
|
-
window.CustomEvent && !
|
|
2996
|
+
window.CustomEvent && !Os && !ks ? h = new CustomEvent(r, {
|
|
2996
2997
|
bubbles: !0,
|
|
2997
2998
|
cancelable: !0
|
|
2998
2999
|
}) : (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;
|
|
2999
|
-
var v =
|
|
3000
|
+
var v = bs(bs({}, m), uc.getEventProperties(r, t));
|
|
3000
3001
|
for (var y in v) h[y] = v[y];
|
|
3001
3002
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
3002
3003
|
}
|
|
3003
3004
|
}
|
|
3004
|
-
var
|
|
3005
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
3006
|
-
|
|
3005
|
+
var fc = ["evt"], pc = function(e, t) {
|
|
3006
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ts(n, fc);
|
|
3007
|
+
uc.pluginEvent.bind(Q)(e, t, bs({
|
|
3007
3008
|
dragEl: K,
|
|
3008
3009
|
parentEl: q,
|
|
3009
3010
|
ghostEl: J,
|
|
3010
3011
|
rootEl: Y,
|
|
3011
|
-
nextEl:
|
|
3012
|
-
lastDownEl:
|
|
3012
|
+
nextEl: hc,
|
|
3013
|
+
lastDownEl: gc,
|
|
3013
3014
|
cloneEl: X,
|
|
3014
|
-
cloneHidden:
|
|
3015
|
-
dragStarted:
|
|
3015
|
+
cloneHidden: _c,
|
|
3016
|
+
dragStarted: Mc,
|
|
3016
3017
|
putSortable: Z,
|
|
3017
3018
|
activeSortable: Q.active,
|
|
3018
3019
|
originalEvent: r,
|
|
3019
|
-
oldIndex:
|
|
3020
|
-
oldDraggableIndex:
|
|
3021
|
-
newIndex:
|
|
3022
|
-
newDraggableIndex:
|
|
3023
|
-
hideGhostForTarget:
|
|
3024
|
-
unhideGhostForTarget:
|
|
3020
|
+
oldIndex: vc,
|
|
3021
|
+
oldDraggableIndex: bc,
|
|
3022
|
+
newIndex: yc,
|
|
3023
|
+
newDraggableIndex: xc,
|
|
3024
|
+
hideGhostForTarget: Zc,
|
|
3025
|
+
unhideGhostForTarget: Qc,
|
|
3025
3026
|
cloneNowHidden: function() {
|
|
3026
|
-
|
|
3027
|
+
_c = !0;
|
|
3027
3028
|
},
|
|
3028
3029
|
cloneNowShown: function() {
|
|
3029
|
-
|
|
3030
|
+
_c = !1;
|
|
3030
3031
|
},
|
|
3031
3032
|
dispatchSortableEvent: function(e) {
|
|
3032
|
-
|
|
3033
|
+
mc({
|
|
3033
3034
|
sortable: t,
|
|
3034
3035
|
name: e,
|
|
3035
3036
|
originalEvent: r
|
|
@@ -3037,46 +3038,46 @@ var cc = ["evt"], lc = function(e, t) {
|
|
|
3037
3038
|
}
|
|
3038
3039
|
}, i));
|
|
3039
3040
|
};
|
|
3040
|
-
function
|
|
3041
|
-
|
|
3041
|
+
function mc(e) {
|
|
3042
|
+
dc(bs({
|
|
3042
3043
|
putSortable: Z,
|
|
3043
3044
|
cloneEl: X,
|
|
3044
3045
|
targetEl: K,
|
|
3045
3046
|
rootEl: Y,
|
|
3046
|
-
oldIndex:
|
|
3047
|
-
oldDraggableIndex:
|
|
3048
|
-
newIndex:
|
|
3049
|
-
newDraggableIndex:
|
|
3047
|
+
oldIndex: vc,
|
|
3048
|
+
oldDraggableIndex: bc,
|
|
3049
|
+
newIndex: yc,
|
|
3050
|
+
newDraggableIndex: xc
|
|
3050
3051
|
}, e));
|
|
3051
3052
|
}
|
|
3052
|
-
var K, q, J, Y,
|
|
3053
|
-
if (
|
|
3054
|
-
if (
|
|
3053
|
+
var K, q, J, Y, hc, gc, X, _c, vc, yc, bc, xc, Sc, Z, Cc = !1, wc = !1, Tc = [], Ec, Dc, Oc, kc, Ac, jc, Mc, Nc, Pc, Fc = !1, Ic = !1, Lc, Rc, zc = [], Bc = !1, Vc = [], Hc = typeof document < "u", Uc = Ms, Wc = ks || Os ? "cssFloat" : "float", Gc = Hc && !Ns && !Ms && "draggable" in document.createElement("div"), Kc = function() {
|
|
3054
|
+
if (Hc) {
|
|
3055
|
+
if (Os) return !1;
|
|
3055
3056
|
var e = document.createElement("x");
|
|
3056
3057
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
3057
3058
|
}
|
|
3058
|
-
}(),
|
|
3059
|
-
var n = W(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
3059
|
+
}(), qc = function(e, t) {
|
|
3060
|
+
var n = W(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ws(e, 0, t), a = Ws(e, 1, t), o = i && W(i), s = a && W(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + G(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + G(a).width;
|
|
3060
3061
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
3061
3062
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
3062
3063
|
if (i && o.float && o.float !== "none") {
|
|
3063
3064
|
var u = o.float === "left" ? "left" : "right";
|
|
3064
3065
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
3065
3066
|
}
|
|
3066
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
3067
|
-
},
|
|
3067
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Wc] === "none" || a && n[Wc] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
3068
|
+
}, Jc = function(e, t, n) {
|
|
3068
3069
|
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;
|
|
3069
3070
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
3070
|
-
},
|
|
3071
|
+
}, Yc = function(e, t) {
|
|
3071
3072
|
var n;
|
|
3072
|
-
return
|
|
3073
|
-
var i = r[
|
|
3074
|
-
if (i && !
|
|
3073
|
+
return Tc.some(function(r) {
|
|
3074
|
+
var i = r[ic].options.emptyInsertThreshold;
|
|
3075
|
+
if (i && !Gs(r)) {
|
|
3075
3076
|
var a = G(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
3076
3077
|
if (o && s) return n = r;
|
|
3077
3078
|
}
|
|
3078
3079
|
}), n;
|
|
3079
|
-
},
|
|
3080
|
+
}, Xc = function(e) {
|
|
3080
3081
|
function t(e, n) {
|
|
3081
3082
|
return function(r, i, a, o) {
|
|
3082
3083
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -3089,31 +3090,31 @@ var K, q, J, Y, dc, fc, X, pc, mc, hc, gc, _c, vc, Z, yc = !1, bc = !1, xc = [],
|
|
|
3089
3090
|
};
|
|
3090
3091
|
}
|
|
3091
3092
|
var n = {}, r = e.group;
|
|
3092
|
-
r &&
|
|
3093
|
-
},
|
|
3094
|
-
!
|
|
3095
|
-
},
|
|
3096
|
-
!
|
|
3093
|
+
r && xs(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;
|
|
3094
|
+
}, Zc = function() {
|
|
3095
|
+
!Kc && J && W(J, "display", "none");
|
|
3096
|
+
}, Qc = function() {
|
|
3097
|
+
!Kc && J && W(J, "display", "");
|
|
3097
3098
|
};
|
|
3098
|
-
|
|
3099
|
-
if (
|
|
3099
|
+
Hc && !Ns && document.addEventListener("click", function(e) {
|
|
3100
|
+
if (wc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), wc = !1, !1;
|
|
3100
3101
|
}, !0);
|
|
3101
|
-
var
|
|
3102
|
+
var $c = function(e) {
|
|
3102
3103
|
if (K) {
|
|
3103
3104
|
e = e.touches ? e.touches[0] : e;
|
|
3104
|
-
var t =
|
|
3105
|
+
var t = Yc(e.clientX, e.clientY);
|
|
3105
3106
|
if (t) {
|
|
3106
3107
|
var n = {};
|
|
3107
3108
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
3108
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
3109
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[ic]._onDragOver(n);
|
|
3109
3110
|
}
|
|
3110
3111
|
}
|
|
3111
|
-
},
|
|
3112
|
-
K && K.parentNode[
|
|
3112
|
+
}, el = function(e) {
|
|
3113
|
+
K && K.parentNode[ic]._isOutsideThisEl(e.target);
|
|
3113
3114
|
};
|
|
3114
3115
|
function Q(e, t) {
|
|
3115
3116
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
3116
|
-
this.el = e, this.options = t =
|
|
3117
|
+
this.el = e, this.options = t = Cs({}, t), e[ic] = this;
|
|
3117
3118
|
var n = {
|
|
3118
3119
|
group: null,
|
|
3119
3120
|
sort: !0,
|
|
@@ -3126,7 +3127,7 @@ function Q(e, t) {
|
|
|
3126
3127
|
invertedSwapThreshold: null,
|
|
3127
3128
|
removeCloneOnHide: !0,
|
|
3128
3129
|
direction: function() {
|
|
3129
|
-
return
|
|
3130
|
+
return qc(e, this.options);
|
|
3130
3131
|
},
|
|
3131
3132
|
ghostClass: "sortable-ghost",
|
|
3132
3133
|
chosenClass: "sortable-chosen",
|
|
@@ -3153,17 +3154,17 @@ function Q(e, t) {
|
|
|
3153
3154
|
x: 0,
|
|
3154
3155
|
y: 0
|
|
3155
3156
|
},
|
|
3156
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
3157
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !js,
|
|
3157
3158
|
emptyInsertThreshold: 5
|
|
3158
3159
|
};
|
|
3159
|
-
for (var r in
|
|
3160
|
-
for (var i in
|
|
3161
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
3160
|
+
for (var r in uc.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
3161
|
+
for (var i in Xc(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
3162
|
+
this.nativeDraggable = !t.forceFallback && Gc, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Tc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Cs(this, ac());
|
|
3162
3163
|
}
|
|
3163
3164
|
Q.prototype = {
|
|
3164
3165
|
constructor: Q,
|
|
3165
3166
|
_isOutsideThisEl: function(e) {
|
|
3166
|
-
!this.el.contains(e) && e !== this.el && (
|
|
3167
|
+
!this.el.contains(e) && e !== this.el && (Nc = null);
|
|
3167
3168
|
},
|
|
3168
3169
|
_getDirection: function(e, t) {
|
|
3169
3170
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, K) : this.options.direction;
|
|
@@ -3171,33 +3172,33 @@ Q.prototype = {
|
|
|
3171
3172
|
_onTapStart: function(e) {
|
|
3172
3173
|
if (e.cancelable) {
|
|
3173
3174
|
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;
|
|
3174
|
-
if (
|
|
3175
|
-
if (
|
|
3175
|
+
if (ul(n), !K && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && js && s && s.tagName.toUpperCase() === "SELECT") && (s = Ls(s, r.draggable, n, !1), !(s && s.animated) && gc !== s)) {
|
|
3176
|
+
if (vc = Ks(s), bc = Ks(s, r.draggable), typeof l == "function") {
|
|
3176
3177
|
if (l.call(this, e, s, this)) {
|
|
3177
|
-
|
|
3178
|
+
mc({
|
|
3178
3179
|
sortable: t,
|
|
3179
3180
|
rootEl: c,
|
|
3180
3181
|
name: "filter",
|
|
3181
3182
|
targetEl: s,
|
|
3182
3183
|
toEl: n,
|
|
3183
3184
|
fromEl: n
|
|
3184
|
-
}),
|
|
3185
|
+
}), pc("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
3185
3186
|
return;
|
|
3186
3187
|
}
|
|
3187
3188
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
3188
|
-
if (r =
|
|
3189
|
+
if (r = Ls(c, r.trim(), n, !1), r) return mc({
|
|
3189
3190
|
sortable: t,
|
|
3190
3191
|
rootEl: r,
|
|
3191
3192
|
name: "filter",
|
|
3192
3193
|
targetEl: s,
|
|
3193
3194
|
fromEl: n,
|
|
3194
3195
|
toEl: n
|
|
3195
|
-
}),
|
|
3196
|
+
}), pc("filter", t, { evt: e }), !0;
|
|
3196
3197
|
}), l)) {
|
|
3197
3198
|
i && e.cancelable && e.preventDefault();
|
|
3198
3199
|
return;
|
|
3199
3200
|
}
|
|
3200
|
-
r.handle && !
|
|
3201
|
+
r.handle && !Ls(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
3201
3202
|
}
|
|
3202
3203
|
}
|
|
3203
3204
|
},
|
|
@@ -3205,19 +3206,19 @@ Q.prototype = {
|
|
|
3205
3206
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
3206
3207
|
if (n && !K && n.parentNode === i) {
|
|
3207
3208
|
var c = G(n);
|
|
3208
|
-
if (Y = i, K = n, q = K.parentNode,
|
|
3209
|
+
if (Y = i, K = n, q = K.parentNode, hc = K.nextSibling, gc = n, Sc = a.group, Q.dragged = K, Ec = {
|
|
3209
3210
|
target: K,
|
|
3210
3211
|
clientX: (t || e).clientX,
|
|
3211
3212
|
clientY: (t || e).clientY
|
|
3212
|
-
},
|
|
3213
|
-
|
|
3213
|
+
}, Ac = Ec.clientX - c.left, jc = Ec.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, K.style["will-change"] = "all", s = function() {
|
|
3214
|
+
pc("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !As && r.nativeDraggable && (K.draggable = !0), r._triggerDragStart(e, t), mc({
|
|
3214
3215
|
sortable: r,
|
|
3215
3216
|
name: "choose",
|
|
3216
3217
|
originalEvent: e
|
|
3217
|
-
}),
|
|
3218
|
+
}), zs(K, a.chosenClass, !0));
|
|
3218
3219
|
}, a.ignore.split(",").forEach(function(e) {
|
|
3219
|
-
|
|
3220
|
-
}), H(o, "dragover",
|
|
3220
|
+
Vs(K, e.trim(), rl);
|
|
3221
|
+
}), H(o, "dragover", $c), H(o, "mousemove", $c), H(o, "touchmove", $c), H(o, "mouseup", r._onDrop), H(o, "touchend", r._onDrop), H(o, "touchcancel", r._onDrop), As && this.nativeDraggable && (this.options.touchStartThreshold = 4, K.draggable = !0), pc("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ks || Os))) {
|
|
3221
3222
|
if (Q.eventCanceled) {
|
|
3222
3223
|
this._onDrop();
|
|
3223
3224
|
return;
|
|
@@ -3231,7 +3232,7 @@ Q.prototype = {
|
|
|
3231
3232
|
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();
|
|
3232
3233
|
},
|
|
3233
3234
|
_disableDelayedDrag: function() {
|
|
3234
|
-
K &&
|
|
3235
|
+
K && rl(K), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
3235
3236
|
},
|
|
3236
3237
|
_disableDelayedDragEvents: function() {
|
|
3237
3238
|
var e = this.el.ownerDocument;
|
|
@@ -3240,16 +3241,16 @@ Q.prototype = {
|
|
|
3240
3241
|
_triggerDragStart: function(e, t) {
|
|
3241
3242
|
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? H(document, "pointermove", this._onTouchMove) : t ? H(document, "touchmove", this._onTouchMove) : H(document, "mousemove", this._onTouchMove) : (H(K, "dragend", this), H(Y, "dragstart", this._onDragStart));
|
|
3242
3243
|
try {
|
|
3243
|
-
document.selection ?
|
|
3244
|
+
document.selection ? dl(function() {
|
|
3244
3245
|
document.selection.empty();
|
|
3245
3246
|
}) : window.getSelection().removeAllRanges();
|
|
3246
3247
|
} catch {}
|
|
3247
3248
|
},
|
|
3248
3249
|
_dragStarted: function(e, t) {
|
|
3249
|
-
if (
|
|
3250
|
-
|
|
3250
|
+
if (Cc = !1, Y && K) {
|
|
3251
|
+
pc("dragStarted", this, { evt: t }), this.nativeDraggable && H(document, "dragover", el);
|
|
3251
3252
|
var n = this.options;
|
|
3252
|
-
!e &&
|
|
3253
|
+
!e && zs(K, n.dragClass, !1), zs(K, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), mc({
|
|
3253
3254
|
sortable: this,
|
|
3254
3255
|
name: "start",
|
|
3255
3256
|
originalEvent: t
|
|
@@ -3257,33 +3258,33 @@ Q.prototype = {
|
|
|
3257
3258
|
} else this._nulling();
|
|
3258
3259
|
},
|
|
3259
3260
|
_emulateDragOver: function() {
|
|
3260
|
-
if (
|
|
3261
|
-
this._lastX =
|
|
3262
|
-
for (var e = document.elementFromPoint(
|
|
3263
|
-
if (K.parentNode[
|
|
3264
|
-
if (t[
|
|
3261
|
+
if (Dc) {
|
|
3262
|
+
this._lastX = Dc.clientX, this._lastY = Dc.clientY, Zc();
|
|
3263
|
+
for (var e = document.elementFromPoint(Dc.clientX, Dc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Dc.clientX, Dc.clientY), e !== t);) t = e;
|
|
3264
|
+
if (K.parentNode[ic]._isOutsideThisEl(e), t) do {
|
|
3265
|
+
if (t[ic]) {
|
|
3265
3266
|
var n = void 0;
|
|
3266
|
-
if (n = t[
|
|
3267
|
-
clientX:
|
|
3268
|
-
clientY:
|
|
3267
|
+
if (n = t[ic]._onDragOver({
|
|
3268
|
+
clientX: Dc.clientX,
|
|
3269
|
+
clientY: Dc.clientY,
|
|
3269
3270
|
target: e,
|
|
3270
3271
|
rootEl: t
|
|
3271
3272
|
}), n && !this.options.dragoverBubble) break;
|
|
3272
3273
|
}
|
|
3273
3274
|
e = t;
|
|
3274
3275
|
} while (t = t.parentNode);
|
|
3275
|
-
|
|
3276
|
+
Qc();
|
|
3276
3277
|
}
|
|
3277
3278
|
},
|
|
3278
3279
|
_onTouchMove: function(e) {
|
|
3279
|
-
if (
|
|
3280
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = J &&
|
|
3281
|
-
if (!Q.active && !
|
|
3280
|
+
if (Ec) {
|
|
3281
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = J && Bs(J, !0), o = J && a && a.a, s = J && a && a.d, c = Uc && Rc && qs(Rc), l = (i.clientX - Ec.clientX + r.x) / (o || 1) + (c ? c[0] - zc[0] : 0) / (o || 1), u = (i.clientY - Ec.clientY + r.y) / (s || 1) + (c ? c[1] - zc[1] : 0) / (s || 1);
|
|
3282
|
+
if (!Q.active && !Cc) {
|
|
3282
3283
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
3283
3284
|
this._onDragStart(e, !0);
|
|
3284
3285
|
}
|
|
3285
3286
|
if (J) {
|
|
3286
|
-
a ? (a.e += l - (
|
|
3287
|
+
a ? (a.e += l - (Oc || 0), a.f += u - (kc || 0)) : a = {
|
|
3287
3288
|
a: 1,
|
|
3288
3289
|
b: 0,
|
|
3289
3290
|
c: 0,
|
|
@@ -3292,35 +3293,35 @@ Q.prototype = {
|
|
|
3292
3293
|
f: u
|
|
3293
3294
|
};
|
|
3294
3295
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
3295
|
-
W(J, "webkitTransform", d), W(J, "mozTransform", d), W(J, "msTransform", d), W(J, "transform", d),
|
|
3296
|
+
W(J, "webkitTransform", d), W(J, "mozTransform", d), W(J, "msTransform", d), W(J, "transform", d), Oc = l, kc = u, Dc = i;
|
|
3296
3297
|
}
|
|
3297
3298
|
e.cancelable && e.preventDefault();
|
|
3298
3299
|
}
|
|
3299
3300
|
},
|
|
3300
3301
|
_appendGhost: function() {
|
|
3301
3302
|
if (!J) {
|
|
3302
|
-
var e = this.options.fallbackOnBody ? document.body : Y, t = G(K, !0,
|
|
3303
|
-
if (
|
|
3304
|
-
for (
|
|
3305
|
-
|
|
3303
|
+
var e = this.options.fallbackOnBody ? document.body : Y, t = G(K, !0, Uc, !0, e), n = this.options;
|
|
3304
|
+
if (Uc) {
|
|
3305
|
+
for (Rc = e; W(Rc, "position") === "static" && W(Rc, "transform") === "none" && Rc !== document;) Rc = Rc.parentNode;
|
|
3306
|
+
Rc !== document.body && Rc !== document.documentElement ? (Rc === document && (Rc = Hs()), t.top += Rc.scrollTop, t.left += Rc.scrollLeft) : Rc = Hs(), zc = qs(Rc);
|
|
3306
3307
|
}
|
|
3307
|
-
J = K.cloneNode(!0),
|
|
3308
|
+
J = K.cloneNode(!0), zs(J, n.ghostClass, !1), zs(J, n.fallbackClass, !0), zs(J, n.dragClass, !0), W(J, "transition", ""), W(J, "transform", ""), W(J, "box-sizing", "border-box"), W(J, "margin", 0), W(J, "top", t.top), W(J, "left", t.left), W(J, "width", t.width), W(J, "height", t.height), W(J, "opacity", "0.8"), W(J, "position", Uc ? "absolute" : "fixed"), W(J, "zIndex", "100000"), W(J, "pointerEvents", "none"), Q.ghost = J, e.appendChild(J), W(J, "transform-origin", Ac / parseInt(J.style.width) * 100 + "% " + jc / parseInt(J.style.height) * 100 + "%");
|
|
3308
3309
|
}
|
|
3309
3310
|
},
|
|
3310
3311
|
_onDragStart: function(e, t) {
|
|
3311
3312
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
3312
|
-
|
|
3313
|
-
|
|
3313
|
+
pc("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (pc("setupClone", this), Q.eventCanceled || (X = nc(K), X.removeAttribute("id"), X.draggable = !1, X.style["will-change"] = "", this._hideClone(), zs(X, this.options.chosenClass, !1), Q.clone = X), n.cloneId = dl(function() {
|
|
3314
|
+
pc("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || Y.insertBefore(X, K), n._hideClone(), mc({
|
|
3314
3315
|
sortable: n,
|
|
3315
3316
|
name: "clone"
|
|
3316
3317
|
}));
|
|
3317
|
-
}), !t &&
|
|
3318
|
+
}), !t && zs(K, i.dragClass, !0), t ? (wc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (U(document, "mouseup", n._onDrop), U(document, "touchend", n._onDrop), U(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, K)), H(document, "drop", n), W(K, "transform", "translateZ(0)")), Cc = !0, n._dragStartId = dl(n._dragStarted.bind(n, t, e)), H(document, "selectstart", n), Mc = !0, js && W(document.body, "user-select", "none"));
|
|
3318
3319
|
},
|
|
3319
3320
|
_onDragOver: function(e) {
|
|
3320
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
3321
|
-
if (
|
|
3321
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Sc === s, u = o.sort, d = Z || c, f, p = this, m = !1;
|
|
3322
|
+
if (Bc) return;
|
|
3322
3323
|
function h(o, s) {
|
|
3323
|
-
|
|
3324
|
+
pc(o, p, bs({
|
|
3324
3325
|
evt: e,
|
|
3325
3326
|
isOwner: l,
|
|
3326
3327
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -3332,7 +3333,7 @@ Q.prototype = {
|
|
|
3332
3333
|
target: n,
|
|
3333
3334
|
completed: _,
|
|
3334
3335
|
onMove: function(n, i) {
|
|
3335
|
-
return
|
|
3336
|
+
return nl(Y, t, K, r, n, G(n), e, i);
|
|
3336
3337
|
},
|
|
3337
3338
|
changed: v
|
|
3338
3339
|
}, s));
|
|
@@ -3341,50 +3342,50 @@ Q.prototype = {
|
|
|
3341
3342
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
3342
3343
|
}
|
|
3343
3344
|
function _(r) {
|
|
3344
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
3345
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (zs(K, Z ? Z.options.ghostClass : c.options.ghostClass, !1), zs(K, o.ghostClass, !0)), Z !== p && p !== Q.active ? Z = p : p === Q.active && Z && (Z = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
3345
3346
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
3346
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === K && !K.animated || n === t && !n.animated) && (
|
|
3347
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === K && !K.animated || n === t && !n.animated) && (Nc = null), !o.dragoverBubble && !e.rootEl && n !== document && (K.parentNode[ic]._isOutsideThisEl(e.target), !r && $c(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
3347
3348
|
}
|
|
3348
3349
|
function v() {
|
|
3349
|
-
|
|
3350
|
+
yc = Ks(K), xc = Ks(K, o.draggable), mc({
|
|
3350
3351
|
sortable: p,
|
|
3351
3352
|
name: "change",
|
|
3352
3353
|
toEl: t,
|
|
3353
|
-
newIndex:
|
|
3354
|
-
newDraggableIndex:
|
|
3354
|
+
newIndex: yc,
|
|
3355
|
+
newDraggableIndex: xc,
|
|
3355
3356
|
originalEvent: e
|
|
3356
3357
|
});
|
|
3357
3358
|
}
|
|
3358
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
3359
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ls(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
3359
3360
|
if (K.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
3360
|
-
if (
|
|
3361
|
+
if (wc = !1, c && !o.disabled && (l ? u || (a = q !== Y) : Z === this || (this.lastPutMode = Sc.checkPull(this, c, K, e)) && s.checkPut(this, c, K, e))) {
|
|
3361
3362
|
if (f = this._getDirection(e, n) === "vertical", r = G(K), h("dragOverValid"), Q.eventCanceled) return m;
|
|
3362
|
-
if (a) return q = Y, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
3363
|
-
var y =
|
|
3364
|
-
if (!y ||
|
|
3363
|
+
if (a) return q = Y, g(), this._hideClone(), h("revert"), Q.eventCanceled || (hc ? Y.insertBefore(K, hc) : Y.appendChild(K)), _(!0);
|
|
3364
|
+
var y = Gs(t, o.draggable);
|
|
3365
|
+
if (!y || ol(e, f, this) && !y.animated) {
|
|
3365
3366
|
if (y === K) return _(!1);
|
|
3366
|
-
if (y && t === e.target && (n = y), n && (i = G(n)),
|
|
3367
|
-
} else if (y &&
|
|
3368
|
-
var b =
|
|
3367
|
+
if (y && t === e.target && (n = y), n && (i = G(n)), nl(Y, t, K, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(K, y.nextSibling) : t.appendChild(K), q = t, v(), _(!0);
|
|
3368
|
+
} else if (y && al(e, f, this)) {
|
|
3369
|
+
var b = Ws(t, 0, o, !0);
|
|
3369
3370
|
if (b === K) return _(!1);
|
|
3370
|
-
if (n = b, i = G(n),
|
|
3371
|
+
if (n = b, i = G(n), nl(Y, t, K, r, n, i, e, !1) !== !1) return g(), t.insertBefore(K, b), q = t, v(), _(!0);
|
|
3371
3372
|
} else if (n.parentNode === t) {
|
|
3372
3373
|
i = G(n);
|
|
3373
|
-
var x = 0, S, C = K.parentNode !== t, w = !
|
|
3374
|
-
|
|
3374
|
+
var x = 0, S, C = K.parentNode !== t, w = !Jc(K.animated && K.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Us(n, "top", "top") || Us(K, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
3375
|
+
Nc !== n && (S = i[T], Fc = !1, Ic = !w && o.invertSwap || C), x = sl(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ic, Nc === n);
|
|
3375
3376
|
var D;
|
|
3376
3377
|
if (x !== 0) {
|
|
3377
|
-
var O =
|
|
3378
|
+
var O = Ks(K);
|
|
3378
3379
|
do
|
|
3379
3380
|
O -= x, D = q.children[O];
|
|
3380
3381
|
while (D && (W(D, "display") === "none" || D === J));
|
|
3381
3382
|
}
|
|
3382
3383
|
if (x === 0 || D === n) return _(!1);
|
|
3383
|
-
|
|
3384
|
+
Nc = n, Pc = x;
|
|
3384
3385
|
var k = n.nextElementSibling, A = !1;
|
|
3385
3386
|
A = x === 1;
|
|
3386
|
-
var j =
|
|
3387
|
-
if (j !== !1) return (j === 1 || j === -1) && (A = j === 1),
|
|
3387
|
+
var j = nl(Y, t, K, r, n, i, e, A);
|
|
3388
|
+
if (j !== !1) return (j === 1 || j === -1) && (A = j === 1), Bc = !0, setTimeout(il, 30), g(), A && !k ? t.appendChild(K) : n.parentNode.insertBefore(K, A ? k : n), E && tc(E, 0, ee - E.scrollTop), q = K.parentNode, S !== void 0 && !Ic && (Lc = Math.abs(S - G(n)[T])), v(), _(!0);
|
|
3388
3389
|
}
|
|
3389
3390
|
if (t.contains(K)) return _(!1);
|
|
3390
3391
|
}
|
|
@@ -3392,7 +3393,7 @@ Q.prototype = {
|
|
|
3392
3393
|
},
|
|
3393
3394
|
_ignoreWhileAnimating: null,
|
|
3394
3395
|
_offMoveEvents: function() {
|
|
3395
|
-
U(document, "mousemove", this._onTouchMove), U(document, "touchmove", this._onTouchMove), U(document, "pointermove", this._onTouchMove), U(document, "dragover",
|
|
3396
|
+
U(document, "mousemove", this._onTouchMove), U(document, "touchmove", this._onTouchMove), U(document, "pointermove", this._onTouchMove), U(document, "dragover", $c), U(document, "mousemove", $c), U(document, "touchmove", $c);
|
|
3396
3397
|
},
|
|
3397
3398
|
_offUpEvents: function() {
|
|
3398
3399
|
var e = this.el.ownerDocument;
|
|
@@ -3400,46 +3401,46 @@ Q.prototype = {
|
|
|
3400
3401
|
},
|
|
3401
3402
|
_onDrop: function(e) {
|
|
3402
3403
|
var t = this.el, n = this.options;
|
|
3403
|
-
|
|
3404
|
+
yc = Ks(K), xc = Ks(K, n.draggable), pc("drop", this, { evt: e }), q = K && K.parentNode, yc = Ks(K), xc = Ks(K, n.draggable), Q.eventCanceled || (Cc = !1, Ic = !1, Fc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), fl(this.cloneId), fl(this._dragStartId), this.nativeDraggable && (U(document, "drop", this), U(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), js && W(document.body, "user-select", ""), W(K, "transform", ""), e && (Mc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), J && J.parentNode && J.parentNode.removeChild(J), (Y === q || Z && Z.lastPutMode !== "clone") && X && X.parentNode && X.parentNode.removeChild(X), K && (this.nativeDraggable && U(K, "dragend", this), rl(K), K.style["will-change"] = "", Mc && !Cc && zs(K, Z ? Z.options.ghostClass : this.options.ghostClass, !1), zs(K, this.options.chosenClass, !1), mc({
|
|
3404
3405
|
sortable: this,
|
|
3405
3406
|
name: "unchoose",
|
|
3406
3407
|
toEl: q,
|
|
3407
3408
|
newIndex: null,
|
|
3408
3409
|
newDraggableIndex: null,
|
|
3409
3410
|
originalEvent: e
|
|
3410
|
-
}), Y === q ?
|
|
3411
|
+
}), Y === q ? yc !== vc && yc >= 0 && (mc({
|
|
3411
3412
|
sortable: this,
|
|
3412
3413
|
name: "update",
|
|
3413
3414
|
toEl: q,
|
|
3414
3415
|
originalEvent: e
|
|
3415
|
-
}),
|
|
3416
|
+
}), mc({
|
|
3416
3417
|
sortable: this,
|
|
3417
3418
|
name: "sort",
|
|
3418
3419
|
toEl: q,
|
|
3419
3420
|
originalEvent: e
|
|
3420
|
-
})) : (
|
|
3421
|
+
})) : (yc >= 0 && (mc({
|
|
3421
3422
|
rootEl: q,
|
|
3422
3423
|
name: "add",
|
|
3423
3424
|
toEl: q,
|
|
3424
3425
|
fromEl: Y,
|
|
3425
3426
|
originalEvent: e
|
|
3426
|
-
}),
|
|
3427
|
+
}), mc({
|
|
3427
3428
|
sortable: this,
|
|
3428
3429
|
name: "remove",
|
|
3429
3430
|
toEl: q,
|
|
3430
3431
|
originalEvent: e
|
|
3431
|
-
}),
|
|
3432
|
+
}), mc({
|
|
3432
3433
|
rootEl: q,
|
|
3433
3434
|
name: "sort",
|
|
3434
3435
|
toEl: q,
|
|
3435
3436
|
fromEl: Y,
|
|
3436
3437
|
originalEvent: e
|
|
3437
|
-
}),
|
|
3438
|
+
}), mc({
|
|
3438
3439
|
sortable: this,
|
|
3439
3440
|
name: "sort",
|
|
3440
3441
|
toEl: q,
|
|
3441
3442
|
originalEvent: e
|
|
3442
|
-
})), Z && Z.save()), Q.active && ((
|
|
3443
|
+
})), Z && Z.save()), Q.active && ((yc == null || yc === -1) && (yc = vc, xc = bc), mc({
|
|
3443
3444
|
sortable: this,
|
|
3444
3445
|
name: "end",
|
|
3445
3446
|
toEl: q,
|
|
@@ -3447,9 +3448,9 @@ Q.prototype = {
|
|
|
3447
3448
|
}), this.save())))), this._nulling();
|
|
3448
3449
|
},
|
|
3449
3450
|
_nulling: function() {
|
|
3450
|
-
|
|
3451
|
+
pc("nulling", this), Y = K = q = J = hc = X = gc = _c = Ec = Dc = Mc = yc = xc = vc = bc = Nc = Pc = Z = Sc = Q.dragged = Q.ghost = Q.clone = Q.active = null, Vc.forEach(function(e) {
|
|
3451
3452
|
e.checked = !0;
|
|
3452
|
-
}),
|
|
3453
|
+
}), Vc.length = Oc = kc = 0;
|
|
3453
3454
|
},
|
|
3454
3455
|
handleEvent: function(e) {
|
|
3455
3456
|
switch (e.type) {
|
|
@@ -3459,20 +3460,20 @@ Q.prototype = {
|
|
|
3459
3460
|
break;
|
|
3460
3461
|
case "dragenter":
|
|
3461
3462
|
case "dragover":
|
|
3462
|
-
K && (this._onDragOver(e),
|
|
3463
|
+
K && (this._onDragOver(e), tl(e));
|
|
3463
3464
|
break;
|
|
3464
3465
|
case "selectstart": e.preventDefault();
|
|
3465
3466
|
}
|
|
3466
3467
|
},
|
|
3467
3468
|
toArray: function() {
|
|
3468
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
3469
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ls(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || ll(t));
|
|
3469
3470
|
return e;
|
|
3470
3471
|
},
|
|
3471
3472
|
sort: function(e, t) {
|
|
3472
3473
|
var n = {}, r = this.el;
|
|
3473
3474
|
this.toArray().forEach(function(e, t) {
|
|
3474
3475
|
var i = r.children[t];
|
|
3475
|
-
|
|
3476
|
+
Ls(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
3476
3477
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
3477
3478
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
3478
3479
|
}), t && this.animateAll();
|
|
@@ -3482,122 +3483,122 @@ Q.prototype = {
|
|
|
3482
3483
|
e && e.set && e.set(this);
|
|
3483
3484
|
},
|
|
3484
3485
|
closest: function(e, t) {
|
|
3485
|
-
return
|
|
3486
|
+
return Ls(e, t || this.options.draggable, this.el, !1);
|
|
3486
3487
|
},
|
|
3487
3488
|
option: function(e, t) {
|
|
3488
3489
|
var n = this.options;
|
|
3489
3490
|
if (t === void 0) return n[e];
|
|
3490
|
-
var r =
|
|
3491
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
3491
|
+
var r = uc.modifyOption(this, e, t);
|
|
3492
|
+
n[e] = r === void 0 ? t : r, e === "group" && Xc(n);
|
|
3492
3493
|
},
|
|
3493
3494
|
destroy: function() {
|
|
3494
|
-
|
|
3495
|
+
pc("destroy", this);
|
|
3495
3496
|
var e = this.el;
|
|
3496
|
-
e[
|
|
3497
|
+
e[ic] = null, U(e, "mousedown", this._onTapStart), U(e, "touchstart", this._onTapStart), U(e, "pointerdown", this._onTapStart), this.nativeDraggable && (U(e, "dragover", this), U(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
3497
3498
|
e.removeAttribute("draggable");
|
|
3498
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
3499
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Tc.splice(Tc.indexOf(this.el), 1), this.el = e = null;
|
|
3499
3500
|
},
|
|
3500
3501
|
_hideClone: function() {
|
|
3501
|
-
if (!
|
|
3502
|
-
if (
|
|
3503
|
-
W(X, "display", "none"), this.options.removeCloneOnHide && X.parentNode && X.parentNode.removeChild(X),
|
|
3502
|
+
if (!_c) {
|
|
3503
|
+
if (pc("hideClone", this), Q.eventCanceled) return;
|
|
3504
|
+
W(X, "display", "none"), this.options.removeCloneOnHide && X.parentNode && X.parentNode.removeChild(X), _c = !0;
|
|
3504
3505
|
}
|
|
3505
3506
|
},
|
|
3506
3507
|
_showClone: function(e) {
|
|
3507
3508
|
if (e.lastPutMode !== "clone") this._hideClone();
|
|
3508
|
-
else if (
|
|
3509
|
-
if (
|
|
3510
|
-
K.parentNode == Y && !this.options.group.revertClone ? Y.insertBefore(X, K) :
|
|
3509
|
+
else if (_c) {
|
|
3510
|
+
if (pc("showClone", this), Q.eventCanceled) return;
|
|
3511
|
+
K.parentNode == Y && !this.options.group.revertClone ? Y.insertBefore(X, K) : hc ? Y.insertBefore(X, hc) : Y.appendChild(X), this.options.group.revertClone && this.animate(K, X), W(X, "display", ""), _c = !1;
|
|
3511
3512
|
}
|
|
3512
3513
|
}
|
|
3513
3514
|
};
|
|
3514
|
-
function
|
|
3515
|
+
function tl(e) {
|
|
3515
3516
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3516
3517
|
}
|
|
3517
|
-
function
|
|
3518
|
-
var c, l = e[
|
|
3519
|
-
return window.CustomEvent && !
|
|
3518
|
+
function nl(e, t, n, r, i, a, o, s) {
|
|
3519
|
+
var c, l = e[ic], u = l.options.onMove, d;
|
|
3520
|
+
return window.CustomEvent && !Os && !ks ? c = new CustomEvent("move", {
|
|
3520
3521
|
bubbles: !0,
|
|
3521
3522
|
cancelable: !0
|
|
3522
3523
|
}) : (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 || G(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
3523
3524
|
}
|
|
3524
|
-
function
|
|
3525
|
+
function rl(e) {
|
|
3525
3526
|
e.draggable = !1;
|
|
3526
3527
|
}
|
|
3527
|
-
function
|
|
3528
|
-
|
|
3528
|
+
function il() {
|
|
3529
|
+
Bc = !1;
|
|
3529
3530
|
}
|
|
3530
|
-
function
|
|
3531
|
-
var r = G(
|
|
3531
|
+
function al(e, t, n) {
|
|
3532
|
+
var r = G(Ws(n.el, 0, n.options, !0)), i = rc(n.el, n.options, J), a = 10;
|
|
3532
3533
|
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;
|
|
3533
3534
|
}
|
|
3534
|
-
function
|
|
3535
|
-
var r = G(
|
|
3535
|
+
function ol(e, t, n) {
|
|
3536
|
+
var r = G(Gs(n.el, n.options.draggable)), i = rc(n.el, n.options, J), a = 10;
|
|
3536
3537
|
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;
|
|
3537
3538
|
}
|
|
3538
|
-
function
|
|
3539
|
+
function sl(e, t, n, r, i, a, o, s) {
|
|
3539
3540
|
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;
|
|
3540
3541
|
if (!o) {
|
|
3541
|
-
if (s &&
|
|
3542
|
-
if (!
|
|
3543
|
-
else if (
|
|
3544
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
3542
|
+
if (s && Lc < l * i) {
|
|
3543
|
+
if (!Fc && (Pc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Fc = !0), Fc) f = !0;
|
|
3544
|
+
else if (Pc === 1 ? c < u + Lc : c > d - Lc) return -Pc;
|
|
3545
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return cl(t);
|
|
3545
3546
|
}
|
|
3546
3547
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
3547
3548
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3549
|
+
function cl(e) {
|
|
3550
|
+
return Ks(K) < Ks(e) ? 1 : -1;
|
|
3550
3551
|
}
|
|
3551
|
-
function
|
|
3552
|
+
function ll(e) {
|
|
3552
3553
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
3553
3554
|
return r.toString(36);
|
|
3554
3555
|
}
|
|
3555
|
-
function
|
|
3556
|
-
|
|
3556
|
+
function ul(e) {
|
|
3557
|
+
Vc.length = 0;
|
|
3557
3558
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
3558
3559
|
var r = t[n];
|
|
3559
|
-
r.checked &&
|
|
3560
|
+
r.checked && Vc.push(r);
|
|
3560
3561
|
}
|
|
3561
3562
|
}
|
|
3562
|
-
function
|
|
3563
|
+
function dl(e) {
|
|
3563
3564
|
return setTimeout(e, 0);
|
|
3564
3565
|
}
|
|
3565
|
-
function
|
|
3566
|
+
function fl(e) {
|
|
3566
3567
|
return clearTimeout(e);
|
|
3567
3568
|
}
|
|
3568
|
-
|
|
3569
|
-
(Q.active ||
|
|
3569
|
+
Hc && H(document, "touchmove", function(e) {
|
|
3570
|
+
(Q.active || Cc) && e.cancelable && e.preventDefault();
|
|
3570
3571
|
}), Q.utils = {
|
|
3571
3572
|
on: H,
|
|
3572
3573
|
off: U,
|
|
3573
3574
|
css: W,
|
|
3574
|
-
find:
|
|
3575
|
+
find: Vs,
|
|
3575
3576
|
is: function(e, t) {
|
|
3576
|
-
return !!
|
|
3577
|
+
return !!Ls(e, t, e, !1);
|
|
3577
3578
|
},
|
|
3578
|
-
extend:
|
|
3579
|
-
throttle:
|
|
3580
|
-
closest:
|
|
3581
|
-
toggleClass:
|
|
3582
|
-
clone:
|
|
3583
|
-
index:
|
|
3584
|
-
nextTick:
|
|
3585
|
-
cancelNextTick:
|
|
3586
|
-
detectDirection:
|
|
3587
|
-
getChild:
|
|
3579
|
+
extend: Xs,
|
|
3580
|
+
throttle: $s,
|
|
3581
|
+
closest: Ls,
|
|
3582
|
+
toggleClass: zs,
|
|
3583
|
+
clone: nc,
|
|
3584
|
+
index: Ks,
|
|
3585
|
+
nextTick: dl,
|
|
3586
|
+
cancelNextTick: fl,
|
|
3587
|
+
detectDirection: qc,
|
|
3588
|
+
getChild: Ws
|
|
3588
3589
|
}, Q.get = function(e) {
|
|
3589
|
-
return e[
|
|
3590
|
+
return e[ic];
|
|
3590
3591
|
}, Q.mount = function() {
|
|
3591
3592
|
var e = [...arguments];
|
|
3592
3593
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3593
3594
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3594
|
-
e.utils && (Q.utils =
|
|
3595
|
+
e.utils && (Q.utils = bs(bs({}, Q.utils), e.utils)), uc.mount(e);
|
|
3595
3596
|
});
|
|
3596
3597
|
}, Q.create = function(e, t) {
|
|
3597
3598
|
return new Q(e, t);
|
|
3598
|
-
}, Q.version =
|
|
3599
|
-
var $ = [],
|
|
3600
|
-
function
|
|
3599
|
+
}, Q.version = Es;
|
|
3600
|
+
var $ = [], pl, ml, hl = !1, gl, _l, vl, yl;
|
|
3601
|
+
function bl() {
|
|
3601
3602
|
function e() {
|
|
3602
3603
|
for (var e in this.defaults = {
|
|
3603
3604
|
scroll: !0,
|
|
@@ -3617,63 +3618,63 @@ function gl() {
|
|
|
3617
3618
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3618
3619
|
},
|
|
3619
3620
|
drop: function() {
|
|
3620
|
-
this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : (U(document, "pointermove", this._handleFallbackAutoScroll), U(document, "touchmove", this._handleFallbackAutoScroll), U(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
3621
|
+
this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : (U(document, "pointermove", this._handleFallbackAutoScroll), U(document, "touchmove", this._handleFallbackAutoScroll), U(document, "mousemove", this._handleFallbackAutoScroll)), Sl(), xl(), ec();
|
|
3621
3622
|
},
|
|
3622
3623
|
nulling: function() {
|
|
3623
|
-
|
|
3624
|
+
vl = ml = pl = hl = yl = gl = _l = null, $.length = 0;
|
|
3624
3625
|
},
|
|
3625
3626
|
_handleFallbackAutoScroll: function(e) {
|
|
3626
3627
|
this._handleAutoScroll(e, !0);
|
|
3627
3628
|
},
|
|
3628
3629
|
_handleAutoScroll: function(e, t) {
|
|
3629
3630
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3630
|
-
if (
|
|
3631
|
-
|
|
3632
|
-
var o =
|
|
3633
|
-
|
|
3634
|
-
var a =
|
|
3635
|
-
a !== o && (o = a,
|
|
3636
|
-
}, 10),
|
|
3631
|
+
if (vl = e, t || this.options.forceAutoScrollFallback || ks || Os || js) {
|
|
3632
|
+
Cl(e, this.options, a, t);
|
|
3633
|
+
var o = Ys(a, !0);
|
|
3634
|
+
hl && (!yl || r !== gl || i !== _l) && (yl && Sl(), yl = setInterval(function() {
|
|
3635
|
+
var a = Ys(document.elementFromPoint(r, i), !0);
|
|
3636
|
+
a !== o && (o = a, xl()), Cl(e, n.options, a, t);
|
|
3637
|
+
}, 10), gl = r, _l = i);
|
|
3637
3638
|
} else {
|
|
3638
|
-
if (!this.options.bubbleScroll ||
|
|
3639
|
-
|
|
3639
|
+
if (!this.options.bubbleScroll || Ys(a, !0) === Hs()) {
|
|
3640
|
+
xl();
|
|
3640
3641
|
return;
|
|
3641
3642
|
}
|
|
3642
|
-
|
|
3643
|
+
Cl(e, this.options, Ys(a, !1), !1);
|
|
3643
3644
|
}
|
|
3644
3645
|
}
|
|
3645
|
-
},
|
|
3646
|
+
}, Cs(e, {
|
|
3646
3647
|
pluginName: "scroll",
|
|
3647
3648
|
initializeByDefault: !0
|
|
3648
3649
|
});
|
|
3649
3650
|
}
|
|
3650
|
-
function
|
|
3651
|
+
function xl() {
|
|
3651
3652
|
$.forEach(function(e) {
|
|
3652
3653
|
clearInterval(e.pid);
|
|
3653
3654
|
}), $ = [];
|
|
3654
3655
|
}
|
|
3655
|
-
function
|
|
3656
|
-
clearInterval(
|
|
3656
|
+
function Sl() {
|
|
3657
|
+
clearInterval(yl);
|
|
3657
3658
|
}
|
|
3658
|
-
var
|
|
3659
|
+
var Cl = $s(function(e, t, n, r) {
|
|
3659
3660
|
if (t.scroll) {
|
|
3660
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
3661
|
-
|
|
3662
|
-
var d = 0, f =
|
|
3661
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Hs(), l = !1, u;
|
|
3662
|
+
ml !== n && (ml = n, xl(), pl = t.scroll, u = t.scrollFn, pl === !0 && (pl = Ys(n, !0)));
|
|
3663
|
+
var d = 0, f = pl;
|
|
3663
3664
|
do {
|
|
3664
3665
|
var p = f, m = G(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 = W(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
3665
3666
|
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"));
|
|
3666
3667
|
var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), O = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
3667
3668
|
if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
|
|
3668
3669
|
($[d].vx != D || $[d].vy != O || $[d].el !== p) && ($[d].el = p, $[d].vx = D, $[d].vy = O, clearInterval($[d].pid), (D != 0 || O != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
3669
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3670
|
+
r && this.layer === 0 && Q.active._onTouchMove(vl);
|
|
3670
3671
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3671
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
3672
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[ic], n, t, e, vl, $[this.layer].el) !== "continue" || tc($[this.layer].el, n, t);
|
|
3672
3673
|
}.bind({ layer: d }), 24))), d++;
|
|
3673
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3674
|
-
|
|
3674
|
+
} while (t.bubbleScroll && f !== c && (f = Ys(f, !1)));
|
|
3675
|
+
hl = l;
|
|
3675
3676
|
}
|
|
3676
|
-
}, 30),
|
|
3677
|
+
}, 30), wl = function(e) {
|
|
3677
3678
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3678
3679
|
if (t) {
|
|
3679
3680
|
var c = n || i;
|
|
@@ -3685,8 +3686,8 @@ var yl = Ys(function(e, t, n, r) {
|
|
|
3685
3686
|
}));
|
|
3686
3687
|
}
|
|
3687
3688
|
};
|
|
3688
|
-
function
|
|
3689
|
-
|
|
3689
|
+
function Tl() {}
|
|
3690
|
+
Tl.prototype = {
|
|
3690
3691
|
startIndex: null,
|
|
3691
3692
|
dragStart: function(e) {
|
|
3692
3693
|
var t = e.oldDraggableIndex;
|
|
@@ -3695,67 +3696,67 @@ xl.prototype = {
|
|
|
3695
3696
|
onSpill: function(e) {
|
|
3696
3697
|
var t = e.dragEl, n = e.putSortable;
|
|
3697
3698
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
3698
|
-
var r =
|
|
3699
|
+
var r = Ws(this.sortable.el, this.startIndex, this.options);
|
|
3699
3700
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3700
3701
|
},
|
|
3701
|
-
drop:
|
|
3702
|
-
},
|
|
3703
|
-
function
|
|
3704
|
-
|
|
3702
|
+
drop: wl
|
|
3703
|
+
}, Cs(Tl, { pluginName: "revertOnSpill" });
|
|
3704
|
+
function El() {}
|
|
3705
|
+
El.prototype = {
|
|
3705
3706
|
onSpill: function(e) {
|
|
3706
3707
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3707
3708
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3708
3709
|
},
|
|
3709
|
-
drop:
|
|
3710
|
-
},
|
|
3711
|
-
function
|
|
3710
|
+
drop: wl
|
|
3711
|
+
}, Cs(El, { pluginName: "removeOnSpill" }), Q.mount(new bl()), Q.mount(El, Tl);
|
|
3712
|
+
function Dl(e) {
|
|
3712
3713
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3713
3714
|
}
|
|
3714
|
-
function
|
|
3715
|
+
function Ol(e) {
|
|
3715
3716
|
O() && ne(e);
|
|
3716
3717
|
}
|
|
3717
|
-
function
|
|
3718
|
+
function kl(e) {
|
|
3718
3719
|
O() ? s(e) : _(e);
|
|
3719
3720
|
}
|
|
3720
|
-
var
|
|
3721
|
-
function
|
|
3722
|
-
|
|
3721
|
+
var Al = null, jl = null;
|
|
3722
|
+
function Ml(e = null, t = null) {
|
|
3723
|
+
Al = e, jl = t;
|
|
3723
3724
|
}
|
|
3724
|
-
function
|
|
3725
|
+
function Nl() {
|
|
3725
3726
|
return {
|
|
3726
|
-
data:
|
|
3727
|
-
clonedData:
|
|
3727
|
+
data: Al,
|
|
3728
|
+
clonedData: jl
|
|
3728
3729
|
};
|
|
3729
3730
|
}
|
|
3730
|
-
var
|
|
3731
|
-
function
|
|
3731
|
+
var Pl = Symbol("cloneElement");
|
|
3732
|
+
function Fl(...e) {
|
|
3732
3733
|
let t = O()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
3733
3734
|
Array.isArray(A(i)) || (a = i, i = null);
|
|
3734
|
-
let o = null, { immediate: s = !0, clone: l =
|
|
3735
|
+
let o = null, { immediate: s = !0, clone: l = Dl, forceFallback: u, fallbackOnBody: d, customUpdate: f } = A(a) ?? {};
|
|
3735
3736
|
function p(e) {
|
|
3736
3737
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
3737
3738
|
n = u && !d ? o.slice(0, -1) : o;
|
|
3738
3739
|
let s = A(A(i)?.[r]), c = l(s);
|
|
3739
|
-
|
|
3740
|
+
Ml(s, c), a[Pl] = c;
|
|
3740
3741
|
}
|
|
3741
3742
|
function m(e) {
|
|
3742
|
-
let t = e.item[
|
|
3743
|
-
if (!
|
|
3744
|
-
if (
|
|
3743
|
+
let t = e.item[Pl];
|
|
3744
|
+
if (!cs(t)) {
|
|
3745
|
+
if (ds(e.item), w(i)) {
|
|
3745
3746
|
let n = [...A(i)];
|
|
3746
|
-
i.value =
|
|
3747
|
+
i.value = ss(n, e.newDraggableIndex, t);
|
|
3747
3748
|
return;
|
|
3748
3749
|
}
|
|
3749
|
-
|
|
3750
|
+
ss(A(i), e.newDraggableIndex, t);
|
|
3750
3751
|
}
|
|
3751
3752
|
}
|
|
3752
3753
|
function h(e) {
|
|
3753
3754
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
3754
|
-
if (
|
|
3755
|
+
if (us(t, n, r), o === "clone") ds(s);
|
|
3755
3756
|
else if (w(i)) {
|
|
3756
3757
|
let e = [...A(i)];
|
|
3757
|
-
i.value =
|
|
3758
|
-
} else
|
|
3758
|
+
i.value = os(e, a);
|
|
3759
|
+
} else os(A(i), a);
|
|
3759
3760
|
}
|
|
3760
3761
|
function g(e) {
|
|
3761
3762
|
if (f) {
|
|
@@ -3763,10 +3764,10 @@ function jl(...e) {
|
|
|
3763
3764
|
return;
|
|
3764
3765
|
}
|
|
3765
3766
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
3766
|
-
if (
|
|
3767
|
+
if (ds(n), us(t, n, r), w(i)) {
|
|
3767
3768
|
let e = [...A(i)];
|
|
3768
|
-
i.value =
|
|
3769
|
-
} else
|
|
3769
|
+
i.value = rs(e, a, o);
|
|
3770
|
+
} else rs(A(i), a, o);
|
|
3770
3771
|
}
|
|
3771
3772
|
function v(e) {
|
|
3772
3773
|
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
@@ -3785,7 +3786,7 @@ function jl(...e) {
|
|
|
3785
3786
|
n = null;
|
|
3786
3787
|
}
|
|
3787
3788
|
_(() => {
|
|
3788
|
-
if (
|
|
3789
|
+
if (Ml(), o) throw o;
|
|
3789
3790
|
});
|
|
3790
3791
|
}
|
|
3791
3792
|
let y = {
|
|
@@ -3797,19 +3798,19 @@ function jl(...e) {
|
|
|
3797
3798
|
};
|
|
3798
3799
|
function b(e) {
|
|
3799
3800
|
let n = A(r);
|
|
3800
|
-
return e ||=
|
|
3801
|
+
return e ||= ls(n) ? fs(n, t?.$el) : n, e && !hs(e) && (e = e.$el), e || ns("Root element not found"), e;
|
|
3801
3802
|
}
|
|
3802
3803
|
function x() {
|
|
3803
|
-
let e = A(a) ?? {}, { immediate: t, clone: n } = e, r =
|
|
3804
|
-
return
|
|
3805
|
-
|
|
3806
|
-
}),
|
|
3804
|
+
let e = A(a) ?? {}, { immediate: t, clone: n } = e, r = $o(e, ["immediate", "clone"]);
|
|
3805
|
+
return gs(r, (e, t) => {
|
|
3806
|
+
_s(e) && (r[e] = (e, ...n) => (vs(e, Nl()), t(e, ...n)));
|
|
3807
|
+
}), ms(i === null ? {} : y, r);
|
|
3807
3808
|
}
|
|
3808
3809
|
let S = (e) => {
|
|
3809
3810
|
e = b(e), o && C.destroy(), o = new Q(e, x());
|
|
3810
3811
|
};
|
|
3811
3812
|
c(() => a, () => {
|
|
3812
|
-
o &&
|
|
3813
|
+
o && gs(x(), (e, t) => {
|
|
3813
3814
|
o?.option(e, t);
|
|
3814
3815
|
});
|
|
3815
3816
|
}, { deep: !0 });
|
|
@@ -3822,15 +3823,15 @@ function jl(...e) {
|
|
|
3822
3823
|
toArray: () => o?.toArray(),
|
|
3823
3824
|
closest: (...e) => o?.closest(...e)
|
|
3824
3825
|
};
|
|
3825
|
-
return
|
|
3826
|
+
return kl(() => {
|
|
3826
3827
|
s && S();
|
|
3827
|
-
}),
|
|
3828
|
+
}), Ol(C.destroy), Qo({
|
|
3828
3829
|
start: S,
|
|
3829
3830
|
pause: () => C?.option("disabled", !0),
|
|
3830
3831
|
resume: () => C?.option("disabled", !1)
|
|
3831
3832
|
}, C);
|
|
3832
3833
|
}
|
|
3833
|
-
var
|
|
3834
|
+
var Il = [
|
|
3834
3835
|
"update",
|
|
3835
3836
|
"start",
|
|
3836
3837
|
"add",
|
|
@@ -3843,7 +3844,7 @@ var Ml = [
|
|
|
3843
3844
|
"clone",
|
|
3844
3845
|
"move",
|
|
3845
3846
|
"change"
|
|
3846
|
-
],
|
|
3847
|
+
], Ll = [
|
|
3847
3848
|
"clone",
|
|
3848
3849
|
"animation",
|
|
3849
3850
|
"ghostClass",
|
|
@@ -3887,46 +3888,46 @@ var Ml = [
|
|
|
3887
3888
|
"tag",
|
|
3888
3889
|
"target",
|
|
3889
3890
|
"customUpdate",
|
|
3890
|
-
...
|
|
3891
|
-
],
|
|
3891
|
+
...Il.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
3892
|
+
], Rl = B({
|
|
3892
3893
|
name: "VueDraggable",
|
|
3893
3894
|
model: {
|
|
3894
3895
|
prop: "modelValue",
|
|
3895
3896
|
event: "update:modelValue"
|
|
3896
3897
|
},
|
|
3897
|
-
props:
|
|
3898
|
-
emits: ["update:modelValue", ...
|
|
3898
|
+
props: Ll,
|
|
3899
|
+
emits: ["update:modelValue", ...Il],
|
|
3899
3900
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
3900
|
-
let a =
|
|
3901
|
+
let a = Il.reduce((e, t) => {
|
|
3901
3902
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
3902
3903
|
return e[r] = (...e) => n(t, ...e), e;
|
|
3903
3904
|
}, {}), o = k(() => {
|
|
3904
|
-
let t = D(e), { modelValue: n } = t, r =
|
|
3905
|
+
let t = D(e), { modelValue: n } = t, r = $o(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
3905
3906
|
let r = A(n);
|
|
3906
3907
|
return r !== void 0 && (e[t] = r), e;
|
|
3907
3908
|
}, {});
|
|
3908
|
-
return
|
|
3909
|
+
return Qo(Qo({}, a), as(Qo(Qo({}, i), o)));
|
|
3909
3910
|
}), s = k({
|
|
3910
3911
|
get: () => e.modelValue,
|
|
3911
3912
|
set: (e) => n("update:modelValue", e)
|
|
3912
|
-
}), c = M(), l = b(
|
|
3913
|
+
}), c = M(), l = b(Fl(e.target || c, s, o));
|
|
3913
3914
|
return r(l), () => x(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
3914
3915
|
}
|
|
3915
|
-
}),
|
|
3916
|
+
}), zl = {
|
|
3916
3917
|
mounted: "mounted",
|
|
3917
3918
|
unmounted: "unmounted"
|
|
3918
3919
|
};
|
|
3919
|
-
|
|
3920
|
+
zl.mounted, zl.unmounted;
|
|
3920
3921
|
// src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3921
|
-
var
|
|
3922
|
+
var Bl = { class: "tpl:relative tpl:w-full" }, Vl = {
|
|
3922
3923
|
key: 0,
|
|
3923
3924
|
"data-testid": "hero-image-hint",
|
|
3924
3925
|
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)]"
|
|
3925
|
-
},
|
|
3926
|
+
}, Hl = {
|
|
3926
3927
|
key: 0,
|
|
3927
3928
|
"data-testid": "section-drop-hint",
|
|
3928
3929
|
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)]"
|
|
3929
|
-
},
|
|
3930
|
+
}, Ul = /* @__PURE__ */ B({
|
|
3930
3931
|
__name: "SectionBlock",
|
|
3931
3932
|
props: {
|
|
3932
3933
|
block: {},
|
|
@@ -3935,46 +3936,21 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
3935
3936
|
},
|
|
3936
3937
|
setup(e) {
|
|
3937
3938
|
let t = {
|
|
3938
|
-
title:
|
|
3939
|
-
paragraph:
|
|
3940
|
-
image:
|
|
3941
|
-
button:
|
|
3942
|
-
divider:
|
|
3943
|
-
custom:
|
|
3944
|
-
}, n = e, { t: r } = ce(), i =
|
|
3945
|
-
g(
|
|
3946
|
-
let u = z(
|
|
3939
|
+
title: zo,
|
|
3940
|
+
paragraph: to,
|
|
3941
|
+
image: Ja,
|
|
3942
|
+
button: ga,
|
|
3943
|
+
divider: Aa,
|
|
3944
|
+
custom: Oa
|
|
3945
|
+
}, n = e, { t: r } = ce(), i = Fn(In, "SectionBlock"), { displayBlock: o } = It(i), s = k(() => n.sourceBlock ?? n.block), c = z(yn, k(() => /* @__PURE__ */ new Set()));
|
|
3946
|
+
g(yn, k(() => /* @__PURE__ */ new Set([...c.value, ...Object.entries(s.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
|
|
3947
|
+
let u = z(Tn, null), f = z(Cn, null), _ = z(hn, {}), b = z(sn, null), x = z(un, null);
|
|
3947
3948
|
function w(e) {
|
|
3948
3949
|
if (b?.value) return;
|
|
3949
3950
|
let t = _.savedBlocks;
|
|
3950
3951
|
t?.isPicking.value ? t.togglePick(n.block.id) : i.selectBlock(e);
|
|
3951
3952
|
}
|
|
3952
|
-
let T = k(() => {
|
|
3953
|
-
switch (n.block.columns) {
|
|
3954
|
-
case "2": return ["50%", "50%"];
|
|
3955
|
-
case "3": return [
|
|
3956
|
-
"33.33%",
|
|
3957
|
-
"33.33%",
|
|
3958
|
-
"33.33%"
|
|
3959
|
-
];
|
|
3960
|
-
case "4": return [
|
|
3961
|
-
"25%",
|
|
3962
|
-
"25%",
|
|
3963
|
-
"25%",
|
|
3964
|
-
"25%"
|
|
3965
|
-
];
|
|
3966
|
-
case "1-2": return ["33.33%", "66.67%"];
|
|
3967
|
-
case "2-1": return ["66.67%", "33.33%"];
|
|
3968
|
-
case "1-3": return ["25%", "75%"];
|
|
3969
|
-
case "3-1": return ["75%", "25%"];
|
|
3970
|
-
case "1-2-1": return [
|
|
3971
|
-
"25%",
|
|
3972
|
-
"50%",
|
|
3973
|
-
"25%"
|
|
3974
|
-
];
|
|
3975
|
-
default: return ["100%"];
|
|
3976
|
-
}
|
|
3977
|
-
}), ee = k(() => {
|
|
3953
|
+
let T = k(() => _t(n.block).map((e) => `${e}%`)), ee = k(() => {
|
|
3978
3954
|
let e = T.value.length, t = [...(i.state.previewMode ? n.block : s.value).children];
|
|
3979
3955
|
for (; t.length < e;) t.push([]);
|
|
3980
3956
|
return t.slice(0, e);
|
|
@@ -3994,7 +3970,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
3994
3970
|
}
|
|
3995
3971
|
let F = k(() => {
|
|
3996
3972
|
if (i.state.previewMode) return !1;
|
|
3997
|
-
let e =
|
|
3973
|
+
let e = Ce(n.block);
|
|
3998
3974
|
return e !== null && !e.applied && e.reason === "image";
|
|
3999
3975
|
});
|
|
4000
3976
|
function I(e) {
|
|
@@ -4004,10 +3980,10 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4004
3980
|
return O(e).length === 0 && i.state.previewMode;
|
|
4005
3981
|
}
|
|
4006
3982
|
function oe(e, t) {
|
|
4007
|
-
b?.value ||
|
|
3983
|
+
b?.value || no(i, t, n.block.id, e);
|
|
4008
3984
|
}
|
|
4009
3985
|
function B(e) {
|
|
4010
|
-
return
|
|
3986
|
+
return Xi(e, f, t);
|
|
4011
3987
|
}
|
|
4012
3988
|
function se(e, t) {
|
|
4013
3989
|
b?.value || e.type !== "custom" || i.updateBlock(e.id, {
|
|
@@ -4015,17 +3991,17 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4015
3991
|
dataSourceFetched: t.dataSourceFetched
|
|
4016
3992
|
});
|
|
4017
3993
|
}
|
|
4018
|
-
return (t, s) => (m(), N("div",
|
|
3994
|
+
return (t, s) => (m(), N("div", Bl, [F.value ? (m(), N("div", Vl, [P("span", null, d(A(r).section.heroAddImage), 1)])) : j("", !0), P("div", { class: h(["tpl:flex tpl:gap-0", { "tpl:flex-col": D.value }]) }, [(m(!0), N(L, null, v(ee.value, (t, c) => (m(), N("div", {
|
|
4019
3995
|
key: c,
|
|
4020
3996
|
class: h(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", I(c) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
4021
3997
|
style: y({ width: D.value ? "100%" : T.value[c] })
|
|
4022
|
-
}, [E(A(
|
|
3998
|
+
}, [E(A(Rl), {
|
|
4023
3999
|
disabled: A(b) ?? !1,
|
|
4024
4000
|
"model-value": O(c),
|
|
4025
4001
|
group: {
|
|
4026
4002
|
name: "blocks",
|
|
4027
4003
|
pull: !0,
|
|
4028
|
-
put: (e, t, n) => A(
|
|
4004
|
+
put: (e, t, n) => A(Ko)(n)
|
|
4029
4005
|
},
|
|
4030
4006
|
animation: 150,
|
|
4031
4007
|
"ghost-class": "tpl-ghost",
|
|
@@ -4039,12 +4015,12 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4039
4015
|
"tpl:min-h-[60px]": ie(c),
|
|
4040
4016
|
"tpl:min-h-[34px]": ae(c)
|
|
4041
4017
|
}]),
|
|
4042
|
-
onUpdate: (e) => !A(b) && A(
|
|
4018
|
+
onUpdate: (e) => !A(b) && A(no)(A(i), O(c), n.block.id, c, e),
|
|
4043
4019
|
onStart: (e) => re.value = c,
|
|
4044
4020
|
onEnd: s[0] ||= (e) => re.value = null,
|
|
4045
4021
|
"onUpdate:modelValue": (e) => oe(c, e)
|
|
4046
4022
|
}, {
|
|
4047
|
-
default: S(() => [(m(!0), N(L, null, v(O(c), (t) => C((m(), N("div", { key: t.id }, [E(
|
|
4023
|
+
default: S(() => [(m(!0), N(L, null, v(O(c), (t) => C((m(), N("div", { key: t.id }, [E(Lo, {
|
|
4048
4024
|
block: t,
|
|
4049
4025
|
"display-block": A(o)(t),
|
|
4050
4026
|
"is-selected": A(i).state.selectedBlockId === t.id,
|
|
@@ -4081,14 +4057,14 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4081
4057
|
"onUpdate",
|
|
4082
4058
|
"onStart",
|
|
4083
4059
|
"onUpdate:modelValue"
|
|
4084
|
-
]), I(c) ? (m(), N("div",
|
|
4060
|
+
]), I(c) ? (m(), N("div", Hl, [P("span", null, d(A(r).section.dropHere), 1)])) : j("", !0)], 6))), 128))], 2)]));
|
|
4085
4061
|
}
|
|
4086
|
-
}),
|
|
4062
|
+
}), Wl = ["width", "height"], Gl = [
|
|
4087
4063
|
"d",
|
|
4088
4064
|
"stroke",
|
|
4089
4065
|
"stroke-opacity",
|
|
4090
4066
|
"stroke-width"
|
|
4091
|
-
],
|
|
4067
|
+
], Kl = ["d", "fill"], ql = /* @__PURE__ */ B({
|
|
4092
4068
|
__name: "SocialIconSvg",
|
|
4093
4069
|
props: {
|
|
4094
4070
|
platform: {},
|
|
@@ -4097,7 +4073,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4097
4073
|
iconSize: {}
|
|
4098
4074
|
},
|
|
4099
4075
|
setup(e) {
|
|
4100
|
-
let t = e, n = k(() =>
|
|
4076
|
+
let t = e, n = k(() => rr[t.platform]), r = k(() => ar[t.iconSize]), i = k(() => it(t.platform, t.iconTone)), a = k(() => mt(t.iconStyle, t.iconTone)), o = k(() => {
|
|
4101
4077
|
let e = {
|
|
4102
4078
|
display: "inline-flex",
|
|
4103
4079
|
alignItems: "center",
|
|
@@ -4135,7 +4111,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4135
4111
|
};
|
|
4136
4112
|
default: return e;
|
|
4137
4113
|
}
|
|
4138
|
-
}), s = k(() =>
|
|
4114
|
+
}), s = k(() => We(t.iconStyle)), c = k(() => Math.floor(r.value * s.value));
|
|
4139
4115
|
function l(e) {
|
|
4140
4116
|
let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
|
|
4141
4117
|
return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
|
|
@@ -4156,15 +4132,15 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4156
4132
|
"stroke-opacity": a.value.opacity,
|
|
4157
4133
|
"stroke-width": a.value.width / s.value,
|
|
4158
4134
|
"stroke-linejoin": "round"
|
|
4159
|
-
}, null, 8,
|
|
4135
|
+
}, null, 8, Gl)) : j("", !0), P("path", {
|
|
4160
4136
|
d: n.value.path,
|
|
4161
4137
|
fill: u.value
|
|
4162
|
-
}, null, 8,
|
|
4138
|
+
}, null, 8, Kl)], 8, Wl))], 4));
|
|
4163
4139
|
}
|
|
4164
|
-
}),
|
|
4140
|
+
}), Jl = { class: "tpl:w-full" }, Yl = ["href"], Xl = {
|
|
4165
4141
|
key: 1,
|
|
4166
4142
|
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)]"
|
|
4167
|
-
},
|
|
4143
|
+
}, Zl = /* @__PURE__ */ B({
|
|
4168
4144
|
__name: "SocialIconsBlock",
|
|
4169
4145
|
props: {
|
|
4170
4146
|
block: {},
|
|
@@ -4177,7 +4153,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4177
4153
|
gap: `${t.block.spacing}px`,
|
|
4178
4154
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
4179
4155
|
})), a = k(() => t.block.icons.length > 0);
|
|
4180
|
-
return (t, o) => (m(), N("div",
|
|
4156
|
+
return (t, o) => (m(), N("div", Jl, [a.value ? (m(), N("div", {
|
|
4181
4157
|
key: 0,
|
|
4182
4158
|
style: y(r.value)
|
|
4183
4159
|
}, [(m(!0), N(L, null, v(e.block.icons, (t) => (m(), N("a", {
|
|
@@ -4185,7 +4161,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4185
4161
|
href: t.url || "#",
|
|
4186
4162
|
class: "tpl:cursor-default",
|
|
4187
4163
|
onClick: o[0] ||= i(() => {}, ["prevent"])
|
|
4188
|
-
}, [E(
|
|
4164
|
+
}, [E(ql, {
|
|
4189
4165
|
platform: t.platform,
|
|
4190
4166
|
"icon-style": e.block.iconStyle,
|
|
4191
4167
|
"icon-tone": e.block.iconTone,
|
|
@@ -4195,46 +4171,46 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4195
4171
|
"icon-style",
|
|
4196
4172
|
"icon-tone",
|
|
4197
4173
|
"icon-size"
|
|
4198
|
-
])], 8,
|
|
4174
|
+
])], 8, Yl))), 128))], 4)) : (m(), N("div", Xl, [E(A(Wn), { size: 16 }), P("span", null, d(A(n).social.addIcons), 1)]))]));
|
|
4199
4175
|
}
|
|
4200
|
-
}),
|
|
4176
|
+
}), Ql = { class: "tpl:w-full" }, $l = {
|
|
4201
4177
|
key: 0,
|
|
4202
4178
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
4203
4179
|
style: {
|
|
4204
4180
|
"background-color": "var(--tpl-bg-hover)",
|
|
4205
4181
|
color: "var(--tpl-text-dim)"
|
|
4206
4182
|
}
|
|
4207
|
-
},
|
|
4183
|
+
}, eu = /* @__PURE__ */ B({
|
|
4208
4184
|
__name: "SpacerBlock",
|
|
4209
4185
|
props: {
|
|
4210
4186
|
block: {},
|
|
4211
4187
|
viewport: {}
|
|
4212
4188
|
},
|
|
4213
4189
|
setup(e) {
|
|
4214
|
-
let t = e, n =
|
|
4190
|
+
let t = e, n = Fn(In, "SpacerBlock"), r = k(() => ({
|
|
4215
4191
|
height: `${t.block.height}px`,
|
|
4216
4192
|
minHeight: `${t.block.height}px`,
|
|
4217
4193
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
4218
4194
|
}));
|
|
4219
|
-
return (t, i) => (m(), N("div",
|
|
4195
|
+
return (t, i) => (m(), N("div", Ql, [P("div", {
|
|
4220
4196
|
style: y(r.value),
|
|
4221
4197
|
class: h(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !A(n).state.previewMode }])
|
|
4222
|
-
}, [A(n).state.previewMode ? j("", !0) : (m(), N("span",
|
|
4198
|
+
}, [A(n).state.previewMode ? j("", !0) : (m(), N("span", $l, d(e.block.height) + "px ", 1))], 6)]));
|
|
4223
4199
|
}
|
|
4224
|
-
}),
|
|
4200
|
+
}), tu = { class: "tpl:w-full" }, nu = { key: 0 }, ru = [
|
|
4225
4201
|
"aria-label",
|
|
4226
4202
|
"contenteditable",
|
|
4227
4203
|
"data-placeholder",
|
|
4228
4204
|
"onBlur"
|
|
4229
|
-
],
|
|
4205
|
+
], iu = [
|
|
4230
4206
|
"aria-label",
|
|
4231
4207
|
"contenteditable",
|
|
4232
4208
|
"data-placeholder",
|
|
4233
4209
|
"onBlur"
|
|
4234
|
-
],
|
|
4210
|
+
], au = {
|
|
4235
4211
|
key: 1,
|
|
4236
4212
|
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)]"
|
|
4237
|
-
},
|
|
4213
|
+
}, ou = /*#__PURE__*/ Or(/* @__PURE__ */ B({
|
|
4238
4214
|
__name: "TableBlock",
|
|
4239
4215
|
props: {
|
|
4240
4216
|
block: {},
|
|
@@ -4248,7 +4224,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4248
4224
|
updated(e, t) {
|
|
4249
4225
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
4250
4226
|
}
|
|
4251
|
-
}, n = e, { t: r } = ce(), a =
|
|
4227
|
+
}, n = e, { t: r } = ce(), a = Fn(In, "TableBlock"), s = Fn(fn, "TableBlock"), c = z(sn, null), l = k(() => n.block.rows.length > 0), u = k(() => {
|
|
4252
4228
|
let e = {
|
|
4253
4229
|
width: "100%",
|
|
4254
4230
|
borderCollapse: "collapse",
|
|
@@ -4280,11 +4256,11 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4280
4256
|
} : n);
|
|
4281
4257
|
a.updateBlock(n.block.id, { rows: o });
|
|
4282
4258
|
}
|
|
4283
|
-
return (e, n) => (m(), N("div",
|
|
4259
|
+
return (e, n) => (m(), N("div", tu, [l.value ? (m(), N("table", {
|
|
4284
4260
|
key: 0,
|
|
4285
4261
|
style: y(u.value),
|
|
4286
4262
|
class: "tpl-table-editable"
|
|
4287
|
-
}, [h.value ? (m(), N("thead",
|
|
4263
|
+
}, [h.value ? (m(), N("thead", nu, [P("tr", null, [(m(!0), N(L, null, v(h.value.cells, (e) => C((m(), N("th", {
|
|
4288
4264
|
key: e.id,
|
|
4289
4265
|
style: y(p.value),
|
|
4290
4266
|
"aria-label": A(r).table.cellPlaceholder,
|
|
@@ -4293,7 +4269,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4293
4269
|
onBlur: (t) => b(h.value.id, e.id, t),
|
|
4294
4270
|
onKeydown: n[0] ||= o(i((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
4295
4271
|
onClick: i(_, ["stop"])
|
|
4296
|
-
}, null, 44,
|
|
4272
|
+
}, null, 44, ru)), [[t, e.content]])), 128))])])) : j("", !0), P("tbody", null, [(m(!0), N(L, null, v(g.value, (e) => (m(), N("tr", { key: e.id }, [(m(!0), N(L, null, v(e.cells, (a) => C((m(), N("td", {
|
|
4297
4273
|
key: a.id,
|
|
4298
4274
|
style: y(f.value),
|
|
4299
4275
|
"aria-label": A(r).table.cellPlaceholder,
|
|
@@ -4302,9 +4278,9 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4302
4278
|
onBlur: (t) => b(e.id, a.id, t),
|
|
4303
4279
|
onKeydown: n[1] ||= o(i((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
4304
4280
|
onClick: i(_, ["stop"])
|
|
4305
|
-
}, null, 44,
|
|
4281
|
+
}, null, 44, iu)), [[t, a.content]])), 128))]))), 128))])], 4)) : (m(), N("div", au, [E(A(Gn), { size: 16 }), P("span", null, d(A(r).table.empty), 1)]))]));
|
|
4306
4282
|
}
|
|
4307
|
-
}), [["__scopeId", "data-v-73b9f5e5"]]),
|
|
4283
|
+
}), [["__scopeId", "data-v-73b9f5e5"]]), su = /* @__PURE__ */ B({
|
|
4308
4284
|
__name: "VideoPlayButton",
|
|
4309
4285
|
props: { hoverEffect: {
|
|
4310
4286
|
type: Boolean,
|
|
@@ -4321,7 +4297,7 @@ var Il = { class: "tpl:relative tpl:w-full" }, Ll = {
|
|
|
4321
4297
|
}
|
|
4322
4298
|
});
|
|
4323
4299
|
// src/utils/videoThumbnail.ts
|
|
4324
|
-
function
|
|
4300
|
+
function cu(e) {
|
|
4325
4301
|
if (!e) return {
|
|
4326
4302
|
platform: "unknown",
|
|
4327
4303
|
videoId: null,
|
|
@@ -4353,24 +4329,24 @@ function iu(e) {
|
|
|
4353
4329
|
thumbnailUrl: null
|
|
4354
4330
|
};
|
|
4355
4331
|
}
|
|
4356
|
-
function
|
|
4357
|
-
return t ||
|
|
4332
|
+
function lu(e, t) {
|
|
4333
|
+
return t || cu(e).thumbnailUrl;
|
|
4358
4334
|
}
|
|
4359
4335
|
// src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
4360
|
-
var
|
|
4336
|
+
var uu = ["src", "alt"], du = {
|
|
4361
4337
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
4362
4338
|
style: { opacity: "0.7" }
|
|
4363
|
-
},
|
|
4339
|
+
}, fu = ["href"], pu = ["src", "alt"], mu = ["src", "alt"], hu = {
|
|
4364
4340
|
key: 3,
|
|
4365
4341
|
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)]"
|
|
4366
|
-
},
|
|
4342
|
+
}, gu = /* @__PURE__ */ B({
|
|
4367
4343
|
__name: "VideoBlock",
|
|
4368
4344
|
props: {
|
|
4369
4345
|
block: {},
|
|
4370
4346
|
viewport: {}
|
|
4371
4347
|
},
|
|
4372
4348
|
setup(e) {
|
|
4373
|
-
let t = e, { t: n } = ce(), { syntax: r } = V(), a = k(() =>
|
|
4349
|
+
let t = e, { t: n } = ce(), { syntax: r } = V(), a = k(() => ke(t.block.url, r) || ke(t.block.thumbnailUrl, r)), o = Xn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = Xn(() => a.value ? t.block.placeholderUrl : void 0), c = k(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : lu(t.block.url)), l = k(() => ({ textAlign: t.block.align })), u = k(() => {
|
|
4374
4350
|
let e = t.block.align;
|
|
4375
4351
|
return {
|
|
4376
4352
|
maxWidth: "100%",
|
|
@@ -4380,7 +4356,7 @@ var ou = ["src", "alt"], su = {
|
|
|
4380
4356
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
4381
4357
|
marginRight: e === "center" ? "auto" : void 0
|
|
4382
4358
|
};
|
|
4383
|
-
}), f = k(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), p = k(() =>
|
|
4359
|
+
}), f = k(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), p = k(() => ke(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
4384
4360
|
return (t, r) => (m(), N("div", {
|
|
4385
4361
|
class: "tpl:w-full",
|
|
4386
4362
|
style: y(l.value)
|
|
@@ -4393,16 +4369,16 @@ var ou = ["src", "alt"], su = {
|
|
|
4393
4369
|
src: A(s),
|
|
4394
4370
|
alt: e.block.alt,
|
|
4395
4371
|
style: y(f.value)
|
|
4396
|
-
}, null, 12,
|
|
4372
|
+
}, null, 12, uu), E(su)], 4)) : a.value ? (m(), N("div", {
|
|
4397
4373
|
key: 1,
|
|
4398
4374
|
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)]",
|
|
4399
4375
|
style: y([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
4400
|
-
}, [E(A(
|
|
4376
|
+
}, [E(A(zr), {
|
|
4401
4377
|
size: 36,
|
|
4402
4378
|
"stroke-width": 1.5,
|
|
4403
4379
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
4404
4380
|
style: { opacity: "0.5" }
|
|
4405
|
-
}), P("span",
|
|
4381
|
+
}), P("span", du, [E(ma, { text: p.value }, null, 8, ["text"])])], 4)) : c.value ? (m(), N(L, { key: 2 }, [e.block.url ? (m(), N("a", {
|
|
4406
4382
|
key: 0,
|
|
4407
4383
|
href: e.block.url,
|
|
4408
4384
|
target: "_blank",
|
|
@@ -4415,7 +4391,7 @@ var ou = ["src", "alt"], su = {
|
|
|
4415
4391
|
src: c.value,
|
|
4416
4392
|
alt: e.block.alt,
|
|
4417
4393
|
style: y(f.value)
|
|
4418
|
-
}, null, 12,
|
|
4394
|
+
}, null, 12, pu), E(su, { "hover-effect": "" })], 12, fu)) : (m(), N("div", {
|
|
4419
4395
|
key: 1,
|
|
4420
4396
|
class: "tpl:relative tpl:inline-block",
|
|
4421
4397
|
style: y(u.value)
|
|
@@ -4424,53 +4400,53 @@ var ou = ["src", "alt"], su = {
|
|
|
4424
4400
|
src: c.value,
|
|
4425
4401
|
alt: e.block.alt,
|
|
4426
4402
|
style: y(f.value)
|
|
4427
|
-
}, null, 12,
|
|
4403
|
+
}, null, 12, mu), E(su)], 4))], 64)) : (m(), N("div", hu, [E(A(zr), {
|
|
4428
4404
|
size: 40,
|
|
4429
4405
|
"stroke-width": 1.5,
|
|
4430
4406
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
4431
4407
|
}), P("span", null, d(A(n).video.addVideo), 1)]))], 4));
|
|
4432
4408
|
}
|
|
4433
|
-
}),
|
|
4434
|
-
section:
|
|
4435
|
-
title:
|
|
4436
|
-
paragraph:
|
|
4437
|
-
image:
|
|
4438
|
-
button:
|
|
4439
|
-
divider:
|
|
4440
|
-
video:
|
|
4441
|
-
social:
|
|
4442
|
-
menu:
|
|
4443
|
-
table:
|
|
4444
|
-
spacer:
|
|
4445
|
-
html:
|
|
4446
|
-
countdown: oe(() => import("./CountdownBlock-
|
|
4409
|
+
}), _u = {
|
|
4410
|
+
section: Ul,
|
|
4411
|
+
title: zo,
|
|
4412
|
+
paragraph: to,
|
|
4413
|
+
image: Ja,
|
|
4414
|
+
button: ga,
|
|
4415
|
+
divider: Aa,
|
|
4416
|
+
video: gu,
|
|
4417
|
+
social: Zl,
|
|
4418
|
+
menu: Qa,
|
|
4419
|
+
table: ou,
|
|
4420
|
+
spacer: eu,
|
|
4421
|
+
html: Ia,
|
|
4422
|
+
countdown: oe(() => import("./CountdownBlock-AYPypmcX.js"))
|
|
4447
4423
|
};
|
|
4448
|
-
function
|
|
4449
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = ce(i), l = k(() =>
|
|
4424
|
+
function vu(t) {
|
|
4425
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = ce(i), l = k(() => at(at(at(Ti(i), Gi(n.content.value.settings?.locale)), Te(n.content.value.settings) === "rtl" ? {
|
|
4450
4426
|
title: { textAlign: "right" },
|
|
4451
4427
|
table: { textAlign: "right" }
|
|
4452
4428
|
} : {}), r.blockDefaults ?? {}));
|
|
4453
4429
|
n.setUiTheme(r.uiTheme ?? "auto");
|
|
4454
|
-
let { resolvedTheme: u } =
|
|
4430
|
+
let { resolvedTheme: u } = gi(k(() => n.state.uiTheme)), d = M(r.theme ?? {}), { themeStyles: f } = Yr({
|
|
4455
4431
|
themeOverrides: d,
|
|
4456
4432
|
resolvedTheme: u,
|
|
4457
4433
|
extraStyles: () => ({
|
|
4458
4434
|
"--tpl-drop-text": `"${i.canvas.dropHere}"`,
|
|
4459
4435
|
...t.themeExtraStyles?.()
|
|
4460
4436
|
})
|
|
4461
|
-
}), p = t.history ??
|
|
4437
|
+
}), p = t.history ?? qn({
|
|
4462
4438
|
content: n.content,
|
|
4463
4439
|
setContent: (e, t) => n.setContent(e, t)
|
|
4464
4440
|
});
|
|
4465
|
-
t.history ? n.contentReplaced && c(n.contentReplaced, () => p.clear(), { flush: "sync" }) :
|
|
4466
|
-
let m =
|
|
4441
|
+
t.history ? n.contentReplaced && c(n.contentReplaced, () => p.clear(), { flush: "sync" }) : Zn(n, p);
|
|
4442
|
+
let m = Kn({
|
|
4467
4443
|
addBlock: n.addBlock,
|
|
4468
4444
|
removeBlock: n.removeBlock,
|
|
4469
4445
|
updateBlock: n.updateBlock,
|
|
4470
4446
|
selectBlock: n.selectBlock,
|
|
4471
4447
|
findBlockLocation: n.findBlockLocation,
|
|
4472
4448
|
blockDefaults: () => l.value
|
|
4473
|
-
}), h =
|
|
4449
|
+
}), h = dr(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Yn({
|
|
4474
4450
|
content: n.content,
|
|
4475
4451
|
isDirty: () => n.state.isDirty,
|
|
4476
4452
|
...t.autoSaveOptions
|
|
@@ -4478,27 +4454,27 @@ function mu(t) {
|
|
|
4478
4454
|
_ && (v = c(p.isNavigating, (e) => {
|
|
4479
4455
|
e ? _.pause() : _.resume();
|
|
4480
4456
|
}));
|
|
4481
|
-
let y =
|
|
4457
|
+
let y = hi(n, {
|
|
4482
4458
|
t: o,
|
|
4483
4459
|
format: s
|
|
4484
|
-
}, r.customBlocks ?? []), b =
|
|
4485
|
-
if (b.allowCustomIgnored &&
|
|
4486
|
-
let e =
|
|
4487
|
-
e.length > 0 &&
|
|
4488
|
-
}
|
|
4489
|
-
let x =
|
|
4490
|
-
for (let e of x.unknown)
|
|
4491
|
-
let S =
|
|
4492
|
-
|
|
4460
|
+
}, r.customBlocks ?? []), b = Mt(r.colors);
|
|
4461
|
+
if (b.allowCustomIgnored && kt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && kt.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
|
|
4462
|
+
let e = wi(b.presets, r.blockDefaults, r.templateDefaults);
|
|
4463
|
+
e.length > 0 && kt.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.`);
|
|
4464
|
+
}
|
|
4465
|
+
let x = fr(r.templateSettings);
|
|
4466
|
+
for (let e of x.unknown) kt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${pr.join(", ")}) — skipping it.`);
|
|
4467
|
+
let S = Ur();
|
|
4468
|
+
xi(S, _u);
|
|
4493
4469
|
let C = /* @__PURE__ */ new Set();
|
|
4494
4470
|
function w(e) {
|
|
4495
4471
|
for (let t of e) {
|
|
4496
|
-
S.registerCustom(t,
|
|
4497
|
-
for (let e of
|
|
4472
|
+
S.registerCustom(t, Oa);
|
|
4473
|
+
for (let e of Ki(t, b)) C.has(e.id) || (C.add(e.id), kt.warn(e.message));
|
|
4498
4474
|
}
|
|
4499
4475
|
}
|
|
4500
4476
|
r.customBlocks?.length && w(r.customBlocks);
|
|
4501
|
-
let E =
|
|
4477
|
+
let E = oi();
|
|
4502
4478
|
if (I() && T(E.dispose), t.containerEl) {
|
|
4503
4479
|
let n = t.containerEl;
|
|
4504
4480
|
e(document, "pointerdown", (e) => {
|
|
@@ -4511,7 +4487,7 @@ function mu(t) {
|
|
|
4511
4487
|
e ? e.save() : _?.flush();
|
|
4512
4488
|
}
|
|
4513
4489
|
function D(e) {
|
|
4514
|
-
E.isActive() &&
|
|
4490
|
+
E.isActive() && Ji(e, {
|
|
4515
4491
|
history: p,
|
|
4516
4492
|
selectBlock: (e) => n.selectBlock(e),
|
|
4517
4493
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
@@ -4524,45 +4500,45 @@ function mu(t) {
|
|
|
4524
4500
|
}
|
|
4525
4501
|
e(document, "keydown", D);
|
|
4526
4502
|
let O = M(null), A = t.editorRoot ?? document;
|
|
4527
|
-
g(
|
|
4528
|
-
let j =
|
|
4503
|
+
g(zn, A), g(kn, O), g(Vt, /* @__PURE__ */ new Map()), g(dn, i), g(In, n), g(Rn, p), g(Mn, m), g(Tn, h), g(fn, a), g(bn, f), g(mn, u), g(pn, l), g(Nn, r.locale), g(Cn, S), g(vn, r.customBlocks ?? []), g(qt, r.paletteBlocks), g(en, Si(r.htmlBlockPreview)), g(tn, r.layout), g(Lt, r.sectionWrapper), g(On, b), g(jn, x.fields), g(_n, _i(n.content, S));
|
|
4504
|
+
let j = je(r.mergeTags?.syntax);
|
|
4529
4505
|
for (let e of ["opener", "closer"]) {
|
|
4530
4506
|
let t = j[e];
|
|
4531
|
-
typeof t == "string" && t.trim() === "" &&
|
|
4507
|
+
typeof t == "string" && t.trim() === "" && kt.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
|
|
4532
4508
|
}
|
|
4533
|
-
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" &&
|
|
4509
|
+
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && wt(j) === null && kt.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
|
|
4534
4510
|
let N = ie(r.mergeTags?.tags ?? []);
|
|
4535
4511
|
function te(e) {
|
|
4536
|
-
Array.isArray(e) ? N.value = e :
|
|
4512
|
+
Array.isArray(e) ? N.value = e : kt.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
4537
4513
|
}
|
|
4538
|
-
g(
|
|
4539
|
-
let ne = M(
|
|
4540
|
-
g(
|
|
4541
|
-
let re =
|
|
4514
|
+
g(Qt, N), g(zt, j), g(Ut, r.mergeTags?.onRequest ?? null), g(Ht, r.mergeTags?.autocomplete !== !1), g(Bn, r.mergeTags?.showRawValue !== !1);
|
|
4515
|
+
let ne = M(Dt(r.mergeTags?.tags ?? []));
|
|
4516
|
+
g($t, ne);
|
|
4517
|
+
let re = li({
|
|
4542
4518
|
resolvePreview: r.resolvePreview,
|
|
4543
4519
|
surface: "preview",
|
|
4544
4520
|
getContent: () => {
|
|
4545
4521
|
let e = n.content.value;
|
|
4546
4522
|
if (!n.state.previewMode) return e;
|
|
4547
|
-
let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i =
|
|
4548
|
-
return r.layout ?
|
|
4523
|
+
let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = Ue(e, t);
|
|
4524
|
+
return r.layout ? ge(Ue(r.layout, t, { missing: "default" }), i) : i;
|
|
4549
4525
|
},
|
|
4550
4526
|
isActive: () => n.state.previewMode,
|
|
4551
4527
|
getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
|
|
4552
4528
|
});
|
|
4553
|
-
g(
|
|
4529
|
+
g(Kt, re), g(cn, r.resolvePreview);
|
|
4554
4530
|
let P = null;
|
|
4555
|
-
g(
|
|
4531
|
+
g(on, (e) => (P = e, () => {
|
|
4556
4532
|
P === e && (P = null);
|
|
4557
4533
|
}));
|
|
4558
4534
|
let F = () => (P ?? re.refresh)(), L = k(() => !(n.state.previewMode && re.isConfigured));
|
|
4559
|
-
g(
|
|
4560
|
-
let ae =
|
|
4561
|
-
g(
|
|
4562
|
-
let R =
|
|
4535
|
+
g(un, L);
|
|
4536
|
+
let ae = ui();
|
|
4537
|
+
g(Gt, ae), g(Jt, M(!1)), g(Xt, M(!1)), g(xn, r.logicTags?.tags ?? []), g(Rt, r.logicTags?.pairs ?? []), g(nn, r.logicTags?.onRequest ?? null), g(Yt, di()), g(an, r.onRequestMedia ?? null), g(Pn, r.canDropMedia ?? null), g(Bt, r.resolveImageUrl ? lr(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && kt.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), g(ln, r.displayConditions?.conditions ?? []), g(An, r.displayConditions?.allowCustom ?? !1), g(Wt, r.displayConditions?.onRequest ?? null), g(hn, t.capabilities ?? {}), g(Ln, y);
|
|
4538
|
+
let R = fi(r.lint) ? null : mi({
|
|
4563
4539
|
content: n.content,
|
|
4564
4540
|
get options() {
|
|
4565
|
-
return
|
|
4541
|
+
return si({
|
|
4566
4542
|
...r,
|
|
4567
4543
|
content: n.content.value,
|
|
4568
4544
|
contentLocale: n.activeLocale?.value ?? void 0
|
|
@@ -4574,7 +4550,7 @@ function mu(t) {
|
|
|
4574
4550
|
updateSettings: n.updateSettings,
|
|
4575
4551
|
removeBlock: n.removeBlock
|
|
4576
4552
|
});
|
|
4577
|
-
g(
|
|
4553
|
+
g(En, R);
|
|
4578
4554
|
function oe() {
|
|
4579
4555
|
v?.(), R?.destroy(), _?.destroy(), p.destroy();
|
|
4580
4556
|
}
|
|
@@ -4605,12 +4581,12 @@ function mu(t) {
|
|
|
4605
4581
|
};
|
|
4606
4582
|
}
|
|
4607
4583
|
// src/composables/useSmallScreenNotice.ts
|
|
4608
|
-
var
|
|
4609
|
-
function
|
|
4610
|
-
let n = t(
|
|
4584
|
+
var yu = "(max-width: 767px)";
|
|
4585
|
+
function bu(e) {
|
|
4586
|
+
let n = t(yu);
|
|
4611
4587
|
return {
|
|
4612
4588
|
isSmallScreen: n,
|
|
4613
4589
|
showNotice: k(() => (F(e) ?? !0) && n.value)
|
|
4614
4590
|
};
|
|
4615
4591
|
}
|
|
4616
|
-
export {
|
|
4592
|
+
export { Ni as A, ei as B, ta as C, Yi as D, oa as E, Li as F, Fr as G, Hr as H, Ii as I, Nr as K, li as L, Bi as M, zi as N, fa as O, Ri as P, si as R, Qi as S, aa as T, Vr as U, qr as V, Lr as W, Ia as _, eu as a, ya as b, Rl as c, zo as d, Lo as f, Ja as g, Qa as h, ou as i, Vi as j, Xi as k, Bo as l, to as m, vu as n, Zl as o, no as p, gu as r, Ul as s, bu as t, Uo as u, Aa as v, ua as w, ga as x, Oa as y, ni as z };
|