@templatical/editor 0.54.1 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-NMJqQKvD.js → AiAltTextPopover-D5QosKvB.js} +1 -1
- package/dist/{AiAltTextReview-Ci4zHwRc.js → AiAltTextReview-D1W_lrI_.js} +1 -1
- package/dist/{AiRewriteMenu-arKoTjsQ.js → AiRewriteMenu-BwztoMov.js} +4 -4
- package/dist/{BlockPreviewCanvas-BTieuBmH.js → BlockPreviewCanvas-C23A6FRm.js} +6 -6
- package/dist/{CloudPanels-Hxdp0doU.js → CloudPanels-Baoaj6Xf.js} +1 -1
- package/dist/{CountdownToolbar-CM4XNEuO.js → CountdownToolbar-CA_gDIdZ.js} +4 -4
- package/dist/{IssuesPanel-1wGV0wiy.js → IssuesPanel-nmFhWG1p.js} +1 -1
- package/dist/{LanguageMenu-BpxbIJEx.js → LanguageMenu-DcABUYop.js} +5 -5
- package/dist/{LogicTagInsertButton-DgTJ6Lvx.js → LogicTagInsertButton-qZ82VMFx.js} +284 -279
- package/dist/{MergeTagInput-B_51YcQO.js → MergeTagInput-JJeZbFkD.js} +1 -1
- package/dist/{MergeTagModeToggle-D3Q2z317.js → MergeTagModeToggle-DDucd1eC.js} +1 -1
- package/dist/{MergeTagTextarea-DZz1L9DE.js → MergeTagTextarea-dQ2LRrNB.js} +2 -2
- package/dist/{ParagraphEditor-B38t4E2p.js → ParagraphEditor-VXYwGoz_.js} +8 -8
- package/dist/{RestoreVersionDialog-n7FSmWXB.js → RestoreVersionDialog-BibNvAaJ.js} +1 -1
- package/dist/{RichTextEditorContent-Dstovi0m.js → RichTextEditorContent-CU5EOlM_.js} +2 -2
- package/dist/{SaveBlockDialog-B94NpmDV.js → SaveBlockDialog-S9aFi0cy.js} +4 -4
- package/dist/{SavedBlocksBrowserModal-C1vSc8iM.js → SavedBlocksBrowserModal-DIdn6B0J.js} +4 -4
- package/dist/{SavedBlocksPanels-DLDmIYeL.js → SavedBlocksPanels-Cme2M6u8.js} +1 -1
- package/dist/{SavedBlocksPickBar-ngf2sFEs.js → SavedBlocksPickBar-BDmA7r3m.js} +1 -1
- package/dist/{TemplateSettings-Baar78_s.js → TemplateSettings-C_LHLm5M.js} +4 -4
- package/dist/{TestEmailModal-CB_9I1bl.js → TestEmailModal-CLIRn7eL.js} +5 -5
- package/dist/{TestEmailPanel-BUq-dbXQ.js → TestEmailPanel-frdtjC8h.js} +1 -1
- package/dist/{TitleEditor-BLP41rwy.js → TitleEditor-D5kC56Jl.js} +4 -4
- package/dist/{Toolbar-bOZ_eq7X.js → Toolbar-D904Yw_R.js} +747 -699
- package/dist/{TplModal-DFKqmJQz.js → TplModal-BBdotDf1.js} +1 -1
- package/dist/{VersionHistoryPanels-DPxj3mec.js → VersionHistoryPanels-DhagEgOk.js} +1 -1
- package/dist/{WrapperBlock-BdVIuGMR.js → WrapperBlock-BAT3T0Cz.js} +3 -3
- package/dist/{blockTypeIcons-BUyPZ7Su.js → blockTypeIcons-CoRQV_hP.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-DOuIxWRv.js → ca-DIkMxYCN.js} +10 -3
- package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js → AiAltTextPopover-CUGOPuRo.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js.map → AiAltTextPopover-CUGOPuRo.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js → AiAltTextReview-B9vm_L-8.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js.map → AiAltTextReview-B9vm_L-8.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-YcVFv6RS.js → AiRewriteMenu-BvV_7tNZ.js} +7 -7
- package/dist/cdn/chunks/{AiRewriteMenu-YcVFv6RS.js.map → AiRewriteMenu-BvV_7tNZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-6ck15xz9.js → BlockPreviewCanvas-Dr-xGq6v.js} +7 -7
- package/dist/cdn/chunks/{BlockPreviewCanvas-6ck15xz9.js.map → BlockPreviewCanvas-Dr-xGq6v.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BHHpNckC.js → CloudPanels-CQ0vNgsH.js} +2 -2
- package/dist/cdn/chunks/{CloudPanels-BHHpNckC.js.map → CloudPanels-CQ0vNgsH.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js → CountdownToolbar-BxW-J7DX.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js.map → CountdownToolbar-BxW-J7DX.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js → IssuesPanel-BoHeIjvw.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js.map → IssuesPanel-BoHeIjvw.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-C6utRx_4.js → LanguageMenu-BnYN5N1h.js} +7 -7
- package/dist/cdn/chunks/{LanguageMenu-C6utRx_4.js.map → LanguageMenu-BnYN5N1h.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-Bhvi0nWz.js → LogicTagInsertButton-Bt2PXbQ0.js} +255 -250
- package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js → MergeTagInput-BELdMRni.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js.map → MergeTagInput-BELdMRni.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js → MergeTagModeToggle-DKfMDIEF.js} +2 -2
- package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js.map → MergeTagModeToggle-DKfMDIEF.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js → MergeTagTextarea-w6xen3Xh.js} +5 -5
- package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js.map → MergeTagTextarea-w6xen3Xh.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B3EQ0Ai6.js → ParagraphEditor-Cal9hY3U.js} +9 -9
- package/dist/cdn/chunks/{ParagraphEditor-B3EQ0Ai6.js.map → ParagraphEditor-Cal9hY3U.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DfNrVi0R.js → RestoreVersionDialog-f_ulmASY.js} +2 -2
- package/dist/cdn/chunks/{RestoreVersionDialog-DfNrVi0R.js.map → RestoreVersionDialog-f_ulmASY.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js → RichTextEditorContent-C_v0kS4A.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js.map → RichTextEditorContent-C_v0kS4A.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BqglcKcN.js → SaveBlockDialog-C6N9RFls.js} +5 -5
- package/dist/cdn/chunks/{SaveBlockDialog-BqglcKcN.js.map → SaveBlockDialog-C6N9RFls.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BewXGlrK.js → SavedBlocksBrowserModal-Bl2sl09D.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BewXGlrK.js.map → SavedBlocksBrowserModal-Bl2sl09D.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-0ZpX-jXI.js → SavedBlocksPanels-DqVcmEUK.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-0ZpX-jXI.js.map → SavedBlocksPanels-DqVcmEUK.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DHah-Uf7.js → SavedBlocksPickBar-DE-J1JVL.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPickBar-DHah-Uf7.js.map → SavedBlocksPickBar-DE-J1JVL.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js → TemplateSettings-CpoKZ8oV.js} +5 -5
- package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js.map → TemplateSettings-CpoKZ8oV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-7pUDYLrk.js → TestEmailModal-DI3z__Bd.js} +8 -8
- package/dist/cdn/chunks/{TestEmailModal-7pUDYLrk.js.map → TestEmailModal-DI3z__Bd.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DBWwMsH1.js → TestEmailPanel-Cp5d2YGn.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DBWwMsH1.js.map → TestEmailPanel-Cp5d2YGn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-VAanUjPQ.js → TitleEditor-C2syRLdZ.js} +4 -4
- package/dist/cdn/chunks/{TitleEditor-VAanUjPQ.js.map → TitleEditor-C2syRLdZ.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BlWVQRcA.js → Toolbar-NEE8qxYh.js} +754 -706
- package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DDlR7mk3.js → TplModal-B1MgvtX8.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DDlR7mk3.js.map → TplModal-B1MgvtX8.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DJDeaf1B.js → VersionHistoryPanels-Cefd8i_e.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-DJDeaf1B.js.map → VersionHistoryPanels-Cefd8i_e.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DRJnrgy-.js → WrapperBlock-DFY-7YSs.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-DRJnrgy-.js.map → WrapperBlock-DFY-7YSs.js.map} +1 -1
- package/dist/{ca-DOuIxWRv.js → cdn/chunks/ca-DIkMxYCN.js} +12 -1
- package/dist/cdn/chunks/{ca-DOuIxWRv.js.map → ca-DIkMxYCN.js.map} +1 -1
- package/dist/cdn/chunks/{composables-Jc3uZuLs.js → composables-nyxwrM27.js} +619 -597
- package/dist/cdn/chunks/composables-nyxwrM27.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js → createCloudRuntime-DJkDGKQ_.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js.map → createCloudRuntime-DJkDGKQ_.js.map} +1 -1
- package/dist/{de-DaOUfYBX.js → cdn/chunks/de-Cc6Ue0UD.js} +12 -1
- package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +1 -0
- package/dist/cdn/chunks/{en-C0pHHMiR.js → en-BX4FujAQ.js} +11 -2
- package/dist/cdn/chunks/en-BX4FujAQ.js.map +1 -0
- package/dist/{es-CxyEKr6n.js → cdn/chunks/es-Do5b-MKU.js} +12 -1
- package/dist/cdn/chunks/es-Do5b-MKU.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DcMKZpzh.js → extensions-BcwkOjVq.js} +76 -70
- package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +1 -0
- package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-S1n2Ebzp.js} +12 -1
- package/dist/cdn/chunks/fr-S1n2Ebzp.js.map +1 -0
- package/dist/cdn/chunks/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +11 -2
- package/dist/cdn/chunks/ja-DLwcq4bA.js.map +1 -0
- package/dist/{nl-DkrB-VKZ.js → cdn/chunks/nl-0JSWaZpT.js} +12 -1
- package/dist/cdn/chunks/nl-0JSWaZpT.js.map +1 -0
- package/dist/{normalizeMergeTagMarkup-CUCo7B5X.js → cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js} +102 -90
- package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +1 -0
- package/dist/{preRenderCustomBlocks-Bs3N9no-.js → cdn/chunks/preRenderCustomBlocks-Cj0XYwuh.js} +3 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-f7GEKdvw.js.map → preRenderCustomBlocks-Cj0XYwuh.js.map} +1 -1
- package/dist/{pt-BR-CY5Ye7eP.js → cdn/chunks/pt-BR-D3VlIMDZ.js} +12 -1
- package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js → sanitizeHtml-GxJCxKcP.js} +3 -3
- package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js.map → sanitizeHtml-GxJCxKcP.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-DeCYorUT.js → socialIcons-B5zrrV8-.js} +387 -386
- package/dist/cdn/chunks/{socialIcons-DeCYorUT.js.map → socialIcons-B5zrrV8-.js.map} +1 -1
- package/dist/cdn/chunks/{src-A_cKeTM_.js → src-Diw9SLIe.js} +673 -554
- package/dist/cdn/chunks/src-Diw9SLIe.js.map +1 -0
- package/dist/cdn/chunks/src-UR3AQocX.js +683 -0
- package/dist/cdn/chunks/src-UR3AQocX.js.map +1 -0
- package/dist/cdn/chunks/{src-BQUv2CYU.js → src-v47QHNmB.js} +808 -645
- package/dist/cdn/chunks/src-v47QHNmB.js.map +1 -0
- package/dist/cdn/chunks/useLocalizedDisplay-DekV8qar.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-aGfnO90D.js.map → useLocalizedDisplay-DekV8qar.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js → useLogicTag-Cbp3I7UN.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js.map → useLogicTag-Cbp3I7UN.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js → useMergeTag-1lrpNyR5.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js.map → useMergeTag-1lrpNyR5.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js → withCurrentFont-DZfmiv8V.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js.map → withCurrentFont-DZfmiv8V.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +285 -285
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-XjYKaKhY.js → composables-DPgNn9GZ.js} +963 -941
- package/dist/{createCloudRuntime-DGV5a5Af.js → createCloudRuntime-Bw8TLmQ8.js} +2 -2
- package/dist/{cdn/chunks/de-DaOUfYBX.js → de-Cc6Ue0UD.js} +10 -3
- package/dist/{dist-Cdkm20M6.js → dist-CBdk1Vcb.js} +978 -815
- package/dist/{en-C0pHHMiR.js → en-BX4FujAQ.js} +10 -1
- package/dist/{cdn/chunks/es-CxyEKr6n.js → es-Do5b-MKU.js} +10 -3
- package/dist/{extensions-BJ184osp.js → extensions-QFAARrjF.js} +336 -330
- package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-S1n2Ebzp.js} +10 -3
- package/dist/index.d.ts +14 -1
- package/dist/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +10 -1
- package/dist/{cdn/chunks/nl-DkrB-VKZ.js → nl-0JSWaZpT.js} +10 -3
- package/dist/{cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js → normalizeMergeTagMarkup-BS0nRvhq.js} +97 -89
- package/dist/{cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js → preRenderCustomBlocks-CiKvKd8V.js} +4 -6
- package/dist/{cdn/chunks/pt-BR-CY5Ye7eP.js → pt-BR-D3VlIMDZ.js} +10 -3
- package/dist/{sanitizeHtml-2rjV0r-6.js → sanitizeHtml-USjTyALR.js} +5 -5
- package/dist/{socialIcons-TFiOkpoU.js → socialIcons-NvIg5ahU.js} +401 -400
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +190 -190
- package/dist/useLocalizedDisplay-LdjosX4w.js +31 -0
- package/dist/{useLogicTag-BXXXQQmi.js → useLogicTag-D8zgkXfb.js} +1 -1
- package/dist/{useMergeTag-C9Okr87y.js → useMergeTag-k7Kr0nMd.js} +3 -3
- package/dist/{withCurrentFont-DJiQqZzL.js → withCurrentFont-Bzeg_gfH.js} +1 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +0 -1
- package/dist/cdn/chunks/composables-Jc3uZuLs.js.map +0 -1
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
- package/dist/cdn/chunks/extensions-DcMKZpzh.js.map +0 -1
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
- package/dist/cdn/chunks/src-8bYYJPCt.js +0 -671
- package/dist/cdn/chunks/src-8bYYJPCt.js.map +0 -1
- package/dist/cdn/chunks/src-A_cKeTM_.js.map +0 -1
- package/dist/cdn/chunks/src-BQUv2CYU.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +0 -33
- package/dist/useLocalizedDisplay-DNNwDRxL.js +0 -31
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S, u as C, v as w, w as T, y as E } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
3
3
|
import { a as D, o as O } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
4
|
-
import {
|
|
5
|
-
import { B as
|
|
4
|
+
import { O as k, Ot as A, Vt as j, an as M, f as N, g as P, gt as F, i as I, k as L, mt as ee, n as te, ot as R, r as z, rn as ne, st as re, t as ie } from "./dist-CBdk1Vcb.js";
|
|
5
|
+
import { B as ae, T as oe, _ as se, b as ce, d as le, f as ue, g as de, h as fe, i as pe, k as me, l as he, m as ge, p as _e, r as ve, s as ye, u as be, v as xe } from "./socialIcons-NvIg5ahU.js";
|
|
6
6
|
import { t as Se } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { c as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { n as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { B as
|
|
23
|
-
import { t as
|
|
24
|
-
import { n as
|
|
25
|
-
import { t as
|
|
26
|
-
import { S as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { c as
|
|
29
|
-
import { n as
|
|
30
|
-
import { t as
|
|
31
|
-
import { n as
|
|
32
|
-
import { t as
|
|
33
|
-
var
|
|
7
|
+
import { t as B } from "./createLucideIcon-CgDE3xAR.js";
|
|
8
|
+
import { c as V } from "./LogicTagInsertButton-qZ82VMFx.js";
|
|
9
|
+
import { t as Ce } from "./chevron-down-DmamTEWQ.js";
|
|
10
|
+
import { t as we } from "./circle-alert-BTKC9vkq.js";
|
|
11
|
+
import { n as H, t as Te } from "./blockTypeIcons-CoRQV_hP.js";
|
|
12
|
+
import { n as Ee } from "./upload-Cp8o-hrN.js";
|
|
13
|
+
import { t as De } from "./image-Ch8tR35K.js";
|
|
14
|
+
import { t as Oe } from "./info-DzSD-Wpk.js";
|
|
15
|
+
import { t as ke } from "./link-oDn9AR2w.js";
|
|
16
|
+
import { n as Ae, t as je } from "./smartphone-BPpWYrwV.js";
|
|
17
|
+
import { t as U } from "./plus-Cr0Mis63.js";
|
|
18
|
+
import { t as Me } from "./refresh-cw-_ZLOIEvA.js";
|
|
19
|
+
import { n as Ne, r as Pe, t as Fe } from "./text-align-start-4mwX2o-F.js";
|
|
20
|
+
import { t as Ie } from "./trash-B99WixTA.js";
|
|
21
|
+
import { t as Le } from "./x-BIBStNMS.js";
|
|
22
|
+
import { B as Re, C as ze, O as Be, T as Ve, U as He, X as Ue, _ as We, b as Ge, h as Ke, ot as qe, p as Je, r as Ye, v as Xe } from "./keys-BCqskl51.js";
|
|
23
|
+
import { t as W } from "./useI18n-CgtvtF4C.js";
|
|
24
|
+
import { n as Ze } from "./useLocalizedDisplay-LdjosX4w.js";
|
|
25
|
+
import { t as Qe } from "./languageName-DEEOhDWI.js";
|
|
26
|
+
import { S as $e, _ as G, b as et, c as tt, g as K, h as q, r as nt, v as J, y as rt } from "./styleConstants-CgiNKdnc.js";
|
|
27
|
+
import { _ as it } from "./dist-CX7skkvG.js";
|
|
28
|
+
import { c as at, r as ot } from "./usePopoverPosition-VDQjyX_A.js";
|
|
29
|
+
import { n as Y, t as st } from "./MergeTagTextarea-dQ2LRrNB.js";
|
|
30
|
+
import { t as X } from "./ToggleSwitch-R3wCCYE6.js";
|
|
31
|
+
import { n as ct, t as lt } from "./withCurrentFont-Bzeg_gfH.js";
|
|
32
|
+
import { t as Z } from "./MergeTagInput-JJeZbFkD.js";
|
|
33
|
+
var ut = B({
|
|
34
34
|
name: "lock-open",
|
|
35
35
|
size: 24,
|
|
36
36
|
node: [["rect", {
|
|
@@ -46,7 +46,7 @@ var ft = Ce({
|
|
|
46
46
|
key: "1mm8w8"
|
|
47
47
|
}]],
|
|
48
48
|
aliases: ["unlock"]
|
|
49
|
-
}),
|
|
49
|
+
}), dt = B({
|
|
50
50
|
name: "lock",
|
|
51
51
|
size: 24,
|
|
52
52
|
node: [["rect", {
|
|
@@ -61,7 +61,7 @@ var ft = Ce({
|
|
|
61
61
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
62
62
|
key: "fwvmzm"
|
|
63
63
|
}]]
|
|
64
|
-
}),
|
|
64
|
+
}), ft = B({
|
|
65
65
|
name: "unlink",
|
|
66
66
|
size: 24,
|
|
67
67
|
node: [
|
|
@@ -102,14 +102,14 @@ var ft = Ce({
|
|
|
102
102
|
key: "ox905f"
|
|
103
103
|
}]
|
|
104
104
|
]
|
|
105
|
-
}),
|
|
105
|
+
}), pt = [
|
|
106
106
|
"aria-checked",
|
|
107
107
|
"aria-label",
|
|
108
108
|
"disabled",
|
|
109
109
|
"aria-disabled",
|
|
110
110
|
"title",
|
|
111
111
|
"onClick"
|
|
112
|
-
],
|
|
112
|
+
], mt = { key: 1 }, Q = /* @__PURE__ */ E({
|
|
113
113
|
__name: "SlidingPillSelect",
|
|
114
114
|
props: {
|
|
115
115
|
options: {},
|
|
@@ -154,14 +154,14 @@ var ft = Ce({
|
|
|
154
154
|
key: 0,
|
|
155
155
|
size: 14,
|
|
156
156
|
"stroke-width": 2
|
|
157
|
-
})) : (a(), v("span",
|
|
157
|
+
})) : (a(), v("span", mt, r(t.label), 1))], 12, pt))), 128))], 4));
|
|
158
158
|
}
|
|
159
|
-
}),
|
|
159
|
+
}), ht = { class: "tpl:flex tpl:items-stretch" }, gt = [
|
|
160
160
|
"data-testid",
|
|
161
161
|
"value",
|
|
162
162
|
"min",
|
|
163
163
|
"max"
|
|
164
|
-
],
|
|
164
|
+
], _t = /* @__PURE__ */ E({
|
|
165
165
|
__name: "NumberWithSuffix",
|
|
166
166
|
props: {
|
|
167
167
|
modelValue: {},
|
|
@@ -177,22 +177,22 @@ var ft = Ce({
|
|
|
177
177
|
let t = e.target;
|
|
178
178
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
179
179
|
}
|
|
180
|
-
return (t, n) => (a(), v("div",
|
|
180
|
+
return (t, n) => (a(), v("div", ht, [b("input", {
|
|
181
181
|
type: "number",
|
|
182
182
|
"data-testid": e.testid,
|
|
183
|
-
class: o(h(
|
|
183
|
+
class: o(h(K)),
|
|
184
184
|
value: e.modelValue,
|
|
185
185
|
min: e.min,
|
|
186
186
|
max: e.max,
|
|
187
187
|
onInput: i
|
|
188
|
-
}, null, 42,
|
|
188
|
+
}, null, 42, gt), b("span", { class: o(h(G)) }, r(e.suffix), 3)]));
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
190
|
+
}), vt = [
|
|
191
191
|
"aria-pressed",
|
|
192
192
|
"aria-label",
|
|
193
193
|
"title",
|
|
194
194
|
"data-testid"
|
|
195
|
-
],
|
|
195
|
+
], yt = /* @__PURE__ */ E({
|
|
196
196
|
__name: "LinkToggle",
|
|
197
197
|
props: {
|
|
198
198
|
linked: { type: Boolean },
|
|
@@ -211,20 +211,20 @@ var ft = Ce({
|
|
|
211
211
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
212
212
|
"data-testid": e.testid,
|
|
213
213
|
onClick: r[0] ||= (e) => n("toggle")
|
|
214
|
-
}, [e.linked ? (a(), C(h(
|
|
214
|
+
}, [e.linked ? (a(), C(h(ke), {
|
|
215
215
|
key: 0,
|
|
216
216
|
size: 14,
|
|
217
217
|
"stroke-width": 2
|
|
218
|
-
})) : (a(), C(h(
|
|
218
|
+
})) : (a(), C(h(ft), {
|
|
219
219
|
key: 1,
|
|
220
220
|
size: 14,
|
|
221
221
|
"stroke-width": 2
|
|
222
|
-
}))], 10,
|
|
222
|
+
}))], 10, vt));
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
224
|
+
}), bt = {
|
|
225
225
|
key: 0,
|
|
226
226
|
class: "tpl:mb-3.5"
|
|
227
|
-
},
|
|
227
|
+
}, xt = { class: "tpl:mb-3.5" }, St = { class: "tpl:mb-3.5" }, Ct = /* @__PURE__ */ E({
|
|
228
228
|
__name: "BorderControl",
|
|
229
229
|
props: {
|
|
230
230
|
path: {},
|
|
@@ -233,7 +233,7 @@ var ft = Ce({
|
|
|
233
233
|
},
|
|
234
234
|
emits: ["update:modelValue"],
|
|
235
235
|
setup(e, { emit: n }) {
|
|
236
|
-
let i = e, s = n, { t: c } =
|
|
236
|
+
let i = e, s = n, { t: c } = W(), l = {
|
|
237
237
|
width: 0,
|
|
238
238
|
style: "solid",
|
|
239
239
|
color: "#000000"
|
|
@@ -243,7 +243,7 @@ var ft = Ce({
|
|
|
243
243
|
}
|
|
244
244
|
let f = m(() => {
|
|
245
245
|
let e = i.modelValue;
|
|
246
|
-
return !e ||
|
|
246
|
+
return !e || I.every((t) => d(e[t], e.top));
|
|
247
247
|
}), y = _(f.value);
|
|
248
248
|
t(f, (e) => {
|
|
249
249
|
!e && y.value && (y.value = !1);
|
|
@@ -254,13 +254,13 @@ var ft = Ce({
|
|
|
254
254
|
}), T = (e) => !!e && e.width > 0;
|
|
255
255
|
function E(e) {
|
|
256
256
|
if (y.value) {
|
|
257
|
-
s("update:modelValue", T(e) ?
|
|
257
|
+
s("update:modelValue", T(e) ? M(e) : void 0);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
let t = {
|
|
261
|
-
...i.modelValue ??
|
|
261
|
+
...i.modelValue ?? M(l),
|
|
262
262
|
[x.value]: e
|
|
263
|
-
}, n =
|
|
263
|
+
}, n = I.some((e) => T(t[e]));
|
|
264
264
|
s("update:modelValue", n ? t : void 0);
|
|
265
265
|
}
|
|
266
266
|
function D(e) {
|
|
@@ -283,18 +283,18 @@ var ft = Ce({
|
|
|
283
283
|
y.value = !0;
|
|
284
284
|
let e = i.modelValue;
|
|
285
285
|
if (!e) return;
|
|
286
|
-
let t = T(e[x.value]) ? e[x.value] :
|
|
287
|
-
s("update:modelValue", t ?
|
|
286
|
+
let t = T(e[x.value]) ? e[x.value] : I.map((t) => e[t]).find(T);
|
|
287
|
+
s("update:modelValue", t ? M(t) : void 0);
|
|
288
288
|
}
|
|
289
|
-
let A = m(() =>
|
|
289
|
+
let A = m(() => I.map((e) => ({
|
|
290
290
|
value: e,
|
|
291
291
|
label: c.spacingControl[e]
|
|
292
292
|
})));
|
|
293
|
-
return (t, n) => (a(), C(
|
|
293
|
+
return (t, n) => (a(), C(Y, {
|
|
294
294
|
path: e.path,
|
|
295
295
|
label: h(c).blockSettings.border
|
|
296
296
|
}, {
|
|
297
|
-
"label-actions": u(() => [p(
|
|
297
|
+
"label-actions": u(() => [p(yt, {
|
|
298
298
|
linked: y.value,
|
|
299
299
|
"link-label": h(c).blockSettings.linkSides,
|
|
300
300
|
"unlink-label": h(c).blockSettings.unlinkSides,
|
|
@@ -307,19 +307,19 @@ var ft = Ce({
|
|
|
307
307
|
"testid"
|
|
308
308
|
])]),
|
|
309
309
|
default: u(() => [
|
|
310
|
-
y.value ? g("", !0) : (a(), v("div",
|
|
310
|
+
y.value ? g("", !0) : (a(), v("div", bt, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.borderSide), 3), p(Q, {
|
|
311
311
|
options: A.value,
|
|
312
312
|
"model-value": x.value,
|
|
313
313
|
"onUpdate:modelValue": n[0] ||= (e) => x.value = e
|
|
314
314
|
}, null, 8, ["options", "model-value"])])),
|
|
315
|
-
b("div",
|
|
315
|
+
b("div", xt, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.borderWidth), 3), p(_t, {
|
|
316
316
|
"model-value": w.value.width,
|
|
317
317
|
min: 0,
|
|
318
318
|
suffix: "px",
|
|
319
319
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
320
320
|
"onUpdate:modelValue": D
|
|
321
321
|
}, null, 8, ["model-value", "testid"])]),
|
|
322
|
-
w.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div",
|
|
322
|
+
w.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div", St, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.borderStyle), 3), p(Q, {
|
|
323
323
|
options: [
|
|
324
324
|
{
|
|
325
325
|
value: "solid",
|
|
@@ -336,7 +336,7 @@ var ft = Ce({
|
|
|
336
336
|
],
|
|
337
337
|
"model-value": w.value.style,
|
|
338
338
|
"onUpdate:modelValue": n[1] ||= (e) => O({ style: e })
|
|
339
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(
|
|
339
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.borderColor), 3), p(V, {
|
|
340
340
|
"model-value": w.value.color,
|
|
341
341
|
"onUpdate:modelValue": n[2] ||= (e) => O({ color: e })
|
|
342
342
|
}, null, 8, ["model-value"])])], 64)) : g("", !0)
|
|
@@ -344,10 +344,10 @@ var ft = Ce({
|
|
|
344
344
|
_: 1
|
|
345
345
|
}, 8, ["path", "label"]));
|
|
346
346
|
}
|
|
347
|
-
}),
|
|
347
|
+
}), wt = {
|
|
348
348
|
key: 1,
|
|
349
349
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
350
|
-
},
|
|
350
|
+
}, Tt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Et = /* @__PURE__ */ E({
|
|
351
351
|
__name: "RadiusControl",
|
|
352
352
|
props: {
|
|
353
353
|
path: {},
|
|
@@ -358,7 +358,7 @@ var ft = Ce({
|
|
|
358
358
|
},
|
|
359
359
|
emits: ["update:modelValue"],
|
|
360
360
|
setup(e, { emit: n }) {
|
|
361
|
-
let i = e, o = n, { t: c } =
|
|
361
|
+
let i = e, o = n, { t: c } = W(), l = {
|
|
362
362
|
topLeft: "cornerTopLeft",
|
|
363
363
|
topRight: "cornerTopRight",
|
|
364
364
|
bottomRight: "cornerBottomRight",
|
|
@@ -376,7 +376,7 @@ var ft = Ce({
|
|
|
376
376
|
bottomRight: e,
|
|
377
377
|
bottomLeft: e
|
|
378
378
|
} : e;
|
|
379
|
-
}), g = m(() =>
|
|
379
|
+
}), g = m(() => z.every((e) => f.value[e] === f.value.topLeft)), y = _(g.value);
|
|
380
380
|
t(g, (e) => {
|
|
381
381
|
!e && y.value && (y.value = !1);
|
|
382
382
|
});
|
|
@@ -395,11 +395,11 @@ var ft = Ce({
|
|
|
395
395
|
function E() {
|
|
396
396
|
y.value = !y.value, y.value && o("update:modelValue", f.value.topLeft);
|
|
397
397
|
}
|
|
398
|
-
return (t, n) => (a(), C(
|
|
398
|
+
return (t, n) => (a(), C(Y, {
|
|
399
399
|
path: e.path,
|
|
400
400
|
label: e.label
|
|
401
401
|
}, {
|
|
402
|
-
"label-actions": u(() => [p(
|
|
402
|
+
"label-actions": u(() => [p(yt, {
|
|
403
403
|
linked: y.value,
|
|
404
404
|
"link-label": h(c).blockSettings.linkCorners,
|
|
405
405
|
"unlink-label": h(c).blockSettings.unlinkCorners,
|
|
@@ -411,7 +411,7 @@ var ft = Ce({
|
|
|
411
411
|
"unlink-label",
|
|
412
412
|
"testid"
|
|
413
413
|
])]),
|
|
414
|
-
default: u(() => [y.value ? (a(), C(
|
|
414
|
+
default: u(() => [y.value ? (a(), C(_t, {
|
|
415
415
|
key: 0,
|
|
416
416
|
"model-value": f.value.topLeft,
|
|
417
417
|
min: 0,
|
|
@@ -423,7 +423,7 @@ var ft = Ce({
|
|
|
423
423
|
"model-value",
|
|
424
424
|
"max",
|
|
425
425
|
"testid"
|
|
426
|
-
])) : (a(), v("div",
|
|
426
|
+
])) : (a(), v("div", wt, [(a(), v(S, null, s(d, (t) => b("div", { key: t }, [b("label", Tt, r(h(c).blockSettings[l[t]]), 1), p(_t, {
|
|
427
427
|
"model-value": f.value[t],
|
|
428
428
|
min: 0,
|
|
429
429
|
max: e.max,
|
|
@@ -439,10 +439,10 @@ var ft = Ce({
|
|
|
439
439
|
_: 1
|
|
440
440
|
}, 8, ["path", "label"]));
|
|
441
441
|
}
|
|
442
|
-
}),
|
|
442
|
+
}), Dt = ["value"], Ot = { value: "" }, kt = ["value"], At = { class: "tpl:flex tpl:items-stretch" }, jt = ["value"], Mt = ["value"], Nt = { value: "auto" }, Pt = { value: "full" }, Ft = { value: "custom" }, It = {
|
|
443
443
|
key: 0,
|
|
444
444
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
445
|
-
},
|
|
445
|
+
}, Lt = ["value"], Rt = 200, zt = /* @__PURE__ */ E({
|
|
446
446
|
__name: "ButtonToolbar",
|
|
447
447
|
props: {
|
|
448
448
|
block: {},
|
|
@@ -450,61 +450,64 @@ var ft = Ce({
|
|
|
450
450
|
},
|
|
451
451
|
emits: ["update"],
|
|
452
452
|
setup(e, { emit: t }) {
|
|
453
|
-
let n = e, i = t, { t: c } =
|
|
453
|
+
let n = e, i = t, { t: c } = W(), l = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
454
454
|
function d(e, t) {
|
|
455
455
|
i("update", { [e]: t });
|
|
456
456
|
}
|
|
457
457
|
function f(e) {
|
|
458
|
-
e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width :
|
|
458
|
+
e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width : Rt) : d("width", void 0);
|
|
459
459
|
}
|
|
460
460
|
function _(e) {
|
|
461
|
+
d("fontWeight", e === "bold" ? void 0 : e);
|
|
462
|
+
}
|
|
463
|
+
function y(e) {
|
|
461
464
|
let t = Number(e);
|
|
462
465
|
!Number.isFinite(t) || t <= 0 || d("width", t);
|
|
463
466
|
}
|
|
464
467
|
return (t, n) => (a(), v(S, null, [
|
|
465
|
-
p(
|
|
468
|
+
p(Y, {
|
|
466
469
|
label: h(c).button.fontFamily,
|
|
467
470
|
class: "tpl:mb-3.5",
|
|
468
471
|
path: "fontFamily"
|
|
469
472
|
}, {
|
|
470
473
|
default: u(() => [b("select", {
|
|
471
|
-
class: o(h(
|
|
472
|
-
value: h(
|
|
474
|
+
class: o(h(q)),
|
|
475
|
+
value: h(lt)(e.block.fontFamily),
|
|
473
476
|
onChange: n[0] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
474
|
-
}, [b("option",
|
|
477
|
+
}, [b("option", Ot, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
475
478
|
key: e.value,
|
|
476
479
|
value: e.value
|
|
477
|
-
}, r(e.label), 9,
|
|
480
|
+
}, r(e.label), 9, kt))), 128))], 42, Dt)]),
|
|
478
481
|
_: 1
|
|
479
482
|
}, 8, ["label"]),
|
|
480
|
-
p(
|
|
483
|
+
p(Y, {
|
|
481
484
|
label: h(c).button.text,
|
|
482
485
|
class: "tpl:mb-3.5",
|
|
483
486
|
path: "text"
|
|
484
487
|
}, {
|
|
485
|
-
default: u(() => [p(
|
|
488
|
+
default: u(() => [p(Z, {
|
|
486
489
|
"model-value": e.block.text,
|
|
487
490
|
type: "text",
|
|
488
491
|
"onUpdate:modelValue": n[1] ||= (e) => d("text", e)
|
|
489
492
|
}, null, 8, ["model-value"])]),
|
|
490
493
|
_: 1
|
|
491
494
|
}, 8, ["label"]),
|
|
492
|
-
p(
|
|
495
|
+
p(Y, {
|
|
493
496
|
label: h(c).button.url,
|
|
494
497
|
class: "tpl:mb-3.5",
|
|
495
498
|
path: "url"
|
|
496
499
|
}, {
|
|
497
|
-
default: u(() => [p(
|
|
500
|
+
default: u(() => [p(Z, {
|
|
498
501
|
"model-value": e.block.url,
|
|
499
502
|
type: "url",
|
|
500
503
|
placeholder: h(c).button.urlPlaceholder,
|
|
501
504
|
"onUpdate:modelValue": n[2] ||= (e) => d("url", e)
|
|
502
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), C(
|
|
505
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), C(Y, {
|
|
503
506
|
key: 0,
|
|
504
507
|
path: "openInNewTab",
|
|
505
508
|
label: h(c).button.openInNewTab
|
|
506
509
|
}, {
|
|
507
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
510
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
508
511
|
"control-id": t,
|
|
509
512
|
"hide-label": "",
|
|
510
513
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -520,36 +523,36 @@ var ft = Ce({
|
|
|
520
523
|
}, 8, ["label"])) : g("", !0)]),
|
|
521
524
|
_: 1
|
|
522
525
|
}, 8, ["label"]),
|
|
523
|
-
p(
|
|
526
|
+
p(Y, {
|
|
524
527
|
label: h(c).button.background,
|
|
525
528
|
class: "tpl:mb-3.5",
|
|
526
529
|
path: "backgroundColor"
|
|
527
530
|
}, {
|
|
528
|
-
default: u(() => [p(
|
|
531
|
+
default: u(() => [p(V, {
|
|
529
532
|
"model-value": e.block.backgroundColor,
|
|
530
533
|
"allow-transparent": "",
|
|
531
534
|
"onUpdate:modelValue": n[4] ||= (e) => d("backgroundColor", e)
|
|
532
535
|
}, null, 8, ["model-value"])]),
|
|
533
536
|
_: 1
|
|
534
537
|
}, 8, ["label"]),
|
|
535
|
-
p(
|
|
538
|
+
p(Y, {
|
|
536
539
|
label: h(c).button.textColor,
|
|
537
540
|
class: "tpl:mb-3.5",
|
|
538
541
|
path: "textColor"
|
|
539
542
|
}, {
|
|
540
|
-
default: u(() => [p(
|
|
543
|
+
default: u(() => [p(V, {
|
|
541
544
|
"model-value": e.block.textColor,
|
|
542
545
|
"onUpdate:modelValue": n[5] ||= (e) => d("textColor", e)
|
|
543
546
|
}, null, 8, ["model-value"])]),
|
|
544
547
|
_: 1
|
|
545
548
|
}, 8, ["label"]),
|
|
546
|
-
p(
|
|
549
|
+
p(Ct, {
|
|
547
550
|
path: "border",
|
|
548
551
|
"model-value": e.block.border,
|
|
549
552
|
"testid-prefix": "button",
|
|
550
553
|
"onUpdate:modelValue": n[6] ||= (e) => d("border", e)
|
|
551
554
|
}, null, 8, ["model-value"]),
|
|
552
|
-
p(
|
|
555
|
+
p(Et, {
|
|
553
556
|
path: "borderRadius",
|
|
554
557
|
"model-value": e.block.borderRadius,
|
|
555
558
|
label: h(c).button.borderRadius,
|
|
@@ -557,49 +560,74 @@ var ft = Ce({
|
|
|
557
560
|
"testid-prefix": "button",
|
|
558
561
|
"onUpdate:modelValue": n[7] ||= (e) => d("borderRadius", e)
|
|
559
562
|
}, null, 8, ["model-value", "label"]),
|
|
560
|
-
p(
|
|
563
|
+
p(Y, {
|
|
561
564
|
label: h(c).button.fontSize,
|
|
562
565
|
class: "tpl:mb-3.5",
|
|
563
566
|
path: "fontSize"
|
|
564
567
|
}, {
|
|
565
|
-
default: u(() => [b("div",
|
|
568
|
+
default: u(() => [b("div", At, [b("input", {
|
|
566
569
|
type: "number",
|
|
567
|
-
class: o(h(
|
|
570
|
+
class: o(h(K)),
|
|
568
571
|
value: e.block.fontSize,
|
|
569
572
|
min: "10",
|
|
570
573
|
max: "36",
|
|
571
574
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
572
|
-
}, null, 42,
|
|
575
|
+
}, null, 42, jt), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
573
576
|
_: 1
|
|
574
577
|
}, 8, ["label"]),
|
|
575
|
-
p(
|
|
578
|
+
p(Y, {
|
|
579
|
+
label: h(c).button.fontWeight,
|
|
580
|
+
class: "tpl:mb-3.5",
|
|
581
|
+
path: "fontWeight"
|
|
582
|
+
}, {
|
|
583
|
+
default: u(() => [p(Q, {
|
|
584
|
+
options: [
|
|
585
|
+
{
|
|
586
|
+
value: "regular",
|
|
587
|
+
label: h(c).button.fontWeightRegular
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
value: "medium",
|
|
591
|
+
label: h(c).button.fontWeightMedium
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
value: "bold",
|
|
595
|
+
label: h(c).button.fontWeightBold
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"model-value": e.block.fontWeight ?? "bold",
|
|
599
|
+
"onUpdate:modelValue": _
|
|
600
|
+
}, null, 8, ["options", "model-value"])]),
|
|
601
|
+
_: 1
|
|
602
|
+
}, 8, ["label"]),
|
|
603
|
+
p(Y, {
|
|
576
604
|
label: h(c).button.width,
|
|
577
605
|
class: "tpl:mb-3.5",
|
|
578
606
|
path: "width"
|
|
579
607
|
}, {
|
|
580
608
|
default: u(() => [b("select", {
|
|
581
|
-
class: o(h(
|
|
609
|
+
class: o(h(q)),
|
|
582
610
|
value: l.value,
|
|
583
611
|
onChange: n[9] ||= (e) => f(e.target.value)
|
|
584
612
|
}, [
|
|
585
|
-
b("option",
|
|
586
|
-
b("option",
|
|
587
|
-
b("option",
|
|
588
|
-
], 42,
|
|
613
|
+
b("option", Nt, r(h(c).button.widthAuto), 1),
|
|
614
|
+
b("option", Pt, r(h(c).button.fullWidth), 1),
|
|
615
|
+
b("option", Ft, r(h(c).button.widthCustom), 1)
|
|
616
|
+
], 42, Mt), l.value === "custom" ? (a(), v("div", It, [b("input", {
|
|
589
617
|
type: "number",
|
|
590
|
-
class: o(h(
|
|
591
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
618
|
+
class: o(h(K)),
|
|
619
|
+
value: typeof e.block.width == "number" ? e.block.width : Rt,
|
|
592
620
|
min: "20",
|
|
593
|
-
onInput: n[10] ||= (e) =>
|
|
594
|
-
}, null, 42,
|
|
621
|
+
onInput: n[10] ||= (e) => y(e.target.value)
|
|
622
|
+
}, null, 42, Lt), b("span", { class: o(h(G)) }, "px", 2)])) : g("", !0)]),
|
|
595
623
|
_: 1
|
|
596
624
|
}, 8, ["label"]),
|
|
597
|
-
p(
|
|
625
|
+
p(Y, {
|
|
598
626
|
label: h(c).title.align,
|
|
599
627
|
class: "tpl:mb-3.5",
|
|
600
628
|
path: "align"
|
|
601
629
|
}, {
|
|
602
|
-
default: u(() => [p(
|
|
630
|
+
default: u(() => [p(Q, {
|
|
603
631
|
options: [
|
|
604
632
|
{
|
|
605
633
|
value: "left",
|
|
@@ -621,7 +649,7 @@ var ft = Ce({
|
|
|
621
649
|
}, 8, ["label"])
|
|
622
650
|
], 64));
|
|
623
651
|
}
|
|
624
|
-
}),
|
|
652
|
+
}), Bt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Vt = { class: "tpl:flex tpl:items-center" }, Ht = ["aria-label"], Ut = ["value", "aria-label"], Wt = ["aria-label"], Gt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Kt = { class: "tpl:flex tpl:items-center" }, qt = ["aria-label"], Jt = ["value", "aria-label"], Yt = ["aria-label"], Xt = ["aria-label", "title"], Zt = { class: "tpl:flex tpl:items-center" }, Qt = ["aria-label"], $t = ["value", "aria-label"], en = ["aria-label"], tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], $ = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", on = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", sn = /*#__PURE__*/ Se(/* @__PURE__ */ E({
|
|
625
653
|
__name: "SpacingControl",
|
|
626
654
|
props: {
|
|
627
655
|
path: {},
|
|
@@ -630,7 +658,7 @@ var ft = Ce({
|
|
|
630
658
|
},
|
|
631
659
|
emits: ["update:modelValue"],
|
|
632
660
|
setup(e, { emit: n }) {
|
|
633
|
-
let r = e, i = n, { t: s } =
|
|
661
|
+
let r = e, i = n, { t: s } = W(), c = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = _(c.value);
|
|
634
662
|
t(c, (e) => {
|
|
635
663
|
!e && l.value && (l.value = !1);
|
|
636
664
|
});
|
|
@@ -669,131 +697,131 @@ var ft = Ce({
|
|
|
669
697
|
});
|
|
670
698
|
}
|
|
671
699
|
}
|
|
672
|
-
return (t, n) => (a(), C(
|
|
700
|
+
return (t, n) => (a(), C(Y, {
|
|
673
701
|
class: "spacing-control",
|
|
674
702
|
path: e.path,
|
|
675
703
|
label: e.label
|
|
676
704
|
}, {
|
|
677
|
-
default: u(() => [b("div",
|
|
678
|
-
b("div",
|
|
705
|
+
default: u(() => [b("div", Bt, [
|
|
706
|
+
b("div", Vt, [
|
|
679
707
|
b("button", {
|
|
680
708
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
681
|
-
class: o([
|
|
709
|
+
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
682
710
|
onClick: n[0] ||= (e) => d("top", -1)
|
|
683
|
-
}, [p(h(
|
|
711
|
+
}, [p(h(H), {
|
|
684
712
|
size: 12,
|
|
685
713
|
"stroke-width": 2
|
|
686
|
-
})], 10,
|
|
714
|
+
})], 10, Ht),
|
|
687
715
|
b("input", {
|
|
688
716
|
type: "number",
|
|
689
|
-
class: o(
|
|
717
|
+
class: o(on),
|
|
690
718
|
value: e.modelValue.top,
|
|
691
719
|
"aria-label": h(s).spacingControl.top,
|
|
692
720
|
min: "0",
|
|
693
721
|
onInput: n[1] ||= (e) => f("top", Number(e.target.value))
|
|
694
|
-
}, null, 40,
|
|
722
|
+
}, null, 40, Ut),
|
|
695
723
|
b("button", {
|
|
696
724
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
697
|
-
class: o([
|
|
725
|
+
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
698
726
|
onClick: n[2] ||= (e) => d("top", 1)
|
|
699
|
-
}, [p(h(
|
|
727
|
+
}, [p(h(U), {
|
|
700
728
|
size: 12,
|
|
701
729
|
"stroke-width": 2
|
|
702
|
-
})], 10,
|
|
730
|
+
})], 10, Wt)
|
|
703
731
|
]),
|
|
704
|
-
b("div",
|
|
705
|
-
b("div",
|
|
732
|
+
b("div", Gt, [
|
|
733
|
+
b("div", Kt, [
|
|
706
734
|
b("button", {
|
|
707
735
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
708
|
-
class: o([
|
|
736
|
+
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
709
737
|
onClick: n[3] ||= (e) => d("left", -1)
|
|
710
|
-
}, [p(h(
|
|
738
|
+
}, [p(h(H), {
|
|
711
739
|
size: 12,
|
|
712
740
|
"stroke-width": 2
|
|
713
|
-
})], 10,
|
|
741
|
+
})], 10, qt),
|
|
714
742
|
b("input", {
|
|
715
743
|
type: "number",
|
|
716
|
-
class: o(
|
|
744
|
+
class: o(on),
|
|
717
745
|
value: e.modelValue.left,
|
|
718
746
|
"aria-label": h(s).spacingControl.left,
|
|
719
747
|
min: "0",
|
|
720
748
|
onInput: n[4] ||= (e) => f("left", Number(e.target.value))
|
|
721
|
-
}, null, 40,
|
|
749
|
+
}, null, 40, Jt),
|
|
722
750
|
b("button", {
|
|
723
751
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
724
|
-
class: o([
|
|
752
|
+
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
725
753
|
onClick: n[5] ||= (e) => d("left", 1)
|
|
726
|
-
}, [p(h(
|
|
754
|
+
}, [p(h(U), {
|
|
727
755
|
size: 12,
|
|
728
756
|
"stroke-width": 2
|
|
729
|
-
})], 10,
|
|
757
|
+
})], 10, Yt)
|
|
730
758
|
]),
|
|
731
759
|
b("button", {
|
|
732
760
|
class: o(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
733
761
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
734
762
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
735
763
|
onClick: g
|
|
736
|
-
}, [l.value ? (a(), C(h(
|
|
764
|
+
}, [l.value ? (a(), C(h(dt), {
|
|
737
765
|
key: 0,
|
|
738
766
|
size: 14,
|
|
739
767
|
"stroke-width": 2
|
|
740
|
-
})) : (a(), C(h(
|
|
768
|
+
})) : (a(), C(h(ut), {
|
|
741
769
|
key: 1,
|
|
742
770
|
size: 14,
|
|
743
771
|
"stroke-width": 2
|
|
744
|
-
}))], 10,
|
|
745
|
-
b("div",
|
|
772
|
+
}))], 10, Xt),
|
|
773
|
+
b("div", Zt, [
|
|
746
774
|
b("button", {
|
|
747
775
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
748
|
-
class: o([
|
|
776
|
+
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
749
777
|
onClick: n[6] ||= (e) => d("right", -1)
|
|
750
|
-
}, [p(h(
|
|
778
|
+
}, [p(h(H), {
|
|
751
779
|
size: 12,
|
|
752
780
|
"stroke-width": 2
|
|
753
|
-
})], 10,
|
|
781
|
+
})], 10, Qt),
|
|
754
782
|
b("input", {
|
|
755
783
|
type: "number",
|
|
756
|
-
class: o(
|
|
784
|
+
class: o(on),
|
|
757
785
|
value: e.modelValue.right,
|
|
758
786
|
"aria-label": h(s).spacingControl.right,
|
|
759
787
|
min: "0",
|
|
760
788
|
onInput: n[7] ||= (e) => f("right", Number(e.target.value))
|
|
761
|
-
}, null, 40,
|
|
789
|
+
}, null, 40, $t),
|
|
762
790
|
b("button", {
|
|
763
791
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
764
|
-
class: o([
|
|
792
|
+
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
765
793
|
onClick: n[8] ||= (e) => d("right", 1)
|
|
766
|
-
}, [p(h(
|
|
794
|
+
}, [p(h(U), {
|
|
767
795
|
size: 12,
|
|
768
796
|
"stroke-width": 2
|
|
769
|
-
})], 10,
|
|
797
|
+
})], 10, en)
|
|
770
798
|
])
|
|
771
799
|
]),
|
|
772
|
-
b("div",
|
|
800
|
+
b("div", tn, [
|
|
773
801
|
b("button", {
|
|
774
802
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
775
|
-
class: o([
|
|
803
|
+
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
776
804
|
onClick: n[9] ||= (e) => d("bottom", -1)
|
|
777
|
-
}, [p(h(
|
|
805
|
+
}, [p(h(H), {
|
|
778
806
|
size: 12,
|
|
779
807
|
"stroke-width": 2
|
|
780
|
-
})], 10,
|
|
808
|
+
})], 10, nn),
|
|
781
809
|
b("input", {
|
|
782
810
|
type: "number",
|
|
783
|
-
class: o(
|
|
811
|
+
class: o(on),
|
|
784
812
|
value: e.modelValue.bottom,
|
|
785
813
|
"aria-label": h(s).spacingControl.bottom,
|
|
786
814
|
min: "0",
|
|
787
815
|
onInput: n[10] ||= (e) => f("bottom", Number(e.target.value))
|
|
788
|
-
}, null, 40,
|
|
816
|
+
}, null, 40, rn),
|
|
789
817
|
b("button", {
|
|
790
818
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
791
|
-
class: o([
|
|
819
|
+
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
792
820
|
onClick: n[11] ||= (e) => d("bottom", 1)
|
|
793
|
-
}, [p(h(
|
|
821
|
+
}, [p(h(U), {
|
|
794
822
|
size: 12,
|
|
795
823
|
"stroke-width": 2
|
|
796
|
-
})], 10,
|
|
824
|
+
})], 10, an)
|
|
797
825
|
])
|
|
798
826
|
])]),
|
|
799
827
|
_: 1
|
|
@@ -801,19 +829,19 @@ var ft = Ce({
|
|
|
801
829
|
}
|
|
802
830
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
803
831
|
// src/composables/useNaturalImageSize.ts
|
|
804
|
-
function
|
|
832
|
+
function cn(e) {
|
|
805
833
|
let n = _(null), r = () => {};
|
|
806
834
|
return t(e, (e) => {
|
|
807
|
-
r(), n.value = null, e && (r =
|
|
835
|
+
r(), n.value = null, e && (r = _e(e, (e) => {
|
|
808
836
|
n.value = e;
|
|
809
837
|
}));
|
|
810
838
|
}, { immediate: !0 }), n;
|
|
811
839
|
}
|
|
812
|
-
function
|
|
813
|
-
let e = T(
|
|
814
|
-
return async (t) =>
|
|
840
|
+
function ln() {
|
|
841
|
+
let e = T(ze, null);
|
|
842
|
+
return async (t) => ge(e ? await un(e, t) : t);
|
|
815
843
|
}
|
|
816
|
-
function
|
|
844
|
+
function un(e, n) {
|
|
817
845
|
let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
|
|
818
846
|
e.lookup(n);
|
|
819
847
|
let i = e.get(n);
|
|
@@ -824,13 +852,13 @@ function dn(e, n) {
|
|
|
824
852
|
}) : Promise.resolve(r(i));
|
|
825
853
|
}
|
|
826
854
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
827
|
-
var
|
|
855
|
+
var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"], mn = ["data-testid"], hn = ["aria-label", "data-testid"], gn = [
|
|
828
856
|
"aria-label",
|
|
829
857
|
"title",
|
|
830
858
|
"aria-pressed",
|
|
831
859
|
"data-testid",
|
|
832
860
|
"onClick"
|
|
833
|
-
],
|
|
861
|
+
], _n = ["data-testid"], vn = /* @__PURE__ */ E({
|
|
834
862
|
__name: "BackgroundImageControl",
|
|
835
863
|
props: {
|
|
836
864
|
hideLabel: { type: Boolean },
|
|
@@ -841,14 +869,14 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
841
869
|
},
|
|
842
870
|
emits: ["update:modelValue"],
|
|
843
871
|
setup(e, { emit: t }) {
|
|
844
|
-
let n = e, i = t, { t: c } =
|
|
872
|
+
let n = e, i = t, { t: c } = W(), l = T(Re, P.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x = ln(), w;
|
|
845
873
|
f(() => clearTimeout(w));
|
|
846
874
|
function E(e) {
|
|
847
|
-
n.measure && !
|
|
875
|
+
n.measure && !k(e, l) && (w = setTimeout(async () => {
|
|
848
876
|
let t = await x(e), r = n.modelValue;
|
|
849
877
|
t && r?.url === e && i("update:modelValue", {
|
|
850
878
|
...r,
|
|
851
|
-
...
|
|
879
|
+
...fe(t)
|
|
852
880
|
});
|
|
853
881
|
}, 300));
|
|
854
882
|
}
|
|
@@ -857,11 +885,11 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
857
885
|
i("update:modelValue", void 0);
|
|
858
886
|
return;
|
|
859
887
|
}
|
|
860
|
-
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ??
|
|
888
|
+
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ?? L(e), s = n.measure ? t : null;
|
|
861
889
|
i("update:modelValue", {
|
|
862
890
|
...o,
|
|
863
891
|
url: e,
|
|
864
|
-
...s ?
|
|
892
|
+
...s ? fe(s) : {}
|
|
865
893
|
}), s || E(e);
|
|
866
894
|
}
|
|
867
895
|
function O(e) {
|
|
@@ -870,7 +898,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
870
898
|
...e
|
|
871
899
|
});
|
|
872
900
|
}
|
|
873
|
-
let
|
|
901
|
+
let A = m(() => [
|
|
874
902
|
{
|
|
875
903
|
value: "cover",
|
|
876
904
|
label: c.blockSettings.backgroundSizeCover
|
|
@@ -883,7 +911,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
883
911
|
value: "auto",
|
|
884
912
|
label: c.blockSettings.backgroundSizeAuto
|
|
885
913
|
}
|
|
886
|
-
]),
|
|
914
|
+
]), j = m(() => ({
|
|
887
915
|
"top-left": c.blockSettings.backgroundPositionTopLeft,
|
|
888
916
|
"top-center": c.blockSettings.backgroundPositionTopCenter,
|
|
889
917
|
"top-right": c.blockSettings.backgroundPositionTopRight,
|
|
@@ -893,33 +921,33 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
893
921
|
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
894
922
|
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
895
923
|
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
896
|
-
})), M = m(() => te.flatMap((e) =>
|
|
924
|
+
})), M = m(() => te.flatMap((e) => ie.map((t) => ({
|
|
897
925
|
x: t,
|
|
898
926
|
y: e,
|
|
899
|
-
label:
|
|
927
|
+
label: j.value[`${e}-${t}`]
|
|
900
928
|
}))));
|
|
901
929
|
function N(e) {
|
|
902
930
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
903
931
|
}
|
|
904
|
-
let
|
|
905
|
-
target:
|
|
906
|
-
blocked: () =>
|
|
907
|
-
apply: (e) => D(e.url,
|
|
932
|
+
let F = _(), { canBrowse: I, isUploading: ee, showOverlay: R, openMediaBrowser: z } = be({
|
|
933
|
+
target: F,
|
|
934
|
+
blocked: () => k(u.value, l),
|
|
935
|
+
apply: (e) => D(e.url, se(e.width, e.height))
|
|
908
936
|
});
|
|
909
|
-
return (t, n) => (a(), v("div",
|
|
937
|
+
return (t, n) => (a(), v("div", dn, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
910
938
|
key: 0,
|
|
911
|
-
class: o(h(
|
|
939
|
+
class: o(h(J))
|
|
912
940
|
}, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
|
|
913
941
|
ref_key: "dropZoneRef",
|
|
914
|
-
ref:
|
|
942
|
+
ref: F,
|
|
915
943
|
class: "tpl:relative",
|
|
916
944
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
917
945
|
}, [
|
|
918
|
-
h(
|
|
946
|
+
h(R) ? (a(), C(ue, {
|
|
919
947
|
key: 0,
|
|
920
|
-
uploading: h(
|
|
948
|
+
uploading: h(ee)
|
|
921
949
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
922
|
-
p(
|
|
950
|
+
p(Z, {
|
|
923
951
|
"model-value": u.value,
|
|
924
952
|
type: "url",
|
|
925
953
|
placeholder: h(c).blockSettings.backgroundImagePlaceholder,
|
|
@@ -935,21 +963,21 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
935
963
|
color: "var(--tpl-primary)",
|
|
936
964
|
"background-color": "var(--tpl-bg)"
|
|
937
965
|
},
|
|
938
|
-
onClick: n[0] ||= (...e) => h(
|
|
939
|
-
}, [p(h(
|
|
966
|
+
onClick: n[0] ||= (...e) => h(z) && h(z)(...e)
|
|
967
|
+
}, [p(h(De), {
|
|
940
968
|
size: 14,
|
|
941
969
|
"stroke-width": 1.5
|
|
942
|
-
}), y(" " + r(h(c).image.browseMedia), 1)], 8,
|
|
943
|
-
], 8,
|
|
970
|
+
}), y(" " + r(h(c).image.browseMedia), 1)], 8, pn)) : g("", !0)
|
|
971
|
+
], 8, fn)]), d.value && e.modelValue ? (a(), v(S, { key: 0 }, [
|
|
944
972
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
945
973
|
key: 0,
|
|
946
974
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
947
|
-
}, [b("label", { class: o(h(
|
|
948
|
-
options:
|
|
975
|
+
}, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.backgroundSize), 3), p(Q, {
|
|
976
|
+
options: A.value,
|
|
949
977
|
"model-value": e.modelValue.size,
|
|
950
978
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
951
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
952
|
-
b("div", null, [b("label", { class: o(h(
|
|
979
|
+
}, null, 8, ["options", "model-value"])], 8, mn)),
|
|
980
|
+
b("div", null, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
|
|
953
981
|
role: "group",
|
|
954
982
|
"aria-label": h(c).blockSettings.backgroundPosition,
|
|
955
983
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -966,19 +994,19 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
966
994
|
x: t.x,
|
|
967
995
|
y: t.y
|
|
968
996
|
} })
|
|
969
|
-
}, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", N(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10,
|
|
997
|
+
}, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", N(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, gn))), 128))], 8, hn)]),
|
|
970
998
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
971
999
|
key: 1,
|
|
972
1000
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
973
|
-
}, [p(
|
|
1001
|
+
}, [p(X, {
|
|
974
1002
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
975
1003
|
"model-value": e.modelValue.repeat,
|
|
976
1004
|
label: h(c).blockSettings.backgroundRepeat,
|
|
977
1005
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
978
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
1006
|
+
}, null, 8, ["model-value", "label"])], 8, _n))
|
|
979
1007
|
], 64)) : g("", !0)]));
|
|
980
1008
|
}
|
|
981
|
-
}),
|
|
1009
|
+
}), yn = ["data-testid"], bn = { class: "tpl:mt-3" }, xn = /* @__PURE__ */ E({
|
|
982
1010
|
__name: "CollapsibleSection",
|
|
983
1011
|
props: {
|
|
984
1012
|
title: {},
|
|
@@ -993,30 +1021,30 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
993
1021
|
"data-testid": e.headerTestId,
|
|
994
1022
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
995
1023
|
onClick: i[0] ||= (e) => t.$emit("toggle")
|
|
996
|
-
}, [p(h(
|
|
1024
|
+
}, [p(h(Ce), {
|
|
997
1025
|
class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
998
1026
|
size: 12,
|
|
999
1027
|
"stroke-width": 2
|
|
1000
|
-
}, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8,
|
|
1028
|
+
}, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8, yn), d(b("div", bn, [n(t.$slots, "default")], 512), [[O, e.open]])], 2));
|
|
1001
1029
|
}
|
|
1002
|
-
}),
|
|
1030
|
+
}), Sn = {
|
|
1003
1031
|
key: 0,
|
|
1004
1032
|
"data-testid": "section-hero-columns-note",
|
|
1005
1033
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1006
|
-
},
|
|
1034
|
+
}, Cn = {
|
|
1007
1035
|
key: 1,
|
|
1008
1036
|
"data-testid": "section-hero",
|
|
1009
1037
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
1010
|
-
},
|
|
1038
|
+
}, wn = { "data-testid": "section-hero-height" }, Tn = {
|
|
1011
1039
|
key: 0,
|
|
1012
1040
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1013
|
-
},
|
|
1041
|
+
}, En = {
|
|
1014
1042
|
key: 1,
|
|
1015
1043
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1016
|
-
},
|
|
1044
|
+
}, Dn = {
|
|
1017
1045
|
key: 1,
|
|
1018
1046
|
"data-testid": "section-hero-align"
|
|
1019
|
-
},
|
|
1047
|
+
}, On = 300, kn = /* @__PURE__ */ E({
|
|
1020
1048
|
__name: "HeroControl",
|
|
1021
1049
|
props: { section: {} },
|
|
1022
1050
|
emits: ["update"],
|
|
@@ -1024,7 +1052,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1024
1052
|
function n(e) {
|
|
1025
1053
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1026
1054
|
}
|
|
1027
|
-
let i = e, s = t, { t: c } =
|
|
1055
|
+
let i = e, s = t, { t: c } = W(), l = T(Re, P.liquid), u = T(Xe, null), d = T(Ve, void 0), f = ln(), _ = m(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), y = m(() => _.value.trim() !== ""), x = m(() => k(_.value, l)), S = m(() => i.section.hero), w = m(() => i.section.columns === "1"), E = m(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), D = m(() => n(S.value?.height) ? S.value.height : On), O = m(() => [
|
|
1028
1056
|
{
|
|
1029
1057
|
value: "fit",
|
|
1030
1058
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1038,7 +1066,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1038
1066
|
value: "fixed",
|
|
1039
1067
|
label: c.blockSettings.heroHeightFixed
|
|
1040
1068
|
}
|
|
1041
|
-
]),
|
|
1069
|
+
]), A = m(() => [
|
|
1042
1070
|
{
|
|
1043
1071
|
value: "top",
|
|
1044
1072
|
label: c.blockSettings.heroAlignTop
|
|
@@ -1051,9 +1079,9 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1051
1079
|
value: "bottom",
|
|
1052
1080
|
label: c.blockSettings.heroAlignBottom
|
|
1053
1081
|
}
|
|
1054
|
-
]),
|
|
1082
|
+
]), j = m(() => E.value === "image" && y.value && !x.value && ee(i.section.backgroundImage) === null);
|
|
1055
1083
|
function M() {
|
|
1056
|
-
return (u ? ye(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ??
|
|
1084
|
+
return (u ? ye(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ?? he(u?.state.content.settings);
|
|
1057
1085
|
}
|
|
1058
1086
|
function N(e) {
|
|
1059
1087
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1061,7 +1089,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1061
1089
|
E.value !== "image" && s("update", { hero: {
|
|
1062
1090
|
height: "image",
|
|
1063
1091
|
verticalAlign: t
|
|
1064
|
-
} }),
|
|
1092
|
+
} }), F();
|
|
1065
1093
|
return;
|
|
1066
1094
|
}
|
|
1067
1095
|
if (e === E.value) return;
|
|
@@ -1069,19 +1097,19 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1069
1097
|
s("update", { hero: void 0 });
|
|
1070
1098
|
return;
|
|
1071
1099
|
}
|
|
1072
|
-
let n =
|
|
1100
|
+
let n = ee(i.section.backgroundImage), r = n === null ? On : Math.round(M() * n);
|
|
1073
1101
|
s("update", { hero: {
|
|
1074
1102
|
height: r,
|
|
1075
1103
|
verticalAlign: t
|
|
1076
1104
|
} });
|
|
1077
1105
|
}
|
|
1078
|
-
async function
|
|
1106
|
+
async function F() {
|
|
1079
1107
|
let e = i.section.backgroundImage;
|
|
1080
|
-
if (!e || !y.value || x.value ||
|
|
1108
|
+
if (!e || !y.value || x.value || ee(e) !== null) return;
|
|
1081
1109
|
let t = e.url, n = await f(t), r = i.section.backgroundImage;
|
|
1082
1110
|
n && r && r.url === t && s("update", { backgroundImage: {
|
|
1083
1111
|
...r,
|
|
1084
|
-
...
|
|
1112
|
+
...fe(n)
|
|
1085
1113
|
} });
|
|
1086
1114
|
}
|
|
1087
1115
|
function I(e) {
|
|
@@ -1096,17 +1124,17 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1096
1124
|
verticalAlign: e
|
|
1097
1125
|
} });
|
|
1098
1126
|
}
|
|
1099
|
-
return (e, t) => !w.value && S.value ? (a(), v("p",
|
|
1100
|
-
b("div",
|
|
1101
|
-
b("label", { class: o(h(
|
|
1102
|
-
p(
|
|
1127
|
+
return (e, t) => !w.value && S.value ? (a(), v("p", Sn, r(h(c).section.heroNeedsOneColumn), 1)) : w.value && (y.value || S.value) ? (a(), v("div", Cn, [
|
|
1128
|
+
b("div", wn, [
|
|
1129
|
+
b("label", { class: o(h(J)) }, r(h(c).blockSettings.heroHeight), 3),
|
|
1130
|
+
p(Q, {
|
|
1103
1131
|
options: O.value,
|
|
1104
1132
|
"model-value": E.value,
|
|
1105
1133
|
"onUpdate:modelValue": N
|
|
1106
1134
|
}, null, 8, ["options", "model-value"]),
|
|
1107
|
-
x.value ? (a(), v("p",
|
|
1135
|
+
x.value ? (a(), v("p", Tn, r(h(c).blockSettings.heroMatchImageMergeTag), 1)) : j.value ? (a(), v("p", En, r(h(c).blockSettings.heroSizeUnknown), 1)) : g("", !0)
|
|
1108
1136
|
]),
|
|
1109
|
-
E.value === "fixed" ? (a(), C(
|
|
1137
|
+
E.value === "fixed" ? (a(), C(_t, {
|
|
1110
1138
|
key: 0,
|
|
1111
1139
|
"model-value": D.value,
|
|
1112
1140
|
min: 1,
|
|
@@ -1114,26 +1142,26 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1114
1142
|
testid: "section-hero-height-px",
|
|
1115
1143
|
"onUpdate:modelValue": I
|
|
1116
1144
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
1117
|
-
S.value ? (a(), v("div",
|
|
1118
|
-
options:
|
|
1145
|
+
S.value ? (a(), v("div", Dn, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.heroAlign), 3), p(Q, {
|
|
1146
|
+
options: A.value,
|
|
1119
1147
|
"model-value": S.value.verticalAlign,
|
|
1120
1148
|
"onUpdate:modelValue": L
|
|
1121
1149
|
}, null, 8, ["options", "model-value"])])) : g("", !0)
|
|
1122
1150
|
])) : g("", !0);
|
|
1123
1151
|
}
|
|
1124
|
-
}),
|
|
1152
|
+
}), An = { class: "tpl:space-y-2" }, jn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mn = { class: "tpl:space-y-2" }, Nn = ["value"], Pn = { value: "" }, Fn = ["label"], In = ["value"], Ln = ["value"], Rn = {
|
|
1125
1153
|
key: 0,
|
|
1126
1154
|
value: "__custom__"
|
|
1127
|
-
},
|
|
1155
|
+
}, zn = {
|
|
1128
1156
|
key: 0,
|
|
1129
1157
|
class: "tpl:space-y-2"
|
|
1130
|
-
},
|
|
1158
|
+
}, Bn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Vn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Hn = { class: "tpl:flex tpl:justify-end" }, Un = ["disabled"], Wn = {
|
|
1131
1159
|
key: 0,
|
|
1132
1160
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1133
|
-
},
|
|
1161
|
+
}, Gn = { class: "tpl:space-y-1" }, Kn = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, qn = {
|
|
1134
1162
|
key: 0,
|
|
1135
1163
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1136
|
-
},
|
|
1164
|
+
}, Jn = /* @__PURE__ */ E({
|
|
1137
1165
|
__name: "CommonBlockSettings",
|
|
1138
1166
|
props: {
|
|
1139
1167
|
block: {},
|
|
@@ -1141,23 +1169,23 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1141
1169
|
},
|
|
1142
1170
|
emits: ["update"],
|
|
1143
1171
|
setup(e, { emit: n }) {
|
|
1144
|
-
let c = e, f = n, { t: x, format: w } =
|
|
1172
|
+
let c = e, f = n, { t: x, format: w } = W(), E = T(Xe, null), O = T(Be, void 0), k = m(() => E?.activeLocale?.value), A = m(() => !!(k.value && E?.selectedBlock?.value?.l10n?.[k.value]?.hidden)), M = T(We, []), N = T(Ye, !1), P = l(/* @__PURE__ */ new Set()), F = _(!1), I = _(""), L = _(""), ee = [{
|
|
1145
1173
|
key: "desktop",
|
|
1146
|
-
icon:
|
|
1174
|
+
icon: Ae,
|
|
1147
1175
|
labelKey: "showOnDesktop"
|
|
1148
1176
|
}, {
|
|
1149
1177
|
key: "mobile",
|
|
1150
|
-
icon:
|
|
1178
|
+
icon: je,
|
|
1151
1179
|
labelKey: "showOnMobile"
|
|
1152
1180
|
}];
|
|
1153
1181
|
function te(e) {
|
|
1154
1182
|
P.has(e) ? P.delete(e) : P.add(e);
|
|
1155
1183
|
}
|
|
1156
|
-
let
|
|
1157
|
-
function
|
|
1158
|
-
F.value = !0,
|
|
1184
|
+
let R = m(() => M.length > 0 || N), z = m(() => c.block.displayCondition ? !M.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
1185
|
+
function ne() {
|
|
1186
|
+
F.value = !0, z.value && c.block.displayCondition ? (I.value = c.block.displayCondition.before, L.value = c.block.displayCondition.after ?? "") : (I.value = "", L.value = "");
|
|
1159
1187
|
}
|
|
1160
|
-
function
|
|
1188
|
+
function re() {
|
|
1161
1189
|
let e = I.value.trim(), t = L.value.trim();
|
|
1162
1190
|
e && (f("update", { displayCondition: {
|
|
1163
1191
|
label: x.blockSettings.customCondition,
|
|
@@ -1173,44 +1201,44 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1173
1201
|
() => c.block.displayCondition?.after
|
|
1174
1202
|
], () => {
|
|
1175
1203
|
let e = c.block.displayCondition;
|
|
1176
|
-
!e || !
|
|
1204
|
+
!e || !z.value ? (F.value = !1, I.value = "", L.value = "") : (I.value = e.before, L.value = e.after ?? "");
|
|
1177
1205
|
}, { immediate: !0 });
|
|
1178
|
-
let
|
|
1206
|
+
let ie = m(() => {
|
|
1179
1207
|
let e = {};
|
|
1180
1208
|
for (let t of M) {
|
|
1181
1209
|
let n = t.group ?? "";
|
|
1182
1210
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1183
1211
|
}
|
|
1184
1212
|
return e;
|
|
1185
|
-
}),
|
|
1186
|
-
function
|
|
1213
|
+
}), ae = m(() => c.block.type === "section" && j(c.block)?.applied === !0);
|
|
1214
|
+
function oe(e, t) {
|
|
1187
1215
|
f("update", { styles: {
|
|
1188
1216
|
...c.block.styles,
|
|
1189
1217
|
[e]: t
|
|
1190
1218
|
} });
|
|
1191
1219
|
}
|
|
1192
|
-
function
|
|
1220
|
+
function se(e) {
|
|
1193
1221
|
return c.block.visibility?.[e] !== !1;
|
|
1194
1222
|
}
|
|
1195
|
-
function
|
|
1223
|
+
function ce(e) {
|
|
1196
1224
|
let t = {
|
|
1197
|
-
desktop:
|
|
1198
|
-
mobile:
|
|
1225
|
+
desktop: se("desktop"),
|
|
1226
|
+
mobile: se("mobile")
|
|
1199
1227
|
};
|
|
1200
1228
|
t[e] = !t[e], f("update", { visibility: t });
|
|
1201
1229
|
}
|
|
1202
1230
|
return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1203
|
-
p(
|
|
1231
|
+
p(xn, {
|
|
1204
1232
|
title: h(x).blockSettings.spacing,
|
|
1205
1233
|
open: P.has("spacing"),
|
|
1206
1234
|
"no-border": e.isFirstSection,
|
|
1207
1235
|
onToggle: n[1] ||= (e) => te("spacing")
|
|
1208
1236
|
}, {
|
|
1209
|
-
default: u(() => [p(
|
|
1237
|
+
default: u(() => [p(sn, {
|
|
1210
1238
|
path: "styles.padding",
|
|
1211
1239
|
label: h(x).blockSettings.padding,
|
|
1212
1240
|
"model-value": e.block.styles.padding,
|
|
1213
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1241
|
+
"onUpdate:modelValue": n[0] ||= (e) => oe("padding", e)
|
|
1214
1242
|
}, null, 8, ["label", "model-value"])]),
|
|
1215
1243
|
_: 1
|
|
1216
1244
|
}, 8, [
|
|
@@ -1218,46 +1246,46 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1218
1246
|
"open",
|
|
1219
1247
|
"no-border"
|
|
1220
1248
|
]),
|
|
1221
|
-
p(
|
|
1249
|
+
p(xn, {
|
|
1222
1250
|
title: h(x).blockSettings.background,
|
|
1223
1251
|
open: P.has("bg"),
|
|
1224
1252
|
"header-test-id": "block-settings-background",
|
|
1225
1253
|
onToggle: n[5] ||= (e) => te("bg")
|
|
1226
1254
|
}, {
|
|
1227
1255
|
default: u(() => [
|
|
1228
|
-
p(
|
|
1256
|
+
p(Y, {
|
|
1229
1257
|
path: "styles.backgroundColor",
|
|
1230
1258
|
label: h(x).blockSettings.color
|
|
1231
1259
|
}, {
|
|
1232
|
-
default: u(() => [p(
|
|
1260
|
+
default: u(() => [p(V, {
|
|
1233
1261
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1234
1262
|
"allow-transparent": "",
|
|
1235
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1263
|
+
"onUpdate:modelValue": n[2] ||= (e) => oe("backgroundColor", e)
|
|
1236
1264
|
}, null, 8, ["model-value"])]),
|
|
1237
1265
|
_: 1
|
|
1238
1266
|
}, 8, ["label"]),
|
|
1239
|
-
e.block.type === "section" ? (a(), C(
|
|
1267
|
+
e.block.type === "section" ? (a(), C(Y, {
|
|
1240
1268
|
key: 0,
|
|
1241
1269
|
path: "backgroundImage",
|
|
1242
1270
|
label: h(x).blockSettings.backgroundImage
|
|
1243
1271
|
}, {
|
|
1244
|
-
default: u(() => [p(
|
|
1272
|
+
default: u(() => [p(vn, {
|
|
1245
1273
|
"hide-label": "",
|
|
1246
1274
|
class: "tpl:mt-3.5",
|
|
1247
1275
|
"model-value": e.block.backgroundImage,
|
|
1248
1276
|
"testid-prefix": "section",
|
|
1249
1277
|
measure: "",
|
|
1250
|
-
"hero-mode":
|
|
1278
|
+
"hero-mode": ae.value,
|
|
1251
1279
|
"onUpdate:modelValue": n[3] ||= (e) => f("update", { backgroundImage: e })
|
|
1252
1280
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1253
1281
|
_: 1
|
|
1254
1282
|
}, 8, ["label"])) : g("", !0),
|
|
1255
|
-
e.block.type === "section" ? (a(), C(
|
|
1283
|
+
e.block.type === "section" ? (a(), C(Y, {
|
|
1256
1284
|
key: 1,
|
|
1257
1285
|
path: "hero",
|
|
1258
1286
|
label: h(x).blocks.hero
|
|
1259
1287
|
}, {
|
|
1260
|
-
default: u(() => [p(
|
|
1288
|
+
default: u(() => [p(kn, {
|
|
1261
1289
|
section: e.block,
|
|
1262
1290
|
onUpdate: n[4] ||= (e) => f("update", e)
|
|
1263
1291
|
}, null, 8, ["section"])]),
|
|
@@ -1266,38 +1294,38 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1266
1294
|
]),
|
|
1267
1295
|
_: 1
|
|
1268
1296
|
}, 8, ["title", "open"]),
|
|
1269
|
-
p(
|
|
1297
|
+
p(xn, {
|
|
1270
1298
|
title: h(x).blockSettings.display,
|
|
1271
1299
|
open: P.has("display"),
|
|
1272
1300
|
onToggle: n[7] ||= (e) => te("display")
|
|
1273
1301
|
}, {
|
|
1274
|
-
default: u(() => [b("div",
|
|
1302
|
+
default: u(() => [b("div", An, [k.value && h(O) ? (a(), C(X, {
|
|
1275
1303
|
key: 0,
|
|
1276
1304
|
"data-testid": "locale-hide",
|
|
1277
|
-
disabled: !h(O).locales.includes(
|
|
1278
|
-
"model-value":
|
|
1279
|
-
label: h(w)(h(x).localization.hide, { language: h(
|
|
1305
|
+
disabled: !h(O).locales.includes(k.value),
|
|
1306
|
+
"model-value": A.value,
|
|
1307
|
+
label: h(w)(h(x).localization.hide, { language: h(Qe)(k.value) }),
|
|
1280
1308
|
"onUpdate:modelValue": n[6] ||= (t) => h(E)?.setBlockHidden?.(e.block.id, t)
|
|
1281
1309
|
}, null, 8, [
|
|
1282
1310
|
"disabled",
|
|
1283
1311
|
"model-value",
|
|
1284
1312
|
"label"
|
|
1285
|
-
])) : g("", !0), (a(), v(S, null, s(ee, (e) => p(
|
|
1313
|
+
])) : g("", !0), (a(), v(S, null, s(ee, (e) => p(Y, {
|
|
1286
1314
|
key: e.key,
|
|
1287
1315
|
path: `visibility.${e.key}`,
|
|
1288
1316
|
label: h(x).blockSettings[e.labelKey]
|
|
1289
1317
|
}, {
|
|
1290
|
-
label: u(() => [b("span",
|
|
1318
|
+
label: u(() => [b("span", jn, [(a(), C(i(e.icon), {
|
|
1291
1319
|
size: 14,
|
|
1292
1320
|
"stroke-width": 1.5
|
|
1293
1321
|
})), y(" " + r(h(x).blockSettings[e.labelKey]), 1)])]),
|
|
1294
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
1322
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
1295
1323
|
"control-id": t,
|
|
1296
1324
|
"hide-label": "",
|
|
1297
1325
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1298
|
-
"model-value":
|
|
1326
|
+
"model-value": se(e.key),
|
|
1299
1327
|
label: h(x).blockSettings[e.labelKey],
|
|
1300
|
-
"onUpdate:modelValue": (t) =>
|
|
1328
|
+
"onUpdate:modelValue": (t) => ce(e.key)
|
|
1301
1329
|
}, null, 8, [
|
|
1302
1330
|
"control-id",
|
|
1303
1331
|
"model-value",
|
|
@@ -1308,25 +1336,25 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1308
1336
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1309
1337
|
_: 1
|
|
1310
1338
|
}, 8, ["title", "open"]),
|
|
1311
|
-
|
|
1339
|
+
R.value ? (a(), C(xn, {
|
|
1312
1340
|
key: 0,
|
|
1313
1341
|
"header-test-id": "display-condition-section",
|
|
1314
1342
|
title: h(x).blockSettings.displayCondition,
|
|
1315
1343
|
open: P.has("condition"),
|
|
1316
1344
|
onToggle: n[11] ||= (e) => te("condition")
|
|
1317
1345
|
}, {
|
|
1318
|
-
default: u(() => [b("div",
|
|
1346
|
+
default: u(() => [b("div", Mn, [p(Y, {
|
|
1319
1347
|
path: "displayCondition",
|
|
1320
1348
|
label: h(x).blockSettings.displayCondition
|
|
1321
1349
|
}, {
|
|
1322
1350
|
default: u(() => [b("select", {
|
|
1323
1351
|
"data-testid": "display-condition-select",
|
|
1324
1352
|
class: o(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1325
|
-
value: F.value ||
|
|
1353
|
+
value: F.value || z.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1326
1354
|
onChange: n[8] ||= (e) => {
|
|
1327
1355
|
let t = e.target.value;
|
|
1328
1356
|
if (t === "__custom__") {
|
|
1329
|
-
|
|
1357
|
+
ne();
|
|
1330
1358
|
return;
|
|
1331
1359
|
}
|
|
1332
1360
|
if (F.value = !1, !t) {
|
|
@@ -1337,43 +1365,43 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1337
1365
|
n && f("update", { displayCondition: n });
|
|
1338
1366
|
}
|
|
1339
1367
|
}, [
|
|
1340
|
-
b("option",
|
|
1341
|
-
(a(!0), v(S, null, s(
|
|
1368
|
+
b("option", Pn, r(h(x).blockSettings.noCondition), 1),
|
|
1369
|
+
(a(!0), v(S, null, s(ie.value, (e, t) => (a(), v(S, { key: t }, [t ? (a(), v("optgroup", {
|
|
1342
1370
|
key: 0,
|
|
1343
1371
|
label: String(t)
|
|
1344
1372
|
}, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
|
|
1345
1373
|
key: e.label,
|
|
1346
1374
|
value: e.label
|
|
1347
|
-
}, r(e.label), 9,
|
|
1375
|
+
}, r(e.label), 9, In))), 128))], 8, Fn)) : (a(!0), v(S, { key: 1 }, s(e, (e) => (a(), v("option", {
|
|
1348
1376
|
key: e.label,
|
|
1349
1377
|
value: e.label
|
|
1350
|
-
}, r(e.label), 9,
|
|
1351
|
-
h(N) ? (a(), v("option",
|
|
1352
|
-
], 42,
|
|
1378
|
+
}, r(e.label), 9, Ln))), 128))], 64))), 128)),
|
|
1379
|
+
h(N) ? (a(), v("option", Rn, r(h(x).blockSettings.customCondition), 1)) : g("", !0)
|
|
1380
|
+
], 42, Nn)]),
|
|
1353
1381
|
_: 1
|
|
1354
|
-
}, 8, ["label"]), F.value ||
|
|
1355
|
-
b("div", null, [b("label",
|
|
1382
|
+
}, 8, ["label"]), F.value || z.value ? (a(), v("div", zn, [
|
|
1383
|
+
b("div", null, [b("label", Bn, r(h(x).blockSettings.customConditionBefore), 1), d(b("textarea", {
|
|
1356
1384
|
"onUpdate:modelValue": n[9] ||= (e) => I.value = e,
|
|
1357
1385
|
rows: "2",
|
|
1358
|
-
class: o(h(
|
|
1386
|
+
class: o(h(rt))
|
|
1359
1387
|
}, null, 2), [[D, I.value]])]),
|
|
1360
|
-
b("div", null, [b("label",
|
|
1388
|
+
b("div", null, [b("label", Vn, r(h(x).blockSettings.customConditionAfter), 1), d(b("textarea", {
|
|
1361
1389
|
"onUpdate:modelValue": n[10] ||= (e) => L.value = e,
|
|
1362
1390
|
rows: "2",
|
|
1363
|
-
class: o(h(
|
|
1391
|
+
class: o(h(rt))
|
|
1364
1392
|
}, null, 2), [[D, L.value]])]),
|
|
1365
|
-
b("div",
|
|
1393
|
+
b("div", Hn, [b("button", {
|
|
1366
1394
|
type: "button",
|
|
1367
|
-
class: o(h(
|
|
1395
|
+
class: o(h(et)),
|
|
1368
1396
|
disabled: !I.value.trim(),
|
|
1369
|
-
onClick:
|
|
1370
|
-
}, r(h(x).blockSettings.applyCondition), 11,
|
|
1371
|
-
])) : e.block.displayCondition && !
|
|
1397
|
+
onClick: re
|
|
1398
|
+
}, r(h(x).blockSettings.applyCondition), 11, Un)])
|
|
1399
|
+
])) : e.block.displayCondition && !z.value ? (a(), v(S, { key: 1 }, [e.block.displayCondition.description ? (a(), v("p", Wn, r(e.block.displayCondition.description), 1)) : g("", !0), b("div", Gn, [b("pre", Kn, r(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (a(), v("pre", qn, r(e.block.displayCondition.after), 1)) : g("", !0)])], 64)) : g("", !0)])]),
|
|
1372
1400
|
_: 1
|
|
1373
1401
|
}, 8, ["title", "open"])) : g("", !0)
|
|
1374
1402
|
], 2));
|
|
1375
1403
|
}
|
|
1376
|
-
}),
|
|
1404
|
+
}), Yn = ["title"], Xn = { class: "tpl-sr-only" }, Zn = ["title"], Qn = { class: "tpl-sr-only" }, $n = /* @__PURE__ */ E({
|
|
1377
1405
|
__name: "FieldLabel",
|
|
1378
1406
|
props: {
|
|
1379
1407
|
label: {},
|
|
@@ -1381,25 +1409,25 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1381
1409
|
readOnly: { type: Boolean }
|
|
1382
1410
|
},
|
|
1383
1411
|
setup(e) {
|
|
1384
|
-
let { t } =
|
|
1412
|
+
let { t } = W();
|
|
1385
1413
|
return (n, i) => (a(), v("span", null, [
|
|
1386
1414
|
y(r(e.label) + " ", 1),
|
|
1387
1415
|
e.readOnly ? (a(), v("span", {
|
|
1388
1416
|
key: 0,
|
|
1389
1417
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1390
|
-
}, [p(h(
|
|
1418
|
+
}, [p(h(dt), {
|
|
1391
1419
|
size: 12,
|
|
1392
1420
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1393
1421
|
"aria-hidden": "true"
|
|
1394
|
-
}), b("span",
|
|
1422
|
+
}), b("span", Xn, r(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Yn)) : g("", !0),
|
|
1395
1423
|
e.required ? (a(), v("span", {
|
|
1396
1424
|
key: 1,
|
|
1397
1425
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1398
1426
|
title: h(t).customBlocks.fields.required
|
|
1399
|
-
}, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span",
|
|
1427
|
+
}, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", Qn, r(h(t).customBlocks.fields.required), 1)], 8, Zn)) : g("", !0)
|
|
1400
1428
|
]));
|
|
1401
1429
|
}
|
|
1402
|
-
}),
|
|
1430
|
+
}), er = ["title"], tr = /* @__PURE__ */ E({
|
|
1403
1431
|
__name: "BooleanField",
|
|
1404
1432
|
props: {
|
|
1405
1433
|
field: {},
|
|
@@ -1410,11 +1438,11 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1410
1438
|
},
|
|
1411
1439
|
emits: ["update:modelValue"],
|
|
1412
1440
|
setup(e, { emit: t }) {
|
|
1413
|
-
let n = t, { t: i } =
|
|
1441
|
+
let n = t, { t: i } = W();
|
|
1414
1442
|
return (t, o) => (a(), v("div", {
|
|
1415
1443
|
class: "tpl:mb-3.5",
|
|
1416
1444
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1417
|
-
}, [p(
|
|
1445
|
+
}, [p(X, {
|
|
1418
1446
|
"hide-label": e.hideLabel,
|
|
1419
1447
|
"control-id": e.controlId,
|
|
1420
1448
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -1424,7 +1452,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1424
1452
|
disabled: e.readOnly,
|
|
1425
1453
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1426
1454
|
}, {
|
|
1427
|
-
default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(), C(h(
|
|
1455
|
+
default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(), C(h(dt), {
|
|
1428
1456
|
key: 0,
|
|
1429
1457
|
size: 12,
|
|
1430
1458
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1437,9 +1465,9 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1437
1465
|
"label",
|
|
1438
1466
|
"required",
|
|
1439
1467
|
"disabled"
|
|
1440
|
-
])], 8,
|
|
1468
|
+
])], 8, er));
|
|
1441
1469
|
}
|
|
1442
|
-
}),
|
|
1470
|
+
}), nr = { class: "tpl:mb-3.5" }, rr = /* @__PURE__ */ E({
|
|
1443
1471
|
__name: "FieldWrapper",
|
|
1444
1472
|
props: {
|
|
1445
1473
|
label: {},
|
|
@@ -1448,10 +1476,10 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1448
1476
|
readOnly: { type: Boolean }
|
|
1449
1477
|
},
|
|
1450
1478
|
setup(e) {
|
|
1451
|
-
return (t, r) => (a(), v("div",
|
|
1479
|
+
return (t, r) => (a(), v("div", nr, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
1452
1480
|
key: 0,
|
|
1453
|
-
class: o(h(
|
|
1454
|
-
}, [p(
|
|
1481
|
+
class: o(h(J))
|
|
1482
|
+
}, [p($n, {
|
|
1455
1483
|
label: e.label,
|
|
1456
1484
|
required: e.required,
|
|
1457
1485
|
"read-only": e.readOnly
|
|
@@ -1471,14 +1499,14 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1471
1499
|
},
|
|
1472
1500
|
emits: ["update:modelValue"],
|
|
1473
1501
|
setup(e, { emit: t }) {
|
|
1474
|
-
let n = e, r = t, { t: i } =
|
|
1475
|
-
return (t, n) => (a(), C(
|
|
1502
|
+
let n = e, r = t, { t: i } = W(), o = T(Je, ot), s = m(() => xe(n.field, o));
|
|
1503
|
+
return (t, n) => (a(), C(rr, {
|
|
1476
1504
|
"hide-label": e.hideLabel,
|
|
1477
1505
|
label: e.field.label,
|
|
1478
1506
|
required: e.field.required,
|
|
1479
1507
|
"read-only": e.readOnly
|
|
1480
1508
|
}, {
|
|
1481
|
-
default: u(() => [p(
|
|
1509
|
+
default: u(() => [p(V, {
|
|
1482
1510
|
"model-value": e.modelValue,
|
|
1483
1511
|
placeholder: e.field.placeholder,
|
|
1484
1512
|
disabled: e.readOnly,
|
|
@@ -1516,12 +1544,12 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1516
1544
|
},
|
|
1517
1545
|
emits: ["update:modelValue"],
|
|
1518
1546
|
setup(e, { emit: t }) {
|
|
1519
|
-
let n = e, i = t, { t: s } =
|
|
1547
|
+
let n = e, i = t, { t: s } = W(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = be({
|
|
1520
1548
|
target: c,
|
|
1521
1549
|
blocked: () => !!n.readOnly,
|
|
1522
1550
|
apply: (e) => i("update:modelValue", e.url)
|
|
1523
1551
|
});
|
|
1524
|
-
return (t, n) => (a(), C(
|
|
1552
|
+
return (t, n) => (a(), C(rr, {
|
|
1525
1553
|
"hide-label": e.hideLabel,
|
|
1526
1554
|
label: e.field.label,
|
|
1527
1555
|
required: e.field.required,
|
|
@@ -1532,14 +1560,14 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1532
1560
|
ref: c,
|
|
1533
1561
|
class: "tpl:relative"
|
|
1534
1562
|
}, [
|
|
1535
|
-
h(f) ? (a(), C(
|
|
1563
|
+
h(f) ? (a(), C(ue, {
|
|
1536
1564
|
key: 0,
|
|
1537
1565
|
uploading: h(d)
|
|
1538
1566
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
1539
1567
|
e.readOnly ? (a(), v("input", {
|
|
1540
1568
|
key: 1,
|
|
1541
1569
|
type: "url",
|
|
1542
|
-
class: o([h(
|
|
1570
|
+
class: o([h(q), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1543
1571
|
value: e.modelValue,
|
|
1544
1572
|
placeholder: e.field.placeholder || "https://...",
|
|
1545
1573
|
disabled: "",
|
|
@@ -1547,7 +1575,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1547
1575
|
}, null, 10, ar)) : (a(), v("input", {
|
|
1548
1576
|
key: 2,
|
|
1549
1577
|
type: "url",
|
|
1550
|
-
class: o(h(
|
|
1578
|
+
class: o(h(q)),
|
|
1551
1579
|
value: e.modelValue,
|
|
1552
1580
|
placeholder: e.field.placeholder || "https://...",
|
|
1553
1581
|
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
@@ -1556,7 +1584,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1556
1584
|
key: 3,
|
|
1557
1585
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-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:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1558
1586
|
onClick: n[1] ||= (e) => h(m)()
|
|
1559
|
-
}, [p(h(
|
|
1587
|
+
}, [p(h(De), {
|
|
1560
1588
|
size: 14,
|
|
1561
1589
|
"stroke-width": 1.5
|
|
1562
1590
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
@@ -1587,8 +1615,8 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1587
1615
|
},
|
|
1588
1616
|
emits: ["update:modelValue"],
|
|
1589
1617
|
setup(e, { emit: t }) {
|
|
1590
|
-
let n = t, { t: r } =
|
|
1591
|
-
return (t, i) => (a(), C(
|
|
1618
|
+
let n = t, { t: r } = W();
|
|
1619
|
+
return (t, i) => (a(), C(rr, {
|
|
1592
1620
|
"hide-label": e.hideLabel,
|
|
1593
1621
|
label: e.field.label,
|
|
1594
1622
|
required: e.field.required,
|
|
@@ -1596,7 +1624,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1596
1624
|
}, {
|
|
1597
1625
|
default: u(() => [b("input", {
|
|
1598
1626
|
type: "number",
|
|
1599
|
-
class: o([h(
|
|
1627
|
+
class: o([h(q), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1600
1628
|
value: e.modelValue,
|
|
1601
1629
|
placeholder: e.field.placeholder,
|
|
1602
1630
|
min: e.field.min,
|
|
@@ -1630,7 +1658,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1630
1658
|
},
|
|
1631
1659
|
emits: ["update:modelValue"],
|
|
1632
1660
|
setup(e, { emit: t }) {
|
|
1633
|
-
let n = e, c = t, { t: l, format: d } =
|
|
1661
|
+
let n = e, c = t, { t: l, format: d } = W(), f = m(() => n.modelValue || []), _ = m(() => !n.field.maxItems || f.value.length < n.field.maxItems), x = m(() => !n.field.minItems || f.value.length > n.field.minItems);
|
|
1634
1662
|
function w() {
|
|
1635
1663
|
if (!_.value || n.readOnly) return;
|
|
1636
1664
|
let e = {};
|
|
@@ -1649,7 +1677,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1649
1677
|
} : r);
|
|
1650
1678
|
c("update:modelValue", r);
|
|
1651
1679
|
}
|
|
1652
|
-
return (t, n) => (a(), C(
|
|
1680
|
+
return (t, n) => (a(), C(rr, {
|
|
1653
1681
|
"hide-label": e.hideLabel,
|
|
1654
1682
|
label: e.field.label,
|
|
1655
1683
|
required: e.field.required,
|
|
@@ -1665,7 +1693,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1665
1693
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1666
1694
|
title: h(l).customBlocks.fields.removeItem,
|
|
1667
1695
|
onClick: (e) => T(n)
|
|
1668
|
-
}, [p(h(
|
|
1696
|
+
}, [p(h(Ie), {
|
|
1669
1697
|
size: 12,
|
|
1670
1698
|
"stroke-width": 2
|
|
1671
1699
|
})], 8, pr)) : g("", !0)]), (a(!0), v(S, null, s(e.field.fields, (r) => (a(), C(i(h(Tr)(r.type)), {
|
|
@@ -1683,9 +1711,9 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1683
1711
|
_.value && !e.readOnly ? (a(), v("button", {
|
|
1684
1712
|
key: 0,
|
|
1685
1713
|
type: "button",
|
|
1686
|
-
class: o(h(
|
|
1714
|
+
class: o(h(tt)),
|
|
1687
1715
|
onClick: w
|
|
1688
|
-
}, [p(h(
|
|
1716
|
+
}, [p(h(U), {
|
|
1689
1717
|
size: 14,
|
|
1690
1718
|
"stroke-width": 2
|
|
1691
1719
|
}), y(" " + r(h(l).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
|
|
@@ -1714,15 +1742,15 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1714
1742
|
},
|
|
1715
1743
|
emits: ["update:modelValue"],
|
|
1716
1744
|
setup(e, { emit: t }) {
|
|
1717
|
-
let n = t, { t: i } =
|
|
1718
|
-
return (t, c) => (a(), C(
|
|
1745
|
+
let n = t, { t: i } = W();
|
|
1746
|
+
return (t, c) => (a(), C(rr, {
|
|
1719
1747
|
"hide-label": e.hideLabel,
|
|
1720
1748
|
label: e.field.label,
|
|
1721
1749
|
required: e.field.required,
|
|
1722
1750
|
"read-only": e.readOnly
|
|
1723
1751
|
}, {
|
|
1724
1752
|
default: u(() => [b("select", {
|
|
1725
|
-
class: o([h(
|
|
1753
|
+
class: o([h(q), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1726
1754
|
value: e.modelValue,
|
|
1727
1755
|
disabled: e.readOnly,
|
|
1728
1756
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1753,8 +1781,8 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1753
1781
|
},
|
|
1754
1782
|
emits: ["update:modelValue"],
|
|
1755
1783
|
setup(e, { emit: t }) {
|
|
1756
|
-
let n = t, { t: r } =
|
|
1757
|
-
return (t, i) => (a(), C(
|
|
1784
|
+
let n = t, { t: r } = W();
|
|
1785
|
+
return (t, i) => (a(), C(rr, {
|
|
1758
1786
|
"hide-label": e.hideLabel,
|
|
1759
1787
|
label: e.field.label,
|
|
1760
1788
|
required: e.field.required,
|
|
@@ -1763,12 +1791,12 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1763
1791
|
default: u(() => [e.readOnly ? (a(), v("input", {
|
|
1764
1792
|
key: 0,
|
|
1765
1793
|
type: "text",
|
|
1766
|
-
class: o([h(
|
|
1794
|
+
class: o([h(q), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1767
1795
|
value: e.modelValue,
|
|
1768
1796
|
placeholder: e.field.placeholder,
|
|
1769
1797
|
disabled: "",
|
|
1770
1798
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1771
|
-
}, null, 10, br)) : (a(), C(
|
|
1799
|
+
}, null, 10, br)) : (a(), C(Z, {
|
|
1772
1800
|
key: 1,
|
|
1773
1801
|
"model-value": e.modelValue,
|
|
1774
1802
|
placeholder: e.field.placeholder,
|
|
@@ -1798,8 +1826,8 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1798
1826
|
},
|
|
1799
1827
|
emits: ["update:modelValue"],
|
|
1800
1828
|
setup(e, { emit: t }) {
|
|
1801
|
-
let n = t, { t: r } =
|
|
1802
|
-
return (t, i) => (a(), C(
|
|
1829
|
+
let n = t, { t: r } = W();
|
|
1830
|
+
return (t, i) => (a(), C(rr, {
|
|
1803
1831
|
"hide-label": e.hideLabel,
|
|
1804
1832
|
label: e.field.label,
|
|
1805
1833
|
required: e.field.required,
|
|
@@ -1813,7 +1841,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1813
1841
|
disabled: "",
|
|
1814
1842
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1815
1843
|
class: o(Cr)
|
|
1816
|
-
}, null, 8, Sr)) : (a(), C(
|
|
1844
|
+
}, null, 8, Sr)) : (a(), C(st, {
|
|
1817
1845
|
key: 1,
|
|
1818
1846
|
"model-value": e.modelValue,
|
|
1819
1847
|
placeholder: e.field.placeholder,
|
|
@@ -1832,7 +1860,7 @@ var fn = { class: "tpl:space-y-3.5" }, pn = ["data-testid"], mn = ["data-testid"
|
|
|
1832
1860
|
color: ir,
|
|
1833
1861
|
number: lr,
|
|
1834
1862
|
select: yr,
|
|
1835
|
-
boolean:
|
|
1863
|
+
boolean: tr,
|
|
1836
1864
|
repeatable: gr
|
|
1837
1865
|
};
|
|
1838
1866
|
function Tr(e) {
|
|
@@ -1862,7 +1890,7 @@ var Er = {
|
|
|
1862
1890
|
props: { block: {} },
|
|
1863
1891
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1864
1892
|
setup(e, { emit: t }) {
|
|
1865
|
-
let n = e, o = t, { t: c } =
|
|
1893
|
+
let n = e, o = t, { t: c } = W(), l = T(Ke, []), d = m(() => l.find((e) => e.type === n.block.customType)), f = m(() => n.block), { isFetching: _, fetchError: x, fetch: w, hasDataSource: E, needsFetch: D } = ae({
|
|
1866
1894
|
definition: d,
|
|
1867
1895
|
block: f,
|
|
1868
1896
|
onUpdate: (e, t) => {
|
|
@@ -1890,16 +1918,16 @@ var Er = {
|
|
|
1890
1918
|
type: "button",
|
|
1891
1919
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1892
1920
|
onClick: n[1] ||= (...e) => h(w) && h(w)(...e)
|
|
1893
|
-
}, [p(h(
|
|
1921
|
+
}, [p(h(Me), { size: 12 }), y(" " + r(h(c).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (a(), v("p", Nr, [p(h(we), {
|
|
1894
1922
|
size: 14,
|
|
1895
1923
|
class: "tpl:shrink-0"
|
|
1896
1924
|
}), y(" " + r(h(c).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
|
|
1897
|
-
(a(!0), v(S, null, s(d.value.fields, (t) => (a(), C(
|
|
1925
|
+
(a(!0), v(S, null, s(d.value.fields, (t) => (a(), C(Y, {
|
|
1898
1926
|
key: t.key,
|
|
1899
1927
|
path: `fieldValues.${t.key}`,
|
|
1900
1928
|
label: t.label
|
|
1901
1929
|
}, {
|
|
1902
|
-
label: u(() => [p(
|
|
1930
|
+
label: u(() => [p($n, {
|
|
1903
1931
|
label: t.label,
|
|
1904
1932
|
required: t.required,
|
|
1905
1933
|
"read-only": O(t)
|
|
@@ -1931,17 +1959,17 @@ var Er = {
|
|
|
1931
1959
|
props: { block: {} },
|
|
1932
1960
|
emits: ["update"],
|
|
1933
1961
|
setup(e, { emit: t }) {
|
|
1934
|
-
let n = t, { t: r } =
|
|
1962
|
+
let n = t, { t: r } = W();
|
|
1935
1963
|
function i(e, t) {
|
|
1936
1964
|
n("update", { [e]: t });
|
|
1937
1965
|
}
|
|
1938
1966
|
return (t, n) => (a(), v(S, null, [
|
|
1939
|
-
p(
|
|
1967
|
+
p(Y, {
|
|
1940
1968
|
label: h(r).divider.style,
|
|
1941
1969
|
class: "tpl:mb-3.5",
|
|
1942
1970
|
path: "lineStyle"
|
|
1943
1971
|
}, {
|
|
1944
|
-
default: u(() => [p(
|
|
1972
|
+
default: u(() => [p(Q, {
|
|
1945
1973
|
options: [
|
|
1946
1974
|
{
|
|
1947
1975
|
value: "solid",
|
|
@@ -1961,30 +1989,30 @@ var Er = {
|
|
|
1961
1989
|
}, null, 8, ["options", "model-value"])]),
|
|
1962
1990
|
_: 1
|
|
1963
1991
|
}, 8, ["label"]),
|
|
1964
|
-
p(
|
|
1992
|
+
p(Y, {
|
|
1965
1993
|
label: h(r).divider.color,
|
|
1966
1994
|
class: "tpl:mb-3.5",
|
|
1967
1995
|
path: "color"
|
|
1968
1996
|
}, {
|
|
1969
|
-
default: u(() => [p(
|
|
1997
|
+
default: u(() => [p(V, {
|
|
1970
1998
|
"model-value": e.block.color,
|
|
1971
1999
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1972
2000
|
}, null, 8, ["model-value"])]),
|
|
1973
2001
|
_: 1
|
|
1974
2002
|
}, 8, ["label"]),
|
|
1975
|
-
p(
|
|
2003
|
+
p(Y, {
|
|
1976
2004
|
label: h(r).divider.thickness,
|
|
1977
2005
|
class: "tpl:mb-3.5",
|
|
1978
2006
|
path: "thickness"
|
|
1979
2007
|
}, {
|
|
1980
2008
|
default: u(() => [b("div", Fr, [b("input", {
|
|
1981
2009
|
type: "number",
|
|
1982
|
-
class: o(h(
|
|
2010
|
+
class: o(h(K)),
|
|
1983
2011
|
value: e.block.thickness,
|
|
1984
2012
|
min: "1",
|
|
1985
2013
|
max: "10",
|
|
1986
2014
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1987
|
-
}, null, 42, Ir), b("span", { class: o(h(
|
|
2015
|
+
}, null, 42, Ir), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
1988
2016
|
_: 1
|
|
1989
2017
|
}, 8, ["label"])
|
|
1990
2018
|
], 64));
|
|
@@ -1994,8 +2022,8 @@ var Er = {
|
|
|
1994
2022
|
props: { block: {} },
|
|
1995
2023
|
emits: ["update"],
|
|
1996
2024
|
setup(e, { emit: t }) {
|
|
1997
|
-
let n = t, { t: i } =
|
|
1998
|
-
return (t, s) => (a(), C(
|
|
2025
|
+
let n = t, { t: i } = W();
|
|
2026
|
+
return (t, s) => (a(), C(Y, {
|
|
1999
2027
|
label: h(i).html.content,
|
|
2000
2028
|
class: "tpl:mb-3.5",
|
|
2001
2029
|
path: "content"
|
|
@@ -2004,9 +2032,9 @@ var Er = {
|
|
|
2004
2032
|
value: e.block.content,
|
|
2005
2033
|
placeholder: "<div>...</div>",
|
|
2006
2034
|
rows: "10",
|
|
2007
|
-
class: o(h(
|
|
2035
|
+
class: o(h(rt)),
|
|
2008
2036
|
onInput: s[0] ||= (e) => n("update", { content: e.target.value })
|
|
2009
|
-
}, null, 42, Rr), b("p", zr, [p(h(
|
|
2037
|
+
}, null, 42, Rr), b("p", zr, [p(h(Oe), {
|
|
2010
2038
|
size: 12,
|
|
2011
2039
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2012
2040
|
}), y(" " + r(h(i).html.sanitizationHint), 1)])]),
|
|
@@ -2020,7 +2048,7 @@ function Vr(e) {
|
|
|
2020
2048
|
t(() => e.block().id, () => {
|
|
2021
2049
|
n.value = !1, r.value = null;
|
|
2022
2050
|
});
|
|
2023
|
-
let i = m(() =>
|
|
2051
|
+
let i = m(() => de(e.block()) ?? e.measured()), a = m(() => {
|
|
2024
2052
|
let t = e.block().width;
|
|
2025
2053
|
return t === "full" ? e.room() : t;
|
|
2026
2054
|
}), o = m(() => {
|
|
@@ -2031,9 +2059,9 @@ function Vr(e) {
|
|
|
2031
2059
|
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
2032
2060
|
}), l = m(() => s.value && !n.value && c.value);
|
|
2033
2061
|
function u() {
|
|
2034
|
-
if (
|
|
2062
|
+
if (de(e.block())) return {};
|
|
2035
2063
|
let t = e.measured();
|
|
2036
|
-
return t ?
|
|
2064
|
+
return t ? fe(t) : {};
|
|
2037
2065
|
}
|
|
2038
2066
|
function d(t) {
|
|
2039
2067
|
if (r.value = null, !t) return n.value = !0, null;
|
|
@@ -2082,110 +2110,113 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2082
2110
|
], Wr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Gr = ["value"], Kr = { value: "full" }, qr = { value: "custom" }, Jr = {
|
|
2083
2111
|
key: 0,
|
|
2084
2112
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2085
|
-
}, Yr = ["value"], Xr = { class: "tpl:flex tpl:items-stretch" },
|
|
2113
|
+
}, Yr = ["value"], Xr = ["value"], Zr = { value: "auto" }, Qr = { value: "always" }, $r = { value: "never" }, ei = { class: "tpl:flex tpl:items-stretch" }, ti = ["value"], ni = {
|
|
2086
2114
|
key: 0,
|
|
2087
2115
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2088
2116
|
role: "status",
|
|
2089
2117
|
"data-testid": "image-height-capped"
|
|
2090
|
-
},
|
|
2118
|
+
}, ri = ["value"], ii = { value: "auto" }, ai = { value: "custom" }, oi = {
|
|
2091
2119
|
key: 2,
|
|
2092
2120
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2093
|
-
},
|
|
2121
|
+
}, si = ["value"], ci = 350, li = 200, ui = /* @__PURE__ */ E({
|
|
2094
2122
|
__name: "ImageToolbar",
|
|
2095
2123
|
props: { block: {} },
|
|
2096
2124
|
emits: ["update"],
|
|
2097
2125
|
setup(e, { emit: t }) {
|
|
2098
|
-
let n = e, i = t, { t: s, format: c } =
|
|
2126
|
+
let n = e, i = t, { t: s, format: c } = W(), l = T(Re, P.liquid), d = T(Xe, null), f = d ? Ze(d) : null, w = T(Ve, void 0), E = _(!1), D = _(!1), { start: O } = it(() => {
|
|
2099
2127
|
E.value = !1, D.value = !1;
|
|
2100
|
-
}, 1e3, { immediate: !1 }),
|
|
2128
|
+
}, 1e3, { immediate: !1 }), A = [
|
|
2101
2129
|
300,
|
|
2102
2130
|
400,
|
|
2103
2131
|
500
|
|
2104
|
-
],
|
|
2132
|
+
], j = m(() => {
|
|
2105
2133
|
let e = n.block.width;
|
|
2106
|
-
return e === "full" ? "full" :
|
|
2107
|
-
}), M = m(() => typeof n.block.height == "number" ? "custom" : "auto");
|
|
2108
|
-
function
|
|
2134
|
+
return e === "full" ? "full" : A.includes(e) ? String(e) : "custom";
|
|
2135
|
+
}), M = m(() => typeof n.block.height == "number" ? "custom" : "auto"), N = m(() => n.block.fluidOnMobile === !0 ? "always" : n.block.fluidOnMobile === !1 ? "never" : "auto");
|
|
2136
|
+
function F(e, t) {
|
|
2109
2137
|
i("update", { [e]: t });
|
|
2110
2138
|
}
|
|
2111
2139
|
function I(e) {
|
|
2112
2140
|
if (e === "custom") {
|
|
2113
2141
|
let e = n.block.width;
|
|
2114
|
-
(typeof e != "number" ||
|
|
2115
|
-
} else i("update",
|
|
2142
|
+
(typeof e != "number" || A.includes(e)) && i("update", xe.widthUpdates(ci));
|
|
2143
|
+
} else i("update", xe.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2116
2144
|
}
|
|
2117
2145
|
function L(e) {
|
|
2118
|
-
|
|
2146
|
+
F("height", e === "custom" ? li : void 0);
|
|
2119
2147
|
}
|
|
2120
2148
|
function ee(e) {
|
|
2121
|
-
|
|
2122
|
-
!Number.isFinite(t) || t <= 0 || P("height", t);
|
|
2149
|
+
F("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2123
2150
|
}
|
|
2124
2151
|
function te(e) {
|
|
2125
|
-
P("borderRadius", N(e) === null ? void 0 : e);
|
|
2126
|
-
}
|
|
2127
|
-
function ne(e) {
|
|
2128
2152
|
let t = Number(e);
|
|
2129
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2153
|
+
!Number.isFinite(t) || t <= 0 || F("height", t);
|
|
2130
2154
|
}
|
|
2131
2155
|
function R(e) {
|
|
2156
|
+
F("borderRadius", ne(e) === null ? void 0 : e);
|
|
2157
|
+
}
|
|
2158
|
+
function z(e) {
|
|
2159
|
+
let t = Number(e);
|
|
2160
|
+
!Number.isFinite(t) || t <= 0 || i("update", xe.widthUpdates(t));
|
|
2161
|
+
}
|
|
2162
|
+
function re(e) {
|
|
2132
2163
|
e !== n.block.src && i("update", {
|
|
2133
2164
|
src: e,
|
|
2134
|
-
...
|
|
2165
|
+
...fe(null)
|
|
2135
2166
|
});
|
|
2136
2167
|
}
|
|
2137
|
-
function
|
|
2168
|
+
function ie(e) {
|
|
2138
2169
|
i("update", {
|
|
2139
2170
|
src: e.url,
|
|
2140
|
-
...
|
|
2141
|
-
}), e.alt && (
|
|
2142
|
-
}
|
|
2143
|
-
let
|
|
2144
|
-
target:
|
|
2145
|
-
blocked:
|
|
2146
|
-
apply:
|
|
2147
|
-
}),
|
|
2171
|
+
...fe(se(e.width, e.height))
|
|
2172
|
+
}), e.alt && (F("alt", e.alt), D.value = !0), E.value = !0, O();
|
|
2173
|
+
}
|
|
2174
|
+
let ae = _(), ce = m(() => k(n.block.src, l)), { canBrowse: le, isUploading: me, showOverlay: he, openMediaBrowser: ge } = be({
|
|
2175
|
+
target: ae,
|
|
2176
|
+
blocked: ce,
|
|
2177
|
+
apply: ie
|
|
2178
|
+
}), _e = oe(() => ce.value || !n.block.src || de(n.block) ? void 0 : n.block.src), ve = cn(() => _e.value), ye = m(() => f ? pe(f.content.value, n.block.id, w) : null), xe = Vr({
|
|
2148
2179
|
block: () => n.block,
|
|
2149
|
-
room: () =>
|
|
2150
|
-
measured: () =>
|
|
2151
|
-
}), { available:
|
|
2152
|
-
function
|
|
2153
|
-
let e =
|
|
2180
|
+
room: () => ye.value,
|
|
2181
|
+
measured: () => ve.value
|
|
2182
|
+
}), { available: Se, locked: B, derivedHeight: V, cappedHeight: Ce } = xe;
|
|
2183
|
+
function we() {
|
|
2184
|
+
let e = xe.setLocked(!B.value);
|
|
2154
2185
|
e && i("update", e);
|
|
2155
2186
|
}
|
|
2156
|
-
let
|
|
2187
|
+
let H = _(null);
|
|
2157
2188
|
function Te(e) {
|
|
2158
|
-
|
|
2159
|
-
let t =
|
|
2189
|
+
H.value = e;
|
|
2190
|
+
let t = xe.heightUpdates(Number(e));
|
|
2160
2191
|
t && i("update", t);
|
|
2161
2192
|
}
|
|
2162
2193
|
return (t, n) => (a(), v(S, null, [
|
|
2163
|
-
p(
|
|
2194
|
+
p(Y, {
|
|
2164
2195
|
label: h(s).image.imageUrl,
|
|
2165
2196
|
class: "tpl:mb-3.5",
|
|
2166
2197
|
path: "src"
|
|
2167
2198
|
}, {
|
|
2168
2199
|
default: u(() => [b("div", {
|
|
2169
2200
|
ref_key: "dropZoneRef",
|
|
2170
|
-
ref:
|
|
2201
|
+
ref: ae,
|
|
2171
2202
|
class: "tpl:relative"
|
|
2172
2203
|
}, [
|
|
2173
|
-
h(
|
|
2204
|
+
h(he) ? (a(), C(ue, {
|
|
2174
2205
|
key: 0,
|
|
2175
|
-
uploading: h(
|
|
2206
|
+
uploading: h(me)
|
|
2176
2207
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
2177
|
-
p(
|
|
2208
|
+
p(Z, {
|
|
2178
2209
|
"model-value": e.block.src,
|
|
2179
2210
|
type: "url",
|
|
2180
2211
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2181
2212
|
pulse: E.value,
|
|
2182
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2213
|
+
"onUpdate:modelValue": n[0] ||= (e) => re(e)
|
|
2183
2214
|
}, null, 8, [
|
|
2184
2215
|
"model-value",
|
|
2185
2216
|
"placeholder",
|
|
2186
2217
|
"pulse"
|
|
2187
2218
|
]),
|
|
2188
|
-
h(
|
|
2219
|
+
h(le) ? (a(), v("button", {
|
|
2189
2220
|
key: 1,
|
|
2190
2221
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-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",
|
|
2191
2222
|
style: {
|
|
@@ -2193,15 +2224,15 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2193
2224
|
color: "var(--tpl-primary)",
|
|
2194
2225
|
"background-color": "var(--tpl-bg)"
|
|
2195
2226
|
},
|
|
2196
|
-
onClick: n[1] ||= (...e) => h(
|
|
2197
|
-
}, [p(h(
|
|
2227
|
+
onClick: n[1] ||= (...e) => h(ge) && h(ge)(...e)
|
|
2228
|
+
}, [p(h(De), {
|
|
2198
2229
|
size: 14,
|
|
2199
2230
|
"stroke-width": 1.5
|
|
2200
2231
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
2201
2232
|
], 512)]),
|
|
2202
2233
|
_: 1
|
|
2203
2234
|
}, 8, ["label"]),
|
|
2204
|
-
h(
|
|
2235
|
+
h(k)(e.block.src, h(l)) ? (a(), C(Y, {
|
|
2205
2236
|
key: 0,
|
|
2206
2237
|
class: "tpl:mb-3.5",
|
|
2207
2238
|
path: "placeholderUrl"
|
|
@@ -2209,43 +2240,43 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2209
2240
|
label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span", Hr, r(h(s).image.optional), 1)]),
|
|
2210
2241
|
default: u(() => [b("input", {
|
|
2211
2242
|
type: "url",
|
|
2212
|
-
class: o(h(
|
|
2243
|
+
class: o(h(q)),
|
|
2213
2244
|
value: e.block.placeholderUrl || "",
|
|
2214
2245
|
placeholder: h(s).image.placeholderUrlPlaceholder,
|
|
2215
2246
|
title: h(s).image.placeholderUrlTooltip,
|
|
2216
|
-
onInput: n[2] ||= (e) =>
|
|
2247
|
+
onInput: n[2] ||= (e) => F("placeholderUrl", e.target.value)
|
|
2217
2248
|
}, null, 42, Ur)]),
|
|
2218
2249
|
_: 1
|
|
2219
2250
|
})) : g("", !0),
|
|
2220
|
-
p(
|
|
2251
|
+
p(Y, {
|
|
2221
2252
|
label: h(s).image.altText,
|
|
2222
2253
|
class: "tpl:mb-3.5",
|
|
2223
2254
|
path: "alt"
|
|
2224
2255
|
}, {
|
|
2225
|
-
default: u(() => [p(
|
|
2256
|
+
default: u(() => [p(Z, {
|
|
2226
2257
|
"model-value": e.block.alt,
|
|
2227
2258
|
type: "text",
|
|
2228
2259
|
placeholder: h(s).image.altTextPlaceholder,
|
|
2229
2260
|
pulse: D.value,
|
|
2230
2261
|
disabled: e.block.decorative === !0,
|
|
2231
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2262
|
+
"onUpdate:modelValue": n[3] ||= (e) => F("alt", e)
|
|
2232
2263
|
}, null, 8, [
|
|
2233
2264
|
"model-value",
|
|
2234
2265
|
"placeholder",
|
|
2235
2266
|
"pulse",
|
|
2236
2267
|
"disabled"
|
|
2237
|
-
]), p(
|
|
2268
|
+
]), p(Y, {
|
|
2238
2269
|
path: "decorative",
|
|
2239
2270
|
label: h(s).image.decorative
|
|
2240
2271
|
}, {
|
|
2241
2272
|
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span", Wr, r(h(s).image.decorativeHint), 1)])]),
|
|
2242
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2273
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2243
2274
|
"control-id": t,
|
|
2244
2275
|
"hide-label": "",
|
|
2245
2276
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2246
2277
|
"model-value": e.block.decorative === !0,
|
|
2247
2278
|
label: h(s).image.decorative,
|
|
2248
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2279
|
+
"onUpdate:modelValue": n[4] ||= (e) => F("decorative", e)
|
|
2249
2280
|
}, null, 8, [
|
|
2250
2281
|
"control-id",
|
|
2251
2282
|
"model-value",
|
|
@@ -2255,72 +2286,89 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2255
2286
|
}, 8, ["label"])]),
|
|
2256
2287
|
_: 1
|
|
2257
2288
|
}, 8, ["label"]),
|
|
2258
|
-
p(
|
|
2289
|
+
p(Y, {
|
|
2259
2290
|
label: h(s).image.width,
|
|
2260
2291
|
class: "tpl:mb-3.5",
|
|
2261
2292
|
path: "width"
|
|
2262
2293
|
}, {
|
|
2263
2294
|
default: u(() => [b("select", {
|
|
2264
|
-
class: o(h(
|
|
2295
|
+
class: o(h(q)),
|
|
2265
2296
|
"data-testid": "image-width-mode",
|
|
2266
|
-
value:
|
|
2297
|
+
value: j.value,
|
|
2267
2298
|
onChange: n[5] ||= (e) => I(e.target.value)
|
|
2268
2299
|
}, [
|
|
2269
2300
|
b("option", Kr, r(h(s).image.fullWidth), 1),
|
|
2270
|
-
n[
|
|
2271
|
-
n[
|
|
2272
|
-
n[
|
|
2301
|
+
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2302
|
+
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2303
|
+
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2273
2304
|
b("option", qr, r(h(s).image.widthCustom), 1)
|
|
2274
|
-
], 42, Gr),
|
|
2305
|
+
], 42, Gr), j.value === "custom" ? (a(), v("div", Jr, [b("input", {
|
|
2275
2306
|
type: "number",
|
|
2276
2307
|
"data-testid": "image-width-input",
|
|
2277
|
-
class: o(h(
|
|
2278
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2308
|
+
class: o(h(K)),
|
|
2309
|
+
value: typeof e.block.width == "number" ? e.block.width : ci,
|
|
2279
2310
|
min: "20",
|
|
2280
|
-
onInput: n[6] ||= (e) =>
|
|
2281
|
-
}, null, 42, Yr), b("span", { class: o(h(
|
|
2311
|
+
onInput: n[6] ||= (e) => z(e.target.value)
|
|
2312
|
+
}, null, 42, Yr), b("span", { class: o(h(G)) }, "px", 2)])) : g("", !0)]),
|
|
2282
2313
|
_: 1
|
|
2283
2314
|
}, 8, ["label"]),
|
|
2284
|
-
p(
|
|
2315
|
+
p(Y, {
|
|
2316
|
+
label: h(s).image.fluidOnMobile,
|
|
2317
|
+
class: "tpl:mb-3.5",
|
|
2318
|
+
path: "fluidOnMobile"
|
|
2319
|
+
}, {
|
|
2320
|
+
default: u(() => [b("select", {
|
|
2321
|
+
class: o(h(q)),
|
|
2322
|
+
"data-testid": "image-fluid-on-mobile",
|
|
2323
|
+
value: N.value,
|
|
2324
|
+
onChange: n[7] ||= (e) => ee(e.target.value)
|
|
2325
|
+
}, [
|
|
2326
|
+
b("option", Zr, r(h(s).image.fluidOnMobileAuto), 1),
|
|
2327
|
+
b("option", Qr, r(h(s).image.fluidOnMobileAlways), 1),
|
|
2328
|
+
b("option", $r, r(h(s).image.fluidOnMobileNever), 1)
|
|
2329
|
+
], 42, Xr)]),
|
|
2330
|
+
_: 1
|
|
2331
|
+
}, 8, ["label"]),
|
|
2332
|
+
p(Y, {
|
|
2285
2333
|
class: "tpl:mb-3.5",
|
|
2286
2334
|
path: "height",
|
|
2287
2335
|
label: h(s).image.height
|
|
2288
2336
|
}, x({
|
|
2289
2337
|
default: u(() => [
|
|
2290
|
-
h(
|
|
2338
|
+
h(B) ? (a(), v(S, { key: 0 }, [b("div", ei, [b("input", {
|
|
2291
2339
|
type: "number",
|
|
2292
2340
|
"data-testid": "image-locked-height-input",
|
|
2293
|
-
class: o(h(
|
|
2294
|
-
value:
|
|
2341
|
+
class: o(h(K)),
|
|
2342
|
+
value: H.value ?? h(V) ?? "",
|
|
2295
2343
|
min: "1",
|
|
2296
|
-
onInput: n[
|
|
2297
|
-
onBlur: n[
|
|
2298
|
-
}, null, 42,
|
|
2299
|
-
h(
|
|
2344
|
+
onInput: n[8] ||= (e) => Te(e.target.value),
|
|
2345
|
+
onBlur: n[9] ||= (e) => H.value = null
|
|
2346
|
+
}, null, 42, ti), b("span", { class: o(h(G)) }, "px", 2)]), h(Ce) === null ? g("", !0) : (a(), v("p", ni, r(h(c)(h(s).image.heightCapped, { height: h(Ce) })), 1))], 64)) : g("", !0),
|
|
2347
|
+
h(B) ? g("", !0) : (a(), v("select", {
|
|
2300
2348
|
key: 1,
|
|
2301
|
-
class: o(h(
|
|
2349
|
+
class: o(h(q)),
|
|
2302
2350
|
"data-testid": "image-height-mode",
|
|
2303
2351
|
value: M.value,
|
|
2304
|
-
onChange: n[
|
|
2305
|
-
}, [b("option",
|
|
2306
|
-
!h(
|
|
2352
|
+
onChange: n[10] ||= (e) => L(e.target.value)
|
|
2353
|
+
}, [b("option", ii, r(h(s).image.heightAuto), 1), b("option", ai, r(h(s).image.heightCustom), 1)], 42, ri)),
|
|
2354
|
+
!h(B) && M.value === "custom" ? (a(), v("div", oi, [b("input", {
|
|
2307
2355
|
type: "number",
|
|
2308
2356
|
"data-testid": "image-height-input",
|
|
2309
|
-
class: o(h(
|
|
2357
|
+
class: o(h(K)),
|
|
2310
2358
|
value: e.block.height,
|
|
2311
2359
|
min: "20",
|
|
2312
|
-
onInput: n[
|
|
2313
|
-
}, null, 42,
|
|
2360
|
+
onInput: n[11] ||= (e) => te(e.target.value)
|
|
2361
|
+
}, null, 42, si), b("span", { class: o(h(G)) }, "px", 2)])) : g("", !0)
|
|
2314
2362
|
]),
|
|
2315
2363
|
_: 2
|
|
2316
|
-
}, [h(
|
|
2364
|
+
}, [h(Se) ? {
|
|
2317
2365
|
name: "label-actions",
|
|
2318
|
-
fn: u(() => [p(
|
|
2319
|
-
linked: h(
|
|
2366
|
+
fn: u(() => [p(yt, {
|
|
2367
|
+
linked: h(B),
|
|
2320
2368
|
"link-label": h(s).image.lockAspectRatio,
|
|
2321
2369
|
"unlink-label": h(s).image.unlockAspectRatio,
|
|
2322
2370
|
testid: "image-aspect-lock",
|
|
2323
|
-
onToggle:
|
|
2371
|
+
onToggle: we
|
|
2324
2372
|
}, null, 8, [
|
|
2325
2373
|
"linked",
|
|
2326
2374
|
"link-label",
|
|
@@ -2328,25 +2376,25 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2328
2376
|
])]),
|
|
2329
2377
|
key: "0"
|
|
2330
2378
|
} : void 0]), 1032, ["label"]),
|
|
2331
|
-
p(
|
|
2379
|
+
p(Et, {
|
|
2332
2380
|
path: "borderRadius",
|
|
2333
2381
|
"model-value": e.block.borderRadius,
|
|
2334
2382
|
label: h(s).image.borderRadius,
|
|
2335
2383
|
"testid-prefix": "image",
|
|
2336
|
-
"onUpdate:modelValue":
|
|
2384
|
+
"onUpdate:modelValue": R
|
|
2337
2385
|
}, null, 8, ["model-value", "label"]),
|
|
2338
|
-
p(
|
|
2386
|
+
p(Ct, {
|
|
2339
2387
|
path: "border",
|
|
2340
2388
|
"model-value": e.block.border,
|
|
2341
2389
|
"testid-prefix": "image",
|
|
2342
|
-
"onUpdate:modelValue": n[
|
|
2390
|
+
"onUpdate:modelValue": n[12] ||= (e) => F("border", e)
|
|
2343
2391
|
}, null, 8, ["model-value"]),
|
|
2344
|
-
p(
|
|
2392
|
+
p(Y, {
|
|
2345
2393
|
label: h(s).title.align,
|
|
2346
2394
|
class: "tpl:mb-3.5",
|
|
2347
2395
|
path: "align"
|
|
2348
2396
|
}, {
|
|
2349
|
-
default: u(() => [p(
|
|
2397
|
+
default: u(() => [p(Q, {
|
|
2350
2398
|
options: [
|
|
2351
2399
|
{
|
|
2352
2400
|
value: "left",
|
|
@@ -2362,32 +2410,32 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2362
2410
|
}
|
|
2363
2411
|
],
|
|
2364
2412
|
"model-value": e.block.align,
|
|
2365
|
-
"onUpdate:modelValue": n[
|
|
2413
|
+
"onUpdate:modelValue": n[13] ||= (e) => F("align", e)
|
|
2366
2414
|
}, null, 8, ["options", "model-value"])]),
|
|
2367
2415
|
_: 1
|
|
2368
2416
|
}, 8, ["label"]),
|
|
2369
|
-
p(
|
|
2417
|
+
p(Y, {
|
|
2370
2418
|
label: h(s).image.linkUrl,
|
|
2371
2419
|
class: "tpl:mb-3.5",
|
|
2372
2420
|
path: "linkUrl"
|
|
2373
2421
|
}, {
|
|
2374
|
-
default: u(() => [p(
|
|
2422
|
+
default: u(() => [p(Z, {
|
|
2375
2423
|
"model-value": e.block.linkUrl || "",
|
|
2376
2424
|
type: "url",
|
|
2377
2425
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2378
|
-
"onUpdate:modelValue": n[
|
|
2379
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (a(), C(
|
|
2426
|
+
"onUpdate:modelValue": n[14] ||= (e) => F("linkUrl", e)
|
|
2427
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (a(), C(Y, {
|
|
2380
2428
|
key: 0,
|
|
2381
2429
|
path: "linkOpenInNewTab",
|
|
2382
2430
|
label: h(s).image.openInNewTab
|
|
2383
2431
|
}, {
|
|
2384
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2432
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2385
2433
|
"control-id": t,
|
|
2386
2434
|
"hide-label": "",
|
|
2387
2435
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2388
2436
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2389
2437
|
label: h(s).image.openInNewTab,
|
|
2390
|
-
"onUpdate:modelValue": n[
|
|
2438
|
+
"onUpdate:modelValue": n[15] ||= (e) => F("linkOpenInNewTab", e)
|
|
2391
2439
|
}, null, 8, [
|
|
2392
2440
|
"control-id",
|
|
2393
2441
|
"model-value",
|
|
@@ -2399,11 +2447,11 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2399
2447
|
}, 8, ["label"])
|
|
2400
2448
|
], 64));
|
|
2401
2449
|
}
|
|
2402
|
-
}),
|
|
2450
|
+
}), di = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, fi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, pi = [
|
|
2403
2451
|
"value",
|
|
2404
2452
|
"placeholder",
|
|
2405
2453
|
"onInput"
|
|
2406
|
-
],
|
|
2454
|
+
], mi = ["title", "onClick"], hi = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, gi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _i = ["value"], vi = { value: "" }, yi = ["value"], bi = ["value"], xi = /* @__PURE__ */ E({
|
|
2407
2455
|
__name: "MenuToolbar",
|
|
2408
2456
|
props: {
|
|
2409
2457
|
block: {},
|
|
@@ -2411,7 +2459,7 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2411
2459
|
},
|
|
2412
2460
|
emits: ["update"],
|
|
2413
2461
|
setup(e, { emit: t }) {
|
|
2414
|
-
let n = e, i = t, { t: c } =
|
|
2462
|
+
let n = e, i = t, { t: c } = W(), l = m(() => [
|
|
2415
2463
|
{
|
|
2416
2464
|
key: "openInNewTab",
|
|
2417
2465
|
label: c.menu.openInNewTab
|
|
@@ -2428,17 +2476,17 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2428
2476
|
{
|
|
2429
2477
|
value: "left",
|
|
2430
2478
|
label: c.title.alignLeft,
|
|
2431
|
-
icon:
|
|
2479
|
+
icon: Fe
|
|
2432
2480
|
},
|
|
2433
2481
|
{
|
|
2434
2482
|
value: "center",
|
|
2435
2483
|
label: c.title.alignCenter,
|
|
2436
|
-
icon:
|
|
2484
|
+
icon: Ne
|
|
2437
2485
|
},
|
|
2438
2486
|
{
|
|
2439
2487
|
value: "right",
|
|
2440
2488
|
label: c.title.alignRight,
|
|
2441
|
-
icon:
|
|
2489
|
+
icon: Pe
|
|
2442
2490
|
}
|
|
2443
2491
|
]);
|
|
2444
2492
|
function f(e, t) {
|
|
@@ -2446,7 +2494,7 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2446
2494
|
}
|
|
2447
2495
|
function g() {
|
|
2448
2496
|
let e = {
|
|
2449
|
-
id:
|
|
2497
|
+
id: R(),
|
|
2450
2498
|
text: "",
|
|
2451
2499
|
url: "",
|
|
2452
2500
|
openInNewTab: !1,
|
|
@@ -2466,36 +2514,36 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2466
2514
|
i("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2467
2515
|
}
|
|
2468
2516
|
return (t, n) => (a(), v(S, null, [
|
|
2469
|
-
p(
|
|
2470
|
-
default: u(() => [b("div",
|
|
2517
|
+
p(Y, { label: h(c).menu.items }, {
|
|
2518
|
+
default: u(() => [b("div", di, [(a(!0), v(S, null, s(e.block.items, (t) => (a(), v("div", {
|
|
2471
2519
|
key: t.id,
|
|
2472
2520
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2473
2521
|
}, [
|
|
2474
|
-
b("div",
|
|
2522
|
+
b("div", fi, [p(Y, {
|
|
2475
2523
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2476
2524
|
label: h(c).menu.text
|
|
2477
2525
|
}, {
|
|
2478
2526
|
default: u(() => [b("input", {
|
|
2479
2527
|
type: "text",
|
|
2480
|
-
class: o([h(
|
|
2528
|
+
class: o([h(q), "tpl:flex-1"]),
|
|
2481
2529
|
value: t.text,
|
|
2482
2530
|
placeholder: h(c).menu.text,
|
|
2483
2531
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
2484
|
-
}, null, 42,
|
|
2532
|
+
}, null, 42, pi)]),
|
|
2485
2533
|
_: 2
|
|
2486
2534
|
}, 1032, ["path", "label"]), b("button", {
|
|
2487
|
-
class: o(h(
|
|
2535
|
+
class: o(h($e)),
|
|
2488
2536
|
title: h(c).menu.removeItem,
|
|
2489
2537
|
onClick: (e) => x(t.id)
|
|
2490
|
-
}, [p(h(
|
|
2538
|
+
}, [p(h(Le), {
|
|
2491
2539
|
size: 14,
|
|
2492
2540
|
"stroke-width": 2
|
|
2493
|
-
})], 10,
|
|
2494
|
-
p(
|
|
2541
|
+
})], 10, mi)]),
|
|
2542
|
+
p(Y, {
|
|
2495
2543
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2496
2544
|
label: h(c).button.url
|
|
2497
2545
|
}, {
|
|
2498
|
-
default: u(() => [p(
|
|
2546
|
+
default: u(() => [p(Z, {
|
|
2499
2547
|
"model-value": t.url,
|
|
2500
2548
|
type: "url",
|
|
2501
2549
|
placeholder: h(c).menu.urlPlaceholder,
|
|
@@ -2507,12 +2555,12 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2507
2555
|
])]),
|
|
2508
2556
|
_: 2
|
|
2509
2557
|
}, 1032, ["path", "label"]),
|
|
2510
|
-
b("div",
|
|
2558
|
+
b("div", hi, [(a(!0), v(S, null, s(l.value, (e) => (a(), C(Y, {
|
|
2511
2559
|
key: e.key,
|
|
2512
2560
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2513
2561
|
label: e.label
|
|
2514
2562
|
}, {
|
|
2515
|
-
"label-actions": u(({ controlId: n }) => [p(
|
|
2563
|
+
"label-actions": u(({ controlId: n }) => [p(X, {
|
|
2516
2564
|
"control-id": n,
|
|
2517
2565
|
"hide-label": "",
|
|
2518
2566
|
"model-value": t[e.key],
|
|
@@ -2526,11 +2574,11 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2526
2574
|
])]),
|
|
2527
2575
|
_: 2
|
|
2528
2576
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2529
|
-
b("div",
|
|
2577
|
+
b("div", gi, [p(Y, {
|
|
2530
2578
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2531
2579
|
label: h(c).menu.color
|
|
2532
2580
|
}, {
|
|
2533
|
-
default: u(() => [p(
|
|
2581
|
+
default: u(() => [p(V, {
|
|
2534
2582
|
"swatch-only": "",
|
|
2535
2583
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2536
2584
|
"onUpdate:modelValue": (e) => _(t.id, "color", e)
|
|
@@ -2538,33 +2586,33 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2538
2586
|
_: 2
|
|
2539
2587
|
}, 1032, ["path", "label"])])
|
|
2540
2588
|
]))), 128)), b("button", {
|
|
2541
|
-
class: o(h(
|
|
2589
|
+
class: o(h(tt)),
|
|
2542
2590
|
onClick: g
|
|
2543
|
-
}, [p(h(
|
|
2591
|
+
}, [p(h(U), {
|
|
2544
2592
|
size: 14,
|
|
2545
2593
|
"stroke-width": 2
|
|
2546
2594
|
}), y(" " + r(h(c).menu.addItem), 1)], 2)])]),
|
|
2547
2595
|
_: 1
|
|
2548
2596
|
}, 8, ["label"]),
|
|
2549
|
-
p(
|
|
2597
|
+
p(Y, {
|
|
2550
2598
|
path: "fontFamily",
|
|
2551
2599
|
label: h(c).menu.fontFamily
|
|
2552
2600
|
}, {
|
|
2553
2601
|
default: u(() => [b("select", {
|
|
2554
|
-
class: o(h(
|
|
2555
|
-
value: h(
|
|
2602
|
+
class: o(h(q)),
|
|
2603
|
+
value: h(lt)(e.block.fontFamily),
|
|
2556
2604
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2557
|
-
}, [b("option",
|
|
2605
|
+
}, [b("option", vi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
2558
2606
|
key: e.value,
|
|
2559
2607
|
value: e.value
|
|
2560
|
-
}, r(e.label), 9,
|
|
2608
|
+
}, r(e.label), 9, yi))), 128))], 42, _i)]),
|
|
2561
2609
|
_: 1
|
|
2562
2610
|
}, 8, ["label"]),
|
|
2563
|
-
p(
|
|
2611
|
+
p(Y, {
|
|
2564
2612
|
path: "fontSize",
|
|
2565
2613
|
label: h(c).menu.fontSize
|
|
2566
2614
|
}, {
|
|
2567
|
-
default: u(() => [p(
|
|
2615
|
+
default: u(() => [p(_t, {
|
|
2568
2616
|
"model-value": e.block.fontSize,
|
|
2569
2617
|
min: 8,
|
|
2570
2618
|
max: 48,
|
|
@@ -2573,64 +2621,64 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2573
2621
|
}, null, 8, ["model-value"])]),
|
|
2574
2622
|
_: 1
|
|
2575
2623
|
}, 8, ["label"]),
|
|
2576
|
-
p(
|
|
2624
|
+
p(Y, {
|
|
2577
2625
|
path: "color",
|
|
2578
2626
|
label: h(c).menu.color
|
|
2579
2627
|
}, {
|
|
2580
|
-
default: u(() => [p(
|
|
2628
|
+
default: u(() => [p(V, {
|
|
2581
2629
|
"model-value": e.block.color ?? "",
|
|
2582
2630
|
"onUpdate:modelValue": n[2] ||= (e) => f("color", e || void 0)
|
|
2583
2631
|
}, null, 8, ["model-value"])]),
|
|
2584
2632
|
_: 1
|
|
2585
2633
|
}, 8, ["label"]),
|
|
2586
|
-
p(
|
|
2634
|
+
p(Y, {
|
|
2587
2635
|
path: "linkColor",
|
|
2588
2636
|
label: h(c).menu.linkColor
|
|
2589
2637
|
}, {
|
|
2590
|
-
default: u(() => [p(
|
|
2638
|
+
default: u(() => [p(V, {
|
|
2591
2639
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2592
2640
|
"onUpdate:modelValue": n[3] ||= (e) => f("linkColor", e || void 0)
|
|
2593
2641
|
}, null, 8, ["model-value"])]),
|
|
2594
2642
|
_: 1
|
|
2595
2643
|
}, 8, ["label"]),
|
|
2596
|
-
p(
|
|
2644
|
+
p(Y, {
|
|
2597
2645
|
path: "textAlign",
|
|
2598
2646
|
label: h(c).menu.textAlign
|
|
2599
2647
|
}, {
|
|
2600
|
-
default: u(() => [p(
|
|
2648
|
+
default: u(() => [p(Q, {
|
|
2601
2649
|
options: d.value,
|
|
2602
2650
|
"model-value": e.block.textAlign,
|
|
2603
2651
|
"onUpdate:modelValue": n[4] ||= (e) => f("textAlign", e)
|
|
2604
2652
|
}, null, 8, ["options", "model-value"])]),
|
|
2605
2653
|
_: 1
|
|
2606
2654
|
}, 8, ["label"]),
|
|
2607
|
-
p(
|
|
2655
|
+
p(Y, {
|
|
2608
2656
|
path: "separator",
|
|
2609
2657
|
label: h(c).menu.separator
|
|
2610
2658
|
}, {
|
|
2611
2659
|
default: u(() => [b("input", {
|
|
2612
2660
|
type: "text",
|
|
2613
|
-
class: o(h(
|
|
2661
|
+
class: o(h(q)),
|
|
2614
2662
|
value: e.block.separator,
|
|
2615
2663
|
onInput: n[5] ||= (e) => f("separator", e.target.value)
|
|
2616
|
-
}, null, 42,
|
|
2664
|
+
}, null, 42, bi)]),
|
|
2617
2665
|
_: 1
|
|
2618
2666
|
}, 8, ["label"]),
|
|
2619
|
-
p(
|
|
2667
|
+
p(Y, {
|
|
2620
2668
|
path: "separatorColor",
|
|
2621
2669
|
label: h(c).menu.separatorColor
|
|
2622
2670
|
}, {
|
|
2623
|
-
default: u(() => [p(
|
|
2671
|
+
default: u(() => [p(V, {
|
|
2624
2672
|
"model-value": e.block.separatorColor,
|
|
2625
2673
|
"onUpdate:modelValue": n[6] ||= (e) => f("separatorColor", e)
|
|
2626
2674
|
}, null, 8, ["model-value"])]),
|
|
2627
2675
|
_: 1
|
|
2628
2676
|
}, 8, ["label"]),
|
|
2629
|
-
p(
|
|
2677
|
+
p(Y, {
|
|
2630
2678
|
path: "spacing",
|
|
2631
2679
|
label: h(c).menu.spacing
|
|
2632
2680
|
}, {
|
|
2633
|
-
default: u(() => [p(
|
|
2681
|
+
default: u(() => [p(_t, {
|
|
2634
2682
|
"model-value": e.block.spacing,
|
|
2635
2683
|
min: 0,
|
|
2636
2684
|
max: 50,
|
|
@@ -2641,33 +2689,33 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2641
2689
|
}, 8, ["label"])
|
|
2642
2690
|
], 64));
|
|
2643
2691
|
}
|
|
2644
|
-
}),
|
|
2692
|
+
}), Si = { class: "tpl:flex tpl:items-stretch" }, Ci = ["value"], wi = /* @__PURE__ */ E({
|
|
2645
2693
|
__name: "ParagraphToolbar",
|
|
2646
2694
|
props: { block: {} },
|
|
2647
2695
|
emits: ["update"],
|
|
2648
2696
|
setup(e, { emit: t }) {
|
|
2649
|
-
let n = t, { t: r } =
|
|
2650
|
-
return (t, i) => (a(), C(
|
|
2697
|
+
let n = t, { t: r } = W();
|
|
2698
|
+
return (t, i) => (a(), C(Y, {
|
|
2651
2699
|
label: h(r).paragraph.paragraphSpacing,
|
|
2652
2700
|
class: "tpl:mb-3.5",
|
|
2653
2701
|
"data-testid": "paragraph-spacing",
|
|
2654
2702
|
path: "paragraphSpacing"
|
|
2655
2703
|
}, {
|
|
2656
|
-
default: u(() => [b("div",
|
|
2704
|
+
default: u(() => [b("div", Si, [b("input", {
|
|
2657
2705
|
type: "number",
|
|
2658
|
-
class: o(h(
|
|
2659
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2706
|
+
class: o(h(K)),
|
|
2707
|
+
value: e.block.paragraphSpacing ?? h(N).paragraphGap,
|
|
2660
2708
|
min: "0",
|
|
2661
2709
|
max: "64",
|
|
2662
2710
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2663
|
-
}, null, 42,
|
|
2711
|
+
}, null, 42, Ci), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
2664
2712
|
_: 1
|
|
2665
2713
|
}, 8, ["label"]));
|
|
2666
2714
|
}
|
|
2667
2715
|
});
|
|
2668
2716
|
// src/utils/rebalanceColumnChildren.ts
|
|
2669
|
-
function
|
|
2670
|
-
let n =
|
|
2717
|
+
function Ti(e, t) {
|
|
2718
|
+
let n = re(t);
|
|
2671
2719
|
if (e.length === n) return e;
|
|
2672
2720
|
if (e.length < n) {
|
|
2673
2721
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2677,21 +2725,21 @@ function xi(e, t) {
|
|
|
2677
2725
|
return [...r.slice(0, n - 1), a];
|
|
2678
2726
|
}
|
|
2679
2727
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2680
|
-
var
|
|
2728
|
+
var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
2681
2729
|
key: 2,
|
|
2682
2730
|
class: "tpl:mb-3.5"
|
|
2683
|
-
},
|
|
2731
|
+
}, Ai = {
|
|
2684
2732
|
key: 0,
|
|
2685
2733
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2686
|
-
},
|
|
2734
|
+
}, ji = {
|
|
2687
2735
|
key: 1,
|
|
2688
2736
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2689
|
-
},
|
|
2737
|
+
}, Mi = /* @__PURE__ */ E({
|
|
2690
2738
|
__name: "SectionToolbar",
|
|
2691
2739
|
props: { block: {} },
|
|
2692
2740
|
emits: ["update"],
|
|
2693
2741
|
setup(e, { emit: t }) {
|
|
2694
|
-
let n = e, i = t, { t: c } =
|
|
2742
|
+
let n = e, i = t, { t: c } = W(), l = T(Ve, void 0), d = T(Ue, void 0), f = l !== void 0 && A(l), _ = m(() => d !== !1 || !!n.block.wrapper), y = m(() => f && !n.block.wrapper), x = m(() => f && _.value), w = m(() => j(n.block)?.applied === !0), E = m(() => [
|
|
2695
2743
|
{
|
|
2696
2744
|
value: "1",
|
|
2697
2745
|
label: c.section.column1
|
|
@@ -2714,7 +2762,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2714
2762
|
}
|
|
2715
2763
|
]);
|
|
2716
2764
|
function D(e) {
|
|
2717
|
-
let t = e.target.value, r =
|
|
2765
|
+
let t = e.target.value, r = Ti(n.block.children, t);
|
|
2718
2766
|
i("update", {
|
|
2719
2767
|
columns: t,
|
|
2720
2768
|
children: r
|
|
@@ -2723,7 +2771,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2723
2771
|
function O(e) {
|
|
2724
2772
|
i("update", { stackOnMobile: e });
|
|
2725
2773
|
}
|
|
2726
|
-
function
|
|
2774
|
+
function k(e) {
|
|
2727
2775
|
i("update", { borderRadius: e });
|
|
2728
2776
|
}
|
|
2729
2777
|
function M(e) {
|
|
@@ -2747,21 +2795,21 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2747
2795
|
N({ borderRadius: e });
|
|
2748
2796
|
}
|
|
2749
2797
|
return (t, n) => (a(), v(S, null, [
|
|
2750
|
-
b("div",
|
|
2751
|
-
class: o(h(
|
|
2798
|
+
b("div", Ei, [b("label", { class: o(h(J)) }, r(h(c).section.columns), 3), b("select", {
|
|
2799
|
+
class: o(h(q)),
|
|
2752
2800
|
value: e.block.columns,
|
|
2753
2801
|
onChange: D
|
|
2754
2802
|
}, [(a(!0), v(S, null, s(E.value, (e) => (a(), v("option", {
|
|
2755
2803
|
key: e.value,
|
|
2756
2804
|
value: e.value
|
|
2757
|
-
}, r(e.label), 9,
|
|
2758
|
-
e.block.columns === "1" ? g("", !0) : (a(), C(
|
|
2805
|
+
}, r(e.label), 9, Oi))), 128))], 42, Di)]),
|
|
2806
|
+
e.block.columns === "1" ? g("", !0) : (a(), C(Y, {
|
|
2759
2807
|
key: 0,
|
|
2760
2808
|
class: "tpl:mb-3.5",
|
|
2761
2809
|
path: "stackOnMobile",
|
|
2762
2810
|
label: h(c).section.stackOnMobile
|
|
2763
2811
|
}, {
|
|
2764
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2812
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2765
2813
|
"control-id": t,
|
|
2766
2814
|
"hide-label": "",
|
|
2767
2815
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2775,27 +2823,27 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2775
2823
|
])]),
|
|
2776
2824
|
_: 1
|
|
2777
2825
|
}, 8, ["label"])),
|
|
2778
|
-
p(
|
|
2826
|
+
p(Et, {
|
|
2779
2827
|
path: "borderRadius",
|
|
2780
2828
|
"model-value": e.block.borderRadius,
|
|
2781
2829
|
label: h(c).section.borderRadius,
|
|
2782
2830
|
max: 50,
|
|
2783
2831
|
"testid-prefix": "section",
|
|
2784
|
-
"onUpdate:modelValue":
|
|
2832
|
+
"onUpdate:modelValue": k
|
|
2785
2833
|
}, null, 8, ["model-value", "label"]),
|
|
2786
|
-
w.value ? g("", !0) : (a(), C(
|
|
2834
|
+
w.value ? g("", !0) : (a(), C(Ct, {
|
|
2787
2835
|
key: 1,
|
|
2788
2836
|
path: "border",
|
|
2789
2837
|
"model-value": e.block.border,
|
|
2790
2838
|
"testid-prefix": "section",
|
|
2791
2839
|
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
2792
2840
|
}, null, 8, ["model-value"])),
|
|
2793
|
-
_.value ? (a(), v("div",
|
|
2794
|
-
p(
|
|
2841
|
+
_.value ? (a(), v("div", ki, [
|
|
2842
|
+
p(Y, {
|
|
2795
2843
|
path: "wrapper",
|
|
2796
2844
|
label: h(c).section.wrapperEnable
|
|
2797
2845
|
}, {
|
|
2798
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2846
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2799
2847
|
"control-id": t,
|
|
2800
2848
|
"hide-label": "",
|
|
2801
2849
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2811,24 +2859,24 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2811
2859
|
])]),
|
|
2812
2860
|
_: 1
|
|
2813
2861
|
}, 8, ["label"]),
|
|
2814
|
-
x.value ? (a(), v("p",
|
|
2815
|
-
e.block.wrapper ? (a(), v("div",
|
|
2816
|
-
b("div", null, [p(
|
|
2862
|
+
x.value ? (a(), v("p", Ai, r(h(c).section.wrapperLayoutConflict), 1)) : g("", !0),
|
|
2863
|
+
e.block.wrapper ? (a(), v("div", ji, [
|
|
2864
|
+
b("div", null, [p(Y, {
|
|
2817
2865
|
path: "wrapper.backgroundColor",
|
|
2818
2866
|
label: h(c).blockSettings.color
|
|
2819
2867
|
}, {
|
|
2820
|
-
default: u(() => [p(
|
|
2868
|
+
default: u(() => [p(V, {
|
|
2821
2869
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2822
2870
|
"allow-transparent": "",
|
|
2823
2871
|
"onUpdate:modelValue": n[3] ||= (e) => N({ backgroundColor: e })
|
|
2824
2872
|
}, null, 8, ["model-value"])]),
|
|
2825
2873
|
_: 1
|
|
2826
2874
|
}, 8, ["label"])]),
|
|
2827
|
-
p(
|
|
2875
|
+
p(Y, {
|
|
2828
2876
|
path: "wrapper.backgroundImage",
|
|
2829
2877
|
label: h(c).blockSettings.backgroundImage
|
|
2830
2878
|
}, {
|
|
2831
|
-
default: u(() => [p(
|
|
2879
|
+
default: u(() => [p(vn, {
|
|
2832
2880
|
"hide-label": "",
|
|
2833
2881
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2834
2882
|
"testid-prefix": "section-wrapper",
|
|
@@ -2836,7 +2884,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2836
2884
|
}, null, 8, ["model-value"])]),
|
|
2837
2885
|
_: 1
|
|
2838
2886
|
}, 8, ["label"]),
|
|
2839
|
-
p(
|
|
2887
|
+
p(sn, {
|
|
2840
2888
|
path: "wrapper.padding",
|
|
2841
2889
|
label: h(c).blockSettings.padding,
|
|
2842
2890
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -2847,7 +2895,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2847
2895
|
},
|
|
2848
2896
|
"onUpdate:modelValue": P
|
|
2849
2897
|
}, null, 8, ["label", "model-value"]),
|
|
2850
|
-
p(
|
|
2898
|
+
p(Et, {
|
|
2851
2899
|
path: "wrapper.borderRadius",
|
|
2852
2900
|
"model-value": e.block.wrapper.borderRadius,
|
|
2853
2901
|
label: h(c).section.borderRadius,
|
|
@@ -2859,18 +2907,18 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2859
2907
|
])) : g("", !0)
|
|
2860
2908
|
], 64));
|
|
2861
2909
|
}
|
|
2862
|
-
}),
|
|
2910
|
+
}), Ni = { class: "tpl:mb-3.5" }, Pi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Fi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ii = ["value", "onChange"], Li = ["value"], Ri = ["title", "onClick"], zi = ["value"], Bi = { value: "solid" }, Vi = { value: "outlined" }, Hi = { value: "rounded" }, Ui = { value: "square" }, Wi = { value: "circle" }, Gi = { value: "plain" }, Ki = ["value"], qi = { value: "brand" }, Ji = { value: "dark" }, Yi = { value: "light" }, Xi = { class: "tpl:flex tpl:items-stretch" }, Zi = ["value"], Qi = /* @__PURE__ */ E({
|
|
2863
2911
|
__name: "SocialToolbar",
|
|
2864
2912
|
props: { block: {} },
|
|
2865
2913
|
emits: ["update"],
|
|
2866
2914
|
setup(e, { emit: t }) {
|
|
2867
|
-
let n = e, i = t, { t: c } =
|
|
2915
|
+
let n = e, i = t, { t: c } = W();
|
|
2868
2916
|
function l(e, t) {
|
|
2869
2917
|
i("update", { [e]: t });
|
|
2870
2918
|
}
|
|
2871
2919
|
function d() {
|
|
2872
2920
|
let e = {
|
|
2873
|
-
id:
|
|
2921
|
+
id: R(),
|
|
2874
2922
|
platform: "facebook",
|
|
2875
2923
|
url: ""
|
|
2876
2924
|
};
|
|
@@ -2887,35 +2935,35 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2887
2935
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2888
2936
|
}
|
|
2889
2937
|
return (t, n) => (a(), v(S, null, [
|
|
2890
|
-
b("div",
|
|
2938
|
+
b("div", Ni, [b("label", { class: o(h(J)) }, r(h(c).social.icons), 3), b("div", Pi, [(a(!0), v(S, null, s(e.block.icons, (e) => (a(), v("div", {
|
|
2891
2939
|
key: e.id,
|
|
2892
2940
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2893
|
-
}, [b("div",
|
|
2941
|
+
}, [b("div", Fi, [p(Y, {
|
|
2894
2942
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
2895
2943
|
label: h(c).social.icons
|
|
2896
2944
|
}, {
|
|
2897
2945
|
default: u(() => [b("select", {
|
|
2898
2946
|
"data-testid": "social-platform-select",
|
|
2899
|
-
class: o([h(
|
|
2947
|
+
class: o([h(q), "tpl:flex-1"]),
|
|
2900
2948
|
value: e.platform,
|
|
2901
2949
|
onChange: (t) => f(e.id, "platform", t.target.value)
|
|
2902
|
-
}, [(a(!0), v(S, null, s(h(
|
|
2950
|
+
}, [(a(!0), v(S, null, s(h(ve), (e) => (a(), v("option", {
|
|
2903
2951
|
key: e,
|
|
2904
2952
|
value: e
|
|
2905
|
-
}, r(h(c).social.platforms[e]), 9,
|
|
2953
|
+
}, r(h(c).social.platforms[e]), 9, Li))), 128))], 42, Ii)]),
|
|
2906
2954
|
_: 2
|
|
2907
2955
|
}, 1032, ["path", "label"]), b("button", {
|
|
2908
|
-
class: o(h(
|
|
2956
|
+
class: o(h($e)),
|
|
2909
2957
|
title: h(c).social.removeIcon,
|
|
2910
2958
|
onClick: (t) => m(e.id)
|
|
2911
|
-
}, [p(h(
|
|
2959
|
+
}, [p(h(Le), {
|
|
2912
2960
|
size: 14,
|
|
2913
2961
|
"stroke-width": 2
|
|
2914
|
-
})], 10,
|
|
2962
|
+
})], 10, Ri)]), p(Y, {
|
|
2915
2963
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
2916
2964
|
label: h(c).button.url
|
|
2917
2965
|
}, {
|
|
2918
|
-
default: u(() => [p(
|
|
2966
|
+
default: u(() => [p(Z, {
|
|
2919
2967
|
"model-value": e.url,
|
|
2920
2968
|
type: "url",
|
|
2921
2969
|
placeholder: h(c).social.urlPlaceholder,
|
|
@@ -2927,54 +2975,54 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2927
2975
|
])]),
|
|
2928
2976
|
_: 2
|
|
2929
2977
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
2930
|
-
class: o(h(
|
|
2978
|
+
class: o(h(tt)),
|
|
2931
2979
|
onClick: d
|
|
2932
|
-
}, [p(h(
|
|
2980
|
+
}, [p(h(U), {
|
|
2933
2981
|
size: 14,
|
|
2934
2982
|
"stroke-width": 2
|
|
2935
2983
|
}), y(" " + r(h(c).social.addIcon), 1)], 2)])]),
|
|
2936
|
-
p(
|
|
2984
|
+
p(Y, {
|
|
2937
2985
|
label: h(c).social.style,
|
|
2938
2986
|
class: "tpl:mb-3.5",
|
|
2939
2987
|
path: "iconStyle"
|
|
2940
2988
|
}, {
|
|
2941
2989
|
default: u(() => [b("select", {
|
|
2942
|
-
class: o(h(
|
|
2990
|
+
class: o(h(q)),
|
|
2943
2991
|
value: e.block.iconStyle,
|
|
2944
2992
|
onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
|
|
2945
2993
|
}, [
|
|
2946
|
-
b("option",
|
|
2947
|
-
b("option",
|
|
2948
|
-
b("option",
|
|
2949
|
-
b("option",
|
|
2950
|
-
b("option",
|
|
2951
|
-
b("option",
|
|
2952
|
-
], 42,
|
|
2994
|
+
b("option", Bi, r(h(c).social.styleSolid), 1),
|
|
2995
|
+
b("option", Vi, r(h(c).social.styleOutlined), 1),
|
|
2996
|
+
b("option", Hi, r(h(c).social.styleRounded), 1),
|
|
2997
|
+
b("option", Ui, r(h(c).social.styleSquare), 1),
|
|
2998
|
+
b("option", Wi, r(h(c).social.styleCircle), 1),
|
|
2999
|
+
b("option", Gi, r(h(c).social.stylePlain), 1)
|
|
3000
|
+
], 42, zi)]),
|
|
2953
3001
|
_: 1
|
|
2954
3002
|
}, 8, ["label"]),
|
|
2955
|
-
p(
|
|
3003
|
+
p(Y, {
|
|
2956
3004
|
label: h(c).social.color,
|
|
2957
3005
|
class: "tpl:mb-3.5",
|
|
2958
3006
|
path: "iconTone"
|
|
2959
3007
|
}, {
|
|
2960
3008
|
default: u(() => [b("select", {
|
|
2961
3009
|
"data-testid": "social-tone-select",
|
|
2962
|
-
class: o(h(
|
|
3010
|
+
class: o(h(q)),
|
|
2963
3011
|
value: e.block.iconTone ?? "brand",
|
|
2964
3012
|
onChange: n[1] ||= (e) => l("iconTone", e.target.value)
|
|
2965
3013
|
}, [
|
|
2966
|
-
b("option",
|
|
2967
|
-
b("option",
|
|
2968
|
-
b("option",
|
|
2969
|
-
], 42,
|
|
3014
|
+
b("option", qi, r(h(c).social.colorBrand), 1),
|
|
3015
|
+
b("option", Ji, r(h(c).social.colorDark), 1),
|
|
3016
|
+
b("option", Yi, r(h(c).social.colorLight), 1)
|
|
3017
|
+
], 42, Ki)]),
|
|
2970
3018
|
_: 1
|
|
2971
3019
|
}, 8, ["label"]),
|
|
2972
|
-
p(
|
|
3020
|
+
p(Y, {
|
|
2973
3021
|
label: h(c).social.size,
|
|
2974
3022
|
class: "tpl:mb-3.5",
|
|
2975
3023
|
path: "iconSize"
|
|
2976
3024
|
}, {
|
|
2977
|
-
default: u(() => [p(
|
|
3025
|
+
default: u(() => [p(Q, {
|
|
2978
3026
|
options: [
|
|
2979
3027
|
{
|
|
2980
3028
|
value: "small",
|
|
@@ -2994,42 +3042,42 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2994
3042
|
}, null, 8, ["options", "model-value"])]),
|
|
2995
3043
|
_: 1
|
|
2996
3044
|
}, 8, ["label"]),
|
|
2997
|
-
p(
|
|
3045
|
+
p(Y, {
|
|
2998
3046
|
label: h(c).social.spacing,
|
|
2999
3047
|
class: "tpl:mb-3.5",
|
|
3000
3048
|
path: "spacing"
|
|
3001
3049
|
}, {
|
|
3002
|
-
default: u(() => [b("div",
|
|
3050
|
+
default: u(() => [b("div", Xi, [b("input", {
|
|
3003
3051
|
type: "number",
|
|
3004
|
-
class: o(h(
|
|
3052
|
+
class: o(h(K)),
|
|
3005
3053
|
value: e.block.spacing,
|
|
3006
3054
|
min: "0",
|
|
3007
3055
|
max: "50",
|
|
3008
3056
|
onInput: n[3] ||= (e) => l("spacing", Number(e.target.value))
|
|
3009
|
-
}, null, 42,
|
|
3057
|
+
}, null, 42, Zi), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3010
3058
|
_: 1
|
|
3011
3059
|
}, 8, ["label"]),
|
|
3012
|
-
p(
|
|
3060
|
+
p(Y, {
|
|
3013
3061
|
label: h(c).social.align,
|
|
3014
3062
|
class: "tpl:mb-3.5",
|
|
3015
3063
|
path: "align"
|
|
3016
3064
|
}, {
|
|
3017
|
-
default: u(() => [p(
|
|
3065
|
+
default: u(() => [p(Q, {
|
|
3018
3066
|
options: [
|
|
3019
3067
|
{
|
|
3020
3068
|
value: "left",
|
|
3021
3069
|
label: h(c).title.alignLeft,
|
|
3022
|
-
icon: h(
|
|
3070
|
+
icon: h(Fe)
|
|
3023
3071
|
},
|
|
3024
3072
|
{
|
|
3025
3073
|
value: "center",
|
|
3026
3074
|
label: h(c).title.alignCenter,
|
|
3027
|
-
icon: h(
|
|
3075
|
+
icon: h(Ne)
|
|
3028
3076
|
},
|
|
3029
3077
|
{
|
|
3030
3078
|
value: "right",
|
|
3031
3079
|
label: h(c).title.alignRight,
|
|
3032
|
-
icon: h(
|
|
3080
|
+
icon: h(Pe)
|
|
3033
3081
|
}
|
|
3034
3082
|
],
|
|
3035
3083
|
"model-value": e.block.align,
|
|
@@ -3039,36 +3087,36 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3039
3087
|
}, 8, ["label"])
|
|
3040
3088
|
], 64));
|
|
3041
3089
|
}
|
|
3042
|
-
}),
|
|
3090
|
+
}), $i = { class: "tpl:flex tpl:items-stretch" }, ea = ["value"], ta = ["value"], na = /* @__PURE__ */ E({
|
|
3043
3091
|
__name: "SpacerToolbar",
|
|
3044
3092
|
props: { block: {} },
|
|
3045
3093
|
emits: ["update"],
|
|
3046
3094
|
setup(e, { emit: t }) {
|
|
3047
|
-
let n = t, { t: r } =
|
|
3048
|
-
return (t, i) => (a(), C(
|
|
3095
|
+
let n = t, { t: r } = W();
|
|
3096
|
+
return (t, i) => (a(), C(Y, {
|
|
3049
3097
|
label: h(r).spacer.height,
|
|
3050
3098
|
class: "tpl:mb-3.5",
|
|
3051
3099
|
path: "height"
|
|
3052
3100
|
}, {
|
|
3053
|
-
default: u(() => [b("div",
|
|
3101
|
+
default: u(() => [b("div", $i, [b("input", {
|
|
3054
3102
|
type: "number",
|
|
3055
|
-
class: o(h(
|
|
3103
|
+
class: o(h(K)),
|
|
3056
3104
|
value: e.block.height,
|
|
3057
3105
|
min: "10",
|
|
3058
3106
|
max: "100",
|
|
3059
3107
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3060
|
-
}, null, 42,
|
|
3108
|
+
}, null, 42, ea), b("span", { class: o(h(G)) }, "px", 2)]), b("input", {
|
|
3061
3109
|
type: "range",
|
|
3062
3110
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3063
3111
|
value: e.block.height,
|
|
3064
3112
|
min: "10",
|
|
3065
3113
|
max: "100",
|
|
3066
3114
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3067
|
-
}, null, 40,
|
|
3115
|
+
}, null, 40, ta)]),
|
|
3068
3116
|
_: 1
|
|
3069
3117
|
}, 8, ["label"]));
|
|
3070
3118
|
}
|
|
3071
|
-
}),
|
|
3119
|
+
}), ra = { class: "tpl:mb-3.5" }, ia = { class: "tpl:flex tpl:items-center tpl:gap-3" }, aa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, oa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, sa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ca = ["disabled"], la = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ua = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, da = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, fa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, pa = ["disabled"], ma = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ha = { class: "tpl:flex tpl:items-stretch" }, ga = ["value"], _a = { class: "tpl:flex tpl:items-stretch" }, va = ["value"], ya = ["value"], ba = { value: "" }, xa = ["value"], Sa = { class: "tpl:flex tpl:items-stretch" }, Ca = ["value"], wa = /* @__PURE__ */ E({
|
|
3072
3120
|
__name: "TableToolbar",
|
|
3073
3121
|
props: {
|
|
3074
3122
|
block: {},
|
|
@@ -3076,15 +3124,15 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3076
3124
|
},
|
|
3077
3125
|
emits: ["update"],
|
|
3078
3126
|
setup(e, { emit: t }) {
|
|
3079
|
-
let n = e, i = t, { t: c } =
|
|
3127
|
+
let n = e, i = t, { t: c } = W(), l = m(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3080
3128
|
function d(e, t) {
|
|
3081
3129
|
i("update", { [e]: t });
|
|
3082
3130
|
}
|
|
3083
3131
|
function f() {
|
|
3084
3132
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3085
|
-
id:
|
|
3133
|
+
id: R(),
|
|
3086
3134
|
cells: Array.from({ length: e }, () => ({
|
|
3087
|
-
id:
|
|
3135
|
+
id: R(),
|
|
3088
3136
|
content: ""
|
|
3089
3137
|
}))
|
|
3090
3138
|
};
|
|
@@ -3097,7 +3145,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3097
3145
|
let e = n.block.rows.map((e) => ({
|
|
3098
3146
|
...e,
|
|
3099
3147
|
cells: [...e.cells, {
|
|
3100
|
-
id:
|
|
3148
|
+
id: R(),
|
|
3101
3149
|
content: ""
|
|
3102
3150
|
}]
|
|
3103
3151
|
}));
|
|
@@ -3111,47 +3159,47 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3111
3159
|
i("update", { rows: t });
|
|
3112
3160
|
}
|
|
3113
3161
|
return (t, n) => (a(), v(S, null, [
|
|
3114
|
-
b("div",
|
|
3162
|
+
b("div", ra, [b("label", { class: o(h(J)) }, r(h(c).table.dimensions), 3), b("div", ia, [b("div", aa, [b("span", oa, r(h(c).table.rows), 1), b("div", sa, [
|
|
3115
3163
|
b("button", {
|
|
3116
3164
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
3117
3165
|
disabled: e.block.rows.length <= 1,
|
|
3118
3166
|
onClick: n[0] ||= (t) => _(e.block.rows[e.block.rows.length - 1].id)
|
|
3119
|
-
}, [p(h(
|
|
3167
|
+
}, [p(h(H), {
|
|
3120
3168
|
size: 12,
|
|
3121
3169
|
"stroke-width": 2
|
|
3122
|
-
})], 8,
|
|
3123
|
-
b("span",
|
|
3170
|
+
})], 8, ca),
|
|
3171
|
+
b("span", la, r(e.block.rows.length), 1),
|
|
3124
3172
|
b("button", {
|
|
3125
3173
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
|
|
3126
3174
|
onClick: f
|
|
3127
|
-
}, [p(h(
|
|
3175
|
+
}, [p(h(U), {
|
|
3128
3176
|
size: 12,
|
|
3129
3177
|
"stroke-width": 2
|
|
3130
3178
|
})])
|
|
3131
|
-
])]), b("div",
|
|
3179
|
+
])]), b("div", ua, [b("span", da, r(h(c).table.columns), 1), b("div", fa, [
|
|
3132
3180
|
b("button", {
|
|
3133
3181
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
3134
3182
|
disabled: l.value <= 1,
|
|
3135
3183
|
onClick: n[1] ||= (e) => x(l.value - 1)
|
|
3136
|
-
}, [p(h(
|
|
3184
|
+
}, [p(h(H), {
|
|
3137
3185
|
size: 12,
|
|
3138
3186
|
"stroke-width": 2
|
|
3139
|
-
})], 8,
|
|
3140
|
-
b("span",
|
|
3187
|
+
})], 8, pa),
|
|
3188
|
+
b("span", ma, r(l.value), 1),
|
|
3141
3189
|
b("button", {
|
|
3142
3190
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
|
|
3143
3191
|
onClick: y
|
|
3144
|
-
}, [p(h(
|
|
3192
|
+
}, [p(h(U), {
|
|
3145
3193
|
size: 12,
|
|
3146
3194
|
"stroke-width": 2
|
|
3147
3195
|
})])
|
|
3148
3196
|
])])])]),
|
|
3149
|
-
p(
|
|
3197
|
+
p(Y, {
|
|
3150
3198
|
class: "tpl:mb-3.5",
|
|
3151
3199
|
path: "hasHeaderRow",
|
|
3152
3200
|
label: h(c).table.hasHeaderRow
|
|
3153
3201
|
}, {
|
|
3154
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3202
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
3155
3203
|
"control-id": t,
|
|
3156
3204
|
"hide-label": "",
|
|
3157
3205
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3165,15 +3213,15 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3165
3213
|
])]),
|
|
3166
3214
|
_: 1
|
|
3167
3215
|
}, 8, ["label"]),
|
|
3168
|
-
e.block.hasHeaderRow ? (a(), C(
|
|
3216
|
+
e.block.hasHeaderRow ? (a(), C(Y, {
|
|
3169
3217
|
key: 0,
|
|
3170
3218
|
label: h(c).table.headerBackgroundColor,
|
|
3171
3219
|
class: "tpl:mb-3.5",
|
|
3172
3220
|
path: "headerBackgroundColor"
|
|
3173
3221
|
}, {
|
|
3174
|
-
default: u(() => [p(
|
|
3222
|
+
default: u(() => [p(V, {
|
|
3175
3223
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3176
|
-
"seed-color": h(
|
|
3224
|
+
"seed-color": h(nt),
|
|
3177
3225
|
placeholder: h(c).table.noHeaderBg,
|
|
3178
3226
|
"onUpdate:modelValue": n[3] ||= (e) => d("headerBackgroundColor", e || null)
|
|
3179
3227
|
}, null, 8, [
|
|
@@ -3183,109 +3231,109 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3183
3231
|
])]),
|
|
3184
3232
|
_: 1
|
|
3185
3233
|
}, 8, ["label"])) : g("", !0),
|
|
3186
|
-
p(
|
|
3234
|
+
p(Y, {
|
|
3187
3235
|
label: h(c).table.borderColor,
|
|
3188
3236
|
class: "tpl:mb-3.5",
|
|
3189
3237
|
path: "borderColor"
|
|
3190
3238
|
}, {
|
|
3191
|
-
default: u(() => [p(
|
|
3239
|
+
default: u(() => [p(V, {
|
|
3192
3240
|
"model-value": e.block.borderColor,
|
|
3193
3241
|
"onUpdate:modelValue": n[4] ||= (e) => d("borderColor", e)
|
|
3194
3242
|
}, null, 8, ["model-value"])]),
|
|
3195
3243
|
_: 1
|
|
3196
3244
|
}, 8, ["label"]),
|
|
3197
|
-
p(
|
|
3245
|
+
p(Y, {
|
|
3198
3246
|
label: h(c).table.borderWidth,
|
|
3199
3247
|
class: "tpl:mb-3.5",
|
|
3200
3248
|
path: "borderWidth"
|
|
3201
3249
|
}, {
|
|
3202
|
-
default: u(() => [b("div",
|
|
3250
|
+
default: u(() => [b("div", ha, [b("input", {
|
|
3203
3251
|
type: "number",
|
|
3204
|
-
class: o(h(
|
|
3252
|
+
class: o(h(K)),
|
|
3205
3253
|
value: e.block.borderWidth,
|
|
3206
3254
|
min: "0",
|
|
3207
3255
|
max: "10",
|
|
3208
3256
|
onInput: n[5] ||= (e) => d("borderWidth", Number(e.target.value))
|
|
3209
|
-
}, null, 42,
|
|
3257
|
+
}, null, 42, ga), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3210
3258
|
_: 1
|
|
3211
3259
|
}, 8, ["label"]),
|
|
3212
|
-
p(
|
|
3260
|
+
p(Y, {
|
|
3213
3261
|
label: h(c).table.cellPadding,
|
|
3214
3262
|
class: "tpl:mb-3.5",
|
|
3215
3263
|
path: "cellPadding"
|
|
3216
3264
|
}, {
|
|
3217
|
-
default: u(() => [b("div",
|
|
3265
|
+
default: u(() => [b("div", _a, [b("input", {
|
|
3218
3266
|
type: "number",
|
|
3219
|
-
class: o(h(
|
|
3267
|
+
class: o(h(K)),
|
|
3220
3268
|
value: e.block.cellPadding,
|
|
3221
3269
|
min: "0",
|
|
3222
3270
|
max: "30",
|
|
3223
3271
|
onInput: n[6] ||= (e) => d("cellPadding", Number(e.target.value))
|
|
3224
|
-
}, null, 42,
|
|
3272
|
+
}, null, 42, va), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3225
3273
|
_: 1
|
|
3226
3274
|
}, 8, ["label"]),
|
|
3227
|
-
p(
|
|
3275
|
+
p(Y, {
|
|
3228
3276
|
label: h(c).table.fontFamily,
|
|
3229
3277
|
class: "tpl:mb-3.5",
|
|
3230
3278
|
path: "fontFamily"
|
|
3231
3279
|
}, {
|
|
3232
3280
|
default: u(() => [b("select", {
|
|
3233
|
-
class: o(h(
|
|
3234
|
-
value: h(
|
|
3281
|
+
class: o(h(q)),
|
|
3282
|
+
value: h(lt)(e.block.fontFamily),
|
|
3235
3283
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3236
|
-
}, [b("option",
|
|
3284
|
+
}, [b("option", ba, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3237
3285
|
key: e.value,
|
|
3238
3286
|
value: e.value
|
|
3239
|
-
}, r(e.label), 9,
|
|
3287
|
+
}, r(e.label), 9, xa))), 128))], 42, ya)]),
|
|
3240
3288
|
_: 1
|
|
3241
3289
|
}, 8, ["label"]),
|
|
3242
|
-
p(
|
|
3290
|
+
p(Y, {
|
|
3243
3291
|
label: h(c).table.fontSize,
|
|
3244
3292
|
class: "tpl:mb-3.5",
|
|
3245
3293
|
path: "fontSize"
|
|
3246
3294
|
}, {
|
|
3247
|
-
default: u(() => [b("div",
|
|
3295
|
+
default: u(() => [b("div", Sa, [b("input", {
|
|
3248
3296
|
type: "number",
|
|
3249
|
-
class: o(h(
|
|
3297
|
+
class: o(h(K)),
|
|
3250
3298
|
value: e.block.fontSize,
|
|
3251
3299
|
min: "10",
|
|
3252
3300
|
max: "32",
|
|
3253
3301
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
3254
|
-
}, null, 42,
|
|
3302
|
+
}, null, 42, Ca), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3255
3303
|
_: 1
|
|
3256
3304
|
}, 8, ["label"]),
|
|
3257
|
-
p(
|
|
3305
|
+
p(Y, {
|
|
3258
3306
|
label: h(c).table.color,
|
|
3259
3307
|
class: "tpl:mb-3.5",
|
|
3260
3308
|
path: "color"
|
|
3261
3309
|
}, {
|
|
3262
|
-
default: u(() => [p(
|
|
3310
|
+
default: u(() => [p(V, {
|
|
3263
3311
|
"model-value": e.block.color ?? "",
|
|
3264
3312
|
"onUpdate:modelValue": n[9] ||= (e) => d("color", e || void 0)
|
|
3265
3313
|
}, null, 8, ["model-value"])]),
|
|
3266
3314
|
_: 1
|
|
3267
3315
|
}, 8, ["label"]),
|
|
3268
|
-
p(
|
|
3316
|
+
p(Y, {
|
|
3269
3317
|
label: h(c).table.textAlign,
|
|
3270
3318
|
class: "tpl:mb-3.5",
|
|
3271
3319
|
path: "textAlign"
|
|
3272
3320
|
}, {
|
|
3273
|
-
default: u(() => [p(
|
|
3321
|
+
default: u(() => [p(Q, {
|
|
3274
3322
|
options: [
|
|
3275
3323
|
{
|
|
3276
3324
|
value: "left",
|
|
3277
3325
|
label: h(c).title.alignLeft,
|
|
3278
|
-
icon: h(
|
|
3326
|
+
icon: h(Fe)
|
|
3279
3327
|
},
|
|
3280
3328
|
{
|
|
3281
3329
|
value: "center",
|
|
3282
3330
|
label: h(c).title.alignCenter,
|
|
3283
|
-
icon: h(
|
|
3331
|
+
icon: h(Ne)
|
|
3284
3332
|
},
|
|
3285
3333
|
{
|
|
3286
3334
|
value: "right",
|
|
3287
3335
|
label: h(c).title.alignRight,
|
|
3288
|
-
icon: h(
|
|
3336
|
+
icon: h(Pe)
|
|
3289
3337
|
}
|
|
3290
3338
|
],
|
|
3291
3339
|
"model-value": e.block.textAlign,
|
|
@@ -3295,7 +3343,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3295
3343
|
}, 8, ["label"])
|
|
3296
3344
|
], 64));
|
|
3297
3345
|
}
|
|
3298
|
-
}),
|
|
3346
|
+
}), Ta = ["value"], Ea = { value: 1 }, Da = { value: 2 }, Oa = { value: 3 }, ka = { value: 4 }, Aa = ["value"], ja = { value: "" }, Ma = ["value"], Na = /* @__PURE__ */ E({
|
|
3299
3347
|
__name: "TitleToolbar",
|
|
3300
3348
|
props: {
|
|
3301
3349
|
block: {},
|
|
@@ -3303,75 +3351,75 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3303
3351
|
},
|
|
3304
3352
|
emits: ["update"],
|
|
3305
3353
|
setup(e, { emit: t }) {
|
|
3306
|
-
let n = t, { t: i } =
|
|
3354
|
+
let n = t, { t: i } = W();
|
|
3307
3355
|
function c(e, t) {
|
|
3308
3356
|
n("update", { [e]: t });
|
|
3309
3357
|
}
|
|
3310
3358
|
return (t, n) => (a(), v(S, null, [
|
|
3311
|
-
p(
|
|
3359
|
+
p(Y, {
|
|
3312
3360
|
label: h(i).title.level,
|
|
3313
3361
|
class: "tpl:mb-3.5",
|
|
3314
3362
|
path: "level"
|
|
3315
3363
|
}, {
|
|
3316
3364
|
default: u(() => [b("select", {
|
|
3317
|
-
class: o(h(
|
|
3365
|
+
class: o(h(q)),
|
|
3318
3366
|
value: e.block.level,
|
|
3319
3367
|
onChange: n[0] ||= (e) => c("level", Number(e.target.value))
|
|
3320
3368
|
}, [
|
|
3321
|
-
b("option",
|
|
3322
|
-
b("option",
|
|
3323
|
-
b("option",
|
|
3324
|
-
b("option",
|
|
3325
|
-
], 42,
|
|
3369
|
+
b("option", Ea, r(h(i).title.heading1), 1),
|
|
3370
|
+
b("option", Da, r(h(i).title.heading2), 1),
|
|
3371
|
+
b("option", Oa, r(h(i).title.heading3), 1),
|
|
3372
|
+
b("option", ka, r(h(i).title.heading4), 1)
|
|
3373
|
+
], 42, Ta)]),
|
|
3326
3374
|
_: 1
|
|
3327
3375
|
}, 8, ["label"]),
|
|
3328
|
-
p(
|
|
3376
|
+
p(Y, {
|
|
3329
3377
|
label: h(i).title.fontFamily,
|
|
3330
3378
|
class: "tpl:mb-3.5",
|
|
3331
3379
|
path: "fontFamily"
|
|
3332
3380
|
}, {
|
|
3333
3381
|
default: u(() => [b("select", {
|
|
3334
|
-
class: o(h(
|
|
3335
|
-
value: h(
|
|
3382
|
+
class: o(h(q)),
|
|
3383
|
+
value: h(lt)(e.block.fontFamily),
|
|
3336
3384
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3337
|
-
}, [b("option",
|
|
3385
|
+
}, [b("option", ja, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3338
3386
|
key: e.value,
|
|
3339
3387
|
value: e.value
|
|
3340
|
-
}, r(e.label), 9,
|
|
3388
|
+
}, r(e.label), 9, Ma))), 128))], 42, Aa)]),
|
|
3341
3389
|
_: 1
|
|
3342
3390
|
}, 8, ["label"]),
|
|
3343
|
-
p(
|
|
3391
|
+
p(Y, {
|
|
3344
3392
|
label: h(i).title.color,
|
|
3345
3393
|
class: "tpl:mb-3.5",
|
|
3346
3394
|
path: "color"
|
|
3347
3395
|
}, {
|
|
3348
|
-
default: u(() => [p(
|
|
3396
|
+
default: u(() => [p(V, {
|
|
3349
3397
|
"model-value": e.block.color ?? "",
|
|
3350
3398
|
"onUpdate:modelValue": n[2] ||= (e) => c("color", e || void 0)
|
|
3351
3399
|
}, null, 8, ["model-value"])]),
|
|
3352
3400
|
_: 1
|
|
3353
3401
|
}, 8, ["label"]),
|
|
3354
|
-
p(
|
|
3402
|
+
p(Y, {
|
|
3355
3403
|
label: h(i).title.align,
|
|
3356
3404
|
class: "tpl:mb-3.5",
|
|
3357
3405
|
path: "textAlign"
|
|
3358
3406
|
}, {
|
|
3359
|
-
default: u(() => [p(
|
|
3407
|
+
default: u(() => [p(Q, {
|
|
3360
3408
|
options: [
|
|
3361
3409
|
{
|
|
3362
3410
|
value: "left",
|
|
3363
3411
|
label: h(i).title.alignLeft,
|
|
3364
|
-
icon: h(
|
|
3412
|
+
icon: h(Fe)
|
|
3365
3413
|
},
|
|
3366
3414
|
{
|
|
3367
3415
|
value: "center",
|
|
3368
3416
|
label: h(i).title.alignCenter,
|
|
3369
|
-
icon: h(
|
|
3417
|
+
icon: h(Ne)
|
|
3370
3418
|
},
|
|
3371
3419
|
{
|
|
3372
3420
|
value: "right",
|
|
3373
3421
|
label: h(i).title.alignRight,
|
|
3374
|
-
icon: h(
|
|
3422
|
+
icon: h(Pe)
|
|
3375
3423
|
}
|
|
3376
3424
|
],
|
|
3377
3425
|
"model-value": e.block.textAlign,
|
|
@@ -3381,78 +3429,78 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3381
3429
|
}, 8, ["label"])
|
|
3382
3430
|
], 64));
|
|
3383
3431
|
}
|
|
3384
|
-
}),
|
|
3432
|
+
}), Pa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Fa = [
|
|
3385
3433
|
"value",
|
|
3386
3434
|
"placeholder",
|
|
3387
3435
|
"title"
|
|
3388
|
-
],
|
|
3436
|
+
], Ia = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, La = ["value"], Ra = { value: "full" }, za = { value: "custom" }, Ba = {
|
|
3389
3437
|
key: 0,
|
|
3390
3438
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3391
|
-
},
|
|
3439
|
+
}, Va = ["value"], Ha = ["value"], Ua = { value: "auto" }, Wa = { value: "custom" }, Ga = {
|
|
3392
3440
|
key: 0,
|
|
3393
3441
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3394
|
-
},
|
|
3442
|
+
}, Ka = ["value"], qa = 350, Ja = 200, Ya = /* @__PURE__ */ E({
|
|
3395
3443
|
__name: "VideoToolbar",
|
|
3396
3444
|
props: { block: {} },
|
|
3397
3445
|
emits: ["update"],
|
|
3398
3446
|
setup(e, { emit: t }) {
|
|
3399
|
-
let n = e, i = t, { t: s } =
|
|
3447
|
+
let n = e, i = t, { t: s } = W(), c = T(He, null), l = T(Re, P.liquid), d = le(), f = [
|
|
3400
3448
|
300,
|
|
3401
3449
|
400,
|
|
3402
3450
|
500
|
|
3403
|
-
], x = m(() => !!c), w = m(() =>
|
|
3451
|
+
], x = m(() => !!c), w = m(() => k(n.block.url, l)), E = m(() => {
|
|
3404
3452
|
let e = n.block.width;
|
|
3405
3453
|
return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
|
|
3406
|
-
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start:
|
|
3454
|
+
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: A } = it(() => {
|
|
3407
3455
|
O.value = !1;
|
|
3408
3456
|
}, 1e3, { immediate: !1 });
|
|
3409
|
-
function
|
|
3457
|
+
function j(e, t) {
|
|
3410
3458
|
i("update", { [e]: t });
|
|
3411
3459
|
}
|
|
3412
3460
|
function M(e) {
|
|
3413
3461
|
if (e === "custom") {
|
|
3414
3462
|
let e = n.block.width;
|
|
3415
|
-
(typeof e != "number" || f.includes(e)) &&
|
|
3416
|
-
} else
|
|
3463
|
+
(typeof e != "number" || f.includes(e)) && j("width", qa);
|
|
3464
|
+
} else j("width", e === "full" ? "full" : Number(e));
|
|
3417
3465
|
}
|
|
3418
3466
|
function N(e) {
|
|
3419
3467
|
let t = Number(e);
|
|
3420
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3468
|
+
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3421
3469
|
}
|
|
3422
|
-
function
|
|
3423
|
-
|
|
3470
|
+
function F(e) {
|
|
3471
|
+
j("height", e === "custom" ? Ja : void 0);
|
|
3424
3472
|
}
|
|
3425
3473
|
function I(e) {
|
|
3426
3474
|
let t = Number(e);
|
|
3427
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3475
|
+
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3428
3476
|
}
|
|
3429
3477
|
async function L() {
|
|
3430
3478
|
let e = await c?.({ accept: ["images"] });
|
|
3431
|
-
d.alive && e && (
|
|
3479
|
+
d.alive && e && (j("thumbnailUrl", e.url), O.value = !0, A());
|
|
3432
3480
|
}
|
|
3433
3481
|
return (t, n) => (a(), v(S, null, [
|
|
3434
|
-
p(
|
|
3482
|
+
p(Y, {
|
|
3435
3483
|
label: h(s).video.videoUrl,
|
|
3436
3484
|
class: "tpl:mb-3.5",
|
|
3437
3485
|
path: "url"
|
|
3438
3486
|
}, {
|
|
3439
|
-
default: u(() => [p(
|
|
3487
|
+
default: u(() => [p(Z, {
|
|
3440
3488
|
"model-value": e.block.url,
|
|
3441
3489
|
type: "url",
|
|
3442
3490
|
placeholder: h(s).video.videoUrlPlaceholder,
|
|
3443
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3444
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), C(
|
|
3491
|
+
"onUpdate:modelValue": n[0] ||= (e) => j("url", e)
|
|
3492
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), C(Y, {
|
|
3445
3493
|
key: 0,
|
|
3446
3494
|
path: "openInNewTab",
|
|
3447
3495
|
label: h(s).video.openInNewTab
|
|
3448
3496
|
}, {
|
|
3449
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3497
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
3450
3498
|
"control-id": t,
|
|
3451
3499
|
"hide-label": "",
|
|
3452
3500
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
3453
3501
|
"model-value": e.block.openInNewTab ?? !1,
|
|
3454
3502
|
label: h(s).video.openInNewTab,
|
|
3455
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
3503
|
+
"onUpdate:modelValue": n[1] ||= (e) => j("openInNewTab", e)
|
|
3456
3504
|
}, null, 8, [
|
|
3457
3505
|
"control-id",
|
|
3458
3506
|
"model-value",
|
|
@@ -3462,33 +3510,33 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3462
3510
|
}, 8, ["label"])) : g("", !0)]),
|
|
3463
3511
|
_: 1
|
|
3464
3512
|
}, 8, ["label"]),
|
|
3465
|
-
w.value ? (a(), C(
|
|
3513
|
+
w.value ? (a(), C(Y, {
|
|
3466
3514
|
key: 0,
|
|
3467
3515
|
class: "tpl:mb-3.5",
|
|
3468
3516
|
path: "placeholderUrl"
|
|
3469
3517
|
}, {
|
|
3470
|
-
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span",
|
|
3518
|
+
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span", Pa, r(h(s).video.optional), 1)]),
|
|
3471
3519
|
default: u(() => [b("input", {
|
|
3472
3520
|
type: "url",
|
|
3473
|
-
class: o(h(
|
|
3521
|
+
class: o(h(q)),
|
|
3474
3522
|
value: e.block.placeholderUrl || "",
|
|
3475
3523
|
placeholder: h(s).video.placeholderUrlPlaceholder,
|
|
3476
3524
|
title: h(s).video.placeholderUrlTooltip,
|
|
3477
|
-
onInput: n[2] ||= (e) =>
|
|
3478
|
-
}, null, 42,
|
|
3525
|
+
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3526
|
+
}, null, 42, Fa)]),
|
|
3479
3527
|
_: 1
|
|
3480
3528
|
})) : g("", !0),
|
|
3481
|
-
p(
|
|
3529
|
+
p(Y, {
|
|
3482
3530
|
class: "tpl:mb-3.5",
|
|
3483
3531
|
path: "thumbnailUrl"
|
|
3484
3532
|
}, {
|
|
3485
|
-
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span",
|
|
3486
|
-
default: u(() => [p(
|
|
3533
|
+
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span", Ia, r(h(s).video.optional), 1)]),
|
|
3534
|
+
default: u(() => [p(Z, {
|
|
3487
3535
|
"model-value": e.block.thumbnailUrl,
|
|
3488
3536
|
type: "url",
|
|
3489
3537
|
placeholder: h(s).video.thumbnailPlaceholder,
|
|
3490
3538
|
pulse: O.value,
|
|
3491
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3539
|
+
"onUpdate:modelValue": n[3] ||= (e) => j("thumbnailUrl", e)
|
|
3492
3540
|
}, null, 8, [
|
|
3493
3541
|
"model-value",
|
|
3494
3542
|
"placeholder",
|
|
@@ -3502,77 +3550,77 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3502
3550
|
"background-color": "var(--tpl-bg)"
|
|
3503
3551
|
},
|
|
3504
3552
|
onClick: L
|
|
3505
|
-
}, [p(h(
|
|
3553
|
+
}, [p(h(De), {
|
|
3506
3554
|
size: 14,
|
|
3507
3555
|
"stroke-width": 1.5
|
|
3508
3556
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)]),
|
|
3509
3557
|
_: 1
|
|
3510
3558
|
}),
|
|
3511
|
-
p(
|
|
3559
|
+
p(Y, {
|
|
3512
3560
|
label: h(s).video.altText,
|
|
3513
3561
|
class: "tpl:mb-3.5",
|
|
3514
3562
|
path: "alt"
|
|
3515
3563
|
}, {
|
|
3516
|
-
default: u(() => [p(
|
|
3564
|
+
default: u(() => [p(Z, {
|
|
3517
3565
|
"model-value": e.block.alt,
|
|
3518
3566
|
type: "text",
|
|
3519
3567
|
placeholder: h(s).video.altTextPlaceholder,
|
|
3520
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3568
|
+
"onUpdate:modelValue": n[4] ||= (e) => j("alt", e)
|
|
3521
3569
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3522
3570
|
_: 1
|
|
3523
3571
|
}, 8, ["label"]),
|
|
3524
|
-
p(
|
|
3572
|
+
p(Y, {
|
|
3525
3573
|
label: h(s).video.width,
|
|
3526
3574
|
class: "tpl:mb-3.5",
|
|
3527
3575
|
path: "width"
|
|
3528
3576
|
}, {
|
|
3529
3577
|
default: u(() => [b("select", {
|
|
3530
|
-
class: o(h(
|
|
3578
|
+
class: o(h(q)),
|
|
3531
3579
|
"data-testid": "video-width-mode",
|
|
3532
3580
|
value: E.value,
|
|
3533
3581
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3534
3582
|
}, [
|
|
3535
|
-
b("option",
|
|
3583
|
+
b("option", Ra, r(h(s).video.fullWidth), 1),
|
|
3536
3584
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3537
3585
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3538
3586
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3539
|
-
b("option",
|
|
3540
|
-
], 42,
|
|
3587
|
+
b("option", za, r(h(s).video.widthCustom), 1)
|
|
3588
|
+
], 42, La), E.value === "custom" ? (a(), v("div", Ba, [b("input", {
|
|
3541
3589
|
type: "number",
|
|
3542
3590
|
"data-testid": "video-width-input",
|
|
3543
|
-
class: o(h(
|
|
3591
|
+
class: o(h(K)),
|
|
3544
3592
|
value: e.block.width,
|
|
3545
3593
|
min: "20",
|
|
3546
3594
|
onInput: n[6] ||= (e) => N(e.target.value)
|
|
3547
|
-
}, null, 42,
|
|
3595
|
+
}, null, 42, Va), b("span", { class: o(h(G)) }, "px", 2)])) : g("", !0)]),
|
|
3548
3596
|
_: 1
|
|
3549
3597
|
}, 8, ["label"]),
|
|
3550
|
-
p(
|
|
3598
|
+
p(Y, {
|
|
3551
3599
|
label: h(s).video.height,
|
|
3552
3600
|
class: "tpl:mb-3.5",
|
|
3553
3601
|
path: "height"
|
|
3554
3602
|
}, {
|
|
3555
3603
|
default: u(() => [b("select", {
|
|
3556
|
-
class: o(h(
|
|
3604
|
+
class: o(h(q)),
|
|
3557
3605
|
"data-testid": "video-height-mode",
|
|
3558
3606
|
value: D.value,
|
|
3559
|
-
onChange: n[7] ||= (e) =>
|
|
3560
|
-
}, [b("option",
|
|
3607
|
+
onChange: n[7] ||= (e) => F(e.target.value)
|
|
3608
|
+
}, [b("option", Ua, r(h(s).video.heightAuto), 1), b("option", Wa, r(h(s).video.heightCustom), 1)], 42, Ha), D.value === "custom" ? (a(), v("div", Ga, [b("input", {
|
|
3561
3609
|
type: "number",
|
|
3562
3610
|
"data-testid": "video-height-input",
|
|
3563
|
-
class: o(h(
|
|
3611
|
+
class: o(h(K)),
|
|
3564
3612
|
value: e.block.height,
|
|
3565
3613
|
min: "20",
|
|
3566
3614
|
onInput: n[8] ||= (e) => I(e.target.value)
|
|
3567
|
-
}, null, 42,
|
|
3615
|
+
}, null, 42, Ka), b("span", { class: o(h(G)) }, "px", 2)])) : g("", !0)]),
|
|
3568
3616
|
_: 1
|
|
3569
3617
|
}, 8, ["label"]),
|
|
3570
|
-
p(
|
|
3618
|
+
p(Y, {
|
|
3571
3619
|
label: h(s).title.align,
|
|
3572
3620
|
class: "tpl:mb-3.5",
|
|
3573
3621
|
path: "align"
|
|
3574
3622
|
}, {
|
|
3575
|
-
default: u(() => [p(
|
|
3623
|
+
default: u(() => [p(Q, {
|
|
3576
3624
|
options: [
|
|
3577
3625
|
{
|
|
3578
3626
|
value: "left",
|
|
@@ -3588,13 +3636,13 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3588
3636
|
}
|
|
3589
3637
|
],
|
|
3590
3638
|
"model-value": e.block.align,
|
|
3591
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
3639
|
+
"onUpdate:modelValue": n[9] ||= (e) => j("align", e)
|
|
3592
3640
|
}, null, 8, ["options", "model-value"])]),
|
|
3593
3641
|
_: 1
|
|
3594
3642
|
}, 8, ["label"])
|
|
3595
3643
|
], 64));
|
|
3596
3644
|
}
|
|
3597
|
-
}),
|
|
3645
|
+
}), Xa = ["aria-label"], Za = ["disabled", "inert"], Qa = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, $a = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, eo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, to = { class: "tpl:flex tpl:gap-1" }, no = ["title"], ro = ["title"], io = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, ao = /*@__PURE__*/ E({
|
|
3598
3646
|
__name: "Toolbar",
|
|
3599
3647
|
props: { block: {} },
|
|
3600
3648
|
emits: [
|
|
@@ -3603,9 +3651,9 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3603
3651
|
"duplicate"
|
|
3604
3652
|
],
|
|
3605
3653
|
setup(e, { emit: t }) {
|
|
3606
|
-
let n = w(() => import("./CountdownToolbar-
|
|
3654
|
+
let n = w(() => import("./CountdownToolbar-CA_gDIdZ.js")), o = e, s = t, { t: c } = W(), l = at(), u = qe(Ge, "Toolbar"), d = T(Ke, []), f = m(() => o.block.type), _ = m(() => F(o.block)), y = m(() => {
|
|
3607
3655
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
3608
|
-
}), x = m(() => _.value ? y.value?.name ?? o.block.customType :
|
|
3656
|
+
}), x = m(() => _.value ? y.value?.name ?? o.block.customType : ce(f.value, c)), S = m(() => ct(u.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
|
|
3609
3657
|
function E(e) {
|
|
3610
3658
|
l.value && s("update", e);
|
|
3611
3659
|
}
|
|
@@ -3617,55 +3665,55 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3617
3665
|
disabled: !h(l),
|
|
3618
3666
|
inert: !h(l),
|
|
3619
3667
|
class: "tpl:contents"
|
|
3620
|
-
}, [b("div",
|
|
3668
|
+
}, [b("div", Qa, [b("div", $a, [h(Te)[f.value] ? (a(), C(i(h(Te)[f.value]), {
|
|
3621
3669
|
key: 0,
|
|
3622
3670
|
size: 16,
|
|
3623
3671
|
"stroke-width": 1.5
|
|
3624
|
-
})) : _.value ? (a(), C(h(
|
|
3672
|
+
})) : _.value ? (a(), C(h(me), {
|
|
3625
3673
|
key: 1,
|
|
3626
3674
|
size: 16,
|
|
3627
3675
|
"stroke-width": 1.5
|
|
3628
|
-
})) : g("", !0), b("h3",
|
|
3676
|
+
})) : g("", !0), b("h3", eo, r(x.value), 1)]), b("div", to, [b("button", {
|
|
3629
3677
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
3630
3678
|
title: h(c).toolbar.duplicate,
|
|
3631
3679
|
onClick: o[0] ||= (e) => s("duplicate")
|
|
3632
|
-
}, [p(h(
|
|
3680
|
+
}, [p(h(Ee), {
|
|
3633
3681
|
size: 14,
|
|
3634
3682
|
"stroke-width": 2
|
|
3635
|
-
})], 8,
|
|
3683
|
+
})], 8, no), b("button", {
|
|
3636
3684
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
3637
3685
|
title: h(c).toolbar.delete,
|
|
3638
3686
|
onClick: o[1] ||= (e) => s("delete")
|
|
3639
|
-
}, [p(h(
|
|
3687
|
+
}, [p(h(Ie), {
|
|
3640
3688
|
size: 14,
|
|
3641
3689
|
"stroke-width": 2
|
|
3642
|
-
})], 8,
|
|
3690
|
+
})], 8, ro)])]), b("div", io, [_.value ? (a(), C(Pr, {
|
|
3643
3691
|
key: 0,
|
|
3644
3692
|
block: e.block,
|
|
3645
3693
|
onUpdateFieldValues: o[2] ||= (e) => s("update", { fieldValues: e }),
|
|
3646
3694
|
onUpdateDataSourceFetched: o[3] ||= (e) => s("update", { dataSourceFetched: e })
|
|
3647
|
-
}, null, 8, ["block"])) : f.value === "section" ? (a(), C(
|
|
3695
|
+
}, null, 8, ["block"])) : f.value === "section" ? (a(), C(Mi, {
|
|
3648
3696
|
key: 1,
|
|
3649
3697
|
block: e.block,
|
|
3650
3698
|
onUpdate: E
|
|
3651
|
-
}, null, 8, ["block"])) : f.value === "title" ? (a(), C(
|
|
3699
|
+
}, null, 8, ["block"])) : f.value === "title" ? (a(), C(Na, {
|
|
3652
3700
|
key: 2,
|
|
3653
3701
|
block: e.block,
|
|
3654
3702
|
"font-families": S.value,
|
|
3655
3703
|
onUpdate: E
|
|
3656
|
-
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), C(
|
|
3704
|
+
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), C(wi, {
|
|
3657
3705
|
key: 3,
|
|
3658
3706
|
block: e.block,
|
|
3659
3707
|
onUpdate: E
|
|
3660
|
-
}, null, 8, ["block"])) : f.value === "image" ? (a(), C(
|
|
3708
|
+
}, null, 8, ["block"])) : f.value === "image" ? (a(), C(ui, {
|
|
3661
3709
|
key: 4,
|
|
3662
3710
|
block: e.block,
|
|
3663
3711
|
onUpdate: E
|
|
3664
|
-
}, null, 8, ["block"])) : f.value === "video" ? (a(), C(
|
|
3712
|
+
}, null, 8, ["block"])) : f.value === "video" ? (a(), C(Ya, {
|
|
3665
3713
|
key: 5,
|
|
3666
3714
|
block: e.block,
|
|
3667
3715
|
onUpdate: E
|
|
3668
|
-
}, null, 8, ["block"])) : f.value === "button" ? (a(), C(
|
|
3716
|
+
}, null, 8, ["block"])) : f.value === "button" ? (a(), C(zt, {
|
|
3669
3717
|
key: 6,
|
|
3670
3718
|
block: e.block,
|
|
3671
3719
|
"font-families": S.value,
|
|
@@ -3674,21 +3722,21 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3674
3722
|
key: 7,
|
|
3675
3723
|
block: e.block,
|
|
3676
3724
|
onUpdate: E
|
|
3677
|
-
}, null, 8, ["block"])) : f.value === "social" ? (a(), C(
|
|
3725
|
+
}, null, 8, ["block"])) : f.value === "social" ? (a(), C(Qi, {
|
|
3678
3726
|
key: 8,
|
|
3679
3727
|
block: e.block,
|
|
3680
3728
|
onUpdate: E
|
|
3681
|
-
}, null, 8, ["block"])) : f.value === "menu" ? (a(), C(
|
|
3729
|
+
}, null, 8, ["block"])) : f.value === "menu" ? (a(), C(xi, {
|
|
3682
3730
|
key: 9,
|
|
3683
3731
|
block: e.block,
|
|
3684
3732
|
"font-families": S.value,
|
|
3685
3733
|
onUpdate: E
|
|
3686
|
-
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), C(
|
|
3734
|
+
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), C(wa, {
|
|
3687
3735
|
key: 10,
|
|
3688
3736
|
block: e.block,
|
|
3689
3737
|
"font-families": S.value,
|
|
3690
3738
|
onUpdate: E
|
|
3691
|
-
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), C(
|
|
3739
|
+
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), C(na, {
|
|
3692
3740
|
key: 11,
|
|
3693
3741
|
block: e.block,
|
|
3694
3742
|
onUpdate: E
|
|
@@ -3701,11 +3749,11 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3701
3749
|
block: e.block,
|
|
3702
3750
|
"font-families": S.value,
|
|
3703
3751
|
onUpdate: E
|
|
3704
|
-
}, null, 8, ["block", "font-families"])) : g("", !0), p(
|
|
3752
|
+
}, null, 8, ["block", "font-families"])) : g("", !0), p(Jn, {
|
|
3705
3753
|
block: e.block,
|
|
3706
3754
|
"is-first-section": f.value === "paragraph",
|
|
3707
3755
|
onUpdate: E
|
|
3708
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3756
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Za)], 8, Xa));
|
|
3709
3757
|
}
|
|
3710
|
-
}),
|
|
3711
|
-
export {
|
|
3758
|
+
}), oo = /* @__PURE__ */ e({ default: () => so }), so = /*#__PURE__*/ Se(ao, [["__scopeId", "data-v-206f038f"]]);
|
|
3759
|
+
export { so as default, _t as n, Q as r, oo as t };
|