@templatical/editor 0.25.2 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-B_fwa6zc.js} +8 -8
- package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-BBBKsYD4.js} +4 -4
- package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
- package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-zyyq2de0.js} +1 -1
- package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-DM3RRCVn.js} +19 -19
- package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-Coj8Ebwf.js} +2 -2
- package/dist/{ColorPicker-B5xXWWX5.js → ColorPicker-ClETsjA3.js} +1 -1
- package/dist/{CommentsSidebar-CGihWwn9.js → CommentsSidebar-CdRCCSDD.js} +10 -10
- package/dist/{CountdownToolbar-DpNCZAUI.js → CountdownToolbar-CBE9wRaV.js} +2 -2
- package/dist/{DesignReferenceSidebar-CiIHHiil.js → DesignReferenceSidebar-hDXOvGoV.js} +6 -6
- package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
- package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-D0t5NHBZ.js} +3 -3
- package/dist/{MergeTagSuggestion-98fAcuM-.js → MergeTagSuggestion-BJ43ihWR.js} +9 -9
- package/dist/{NumberWithSuffix-DB-1GNvx.js → NumberWithSuffix-D37ZWiZh.js} +1 -1
- package/dist/{ParagraphEditor-NgW-T9YV.js → ParagraphEditor-B-CYrQMY.js} +19 -19
- package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
- package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-CoVPZfUv.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-DX13xw0O.js} +7 -7
- package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-B7pBiZcc.js} +1 -1
- package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-ZfqXByph.js} +2 -2
- package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-BxABntv5.js} +11 -11
- package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
- package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-Db4qheuy.js} +7 -7
- package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-B-SXSnRg.js} +1 -1
- package/dist/{TitleEditor-DWSi998C.js → TitleEditor-DmoaKooA.js} +8 -8
- package/dist/{TplModal-DKn0h2qe.js → TplModal-Bym-Kf_i.js} +1 -1
- package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-BnCXsB2I.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-CFvS4-EZ.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-CFvS4-EZ.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-a0gBZiJ9.js} +11 -11
- package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-a0gBZiJ9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js → BlockPreviewCanvas-C27XK2q0.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-C27XK2q0.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-Ddnatfuw.js} +65 -65
- package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-Ddnatfuw.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-C5Xf6Mz9.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-C5Xf6Mz9.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js → DesignReferenceSidebar-CZiP00JN.js} +28 -28
- package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-CZiP00JN.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js → MergeTagModeToggle-ClGdRNpZ.js} +20 -20
- package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-ClGdRNpZ.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js → ParagraphEditor-BNc146Pp.js} +43 -43
- package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-BNc146Pp.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js → SaveBlockDialog-ogieDQp7.js} +43 -43
- package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-ogieDQp7.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-DSpZcT_T.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-DSpZcT_T.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-WYrSyf-l.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-WYrSyf-l.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-DGbLBG5P.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-DGbLBG5P.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-VyL4tJwn.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-VyL4tJwn.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js → TemplateScoringPanel-NucRtAP0.js} +34 -34
- package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js → TestEmailModal-DRte11oT.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DRte11oT.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-CpK5t4E3.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-CpK5t4E3.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-EkDchueW.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-EkDchueW.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-BGLstO3F.js} +17 -17
- package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-BGLstO3F.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js → blockTypeIcons-FXlMM3PL.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js → cloud-CNpvDuv7.js} +3 -3
- package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CNpvDuv7.js.map} +1 -1
- package/dist/cdn/chunks/{dist-H51neg3K.js → dist-B2HKGHnc.js} +3 -3
- package/dist/cdn/chunks/{dist-H51neg3K.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-B4VIlp1g.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-B4VIlp1g.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js → draggable-DCs9qL-b.js} +2 -2
- package/dist/cdn/chunks/{draggable-Z4XXmbPC.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js → extensions-CZAB08kD.js} +22 -22
- package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-CZAB08kD.js.map} +1 -1
- package/dist/cdn/chunks/{icons-C_kRN0_C.js → icons-CvYN6zrM.js} +8 -8
- package/dist/cdn/chunks/{icons-C_kRN0_C.js.map → icons-CvYN6zrM.js.map} +1 -1
- package/dist/cdn/chunks/{keys-DsoX52o_.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-DsoX52o_.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DrGys_ek.js → liquid.browser-UlAOKBjI.js} +99 -91
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{src-CRvTVX4F.js → src-BRRRFqXr.js} +201 -201
- package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-BRRRFqXr.js.map} +1 -1
- package/dist/cdn/chunks/{src-Aea1Vl1H.js → src-COnW7gMq.js} +123 -123
- package/dist/cdn/chunks/src-COnW7gMq.js.map +1 -0
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-DsvVSm7Z.js} +221 -166
- package/dist/cdn/chunks/src-DsvVSm7Z.js.map +1 -0
- package/dist/cdn/chunks/{src-_GNJgPcS.js → src-DzH5U9Vm.js} +79 -79
- package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-DzH5U9Vm.js.map} +1 -1
- package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-DEU_sn3k.js} +935 -917
- package/dist/cdn/chunks/styles-DEU_sn3k.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C5vzWlHv.js → tiptap-C44S1Cmh.js} +3480 -2806
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BMXBmdd8.js → useEditorCore-fyFmWS3D.js} +297 -297
- package/dist/cdn/chunks/useEditorCore-fyFmWS3D.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-BvcEYzrI.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js → useMergeTag-DjQoCGEz.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-DjQoCGEz.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
- package/dist/cdn/editor.js +47 -47
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-COV27dGb.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-vsU88vcr.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-RrZ0Rjn9.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-B6GlHmmi.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-egOt8zjQ.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-D-2StbvU.js → cloud-4SuOLNTK.js} +1 -1
- package/dist/{createLucideIcon-D6cqT5Pm.js → createLucideIcon-C8WzBYCv.js} +2 -2
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DHwnYYx0.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-CQ0fVBQ3.js → dist-BvYvG5SQ.js} +110 -57
- package/dist/{dist-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
- package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
- package/dist/{dist-D4GoAr2g.js → dist-DMJRSouD.js} +464 -436
- package/dist/{dist-GUZZpDK3.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-Du95Y9M3.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-vpuiQ7_Q.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-y6KjLr9t.js → extensions-Dz5jj0wf.js} +16 -16
- package/dist/{image-up-CycES-MQ.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-BUdvm046.js → info-DO5odBcZ.js} +1 -1
- package/dist/{liquid.browser-Di5zMIEx.js → liquid.browser-B-rGrnrQ.js} +98 -90
- package/dist/{list-checks-BAeuuATD.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-L5yuAx_j.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-DRdaapVc.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BfErVPf_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-D0PYatER.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{scan-line-Byi3fJcr.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-DuyNexMY.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-BkkN_1qw.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-DAw2sBXk.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-BzwheHH_.js → styles-DbP2S8Z1.js} +446 -428
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-Ba3xJKn6.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-CapEBXBI.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-52pdw8jI.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-oAgigC31.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useEditorCore-BhjEMSeE.js → useEditorCore-CbcmGpwp.js} +889 -889
- package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-B9xG9EJ7.js} +1 -1
- package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/liquid.browser-DrGys_ek.js.map +0 -1
- package/dist/cdn/chunks/src-Aea1Vl1H.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/styles-znpPfrFd.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +0 -1
- package/dist/dist-B56SufAv.js +0 -5
- package/dist/dist-BQZkRg05.js +0 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, D as r, Dt as i, E as a, Et as o, H as s, I as c, J as l, K as u, N as d, O as f, Ot as p, R as m, T as h, W as g, Y as _, Z as v, _ as y, c as b, d as x, et as S, g as C, h as w, j as T, k as E, l as D, m as O, nt as k, q as A, r as j, rt as ee, s as M, tt as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { A as
|
|
5
|
-
import { f as
|
|
6
|
-
import { a as
|
|
7
|
-
import { A as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
1
|
+
import { $ as e, A as t, B as n, D as r, Dt as i, E as a, Et as o, H as s, I as c, J as l, K as u, N as d, O as f, Ot as p, R as m, T as h, W as g, Y as _, Z as v, _ as y, c as b, d as x, et as S, g as C, h as w, j as T, k as E, l as D, m as O, nt as k, q as A, r as j, rt as ee, s as M, tt as N, u as P, v as te, w as ne, x as F, y as re, z as ie } from "./vue.runtime.esm-bundler-D1diBMsm.js";
|
|
2
|
+
import { c as I, o as ae, s as oe } from "./runtime-dom.esm-bundler-CepEmvwF.js";
|
|
3
|
+
import { t as se } from "./upload-sVqqppuv.js";
|
|
4
|
+
import { A as ce, B as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as _e, O as ve, P as ye, R as be, S as xe, T as Se, V as Ce, _ as we, a as Te, b as Ee, c as De, d as Oe, f as ke, g as Ae, h as je, i as Me, j as Ne, l as Pe, m as Fe, n as Ie, o as Le, p as Re, r as ze, t as Be, u as Ve, v as He, w as Ue, x as We, y as Ge, z as Ke } from "./dist-BvYvG5SQ.js";
|
|
5
|
+
import { f as qe, g as Je, h as Ye, m as Xe } from "./dist-BpKxrUi2.js";
|
|
6
|
+
import { a as Ze, c as Qe, d as $e, i as et, l as tt, o as nt, r as rt, t as it, u as at } from "./usePopoverPosition-C0dPEF4X.js";
|
|
7
|
+
import { A as ot, B as st, C as ct, D as lt, E as ut, F as dt, G as ft, H as pt, I as mt, L as ht, M as gt, N as _t, O as vt, P as yt, S as bt, T as xt, U as St, V as Ct, W as wt, _ as Tt, a as Et, b as Dt, c as Ot, f as kt, g as At, h as jt, j as Mt, k as Nt, m as Pt, n as Ft, o as It, p as Lt, r as Rt, s as zt, u as Bt, v as Vt, w as Ht, x as Ut, y as Wt } from "./keys-fwF3qZax.js";
|
|
8
|
+
import { t as Gt } from "./useI18n-DoVKdCTH.js";
|
|
9
|
+
import { t as L } from "./createLucideIcon-C8WzBYCv.js";
|
|
10
|
+
import { t as Kt } from "./loader-circle-bO7o7_HD.js";
|
|
11
|
+
import { t as qt } from "./message-circle-BEkAk65X.js";
|
|
12
|
+
import { t as Jt } from "./trash-2-CklAFCmO.js";
|
|
13
|
+
import { t as Yt } from "./triangle-alert-BBi4n93g.js";
|
|
14
|
+
import { t as Xt } from "./LoadingTrack-BexpNuTV.js";
|
|
15
|
+
import { t as Zt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import "./useCloudI18n-DKVm6PCa.js";
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
17
|
+
import { t as Qt } from "./useMergeTag-B9xG9EJ7.js";
|
|
18
|
+
import { t as $t } from "./useAliveFlag-cvyBxHp7.js";
|
|
19
19
|
//#region ../core/dist/index.js
|
|
20
|
-
function
|
|
20
|
+
function en(e) {
|
|
21
21
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function tn(e) {
|
|
24
24
|
let t = A({
|
|
25
|
-
content: e.content ??
|
|
25
|
+
content: e.content ?? Re(e.defaultFontFamily, e.templateDefaults),
|
|
26
26
|
selectedBlockId: null,
|
|
27
27
|
viewport: "desktop",
|
|
28
28
|
darkMode: !1,
|
|
@@ -111,7 +111,7 @@ function nn(e) {
|
|
|
111
111
|
if (c(n)) return;
|
|
112
112
|
let o = a(t.content.blocks, n);
|
|
113
113
|
if (o && o.type === "section") {
|
|
114
|
-
if (r < 0 || r >=
|
|
114
|
+
if (r < 0 || r >= en(o.columns)) return;
|
|
115
115
|
o.children[r] = o.children[r] || [];
|
|
116
116
|
let t = o.children[r];
|
|
117
117
|
i !== void 0 && i < t.length ? t.splice(i, 0, e) : t.push(e);
|
|
@@ -144,7 +144,7 @@ function nn(e) {
|
|
|
144
144
|
let u;
|
|
145
145
|
if (r) {
|
|
146
146
|
let e = a(t.content.blocks, r);
|
|
147
|
-
if (!e || e.type !== "section" || i < 0 || i >=
|
|
147
|
+
if (!e || e.type !== "section" || i < 0 || i >= en(e.columns)) return;
|
|
148
148
|
e.children[i] = e.children[i] || [], u = e.children[i];
|
|
149
149
|
} else u = t.content.blocks;
|
|
150
150
|
let [d] = o.blocks.splice(l, 1);
|
|
@@ -173,11 +173,11 @@ function nn(e) {
|
|
|
173
173
|
findBlockLocation: u
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
var
|
|
177
|
-
function
|
|
178
|
-
let { content: t, setContent: r, isRemoteOperation: i, maxSize: a =
|
|
176
|
+
var nn = 50, rn = 300, an = 1500;
|
|
177
|
+
function on(e) {
|
|
178
|
+
let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = nn } = e, o = _([]), s = _([]), c = _(!1), l = null, u = null, d = n(() => o.value.length > 0), f = n(() => s.value.length > 0);
|
|
179
179
|
function p() {
|
|
180
|
-
return
|
|
180
|
+
return Ke(t.value);
|
|
181
181
|
}
|
|
182
182
|
function m(e) {
|
|
183
183
|
o.value.push(e), o.value.length > a && o.value.splice(0, o.value.length - a);
|
|
@@ -193,21 +193,21 @@ function sn(e) {
|
|
|
193
193
|
if (u && u.blockId === e) {
|
|
194
194
|
clearTimeout(u.timeoutId), u.timeoutId = setTimeout(() => {
|
|
195
195
|
u = null;
|
|
196
|
-
},
|
|
196
|
+
}, rn);
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
199
|
h(), m(p()), s.value = [], u = {
|
|
200
200
|
blockId: e,
|
|
201
201
|
timeoutId: setTimeout(() => {
|
|
202
202
|
u = null;
|
|
203
|
-
},
|
|
203
|
+
}, rn)
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
function y() {
|
|
208
208
|
c.value = !0, l && clearTimeout(l), l = setTimeout(() => {
|
|
209
209
|
c.value = !1, l = null;
|
|
210
|
-
},
|
|
210
|
+
}, an);
|
|
211
211
|
}
|
|
212
212
|
function b() {
|
|
213
213
|
if (o.value.length === 0) return;
|
|
@@ -239,33 +239,33 @@ function sn(e) {
|
|
|
239
239
|
destroy: C
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function sn(e) {
|
|
243
243
|
e.type === "table" ? e.rows = e.rows.map((e) => ({
|
|
244
244
|
...e,
|
|
245
|
-
id:
|
|
245
|
+
id: Se(),
|
|
246
246
|
cells: e.cells.map((e) => ({
|
|
247
247
|
...e,
|
|
248
|
-
id:
|
|
248
|
+
id: Se()
|
|
249
249
|
}))
|
|
250
250
|
})) : e.type === "social" ? e.icons = e.icons.map((e) => ({
|
|
251
251
|
...e,
|
|
252
|
-
id:
|
|
252
|
+
id: Se()
|
|
253
253
|
})) : e.type === "menu" && (e.items = e.items.map((e) => ({
|
|
254
254
|
...e,
|
|
255
|
-
id:
|
|
255
|
+
id: Se()
|
|
256
256
|
})));
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function cn(e) {
|
|
259
259
|
let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
|
|
260
260
|
function o(n, r, a) {
|
|
261
|
-
let o =
|
|
261
|
+
let o = Pe(n, e.blockDefaults);
|
|
262
262
|
return t(o, r, a), i(o.id), o;
|
|
263
263
|
}
|
|
264
264
|
function s(e, n, r) {
|
|
265
265
|
let o = JSON.parse(JSON.stringify(e));
|
|
266
|
-
if (o.id =
|
|
266
|
+
if (o.id = Se(), sn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
|
|
267
267
|
let t = JSON.parse(JSON.stringify(e));
|
|
268
|
-
return t.id =
|
|
268
|
+
return t.id = Se(), sn(t), t;
|
|
269
269
|
}))), n !== void 0 || r !== void 0) t(o, n, r);
|
|
270
270
|
else {
|
|
271
271
|
let i = a?.(e.id) ?? null;
|
|
@@ -286,7 +286,7 @@ function ln(e) {
|
|
|
286
286
|
updateBlockProperty: l
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function ln(e) {
|
|
290
290
|
let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
|
|
291
291
|
function c() {
|
|
292
292
|
return typeof a == "function" ? a() : a;
|
|
@@ -322,7 +322,7 @@ function un(e) {
|
|
|
322
322
|
destroy: h
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function un(e) {
|
|
326
326
|
let t = A(/* @__PURE__ */ new Set()), r = n(() => t.size > 0);
|
|
327
327
|
function i(e) {
|
|
328
328
|
return t.has(e);
|
|
@@ -340,7 +340,7 @@ function dn(e) {
|
|
|
340
340
|
hasHiddenBlocks: r
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function dn(e) {
|
|
344
344
|
let t = _(!1), r = _(!1), i = n(() => !!e.definition.value?.dataSource), a = n(() => i.value && !e.block.value.dataSourceFetched);
|
|
345
345
|
async function o() {
|
|
346
346
|
let n = e.definition.value;
|
|
@@ -370,7 +370,7 @@ function fn(e) {
|
|
|
370
370
|
needsFetch: a
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function fn(e, t) {
|
|
374
374
|
let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
|
|
375
375
|
e.addBlock = (r, i, a, o) => {
|
|
376
376
|
i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
|
|
@@ -384,7 +384,7 @@ function pn(e, t) {
|
|
|
384
384
|
t.record(), o(e);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function pn(e) {
|
|
388
388
|
let { provider: t } = e, n = _([]), r = _(!1), i = M(() => {
|
|
389
389
|
let e = /* @__PURE__ */ new Set();
|
|
390
390
|
for (let t of n.value) {
|
|
@@ -400,7 +400,7 @@ function mn(e) {
|
|
|
400
400
|
return s.value && e.canDelete !== !1;
|
|
401
401
|
}
|
|
402
402
|
function u(e, t) {
|
|
403
|
-
throw new
|
|
403
|
+
throw new Le(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
|
|
404
404
|
}
|
|
405
405
|
async function d(i) {
|
|
406
406
|
r.value = !0;
|
|
@@ -467,9 +467,9 @@ function mn(e) {
|
|
|
467
467
|
remove: m
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
function
|
|
472
|
-
let t = e.key ??
|
|
470
|
+
var mn = "templatical:saved-blocks";
|
|
471
|
+
function hn(e = {}) {
|
|
472
|
+
let t = e.key ?? mn;
|
|
473
473
|
function n() {
|
|
474
474
|
if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
|
|
475
475
|
return localStorage;
|
|
@@ -494,7 +494,7 @@ function gn(e = {}) {
|
|
|
494
494
|
},
|
|
495
495
|
async create(e) {
|
|
496
496
|
let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
|
|
497
|
-
id:
|
|
497
|
+
id: Se(),
|
|
498
498
|
name: e.name,
|
|
499
499
|
content: e.content,
|
|
500
500
|
...e.category ? { category: e.category } : {},
|
|
@@ -522,27 +522,27 @@ function gn(e = {}) {
|
|
|
522
522
|
}
|
|
523
523
|
//#endregion
|
|
524
524
|
//#region src/utils/activeEditorTracker.ts
|
|
525
|
-
var
|
|
526
|
-
function
|
|
527
|
-
let e = ++
|
|
528
|
-
return
|
|
525
|
+
var gn = /* @__PURE__ */ new Set(), _n = 0, vn = 0;
|
|
526
|
+
function yn() {
|
|
527
|
+
let e = ++vn;
|
|
528
|
+
return gn.add(e), _n === 0 && (_n = e), {
|
|
529
529
|
id: e,
|
|
530
|
-
isActive: () =>
|
|
530
|
+
isActive: () => gn.size <= 1 || _n === e,
|
|
531
531
|
claim: () => {
|
|
532
|
-
|
|
532
|
+
_n = e;
|
|
533
533
|
},
|
|
534
534
|
dispose: () => {
|
|
535
|
-
if (
|
|
536
|
-
let e = Array.from(
|
|
537
|
-
|
|
535
|
+
if (gn.delete(e), _n === e) {
|
|
536
|
+
let e = Array.from(gn);
|
|
537
|
+
_n = e[e.length - 1] ?? 0;
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
//#endregion
|
|
543
543
|
//#region src/composables/usePreviewResolution.ts
|
|
544
|
-
var
|
|
545
|
-
function
|
|
544
|
+
var bn = 500;
|
|
545
|
+
function xn(e) {
|
|
546
546
|
let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
|
|
547
547
|
function s() {
|
|
548
548
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -553,13 +553,13 @@ function Sn(e) {
|
|
|
553
553
|
let o = ++a;
|
|
554
554
|
r.value = !0;
|
|
555
555
|
let s = {
|
|
556
|
-
content:
|
|
556
|
+
content: Ke(e.getContent()),
|
|
557
557
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
558
558
|
};
|
|
559
559
|
try {
|
|
560
560
|
let e = await t(s);
|
|
561
561
|
if (o !== a) return;
|
|
562
|
-
if (!
|
|
562
|
+
if (!pe(e)) {
|
|
563
563
|
i.value = !0;
|
|
564
564
|
return;
|
|
565
565
|
}
|
|
@@ -579,7 +579,7 @@ function Sn(e) {
|
|
|
579
579
|
}
|
|
580
580
|
o = setTimeout(() => {
|
|
581
581
|
o = null, l();
|
|
582
|
-
},
|
|
582
|
+
}, bn);
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
return c(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
|
|
@@ -601,7 +601,7 @@ function Sn(e) {
|
|
|
601
601
|
}
|
|
602
602
|
//#endregion
|
|
603
603
|
//#region src/composables/useImageUrlResolver.ts
|
|
604
|
-
function
|
|
604
|
+
function Sn(e) {
|
|
605
605
|
let t = A(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
|
|
606
606
|
function r(e) {
|
|
607
607
|
return t.get(e);
|
|
@@ -634,8 +634,8 @@ function Cn(e) {
|
|
|
634
634
|
lookup: a
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
let t =
|
|
637
|
+
function Cn(e) {
|
|
638
|
+
let t = F(Ut, null), n = M(e);
|
|
639
639
|
if (!t) return n;
|
|
640
640
|
let r;
|
|
641
641
|
function i() {
|
|
@@ -664,7 +664,7 @@ function wn(e) {
|
|
|
664
664
|
}
|
|
665
665
|
//#endregion
|
|
666
666
|
//#region src/composables/useMergeTagPicker.ts
|
|
667
|
-
function
|
|
667
|
+
function wn() {
|
|
668
668
|
let e = _(!1), t = _([]), n = null;
|
|
669
669
|
function r(r) {
|
|
670
670
|
if (n) {
|
|
@@ -694,7 +694,7 @@ function Tn() {
|
|
|
694
694
|
}
|
|
695
695
|
//#endregion
|
|
696
696
|
//#region src/composables/useLogicTagPicker.ts
|
|
697
|
-
function
|
|
697
|
+
function Tn() {
|
|
698
698
|
let e = _(!1), t = _([]), n = _([]), r = null;
|
|
699
699
|
function i(i, a) {
|
|
700
700
|
if (r) {
|
|
@@ -725,17 +725,17 @@ function En() {
|
|
|
725
725
|
}
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region src/composables/useTemplateLint.ts
|
|
728
|
-
function
|
|
728
|
+
function En(e) {
|
|
729
729
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
let t = _([]), n = _(!1), r = _(!1), i = v(null), a =
|
|
731
|
+
function Dn(e) {
|
|
732
|
+
let t = _([]), n = _(!1), r = _(!1), i = v(null), a = En(e.options), o = null, s = !1;
|
|
733
733
|
a || l();
|
|
734
734
|
async function l() {
|
|
735
735
|
try {
|
|
736
736
|
let t = await import("@templatical/quality");
|
|
737
737
|
if (s) return;
|
|
738
|
-
i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o =
|
|
738
|
+
i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Je(e.content, u, {
|
|
739
739
|
debounce: e.debounce ?? 500,
|
|
740
740
|
deep: !0
|
|
741
741
|
});
|
|
@@ -770,17 +770,17 @@ function On(e) {
|
|
|
770
770
|
}
|
|
771
771
|
//#endregion
|
|
772
772
|
//#region src/utils/blockTypeLabels.ts
|
|
773
|
-
function
|
|
773
|
+
function On(e, t) {
|
|
774
774
|
return t.blocks[e] ?? e;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
if (e.type !== "custom") return
|
|
776
|
+
function kn(e, t, n = []) {
|
|
777
|
+
if (e.type !== "custom") return On(e.type, t);
|
|
778
778
|
let { customType: r } = e;
|
|
779
779
|
return n.find((e) => e.type === r)?.name ?? r;
|
|
780
780
|
}
|
|
781
781
|
//#endregion
|
|
782
782
|
//#region src/composables/useKeyboardReorder.ts
|
|
783
|
-
function
|
|
783
|
+
function An(e, t, n = []) {
|
|
784
784
|
let r = _(null), i = _(""), a = null;
|
|
785
785
|
function o(t) {
|
|
786
786
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -807,7 +807,7 @@ function jn(e, t, n = []) {
|
|
|
807
807
|
let i = o(r);
|
|
808
808
|
if (!i) return "";
|
|
809
809
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
810
|
-
return a ?
|
|
810
|
+
return a ? kn(a, t.t, n) : "";
|
|
811
811
|
}
|
|
812
812
|
function c(t, n) {
|
|
813
813
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -876,13 +876,13 @@ function jn(e, t, n = []) {
|
|
|
876
876
|
}
|
|
877
877
|
//#endregion
|
|
878
878
|
//#region src/composables/useUiTheme.ts
|
|
879
|
-
function
|
|
880
|
-
let t =
|
|
879
|
+
function jn(e) {
|
|
880
|
+
let t = $e("(prefers-color-scheme: dark)");
|
|
881
881
|
return { resolvedTheme: M(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
882
882
|
}
|
|
883
883
|
//#endregion
|
|
884
884
|
//#region src/composables/useThemeStyles.ts
|
|
885
|
-
var
|
|
885
|
+
var Mn = {
|
|
886
886
|
bg: "--tpl-bg",
|
|
887
887
|
bgElevated: "--tpl-bg-elevated",
|
|
888
888
|
bgHover: "--tpl-bg-hover",
|
|
@@ -906,10 +906,10 @@ var Nn = {
|
|
|
906
906
|
dangerLight: "--tpl-danger-light",
|
|
907
907
|
canvasBg: "--tpl-canvas-bg"
|
|
908
908
|
};
|
|
909
|
-
function
|
|
909
|
+
function Nn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
910
910
|
return { themeStyles: M(() => {
|
|
911
911
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
912
|
-
if (a) for (let [e, t] of Object.entries(
|
|
912
|
+
if (a) for (let [e, t] of Object.entries(Mn)) {
|
|
913
913
|
let n = a[e];
|
|
914
914
|
n && (r[t] = n);
|
|
915
915
|
}
|
|
@@ -918,38 +918,38 @@ function Pn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
918
918
|
}
|
|
919
919
|
//#endregion
|
|
920
920
|
//#region src/utils/logger.ts
|
|
921
|
-
var
|
|
922
|
-
function
|
|
921
|
+
var Pn = "[Templatical]";
|
|
922
|
+
function Fn() {
|
|
923
923
|
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var In = {
|
|
926
926
|
warn(...e) {
|
|
927
|
-
console.warn(
|
|
927
|
+
console.warn(Pn, ...e);
|
|
928
928
|
},
|
|
929
929
|
error(...e) {
|
|
930
|
-
console.error(
|
|
930
|
+
console.error(Pn, ...e);
|
|
931
931
|
},
|
|
932
932
|
debug(...e) {
|
|
933
|
-
|
|
933
|
+
Fn() || console.debug(Pn, ...e);
|
|
934
934
|
},
|
|
935
935
|
info(...e) {
|
|
936
|
-
|
|
936
|
+
Fn() || console.info(Pn, ...e);
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
939
|
//#endregion
|
|
940
940
|
//#region src/composables/useBlockRegistry.ts
|
|
941
|
-
function
|
|
941
|
+
function Ln() {
|
|
942
942
|
let e = v(/* @__PURE__ */ new Map());
|
|
943
943
|
function t(t, n) {
|
|
944
|
-
e.value.set(t, n),
|
|
944
|
+
e.value.set(t, n), N(e);
|
|
945
945
|
}
|
|
946
946
|
function n(t, n) {
|
|
947
947
|
let r = `custom:${t.type}`, i = {
|
|
948
948
|
component: n,
|
|
949
|
-
createBlock: () =>
|
|
949
|
+
createBlock: () => ke(t),
|
|
950
950
|
definition: t
|
|
951
951
|
};
|
|
952
|
-
e.value.set(r, i),
|
|
952
|
+
e.value.set(r, i), N(e);
|
|
953
953
|
}
|
|
954
954
|
function r(t) {
|
|
955
955
|
if (t.type === "custom") {
|
|
@@ -972,13 +972,13 @@ function Rn() {
|
|
|
972
972
|
let t = a(e.customType);
|
|
973
973
|
if (!t) return o("Block definition not found");
|
|
974
974
|
try {
|
|
975
|
-
let { Liquid: n } = await import("./liquid.browser-
|
|
975
|
+
let { Liquid: n } = await import("./liquid.browser-B-rGrnrQ.js");
|
|
976
976
|
return await new n({
|
|
977
977
|
strictVariables: !1,
|
|
978
978
|
strictFilters: !1
|
|
979
979
|
}).parseAndRender(t.template, e.fieldValues);
|
|
980
980
|
} catch (t) {
|
|
981
|
-
return
|
|
981
|
+
return In.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
function c(t) {
|
|
@@ -996,9 +996,9 @@ function Rn() {
|
|
|
996
996
|
}
|
|
997
997
|
//#endregion
|
|
998
998
|
//#region src/composables/useCustomBlockStylesheets.ts
|
|
999
|
-
function
|
|
999
|
+
function Rn(e, t) {
|
|
1000
1000
|
return M(() => {
|
|
1001
|
-
let n =
|
|
1001
|
+
let n = zn(e.value.blocks);
|
|
1002
1002
|
if (n.size === 0) return [];
|
|
1003
1003
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
1004
1004
|
for (let e of n) {
|
|
@@ -1010,81 +1010,81 @@ function zn(e, t) {
|
|
|
1010
1010
|
return i;
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function zn(e) {
|
|
1014
1014
|
let t = /* @__PURE__ */ new Set();
|
|
1015
|
-
return
|
|
1015
|
+
return Bn(e, t), t;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Bn(e, t) {
|
|
1018
1018
|
for (let n of e) {
|
|
1019
|
-
if (
|
|
1019
|
+
if (ge(n)) {
|
|
1020
1020
|
t.add(n.customType);
|
|
1021
1021
|
continue;
|
|
1022
1022
|
}
|
|
1023
1023
|
if (n.type === "section") {
|
|
1024
1024
|
let e = n.children;
|
|
1025
1025
|
if (!e) continue;
|
|
1026
|
-
for (let n of e)
|
|
1026
|
+
for (let n of e) Bn(n, t);
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
//#endregion
|
|
1031
1031
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
1032
|
-
var
|
|
1032
|
+
var Vn = [
|
|
1033
1033
|
{
|
|
1034
1034
|
type: "section",
|
|
1035
|
-
createBlock:
|
|
1035
|
+
createBlock: Ge
|
|
1036
1036
|
},
|
|
1037
1037
|
{
|
|
1038
1038
|
type: "title",
|
|
1039
|
-
createBlock:
|
|
1039
|
+
createBlock: ue
|
|
1040
1040
|
},
|
|
1041
1041
|
{
|
|
1042
1042
|
type: "paragraph",
|
|
1043
|
-
createBlock:
|
|
1043
|
+
createBlock: He
|
|
1044
1044
|
},
|
|
1045
1045
|
{
|
|
1046
1046
|
type: "image",
|
|
1047
|
-
createBlock:
|
|
1047
|
+
createBlock: Ae
|
|
1048
1048
|
},
|
|
1049
1049
|
{
|
|
1050
1050
|
type: "button",
|
|
1051
|
-
createBlock:
|
|
1051
|
+
createBlock: Ve
|
|
1052
1052
|
},
|
|
1053
1053
|
{
|
|
1054
1054
|
type: "divider",
|
|
1055
|
-
createBlock:
|
|
1055
|
+
createBlock: Fe
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
1058
|
type: "video",
|
|
1059
|
-
createBlock:
|
|
1059
|
+
createBlock: Ue
|
|
1060
1060
|
},
|
|
1061
1061
|
{
|
|
1062
1062
|
type: "social",
|
|
1063
|
-
createBlock:
|
|
1063
|
+
createBlock: Ee
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
1066
1066
|
type: "menu",
|
|
1067
|
-
createBlock:
|
|
1067
|
+
createBlock: we
|
|
1068
1068
|
},
|
|
1069
1069
|
{
|
|
1070
1070
|
type: "table",
|
|
1071
|
-
createBlock:
|
|
1071
|
+
createBlock: xe
|
|
1072
1072
|
},
|
|
1073
1073
|
{
|
|
1074
1074
|
type: "spacer",
|
|
1075
|
-
createBlock:
|
|
1075
|
+
createBlock: We
|
|
1076
1076
|
},
|
|
1077
1077
|
{
|
|
1078
1078
|
type: "html",
|
|
1079
|
-
createBlock:
|
|
1079
|
+
createBlock: je
|
|
1080
1080
|
},
|
|
1081
1081
|
{
|
|
1082
1082
|
type: "countdown",
|
|
1083
|
-
createBlock:
|
|
1083
|
+
createBlock: Oe
|
|
1084
1084
|
}
|
|
1085
1085
|
];
|
|
1086
|
-
function
|
|
1087
|
-
for (let n of
|
|
1086
|
+
function Hn(e, t) {
|
|
1087
|
+
for (let n of Vn) {
|
|
1088
1088
|
let r = t[n.type];
|
|
1089
1089
|
r && e.registerBuiltIn(n.type, {
|
|
1090
1090
|
component: r,
|
|
@@ -1094,34 +1094,34 @@ function Un(e, t) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
//#endregion
|
|
1096
1096
|
//#region src/utils/resolveHtmlBlockPreview.ts
|
|
1097
|
-
function
|
|
1097
|
+
function Un(e) {
|
|
1098
1098
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
1099
1099
|
}
|
|
1100
1100
|
//#endregion
|
|
1101
1101
|
//#region src/utils/collectOffPaletteDefaults.ts
|
|
1102
|
-
function
|
|
1102
|
+
function Wn(e) {
|
|
1103
1103
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
let r = new Set(e.map((e) =>
|
|
1107
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
1105
|
+
function Gn(e, t, n) {
|
|
1106
|
+
let r = new Set(e.map((e) => rt(e))), i = [], a = (e, t) => {
|
|
1107
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(rt(o)) && i.push(`${t}.${n}: ${o}`) : Wn(o) && a(o, `${t}.${n}`);
|
|
1108
1108
|
}, o = t;
|
|
1109
|
-
for (let [e, t] of Object.entries(
|
|
1109
|
+
for (let [e, t] of Object.entries(Be)) {
|
|
1110
1110
|
let n = o?.[e];
|
|
1111
1111
|
a({
|
|
1112
1112
|
...t,
|
|
1113
|
-
...
|
|
1113
|
+
...Wn(n) ? n : {}
|
|
1114
1114
|
}, e);
|
|
1115
1115
|
}
|
|
1116
1116
|
return a({
|
|
1117
|
-
...
|
|
1117
|
+
...Ie,
|
|
1118
1118
|
...n ?? {}
|
|
1119
1119
|
}, "template"), i;
|
|
1120
1120
|
}
|
|
1121
1121
|
//#endregion
|
|
1122
1122
|
//#region src/utils/resolveFieldColors.ts
|
|
1123
|
-
function
|
|
1124
|
-
let n =
|
|
1123
|
+
function Kn(e, t) {
|
|
1124
|
+
let n = nt({ presets: e.presets }, Ze), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
|
|
1125
1125
|
return {
|
|
1126
1126
|
presets: r ? t.presets : n.presets,
|
|
1127
1127
|
allowCustom: t.allowCustom !== !1 && i,
|
|
@@ -1133,9 +1133,9 @@ function qn(e, t) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
//#endregion
|
|
1135
1135
|
//#region src/utils/collectColorFieldIssues.ts
|
|
1136
|
-
function
|
|
1136
|
+
function qn(e, t) {
|
|
1137
1137
|
let n = [], r = (r, i) => {
|
|
1138
|
-
let a =
|
|
1138
|
+
let a = Kn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
1139
1139
|
if (a.invalidPresets.length > 0 && n.push({
|
|
1140
1140
|
id: s("invalid-presets"),
|
|
1141
1141
|
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." : "")
|
|
@@ -1146,8 +1146,8 @@ function Jn(e, t) {
|
|
|
1146
1146
|
id: s("allow-custom-ignored"),
|
|
1147
1147
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
1148
1148
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
1149
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
1150
|
-
e !== "" && !t.has(
|
|
1149
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => rt(e)));
|
|
1150
|
+
e !== "" && !t.has(rt(e)) && n.push({
|
|
1151
1151
|
id: s("off-palette-default"),
|
|
1152
1152
|
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.`
|
|
1153
1153
|
});
|
|
@@ -1159,7 +1159,7 @@ function Jn(e, t) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
//#endregion
|
|
1161
1161
|
//#region src/utils/keyboardShortcuts.ts
|
|
1162
|
-
function
|
|
1162
|
+
function Jn(e) {
|
|
1163
1163
|
for (let t of e.composedPath()) {
|
|
1164
1164
|
if (!(t instanceof HTMLElement)) continue;
|
|
1165
1165
|
if (t.isContentEditable) return !0;
|
|
@@ -1168,18 +1168,18 @@ function Yn(e) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Yn(e, t) {
|
|
1172
1172
|
let n = e.metaKey || e.ctrlKey;
|
|
1173
1173
|
if (n && e.key.toLowerCase() === "s") {
|
|
1174
1174
|
e.preventDefault(), t.onSave?.();
|
|
1175
1175
|
return;
|
|
1176
1176
|
}
|
|
1177
1177
|
if (n && e.key.toLowerCase() === "z") {
|
|
1178
|
-
if (
|
|
1178
|
+
if (Jn(e)) return;
|
|
1179
1179
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
1180
1180
|
return;
|
|
1181
1181
|
}
|
|
1182
|
-
if (t.isPicking?.() && !
|
|
1182
|
+
if (t.isPicking?.() && !Jn(e)) {
|
|
1183
1183
|
if (e.key === "Escape") {
|
|
1184
1184
|
e.preventDefault(), t.onCancelPick?.();
|
|
1185
1185
|
return;
|
|
@@ -1197,11 +1197,11 @@ function Xn(e, t) {
|
|
|
1197
1197
|
t.selectBlock(null);
|
|
1198
1198
|
return;
|
|
1199
1199
|
}
|
|
1200
|
-
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
1200
|
+
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Jn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
1201
1201
|
}
|
|
1202
1202
|
//#endregion
|
|
1203
1203
|
//#region src/utils/mergeTagLabelSegments.ts
|
|
1204
|
-
function
|
|
1204
|
+
function Xn(e, t, n, r = !1) {
|
|
1205
1205
|
if (!e) return [];
|
|
1206
1206
|
let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
|
|
1207
1207
|
for (; (s = i.exec(e)) !== null;) {
|
|
@@ -1210,18 +1210,18 @@ function Zn(e, t, n, r = !1) {
|
|
|
1210
1210
|
value: e.slice(o, s.index)
|
|
1211
1211
|
});
|
|
1212
1212
|
let i = s[0];
|
|
1213
|
-
if (
|
|
1214
|
-
let e = r ?
|
|
1213
|
+
if (ye(i, n)) {
|
|
1214
|
+
let e = r ? ve(i, t) : void 0;
|
|
1215
1215
|
a.push(e === void 0 ? {
|
|
1216
1216
|
type: "tag",
|
|
1217
|
-
value:
|
|
1217
|
+
value: de(i, t)
|
|
1218
1218
|
} : {
|
|
1219
1219
|
type: "text",
|
|
1220
1220
|
value: e
|
|
1221
1221
|
});
|
|
1222
|
-
} else
|
|
1222
|
+
} else _e(i, n) ? a.push({
|
|
1223
1223
|
type: "tag",
|
|
1224
|
-
value:
|
|
1224
|
+
value: fe(i, n)
|
|
1225
1225
|
}) : a.push({
|
|
1226
1226
|
type: "text",
|
|
1227
1227
|
value: i
|
|
@@ -1235,20 +1235,20 @@ function Zn(e, t, n, r = !1) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
//#endregion
|
|
1237
1237
|
//#region src/components/MergeTagPreviewText.vue
|
|
1238
|
-
var
|
|
1238
|
+
var Zn = y({
|
|
1239
1239
|
name: "MergeTagPreviewText",
|
|
1240
1240
|
props: { text: {
|
|
1241
1241
|
type: String,
|
|
1242
1242
|
required: !0
|
|
1243
1243
|
} },
|
|
1244
1244
|
setup(e) {
|
|
1245
|
-
let t =
|
|
1246
|
-
return () => i.value.map((e, t) => e.type === "tag" ?
|
|
1245
|
+
let t = F(ut, []), n = F(ot, Te.liquid), r = F(wt, null), i = M(() => Xn(e.text, t, n, r?.value ?? !1));
|
|
1246
|
+
return () => i.value.map((e, t) => e.type === "tag" ? re("span", {
|
|
1247
1247
|
key: t,
|
|
1248
1248
|
class: "tpl-merge-tag-label"
|
|
1249
1249
|
}, e.value) : e.value);
|
|
1250
1250
|
}
|
|
1251
|
-
}),
|
|
1251
|
+
}), Qn = ["href"], $n = /* @__PURE__ */ y({
|
|
1252
1252
|
__name: "ButtonBlock",
|
|
1253
1253
|
props: {
|
|
1254
1254
|
block: {},
|
|
@@ -1268,18 +1268,18 @@ var Qn = y({
|
|
|
1268
1268
|
textAlign: "center"
|
|
1269
1269
|
};
|
|
1270
1270
|
return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
|
|
1271
|
-
});
|
|
1272
|
-
return (t,
|
|
1271
|
+
}), r = M(() => ({ textAlign: t.block.align ?? "center" }));
|
|
1272
|
+
return (t, a) => (f(), x("div", { style: i(r.value) }, [b("a", {
|
|
1273
1273
|
href: e.block.url || "#",
|
|
1274
1274
|
style: i(n.value),
|
|
1275
1275
|
class: "tpl:cursor-default",
|
|
1276
|
-
onClick:
|
|
1277
|
-
}, [w(
|
|
1276
|
+
onClick: a[0] ||= I(() => {}, ["prevent"])
|
|
1277
|
+
}, [w(Zn, { text: e.block.text }, null, 8, ["text"])], 12, Qn)], 4));
|
|
1278
1278
|
}
|
|
1279
|
-
}),
|
|
1279
|
+
}), er = L("bookmark", [["path", {
|
|
1280
1280
|
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",
|
|
1281
1281
|
key: "oz39mx"
|
|
1282
|
-
}]]),
|
|
1282
|
+
}]]), tr = L("box", [
|
|
1283
1283
|
["path", {
|
|
1284
1284
|
d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
|
|
1285
1285
|
key: "hh9hay"
|
|
@@ -1292,13 +1292,13 @@ var Qn = y({
|
|
|
1292
1292
|
d: "M12 22V12",
|
|
1293
1293
|
key: "d0xqtd"
|
|
1294
1294
|
}]
|
|
1295
|
-
]),
|
|
1295
|
+
]), nr = L("code", [["path", {
|
|
1296
1296
|
d: "m16 18 6-6-6-6",
|
|
1297
1297
|
key: "eg8j8"
|
|
1298
1298
|
}], ["path", {
|
|
1299
1299
|
d: "m8 6-6 6 6 6",
|
|
1300
1300
|
key: "ppft3o"
|
|
1301
|
-
}]]),
|
|
1301
|
+
}]]), rr = L("copy", [["rect", {
|
|
1302
1302
|
width: "14",
|
|
1303
1303
|
height: "14",
|
|
1304
1304
|
x: "8",
|
|
@@ -1309,7 +1309,7 @@ var Qn = y({
|
|
|
1309
1309
|
}], ["path", {
|
|
1310
1310
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
1311
1311
|
key: "zix9uf"
|
|
1312
|
-
}]]),
|
|
1312
|
+
}]]), ir = L("eye-off", [
|
|
1313
1313
|
["path", {
|
|
1314
1314
|
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
1315
1315
|
key: "ct8e1f"
|
|
@@ -1326,10 +1326,10 @@ var Qn = y({
|
|
|
1326
1326
|
d: "m2 2 20 20",
|
|
1327
1327
|
key: "1ooewy"
|
|
1328
1328
|
}]
|
|
1329
|
-
]),
|
|
1329
|
+
]), ar = L("funnel", [["path", {
|
|
1330
1330
|
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
1331
1331
|
key: "sc7q7i"
|
|
1332
|
-
}]]),
|
|
1332
|
+
}]]), or = L("grip-vertical", [
|
|
1333
1333
|
["circle", {
|
|
1334
1334
|
cx: "9",
|
|
1335
1335
|
cy: "12",
|
|
@@ -1366,7 +1366,7 @@ var Qn = y({
|
|
|
1366
1366
|
r: "1",
|
|
1367
1367
|
key: "f4zoj3"
|
|
1368
1368
|
}]
|
|
1369
|
-
]),
|
|
1369
|
+
]), sr = L("image", [
|
|
1370
1370
|
["rect", {
|
|
1371
1371
|
width: "18",
|
|
1372
1372
|
height: "18",
|
|
@@ -1386,13 +1386,13 @@ var Qn = y({
|
|
|
1386
1386
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
1387
1387
|
key: "1xmnt7"
|
|
1388
1388
|
}]
|
|
1389
|
-
]),
|
|
1389
|
+
]), cr = L("navigation", [["polygon", {
|
|
1390
1390
|
points: "3 11 22 2 13 21 11 13 3 11",
|
|
1391
1391
|
key: "1ltx0t"
|
|
1392
|
-
}]]),
|
|
1392
|
+
}]]), lr = L("puzzle", [["path", {
|
|
1393
1393
|
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",
|
|
1394
1394
|
key: "w46dr5"
|
|
1395
|
-
}]]),
|
|
1395
|
+
}]]), ur = L("share-2", [
|
|
1396
1396
|
["circle", {
|
|
1397
1397
|
cx: "18",
|
|
1398
1398
|
cy: "5",
|
|
@@ -1425,7 +1425,7 @@ var Qn = y({
|
|
|
1425
1425
|
y2: "10.49",
|
|
1426
1426
|
key: "1n3mei"
|
|
1427
1427
|
}]
|
|
1428
|
-
]),
|
|
1428
|
+
]), dr = L("table", [
|
|
1429
1429
|
["path", {
|
|
1430
1430
|
d: "M12 3v18",
|
|
1431
1431
|
key: "108xh3"
|
|
@@ -1446,7 +1446,7 @@ var Qn = y({
|
|
|
1446
1446
|
d: "M3 15h18",
|
|
1447
1447
|
key: "5xshup"
|
|
1448
1448
|
}]
|
|
1449
|
-
]),
|
|
1449
|
+
]), fr = L("video", [["path", {
|
|
1450
1450
|
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
1451
1451
|
key: "ftymec"
|
|
1452
1452
|
}], ["rect", {
|
|
@@ -1456,11 +1456,11 @@ var Qn = y({
|
|
|
1456
1456
|
height: "12",
|
|
1457
1457
|
rx: "2",
|
|
1458
1458
|
key: "158x01"
|
|
1459
|
-
}]]),
|
|
1459
|
+
}]]), pr = ["innerHTML"], mr = [
|
|
1460
1460
|
"src",
|
|
1461
1461
|
"width",
|
|
1462
1462
|
"height"
|
|
1463
|
-
],
|
|
1463
|
+
], hr = /* @__PURE__ */ y({
|
|
1464
1464
|
__name: "CustomBlockIcon",
|
|
1465
1465
|
props: {
|
|
1466
1466
|
icon: {},
|
|
@@ -1476,14 +1476,14 @@ var Qn = y({
|
|
|
1476
1476
|
height: `${n.value}px`
|
|
1477
1477
|
}),
|
|
1478
1478
|
innerHTML: e.icon
|
|
1479
|
-
}, null, 12,
|
|
1479
|
+
}, null, 12, pr)) : a.value ? (f(), x("img", {
|
|
1480
1480
|
key: 1,
|
|
1481
1481
|
src: e.icon,
|
|
1482
1482
|
width: n.value,
|
|
1483
1483
|
height: n.value,
|
|
1484
1484
|
class: "tpl:inline-block",
|
|
1485
1485
|
alt: ""
|
|
1486
|
-
}, null, 8,
|
|
1486
|
+
}, null, 8, mr)) : (f(), D(k(tr), {
|
|
1487
1487
|
key: 2,
|
|
1488
1488
|
size: n.value,
|
|
1489
1489
|
"stroke-width": 1.5
|
|
@@ -1492,16 +1492,16 @@ var Qn = y({
|
|
|
1492
1492
|
});
|
|
1493
1493
|
//#endregion
|
|
1494
1494
|
//#region src/composables/useEditorRoot.ts
|
|
1495
|
-
function
|
|
1496
|
-
return
|
|
1495
|
+
function gr() {
|
|
1496
|
+
return F(Tt, document) ?? document;
|
|
1497
1497
|
}
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
//#region src/composables/useFocusTrap.ts
|
|
1500
|
-
var
|
|
1501
|
-
function
|
|
1502
|
-
let n =
|
|
1500
|
+
var _r = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1501
|
+
function vr(e, t) {
|
|
1502
|
+
let n = gr(), r = null, i = null, a = null;
|
|
1503
1503
|
function o() {
|
|
1504
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1504
|
+
return e.value ? Array.from(e.value.querySelectorAll(_r)).filter((e) => e.offsetParent !== null) : [];
|
|
1505
1505
|
}
|
|
1506
1506
|
function s(e) {
|
|
1507
1507
|
if (e.key !== "Tab") return;
|
|
@@ -1516,7 +1516,7 @@ function br(e, t) {
|
|
|
1516
1516
|
a = null;
|
|
1517
1517
|
let t = o();
|
|
1518
1518
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
1519
|
-
}), i =
|
|
1519
|
+
}), i = at(e, "keydown", s);
|
|
1520
1520
|
}
|
|
1521
1521
|
function d(e = {}) {
|
|
1522
1522
|
let t = e.restoreFocus !== !1;
|
|
@@ -1531,8 +1531,8 @@ function br(e, t) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
//#endregion
|
|
1533
1533
|
//#region src/composables/useEmoji.ts
|
|
1534
|
-
function
|
|
1535
|
-
let [e, t] =
|
|
1534
|
+
function yr() {
|
|
1535
|
+
let [e, t] = Ye(!1), n = v([]), r = !1;
|
|
1536
1536
|
u(() => {
|
|
1537
1537
|
r = !0;
|
|
1538
1538
|
}), c(e, async (e) => {
|
|
@@ -1557,7 +1557,7 @@ function xr() {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
//#endregion
|
|
1559
1559
|
//#region src/composables/useDragDrop.ts
|
|
1560
|
-
function
|
|
1560
|
+
function br(e) {
|
|
1561
1561
|
let { onBlockMove: t, onBlockAdd: n } = e, r = _(!1), i = _(null), a = _(null);
|
|
1562
1562
|
function o(e) {
|
|
1563
1563
|
r.value = !0, i.value = e;
|
|
@@ -1607,7 +1607,7 @@ function Sr(e) {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
//#endregion
|
|
1609
1609
|
//#region src/composables/useFonts.ts
|
|
1610
|
-
var
|
|
1610
|
+
var xr = [
|
|
1611
1611
|
{
|
|
1612
1612
|
value: "Arial",
|
|
1613
1613
|
label: "Arial"
|
|
@@ -1636,7 +1636,7 @@ var Cr = [
|
|
|
1636
1636
|
value: "Courier New",
|
|
1637
1637
|
label: "Courier New"
|
|
1638
1638
|
}
|
|
1639
|
-
],
|
|
1639
|
+
], Sr = {
|
|
1640
1640
|
arial: "Arial, sans-serif",
|
|
1641
1641
|
helvetica: "Helvetica, sans-serif",
|
|
1642
1642
|
georgia: "Georgia, serif",
|
|
@@ -1644,23 +1644,23 @@ var Cr = [
|
|
|
1644
1644
|
verdana: "Verdana, sans-serif",
|
|
1645
1645
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1646
1646
|
"courier new": "'Courier New', monospace"
|
|
1647
|
-
},
|
|
1648
|
-
function
|
|
1649
|
-
if (e === void 0 || e === !0) return [...
|
|
1647
|
+
}, Cr = "Arial, sans-serif";
|
|
1648
|
+
function wr(e) {
|
|
1649
|
+
if (e === void 0 || e === !0) return [...xr];
|
|
1650
1650
|
if (e === !1) return [];
|
|
1651
1651
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1652
1652
|
for (let i of e) {
|
|
1653
|
-
let e = i.toLowerCase(), a =
|
|
1653
|
+
let e = i.toLowerCase(), a = xr.find((t) => t.value.toLowerCase() === e);
|
|
1654
1654
|
if (!a) {
|
|
1655
|
-
r.has(e) || (r.add(e),
|
|
1655
|
+
r.has(e) || (r.add(e), In.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${xr.map((e) => e.value).join(", ")}.`));
|
|
1656
1656
|
continue;
|
|
1657
1657
|
}
|
|
1658
1658
|
n.has(a.value) || (n.add(a.value), t.push(a));
|
|
1659
1659
|
}
|
|
1660
1660
|
return t;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
let t = _(e?.customFonts ?? []), n = _(!0), r = _(!1), i =
|
|
1662
|
+
function Tr(e) {
|
|
1663
|
+
let t = _(e?.customFonts ?? []), n = _(!0), r = _(!1), i = wr(e?.builtIns), a = M(() => e?.defaultFallback ?? Cr);
|
|
1664
1664
|
function o(e) {
|
|
1665
1665
|
n.value = e;
|
|
1666
1666
|
}
|
|
@@ -1677,20 +1677,20 @@ function Dr(e) {
|
|
|
1677
1677
|
function l(e) {
|
|
1678
1678
|
return c.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1679
1679
|
}
|
|
1680
|
-
let d = e?.defaultFont ??
|
|
1681
|
-
l(d) ||
|
|
1680
|
+
let d = e?.defaultFont ?? Cr.split(",")[0].trim();
|
|
1681
|
+
l(d) || In.warn(`config.fonts: new templates seed "${d}", 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.`);
|
|
1682
1682
|
function f(e) {
|
|
1683
|
-
return
|
|
1683
|
+
return xr.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1684
1684
|
}
|
|
1685
1685
|
function p() {
|
|
1686
1686
|
if (e?.defaultFont) {
|
|
1687
|
-
if (!n.value && !f(e.defaultFont)) return
|
|
1687
|
+
if (!n.value && !f(e.defaultFont)) return Cr;
|
|
1688
1688
|
if (l(e.defaultFont)) {
|
|
1689
1689
|
let t = c.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1690
1690
|
if (t) return t.value;
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
|
-
return
|
|
1693
|
+
return Cr;
|
|
1694
1694
|
}
|
|
1695
1695
|
let m = M(() => p());
|
|
1696
1696
|
function h(e) {
|
|
@@ -1700,7 +1700,7 @@ function Dr(e) {
|
|
|
1700
1700
|
let e = n.fallback ?? a.value;
|
|
1701
1701
|
return `'${n.name}', ${e}`;
|
|
1702
1702
|
}
|
|
1703
|
-
return
|
|
1703
|
+
return Sr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${a.value}`);
|
|
1704
1704
|
}
|
|
1705
1705
|
let g = [], v = !1;
|
|
1706
1706
|
async function y() {
|
|
@@ -1716,7 +1716,7 @@ function Dr(e) {
|
|
|
1716
1716
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
1717
1717
|
});
|
|
1718
1718
|
} catch (t) {
|
|
1719
|
-
|
|
1719
|
+
In.warn(`Failed to load custom font "${e.name}":`, t);
|
|
1720
1720
|
}
|
|
1721
1721
|
});
|
|
1722
1722
|
await Promise.allSettled(e), !v && (r.value = !0);
|
|
@@ -1743,8 +1743,8 @@ function Dr(e) {
|
|
|
1743
1743
|
}
|
|
1744
1744
|
//#endregion
|
|
1745
1745
|
//#region src/composables/useLogicTag.ts
|
|
1746
|
-
function
|
|
1747
|
-
let e =
|
|
1746
|
+
function Er() {
|
|
1747
|
+
let e = F(Ht, []), t = F(ct, []), n = F(ot, Te.liquid), r = F(Mt, null), i = F(xt, null), a = _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
|
|
1748
1748
|
async function c() {
|
|
1749
1749
|
if (r) {
|
|
1750
1750
|
a.value = !0;
|
|
@@ -1775,12 +1775,12 @@ function Or() {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
//#endregion
|
|
1777
1777
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1778
|
-
function
|
|
1779
|
-
return
|
|
1778
|
+
function Dr(e, t, n) {
|
|
1779
|
+
return _e(e, n) ? {
|
|
1780
1780
|
type: "logicMergeTagNode",
|
|
1781
1781
|
attrs: {
|
|
1782
1782
|
value: e,
|
|
1783
|
-
keyword:
|
|
1783
|
+
keyword: fe(e, n)
|
|
1784
1784
|
}
|
|
1785
1785
|
} : {
|
|
1786
1786
|
type: "mergeTagNode",
|
|
@@ -1792,15 +1792,15 @@ function kr(e, t, n) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
//#endregion
|
|
1794
1794
|
//#region src/utils/insertLogicTag.ts
|
|
1795
|
-
function
|
|
1795
|
+
function Or(e) {
|
|
1796
1796
|
return "before" in e && "after" in e;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1799
|
-
if (!
|
|
1800
|
-
e.chain().focus().insertContent(
|
|
1798
|
+
function kr(e, t, n) {
|
|
1799
|
+
if (!Or(t)) {
|
|
1800
|
+
e.chain().focus().insertContent(Dr(t.value, t.label, n)).run();
|
|
1801
1801
|
return;
|
|
1802
1802
|
}
|
|
1803
|
-
let r =
|
|
1803
|
+
let r = Dr(t.before, t.label, n), i = Dr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1804
1804
|
if (a !== o) {
|
|
1805
1805
|
e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1806
1806
|
return;
|
|
@@ -1809,20 +1809,20 @@ function jr(e, t, n) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
//#endregion
|
|
1811
1811
|
//#region src/utils/linkColorExtension.ts
|
|
1812
|
-
function
|
|
1812
|
+
function Ar(e) {
|
|
1813
1813
|
if (!e) return null;
|
|
1814
1814
|
let t = e.trim();
|
|
1815
1815
|
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;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function jr(e) {
|
|
1818
1818
|
return e.extend({ addAttributes() {
|
|
1819
1819
|
return {
|
|
1820
1820
|
...this.parent?.(),
|
|
1821
1821
|
color: {
|
|
1822
1822
|
default: null,
|
|
1823
|
-
parseHTML: (e) =>
|
|
1823
|
+
parseHTML: (e) => Ar(et(e.style.color)),
|
|
1824
1824
|
renderHTML: (e) => {
|
|
1825
|
-
let t =
|
|
1825
|
+
let t = Ar(e.color);
|
|
1826
1826
|
return t ? { style: `color: ${t}` } : {};
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
@@ -1831,9 +1831,9 @@ function Nr(e) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
//#endregion
|
|
1833
1833
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1834
|
-
function
|
|
1834
|
+
function Mr(e) {
|
|
1835
1835
|
let t = _(!1), n = _(""), r = _(""), i = _(null);
|
|
1836
|
-
|
|
1836
|
+
vr(i, t);
|
|
1837
1837
|
function a() {
|
|
1838
1838
|
let i = e.value?.getAttributes("link") ?? {};
|
|
1839
1839
|
n.value = i.href || "", r.value = i.color || "", t.value = !0;
|
|
@@ -1842,7 +1842,7 @@ function Pr(e) {
|
|
|
1842
1842
|
if (n.value) {
|
|
1843
1843
|
let t = c(n.value);
|
|
1844
1844
|
if (t !== null) {
|
|
1845
|
-
let n =
|
|
1845
|
+
let n = Ar(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1846
1846
|
n && typeof e.value?.commands.unsetColor == "function" && i?.unsetColor(), i?.run();
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
@@ -1889,9 +1889,9 @@ function Pr(e) {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
//#endregion
|
|
1891
1891
|
//#region src/composables/useRichTextEditor.ts
|
|
1892
|
-
function
|
|
1893
|
-
let t =
|
|
1894
|
-
async function
|
|
1892
|
+
function Nr(e) {
|
|
1893
|
+
let t = F(At, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: o, autocomplete: s } = Qt(), { canInsertLogicTag: l, isRequesting: u, requestLogicTag: d } = Er(), f = F(pt, null), p = (g(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = ce(o), y = v(null), { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Mr(y), { start: k, stop: A } = Xe(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), j = v(null), ee = _(!0), M = _(null), N = !1;
|
|
1894
|
+
async function P() {
|
|
1895
1895
|
M.value = null, ee.value = !0;
|
|
1896
1896
|
try {
|
|
1897
1897
|
let { TiptapEditor: r, EC: i, extensions: a } = await e.loadExtensions({
|
|
@@ -1901,7 +1901,7 @@ function Fr(e) {
|
|
|
1901
1901
|
autocompleteEnabled: s,
|
|
1902
1902
|
suggestionEmptyText: p
|
|
1903
1903
|
});
|
|
1904
|
-
if (
|
|
1904
|
+
if (N) return;
|
|
1905
1905
|
j.value = i;
|
|
1906
1906
|
let c = /* @__PURE__ */ new Map();
|
|
1907
1907
|
a.forEach((e, t) => c.set(e.name, t));
|
|
@@ -1910,27 +1910,27 @@ function Fr(e) {
|
|
|
1910
1910
|
content: e.blockContent(),
|
|
1911
1911
|
editable: !0,
|
|
1912
1912
|
onUpdate: ({ editor: n }) => {
|
|
1913
|
-
|
|
1913
|
+
N || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
|
|
1914
1914
|
}
|
|
1915
1915
|
});
|
|
1916
|
-
if (
|
|
1916
|
+
if (N) {
|
|
1917
1917
|
l.destroy();
|
|
1918
1918
|
return;
|
|
1919
1919
|
}
|
|
1920
1920
|
y.value = l, ee.value = !1, k();
|
|
1921
1921
|
} catch (t) {
|
|
1922
|
-
if (
|
|
1923
|
-
|
|
1922
|
+
if (N) return;
|
|
1923
|
+
In.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), M.value = t instanceof Error ? t.message : "Failed to load editor", ee.value = !1;
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1927
|
-
y.value?.destroy(), y.value = null,
|
|
1926
|
+
function te() {
|
|
1927
|
+
y.value?.destroy(), y.value = null, P();
|
|
1928
1928
|
}
|
|
1929
|
-
|
|
1930
|
-
let
|
|
1929
|
+
P();
|
|
1930
|
+
let ne = c(() => e.blockContent(), (e) => {
|
|
1931
1931
|
y.value && y.value.getHTML() !== e && y.value.commands.setContent(e, { emitUpdate: !1 });
|
|
1932
1932
|
});
|
|
1933
|
-
function
|
|
1933
|
+
function re(t) {
|
|
1934
1934
|
if (i.value || u.value) return;
|
|
1935
1935
|
let n = t.composedPath(), r = n.find((e) => e instanceof HTMLElement);
|
|
1936
1936
|
if (!r) return;
|
|
@@ -1938,26 +1938,26 @@ function Fr(e) {
|
|
|
1938
1938
|
let a = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
|
|
1939
1939
|
r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || a || e.onDone();
|
|
1940
1940
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1941
|
+
at(document, "mousedown", re), h(() => {
|
|
1942
|
+
N = !0, ne(), A(), y.value?.destroy();
|
|
1943
1943
|
});
|
|
1944
|
-
async function
|
|
1944
|
+
async function ie() {
|
|
1945
1945
|
let e = await a();
|
|
1946
|
-
|
|
1946
|
+
N || (e && y.value ? y.value.chain().focus().insertMergeTag({
|
|
1947
1947
|
label: e.label,
|
|
1948
1948
|
value: e.value
|
|
1949
1949
|
}).run() : y.value?.commands.focus());
|
|
1950
1950
|
}
|
|
1951
|
-
async function
|
|
1951
|
+
async function I() {
|
|
1952
1952
|
let e = await d();
|
|
1953
|
-
|
|
1953
|
+
N || (e && y.value ? kr(y.value, e, o) : y.value?.commands.focus());
|
|
1954
1954
|
}
|
|
1955
1955
|
return {
|
|
1956
1956
|
editor: y,
|
|
1957
1957
|
EditorContent: j,
|
|
1958
1958
|
isLoading: ee,
|
|
1959
1959
|
initError: M,
|
|
1960
|
-
retry:
|
|
1960
|
+
retry: te,
|
|
1961
1961
|
showLinkDialog: b,
|
|
1962
1962
|
linkUrl: x,
|
|
1963
1963
|
linkColor: S,
|
|
@@ -1973,15 +1973,15 @@ function Fr(e) {
|
|
|
1973
1973
|
removeLink: E,
|
|
1974
1974
|
closeLinkDialog: D,
|
|
1975
1975
|
handleLinkKeydown: O,
|
|
1976
|
-
handleAddMergeTag:
|
|
1977
|
-
handleAddLogicTag:
|
|
1976
|
+
handleAddMergeTag: ie,
|
|
1977
|
+
handleAddLogicTag: I
|
|
1978
1978
|
};
|
|
1979
1979
|
}
|
|
1980
1980
|
//#endregion
|
|
1981
1981
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1982
|
-
var
|
|
1983
|
-
function
|
|
1984
|
-
let t =
|
|
1982
|
+
var Pr = "(max-width: 767px)";
|
|
1983
|
+
function Fr(e) {
|
|
1984
|
+
let t = $e(Pr);
|
|
1985
1985
|
return {
|
|
1986
1986
|
isSmallScreen: t,
|
|
1987
1987
|
showNotice: M(() => (S(e) ?? !0) && t.value)
|
|
@@ -1989,20 +1989,20 @@ function Lr(e) {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
//#endregion
|
|
1991
1991
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1992
|
-
var
|
|
1992
|
+
var Ir = { class: "tpl:w-full" }, Lr = {
|
|
1993
1993
|
key: 0,
|
|
1994
1994
|
class: "tpl:flex 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)]"
|
|
1995
|
-
},
|
|
1995
|
+
}, Rr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, zr = {
|
|
1996
1996
|
key: 1,
|
|
1997
1997
|
class: "tpl:flex 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)]"
|
|
1998
|
-
},
|
|
1998
|
+
}, Br = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Vr = {
|
|
1999
1999
|
key: 2,
|
|
2000
2000
|
class: "tpl:relative"
|
|
2001
|
-
},
|
|
2001
|
+
}, Hr = ["innerHTML"], Ur = {
|
|
2002
2002
|
key: 0,
|
|
2003
2003
|
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]",
|
|
2004
2004
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
2005
|
-
},
|
|
2005
|
+
}, Wr = /* @__PURE__ */ y({
|
|
2006
2006
|
__name: "CustomBlock",
|
|
2007
2007
|
props: {
|
|
2008
2008
|
block: {},
|
|
@@ -2010,7 +2010,7 @@ var Rr = { class: "tpl:w-full" }, zr = {
|
|
|
2010
2010
|
},
|
|
2011
2011
|
emits: ["fetchData"],
|
|
2012
2012
|
setup(e, { emit: t }) {
|
|
2013
|
-
let n = e, r = t, { t: i } =
|
|
2013
|
+
let n = e, r = t, { t: i } = Gt(), o = F(zt, null), s = _(""), l = _(!1), u = M(() => o?.getDefinition(n.block.customType)), d = M(() => !!u.value), { isFetching: m, fetch: h, needsFetch: g, hasDataSource: v } = dn({
|
|
2014
2014
|
definition: u,
|
|
2015
2015
|
block: M(() => n.block),
|
|
2016
2016
|
onUpdate: (e, t) => {
|
|
@@ -2019,10 +2019,10 @@ var Rr = { class: "tpl:w-full" }, zr = {
|
|
|
2019
2019
|
dataSourceFetched: t
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
}), y =
|
|
2022
|
+
}), y = F(ut, []), S = F(wt, null), C = M(() => {
|
|
2023
2023
|
if (!S?.value) return n.block;
|
|
2024
2024
|
let e = {};
|
|
2025
|
-
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ?
|
|
2025
|
+
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Ce(r, y) : r;
|
|
2026
2026
|
return {
|
|
2027
2027
|
...n.block,
|
|
2028
2028
|
fieldValues: e
|
|
@@ -2039,34 +2039,34 @@ var Rr = { class: "tpl:w-full" }, zr = {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
|
-
let E =
|
|
2042
|
+
let E = qe(T, 150);
|
|
2043
2043
|
return a(() => {
|
|
2044
2044
|
T();
|
|
2045
2045
|
}), c(() => n.block.fieldValues, () => {
|
|
2046
2046
|
E();
|
|
2047
2047
|
}, { deep: !0 }), c(() => S?.value, () => {
|
|
2048
2048
|
E();
|
|
2049
|
-
}), (e, t) => (f(), x("div",
|
|
2049
|
+
}), (e, t) => (f(), x("div", Ir, [d.value ? l.value ? (f(), x("div", zr, [w(k(Yt), {
|
|
2050
2050
|
size: 24,
|
|
2051
2051
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
2052
|
-
}), b("span",
|
|
2052
|
+
}), b("span", Br, p(k(i).customBlocks.renderError), 1)])) : (f(), x("div", Vr, [b("div", { innerHTML: s.value }, null, 8, Hr), k(v) && k(g) ? (f(), x("div", Ur, [k(m) ? (f(), D(Xt, {
|
|
2053
2053
|
key: 1,
|
|
2054
2054
|
class: "tpl:w-48"
|
|
2055
2055
|
})) : (f(), x("button", {
|
|
2056
2056
|
key: 0,
|
|
2057
2057
|
type: "button",
|
|
2058
2058
|
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-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
2059
|
-
onClick: t[0] ||=
|
|
2060
|
-
}, [u.value?.icon ? (f(), D(
|
|
2059
|
+
onClick: t[0] ||= I((...e) => k(h) && k(h)(...e), ["stop"])
|
|
2060
|
+
}, [u.value?.icon ? (f(), D(hr, {
|
|
2061
2061
|
key: 0,
|
|
2062
2062
|
icon: u.value.icon,
|
|
2063
2063
|
size: 16
|
|
2064
|
-
}, null, 8, ["icon"])) :
|
|
2064
|
+
}, null, 8, ["icon"])) : P("", !0), O(" " + p(u.value?.dataSource?.label || k(i).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (f(), x("div", Lr, [w(k(lr), {
|
|
2065
2065
|
size: 24,
|
|
2066
2066
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
2067
|
-
}), b("span",
|
|
2067
|
+
}), b("span", Rr, p(k(i).customBlocks.definitionNotFound), 1)]))]));
|
|
2068
2068
|
}
|
|
2069
|
-
}),
|
|
2069
|
+
}), Gr = { class: "tpl:w-full" }, Kr = /* @__PURE__ */ y({
|
|
2070
2070
|
__name: "DividerBlock",
|
|
2071
2071
|
props: {
|
|
2072
2072
|
block: {},
|
|
@@ -2078,28 +2078,28 @@ var Rr = { class: "tpl:w-full" }, zr = {
|
|
|
2078
2078
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
2079
2079
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
2080
2080
|
}));
|
|
2081
|
-
return (e, t) => (f(), x("div",
|
|
2081
|
+
return (e, t) => (f(), x("div", Gr, [b("hr", {
|
|
2082
2082
|
class: "tpl:m-0 tpl:border-none",
|
|
2083
2083
|
style: i(n.value)
|
|
2084
2084
|
}, null, 4)]));
|
|
2085
2085
|
}
|
|
2086
|
-
}),
|
|
2086
|
+
}), qr = { class: "tpl:w-full" }, Jr = ["srcdoc", "title"], Yr = {
|
|
2087
2087
|
key: 1,
|
|
2088
2088
|
class: "tpl:flex 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)]"
|
|
2089
|
-
},
|
|
2089
|
+
}, Xr = {
|
|
2090
2090
|
key: 0,
|
|
2091
2091
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
2092
|
-
},
|
|
2092
|
+
}, Zr = {
|
|
2093
2093
|
key: 1,
|
|
2094
2094
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2095
|
-
},
|
|
2095
|
+
}, Qr = /* @__PURE__ */ y({
|
|
2096
2096
|
__name: "HtmlBlock",
|
|
2097
2097
|
props: {
|
|
2098
2098
|
block: {},
|
|
2099
2099
|
viewport: {}
|
|
2100
2100
|
},
|
|
2101
2101
|
setup(e) {
|
|
2102
|
-
let t = e, { t: n } =
|
|
2102
|
+
let t = e, { t: n } = Gt(), r = F(Dt, !1), a = M(() => t.block.content.trim().length > 0), o = M(() => r && a.value), s = F(ut, []), l = F(wt, null), u = M(() => l?.value ? Ce(t.block.content, s) : t.block.content), d = _(null), m = _(60), g = null;
|
|
2103
2103
|
function v() {
|
|
2104
2104
|
let e = d.value?.contentDocument;
|
|
2105
2105
|
e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -2113,7 +2113,7 @@ var Rr = { class: "tpl:w-full" }, zr = {
|
|
|
2113
2113
|
e || (g?.disconnect(), g = null);
|
|
2114
2114
|
}), h(() => {
|
|
2115
2115
|
g?.disconnect(), g = null;
|
|
2116
|
-
}), (e, t) => (f(), x("div",
|
|
2116
|
+
}), (e, t) => (f(), x("div", qr, [o.value ? (f(), x("iframe", {
|
|
2117
2117
|
key: 0,
|
|
2118
2118
|
ref_key: "iframeRef",
|
|
2119
2119
|
ref: d,
|
|
@@ -2123,18 +2123,18 @@ var Rr = { class: "tpl:w-full" }, zr = {
|
|
|
2123
2123
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
2124
2124
|
style: i({ height: `${m.value}px` }),
|
|
2125
2125
|
onLoad: y
|
|
2126
|
-
}, null, 44,
|
|
2126
|
+
}, null, 44, Jr)) : (f(), x("div", Yr, [w(k(nr), {
|
|
2127
2127
|
size: 24,
|
|
2128
2128
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
2129
|
-
}), a.value ? (f(), x("span",
|
|
2129
|
+
}), a.value ? (f(), x("span", Xr, p(k(n).html.preview), 1)) : (f(), x("span", Zr, p(k(n).html.empty), 1))]))]));
|
|
2130
2130
|
}
|
|
2131
|
-
}),
|
|
2132
|
-
function
|
|
2133
|
-
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || S(r), { isOverDropZone: a } =
|
|
2131
|
+
}), $r = "image/";
|
|
2132
|
+
function ei(e) {
|
|
2133
|
+
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || S(r), { isOverDropZone: a } = Qe(t, {
|
|
2134
2134
|
preventDefaultForUnhandled: !0,
|
|
2135
2135
|
onDrop: (e) => {
|
|
2136
2136
|
if (!i()) return;
|
|
2137
|
-
let t = (e ?? []).filter((e) => e.type.startsWith(
|
|
2137
|
+
let t = (e ?? []).filter((e) => e.type.startsWith($r));
|
|
2138
2138
|
t.length > 0 && n([t[0]]);
|
|
2139
2139
|
}
|
|
2140
2140
|
});
|
|
@@ -2142,17 +2142,17 @@ function ni(e) {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
//#endregion
|
|
2144
2144
|
//#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2145
|
-
var
|
|
2145
|
+
var ti = {
|
|
2146
2146
|
key: 0,
|
|
2147
2147
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
2148
2148
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
|
|
2149
|
-
},
|
|
2149
|
+
}, ni = ["href"], ri = ["src", "alt"], ii = ["src", "alt"], ai = {
|
|
2150
2150
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2151
2151
|
style: { opacity: "0.7" }
|
|
2152
|
-
},
|
|
2152
|
+
}, oi = ["href"], si = ["src", "alt"], ci = ["src", "alt"], li = {
|
|
2153
2153
|
key: 4,
|
|
2154
2154
|
class: "tpl:flex 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)]"
|
|
2155
|
-
},
|
|
2155
|
+
}, ui = ["aria-label"], di = { key: 1 }, fi = /* @__PURE__ */ y({
|
|
2156
2156
|
__name: "ImageBlock",
|
|
2157
2157
|
props: {
|
|
2158
2158
|
block: {},
|
|
@@ -2160,7 +2160,7 @@ var ri = {
|
|
|
2160
2160
|
},
|
|
2161
2161
|
emits: ["update"],
|
|
2162
2162
|
setup(e, { emit: t }) {
|
|
2163
|
-
let n = e, r = t, { t: a } =
|
|
2163
|
+
let n = e, r = t, { t: a } = Gt(), { syntax: o } = Qt(), s = F(gt, null), c = M(() => !!s), l = $t();
|
|
2164
2164
|
async function u() {
|
|
2165
2165
|
let e = await s?.({ accept: ["images"] });
|
|
2166
2166
|
if (l.alive && e) {
|
|
@@ -2187,7 +2187,7 @@ var ri = {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
|
-
let { isOver: v } =
|
|
2190
|
+
let { isOver: v } = ei({
|
|
2191
2191
|
target: d,
|
|
2192
2192
|
enabled: h,
|
|
2193
2193
|
onFiles: g
|
|
@@ -2200,86 +2200,86 @@ var ri = {
|
|
|
2200
2200
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
2201
2201
|
marginRight: e === "center" ? "auto" : void 0
|
|
2202
2202
|
};
|
|
2203
|
-
}), C = M(() =>
|
|
2203
|
+
}), C = M(() => De(n.block.src, o)), T = Cn(() => C.value ? void 0 : n.block.src), E = Cn(() => C.value ? n.block.placeholderUrl : void 0);
|
|
2204
2204
|
return (t, n) => (f(), x("div", {
|
|
2205
2205
|
ref_key: "dropZoneRef",
|
|
2206
2206
|
ref: d,
|
|
2207
2207
|
"data-testid": "image-drop-zone",
|
|
2208
2208
|
class: "tpl:relative tpl:w-full",
|
|
2209
2209
|
style: i(y.value)
|
|
2210
|
-
}, [h.value && (k(v) || m.value) ? (f(), x("div",
|
|
2210
|
+
}, [h.value && (k(v) || m.value) ? (f(), x("div", ti, [m.value ? (f(), x(j, { key: 0 }, [w(k(Kt), {
|
|
2211
2211
|
class: "tpl-spinner",
|
|
2212
2212
|
size: 20,
|
|
2213
2213
|
"stroke-width": 2
|
|
2214
|
-
}), O(" " + p(k(a).image.uploading), 1)], 64)) : (f(), x(j, { key: 1 }, [w(k(
|
|
2214
|
+
}), O(" " + p(k(a).image.uploading), 1)], 64)) : (f(), x(j, { key: 1 }, [w(k(se), {
|
|
2215
2215
|
size: 20,
|
|
2216
2216
|
"stroke-width": 1.5
|
|
2217
|
-
}), O(" " + p(k(a).image.dropToUpload), 1)], 64))])) :
|
|
2217
|
+
}), O(" " + p(k(a).image.dropToUpload), 1)], 64))])) : P("", !0), e.block.src && C.value && e.block.placeholderUrl ? (f(), x(j, { key: 1 }, [e.block.linkUrl ? (f(), x("a", {
|
|
2218
2218
|
key: 0,
|
|
2219
2219
|
href: e.block.linkUrl,
|
|
2220
2220
|
target: "_blank",
|
|
2221
2221
|
rel: "noopener noreferrer",
|
|
2222
|
-
onClick: n[0] ||=
|
|
2222
|
+
onClick: n[0] ||= I(() => {}, ["prevent"])
|
|
2223
2223
|
}, [b("img", {
|
|
2224
2224
|
class: "tpl:border-0",
|
|
2225
2225
|
loading: "lazy",
|
|
2226
2226
|
src: k(E),
|
|
2227
2227
|
alt: e.block.alt || k(a).image.altTextPlaceholder,
|
|
2228
2228
|
style: i(S.value)
|
|
2229
|
-
}, null, 12,
|
|
2229
|
+
}, null, 12, ri)], 8, ni)) : (f(), x("img", {
|
|
2230
2230
|
key: 1,
|
|
2231
2231
|
class: "tpl:border-0",
|
|
2232
2232
|
src: k(E),
|
|
2233
2233
|
alt: e.block.alt,
|
|
2234
2234
|
style: i(S.value)
|
|
2235
|
-
}, null, 12,
|
|
2235
|
+
}, null, 12, ii))], 64)) : e.block.src && C.value ? (f(), x("div", {
|
|
2236
2236
|
key: 2,
|
|
2237
2237
|
class: "tpl:!flex 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)]",
|
|
2238
2238
|
style: i([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, S.value])
|
|
2239
|
-
}, [w(k(
|
|
2239
|
+
}, [w(k(sr), {
|
|
2240
2240
|
size: 32,
|
|
2241
2241
|
"stroke-width": 1.5,
|
|
2242
2242
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2243
2243
|
style: { opacity: "0.5" }
|
|
2244
|
-
}), b("span",
|
|
2244
|
+
}), b("span", ai, [w(Zn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (f(), x(j, { key: 3 }, [e.block.linkUrl ? (f(), x("a", {
|
|
2245
2245
|
key: 0,
|
|
2246
2246
|
href: e.block.linkUrl,
|
|
2247
2247
|
target: "_blank",
|
|
2248
2248
|
rel: "noopener noreferrer",
|
|
2249
|
-
onClick: n[1] ||=
|
|
2249
|
+
onClick: n[1] ||= I(() => {}, ["prevent"])
|
|
2250
2250
|
}, [b("img", {
|
|
2251
2251
|
class: "tpl:border-0",
|
|
2252
2252
|
loading: "lazy",
|
|
2253
2253
|
src: k(T),
|
|
2254
2254
|
alt: e.block.alt || k(a).image.altTextPlaceholder,
|
|
2255
2255
|
style: i(S.value)
|
|
2256
|
-
}, null, 12,
|
|
2256
|
+
}, null, 12, si)], 8, oi)) : (f(), x("img", {
|
|
2257
2257
|
key: 1,
|
|
2258
2258
|
class: "tpl:border-0",
|
|
2259
2259
|
src: k(T),
|
|
2260
2260
|
alt: e.block.alt,
|
|
2261
2261
|
style: i(S.value)
|
|
2262
|
-
}, null, 12,
|
|
2262
|
+
}, null, 12, ci))], 64)) : (f(), x("div", li, [c.value ? (f(), x("button", {
|
|
2263
2263
|
key: 0,
|
|
2264
2264
|
"aria-label": k(a).image.browseMedia,
|
|
2265
2265
|
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:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
2266
|
-
onClick:
|
|
2267
|
-
}, [w(k(
|
|
2266
|
+
onClick: I(u, ["stop"])
|
|
2267
|
+
}, [w(k(sr), {
|
|
2268
2268
|
size: 14,
|
|
2269
2269
|
"stroke-width": 1.5
|
|
2270
|
-
}), O(" " + p(k(a).image.browseMedia), 1)], 8,
|
|
2270
|
+
}), O(" " + p(k(a).image.browseMedia), 1)], 8, ui)) : (f(), x("span", di, p(k(a).image.clickToAdd), 1))]))], 4));
|
|
2271
2271
|
}
|
|
2272
|
-
}),
|
|
2272
|
+
}), pi = { class: "tpl:w-full" }, mi = ["href"], hi = {
|
|
2273
2273
|
key: 1,
|
|
2274
2274
|
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)]"
|
|
2275
|
-
},
|
|
2275
|
+
}, gi = /* @__PURE__ */ y({
|
|
2276
2276
|
__name: "MenuBlock",
|
|
2277
2277
|
props: {
|
|
2278
2278
|
block: {},
|
|
2279
2279
|
viewport: {}
|
|
2280
2280
|
},
|
|
2281
2281
|
setup(e) {
|
|
2282
|
-
let n = e, { t: r } =
|
|
2282
|
+
let n = e, { t: r } = Gt(), a = M(() => ({
|
|
2283
2283
|
display: "flex",
|
|
2284
2284
|
flexWrap: "wrap",
|
|
2285
2285
|
gap: `0 ${n.block.spacing}px`,
|
|
@@ -2291,7 +2291,7 @@ var ri = {
|
|
|
2291
2291
|
function s(e) {
|
|
2292
2292
|
return e || n.block.linkColor || n.block.color;
|
|
2293
2293
|
}
|
|
2294
|
-
return (n, c) => (f(), x("div",
|
|
2294
|
+
return (n, c) => (f(), x("div", pi, [o.value ? (f(), x("div", {
|
|
2295
2295
|
key: 0,
|
|
2296
2296
|
style: i(a.value)
|
|
2297
2297
|
}, [(f(!0), x(j, null, t(e.block.items, (t, n) => (f(), x(j, { key: t.id }, [b("a", {
|
|
@@ -2302,16 +2302,16 @@ var ri = {
|
|
|
2302
2302
|
fontWeight: t.bold ? "bold" : "normal",
|
|
2303
2303
|
textDecoration: t.underline ? "underline" : "none"
|
|
2304
2304
|
}),
|
|
2305
|
-
onClick: c[0] ||=
|
|
2306
|
-
}, [w(
|
|
2305
|
+
onClick: c[0] ||= I(() => {}, ["prevent"])
|
|
2306
|
+
}, [w(Zn, { text: t.text || "..." }, null, 8, ["text"])], 12, mi), n < e.block.items.length - 1 ? (f(), x("span", {
|
|
2307
2307
|
key: 0,
|
|
2308
2308
|
style: i({
|
|
2309
2309
|
color: e.block.separatorColor,
|
|
2310
2310
|
padding: `0 ${e.block.spacing}px`
|
|
2311
2311
|
})
|
|
2312
|
-
}, p(e.block.separator), 5)) :
|
|
2312
|
+
}, p(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (f(), x("div", hi, [w(k(cr), { size: 16 }), b("span", null, p(k(r).menu.addLinks), 1)]))]));
|
|
2313
2313
|
}
|
|
2314
|
-
}),
|
|
2314
|
+
}), _i = /* @__PURE__ */ new Set([
|
|
2315
2315
|
"http",
|
|
2316
2316
|
"https",
|
|
2317
2317
|
"mailto",
|
|
@@ -2321,7 +2321,7 @@ var ri = {
|
|
|
2321
2321
|
"sms",
|
|
2322
2322
|
"xmpp",
|
|
2323
2323
|
"cid"
|
|
2324
|
-
]),
|
|
2324
|
+
]), vi = /* @__PURE__ */ new Set([
|
|
2325
2325
|
"SCRIPT",
|
|
2326
2326
|
"STYLE",
|
|
2327
2327
|
"IFRAME",
|
|
@@ -2331,7 +2331,7 @@ var ri = {
|
|
|
2331
2331
|
"META",
|
|
2332
2332
|
"BASE",
|
|
2333
2333
|
"FORM"
|
|
2334
|
-
]),
|
|
2334
|
+
]), yi = /* @__PURE__ */ new Set([
|
|
2335
2335
|
"href",
|
|
2336
2336
|
"xlink:href",
|
|
2337
2337
|
"formaction",
|
|
@@ -2340,16 +2340,16 @@ var ri = {
|
|
|
2340
2340
|
"background",
|
|
2341
2341
|
"poster"
|
|
2342
2342
|
]);
|
|
2343
|
-
function
|
|
2343
|
+
function bi(e, t) {
|
|
2344
2344
|
let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
2345
2345
|
if (!n || n.startsWith("#")) return !0;
|
|
2346
2346
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
2347
2347
|
if (!r) return !0;
|
|
2348
2348
|
let i = r[1].toLowerCase();
|
|
2349
|
-
return
|
|
2349
|
+
return _i.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2352
|
-
if (
|
|
2351
|
+
function xi(e) {
|
|
2352
|
+
if (vi.has(e.tagName)) {
|
|
2353
2353
|
e.remove();
|
|
2354
2354
|
return;
|
|
2355
2355
|
}
|
|
@@ -2361,29 +2361,29 @@ function Ci(e) {
|
|
|
2361
2361
|
e.removeAttribute(n);
|
|
2362
2362
|
continue;
|
|
2363
2363
|
}
|
|
2364
|
-
if (
|
|
2365
|
-
|
|
2364
|
+
if (yi.has(t)) {
|
|
2365
|
+
bi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
|
|
2366
2366
|
continue;
|
|
2367
2367
|
}
|
|
2368
2368
|
if (t === "src") {
|
|
2369
|
-
|
|
2369
|
+
bi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
|
|
2370
2370
|
continue;
|
|
2371
2371
|
}
|
|
2372
2372
|
t === "srcdoc" && e.removeAttribute(n);
|
|
2373
2373
|
}
|
|
2374
2374
|
let n = Array.from(e.children);
|
|
2375
|
-
for (let e of n)
|
|
2375
|
+
for (let e of n) xi(e);
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Si(e) {
|
|
2378
2378
|
if (typeof DOMParser > "u") return e;
|
|
2379
2379
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
2380
|
-
for (let e of n)
|
|
2380
|
+
for (let e of n) xi(e);
|
|
2381
2381
|
return t.innerHTML;
|
|
2382
2382
|
}
|
|
2383
2383
|
//#endregion
|
|
2384
2384
|
//#region src/composables/useEditableTextBlock.ts
|
|
2385
|
-
function
|
|
2386
|
-
let t =
|
|
2385
|
+
function Ci(e) {
|
|
2386
|
+
let t = F(ut, []), n = F(wt, null), { syntax: r } = Qt(), i = M(() => n?.value ? le(e(), t) : he(e(), t)), a = M(() => Si(me(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = tt(s), { toLocal: u } = it(), d = M(() => u({
|
|
2387
2387
|
top: c.value - 8,
|
|
2388
2388
|
left: l.value
|
|
2389
2389
|
}));
|
|
@@ -2404,14 +2404,14 @@ function Ti(e) {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
//#endregion
|
|
2406
2406
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2407
|
-
var
|
|
2407
|
+
var wi = ["innerHTML"], Ti = /* @__PURE__ */ y({
|
|
2408
2408
|
__name: "ParagraphBlock",
|
|
2409
2409
|
props: {
|
|
2410
2410
|
block: {},
|
|
2411
2411
|
viewport: {}
|
|
2412
2412
|
},
|
|
2413
2413
|
setup(e) {
|
|
2414
|
-
let t = e, n = C(() => import("./ParagraphEditor-
|
|
2414
|
+
let t = e, n = C(() => import("./ParagraphEditor-B-CYrQMY.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Ci(() => t.block.content);
|
|
2415
2415
|
return (t, l) => (f(), x("div", {
|
|
2416
2416
|
ref_key: "blockRef",
|
|
2417
2417
|
ref: i,
|
|
@@ -2430,54 +2430,54 @@ var Ei = ["innerHTML"], Di = /* @__PURE__ */ y({
|
|
|
2430
2430
|
key: 1,
|
|
2431
2431
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
|
|
2432
2432
|
innerHTML: k(o)
|
|
2433
|
-
}, null, 8,
|
|
2433
|
+
}, null, 8, wi))], 544));
|
|
2434
2434
|
}
|
|
2435
2435
|
});
|
|
2436
2436
|
//#endregion
|
|
2437
2437
|
//#region src/utils/blockComponentResolver.ts
|
|
2438
|
-
function
|
|
2438
|
+
function Ei(e) {
|
|
2439
2439
|
let t = { fontFamily: e.fontFamily };
|
|
2440
2440
|
return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function Di(e, t, n) {
|
|
2443
2443
|
if (t) {
|
|
2444
2444
|
let n = t.getComponent(e);
|
|
2445
2445
|
if (n) return n;
|
|
2446
2446
|
}
|
|
2447
2447
|
return n[e.type] ?? null;
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function Oi(e) {
|
|
2450
2450
|
let { padding: t, backgroundColor: n } = e.styles, r = {
|
|
2451
2451
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
2452
2452
|
backgroundColor: n || "transparent"
|
|
2453
2453
|
};
|
|
2454
2454
|
return e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function ki(e) {
|
|
2457
2457
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
2458
2458
|
let t = e.wrapper, n = {};
|
|
2459
2459
|
return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
|
|
2460
2460
|
}
|
|
2461
2461
|
//#endregion
|
|
2462
2462
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
2463
|
-
var
|
|
2463
|
+
var Ai = [
|
|
2464
2464
|
"data-block-id",
|
|
2465
2465
|
"data-block-type",
|
|
2466
2466
|
"data-tpl-picked"
|
|
2467
|
-
],
|
|
2467
|
+
], ji = ["aria-label"], Mi = [
|
|
2468
2468
|
"aria-label",
|
|
2469
2469
|
"aria-pressed",
|
|
2470
2470
|
"title"
|
|
2471
|
-
],
|
|
2471
|
+
], Ni = ["aria-label", "title"], Pi = ["aria-label", "title"], Fi = ["aria-label", "title"], Ii = {
|
|
2472
2472
|
key: 1,
|
|
2473
2473
|
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"
|
|
2474
|
-
},
|
|
2474
|
+
}, Li = { 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)]" }, Ri = {
|
|
2475
2475
|
key: 2,
|
|
2476
2476
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2477
|
-
},
|
|
2477
|
+
}, zi = ["aria-label", "title"], Bi = {
|
|
2478
2478
|
key: 3,
|
|
2479
2479
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
2480
|
-
},
|
|
2480
|
+
}, Vi = ["aria-label"], Hi = /*#__PURE__*/ Zt(/* @__PURE__ */ y({
|
|
2481
2481
|
__name: "BlockWrapper",
|
|
2482
2482
|
props: {
|
|
2483
2483
|
block: {},
|
|
@@ -2489,9 +2489,9 @@ var Mi = [
|
|
|
2489
2489
|
},
|
|
2490
2490
|
emits: ["select"],
|
|
2491
2491
|
setup(e, { emit: t }) {
|
|
2492
|
-
let n = C(() => import("./BlockIssueBadge-
|
|
2492
|
+
let n = C(() => import("./BlockIssueBadge-Buk3_6QF.js")), r = e, a = t, { t: s, format: c } = Gt(), l = F(bt, null), u = _(null), d = M(() => l?.liftedBlockId.value === r.block.id), m = M(() => d.value ? c(s.blockActions.dragLifted, { block: r.block.type }) : s.blockActions.drag);
|
|
2493
2493
|
async function h() {
|
|
2494
|
-
await
|
|
2494
|
+
await ne(), u.value?.focus();
|
|
2495
2495
|
}
|
|
2496
2496
|
function g(e) {
|
|
2497
2497
|
if (l) {
|
|
@@ -2515,29 +2515,29 @@ var Mi = [
|
|
|
2515
2515
|
let v = M(() => !r.viewport || !r.block.visibility ? !1 : r.block.visibility[r.viewport] === !1), y = M(() => r.previewMode === !0 && v.value), S = M(() => r.viewport ? {
|
|
2516
2516
|
desktop: s.viewport.desktop,
|
|
2517
2517
|
mobile: s.viewport.mobile
|
|
2518
|
-
}[r.viewport] ?? r.viewport : ""), E = M(() => !!r.block.displayCondition), D =
|
|
2519
|
-
let e =
|
|
2518
|
+
}[r.viewport] ?? r.viewport : ""), E = M(() => !!r.block.displayCondition), D = F(Et, null), A = F(kt, null), j = F(Ot, {}), ee = M(() => j.savedBlocks?.isPicking.value === !0), N = M(() => !r.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), te = M(() => r.isSelected && !ee.value), re = M(() => j.comments?.getBlockCount(r.block.id) ?? 0), ie = M(() => {
|
|
2519
|
+
let e = Oi(r.block), t = {
|
|
2520
2520
|
padding: e.padding,
|
|
2521
2521
|
backgroundColor: e.backgroundColor
|
|
2522
2522
|
};
|
|
2523
2523
|
return e.borderRadius && (t.borderRadius = e.borderRadius), t;
|
|
2524
|
-
}),
|
|
2525
|
-
function
|
|
2524
|
+
}), ae = M(() => ki(r.block));
|
|
2525
|
+
function oe(e) {
|
|
2526
2526
|
r.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function se() {
|
|
2529
2529
|
D?.deleteBlock(r.block.id);
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
2531
|
+
function ce() {
|
|
2532
2532
|
D?.duplicateBlock(r.block);
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function le() {
|
|
2535
2535
|
j.savedBlocks?.startPicking(r.block.id);
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function ue() {
|
|
2538
2538
|
A?.toggleBlock(r.block.id);
|
|
2539
2539
|
}
|
|
2540
|
-
return (t, r) => y.value ?
|
|
2540
|
+
return (t, r) => y.value ? P("", !0) : (f(), x("div", {
|
|
2541
2541
|
key: 0,
|
|
2542
2542
|
class: o(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow tpl:duration-150", {
|
|
2543
2543
|
"tpl-block--selected": e.isSelected,
|
|
@@ -2548,10 +2548,10 @@ var Mi = [
|
|
|
2548
2548
|
"data-block-id": e.block.id,
|
|
2549
2549
|
"data-block-type": e.block.type,
|
|
2550
2550
|
"data-tpl-picked": e.picked || void 0,
|
|
2551
|
-
onClick:
|
|
2551
|
+
onClick: oe
|
|
2552
2552
|
}, [
|
|
2553
2553
|
w(k(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
|
|
2554
|
-
|
|
2554
|
+
te.value ? (f(), x("div", {
|
|
2555
2555
|
key: 0,
|
|
2556
2556
|
role: "toolbar",
|
|
2557
2557
|
"aria-label": k(s).blockActions.drag,
|
|
@@ -2566,98 +2566,98 @@ var Mi = [
|
|
|
2566
2566
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2567
2567
|
title: k(s).blockActions.drag,
|
|
2568
2568
|
onKeydown: g
|
|
2569
|
-
}, [w(k(
|
|
2569
|
+
}, [w(k(or), {
|
|
2570
2570
|
size: 14,
|
|
2571
2571
|
"stroke-width": 1.5
|
|
2572
|
-
})], 40,
|
|
2572
|
+
})], 40, Mi),
|
|
2573
2573
|
b("button", {
|
|
2574
2574
|
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 tpl:duration-150",
|
|
2575
2575
|
"aria-label": k(s).blockActions.duplicate,
|
|
2576
2576
|
title: k(s).blockActions.duplicate,
|
|
2577
|
-
onClick:
|
|
2578
|
-
}, [w(k(
|
|
2577
|
+
onClick: I(ce, ["stop"])
|
|
2578
|
+
}, [w(k(rr), {
|
|
2579
2579
|
size: 14,
|
|
2580
2580
|
"stroke-width": 1.5
|
|
2581
|
-
})], 8,
|
|
2582
|
-
|
|
2581
|
+
})], 8, Ni),
|
|
2582
|
+
N.value ? (f(), x("button", {
|
|
2583
2583
|
key: 0,
|
|
2584
2584
|
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 tpl:duration-150",
|
|
2585
2585
|
"aria-label": k(s).blockActions.saveAsBlock,
|
|
2586
2586
|
title: k(s).blockActions.saveAsBlock,
|
|
2587
|
-
onClick:
|
|
2588
|
-
}, [w(k(
|
|
2587
|
+
onClick: I(le, ["stop"])
|
|
2588
|
+
}, [w(k(er), {
|
|
2589
2589
|
size: 14,
|
|
2590
2590
|
"stroke-width": 1.5
|
|
2591
|
-
})], 8,
|
|
2591
|
+
})], 8, Pi)) : P("", !0),
|
|
2592
2592
|
b("button", {
|
|
2593
2593
|
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 tpl:duration-150",
|
|
2594
2594
|
"aria-label": k(s).blockActions.delete,
|
|
2595
2595
|
title: k(s).blockActions.delete,
|
|
2596
|
-
onClick:
|
|
2597
|
-
}, [w(k(
|
|
2596
|
+
onClick: I(se, ["stop"])
|
|
2597
|
+
}, [w(k(Jt), {
|
|
2598
2598
|
size: 14,
|
|
2599
2599
|
"stroke-width": 1.5
|
|
2600
|
-
})], 8,
|
|
2601
|
-
], 8,
|
|
2602
|
-
v.value ? (f(), x("div",
|
|
2600
|
+
})], 8, Fi)
|
|
2601
|
+
], 8, ji)) : P("", !0),
|
|
2602
|
+
v.value ? (f(), x("div", Ii, [b("span", Li, [w(k(ir), {
|
|
2603
2603
|
size: 12,
|
|
2604
2604
|
"stroke-width": 1.5
|
|
2605
|
-
}), O(" " + p(k(c)(k(s).blockActions.hiddenOnViewport, { viewport: S.value })), 1)])])) :
|
|
2606
|
-
E.value && !v.value ? (f(), x("div",
|
|
2605
|
+
}), O(" " + p(k(c)(k(s).blockActions.hiddenOnViewport, { viewport: S.value })), 1)])])) : P("", !0),
|
|
2606
|
+
E.value && !v.value ? (f(), x("div", Ri, [b("button", {
|
|
2607
2607
|
"data-testid": "condition-toggle",
|
|
2608
2608
|
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:duration-150 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
2609
2609
|
"aria-label": k(s).blockActions.conditionToggle,
|
|
2610
2610
|
title: e.block.displayCondition?.label,
|
|
2611
|
-
onClick:
|
|
2612
|
-
}, [w(k(
|
|
2611
|
+
onClick: I(ue, ["stop"])
|
|
2612
|
+
}, [w(k(ar), {
|
|
2613
2613
|
size: 12,
|
|
2614
2614
|
"stroke-width": 2
|
|
2615
|
-
})], 8,
|
|
2616
|
-
|
|
2615
|
+
})], 8, zi)])) : P("", !0),
|
|
2616
|
+
re.value > 0 && !v.value ? (f(), x("div", Bi, [b("button", {
|
|
2617
2617
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
2618
|
-
"aria-label": k(c)(k(s).blockActions.comments, { count: String(
|
|
2619
|
-
onClick: r[0] ||=
|
|
2620
|
-
}, [w(k(
|
|
2618
|
+
"aria-label": k(c)(k(s).blockActions.comments, { count: String(re.value) }),
|
|
2619
|
+
onClick: r[0] ||= I((t) => k(j).comments?.openForBlock(e.block.id), ["stop"])
|
|
2620
|
+
}, [w(k(qt), {
|
|
2621
2621
|
size: 12,
|
|
2622
2622
|
"stroke-width": 2.5
|
|
2623
|
-
}), O(" " + p(
|
|
2624
|
-
|
|
2623
|
+
}), O(" " + p(re.value), 1)], 8, Vi)])) : P("", !0),
|
|
2624
|
+
ae.value ? (f(), x("div", {
|
|
2625
2625
|
key: 4,
|
|
2626
2626
|
class: "tpl-section-wrapper",
|
|
2627
|
-
style: i(
|
|
2627
|
+
style: i(ae.value)
|
|
2628
2628
|
}, [b("div", {
|
|
2629
2629
|
class: "tpl-block-content",
|
|
2630
|
-
style: i(
|
|
2630
|
+
style: i(ie.value)
|
|
2631
2631
|
}, [T(t.$slots, "default", {}, void 0, !0)], 4)], 4)) : (f(), x("div", {
|
|
2632
2632
|
key: 5,
|
|
2633
2633
|
class: "tpl-block-content",
|
|
2634
|
-
style: i(
|
|
2634
|
+
style: i(ie.value)
|
|
2635
2635
|
}, [T(t.$slots, "default", {}, void 0, !0)], 4))
|
|
2636
|
-
], 10,
|
|
2636
|
+
], 10, Ai));
|
|
2637
2637
|
}
|
|
2638
2638
|
}), [["__scopeId", "data-v-8e4583ee"]]);
|
|
2639
2639
|
//#endregion
|
|
2640
2640
|
//#region src/utils/unwrapParagraph.ts
|
|
2641
|
-
function
|
|
2641
|
+
function Ui(e) {
|
|
2642
2642
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
2643
2643
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
2644
2644
|
}
|
|
2645
2645
|
//#endregion
|
|
2646
2646
|
//#region src/components/blocks/TitleBlock.vue
|
|
2647
|
-
var
|
|
2647
|
+
var Wi = /* @__PURE__ */ y({
|
|
2648
2648
|
__name: "TitleBlock",
|
|
2649
2649
|
props: {
|
|
2650
2650
|
block: {},
|
|
2651
2651
|
viewport: {}
|
|
2652
2652
|
},
|
|
2653
2653
|
setup(e) {
|
|
2654
|
-
let t = e, n = C(() => import("./TitleEditor-
|
|
2654
|
+
let t = e, n = C(() => import("./TitleEditor-DmoaKooA.js")), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ci(() => t.block.content), u = M(() => {
|
|
2655
2655
|
let e = {
|
|
2656
|
-
fontSize: `${
|
|
2656
|
+
fontSize: `${ze[t.block.level]}px`,
|
|
2657
2657
|
textAlign: t.block.textAlign
|
|
2658
2658
|
};
|
|
2659
2659
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
2660
|
-
}), p = M(() => `h${t.block.level}`), m = M(() =>
|
|
2660
|
+
}), p = M(() => `h${t.block.level}`), m = M(() => Ui(s.value));
|
|
2661
2661
|
return (t, s) => (f(), x("div", {
|
|
2662
2662
|
ref_key: "blockRef",
|
|
2663
2663
|
ref: a,
|
|
@@ -2683,88 +2683,88 @@ var Ki = /* @__PURE__ */ y({
|
|
|
2683
2683
|
});
|
|
2684
2684
|
//#endregion
|
|
2685
2685
|
//#region src/utils/sectionColumnDrop.ts
|
|
2686
|
-
function
|
|
2686
|
+
function Gi(e) {
|
|
2687
2687
|
return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
|
|
2688
2688
|
}
|
|
2689
2689
|
//#endregion
|
|
2690
2690
|
//#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
|
|
2691
|
-
var
|
|
2691
|
+
var Ki = Object.defineProperty, qi = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Xi = (e, t, n) => t in e ? Ki(e, t, {
|
|
2692
2692
|
enumerable: !0,
|
|
2693
2693
|
configurable: !0,
|
|
2694
2694
|
writable: !0,
|
|
2695
2695
|
value: n
|
|
2696
|
-
}) : e[t] = n,
|
|
2697
|
-
for (var n in t ||= {})
|
|
2698
|
-
if (
|
|
2696
|
+
}) : e[t] = n, Zi = (e, t) => {
|
|
2697
|
+
for (var n in t ||= {}) Ji.call(t, n) && Xi(e, n, t[n]);
|
|
2698
|
+
if (qi) for (var n of qi(t)) Yi.call(t, n) && Xi(e, n, t[n]);
|
|
2699
2699
|
return e;
|
|
2700
|
-
},
|
|
2700
|
+
}, Qi = (e, t) => {
|
|
2701
2701
|
var n = {};
|
|
2702
|
-
for (var r in e)
|
|
2703
|
-
if (e != null &&
|
|
2702
|
+
for (var r in e) Ji.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2703
|
+
if (e != null && qi) for (var r of qi(e)) t.indexOf(r) < 0 && Yi.call(e, r) && (n[r] = e[r]);
|
|
2704
2704
|
return n;
|
|
2705
|
-
},
|
|
2706
|
-
function
|
|
2707
|
-
console.warn(
|
|
2705
|
+
}, $i = "[vue-draggable-plus]: ";
|
|
2706
|
+
function ea(e) {
|
|
2707
|
+
console.warn($i + e);
|
|
2708
2708
|
}
|
|
2709
|
-
function
|
|
2710
|
-
console.error(
|
|
2709
|
+
function ta(e) {
|
|
2710
|
+
console.error($i + e);
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function na(e, t, n) {
|
|
2713
2713
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function ra(e) {
|
|
2716
2716
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2719
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
2718
|
+
function ia(e) {
|
|
2719
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[ra(n)] = e[n]), t), {});
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function aa(e, t) {
|
|
2722
2722
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function oa(e, t, n) {
|
|
2725
2725
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function sa(e) {
|
|
2728
2728
|
return e === void 0;
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function ca(e) {
|
|
2731
2731
|
return typeof e == "string";
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function la(e, t, n) {
|
|
2734
2734
|
let r = e.children[n];
|
|
2735
2735
|
e.insertBefore(t, r);
|
|
2736
2736
|
}
|
|
2737
|
-
function
|
|
2737
|
+
function ua(e) {
|
|
2738
2738
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function da(e, t = document) {
|
|
2741
2741
|
let n = null;
|
|
2742
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
2742
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || ea(`Element not found: ${e}`), n;
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2744
|
+
function fa(e, t, n = null) {
|
|
2745
2745
|
return function(...r) {
|
|
2746
2746
|
return e.apply(n, r), t.apply(n, r);
|
|
2747
2747
|
};
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2750
|
-
let n =
|
|
2749
|
+
function pa(e, t) {
|
|
2750
|
+
let n = Zi({}, e);
|
|
2751
2751
|
return Object.keys(t).forEach((r) => {
|
|
2752
|
-
n[r] ? n[r] =
|
|
2752
|
+
n[r] ? n[r] = fa(e[r], t[r]) : n[r] = t[r];
|
|
2753
2753
|
}), n;
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function ma(e) {
|
|
2756
2756
|
return e instanceof HTMLElement;
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function ha(e, t) {
|
|
2759
2759
|
Object.keys(e).forEach((n) => {
|
|
2760
2760
|
t(n, e[n]);
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
|
-
function
|
|
2763
|
+
function ga(e) {
|
|
2764
2764
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
2765
2765
|
}
|
|
2766
|
-
var
|
|
2767
|
-
function
|
|
2766
|
+
var _a = Object.assign;
|
|
2767
|
+
function va(e, t) {
|
|
2768
2768
|
var n = Object.keys(e);
|
|
2769
2769
|
if (Object.getOwnPropertySymbols) {
|
|
2770
2770
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2774,26 +2774,26 @@ function ba(e, t) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
return n;
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function ya(e) {
|
|
2778
2778
|
for (var t = 1; t < arguments.length; t++) {
|
|
2779
2779
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2780
|
-
t % 2 ?
|
|
2781
|
-
|
|
2782
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2780
|
+
t % 2 ? va(Object(n), !0).forEach(function(t) {
|
|
2781
|
+
xa(e, t, n[t]);
|
|
2782
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : va(Object(n)).forEach(function(t) {
|
|
2783
2783
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2784
2784
|
});
|
|
2785
2785
|
}
|
|
2786
2786
|
return e;
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function ba(e) {
|
|
2789
2789
|
"@babel/helpers - typeof";
|
|
2790
|
-
return
|
|
2790
|
+
return ba = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2791
2791
|
return typeof e;
|
|
2792
2792
|
} : function(e) {
|
|
2793
2793
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2794
|
-
},
|
|
2794
|
+
}, ba(e);
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function xa(e, t, n) {
|
|
2797
2797
|
return t in e ? Object.defineProperty(e, t, {
|
|
2798
2798
|
value: n,
|
|
2799
2799
|
enumerable: !0,
|
|
@@ -2801,45 +2801,45 @@ function Ca(e, t, n) {
|
|
|
2801
2801
|
writable: !0
|
|
2802
2802
|
}) : e[t] = n, e;
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2805
|
-
return
|
|
2804
|
+
function Sa() {
|
|
2805
|
+
return Sa = Object.assign || function(e) {
|
|
2806
2806
|
for (var t = 1; t < arguments.length; t++) {
|
|
2807
2807
|
var n = arguments[t];
|
|
2808
2808
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2809
2809
|
}
|
|
2810
2810
|
return e;
|
|
2811
|
-
},
|
|
2811
|
+
}, Sa.apply(this, arguments);
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2813
|
+
function Ca(e, t) {
|
|
2814
2814
|
if (e == null) return {};
|
|
2815
2815
|
var n = {}, r = Object.keys(e), i, a;
|
|
2816
2816
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2817
2817
|
return n;
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2819
|
+
function wa(e, t) {
|
|
2820
2820
|
if (e == null) return {};
|
|
2821
|
-
var n =
|
|
2821
|
+
var n = Ca(e, t), r, i;
|
|
2822
2822
|
if (Object.getOwnPropertySymbols) {
|
|
2823
2823
|
var a = Object.getOwnPropertySymbols(e);
|
|
2824
2824
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2825
2825
|
}
|
|
2826
2826
|
return n;
|
|
2827
2827
|
}
|
|
2828
|
-
var
|
|
2829
|
-
function
|
|
2828
|
+
var Ta = "1.15.2";
|
|
2829
|
+
function Ea(e) {
|
|
2830
2830
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2831
2831
|
}
|
|
2832
|
-
var
|
|
2832
|
+
var Da = Ea(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Oa = Ea(/Edge/i), ka = Ea(/firefox/i), Aa = Ea(/safari/i) && !Ea(/chrome/i) && !Ea(/android/i), ja = Ea(/iP(ad|od|hone)/i), Ma = Ea(/chrome/i) && Ea(/android/i), Na = {
|
|
2833
2833
|
capture: !1,
|
|
2834
2834
|
passive: !1
|
|
2835
2835
|
};
|
|
2836
|
-
function L(e, t, n) {
|
|
2837
|
-
e.addEventListener(t, n, !ka && Fa);
|
|
2838
|
-
}
|
|
2839
2836
|
function R(e, t, n) {
|
|
2840
|
-
e.
|
|
2837
|
+
e.addEventListener(t, n, !Da && Na);
|
|
2838
|
+
}
|
|
2839
|
+
function z(e, t, n) {
|
|
2840
|
+
e.removeEventListener(t, n, !Da && Na);
|
|
2841
2841
|
}
|
|
2842
|
-
function
|
|
2842
|
+
function Pa(e, t) {
|
|
2843
2843
|
if (t) {
|
|
2844
2844
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
2845
2845
|
if (e.matches) return e.matches(t);
|
|
@@ -2851,41 +2851,41 @@ function Ia(e, t) {
|
|
|
2851
2851
|
return !1;
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function Fa(e) {
|
|
2855
2855
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function Ia(e, t, n, r) {
|
|
2858
2858
|
if (e) {
|
|
2859
2859
|
n ||= document;
|
|
2860
2860
|
do {
|
|
2861
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
2861
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Pa(e, t) : Pa(e, t)) || r && e === n) return e;
|
|
2862
2862
|
if (e === n) break;
|
|
2863
|
-
} while (e =
|
|
2863
|
+
} while (e = Fa(e));
|
|
2864
2864
|
}
|
|
2865
2865
|
return null;
|
|
2866
2866
|
}
|
|
2867
|
-
var
|
|
2868
|
-
function z(e, t, n) {
|
|
2869
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(za, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(za, " "));
|
|
2870
|
-
}
|
|
2867
|
+
var La = /\s+/g;
|
|
2871
2868
|
function B(e, t, n) {
|
|
2869
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(La, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(La, " "));
|
|
2870
|
+
}
|
|
2871
|
+
function V(e, t, n) {
|
|
2872
2872
|
var r = e && e.style;
|
|
2873
2873
|
if (r) {
|
|
2874
2874
|
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
2875
2875
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function Ra(e, t) {
|
|
2879
2879
|
var n = "";
|
|
2880
2880
|
if (typeof e == "string") n = e;
|
|
2881
2881
|
else do {
|
|
2882
|
-
var r =
|
|
2882
|
+
var r = V(e, "transform");
|
|
2883
2883
|
r && r !== "none" && (n = r + " " + n);
|
|
2884
2884
|
} while (!t && (e = e.parentNode));
|
|
2885
2885
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2886
2886
|
return i && new i(n);
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function za(e, t, n) {
|
|
2889
2889
|
if (e) {
|
|
2890
2890
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
2891
2891
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -2893,21 +2893,21 @@ function Va(e, t, n) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
return [];
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function Ba() {
|
|
2897
2897
|
return document.scrollingElement || document.documentElement;
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function H(e, t, n, r, i) {
|
|
2900
2900
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2901
2901
|
var a, o, s, c, l, u, d;
|
|
2902
|
-
if (e !== window && e.parentNode && e !==
|
|
2903
|
-
if (i && i.getBoundingClientRect && (
|
|
2902
|
+
if (e !== window && e.parentNode && e !== Ba() ? (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, !Da)) do
|
|
2903
|
+
if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
|
|
2904
2904
|
var f = i.getBoundingClientRect();
|
|
2905
|
-
o -= f.top + parseInt(
|
|
2905
|
+
o -= f.top + parseInt(V(i, "border-top-width")), s -= f.left + parseInt(V(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
2906
2906
|
break;
|
|
2907
2907
|
}
|
|
2908
2908
|
while (i = i.parentNode);
|
|
2909
2909
|
if (r && e !== window) {
|
|
2910
|
-
var p =
|
|
2910
|
+
var p = Ra(i || e), m = p && p.a, h = p && p.d;
|
|
2911
2911
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
2912
2912
|
}
|
|
2913
2913
|
return {
|
|
@@ -2920,18 +2920,18 @@ function V(e, t, n, r, i) {
|
|
|
2920
2920
|
};
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2924
|
-
for (var r =
|
|
2925
|
-
var a =
|
|
2923
|
+
function Va(e, t, n) {
|
|
2924
|
+
for (var r = qa(e, !0), i = H(e)[t]; r;) {
|
|
2925
|
+
var a = H(r)[n], o = void 0;
|
|
2926
2926
|
if (o = i >= a, !o) return r;
|
|
2927
|
-
if (r ===
|
|
2928
|
-
r =
|
|
2927
|
+
if (r === Ba()) break;
|
|
2928
|
+
r = qa(r, !1);
|
|
2929
2929
|
}
|
|
2930
2930
|
return !1;
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2932
|
+
function Ha(e, t, n, r) {
|
|
2933
2933
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
2934
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
2934
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ia(o[a], n.draggable, e, !1)) {
|
|
2935
2935
|
if (i === t) return o[a];
|
|
2936
2936
|
i++;
|
|
2937
2937
|
}
|
|
@@ -2939,96 +2939,96 @@ function Wa(e, t, n, r) {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
return null;
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2943
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost ||
|
|
2942
|
+
function Ua(e, t) {
|
|
2943
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !Pa(n, t));) n = n.previousElementSibling;
|
|
2944
2944
|
return n || null;
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function Wa(e, t) {
|
|
2947
2947
|
var n = 0;
|
|
2948
2948
|
if (!e || !e.parentNode) return -1;
|
|
2949
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
2949
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Pa(e, t)) && n++;
|
|
2950
2950
|
return n;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2953
|
-
var t = 0, n = 0, r =
|
|
2952
|
+
function Ga(e) {
|
|
2953
|
+
var t = 0, n = 0, r = Ba();
|
|
2954
2954
|
if (e) do {
|
|
2955
|
-
var i =
|
|
2955
|
+
var i = Ra(e), a = i.a, o = i.d;
|
|
2956
2956
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
2957
2957
|
} while (e !== r && (e = e.parentNode));
|
|
2958
2958
|
return [t, n];
|
|
2959
2959
|
}
|
|
2960
|
-
function
|
|
2960
|
+
function Ka(e, t) {
|
|
2961
2961
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2962
2962
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2963
2963
|
}
|
|
2964
2964
|
return -1;
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2967
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2966
|
+
function qa(e, t) {
|
|
2967
|
+
if (!e || !e.getBoundingClientRect) return Ba();
|
|
2968
2968
|
var n = e, r = !1;
|
|
2969
2969
|
do
|
|
2970
2970
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2971
|
-
var i =
|
|
2971
|
+
var i = V(n);
|
|
2972
2972
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2973
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2973
|
+
if (!n.getBoundingClientRect || n === document.body) return Ba();
|
|
2974
2974
|
if (r || t) return n;
|
|
2975
2975
|
r = !0;
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
2978
|
while (n = n.parentNode);
|
|
2979
|
-
return
|
|
2979
|
+
return Ba();
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function Ja(e, t) {
|
|
2982
2982
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2983
2983
|
return e;
|
|
2984
2984
|
}
|
|
2985
|
-
function
|
|
2985
|
+
function Ya(e, t) {
|
|
2986
2986
|
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);
|
|
2987
2987
|
}
|
|
2988
|
-
var
|
|
2989
|
-
function
|
|
2988
|
+
var Xa;
|
|
2989
|
+
function Za(e, t) {
|
|
2990
2990
|
return function() {
|
|
2991
|
-
if (!
|
|
2991
|
+
if (!Xa) {
|
|
2992
2992
|
var n = arguments, r = this;
|
|
2993
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2994
|
-
|
|
2993
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Xa = setTimeout(function() {
|
|
2994
|
+
Xa = void 0;
|
|
2995
2995
|
}, t);
|
|
2996
2996
|
}
|
|
2997
2997
|
};
|
|
2998
2998
|
}
|
|
2999
|
-
function
|
|
3000
|
-
clearTimeout(
|
|
2999
|
+
function Qa() {
|
|
3000
|
+
clearTimeout(Xa), Xa = void 0;
|
|
3001
3001
|
}
|
|
3002
|
-
function
|
|
3002
|
+
function $a(e, t, n) {
|
|
3003
3003
|
e.scrollLeft += t, e.scrollTop += n;
|
|
3004
3004
|
}
|
|
3005
|
-
function
|
|
3005
|
+
function eo(e) {
|
|
3006
3006
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
3007
3007
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function to(e, t, n) {
|
|
3010
3010
|
var r = {};
|
|
3011
3011
|
return Array.from(e.children).forEach(function(i) {
|
|
3012
|
-
if (!(!
|
|
3013
|
-
var a =
|
|
3012
|
+
if (!(!Ia(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
3013
|
+
var a = H(i);
|
|
3014
3014
|
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);
|
|
3015
3015
|
}
|
|
3016
3016
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
3017
3017
|
}
|
|
3018
|
-
var
|
|
3019
|
-
function
|
|
3018
|
+
var no = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
3019
|
+
function ro() {
|
|
3020
3020
|
var e = [], t;
|
|
3021
3021
|
return {
|
|
3022
3022
|
captureAnimationState: function() {
|
|
3023
3023
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
3024
|
-
if (
|
|
3024
|
+
if (V(t, "display") !== "none" && t !== Q.ghost) {
|
|
3025
3025
|
e.push({
|
|
3026
3026
|
target: t,
|
|
3027
|
-
rect:
|
|
3027
|
+
rect: H(t)
|
|
3028
3028
|
});
|
|
3029
|
-
var n =
|
|
3029
|
+
var n = ya({}, e[e.length - 1].rect);
|
|
3030
3030
|
if (t.thisAnimationDuration) {
|
|
3031
|
-
var r =
|
|
3031
|
+
var r = Ra(t, !0);
|
|
3032
3032
|
r && (n.top -= r.f, n.left -= r.e);
|
|
3033
3033
|
}
|
|
3034
3034
|
t.fromRect = n;
|
|
@@ -3039,7 +3039,7 @@ function io() {
|
|
|
3039
3039
|
e.push(t);
|
|
3040
3040
|
},
|
|
3041
3041
|
removeAnimationState: function(t) {
|
|
3042
|
-
e.splice(
|
|
3042
|
+
e.splice(Ka(e, { target: t }), 1);
|
|
3043
3043
|
},
|
|
3044
3044
|
animateAll: function(n) {
|
|
3045
3045
|
var r = this;
|
|
@@ -3049,8 +3049,8 @@ function io() {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
var i = !1, a = 0;
|
|
3051
3051
|
e.forEach(function(e) {
|
|
3052
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
3053
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
3052
|
+
var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Ra(n, !0);
|
|
3053
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ya(c, s) && !Ya(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ao(u, c, l, r.options)), Ya(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() {
|
|
3054
3054
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
3055
3055
|
}, t), n.thisAnimationDuration = t);
|
|
3056
3056
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -3059,27 +3059,27 @@ function io() {
|
|
|
3059
3059
|
},
|
|
3060
3060
|
animate: function(e, t, n, r) {
|
|
3061
3061
|
if (r) {
|
|
3062
|
-
|
|
3063
|
-
var i =
|
|
3064
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
3065
|
-
|
|
3062
|
+
V(e, "transition", ""), V(e, "transform", "");
|
|
3063
|
+
var i = Ra(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
3064
|
+
e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = io(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
3065
|
+
V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
3066
3066
|
}, r);
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
3069
|
};
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3071
|
+
function io(e) {
|
|
3072
3072
|
return e.offsetWidth;
|
|
3073
3073
|
}
|
|
3074
|
-
function
|
|
3074
|
+
function ao(e, t, n, r) {
|
|
3075
3075
|
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;
|
|
3076
3076
|
}
|
|
3077
|
-
var
|
|
3077
|
+
var oo = [], so = { initializeByDefault: !0 }, co = {
|
|
3078
3078
|
mount: function(e) {
|
|
3079
|
-
for (var t in
|
|
3080
|
-
|
|
3079
|
+
for (var t in so) so.hasOwnProperty(t) && !(t in e) && (e[t] = so[t]);
|
|
3080
|
+
oo.forEach(function(t) {
|
|
3081
3081
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
3082
|
-
}),
|
|
3082
|
+
}), oo.push(e);
|
|
3083
3083
|
},
|
|
3084
3084
|
pluginEvent: function(e, t, n) {
|
|
3085
3085
|
var r = this;
|
|
@@ -3087,16 +3087,16 @@ var so = [], co = { initializeByDefault: !0 }, lo = {
|
|
|
3087
3087
|
r.eventCanceled = !0;
|
|
3088
3088
|
};
|
|
3089
3089
|
var i = e + "Global";
|
|
3090
|
-
|
|
3091
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
3090
|
+
oo.forEach(function(r) {
|
|
3091
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ya({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ya({ sortable: t }, n)));
|
|
3092
3092
|
});
|
|
3093
3093
|
},
|
|
3094
3094
|
initializePlugins: function(e, t, n, r) {
|
|
3095
|
-
for (var i in
|
|
3095
|
+
for (var i in oo.forEach(function(r) {
|
|
3096
3096
|
var i = r.pluginName;
|
|
3097
3097
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
3098
3098
|
var a = new r(e, t, e.options);
|
|
3099
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
3099
|
+
a.sortable = e, a.options = e.options, e[i] = a, Sa(n, a.defaults);
|
|
3100
3100
|
}
|
|
3101
3101
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
3102
3102
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -3105,56 +3105,56 @@ var so = [], co = { initializeByDefault: !0 }, lo = {
|
|
|
3105
3105
|
},
|
|
3106
3106
|
getEventProperties: function(e, t) {
|
|
3107
3107
|
var n = {};
|
|
3108
|
-
return
|
|
3109
|
-
typeof r.eventProperties == "function" &&
|
|
3108
|
+
return oo.forEach(function(r) {
|
|
3109
|
+
typeof r.eventProperties == "function" && Sa(n, r.eventProperties.call(t[r.pluginName], e));
|
|
3110
3110
|
}), n;
|
|
3111
3111
|
},
|
|
3112
3112
|
modifyOption: function(e, t, n) {
|
|
3113
3113
|
var r;
|
|
3114
|
-
return
|
|
3114
|
+
return oo.forEach(function(i) {
|
|
3115
3115
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
3116
3116
|
}), r;
|
|
3117
3117
|
}
|
|
3118
3118
|
};
|
|
3119
|
-
function
|
|
3119
|
+
function lo(e) {
|
|
3120
3120
|
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;
|
|
3121
|
-
if (t ||= n && n[
|
|
3121
|
+
if (t ||= n && n[no], t) {
|
|
3122
3122
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
3123
|
-
window.CustomEvent && !
|
|
3123
|
+
window.CustomEvent && !Da && !Oa ? h = new CustomEvent(r, {
|
|
3124
3124
|
bubbles: !0,
|
|
3125
3125
|
cancelable: !0
|
|
3126
3126
|
}) : (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;
|
|
3127
|
-
var v =
|
|
3127
|
+
var v = ya(ya({}, m), co.getEventProperties(r, t));
|
|
3128
3128
|
for (var y in v) h[y] = v[y];
|
|
3129
3129
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
3130
3130
|
}
|
|
3131
3131
|
}
|
|
3132
|
-
var
|
|
3133
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
3134
|
-
|
|
3132
|
+
var uo = ["evt"], U = function(e, t) {
|
|
3133
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = wa(n, uo);
|
|
3134
|
+
co.pluginEvent.bind(Q)(e, t, ya({
|
|
3135
3135
|
dragEl: G,
|
|
3136
3136
|
parentEl: K,
|
|
3137
3137
|
ghostEl: q,
|
|
3138
3138
|
rootEl: J,
|
|
3139
|
-
nextEl:
|
|
3140
|
-
lastDownEl:
|
|
3139
|
+
nextEl: fo,
|
|
3140
|
+
lastDownEl: po,
|
|
3141
3141
|
cloneEl: Y,
|
|
3142
|
-
cloneHidden:
|
|
3143
|
-
dragStarted:
|
|
3142
|
+
cloneHidden: mo,
|
|
3143
|
+
dragStarted: ko,
|
|
3144
3144
|
putSortable: X,
|
|
3145
3145
|
activeSortable: Q.active,
|
|
3146
3146
|
originalEvent: r,
|
|
3147
|
-
oldIndex:
|
|
3148
|
-
oldDraggableIndex:
|
|
3149
|
-
newIndex:
|
|
3150
|
-
newDraggableIndex:
|
|
3151
|
-
hideGhostForTarget:
|
|
3152
|
-
unhideGhostForTarget:
|
|
3147
|
+
oldIndex: ho,
|
|
3148
|
+
oldDraggableIndex: _o,
|
|
3149
|
+
newIndex: go,
|
|
3150
|
+
newDraggableIndex: vo,
|
|
3151
|
+
hideGhostForTarget: qo,
|
|
3152
|
+
unhideGhostForTarget: Jo,
|
|
3153
3153
|
cloneNowHidden: function() {
|
|
3154
|
-
|
|
3154
|
+
mo = !0;
|
|
3155
3155
|
},
|
|
3156
3156
|
cloneNowShown: function() {
|
|
3157
|
-
|
|
3157
|
+
mo = !1;
|
|
3158
3158
|
},
|
|
3159
3159
|
dispatchSortableEvent: function(e) {
|
|
3160
3160
|
W({
|
|
@@ -3166,45 +3166,45 @@ var fo = ["evt"], U = function(e, t) {
|
|
|
3166
3166
|
}, i));
|
|
3167
3167
|
};
|
|
3168
3168
|
function W(e) {
|
|
3169
|
-
|
|
3169
|
+
lo(ya({
|
|
3170
3170
|
putSortable: X,
|
|
3171
3171
|
cloneEl: Y,
|
|
3172
3172
|
targetEl: G,
|
|
3173
3173
|
rootEl: J,
|
|
3174
|
-
oldIndex:
|
|
3175
|
-
oldDraggableIndex:
|
|
3176
|
-
newIndex:
|
|
3177
|
-
newDraggableIndex:
|
|
3174
|
+
oldIndex: ho,
|
|
3175
|
+
oldDraggableIndex: _o,
|
|
3176
|
+
newIndex: go,
|
|
3177
|
+
newDraggableIndex: vo
|
|
3178
3178
|
}, e));
|
|
3179
3179
|
}
|
|
3180
|
-
var G, K, q, J,
|
|
3181
|
-
if (
|
|
3182
|
-
if (
|
|
3180
|
+
var G, K, q, J, fo, po, Y, mo, ho, go, _o, vo, yo, X, bo = !1, xo = !1, So = [], Co, wo, To, Eo, Do, Oo, ko, Ao, jo, Mo = !1, No = !1, Po, Z, Fo = [], Io = !1, Lo = [], Ro = typeof document < "u", zo = ja, Bo = Oa || Da ? "cssFloat" : "float", Vo = Ro && !Ma && !ja && "draggable" in document.createElement("div"), Ho = function() {
|
|
3181
|
+
if (Ro) {
|
|
3182
|
+
if (Da) return !1;
|
|
3183
3183
|
var e = document.createElement("x");
|
|
3184
3184
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
3185
3185
|
}
|
|
3186
|
-
}(),
|
|
3187
|
-
var n =
|
|
3186
|
+
}(), Uo = function(e, t) {
|
|
3187
|
+
var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ha(e, 0, t), a = Ha(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
|
|
3188
3188
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
3189
3189
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
3190
3190
|
if (i && o.float && o.float !== "none") {
|
|
3191
3191
|
var u = o.float === "left" ? "left" : "right";
|
|
3192
3192
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
3193
3193
|
}
|
|
3194
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
3195
|
-
},
|
|
3194
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Bo] === "none" || a && n[Bo] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
3195
|
+
}, Wo = function(e, t, n) {
|
|
3196
3196
|
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;
|
|
3197
3197
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
3198
|
-
},
|
|
3198
|
+
}, Go = function(e, t) {
|
|
3199
3199
|
var n;
|
|
3200
|
-
return
|
|
3201
|
-
var i = r[
|
|
3202
|
-
if (!(!i ||
|
|
3203
|
-
var a =
|
|
3200
|
+
return So.some(function(r) {
|
|
3201
|
+
var i = r[no].options.emptyInsertThreshold;
|
|
3202
|
+
if (!(!i || Ua(r))) {
|
|
3203
|
+
var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
3204
3204
|
if (o && s) return n = r;
|
|
3205
3205
|
}
|
|
3206
3206
|
}), n;
|
|
3207
|
-
},
|
|
3207
|
+
}, Ko = function(e) {
|
|
3208
3208
|
function t(e, n) {
|
|
3209
3209
|
return function(r, i, a, o) {
|
|
3210
3210
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -3217,31 +3217,31 @@ var G, K, q, J, po, mo, Y, ho, go, _o, vo, yo, bo, X, xo = !1, So = !1, Co = [],
|
|
|
3217
3217
|
};
|
|
3218
3218
|
}
|
|
3219
3219
|
var n = {}, r = e.group;
|
|
3220
|
-
(!r ||
|
|
3220
|
+
(!r || ba(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;
|
|
3221
|
+
}, qo = function() {
|
|
3222
|
+
!Ho && q && V(q, "display", "none");
|
|
3221
3223
|
}, Jo = function() {
|
|
3222
|
-
!
|
|
3223
|
-
}, Yo = function() {
|
|
3224
|
-
!Uo && q && B(q, "display", "");
|
|
3224
|
+
!Ho && q && V(q, "display", "");
|
|
3225
3225
|
};
|
|
3226
|
-
|
|
3227
|
-
if (
|
|
3226
|
+
Ro && !Ma && document.addEventListener("click", function(e) {
|
|
3227
|
+
if (xo) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), xo = !1, !1;
|
|
3228
3228
|
}, !0);
|
|
3229
|
-
var
|
|
3229
|
+
var Yo = function(e) {
|
|
3230
3230
|
if (G) {
|
|
3231
3231
|
e = e.touches ? e.touches[0] : e;
|
|
3232
|
-
var t =
|
|
3232
|
+
var t = Go(e.clientX, e.clientY);
|
|
3233
3233
|
if (t) {
|
|
3234
3234
|
var n = {};
|
|
3235
3235
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
3236
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
3236
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[no]._onDragOver(n);
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
|
-
},
|
|
3240
|
-
G && G.parentNode[
|
|
3239
|
+
}, Xo = function(e) {
|
|
3240
|
+
G && G.parentNode[no]._isOutsideThisEl(e.target);
|
|
3241
3241
|
};
|
|
3242
3242
|
function Q(e, t) {
|
|
3243
3243
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
3244
|
-
this.el = e, this.options = t =
|
|
3244
|
+
this.el = e, this.options = t = Sa({}, t), e[no] = this;
|
|
3245
3245
|
var n = {
|
|
3246
3246
|
group: null,
|
|
3247
3247
|
sort: !0,
|
|
@@ -3254,7 +3254,7 @@ function Q(e, t) {
|
|
|
3254
3254
|
invertedSwapThreshold: null,
|
|
3255
3255
|
removeCloneOnHide: !0,
|
|
3256
3256
|
direction: function() {
|
|
3257
|
-
return
|
|
3257
|
+
return Uo(e, this.options);
|
|
3258
3258
|
},
|
|
3259
3259
|
ghostClass: "sortable-ghost",
|
|
3260
3260
|
chosenClass: "sortable-chosen",
|
|
@@ -3281,17 +3281,17 @@ function Q(e, t) {
|
|
|
3281
3281
|
x: 0,
|
|
3282
3282
|
y: 0
|
|
3283
3283
|
},
|
|
3284
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
3284
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Aa,
|
|
3285
3285
|
emptyInsertThreshold: 5
|
|
3286
3286
|
};
|
|
3287
|
-
for (var r in
|
|
3288
|
-
for (var i in
|
|
3289
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
3287
|
+
for (var r in co.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
3288
|
+
for (var i in Ko(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
3289
|
+
this.nativeDraggable = !t.forceFallback && Vo, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? R(e, "pointerdown", this._onTapStart) : (R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart)), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), So.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Sa(this, ro());
|
|
3290
3290
|
}
|
|
3291
3291
|
Q.prototype = {
|
|
3292
3292
|
constructor: Q,
|
|
3293
3293
|
_isOutsideThisEl: function(e) {
|
|
3294
|
-
!this.el.contains(e) && e !== this.el && (
|
|
3294
|
+
!this.el.contains(e) && e !== this.el && (Ao = null);
|
|
3295
3295
|
},
|
|
3296
3296
|
_getDirection: function(e, t) {
|
|
3297
3297
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
@@ -3299,8 +3299,8 @@ Q.prototype = {
|
|
|
3299
3299
|
_onTapStart: function(e) {
|
|
3300
3300
|
if (e.cancelable) {
|
|
3301
3301
|
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;
|
|
3302
|
-
if (
|
|
3303
|
-
if (
|
|
3302
|
+
if (os(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Aa && s && s.tagName.toUpperCase() === "SELECT") && (s = Ia(s, r.draggable, n, !1), !(s && s.animated) && po !== s)) {
|
|
3303
|
+
if (ho = Wa(s), _o = Wa(s, r.draggable), typeof l == "function") {
|
|
3304
3304
|
if (l.call(this, e, s, this)) {
|
|
3305
3305
|
W({
|
|
3306
3306
|
sortable: t,
|
|
@@ -3313,7 +3313,7 @@ Q.prototype = {
|
|
|
3313
3313
|
return;
|
|
3314
3314
|
}
|
|
3315
3315
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
3316
|
-
if (r =
|
|
3316
|
+
if (r = Ia(c, r.trim(), n, !1), r) return W({
|
|
3317
3317
|
sortable: t,
|
|
3318
3318
|
rootEl: r,
|
|
3319
3319
|
name: "filter",
|
|
@@ -3325,36 +3325,36 @@ Q.prototype = {
|
|
|
3325
3325
|
i && e.cancelable && e.preventDefault();
|
|
3326
3326
|
return;
|
|
3327
3327
|
}
|
|
3328
|
-
r.handle && !
|
|
3328
|
+
r.handle && !Ia(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
},
|
|
3332
3332
|
_prepareDragStart: function(e, t, n) {
|
|
3333
3333
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
3334
3334
|
if (n && !G && n.parentNode === i) {
|
|
3335
|
-
var c =
|
|
3336
|
-
if (J = i, G = n, K = G.parentNode,
|
|
3335
|
+
var c = H(n);
|
|
3336
|
+
if (J = i, G = n, K = G.parentNode, fo = G.nextSibling, po = n, yo = a.group, Q.dragged = G, Co = {
|
|
3337
3337
|
target: G,
|
|
3338
3338
|
clientX: (t || e).clientX,
|
|
3339
3339
|
clientY: (t || e).clientY
|
|
3340
|
-
},
|
|
3340
|
+
}, Do = Co.clientX - c.left, Oo = Co.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
3341
3341
|
if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
3342
3342
|
r._onDrop();
|
|
3343
3343
|
return;
|
|
3344
3344
|
}
|
|
3345
|
-
r._disableDelayedDragEvents(), !
|
|
3345
|
+
r._disableDelayedDragEvents(), !ka && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
|
|
3346
3346
|
sortable: r,
|
|
3347
3347
|
name: "choose",
|
|
3348
3348
|
originalEvent: e
|
|
3349
|
-
}),
|
|
3349
|
+
}), B(G, a.chosenClass, !0);
|
|
3350
3350
|
}, a.ignore.split(",").forEach(function(e) {
|
|
3351
|
-
|
|
3352
|
-
}),
|
|
3351
|
+
za(G, e.trim(), $o);
|
|
3352
|
+
}), R(o, "dragover", Yo), R(o, "mousemove", Yo), R(o, "touchmove", Yo), R(o, "mouseup", r._onDrop), R(o, "touchend", r._onDrop), R(o, "touchcancel", r._onDrop), ka && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Oa || Da))) {
|
|
3353
3353
|
if (Q.eventCanceled) {
|
|
3354
3354
|
this._onDrop();
|
|
3355
3355
|
return;
|
|
3356
3356
|
}
|
|
3357
|
-
|
|
3357
|
+
R(o, "mouseup", r._disableDelayedDrag), R(o, "touchend", r._disableDelayedDrag), R(o, "touchcancel", r._disableDelayedDrag), R(o, "mousemove", r._delayedDragTouchMoveHandler), R(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && R(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
3358
3358
|
} else s();
|
|
3359
3359
|
}
|
|
3360
3360
|
},
|
|
@@ -3363,25 +3363,25 @@ Q.prototype = {
|
|
|
3363
3363
|
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();
|
|
3364
3364
|
},
|
|
3365
3365
|
_disableDelayedDrag: function() {
|
|
3366
|
-
G &&
|
|
3366
|
+
G && $o(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
3367
3367
|
},
|
|
3368
3368
|
_disableDelayedDragEvents: function() {
|
|
3369
3369
|
var e = this.el.ownerDocument;
|
|
3370
|
-
|
|
3370
|
+
z(e, "mouseup", this._disableDelayedDrag), z(e, "touchend", this._disableDelayedDrag), z(e, "touchcancel", this._disableDelayedDrag), z(e, "mousemove", this._delayedDragTouchMoveHandler), z(e, "touchmove", this._delayedDragTouchMoveHandler), z(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
3371
3371
|
},
|
|
3372
3372
|
_triggerDragStart: function(e, t) {
|
|
3373
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
3373
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? R(document, "pointermove", this._onTouchMove) : t ? R(document, "touchmove", this._onTouchMove) : R(document, "mousemove", this._onTouchMove) : (R(G, "dragend", this), R(J, "dragstart", this._onDragStart));
|
|
3374
3374
|
try {
|
|
3375
|
-
document.selection ?
|
|
3375
|
+
document.selection ? ss(function() {
|
|
3376
3376
|
document.selection.empty();
|
|
3377
3377
|
}) : window.getSelection().removeAllRanges();
|
|
3378
3378
|
} catch {}
|
|
3379
3379
|
},
|
|
3380
3380
|
_dragStarted: function(e, t) {
|
|
3381
|
-
if (
|
|
3382
|
-
U("dragStarted", this, { evt: t }), this.nativeDraggable &&
|
|
3381
|
+
if (bo = !1, J && G) {
|
|
3382
|
+
U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", Xo);
|
|
3383
3383
|
var n = this.options;
|
|
3384
|
-
!e &&
|
|
3384
|
+
!e && B(G, n.dragClass, !1), B(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
|
|
3385
3385
|
sortable: this,
|
|
3386
3386
|
name: "start",
|
|
3387
3387
|
originalEvent: t
|
|
@@ -3389,33 +3389,33 @@ Q.prototype = {
|
|
|
3389
3389
|
} else this._nulling();
|
|
3390
3390
|
},
|
|
3391
3391
|
_emulateDragOver: function() {
|
|
3392
|
-
if (
|
|
3393
|
-
this._lastX =
|
|
3394
|
-
for (var e = document.elementFromPoint(
|
|
3395
|
-
if (G.parentNode[
|
|
3396
|
-
if (t[
|
|
3392
|
+
if (wo) {
|
|
3393
|
+
this._lastX = wo.clientX, this._lastY = wo.clientY, qo();
|
|
3394
|
+
for (var e = document.elementFromPoint(wo.clientX, wo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(wo.clientX, wo.clientY), e !== t);) t = e;
|
|
3395
|
+
if (G.parentNode[no]._isOutsideThisEl(e), t) do {
|
|
3396
|
+
if (t[no]) {
|
|
3397
3397
|
var n = void 0;
|
|
3398
|
-
if (n = t[
|
|
3399
|
-
clientX:
|
|
3400
|
-
clientY:
|
|
3398
|
+
if (n = t[no]._onDragOver({
|
|
3399
|
+
clientX: wo.clientX,
|
|
3400
|
+
clientY: wo.clientY,
|
|
3401
3401
|
target: e,
|
|
3402
3402
|
rootEl: t
|
|
3403
3403
|
}), n && !this.options.dragoverBubble) break;
|
|
3404
3404
|
}
|
|
3405
3405
|
e = t;
|
|
3406
3406
|
} while (t = t.parentNode);
|
|
3407
|
-
|
|
3407
|
+
Jo();
|
|
3408
3408
|
}
|
|
3409
3409
|
},
|
|
3410
3410
|
_onTouchMove: function(e) {
|
|
3411
|
-
if (
|
|
3412
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q &&
|
|
3413
|
-
if (!Q.active && !
|
|
3411
|
+
if (Co) {
|
|
3412
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Ra(q, !0), o = q && a && a.a, s = q && a && a.d, c = zo && Z && Ga(Z), l = (i.clientX - Co.clientX + r.x) / (o || 1) + (c ? c[0] - Fo[0] : 0) / (o || 1), u = (i.clientY - Co.clientY + r.y) / (s || 1) + (c ? c[1] - Fo[1] : 0) / (s || 1);
|
|
3413
|
+
if (!Q.active && !bo) {
|
|
3414
3414
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
3415
3415
|
this._onDragStart(e, !0);
|
|
3416
3416
|
}
|
|
3417
3417
|
if (q) {
|
|
3418
|
-
a ? (a.e += l - (
|
|
3418
|
+
a ? (a.e += l - (To || 0), a.f += u - (Eo || 0)) : a = {
|
|
3419
3419
|
a: 1,
|
|
3420
3420
|
b: 0,
|
|
3421
3421
|
c: 0,
|
|
@@ -3424,19 +3424,19 @@ Q.prototype = {
|
|
|
3424
3424
|
f: u
|
|
3425
3425
|
};
|
|
3426
3426
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
3427
|
-
|
|
3427
|
+
V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), To = l, Eo = u, wo = i;
|
|
3428
3428
|
}
|
|
3429
3429
|
e.cancelable && e.preventDefault();
|
|
3430
3430
|
}
|
|
3431
3431
|
},
|
|
3432
3432
|
_appendGhost: function() {
|
|
3433
3433
|
if (!q) {
|
|
3434
|
-
var e = this.options.fallbackOnBody ? document.body : J, t =
|
|
3435
|
-
if (
|
|
3436
|
-
for (Z = e;
|
|
3437
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
3434
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, zo, !0, e), n = this.options;
|
|
3435
|
+
if (zo) {
|
|
3436
|
+
for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
3437
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Ba()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Ba(), Fo = Ga(Z);
|
|
3438
3438
|
}
|
|
3439
|
-
q = G.cloneNode(!0),
|
|
3439
|
+
q = G.cloneNode(!0), B(q, n.ghostClass, !1), B(q, n.fallbackClass, !0), B(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", zo ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", Do / parseInt(q.style.width) * 100 + "% " + Oo / parseInt(q.style.height) * 100 + "%");
|
|
3440
3440
|
}
|
|
3441
3441
|
},
|
|
3442
3442
|
_onDragStart: function(e, t) {
|
|
@@ -3445,18 +3445,18 @@ Q.prototype = {
|
|
|
3445
3445
|
this._onDrop();
|
|
3446
3446
|
return;
|
|
3447
3447
|
}
|
|
3448
|
-
U("setupClone", this), Q.eventCanceled || (Y =
|
|
3448
|
+
U("setupClone", this), Q.eventCanceled || (Y = eo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), B(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = ss(function() {
|
|
3449
3449
|
U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
|
|
3450
3450
|
sortable: n,
|
|
3451
3451
|
name: "clone"
|
|
3452
3452
|
}));
|
|
3453
|
-
}), !t &&
|
|
3453
|
+
}), !t && B(G, i.dragClass, !0), t ? (xo = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (z(document, "mouseup", n._onDrop), z(document, "touchend", n._onDrop), z(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), R(document, "drop", n), V(G, "transform", "translateZ(0)")), bo = !0, n._dragStartId = ss(n._dragStarted.bind(n, t, e)), R(document, "selectstart", n), ko = !0, Aa && V(document.body, "user-select", "none");
|
|
3454
3454
|
},
|
|
3455
3455
|
_onDragOver: function(e) {
|
|
3456
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
3457
|
-
if (
|
|
3456
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = yo === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
3457
|
+
if (Io) return;
|
|
3458
3458
|
function h(o, s) {
|
|
3459
|
-
U(o, p,
|
|
3459
|
+
U(o, p, ya({
|
|
3460
3460
|
evt: e,
|
|
3461
3461
|
isOwner: l,
|
|
3462
3462
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -3468,7 +3468,7 @@ Q.prototype = {
|
|
|
3468
3468
|
target: n,
|
|
3469
3469
|
completed: _,
|
|
3470
3470
|
onMove: function(n, i) {
|
|
3471
|
-
return
|
|
3471
|
+
return Qo(J, t, G, r, n, H(n), e, i);
|
|
3472
3472
|
},
|
|
3473
3473
|
changed: v
|
|
3474
3474
|
}, s));
|
|
@@ -3477,50 +3477,50 @@ Q.prototype = {
|
|
|
3477
3477
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
3478
3478
|
}
|
|
3479
3479
|
function _(r) {
|
|
3480
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
3480
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (B(G, X ? X.options.ghostClass : c.options.ghostClass, !1), B(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
3481
3481
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
3482
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (
|
|
3482
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Ao = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[no]._isOutsideThisEl(e.target), !r && Yo(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
3483
3483
|
}
|
|
3484
3484
|
function v() {
|
|
3485
|
-
|
|
3485
|
+
go = Wa(G), vo = Wa(G, o.draggable), W({
|
|
3486
3486
|
sortable: p,
|
|
3487
3487
|
name: "change",
|
|
3488
3488
|
toEl: t,
|
|
3489
|
-
newIndex:
|
|
3490
|
-
newDraggableIndex:
|
|
3489
|
+
newIndex: go,
|
|
3490
|
+
newDraggableIndex: vo,
|
|
3491
3491
|
originalEvent: e
|
|
3492
3492
|
});
|
|
3493
3493
|
}
|
|
3494
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
3494
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ia(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
3495
3495
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
3496
|
-
if (
|
|
3497
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
3498
|
-
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
3499
|
-
var y =
|
|
3500
|
-
if (!y ||
|
|
3496
|
+
if (xo = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = yo.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
3497
|
+
if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
3498
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (fo ? J.insertBefore(G, fo) : J.appendChild(G)), _(!0);
|
|
3499
|
+
var y = Ua(t, o.draggable);
|
|
3500
|
+
if (!y || ns(e, f, this) && !y.animated) {
|
|
3501
3501
|
if (y === G) return _(!1);
|
|
3502
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
3503
|
-
} else if (y &&
|
|
3504
|
-
var b =
|
|
3502
|
+
if (y && t === e.target && (n = y), n && (i = H(n)), Qo(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
|
|
3503
|
+
} else if (y && ts(e, f, this)) {
|
|
3504
|
+
var b = Ha(t, 0, o, !0);
|
|
3505
3505
|
if (b === G) return _(!1);
|
|
3506
|
-
if (n = b, i =
|
|
3506
|
+
if (n = b, i = H(n), Qo(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
3507
3507
|
} else if (n.parentNode === t) {
|
|
3508
|
-
i =
|
|
3509
|
-
var x = 0, S, C = G.parentNode !== t, w = !
|
|
3510
|
-
|
|
3508
|
+
i = H(n);
|
|
3509
|
+
var x = 0, S, C = G.parentNode !== t, w = !Wo(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Va(n, "top", "top") || Va(G, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
3510
|
+
Ao !== n && (S = i[T], Mo = !1, No = !w && o.invertSwap || C), x = rs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, No, Ao === n);
|
|
3511
3511
|
var O;
|
|
3512
3512
|
if (x !== 0) {
|
|
3513
|
-
var k =
|
|
3513
|
+
var k = Wa(G);
|
|
3514
3514
|
do
|
|
3515
3515
|
k -= x, O = K.children[k];
|
|
3516
|
-
while (O && (
|
|
3516
|
+
while (O && (V(O, "display") === "none" || O === q));
|
|
3517
3517
|
}
|
|
3518
3518
|
if (x === 0 || O === n) return _(!1);
|
|
3519
|
-
|
|
3519
|
+
Ao = n, jo = x;
|
|
3520
3520
|
var A = n.nextElementSibling, j = !1;
|
|
3521
3521
|
j = x === 1;
|
|
3522
|
-
var ee =
|
|
3523
|
-
if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1),
|
|
3522
|
+
var ee = Qo(J, t, G, r, n, i, e, j);
|
|
3523
|
+
if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), Io = !0, setTimeout(es, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && $a(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !No && (Po = Math.abs(S - H(n)[T])), v(), _(!0);
|
|
3524
3524
|
}
|
|
3525
3525
|
if (t.contains(G)) return _(!1);
|
|
3526
3526
|
}
|
|
@@ -3528,26 +3528,26 @@ Q.prototype = {
|
|
|
3528
3528
|
},
|
|
3529
3529
|
_ignoreWhileAnimating: null,
|
|
3530
3530
|
_offMoveEvents: function() {
|
|
3531
|
-
|
|
3531
|
+
z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", Yo), z(document, "mousemove", Yo), z(document, "touchmove", Yo);
|
|
3532
3532
|
},
|
|
3533
3533
|
_offUpEvents: function() {
|
|
3534
3534
|
var e = this.el.ownerDocument;
|
|
3535
|
-
|
|
3535
|
+
z(e, "mouseup", this._onDrop), z(e, "touchend", this._onDrop), z(e, "pointerup", this._onDrop), z(e, "touchcancel", this._onDrop), z(document, "selectstart", this);
|
|
3536
3536
|
},
|
|
3537
3537
|
_onDrop: function(e) {
|
|
3538
3538
|
var t = this.el, n = this.options;
|
|
3539
|
-
if (
|
|
3539
|
+
if (go = Wa(G), vo = Wa(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, go = Wa(G), vo = Wa(G, n.draggable), Q.eventCanceled) {
|
|
3540
3540
|
this._nulling();
|
|
3541
3541
|
return;
|
|
3542
3542
|
}
|
|
3543
|
-
|
|
3543
|
+
bo = !1, No = !1, Mo = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), cs(this.cloneId), cs(this._dragStartId), this.nativeDraggable && (z(document, "drop", this), z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Aa && V(document.body, "user-select", ""), V(G, "transform", ""), e && (ko && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && z(G, "dragend", this), $o(G), G.style["will-change"] = "", ko && !bo && B(G, X ? X.options.ghostClass : this.options.ghostClass, !1), B(G, this.options.chosenClass, !1), W({
|
|
3544
3544
|
sortable: this,
|
|
3545
3545
|
name: "unchoose",
|
|
3546
3546
|
toEl: K,
|
|
3547
3547
|
newIndex: null,
|
|
3548
3548
|
newDraggableIndex: null,
|
|
3549
3549
|
originalEvent: e
|
|
3550
|
-
}), J === K ?
|
|
3550
|
+
}), J === K ? go !== ho && go >= 0 && (W({
|
|
3551
3551
|
sortable: this,
|
|
3552
3552
|
name: "update",
|
|
3553
3553
|
toEl: K,
|
|
@@ -3557,7 +3557,7 @@ Q.prototype = {
|
|
|
3557
3557
|
name: "sort",
|
|
3558
3558
|
toEl: K,
|
|
3559
3559
|
originalEvent: e
|
|
3560
|
-
})) : (
|
|
3560
|
+
})) : (go >= 0 && (W({
|
|
3561
3561
|
rootEl: K,
|
|
3562
3562
|
name: "add",
|
|
3563
3563
|
toEl: K,
|
|
@@ -3579,7 +3579,7 @@ Q.prototype = {
|
|
|
3579
3579
|
name: "sort",
|
|
3580
3580
|
toEl: K,
|
|
3581
3581
|
originalEvent: e
|
|
3582
|
-
})), X && X.save()), Q.active && ((
|
|
3582
|
+
})), X && X.save()), Q.active && ((go == null || go === -1) && (go = ho, vo = _o), W({
|
|
3583
3583
|
sortable: this,
|
|
3584
3584
|
name: "end",
|
|
3585
3585
|
toEl: K,
|
|
@@ -3587,9 +3587,9 @@ Q.prototype = {
|
|
|
3587
3587
|
}), this.save()))), this._nulling();
|
|
3588
3588
|
},
|
|
3589
3589
|
_nulling: function() {
|
|
3590
|
-
U("nulling", this), J = G = K = q =
|
|
3590
|
+
U("nulling", this), J = G = K = q = fo = Y = po = mo = Co = wo = ko = go = vo = ho = _o = Ao = jo = X = yo = Q.dragged = Q.ghost = Q.clone = Q.active = null, Lo.forEach(function(e) {
|
|
3591
3591
|
e.checked = !0;
|
|
3592
|
-
}),
|
|
3592
|
+
}), Lo.length = To = Eo = 0;
|
|
3593
3593
|
},
|
|
3594
3594
|
handleEvent: function(e) {
|
|
3595
3595
|
switch (e.type) {
|
|
@@ -3599,20 +3599,20 @@ Q.prototype = {
|
|
|
3599
3599
|
break;
|
|
3600
3600
|
case "dragenter":
|
|
3601
3601
|
case "dragover":
|
|
3602
|
-
G && (this._onDragOver(e),
|
|
3602
|
+
G && (this._onDragOver(e), Zo(e));
|
|
3603
3603
|
break;
|
|
3604
3604
|
case "selectstart": e.preventDefault();
|
|
3605
3605
|
}
|
|
3606
3606
|
},
|
|
3607
3607
|
toArray: function() {
|
|
3608
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
3608
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ia(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || as(t));
|
|
3609
3609
|
return e;
|
|
3610
3610
|
},
|
|
3611
3611
|
sort: function(e, t) {
|
|
3612
3612
|
var n = {}, r = this.el;
|
|
3613
3613
|
this.toArray().forEach(function(e, t) {
|
|
3614
3614
|
var i = r.children[t];
|
|
3615
|
-
|
|
3615
|
+
Ia(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
3616
3616
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
3617
3617
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
3618
3618
|
}), t && this.animateAll();
|
|
@@ -3622,25 +3622,25 @@ Q.prototype = {
|
|
|
3622
3622
|
e && e.set && e.set(this);
|
|
3623
3623
|
},
|
|
3624
3624
|
closest: function(e, t) {
|
|
3625
|
-
return
|
|
3625
|
+
return Ia(e, t || this.options.draggable, this.el, !1);
|
|
3626
3626
|
},
|
|
3627
3627
|
option: function(e, t) {
|
|
3628
3628
|
var n = this.options;
|
|
3629
3629
|
if (t === void 0) return n[e];
|
|
3630
|
-
var r =
|
|
3631
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
3630
|
+
var r = co.modifyOption(this, e, t);
|
|
3631
|
+
n[e] = r === void 0 ? t : r, e === "group" && Ko(n);
|
|
3632
3632
|
},
|
|
3633
3633
|
destroy: function() {
|
|
3634
3634
|
U("destroy", this);
|
|
3635
3635
|
var e = this.el;
|
|
3636
|
-
e[
|
|
3636
|
+
e[no] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
3637
3637
|
e.removeAttribute("draggable");
|
|
3638
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
3638
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), So.splice(So.indexOf(this.el), 1), this.el = e = null;
|
|
3639
3639
|
},
|
|
3640
3640
|
_hideClone: function() {
|
|
3641
|
-
if (!
|
|
3641
|
+
if (!mo) {
|
|
3642
3642
|
if (U("hideClone", this), Q.eventCanceled) return;
|
|
3643
|
-
|
|
3643
|
+
V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), mo = !0;
|
|
3644
3644
|
}
|
|
3645
3645
|
},
|
|
3646
3646
|
_showClone: function(e) {
|
|
@@ -3648,99 +3648,99 @@ Q.prototype = {
|
|
|
3648
3648
|
this._hideClone();
|
|
3649
3649
|
return;
|
|
3650
3650
|
}
|
|
3651
|
-
if (
|
|
3651
|
+
if (mo) {
|
|
3652
3652
|
if (U("showClone", this), Q.eventCanceled) return;
|
|
3653
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) :
|
|
3653
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : fo ? J.insertBefore(Y, fo) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), mo = !1;
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
3656
|
};
|
|
3657
|
-
function
|
|
3657
|
+
function Zo(e) {
|
|
3658
3658
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3661
|
-
var c, l = e[
|
|
3662
|
-
return window.CustomEvent && !
|
|
3660
|
+
function Qo(e, t, n, r, i, a, o, s) {
|
|
3661
|
+
var c, l = e[no], u = l.options.onMove, d;
|
|
3662
|
+
return window.CustomEvent && !Da && !Oa ? c = new CustomEvent("move", {
|
|
3663
3663
|
bubbles: !0,
|
|
3664
3664
|
cancelable: !0
|
|
3665
|
-
}) : (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 ||
|
|
3665
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || H(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
3666
3666
|
}
|
|
3667
|
-
function
|
|
3667
|
+
function $o(e) {
|
|
3668
3668
|
e.draggable = !1;
|
|
3669
3669
|
}
|
|
3670
|
-
function
|
|
3671
|
-
|
|
3670
|
+
function es() {
|
|
3671
|
+
Io = !1;
|
|
3672
3672
|
}
|
|
3673
|
-
function
|
|
3674
|
-
var r =
|
|
3673
|
+
function ts(e, t, n) {
|
|
3674
|
+
var r = H(Ha(n.el, 0, n.options, !0)), i = to(n.el, n.options, q), a = 10;
|
|
3675
3675
|
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;
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3678
|
-
var r =
|
|
3677
|
+
function ns(e, t, n) {
|
|
3678
|
+
var r = H(Ua(n.el, n.options.draggable)), i = to(n.el, n.options, q), a = 10;
|
|
3679
3679
|
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;
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function rs(e, t, n, r, i, a, o, s) {
|
|
3682
3682
|
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;
|
|
3683
3683
|
if (!o) {
|
|
3684
|
-
if (s &&
|
|
3685
|
-
if (!
|
|
3686
|
-
else if (
|
|
3687
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
3684
|
+
if (s && Po < l * i) {
|
|
3685
|
+
if (!Mo && (jo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Mo = !0), Mo) f = !0;
|
|
3686
|
+
else if (jo === 1 ? c < u + Po : c > d - Po) return -jo;
|
|
3687
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return is(t);
|
|
3688
3688
|
}
|
|
3689
3689
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
3690
3690
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return
|
|
3691
|
+
function is(e) {
|
|
3692
|
+
return Wa(G) < Wa(e) ? 1 : -1;
|
|
3693
3693
|
}
|
|
3694
|
-
function
|
|
3694
|
+
function as(e) {
|
|
3695
3695
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
3696
3696
|
return r.toString(36);
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3699
|
-
|
|
3698
|
+
function os(e) {
|
|
3699
|
+
Lo.length = 0;
|
|
3700
3700
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
3701
3701
|
var r = t[n];
|
|
3702
|
-
r.checked &&
|
|
3702
|
+
r.checked && Lo.push(r);
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function ss(e) {
|
|
3706
3706
|
return setTimeout(e, 0);
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function cs(e) {
|
|
3709
3709
|
return clearTimeout(e);
|
|
3710
3710
|
}
|
|
3711
|
-
|
|
3712
|
-
(Q.active ||
|
|
3711
|
+
Ro && R(document, "touchmove", function(e) {
|
|
3712
|
+
(Q.active || bo) && e.cancelable && e.preventDefault();
|
|
3713
3713
|
}), Q.utils = {
|
|
3714
|
-
on:
|
|
3715
|
-
off:
|
|
3716
|
-
css:
|
|
3717
|
-
find:
|
|
3714
|
+
on: R,
|
|
3715
|
+
off: z,
|
|
3716
|
+
css: V,
|
|
3717
|
+
find: za,
|
|
3718
3718
|
is: function(e, t) {
|
|
3719
|
-
return !!
|
|
3719
|
+
return !!Ia(e, t, e, !1);
|
|
3720
3720
|
},
|
|
3721
|
-
extend:
|
|
3722
|
-
throttle:
|
|
3723
|
-
closest:
|
|
3724
|
-
toggleClass:
|
|
3725
|
-
clone:
|
|
3726
|
-
index:
|
|
3727
|
-
nextTick:
|
|
3728
|
-
cancelNextTick:
|
|
3729
|
-
detectDirection:
|
|
3730
|
-
getChild:
|
|
3721
|
+
extend: Ja,
|
|
3722
|
+
throttle: Za,
|
|
3723
|
+
closest: Ia,
|
|
3724
|
+
toggleClass: B,
|
|
3725
|
+
clone: eo,
|
|
3726
|
+
index: Wa,
|
|
3727
|
+
nextTick: ss,
|
|
3728
|
+
cancelNextTick: cs,
|
|
3729
|
+
detectDirection: Uo,
|
|
3730
|
+
getChild: Ha
|
|
3731
3731
|
}, Q.get = function(e) {
|
|
3732
|
-
return e[
|
|
3732
|
+
return e[no];
|
|
3733
3733
|
}, Q.mount = function() {
|
|
3734
3734
|
var e = [...arguments];
|
|
3735
3735
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3736
3736
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3737
|
-
e.utils && (Q.utils =
|
|
3737
|
+
e.utils && (Q.utils = ya(ya({}, Q.utils), e.utils)), co.mount(e);
|
|
3738
3738
|
});
|
|
3739
3739
|
}, Q.create = function(e, t) {
|
|
3740
3740
|
return new Q(e, t);
|
|
3741
|
-
}, Q.version =
|
|
3742
|
-
var $ = [], us, ds
|
|
3743
|
-
function
|
|
3741
|
+
}, Q.version = Ta;
|
|
3742
|
+
var $ = [], ls, us, ds = !1, fs, ps, ms, hs;
|
|
3743
|
+
function gs() {
|
|
3744
3744
|
function e() {
|
|
3745
3745
|
for (var e in this.defaults = {
|
|
3746
3746
|
scroll: !0,
|
|
@@ -3753,70 +3753,70 @@ function _s() {
|
|
|
3753
3753
|
return e.prototype = {
|
|
3754
3754
|
dragStarted: function(e) {
|
|
3755
3755
|
var t = e.originalEvent;
|
|
3756
|
-
this.sortable.nativeDraggable ?
|
|
3756
|
+
this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? R(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? R(document, "touchmove", this._handleFallbackAutoScroll) : R(document, "mousemove", this._handleFallbackAutoScroll);
|
|
3757
3757
|
},
|
|
3758
3758
|
dragOverCompleted: function(e) {
|
|
3759
3759
|
var t = e.originalEvent;
|
|
3760
3760
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3761
3761
|
},
|
|
3762
3762
|
drop: function() {
|
|
3763
|
-
this.sortable.nativeDraggable ?
|
|
3763
|
+
this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), vs(), _s(), Qa();
|
|
3764
3764
|
},
|
|
3765
3765
|
nulling: function() {
|
|
3766
|
-
|
|
3766
|
+
ms = us = ls = ds = hs = fs = ps = null, $.length = 0;
|
|
3767
3767
|
},
|
|
3768
3768
|
_handleFallbackAutoScroll: function(e) {
|
|
3769
3769
|
this._handleAutoScroll(e, !0);
|
|
3770
3770
|
},
|
|
3771
3771
|
_handleAutoScroll: function(e, t) {
|
|
3772
3772
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3773
|
-
if (
|
|
3774
|
-
|
|
3775
|
-
var o =
|
|
3776
|
-
|
|
3777
|
-
var a =
|
|
3778
|
-
a !== o && (o = a,
|
|
3779
|
-
}, 10),
|
|
3773
|
+
if (ms = e, t || this.options.forceAutoScrollFallback || Oa || Da || Aa) {
|
|
3774
|
+
ys(e, this.options, a, t);
|
|
3775
|
+
var o = qa(a, !0);
|
|
3776
|
+
ds && (!hs || r !== fs || i !== ps) && (hs && vs(), hs = setInterval(function() {
|
|
3777
|
+
var a = qa(document.elementFromPoint(r, i), !0);
|
|
3778
|
+
a !== o && (o = a, _s()), ys(e, n.options, a, t);
|
|
3779
|
+
}, 10), fs = r, ps = i);
|
|
3780
3780
|
} else {
|
|
3781
|
-
if (!this.options.bubbleScroll ||
|
|
3782
|
-
|
|
3781
|
+
if (!this.options.bubbleScroll || qa(a, !0) === Ba()) {
|
|
3782
|
+
_s();
|
|
3783
3783
|
return;
|
|
3784
3784
|
}
|
|
3785
|
-
|
|
3785
|
+
ys(e, this.options, qa(a, !1), !1);
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
|
-
},
|
|
3788
|
+
}, Sa(e, {
|
|
3789
3789
|
pluginName: "scroll",
|
|
3790
3790
|
initializeByDefault: !0
|
|
3791
3791
|
});
|
|
3792
3792
|
}
|
|
3793
|
-
function
|
|
3793
|
+
function _s() {
|
|
3794
3794
|
$.forEach(function(e) {
|
|
3795
3795
|
clearInterval(e.pid);
|
|
3796
3796
|
}), $ = [];
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3799
|
-
clearInterval(
|
|
3798
|
+
function vs() {
|
|
3799
|
+
clearInterval(hs);
|
|
3800
3800
|
}
|
|
3801
|
-
var
|
|
3801
|
+
var ys = Za(function(e, t, n, r) {
|
|
3802
3802
|
if (t.scroll) {
|
|
3803
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
3804
|
-
|
|
3805
|
-
var d = 0, f =
|
|
3803
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ba(), l = !1, u;
|
|
3804
|
+
us !== n && (us = n, _s(), ls = t.scroll, u = t.scrollFn, ls === !0 && (ls = qa(n, !0)));
|
|
3805
|
+
var d = 0, f = ls;
|
|
3806
3806
|
do {
|
|
3807
|
-
var p = f, m =
|
|
3807
|
+
var p = f, m = H(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = V(p), E = p.scrollLeft, D = p.scrollTop;
|
|
3808
3808
|
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"));
|
|
3809
3809
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
3810
3810
|
if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
|
|
3811
3811
|
($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
3812
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3812
|
+
r && this.layer === 0 && Q.active._onTouchMove(ms);
|
|
3813
3813
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3814
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
3814
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[no], n, t, e, ms, $[this.layer].el) !== "continue" || $a($[this.layer].el, n, t);
|
|
3815
3815
|
}.bind({ layer: d }), 24))), d++;
|
|
3816
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3817
|
-
|
|
3816
|
+
} while (t.bubbleScroll && f !== c && (f = qa(f, !1)));
|
|
3817
|
+
ds = l;
|
|
3818
3818
|
}
|
|
3819
|
-
}, 30),
|
|
3819
|
+
}, 30), bs = function(e) {
|
|
3820
3820
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3821
3821
|
if (t) {
|
|
3822
3822
|
var c = n || i;
|
|
@@ -3828,8 +3828,8 @@ var bs = $a(function(e, t, n, r) {
|
|
|
3828
3828
|
}));
|
|
3829
3829
|
}
|
|
3830
3830
|
};
|
|
3831
|
-
function
|
|
3832
|
-
|
|
3831
|
+
function xs() {}
|
|
3832
|
+
xs.prototype = {
|
|
3833
3833
|
startIndex: null,
|
|
3834
3834
|
dragStart: function(e) {
|
|
3835
3835
|
var t = e.oldDraggableIndex;
|
|
@@ -3838,72 +3838,72 @@ Ss.prototype = {
|
|
|
3838
3838
|
onSpill: function(e) {
|
|
3839
3839
|
var t = e.dragEl, n = e.putSortable;
|
|
3840
3840
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
3841
|
-
var r =
|
|
3841
|
+
var r = Ha(this.sortable.el, this.startIndex, this.options);
|
|
3842
3842
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3843
3843
|
},
|
|
3844
|
-
drop:
|
|
3845
|
-
},
|
|
3846
|
-
function
|
|
3847
|
-
|
|
3844
|
+
drop: bs
|
|
3845
|
+
}, Sa(xs, { pluginName: "revertOnSpill" });
|
|
3846
|
+
function Ss() {}
|
|
3847
|
+
Ss.prototype = {
|
|
3848
3848
|
onSpill: function(e) {
|
|
3849
3849
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3850
3850
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3851
3851
|
},
|
|
3852
|
-
drop:
|
|
3853
|
-
},
|
|
3854
|
-
function
|
|
3852
|
+
drop: bs
|
|
3853
|
+
}, Sa(Ss, { pluginName: "removeOnSpill" }), Q.mount(new gs()), Q.mount(Ss, xs);
|
|
3854
|
+
function Cs(e) {
|
|
3855
3855
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3858
|
-
|
|
3857
|
+
function ws(e) {
|
|
3858
|
+
te() && r(e);
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3861
|
-
|
|
3860
|
+
function Ts(e) {
|
|
3861
|
+
te() ? a(e) : ne(e);
|
|
3862
3862
|
}
|
|
3863
|
-
var
|
|
3864
|
-
function
|
|
3865
|
-
|
|
3863
|
+
var Es = null, Ds = null;
|
|
3864
|
+
function Os(e = null, t = null) {
|
|
3865
|
+
Es = e, Ds = t;
|
|
3866
3866
|
}
|
|
3867
|
-
function
|
|
3867
|
+
function ks() {
|
|
3868
3868
|
return {
|
|
3869
|
-
data:
|
|
3870
|
-
clonedData:
|
|
3869
|
+
data: Es,
|
|
3870
|
+
clonedData: Ds
|
|
3871
3871
|
};
|
|
3872
3872
|
}
|
|
3873
|
-
var
|
|
3874
|
-
function
|
|
3875
|
-
let t =
|
|
3873
|
+
var As = Symbol("cloneElement");
|
|
3874
|
+
function js(...e) {
|
|
3875
|
+
let t = te()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
3876
3876
|
Array.isArray(k(i)) || (a = i, i = null);
|
|
3877
|
-
let o = null, { immediate: s = !0, clone: l =
|
|
3877
|
+
let o = null, { immediate: s = !0, clone: l = Cs, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(a) ?? {};
|
|
3878
3878
|
function p(e) {
|
|
3879
3879
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
3880
3880
|
n = u && !d ? o.slice(0, -1) : o;
|
|
3881
3881
|
let s = k(k(i)?.[r]), c = l(s);
|
|
3882
|
-
|
|
3882
|
+
Os(s, c), a[As] = c;
|
|
3883
3883
|
}
|
|
3884
3884
|
function m(e) {
|
|
3885
|
-
let t = e.item[
|
|
3886
|
-
if (!
|
|
3887
|
-
if (
|
|
3885
|
+
let t = e.item[As];
|
|
3886
|
+
if (!sa(t)) {
|
|
3887
|
+
if (ua(e.item), g(i)) {
|
|
3888
3888
|
let n = [...k(i)];
|
|
3889
|
-
i.value =
|
|
3889
|
+
i.value = oa(n, e.newDraggableIndex, t);
|
|
3890
3890
|
return;
|
|
3891
3891
|
}
|
|
3892
|
-
|
|
3892
|
+
oa(k(i), e.newDraggableIndex, t);
|
|
3893
3893
|
}
|
|
3894
3894
|
}
|
|
3895
3895
|
function h(e) {
|
|
3896
3896
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
3897
|
-
if (
|
|
3898
|
-
|
|
3897
|
+
if (la(t, n, r), o === "clone") {
|
|
3898
|
+
ua(s);
|
|
3899
3899
|
return;
|
|
3900
3900
|
}
|
|
3901
3901
|
if (g(i)) {
|
|
3902
3902
|
let e = [...k(i)];
|
|
3903
|
-
i.value =
|
|
3903
|
+
i.value = aa(e, a);
|
|
3904
3904
|
return;
|
|
3905
3905
|
}
|
|
3906
|
-
|
|
3906
|
+
aa(k(i), a);
|
|
3907
3907
|
}
|
|
3908
3908
|
function _(e) {
|
|
3909
3909
|
if (f) {
|
|
@@ -3911,12 +3911,12 @@ function Ms(...e) {
|
|
|
3911
3911
|
return;
|
|
3912
3912
|
}
|
|
3913
3913
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
3914
|
-
if (
|
|
3914
|
+
if (ua(n), la(t, n, r), g(i)) {
|
|
3915
3915
|
let e = [...k(i)];
|
|
3916
|
-
i.value =
|
|
3916
|
+
i.value = na(e, a, o);
|
|
3917
3917
|
return;
|
|
3918
3918
|
}
|
|
3919
|
-
|
|
3919
|
+
na(k(i), a, o);
|
|
3920
3920
|
}
|
|
3921
3921
|
function v(e) {
|
|
3922
3922
|
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
@@ -3934,8 +3934,8 @@ function Ms(...e) {
|
|
|
3934
3934
|
} finally {
|
|
3935
3935
|
n = null;
|
|
3936
3936
|
}
|
|
3937
|
-
|
|
3938
|
-
if (
|
|
3937
|
+
ne(() => {
|
|
3938
|
+
if (Os(), o) throw o;
|
|
3939
3939
|
});
|
|
3940
3940
|
}
|
|
3941
3941
|
let y = {
|
|
@@ -3947,19 +3947,19 @@ function Ms(...e) {
|
|
|
3947
3947
|
};
|
|
3948
3948
|
function b(e) {
|
|
3949
3949
|
let n = k(r);
|
|
3950
|
-
return e ||=
|
|
3950
|
+
return e ||= ca(n) ? da(n, t?.$el) : n, e && !ma(e) && (e = e.$el), e || ta("Root element not found"), e;
|
|
3951
3951
|
}
|
|
3952
3952
|
function x() {
|
|
3953
|
-
let e = k(a) ?? {}, { immediate: t, clone: n } = e, r =
|
|
3954
|
-
return
|
|
3955
|
-
|
|
3956
|
-
}),
|
|
3953
|
+
let e = k(a) ?? {}, { immediate: t, clone: n } = e, r = Qi(e, ["immediate", "clone"]);
|
|
3954
|
+
return ha(r, (e, t) => {
|
|
3955
|
+
ga(e) && (r[e] = (e, ...n) => (_a(e, ks()), t(e, ...n)));
|
|
3956
|
+
}), pa(i === null ? {} : y, r);
|
|
3957
3957
|
}
|
|
3958
3958
|
let S = (e) => {
|
|
3959
3959
|
e = b(e), o && C.destroy(), o = new Q(e, x());
|
|
3960
3960
|
};
|
|
3961
3961
|
c(() => a, () => {
|
|
3962
|
-
o &&
|
|
3962
|
+
o && ha(x(), (e, t) => {
|
|
3963
3963
|
o?.option(e, t);
|
|
3964
3964
|
});
|
|
3965
3965
|
}, { deep: !0 });
|
|
@@ -3972,15 +3972,15 @@ function Ms(...e) {
|
|
|
3972
3972
|
toArray: () => o?.toArray(),
|
|
3973
3973
|
closest: (...e) => o?.closest(...e)
|
|
3974
3974
|
};
|
|
3975
|
-
return
|
|
3975
|
+
return Ts(() => {
|
|
3976
3976
|
s && S();
|
|
3977
|
-
}),
|
|
3977
|
+
}), ws(C.destroy), Zi({
|
|
3978
3978
|
start: S,
|
|
3979
3979
|
pause: () => C?.option("disabled", !0),
|
|
3980
3980
|
resume: () => C?.option("disabled", !1)
|
|
3981
3981
|
}, C);
|
|
3982
3982
|
}
|
|
3983
|
-
var
|
|
3983
|
+
var Ms = [
|
|
3984
3984
|
"update",
|
|
3985
3985
|
"start",
|
|
3986
3986
|
"add",
|
|
@@ -3993,7 +3993,7 @@ var Ns = [
|
|
|
3993
3993
|
"clone",
|
|
3994
3994
|
"move",
|
|
3995
3995
|
"change"
|
|
3996
|
-
],
|
|
3996
|
+
], Ns = [
|
|
3997
3997
|
"clone",
|
|
3998
3998
|
"animation",
|
|
3999
3999
|
"ghostClass",
|
|
@@ -4037,43 +4037,43 @@ var Ns = [
|
|
|
4037
4037
|
"tag",
|
|
4038
4038
|
"target",
|
|
4039
4039
|
"customUpdate",
|
|
4040
|
-
...
|
|
4041
|
-
],
|
|
4040
|
+
...Ms.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
4041
|
+
], Ps = y({
|
|
4042
4042
|
name: "VueDraggable",
|
|
4043
4043
|
model: {
|
|
4044
4044
|
prop: "modelValue",
|
|
4045
4045
|
event: "update:modelValue"
|
|
4046
4046
|
},
|
|
4047
|
-
props:
|
|
4048
|
-
emits: ["update:modelValue", ...
|
|
4047
|
+
props: Ns,
|
|
4048
|
+
emits: ["update:modelValue", ...Ms],
|
|
4049
4049
|
setup(t, { slots: n, emit: r, expose: i, attrs: a }) {
|
|
4050
|
-
let o =
|
|
4050
|
+
let o = Ms.reduce((e, t) => {
|
|
4051
4051
|
let n = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
4052
4052
|
return e[n] = (...e) => r(t, ...e), e;
|
|
4053
4053
|
}, {}), s = M(() => {
|
|
4054
|
-
let n = e(t), { modelValue: r } = n, i =
|
|
4054
|
+
let n = e(t), { modelValue: r } = n, i = Qi(n, ["modelValue"]), s = Object.entries(i).reduce((e, [t, n]) => {
|
|
4055
4055
|
let r = k(n);
|
|
4056
4056
|
return r !== void 0 && (e[t] = r), e;
|
|
4057
4057
|
}, {});
|
|
4058
|
-
return
|
|
4058
|
+
return Zi(Zi({}, o), ia(Zi(Zi({}, a), s)));
|
|
4059
4059
|
}), c = M({
|
|
4060
4060
|
get: () => t.modelValue,
|
|
4061
4061
|
set: (e) => r("update:modelValue", e)
|
|
4062
|
-
}), l = _(), u = A(
|
|
4063
|
-
return i(u), () =>
|
|
4062
|
+
}), l = _(), u = A(js(t.target || l, c, s));
|
|
4063
|
+
return i(u), () => re(t.tag || "div", { ref: l }, (n?.default)?.call(n, u));
|
|
4064
4064
|
}
|
|
4065
|
-
}),
|
|
4065
|
+
}), Fs = {
|
|
4066
4066
|
mounted: "mounted",
|
|
4067
4067
|
unmounted: "unmounted"
|
|
4068
4068
|
};
|
|
4069
|
-
|
|
4069
|
+
Fs.mounted, Fs.unmounted;
|
|
4070
4070
|
//#endregion
|
|
4071
4071
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
4072
|
-
var
|
|
4072
|
+
var Is = { class: "tpl:w-full" }, Ls = {
|
|
4073
4073
|
key: 0,
|
|
4074
4074
|
"data-testid": "section-drop-hint",
|
|
4075
4075
|
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)]"
|
|
4076
|
-
},
|
|
4076
|
+
}, Rs = /* @__PURE__ */ y({
|
|
4077
4077
|
__name: "SectionBlock",
|
|
4078
4078
|
props: {
|
|
4079
4079
|
block: {},
|
|
@@ -4081,13 +4081,13 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4081
4081
|
},
|
|
4082
4082
|
setup(e) {
|
|
4083
4083
|
let n = {
|
|
4084
|
-
title:
|
|
4085
|
-
paragraph:
|
|
4086
|
-
image:
|
|
4087
|
-
button:
|
|
4088
|
-
divider:
|
|
4089
|
-
custom:
|
|
4090
|
-
}, r = e, { t: a } =
|
|
4084
|
+
title: Wi,
|
|
4085
|
+
paragraph: Ti,
|
|
4086
|
+
image: fi,
|
|
4087
|
+
button: $n,
|
|
4088
|
+
divider: Kr,
|
|
4089
|
+
custom: Wr
|
|
4090
|
+
}, r = e, { t: a } = Gt(), s = ft(At, "SectionBlock"), c = F(kt, null), l = F(zt, null), u = F(Ot, {}), h = F(Rt, null);
|
|
4091
4091
|
function g(e) {
|
|
4092
4092
|
let t = u.savedBlocks;
|
|
4093
4093
|
if (t?.isPicking.value) {
|
|
@@ -4122,7 +4122,7 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4122
4122
|
i[e] = n, s.updateBlock(r.block.id, { children: i });
|
|
4123
4123
|
}
|
|
4124
4124
|
function T(e) {
|
|
4125
|
-
return
|
|
4125
|
+
return Di(e, l, n);
|
|
4126
4126
|
}
|
|
4127
4127
|
function E(e, t) {
|
|
4128
4128
|
e.type === "custom" && s.updateBlock(e.id, {
|
|
@@ -4130,16 +4130,16 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4130
4130
|
dataSourceFetched: t.dataSourceFetched
|
|
4131
4131
|
});
|
|
4132
4132
|
}
|
|
4133
|
-
return (n, r) => (f(), x("div",
|
|
4133
|
+
return (n, r) => (f(), x("div", Is, [b("div", { class: o(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(f(!0), x(j, null, t(v.value, (n, r) => (f(), x("div", {
|
|
4134
4134
|
key: r,
|
|
4135
4135
|
class: o(["tpl:relative tpl:min-h-[60px] tpl:rounded", S(r).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
4136
4136
|
style: i({ width: y.value ? "100%" : _.value[r] })
|
|
4137
|
-
}, [w(k(
|
|
4137
|
+
}, [w(k(Ps), {
|
|
4138
4138
|
"model-value": S(r),
|
|
4139
4139
|
group: {
|
|
4140
4140
|
name: "blocks",
|
|
4141
4141
|
pull: !0,
|
|
4142
|
-
put: (e, t, n) => k(
|
|
4142
|
+
put: (e, t, n) => k(Gi)(n)
|
|
4143
4143
|
},
|
|
4144
4144
|
animation: 150,
|
|
4145
4145
|
"ghost-class": "tpl-ghost",
|
|
@@ -4152,7 +4152,7 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4152
4152
|
class: "tpl:min-h-[60px]",
|
|
4153
4153
|
"onUpdate:modelValue": (e) => C(r, e)
|
|
4154
4154
|
}, {
|
|
4155
|
-
default: m(() => [(f(!0), x(j, null, t(S(r), (t) =>
|
|
4155
|
+
default: m(() => [(f(!0), x(j, null, t(S(r), (t) => ie((f(), x("div", { key: t.id }, [w(Hi, {
|
|
4156
4156
|
block: t,
|
|
4157
4157
|
"is-selected": k(s).state.selectedBlockId === t.id,
|
|
4158
4158
|
viewport: e.viewport,
|
|
@@ -4178,19 +4178,19 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4178
4178
|
"viewport",
|
|
4179
4179
|
"preview-mode",
|
|
4180
4180
|
"onSelect"
|
|
4181
|
-
])])), [[
|
|
4181
|
+
])])), [[ae, k(h) === !1 || !k(c)?.isHidden(t.id)]])), 128))]),
|
|
4182
4182
|
_: 2
|
|
4183
4183
|
}, 1032, [
|
|
4184
4184
|
"model-value",
|
|
4185
4185
|
"group",
|
|
4186
4186
|
"onUpdate:modelValue"
|
|
4187
|
-
]), S(r).length === 0 ? (f(), x("div",
|
|
4187
|
+
]), S(r).length === 0 ? (f(), x("div", Ls, [b("span", null, p(k(a).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
|
|
4188
4188
|
}
|
|
4189
|
-
}),
|
|
4189
|
+
}), zs = Me, Bs = {
|
|
4190
4190
|
small: 24,
|
|
4191
4191
|
medium: 32,
|
|
4192
4192
|
large: 48
|
|
4193
|
-
},
|
|
4193
|
+
}, Vs = [
|
|
4194
4194
|
"facebook",
|
|
4195
4195
|
"twitter",
|
|
4196
4196
|
"instagram",
|
|
@@ -4208,11 +4208,11 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4208
4208
|
"github",
|
|
4209
4209
|
"dribbble",
|
|
4210
4210
|
"behance"
|
|
4211
|
-
],
|
|
4211
|
+
], Hs = [
|
|
4212
4212
|
"width",
|
|
4213
4213
|
"height",
|
|
4214
4214
|
"fill"
|
|
4215
|
-
],
|
|
4215
|
+
], Us = ["d"], Ws = /* @__PURE__ */ y({
|
|
4216
4216
|
__name: "SocialIconSvg",
|
|
4217
4217
|
props: {
|
|
4218
4218
|
platform: {},
|
|
@@ -4220,7 +4220,7 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4220
4220
|
iconSize: {}
|
|
4221
4221
|
},
|
|
4222
4222
|
setup(e) {
|
|
4223
|
-
let t = e, n = M(() =>
|
|
4223
|
+
let t = e, n = M(() => zs[t.platform]), r = M(() => Bs[t.iconSize]), a = M(() => {
|
|
4224
4224
|
let e = {
|
|
4225
4225
|
display: "inline-flex",
|
|
4226
4226
|
alignItems: "center",
|
|
@@ -4264,33 +4264,33 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4264
4264
|
viewBox: "0 0 24 24",
|
|
4265
4265
|
fill: s.value,
|
|
4266
4266
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4267
|
-
}, [b("path", { d: n.value.path }, null, 8,
|
|
4267
|
+
}, [b("path", { d: n.value.path }, null, 8, Us)], 8, Hs))], 4));
|
|
4268
4268
|
}
|
|
4269
|
-
}),
|
|
4269
|
+
}), Gs = { class: "tpl:w-full" }, Ks = ["href"], qs = {
|
|
4270
4270
|
key: 1,
|
|
4271
4271
|
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)]"
|
|
4272
|
-
},
|
|
4272
|
+
}, Js = /* @__PURE__ */ y({
|
|
4273
4273
|
__name: "SocialIconsBlock",
|
|
4274
4274
|
props: {
|
|
4275
4275
|
block: {},
|
|
4276
4276
|
viewport: {}
|
|
4277
4277
|
},
|
|
4278
4278
|
setup(e) {
|
|
4279
|
-
let n = e, { t: r } =
|
|
4279
|
+
let n = e, { t: r } = Gt(), a = M(() => ({
|
|
4280
4280
|
display: "flex",
|
|
4281
4281
|
flexWrap: "wrap",
|
|
4282
4282
|
gap: `${n.block.spacing}px`,
|
|
4283
4283
|
justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
|
|
4284
4284
|
})), o = M(() => n.block.icons.length > 0);
|
|
4285
|
-
return (n, s) => (f(), x("div",
|
|
4285
|
+
return (n, s) => (f(), x("div", Gs, [o.value ? (f(), x("div", {
|
|
4286
4286
|
key: 0,
|
|
4287
4287
|
style: i(a.value)
|
|
4288
4288
|
}, [(f(!0), x(j, null, t(e.block.icons, (t) => (f(), x("a", {
|
|
4289
4289
|
key: t.id,
|
|
4290
4290
|
href: t.url || "#",
|
|
4291
4291
|
class: "tpl:cursor-default",
|
|
4292
|
-
onClick: s[0] ||=
|
|
4293
|
-
}, [w(
|
|
4292
|
+
onClick: s[0] ||= I(() => {}, ["prevent"])
|
|
4293
|
+
}, [w(Ws, {
|
|
4294
4294
|
platform: t.platform,
|
|
4295
4295
|
"icon-style": e.block.iconStyle,
|
|
4296
4296
|
"icon-size": e.block.iconSize
|
|
@@ -4298,44 +4298,44 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4298
4298
|
"platform",
|
|
4299
4299
|
"icon-style",
|
|
4300
4300
|
"icon-size"
|
|
4301
|
-
])], 8,
|
|
4301
|
+
])], 8, Ks))), 128))], 4)) : (f(), x("div", qs, [w(k(ur), { size: 16 }), b("span", null, p(k(r).social.addIcons), 1)]))]));
|
|
4302
4302
|
}
|
|
4303
|
-
}),
|
|
4303
|
+
}), Ys = { class: "tpl:w-full" }, Xs = {
|
|
4304
4304
|
key: 0,
|
|
4305
4305
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
4306
4306
|
style: {
|
|
4307
4307
|
"background-color": "var(--tpl-bg-hover)",
|
|
4308
4308
|
color: "var(--tpl-text-dim)"
|
|
4309
4309
|
}
|
|
4310
|
-
},
|
|
4310
|
+
}, Zs = /* @__PURE__ */ y({
|
|
4311
4311
|
__name: "SpacerBlock",
|
|
4312
4312
|
props: {
|
|
4313
4313
|
block: {},
|
|
4314
4314
|
viewport: {}
|
|
4315
4315
|
},
|
|
4316
4316
|
setup(e) {
|
|
4317
|
-
let t = e, n =
|
|
4317
|
+
let t = e, n = ft(At, "SpacerBlock"), r = M(() => ({
|
|
4318
4318
|
height: `${t.block.height}px`,
|
|
4319
4319
|
minHeight: `${t.block.height}px`,
|
|
4320
4320
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
4321
4321
|
}));
|
|
4322
|
-
return (t, a) => (f(), x("div",
|
|
4322
|
+
return (t, a) => (f(), x("div", Ys, [b("div", {
|
|
4323
4323
|
style: i(r.value),
|
|
4324
4324
|
class: o(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !k(n).state.previewMode }])
|
|
4325
|
-
}, [k(n).state.previewMode ?
|
|
4325
|
+
}, [k(n).state.previewMode ? P("", !0) : (f(), x("span", Xs, p(e.block.height) + "px ", 1))], 6)]));
|
|
4326
4326
|
}
|
|
4327
|
-
}),
|
|
4327
|
+
}), Qs = { class: "tpl:w-full" }, $s = { key: 0 }, ec = [
|
|
4328
4328
|
"aria-label",
|
|
4329
4329
|
"data-placeholder",
|
|
4330
4330
|
"onBlur"
|
|
4331
|
-
],
|
|
4331
|
+
], tc = [
|
|
4332
4332
|
"aria-label",
|
|
4333
4333
|
"data-placeholder",
|
|
4334
4334
|
"onBlur"
|
|
4335
|
-
],
|
|
4335
|
+
], nc = {
|
|
4336
4336
|
key: 1,
|
|
4337
4337
|
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)]"
|
|
4338
|
-
},
|
|
4338
|
+
}, rc = /*#__PURE__*/ Zt(/* @__PURE__ */ y({
|
|
4339
4339
|
__name: "TableBlock",
|
|
4340
4340
|
props: {
|
|
4341
4341
|
block: {},
|
|
@@ -4349,7 +4349,7 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4349
4349
|
updated(e, t) {
|
|
4350
4350
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
4351
4351
|
}
|
|
4352
|
-
}, r = e, { t: a } =
|
|
4352
|
+
}, r = e, { t: a } = Gt(), o = ft(At, "TableBlock"), s = M(() => r.block.rows.length > 0), c = M(() => {
|
|
4353
4353
|
let e = {
|
|
4354
4354
|
width: "100%",
|
|
4355
4355
|
borderCollapse: "collapse",
|
|
@@ -4380,31 +4380,31 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4380
4380
|
} : n);
|
|
4381
4381
|
o.updateBlock(r.block.id, { rows: a });
|
|
4382
4382
|
}
|
|
4383
|
-
return (e, r) => (f(), x("div",
|
|
4383
|
+
return (e, r) => (f(), x("div", Qs, [s.value ? (f(), x("table", {
|
|
4384
4384
|
key: 0,
|
|
4385
4385
|
style: i(c.value),
|
|
4386
4386
|
class: "tpl-table-editable"
|
|
4387
|
-
}, [d.value ? (f(), x("thead",
|
|
4387
|
+
}, [d.value ? (f(), x("thead", $s, [b("tr", null, [(f(!0), x(j, null, t(d.value.cells, (e) => ie((f(), x("th", {
|
|
4388
4388
|
key: e.id,
|
|
4389
4389
|
style: i(u.value),
|
|
4390
4390
|
"aria-label": k(a).table.cellPlaceholder,
|
|
4391
4391
|
contenteditable: "true",
|
|
4392
4392
|
"data-placeholder": k(a).table.cellPlaceholder,
|
|
4393
4393
|
onBlur: (t) => g(d.value.id, e.id, t),
|
|
4394
|
-
onKeydown: r[0] ||=
|
|
4395
|
-
onClick:
|
|
4396
|
-
}, null, 44,
|
|
4394
|
+
onKeydown: r[0] ||= oe(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
4395
|
+
onClick: I(h, ["stop"])
|
|
4396
|
+
}, null, 44, ec)), [[n, e.content]])), 128))])])) : P("", !0), b("tbody", null, [(f(!0), x(j, null, t(m.value, (e) => (f(), x("tr", { key: e.id }, [(f(!0), x(j, null, t(e.cells, (t) => ie((f(), x("td", {
|
|
4397
4397
|
key: t.id,
|
|
4398
4398
|
style: i(l.value),
|
|
4399
4399
|
"aria-label": k(a).table.cellPlaceholder,
|
|
4400
4400
|
contenteditable: "true",
|
|
4401
4401
|
"data-placeholder": k(a).table.cellPlaceholder,
|
|
4402
4402
|
onBlur: (n) => g(e.id, t.id, n),
|
|
4403
|
-
onKeydown: r[1] ||=
|
|
4404
|
-
onClick:
|
|
4405
|
-
}, null, 44,
|
|
4403
|
+
onKeydown: r[1] ||= oe(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
4404
|
+
onClick: I(h, ["stop"])
|
|
4405
|
+
}, null, 44, tc)), [[n, t.content]])), 128))]))), 128))])], 4)) : (f(), x("div", nc, [w(k(dr), { size: 16 }), b("span", null, p(k(a).table.empty), 1)]))]));
|
|
4406
4406
|
}
|
|
4407
|
-
}), [["__scopeId", "data-v-963ac422"]]),
|
|
4407
|
+
}), [["__scopeId", "data-v-963ac422"]]), ic = /* @__PURE__ */ y({
|
|
4408
4408
|
__name: "VideoPlayButton",
|
|
4409
4409
|
props: { hoverEffect: {
|
|
4410
4410
|
type: Boolean,
|
|
@@ -4422,7 +4422,7 @@ var Ls = { class: "tpl:w-full" }, Rs = {
|
|
|
4422
4422
|
});
|
|
4423
4423
|
//#endregion
|
|
4424
4424
|
//#region src/utils/videoThumbnail.ts
|
|
4425
|
-
function
|
|
4425
|
+
function ac(e) {
|
|
4426
4426
|
if (!e) return {
|
|
4427
4427
|
platform: "unknown",
|
|
4428
4428
|
videoId: null,
|
|
@@ -4454,25 +4454,25 @@ function oc(e) {
|
|
|
4454
4454
|
thumbnailUrl: null
|
|
4455
4455
|
};
|
|
4456
4456
|
}
|
|
4457
|
-
function
|
|
4458
|
-
return t ||
|
|
4457
|
+
function oc(e, t) {
|
|
4458
|
+
return t || ac(e).thumbnailUrl;
|
|
4459
4459
|
}
|
|
4460
4460
|
//#endregion
|
|
4461
4461
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
4462
|
-
var
|
|
4462
|
+
var sc = ["src", "alt"], cc = {
|
|
4463
4463
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
4464
4464
|
style: { opacity: "0.7" }
|
|
4465
|
-
},
|
|
4465
|
+
}, lc = ["href"], uc = ["src", "alt"], dc = ["src", "alt"], fc = {
|
|
4466
4466
|
key: 3,
|
|
4467
4467
|
class: "tpl:flex 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)]"
|
|
4468
|
-
},
|
|
4468
|
+
}, pc = /* @__PURE__ */ y({
|
|
4469
4469
|
__name: "VideoBlock",
|
|
4470
4470
|
props: {
|
|
4471
4471
|
block: {},
|
|
4472
4472
|
viewport: {}
|
|
4473
4473
|
},
|
|
4474
4474
|
setup(e) {
|
|
4475
|
-
let t = e, { t: n } =
|
|
4475
|
+
let t = e, { t: n } = Gt(), { syntax: r } = Qt(), a = M(() => De(t.block.url, r) || De(t.block.thumbnailUrl, r)), o = Cn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = Cn(() => a.value ? t.block.placeholderUrl : void 0), c = M(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : oc(t.block.url)), l = M(() => ({ textAlign: t.block.align })), u = M(() => {
|
|
4476
4476
|
let e = t.block.align;
|
|
4477
4477
|
return {
|
|
4478
4478
|
maxWidth: "100%",
|
|
@@ -4481,7 +4481,7 @@ var cc = ["src", "alt"], lc = {
|
|
|
4481
4481
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
4482
4482
|
marginRight: e === "center" ? "auto" : void 0
|
|
4483
4483
|
};
|
|
4484
|
-
}), d = M(() =>
|
|
4484
|
+
}), d = M(() => De(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
4485
4485
|
return (t, r) => (f(), x("div", {
|
|
4486
4486
|
class: "tpl:w-full",
|
|
4487
4487
|
style: i(l.value)
|
|
@@ -4493,28 +4493,28 @@ var cc = ["src", "alt"], lc = {
|
|
|
4493
4493
|
class: "tpl:w-full tpl:border-0",
|
|
4494
4494
|
src: k(s),
|
|
4495
4495
|
alt: e.block.alt
|
|
4496
|
-
}, null, 8,
|
|
4496
|
+
}, null, 8, sc), w(ic)], 4)) : a.value ? (f(), x("div", {
|
|
4497
4497
|
key: 1,
|
|
4498
4498
|
class: "tpl:relative tpl:!flex 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)]",
|
|
4499
4499
|
style: i([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
4500
|
-
}, [w(k(
|
|
4500
|
+
}, [w(k(fr), {
|
|
4501
4501
|
size: 36,
|
|
4502
4502
|
"stroke-width": 1.5,
|
|
4503
4503
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
4504
4504
|
style: { opacity: "0.5" }
|
|
4505
|
-
}), b("span",
|
|
4505
|
+
}), b("span", cc, [w(Zn, { text: d.value }, null, 8, ["text"])])], 4)) : c.value ? (f(), x(j, { key: 2 }, [e.block.url ? (f(), x("a", {
|
|
4506
4506
|
key: 0,
|
|
4507
4507
|
href: e.block.url,
|
|
4508
4508
|
target: "_blank",
|
|
4509
4509
|
rel: "noopener noreferrer",
|
|
4510
4510
|
class: "tpl:group tpl:relative tpl:inline-block",
|
|
4511
4511
|
style: i(u.value),
|
|
4512
|
-
onClick: r[0] ||=
|
|
4512
|
+
onClick: r[0] ||= I(() => {}, ["prevent"])
|
|
4513
4513
|
}, [b("img", {
|
|
4514
4514
|
class: "tpl:w-full tpl:border-0",
|
|
4515
4515
|
src: c.value,
|
|
4516
4516
|
alt: e.block.alt
|
|
4517
|
-
}, null, 8,
|
|
4517
|
+
}, null, 8, uc), w(ic, { "hover-effect": "" })], 12, lc)) : (f(), x("div", {
|
|
4518
4518
|
key: 1,
|
|
4519
4519
|
class: "tpl:relative tpl:inline-block",
|
|
4520
4520
|
style: i(u.value)
|
|
@@ -4522,48 +4522,48 @@ var cc = ["src", "alt"], lc = {
|
|
|
4522
4522
|
class: "tpl:w-full tpl:border-0",
|
|
4523
4523
|
src: c.value,
|
|
4524
4524
|
alt: e.block.alt
|
|
4525
|
-
}, null, 8,
|
|
4525
|
+
}, null, 8, dc), w(ic)], 4))], 64)) : (f(), x("div", fc, [w(k(fr), {
|
|
4526
4526
|
size: 40,
|
|
4527
4527
|
"stroke-width": 1.5,
|
|
4528
4528
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
4529
4529
|
}), b("span", null, p(k(n).video.addVideo), 1)]))], 4));
|
|
4530
4530
|
}
|
|
4531
|
-
}),
|
|
4532
|
-
section:
|
|
4533
|
-
title:
|
|
4534
|
-
paragraph:
|
|
4535
|
-
image:
|
|
4536
|
-
button:
|
|
4537
|
-
divider:
|
|
4538
|
-
video:
|
|
4539
|
-
social:
|
|
4540
|
-
menu:
|
|
4541
|
-
table:
|
|
4542
|
-
spacer:
|
|
4543
|
-
html:
|
|
4531
|
+
}), mc = {
|
|
4532
|
+
section: Rs,
|
|
4533
|
+
title: Wi,
|
|
4534
|
+
paragraph: Ti,
|
|
4535
|
+
image: fi,
|
|
4536
|
+
button: $n,
|
|
4537
|
+
divider: Kr,
|
|
4538
|
+
video: pc,
|
|
4539
|
+
social: Js,
|
|
4540
|
+
menu: gi,
|
|
4541
|
+
table: rc,
|
|
4542
|
+
spacer: Zs,
|
|
4543
|
+
html: Qr,
|
|
4544
4544
|
countdown: C(() => import("./CountdownBlock-DuyvGcr8.js"))
|
|
4545
4545
|
};
|
|
4546
|
-
function
|
|
4547
|
-
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } =
|
|
4546
|
+
function hc(e) {
|
|
4547
|
+
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = Gt(r);
|
|
4548
4548
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
4549
|
-
let { resolvedTheme: l } =
|
|
4549
|
+
let { resolvedTheme: l } = jn(M(() => t.state.uiTheme)), d = _(n.theme ?? {}), { themeStyles: f } = Nn({
|
|
4550
4550
|
themeOverrides: d,
|
|
4551
4551
|
resolvedTheme: l,
|
|
4552
4552
|
extraStyles: e.themeExtraStyles
|
|
4553
|
-
}), p =
|
|
4553
|
+
}), p = on({
|
|
4554
4554
|
content: t.content,
|
|
4555
4555
|
setContent: (e, n) => t.setContent(e, n),
|
|
4556
4556
|
...e.historyOptions
|
|
4557
4557
|
});
|
|
4558
|
-
|
|
4559
|
-
let m =
|
|
4558
|
+
fn(t, p);
|
|
4559
|
+
let m = cn({
|
|
4560
4560
|
addBlock: t.addBlock,
|
|
4561
4561
|
removeBlock: t.removeBlock,
|
|
4562
4562
|
updateBlock: t.updateBlock,
|
|
4563
4563
|
selectBlock: t.selectBlock,
|
|
4564
4564
|
findBlockLocation: t.findBlockLocation,
|
|
4565
4565
|
blockDefaults: n.blockDefaults
|
|
4566
|
-
}), h =
|
|
4566
|
+
}), h = un(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? ln({
|
|
4567
4567
|
content: t.content,
|
|
4568
4568
|
isDirty: () => t.state.isDirty,
|
|
4569
4569
|
...e.autoSaveOptions
|
|
@@ -4571,34 +4571,34 @@ function gc(e) {
|
|
|
4571
4571
|
g && (v = c(p.isNavigating, (e) => {
|
|
4572
4572
|
e ? g.pause() : g.resume();
|
|
4573
4573
|
}));
|
|
4574
|
-
let y =
|
|
4574
|
+
let y = An(t, {
|
|
4575
4575
|
t: a,
|
|
4576
4576
|
format: o
|
|
4577
|
-
}, n.customBlocks ?? []), b =
|
|
4578
|
-
if (b.allowCustomIgnored &&
|
|
4579
|
-
let e =
|
|
4580
|
-
e.length > 0 &&
|
|
4577
|
+
}, n.customBlocks ?? []), b = nt(n.colors);
|
|
4578
|
+
if (b.allowCustomIgnored && In.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 && In.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
|
|
4579
|
+
let e = Gn(b.presets, n.blockDefaults, n.templateDefaults);
|
|
4580
|
+
e.length > 0 && In.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.`);
|
|
4581
4581
|
}
|
|
4582
|
-
let x =
|
|
4583
|
-
|
|
4582
|
+
let x = Ln();
|
|
4583
|
+
Hn(x, mc);
|
|
4584
4584
|
let S = /* @__PURE__ */ new Set();
|
|
4585
4585
|
function C(e) {
|
|
4586
4586
|
for (let t of e) {
|
|
4587
|
-
x.registerCustom(t,
|
|
4588
|
-
for (let e of
|
|
4587
|
+
x.registerCustom(t, Wr);
|
|
4588
|
+
for (let e of qn(t, b)) S.has(e.id) || (S.add(e.id), In.warn(e.message));
|
|
4589
4589
|
}
|
|
4590
4590
|
}
|
|
4591
4591
|
n.customBlocks?.length && C(n.customBlocks);
|
|
4592
|
-
let w =
|
|
4592
|
+
let w = yn();
|
|
4593
4593
|
if (s() && u(w.dispose), e.containerEl) {
|
|
4594
4594
|
let t = e.containerEl;
|
|
4595
|
-
|
|
4595
|
+
at(document, "pointerdown", (e) => {
|
|
4596
4596
|
let n = t.value;
|
|
4597
4597
|
n && (e.composedPath?.() ?? []).includes(n) && w.claim();
|
|
4598
4598
|
}, { capture: !0 });
|
|
4599
4599
|
}
|
|
4600
4600
|
function T(r) {
|
|
4601
|
-
w.isActive() &&
|
|
4601
|
+
w.isActive() && Yn(r, {
|
|
4602
4602
|
history: p,
|
|
4603
4603
|
selectBlock: (e) => t.selectBlock(e),
|
|
4604
4604
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
@@ -4610,33 +4610,33 @@ function gc(e) {
|
|
|
4610
4610
|
onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
|
|
4611
4611
|
});
|
|
4612
4612
|
}
|
|
4613
|
-
|
|
4613
|
+
at(document, "keydown", T);
|
|
4614
4614
|
let D = _(null);
|
|
4615
|
-
E(
|
|
4616
|
-
let O =
|
|
4617
|
-
E(
|
|
4618
|
-
let k = _(
|
|
4619
|
-
E(
|
|
4620
|
-
let A =
|
|
4615
|
+
E(Tt, e.editorRoot ?? document), E(dt, D), E(pt, r), E(At, t), E(Wt, p), E(Et, m), E(kt, h), E(Vt, i), E(Ct, f), E(St, l), E(It, n.blockDefaults), E(zt, x), E(Lt, n.customBlocks ?? []), E(yt, n.paletteBlocks), E(Dt, Un(n.htmlBlockPreview)), E(Bt, b), E(Pt, Rn(t.content, x));
|
|
4616
|
+
let O = be(n.mergeTags?.syntax);
|
|
4617
|
+
E(ut, n.mergeTags?.tags ?? []), E(ot, O), E(_t, n.mergeTags?.onRequest ?? null), E(lt, n.mergeTags?.autocomplete !== !1);
|
|
4618
|
+
let k = _(Ne(n.mergeTags?.tags ?? []));
|
|
4619
|
+
E(Nt, k);
|
|
4620
|
+
let A = xn({
|
|
4621
4621
|
resolvePreview: n.resolvePreview,
|
|
4622
4622
|
getContent: () => t.content.value,
|
|
4623
4623
|
isActive: () => t.state.previewMode
|
|
4624
4624
|
});
|
|
4625
|
-
E(
|
|
4625
|
+
E(mt, A), E(ht, n.resolvePreview);
|
|
4626
4626
|
let j = M(() => !(t.state.previewMode && A.isConfigured));
|
|
4627
|
-
E(
|
|
4628
|
-
let ee =
|
|
4629
|
-
E(
|
|
4630
|
-
let
|
|
4627
|
+
E(Rt, j);
|
|
4628
|
+
let ee = wn();
|
|
4629
|
+
E(vt, ee), E(Ht, n.logicTags?.tags ?? []), E(ct, n.logicTags?.pairs ?? []), E(Mt, n.logicTags?.onRequest ?? null), E(xt, Tn()), E(gt, n.onRequestMedia ?? null), E(Ut, n.resolveImageUrl ? Sn(n.resolveImageUrl) : null), E(jt, n.displayConditions?.conditions ?? []), E(Ft, n.displayConditions?.allowCustom ?? !1), E(Ot, e.capabilities ?? {}), E(bt, y);
|
|
4630
|
+
let N = En(n.lint) ? null : Dn({
|
|
4631
4631
|
content: t.content,
|
|
4632
4632
|
options: n.lint ?? {},
|
|
4633
4633
|
updateBlock: t.updateBlock,
|
|
4634
4634
|
updateSettings: t.updateSettings,
|
|
4635
4635
|
removeBlock: t.removeBlock
|
|
4636
4636
|
});
|
|
4637
|
-
E(
|
|
4638
|
-
function
|
|
4639
|
-
v?.(),
|
|
4637
|
+
E(st, N);
|
|
4638
|
+
function P() {
|
|
4639
|
+
v?.(), N?.destroy(), g?.destroy(), p.destroy();
|
|
4640
4640
|
}
|
|
4641
4641
|
return {
|
|
4642
4642
|
t: a,
|
|
@@ -4650,14 +4650,14 @@ function gc(e) {
|
|
|
4650
4650
|
themeOverrides: d,
|
|
4651
4651
|
registry: x,
|
|
4652
4652
|
keyboardReorder: y,
|
|
4653
|
-
templateLint:
|
|
4653
|
+
templateLint: N,
|
|
4654
4654
|
popoverRoot: D,
|
|
4655
4655
|
mergeTagSampleMode: k,
|
|
4656
4656
|
previewResolution: A,
|
|
4657
4657
|
appliesConditionFilter: j,
|
|
4658
4658
|
registerCustomBlocks: C,
|
|
4659
|
-
destroy:
|
|
4659
|
+
destroy: P
|
|
4660
4660
|
};
|
|
4661
4661
|
}
|
|
4662
4662
|
//#endregion
|
|
4663
|
-
export {
|
|
4663
|
+
export { dr as A, Kn as B, jr as C, yr as D, br as E, ir as F, hn as G, kn as H, rr as I, pn as J, dn as K, nr as L, cr as M, sr as N, vr as O, or as P, er as R, Nr as S, Tr as T, On as U, In as V, xn as W, ei as _, Js as a, Wr as b, Ps as c, Oi as d, Ei as f, fi as g, gi as h, Zs as i, ur as j, hr as k, Wi as l, Ti as m, pc as n, Vs as o, Di as p, tn as q, rc as r, Rs as s, hc as t, Hi as u, Qr as v, Er as w, Fr as x, Kr as y, $n as z };
|