@templatical/editor 0.56.0 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
- package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
- package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
- package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
- package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
- package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
- package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
- package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
- package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
- package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
- package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
- package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
- package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
- package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
- package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
- package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
- package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
- package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
- package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
- package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/editor.js +325 -325
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
- package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
- package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
- package/dist/templatical-editor.js +526 -526
- package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
- package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
- package/package.json +7 -7
- package/dist/LanguageMenu-B981Av-6.js +0 -403
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-De3uAutQ.js +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
2
|
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-DepKdldn.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { c as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
3
|
+
import { n as A, t as j } from "./MergeTagTextarea-B2xxIU3e.js";
|
|
4
|
+
import { c as M } from "./LogicTagInsertButton-DvSVx2DB.js";
|
|
5
|
+
import { t as N } from "./MergeTagInput-DeuNH3re.js";
|
|
6
|
+
import { t as P } from "./ToggleSwitch-BSkySwA1.js";
|
|
7
|
+
import { C as F, S as I, _ as L, b as ee, c as R, g as z, h as B, r as te, v as V, y as ne } from "./styleConstants-CgiNKdnc.js";
|
|
8
|
+
import { $ as re, At as ie, Bt as ae, H, It as oe, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as U, f as pe, gt as W, h as G, it as K, lt as q, rt as J, t as Y, v as X } from "./icons-DHExFLlT.js";
|
|
9
|
+
import { t as Z } from "./useI18n-D8s7HtTn.js";
|
|
10
|
+
import { Cn as me, H as he, I as ge, Rt as _e, W as ve, _n as Q, dn as ye, fn as be, g as xe, gn as Se, ln as Ce, pn as we, rn as Te, un as Ee, vt as De, wn as Oe, yn as ke } from "./src-mXG-Of9A.js";
|
|
11
|
+
import { n as Ae, t as je } from "./withCurrentFont-QqBilClC.js";
|
|
12
|
+
import { t as Me } from "./languageName-DEEOhDWI.js";
|
|
13
|
+
import { t as Ne } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
14
|
+
import { F as Pe, T as Fe, _ as Ie, b as Le, d as Re, f as ze, g as Be, h as Ve, i as He, l as Ue, m as We, p as Ge, r as Ke, s as qe, u as Je, v as Ye } from "./socialIcons-BFgc3qqJ.js";
|
|
15
|
+
import { B as Xe, C as Ze, H as Qe, O as $e, T as et, W as tt, Z as nt, _ as rt, b as it, h as at, p as ot, r as st, st as ct, v as lt } from "./keys-BUmIvYy3.js";
|
|
16
|
+
import { t as ut } from "./logger-CqQTfJGx.js";
|
|
17
|
+
import { c as dt, r as ft } from "./usePopoverPosition-esO6wjvU.js";
|
|
18
|
+
import { n as pt } from "./useLocalizedDisplay-Bgg4qpev.js";
|
|
19
|
+
import { _ as mt } from "./dist-BzXULHvI.js";
|
|
20
|
+
import { t as ht } from "./blockTypeIcons-CzYA5DF9.js";
|
|
21
21
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
22
22
|
var gt = [
|
|
23
23
|
"aria-checked",
|
|
@@ -97,12 +97,12 @@ var gt = [
|
|
|
97
97
|
return (t, n) => (i(), p("div", vt, [b("input", {
|
|
98
98
|
type: "number",
|
|
99
99
|
"data-testid": e.testid,
|
|
100
|
-
class: g(h(
|
|
100
|
+
class: g(h(z)),
|
|
101
101
|
value: e.modelValue,
|
|
102
102
|
min: e.min,
|
|
103
103
|
max: e.max,
|
|
104
104
|
onInput: r
|
|
105
|
-
}, null, 42, yt), b("span", { class: g(h(
|
|
105
|
+
}, null, 42, yt), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
|
|
106
106
|
}
|
|
107
107
|
}), xt = [
|
|
108
108
|
"aria-pressed",
|
|
@@ -128,11 +128,11 @@ var gt = [
|
|
|
128
128
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
129
129
|
"data-testid": e.testid,
|
|
130
130
|
onClick: r[0] ||= (e) => n("toggle")
|
|
131
|
-
}, [e.linked ? (i(), v(h(
|
|
131
|
+
}, [e.linked ? (i(), v(h(q), {
|
|
132
132
|
key: 0,
|
|
133
133
|
size: 14,
|
|
134
134
|
"stroke-width": 2
|
|
135
|
-
})) : (i(), v(h(
|
|
135
|
+
})) : (i(), v(h(fe), {
|
|
136
136
|
key: 1,
|
|
137
137
|
size: 14,
|
|
138
138
|
"stroke-width": 2
|
|
@@ -150,7 +150,7 @@ var gt = [
|
|
|
150
150
|
},
|
|
151
151
|
emits: ["update:modelValue"],
|
|
152
152
|
setup(e, { emit: t }) {
|
|
153
|
-
let n = e, r = t, { t: s } =
|
|
153
|
+
let n = e, r = t, { t: s } = Z(), c = {
|
|
154
154
|
width: 0,
|
|
155
155
|
style: "solid",
|
|
156
156
|
color: "#000000"
|
|
@@ -160,7 +160,7 @@ var gt = [
|
|
|
160
160
|
}
|
|
161
161
|
let u = C(() => {
|
|
162
162
|
let e = n.modelValue;
|
|
163
|
-
return !e ||
|
|
163
|
+
return !e || Q.every((t) => l(e[t], e.top));
|
|
164
164
|
}), d = E(u.value);
|
|
165
165
|
o(u, (e) => {
|
|
166
166
|
!e && d.value && (d.value = !1);
|
|
@@ -168,13 +168,13 @@ var gt = [
|
|
|
168
168
|
let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
|
|
169
169
|
function S(e) {
|
|
170
170
|
if (d.value) {
|
|
171
|
-
r("update:modelValue", y(e) ?
|
|
171
|
+
r("update:modelValue", y(e) ? Oe(e) : void 0);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
let t = {
|
|
175
|
-
...n.modelValue ??
|
|
175
|
+
...n.modelValue ?? Oe(c),
|
|
176
176
|
[f.value]: e
|
|
177
|
-
}, i =
|
|
177
|
+
}, i = Q.some((e) => y(t[e]));
|
|
178
178
|
r("update:modelValue", i ? t : void 0);
|
|
179
179
|
}
|
|
180
180
|
function w(e) {
|
|
@@ -197,14 +197,14 @@ var gt = [
|
|
|
197
197
|
d.value = !0;
|
|
198
198
|
let e = n.modelValue;
|
|
199
199
|
if (!e) return;
|
|
200
|
-
let t = y(e[f.value]) ? e[f.value] :
|
|
201
|
-
r("update:modelValue", t ?
|
|
200
|
+
let t = y(e[f.value]) ? e[f.value] : Q.map((t) => e[t]).find(y);
|
|
201
|
+
r("update:modelValue", t ? Oe(t) : void 0);
|
|
202
202
|
}
|
|
203
|
-
let
|
|
203
|
+
let j = C(() => Q.map((e) => ({
|
|
204
204
|
value: e,
|
|
205
205
|
label: s.spacingControl[e]
|
|
206
206
|
})));
|
|
207
|
-
return (t, n) => (i(), v(
|
|
207
|
+
return (t, n) => (i(), v(A, {
|
|
208
208
|
path: e.path,
|
|
209
209
|
label: h(s).blockSettings.border
|
|
210
210
|
}, {
|
|
@@ -221,19 +221,19 @@ var gt = [
|
|
|
221
221
|
"testid"
|
|
222
222
|
])]),
|
|
223
223
|
default: a(() => [
|
|
224
|
-
d.value ? _("", !0) : (i(), p("div", Ct, [b("label", { class: g(h(
|
|
225
|
-
options:
|
|
224
|
+
d.value ? _("", !0) : (i(), p("div", Ct, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k($, {
|
|
225
|
+
options: j.value,
|
|
226
226
|
"model-value": f.value,
|
|
227
227
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
228
228
|
}, null, 8, ["options", "model-value"])])),
|
|
229
|
-
b("div", wt, [b("label", { class: g(h(
|
|
229
|
+
b("div", wt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(bt, {
|
|
230
230
|
"model-value": m.value.width,
|
|
231
231
|
min: 0,
|
|
232
232
|
suffix: "px",
|
|
233
233
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
234
234
|
"onUpdate:modelValue": w
|
|
235
235
|
}, null, 8, ["model-value", "testid"])]),
|
|
236
|
-
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Tt, [b("label", { class: g(h(
|
|
236
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Tt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k($, {
|
|
237
237
|
options: [
|
|
238
238
|
{
|
|
239
239
|
value: "solid",
|
|
@@ -250,7 +250,7 @@ var gt = [
|
|
|
250
250
|
],
|
|
251
251
|
"model-value": m.value.style,
|
|
252
252
|
"onUpdate:modelValue": n[1] ||= (e) => T({ style: e })
|
|
253
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(
|
|
253
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderColor), 3), k(M, {
|
|
254
254
|
"model-value": m.value.color,
|
|
255
255
|
"onUpdate:modelValue": n[2] ||= (e) => T({ color: e })
|
|
256
256
|
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
@@ -272,7 +272,7 @@ var gt = [
|
|
|
272
272
|
},
|
|
273
273
|
emits: ["update:modelValue"],
|
|
274
274
|
setup(e, { emit: t }) {
|
|
275
|
-
let n = e, r = t, { t: s } =
|
|
275
|
+
let n = e, r = t, { t: s } = Z(), l = {
|
|
276
276
|
topLeft: "cornerTopLeft",
|
|
277
277
|
topRight: "cornerTopRight",
|
|
278
278
|
bottomRight: "cornerBottomRight",
|
|
@@ -290,7 +290,7 @@ var gt = [
|
|
|
290
290
|
bottomRight: e,
|
|
291
291
|
bottomLeft: e
|
|
292
292
|
} : e;
|
|
293
|
-
}), f = C(() =>
|
|
293
|
+
}), f = C(() => Se.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
|
|
294
294
|
o(f, (e) => {
|
|
295
295
|
!e && m.value && (m.value = !1);
|
|
296
296
|
});
|
|
@@ -309,7 +309,7 @@ var gt = [
|
|
|
309
309
|
function S() {
|
|
310
310
|
m.value = !m.value, m.value && r("update:modelValue", d.value.topLeft);
|
|
311
311
|
}
|
|
312
|
-
return (t, n) => (i(), v(
|
|
312
|
+
return (t, n) => (i(), v(A, {
|
|
313
313
|
path: e.path,
|
|
314
314
|
label: e.label
|
|
315
315
|
}, {
|
|
@@ -364,7 +364,7 @@ var gt = [
|
|
|
364
364
|
},
|
|
365
365
|
emits: ["update"],
|
|
366
366
|
setup(e, { emit: t }) {
|
|
367
|
-
let n = e, r = t, { t: o } =
|
|
367
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
368
368
|
function l(e, t) {
|
|
369
369
|
r("update", { [e]: t });
|
|
370
370
|
}
|
|
@@ -379,14 +379,14 @@ var gt = [
|
|
|
379
379
|
!Number.isFinite(t) || t <= 0 || l("width", t);
|
|
380
380
|
}
|
|
381
381
|
return (t, n) => (i(), p(D, null, [
|
|
382
|
-
k(
|
|
382
|
+
k(A, {
|
|
383
383
|
label: h(o).button.fontFamily,
|
|
384
384
|
class: "tpl:mb-3.5",
|
|
385
385
|
path: "fontFamily"
|
|
386
386
|
}, {
|
|
387
387
|
default: a(() => [b("select", {
|
|
388
|
-
class: g(h(
|
|
389
|
-
value: h(
|
|
388
|
+
class: g(h(B)),
|
|
389
|
+
value: h(je)(e.block.fontFamily),
|
|
390
390
|
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
391
391
|
}, [b("option", jt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
392
392
|
key: e.value,
|
|
@@ -394,34 +394,34 @@ var gt = [
|
|
|
394
394
|
}, x(e.label), 9, Mt))), 128))], 42, At)]),
|
|
395
395
|
_: 1
|
|
396
396
|
}, 8, ["label"]),
|
|
397
|
-
k(
|
|
397
|
+
k(A, {
|
|
398
398
|
label: h(o).button.text,
|
|
399
399
|
class: "tpl:mb-3.5",
|
|
400
400
|
path: "text"
|
|
401
401
|
}, {
|
|
402
|
-
default: a(() => [k(
|
|
402
|
+
default: a(() => [k(N, {
|
|
403
403
|
"model-value": e.block.text,
|
|
404
404
|
type: "text",
|
|
405
405
|
"onUpdate:modelValue": n[1] ||= (e) => l("text", e)
|
|
406
406
|
}, null, 8, ["model-value"])]),
|
|
407
407
|
_: 1
|
|
408
408
|
}, 8, ["label"]),
|
|
409
|
-
k(
|
|
409
|
+
k(A, {
|
|
410
410
|
label: h(o).button.url,
|
|
411
411
|
class: "tpl:mb-3.5",
|
|
412
412
|
path: "url"
|
|
413
413
|
}, {
|
|
414
|
-
default: a(() => [k(
|
|
414
|
+
default: a(() => [k(N, {
|
|
415
415
|
"model-value": e.block.url,
|
|
416
416
|
type: "url",
|
|
417
417
|
placeholder: h(o).button.urlPlaceholder,
|
|
418
418
|
"onUpdate:modelValue": n[2] ||= (e) => l("url", e)
|
|
419
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(
|
|
419
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(A, {
|
|
420
420
|
key: 0,
|
|
421
421
|
path: "openInNewTab",
|
|
422
422
|
label: h(o).button.openInNewTab
|
|
423
423
|
}, {
|
|
424
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
424
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
425
425
|
"control-id": t,
|
|
426
426
|
"hide-label": "",
|
|
427
427
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -437,24 +437,24 @@ var gt = [
|
|
|
437
437
|
}, 8, ["label"])) : _("", !0)]),
|
|
438
438
|
_: 1
|
|
439
439
|
}, 8, ["label"]),
|
|
440
|
-
k(
|
|
440
|
+
k(A, {
|
|
441
441
|
label: h(o).button.background,
|
|
442
442
|
class: "tpl:mb-3.5",
|
|
443
443
|
path: "backgroundColor"
|
|
444
444
|
}, {
|
|
445
|
-
default: a(() => [k(
|
|
445
|
+
default: a(() => [k(M, {
|
|
446
446
|
"model-value": e.block.backgroundColor,
|
|
447
447
|
"allow-transparent": "",
|
|
448
448
|
"onUpdate:modelValue": n[4] ||= (e) => l("backgroundColor", e)
|
|
449
449
|
}, null, 8, ["model-value"])]),
|
|
450
450
|
_: 1
|
|
451
451
|
}, 8, ["label"]),
|
|
452
|
-
k(
|
|
452
|
+
k(A, {
|
|
453
453
|
label: h(o).button.textColor,
|
|
454
454
|
class: "tpl:mb-3.5",
|
|
455
455
|
path: "textColor"
|
|
456
456
|
}, {
|
|
457
|
-
default: a(() => [k(
|
|
457
|
+
default: a(() => [k(M, {
|
|
458
458
|
"model-value": e.block.textColor,
|
|
459
459
|
"onUpdate:modelValue": n[5] ||= (e) => l("textColor", e)
|
|
460
460
|
}, null, 8, ["model-value"])]),
|
|
@@ -474,22 +474,22 @@ var gt = [
|
|
|
474
474
|
"testid-prefix": "button",
|
|
475
475
|
"onUpdate:modelValue": n[7] ||= (e) => l("borderRadius", e)
|
|
476
476
|
}, null, 8, ["model-value", "label"]),
|
|
477
|
-
k(
|
|
477
|
+
k(A, {
|
|
478
478
|
label: h(o).button.fontSize,
|
|
479
479
|
class: "tpl:mb-3.5",
|
|
480
480
|
path: "fontSize"
|
|
481
481
|
}, {
|
|
482
482
|
default: a(() => [b("div", Nt, [b("input", {
|
|
483
483
|
type: "number",
|
|
484
|
-
class: g(h(
|
|
484
|
+
class: g(h(z)),
|
|
485
485
|
value: e.block.fontSize,
|
|
486
486
|
min: "10",
|
|
487
487
|
max: "36",
|
|
488
488
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
489
|
-
}, null, 42, Pt), b("span", { class: g(h(
|
|
489
|
+
}, null, 42, Pt), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
490
490
|
_: 1
|
|
491
491
|
}, 8, ["label"]),
|
|
492
|
-
k(
|
|
492
|
+
k(A, {
|
|
493
493
|
label: h(o).button.fontWeight,
|
|
494
494
|
class: "tpl:mb-3.5",
|
|
495
495
|
path: "fontWeight"
|
|
@@ -514,13 +514,13 @@ var gt = [
|
|
|
514
514
|
}, null, 8, ["options", "model-value"])]),
|
|
515
515
|
_: 1
|
|
516
516
|
}, 8, ["label"]),
|
|
517
|
-
k(
|
|
517
|
+
k(A, {
|
|
518
518
|
label: h(o).button.width,
|
|
519
519
|
class: "tpl:mb-3.5",
|
|
520
520
|
path: "width"
|
|
521
521
|
}, {
|
|
522
522
|
default: a(() => [b("select", {
|
|
523
|
-
class: g(h(
|
|
523
|
+
class: g(h(B)),
|
|
524
524
|
value: s.value,
|
|
525
525
|
onChange: n[9] ||= (e) => u(e.target.value)
|
|
526
526
|
}, [
|
|
@@ -529,14 +529,14 @@ var gt = [
|
|
|
529
529
|
b("option", Rt, x(h(o).button.widthCustom), 1)
|
|
530
530
|
], 42, Ft), s.value === "custom" ? (i(), p("div", zt, [b("input", {
|
|
531
531
|
type: "number",
|
|
532
|
-
class: g(h(
|
|
532
|
+
class: g(h(z)),
|
|
533
533
|
value: typeof e.block.width == "number" ? e.block.width : Vt,
|
|
534
534
|
min: "20",
|
|
535
535
|
onInput: n[10] ||= (e) => f(e.target.value)
|
|
536
|
-
}, null, 42, Bt), b("span", { class: g(h(
|
|
536
|
+
}, null, 42, Bt), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
537
537
|
_: 1
|
|
538
538
|
}, 8, ["label"]),
|
|
539
|
-
k(
|
|
539
|
+
k(A, {
|
|
540
540
|
label: h(o).title.align,
|
|
541
541
|
class: "tpl:mb-3.5",
|
|
542
542
|
path: "align"
|
|
@@ -563,7 +563,7 @@ var gt = [
|
|
|
563
563
|
}, 8, ["label"])
|
|
564
564
|
], 64));
|
|
565
565
|
}
|
|
566
|
-
}), Ut = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Wt = { class: "tpl:flex tpl:items-center" }, Gt = ["aria-label"], Kt = ["value", "aria-label"], qt = ["aria-label"], Jt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yt = { class: "tpl:flex tpl:items-center" }, Xt = ["aria-label"], Zt = ["value", "aria-label"], Qt = ["aria-label"], $t = ["aria-label", "title"], en = { class: "tpl:flex tpl:items-center" }, tn = ["aria-label"], nn = ["value", "aria-label"], rn = ["aria-label"], an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = "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)]", un = "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)]", dn = /*#__PURE__*/
|
|
566
|
+
}), Ut = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Wt = { class: "tpl:flex tpl:items-center" }, Gt = ["aria-label"], Kt = ["value", "aria-label"], qt = ["aria-label"], Jt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yt = { class: "tpl:flex tpl:items-center" }, Xt = ["aria-label"], Zt = ["value", "aria-label"], Qt = ["aria-label"], $t = ["aria-label", "title"], en = { class: "tpl:flex tpl:items-center" }, tn = ["aria-label"], nn = ["value", "aria-label"], rn = ["aria-label"], an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = "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)]", un = "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)]", dn = /*#__PURE__*/ Ne(/* @__PURE__ */ r({
|
|
567
567
|
__name: "SpacingControl",
|
|
568
568
|
props: {
|
|
569
569
|
path: {},
|
|
@@ -572,7 +572,7 @@ var gt = [
|
|
|
572
572
|
},
|
|
573
573
|
emits: ["update:modelValue"],
|
|
574
574
|
setup(e, { emit: t }) {
|
|
575
|
-
let n = e, r = t, { t: s } =
|
|
575
|
+
let n = e, r = t, { t: s } = Z(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
|
|
576
576
|
o(c, (e) => {
|
|
577
577
|
!e && l.value && (l.value = !1);
|
|
578
578
|
});
|
|
@@ -611,7 +611,7 @@ var gt = [
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
return (t, n) => (i(), v(
|
|
614
|
+
return (t, n) => (i(), v(A, {
|
|
615
615
|
class: "spacing-control",
|
|
616
616
|
path: e.path,
|
|
617
617
|
label: e.label
|
|
@@ -622,7 +622,7 @@ var gt = [
|
|
|
622
622
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
623
623
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
624
624
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
625
|
-
}, [k(h(
|
|
625
|
+
}, [k(h(U), {
|
|
626
626
|
size: 12,
|
|
627
627
|
"stroke-width": 2
|
|
628
628
|
})], 10, Gt),
|
|
@@ -638,7 +638,7 @@ var gt = [
|
|
|
638
638
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
639
639
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
640
640
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
641
|
-
}, [k(h(
|
|
641
|
+
}, [k(h(H), {
|
|
642
642
|
size: 12,
|
|
643
643
|
"stroke-width": 2
|
|
644
644
|
})], 10, qt)
|
|
@@ -649,7 +649,7 @@ var gt = [
|
|
|
649
649
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
650
650
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
651
651
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
652
|
-
}, [k(h(
|
|
652
|
+
}, [k(h(U), {
|
|
653
653
|
size: 12,
|
|
654
654
|
"stroke-width": 2
|
|
655
655
|
})], 10, Xt),
|
|
@@ -665,7 +665,7 @@ var gt = [
|
|
|
665
665
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
666
666
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
667
667
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
668
|
-
}, [k(h(
|
|
668
|
+
}, [k(h(H), {
|
|
669
669
|
size: 12,
|
|
670
670
|
"stroke-width": 2
|
|
671
671
|
})], 10, Qt)
|
|
@@ -675,11 +675,11 @@ var gt = [
|
|
|
675
675
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
676
676
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
677
677
|
onClick: f
|
|
678
|
-
}, [l.value ? (i(), v(h(
|
|
678
|
+
}, [l.value ? (i(), v(h(J), {
|
|
679
679
|
key: 0,
|
|
680
680
|
size: 14,
|
|
681
681
|
"stroke-width": 2
|
|
682
|
-
})) : (i(), v(h(
|
|
682
|
+
})) : (i(), v(h(K), {
|
|
683
683
|
key: 1,
|
|
684
684
|
size: 14,
|
|
685
685
|
"stroke-width": 2
|
|
@@ -689,7 +689,7 @@ var gt = [
|
|
|
689
689
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
690
690
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
691
691
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
692
|
-
}, [k(h(
|
|
692
|
+
}, [k(h(U), {
|
|
693
693
|
size: 12,
|
|
694
694
|
"stroke-width": 2
|
|
695
695
|
})], 10, tn),
|
|
@@ -705,7 +705,7 @@ var gt = [
|
|
|
705
705
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
706
706
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
707
707
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
708
|
-
}, [k(h(
|
|
708
|
+
}, [k(h(H), {
|
|
709
709
|
size: 12,
|
|
710
710
|
"stroke-width": 2
|
|
711
711
|
})], 10, rn)
|
|
@@ -716,7 +716,7 @@ var gt = [
|
|
|
716
716
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
717
717
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
718
718
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
719
|
-
}, [k(h(
|
|
719
|
+
}, [k(h(U), {
|
|
720
720
|
size: 12,
|
|
721
721
|
"stroke-width": 2
|
|
722
722
|
})], 10, on),
|
|
@@ -732,7 +732,7 @@ var gt = [
|
|
|
732
732
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
733
733
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
734
734
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
735
|
-
}, [k(h(
|
|
735
|
+
}, [k(h(H), {
|
|
736
736
|
size: 12,
|
|
737
737
|
"stroke-width": 2
|
|
738
738
|
})], 10, cn)
|
|
@@ -746,14 +746,14 @@ var gt = [
|
|
|
746
746
|
function fn(e) {
|
|
747
747
|
let t = E(null), n = () => {};
|
|
748
748
|
return o(e, (e) => {
|
|
749
|
-
n(), t.value = null, e && (n =
|
|
749
|
+
n(), t.value = null, e && (n = Ge(e, (e) => {
|
|
750
750
|
t.value = e;
|
|
751
751
|
}));
|
|
752
752
|
}, { immediate: !0 }), t;
|
|
753
753
|
}
|
|
754
754
|
function pn() {
|
|
755
|
-
let e = l(
|
|
756
|
-
return async (t) =>
|
|
755
|
+
let e = l(Ze, null);
|
|
756
|
+
return async (t) => We(e ? await mn(e, t) : t);
|
|
757
757
|
}
|
|
758
758
|
function mn(e, t) {
|
|
759
759
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
@@ -783,14 +783,14 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
783
783
|
},
|
|
784
784
|
emits: ["update:modelValue"],
|
|
785
785
|
setup(e, { emit: t }) {
|
|
786
|
-
let n = e, r = t, { t: a } =
|
|
786
|
+
let n = e, r = t, { t: a } = Z(), o = l(Xe, he.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = pn(), y;
|
|
787
787
|
u(() => clearTimeout(y));
|
|
788
788
|
function S(e) {
|
|
789
|
-
n.measure && !
|
|
789
|
+
n.measure && !ve(e, o) && (y = setTimeout(async () => {
|
|
790
790
|
let t = await f(e), i = n.modelValue;
|
|
791
791
|
t && i?.url === e && r("update:modelValue", {
|
|
792
792
|
...i,
|
|
793
|
-
...
|
|
793
|
+
...Ve(t)
|
|
794
794
|
});
|
|
795
795
|
}, 300));
|
|
796
796
|
}
|
|
@@ -799,11 +799,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
799
799
|
r("update:modelValue", void 0);
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
802
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? we(e), s = n.measure ? t : null;
|
|
803
803
|
r("update:modelValue", {
|
|
804
804
|
...o,
|
|
805
805
|
url: e,
|
|
806
|
-
...s ?
|
|
806
|
+
...s ? Ve(s) : {}
|
|
807
807
|
}), s || S(e);
|
|
808
808
|
}
|
|
809
809
|
function T(e) {
|
|
@@ -835,7 +835,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
835
835
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
836
836
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
837
837
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
838
|
-
})), j = C(() =>
|
|
838
|
+
})), j = C(() => be.flatMap((e) => ye.map((t) => ({
|
|
839
839
|
x: t,
|
|
840
840
|
y: e,
|
|
841
841
|
label: A.value[`${e}-${t}`]
|
|
@@ -843,31 +843,31 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
843
843
|
function M(e) {
|
|
844
844
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
845
845
|
}
|
|
846
|
-
let
|
|
847
|
-
target:
|
|
848
|
-
blocked: () =>
|
|
849
|
-
apply: (e) => w(e.url,
|
|
846
|
+
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = Je({
|
|
847
|
+
target: F,
|
|
848
|
+
blocked: () => ve(s.value, o),
|
|
849
|
+
apply: (e) => w(e.url, Ie(e.width, e.height))
|
|
850
850
|
});
|
|
851
851
|
return (t, n) => (i(), p("div", hn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
852
852
|
key: 0,
|
|
853
|
-
class: g(h(
|
|
853
|
+
class: g(h(V))
|
|
854
854
|
}, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
|
|
855
855
|
ref_key: "dropZoneRef",
|
|
856
|
-
ref:
|
|
856
|
+
ref: F,
|
|
857
857
|
class: "tpl:relative",
|
|
858
858
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
859
859
|
}, [
|
|
860
|
-
h(
|
|
860
|
+
h(ee) ? (i(), v(ze, {
|
|
861
861
|
key: 0,
|
|
862
|
-
uploading: h(
|
|
862
|
+
uploading: h(L)
|
|
863
863
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
864
|
-
k(
|
|
864
|
+
k(N, {
|
|
865
865
|
"model-value": s.value,
|
|
866
866
|
type: "url",
|
|
867
867
|
placeholder: h(a).blockSettings.backgroundImagePlaceholder,
|
|
868
868
|
"onUpdate:modelValue": w
|
|
869
869
|
}, null, 8, ["model-value", "placeholder"]),
|
|
870
|
-
h(
|
|
870
|
+
h(I) ? (i(), p("button", {
|
|
871
871
|
key: 1,
|
|
872
872
|
type: "button",
|
|
873
873
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -877,8 +877,8 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
877
877
|
color: "var(--tpl-primary)",
|
|
878
878
|
"background-color": "var(--tpl-bg)"
|
|
879
879
|
},
|
|
880
|
-
onClick: n[0] ||= (...e) => h(
|
|
881
|
-
}, [k(h(
|
|
880
|
+
onClick: n[0] ||= (...e) => h(R) && h(R)(...e)
|
|
881
|
+
}, [k(h(de), {
|
|
882
882
|
size: 14,
|
|
883
883
|
"stroke-width": 1.5
|
|
884
884
|
}), m(" " + x(h(a).image.browseMedia), 1)], 8, _n)) : _("", !0)
|
|
@@ -886,12 +886,12 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
886
886
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
887
887
|
key: 0,
|
|
888
888
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
889
|
-
}, [b("label", { class: g(h(
|
|
889
|
+
}, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k($, {
|
|
890
890
|
options: O.value,
|
|
891
891
|
"model-value": e.modelValue.size,
|
|
892
892
|
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
893
893
|
}, null, 8, ["options", "model-value"])], 8, vn)),
|
|
894
|
-
b("div", null, [b("label", { class: g(h(
|
|
894
|
+
b("div", null, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
|
|
895
895
|
role: "group",
|
|
896
896
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
897
897
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -912,7 +912,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
912
912
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
913
913
|
key: 1,
|
|
914
914
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
915
|
-
}, [k(
|
|
915
|
+
}, [k(P, {
|
|
916
916
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
917
917
|
"model-value": e.modelValue.repeat,
|
|
918
918
|
label: h(a).blockSettings.backgroundRepeat,
|
|
@@ -935,7 +935,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
935
935
|
"data-testid": e.headerTestId,
|
|
936
936
|
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)]",
|
|
937
937
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
938
|
-
}, [k(h(
|
|
938
|
+
}, [k(h(ae), {
|
|
939
939
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
940
940
|
size: 12,
|
|
941
941
|
"stroke-width": 2
|
|
@@ -969,7 +969,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
969
969
|
function n(e) {
|
|
970
970
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
971
971
|
}
|
|
972
|
-
let r = e, a = t, { t: o } =
|
|
972
|
+
let r = e, a = t, { t: o } = Z(), s = l(Xe, he.liquid), c = l(lt, null), u = l(et, void 0), d = pn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => ve(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Mn), D = C(() => [
|
|
973
973
|
{
|
|
974
974
|
value: "fit",
|
|
975
975
|
label: o.blockSettings.heroHeightFit
|
|
@@ -996,9 +996,9 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
996
996
|
value: "bottom",
|
|
997
997
|
label: o.blockSettings.heroAlignBottom
|
|
998
998
|
}
|
|
999
|
-
]), A = C(() => T.value === "image" && m.value && !y.value &&
|
|
999
|
+
]), A = C(() => T.value === "image" && m.value && !y.value && Ce(r.section.backgroundImage) === null);
|
|
1000
1000
|
function j() {
|
|
1001
|
-
return (c ?
|
|
1001
|
+
return (c ? qe(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? Ue(c?.state.content.settings);
|
|
1002
1002
|
}
|
|
1003
1003
|
function M(e) {
|
|
1004
1004
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1006,7 +1006,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1006
1006
|
T.value !== "image" && a("update", { hero: {
|
|
1007
1007
|
height: "image",
|
|
1008
1008
|
verticalAlign: t
|
|
1009
|
-
} }),
|
|
1009
|
+
} }), N();
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
if (e === T.value) return;
|
|
@@ -1014,28 +1014,28 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1014
1014
|
a("update", { hero: void 0 });
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
|
-
let n =
|
|
1017
|
+
let n = Ce(r.section.backgroundImage), i = n === null ? Mn : Math.round(j() * n);
|
|
1018
1018
|
a("update", { hero: {
|
|
1019
1019
|
height: i,
|
|
1020
1020
|
verticalAlign: t
|
|
1021
1021
|
} });
|
|
1022
1022
|
}
|
|
1023
|
-
async function
|
|
1023
|
+
async function N() {
|
|
1024
1024
|
let e = r.section.backgroundImage;
|
|
1025
|
-
if (!e || !m.value || y.value ||
|
|
1025
|
+
if (!e || !m.value || y.value || Ce(e) !== null) return;
|
|
1026
1026
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
1027
1027
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
1028
1028
|
...i,
|
|
1029
|
-
...
|
|
1029
|
+
...Ve(n)
|
|
1030
1030
|
} });
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function P(e) {
|
|
1033
1033
|
!S.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
1034
1034
|
...S.value,
|
|
1035
1035
|
height: Math.round(e)
|
|
1036
1036
|
} });
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function F(e) {
|
|
1039
1039
|
S.value && a("update", { hero: {
|
|
1040
1040
|
...S.value,
|
|
1041
1041
|
verticalAlign: e
|
|
@@ -1043,7 +1043,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return (e, t) => !w.value && S.value ? (i(), p("p", En, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Dn, [
|
|
1045
1045
|
b("div", On, [
|
|
1046
|
-
b("label", { class: g(h(
|
|
1046
|
+
b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1047
1047
|
k($, {
|
|
1048
1048
|
options: D.value,
|
|
1049
1049
|
"model-value": T.value,
|
|
@@ -1057,12 +1057,12 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1057
1057
|
min: 1,
|
|
1058
1058
|
suffix: "px",
|
|
1059
1059
|
testid: "section-hero-height-px",
|
|
1060
|
-
"onUpdate:modelValue":
|
|
1060
|
+
"onUpdate:modelValue": P
|
|
1061
1061
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1062
|
-
S.value ? (i(), p("div", jn, [b("label", { class: g(h(
|
|
1062
|
+
S.value ? (i(), p("div", jn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k($, {
|
|
1063
1063
|
options: O.value,
|
|
1064
1064
|
"model-value": S.value.verticalAlign,
|
|
1065
|
-
"onUpdate:modelValue":
|
|
1065
|
+
"onUpdate:modelValue": F
|
|
1066
1066
|
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
1067
1067
|
])) : _("", !0);
|
|
1068
1068
|
}
|
|
@@ -1088,10 +1088,10 @@ function Ln(e) {
|
|
|
1088
1088
|
return Fn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1089
1089
|
}
|
|
1090
1090
|
function Rn(e) {
|
|
1091
|
-
return e.fullWidth !== !0 || In(e.padding) ||
|
|
1091
|
+
return e.fullWidth !== !0 || In(e.padding) || me(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Pn.has(e));
|
|
1092
1092
|
}
|
|
1093
1093
|
function zn(e, t = {}) {
|
|
1094
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1094
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && xe(t.layout);
|
|
1095
1095
|
}
|
|
1096
1096
|
function Bn(e) {
|
|
1097
1097
|
let t = {};
|
|
@@ -1162,86 +1162,86 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1162
1162
|
},
|
|
1163
1163
|
emits: ["update"],
|
|
1164
1164
|
setup(e, { emit: r }) {
|
|
1165
|
-
let u = e, d = r, { t: f, format: w } =
|
|
1166
|
-
sectionWrapper:
|
|
1167
|
-
layout:
|
|
1168
|
-
})),
|
|
1169
|
-
function
|
|
1165
|
+
let u = e, d = r, { t: f, format: w } = Z(), T = l(lt, null), O = l($e, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(rt, []), L = l(st, !1), R = l(et, void 0), z = l(nt, void 0), B = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), V = C(() => u.block.type === "section" && zn(u.block, {
|
|
1166
|
+
sectionWrapper: z,
|
|
1167
|
+
layout: R
|
|
1168
|
+
})), ie = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1169
|
+
function ae(e) {
|
|
1170
1170
|
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Hn(u.block, e));
|
|
1171
1171
|
}
|
|
1172
|
-
let
|
|
1172
|
+
let H = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), oe = C(() => H.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), se = C(() => H.value ? "wrapper.backgroundImage" : "backgroundImage"), le = C(() => {
|
|
1173
1173
|
let e = u.block;
|
|
1174
1174
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1175
|
-
}),
|
|
1175
|
+
}), ue = C(() => {
|
|
1176
1176
|
let e = u.block;
|
|
1177
1177
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1178
1178
|
});
|
|
1179
|
-
function
|
|
1179
|
+
function de(e, t) {
|
|
1180
1180
|
d("update", { wrapper: {
|
|
1181
1181
|
...e,
|
|
1182
1182
|
...t
|
|
1183
1183
|
} });
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function fe(e) {
|
|
1186
1186
|
let t = u.block;
|
|
1187
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1187
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundColor: e }) : Ce("backgroundColor", e);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function U(e) {
|
|
1190
1190
|
let t = u.block;
|
|
1191
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1191
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
|
|
1192
1192
|
}
|
|
1193
|
-
let
|
|
1193
|
+
let pe = l(Qe, null), W = Re(), G = E(!1), K = t(/* @__PURE__ */ new Set()), q = E(!1), J = E(""), Y = E(""), X = [{
|
|
1194
1194
|
key: "desktop",
|
|
1195
|
-
icon:
|
|
1195
|
+
icon: re,
|
|
1196
1196
|
labelKey: "showOnDesktop"
|
|
1197
1197
|
}, {
|
|
1198
1198
|
key: "mobile",
|
|
1199
|
-
icon:
|
|
1199
|
+
icon: ce,
|
|
1200
1200
|
labelKey: "showOnMobile"
|
|
1201
1201
|
}];
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1202
|
+
function me(e) {
|
|
1203
|
+
K.has(e) ? K.delete(e) : K.add(e);
|
|
1204
1204
|
}
|
|
1205
|
-
let
|
|
1206
|
-
function
|
|
1205
|
+
let he = C(() => !!pe || I.length > 0 || L);
|
|
1206
|
+
function ge(e) {
|
|
1207
1207
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1208
1208
|
let t = e;
|
|
1209
1209
|
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function _e(e, t) {
|
|
1212
1212
|
let n = T?.state?.selectedBlockId;
|
|
1213
1213
|
u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
|
|
1214
1214
|
}
|
|
1215
|
-
async function
|
|
1216
|
-
if (!
|
|
1217
|
-
let e = u.block.id, t = T?.activeLocale?.value ?? null, n =
|
|
1218
|
-
|
|
1215
|
+
async function ve() {
|
|
1216
|
+
if (!pe || G.value) return;
|
|
1217
|
+
let e = u.block.id, t = T?.activeLocale?.value ?? null, n = Te(y(u.block)), r = u.block.displayCondition ? Te(y(u.block.displayCondition)) : void 0;
|
|
1218
|
+
G.value = !0;
|
|
1219
1219
|
try {
|
|
1220
|
-
let i = await
|
|
1220
|
+
let i = await pe(r ? {
|
|
1221
1221
|
current: r,
|
|
1222
1222
|
block: n
|
|
1223
1223
|
} : { block: n });
|
|
1224
|
-
if (!
|
|
1225
|
-
if (!
|
|
1226
|
-
|
|
1224
|
+
if (!W.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1225
|
+
if (!ge(i)) {
|
|
1226
|
+
ut.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1227
1227
|
return;
|
|
1228
1228
|
}
|
|
1229
|
-
|
|
1229
|
+
_e(e, Te(i));
|
|
1230
1230
|
} finally {
|
|
1231
|
-
|
|
1231
|
+
W.alive && (G.value = !1);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
let
|
|
1235
|
-
function
|
|
1236
|
-
|
|
1234
|
+
let Q = C(() => u.block.displayCondition ? !I.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1235
|
+
function ye() {
|
|
1236
|
+
q.value = !0, Q.value && u.block.displayCondition ? (J.value = u.block.displayCondition.before, Y.value = u.block.displayCondition.after ?? "") : (J.value = "", Y.value = "");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
let e =
|
|
1238
|
+
function be() {
|
|
1239
|
+
let e = J.value.trim(), t = Y.value.trim();
|
|
1240
1240
|
e && (d("update", { displayCondition: {
|
|
1241
1241
|
label: f.blockSettings.customCondition,
|
|
1242
1242
|
before: e,
|
|
1243
1243
|
after: t
|
|
1244
|
-
} }),
|
|
1244
|
+
} }), q.value = !1, J.value = e, Y.value = t);
|
|
1245
1245
|
}
|
|
1246
1246
|
o([
|
|
1247
1247
|
() => T?.state?.template?.id,
|
|
@@ -1251,44 +1251,44 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1251
1251
|
() => u.block.displayCondition?.after
|
|
1252
1252
|
], () => {
|
|
1253
1253
|
let e = u.block.displayCondition;
|
|
1254
|
-
!e || !
|
|
1254
|
+
!e || !Q.value ? (q.value = !1, J.value = "", Y.value = "") : (J.value = e.before, Y.value = e.after ?? "");
|
|
1255
1255
|
}, { immediate: !0 });
|
|
1256
|
-
let
|
|
1256
|
+
let xe = C(() => {
|
|
1257
1257
|
let e = {};
|
|
1258
|
-
for (let t of
|
|
1258
|
+
for (let t of I) {
|
|
1259
1259
|
let n = t.group ?? "";
|
|
1260
1260
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1261
1261
|
}
|
|
1262
1262
|
return e;
|
|
1263
|
-
}),
|
|
1264
|
-
function
|
|
1263
|
+
}), Se = C(() => u.block.type === "section" && Ee(u.block)?.applied === !0);
|
|
1264
|
+
function Ce(e, t) {
|
|
1265
1265
|
d("update", { styles: {
|
|
1266
1266
|
...u.block.styles,
|
|
1267
1267
|
[e]: t
|
|
1268
1268
|
} });
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function we(e) {
|
|
1271
1271
|
return u.block.visibility?.[e] !== !1;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function De(e) {
|
|
1274
1274
|
let t = {
|
|
1275
|
-
desktop:
|
|
1276
|
-
mobile:
|
|
1275
|
+
desktop: we("desktop"),
|
|
1276
|
+
mobile: we("mobile")
|
|
1277
1277
|
};
|
|
1278
1278
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1279
1279
|
}
|
|
1280
1280
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1281
1281
|
k(Tn, {
|
|
1282
1282
|
title: h(f).blockSettings.spacing,
|
|
1283
|
-
open:
|
|
1283
|
+
open: K.has("spacing"),
|
|
1284
1284
|
"no-border": e.isFirstSection,
|
|
1285
|
-
onToggle: r[1] ||= (e) =>
|
|
1285
|
+
onToggle: r[1] ||= (e) => me("spacing")
|
|
1286
1286
|
}, {
|
|
1287
1287
|
default: a(() => [k(dn, {
|
|
1288
1288
|
path: "styles.padding",
|
|
1289
1289
|
label: h(f).blockSettings.padding,
|
|
1290
1290
|
"model-value": e.block.styles.padding,
|
|
1291
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1291
|
+
"onUpdate:modelValue": r[0] ||= (e) => Ce("padding", e)
|
|
1292
1292
|
}, null, 8, ["label", "model-value"])]),
|
|
1293
1293
|
_: 1
|
|
1294
1294
|
}, 8, [
|
|
@@ -1298,36 +1298,36 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1298
1298
|
]),
|
|
1299
1299
|
k(Tn, {
|
|
1300
1300
|
title: h(f).blockSettings.background,
|
|
1301
|
-
open:
|
|
1301
|
+
open: K.has("bg"),
|
|
1302
1302
|
"header-test-id": "block-settings-background",
|
|
1303
|
-
onToggle: r[4] ||= (e) =>
|
|
1303
|
+
onToggle: r[4] ||= (e) => me("bg")
|
|
1304
1304
|
}, {
|
|
1305
1305
|
default: a(() => [
|
|
1306
|
-
k(
|
|
1307
|
-
path:
|
|
1306
|
+
k(A, {
|
|
1307
|
+
path: oe.value,
|
|
1308
1308
|
label: h(f).blockSettings.color
|
|
1309
1309
|
}, {
|
|
1310
|
-
default: a(() => [k(
|
|
1311
|
-
"model-value":
|
|
1310
|
+
default: a(() => [k(M, {
|
|
1311
|
+
"model-value": le.value,
|
|
1312
1312
|
"allow-transparent": "",
|
|
1313
|
-
"onUpdate:modelValue":
|
|
1313
|
+
"onUpdate:modelValue": fe
|
|
1314
1314
|
}, null, 8, ["model-value"])]),
|
|
1315
1315
|
_: 1
|
|
1316
1316
|
}, 8, ["path", "label"]),
|
|
1317
|
-
|
|
1317
|
+
B.value ? (i(), v(A, {
|
|
1318
1318
|
key: 0,
|
|
1319
1319
|
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1320
1320
|
label: h(f).blockSettings.fullWidthBackground
|
|
1321
1321
|
}, {
|
|
1322
|
-
"label-actions": a(({ controlId: e }) => [k(
|
|
1323
|
-
"data-testid":
|
|
1322
|
+
"label-actions": a(({ controlId: e }) => [k(P, {
|
|
1323
|
+
"data-testid": ie.value,
|
|
1324
1324
|
"control-id": e,
|
|
1325
1325
|
"hide-label": "",
|
|
1326
1326
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1327
1327
|
"model-value": te.value,
|
|
1328
|
-
disabled:
|
|
1328
|
+
disabled: V.value,
|
|
1329
1329
|
label: h(f).blockSettings.fullWidthBackground,
|
|
1330
|
-
"onUpdate:modelValue":
|
|
1330
|
+
"onUpdate:modelValue": ae
|
|
1331
1331
|
}, null, 8, [
|
|
1332
1332
|
"data-testid",
|
|
1333
1333
|
"control-id",
|
|
@@ -1337,36 +1337,36 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1337
1337
|
])]),
|
|
1338
1338
|
_: 1
|
|
1339
1339
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1340
|
-
e.block.type === "section" ? (i(), v(
|
|
1340
|
+
e.block.type === "section" ? (i(), v(A, {
|
|
1341
1341
|
key: 1,
|
|
1342
|
-
path:
|
|
1342
|
+
path: se.value,
|
|
1343
1343
|
label: h(f).blockSettings.backgroundImage
|
|
1344
1344
|
}, {
|
|
1345
1345
|
default: a(() => [k(Sn, {
|
|
1346
1346
|
"hide-label": "",
|
|
1347
1347
|
class: "tpl:mt-3.5",
|
|
1348
|
-
"model-value":
|
|
1348
|
+
"model-value": ue.value,
|
|
1349
1349
|
"testid-prefix": "section",
|
|
1350
1350
|
measure: "",
|
|
1351
|
-
"hero-mode":
|
|
1352
|
-
"onUpdate:modelValue":
|
|
1351
|
+
"hero-mode": Se.value,
|
|
1352
|
+
"onUpdate:modelValue": U
|
|
1353
1353
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1354
1354
|
_: 1
|
|
1355
1355
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1356
|
-
|
|
1356
|
+
H.value ? (i(), v(A, {
|
|
1357
1357
|
key: 2,
|
|
1358
1358
|
path: "styles.backgroundColor",
|
|
1359
1359
|
label: h(f).blockSettings.contentBackground
|
|
1360
1360
|
}, {
|
|
1361
|
-
default: a(() => [k(
|
|
1361
|
+
default: a(() => [k(M, {
|
|
1362
1362
|
"data-testid": "section-content-background",
|
|
1363
1363
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1364
1364
|
"allow-transparent": "",
|
|
1365
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
1365
|
+
"onUpdate:modelValue": r[2] ||= (e) => Ce("backgroundColor", e)
|
|
1366
1366
|
}, null, 8, ["model-value"])]),
|
|
1367
1367
|
_: 1
|
|
1368
1368
|
}, 8, ["label"])) : _("", !0),
|
|
1369
|
-
e.block.type === "section" ? (i(), v(
|
|
1369
|
+
e.block.type === "section" ? (i(), v(A, {
|
|
1370
1370
|
key: 3,
|
|
1371
1371
|
path: "hero",
|
|
1372
1372
|
label: h(f).blocks.hero
|
|
@@ -1382,21 +1382,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1382
1382
|
}, 8, ["title", "open"]),
|
|
1383
1383
|
k(Tn, {
|
|
1384
1384
|
title: h(f).blockSettings.display,
|
|
1385
|
-
open:
|
|
1386
|
-
onToggle: r[6] ||= (e) =>
|
|
1385
|
+
open: K.has("display"),
|
|
1386
|
+
onToggle: r[6] ||= (e) => me("display")
|
|
1387
1387
|
}, {
|
|
1388
|
-
default: a(() => [b("div", Wn, [
|
|
1388
|
+
default: a(() => [b("div", Wn, [j.value && h(O) ? (i(), v(P, {
|
|
1389
1389
|
key: 0,
|
|
1390
1390
|
"data-testid": "locale-hide",
|
|
1391
|
-
disabled: !h(O).locales.includes(
|
|
1392
|
-
"model-value":
|
|
1393
|
-
label: h(w)(h(f).localization.hide, { language: h(
|
|
1391
|
+
disabled: !h(O).locales.includes(j.value),
|
|
1392
|
+
"model-value": N.value,
|
|
1393
|
+
label: h(w)(h(f).localization.hide, { language: h(Me)(j.value) }),
|
|
1394
1394
|
"onUpdate:modelValue": r[5] ||= (t) => h(T)?.setBlockHidden?.(e.block.id, t)
|
|
1395
1395
|
}, null, 8, [
|
|
1396
1396
|
"disabled",
|
|
1397
1397
|
"model-value",
|
|
1398
1398
|
"label"
|
|
1399
|
-
])) : _("", !0), (i(), p(D, null, c(
|
|
1399
|
+
])) : _("", !0), (i(), p(D, null, c(X, (e) => k(A, {
|
|
1400
1400
|
key: e.key,
|
|
1401
1401
|
path: `visibility.${e.key}`,
|
|
1402
1402
|
label: h(f).blockSettings[e.labelKey]
|
|
@@ -1405,13 +1405,13 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1405
1405
|
size: 14,
|
|
1406
1406
|
"stroke-width": 1.5
|
|
1407
1407
|
})), m(" " + x(h(f).blockSettings[e.labelKey]), 1)])]),
|
|
1408
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
1408
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
1409
1409
|
"control-id": t,
|
|
1410
1410
|
"hide-label": "",
|
|
1411
1411
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1412
|
-
"model-value":
|
|
1412
|
+
"model-value": we(e.key),
|
|
1413
1413
|
label: h(f).blockSettings[e.labelKey],
|
|
1414
|
-
"onUpdate:modelValue": (t) =>
|
|
1414
|
+
"onUpdate:modelValue": (t) => De(e.key)
|
|
1415
1415
|
}, null, 8, [
|
|
1416
1416
|
"control-id",
|
|
1417
1417
|
"model-value",
|
|
@@ -1422,60 +1422,60 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1422
1422
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1423
1423
|
_: 1
|
|
1424
1424
|
}, 8, ["title", "open"]),
|
|
1425
|
-
|
|
1425
|
+
he.value ? (i(), v(Tn, {
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
"header-test-id": "display-condition-section",
|
|
1428
1428
|
title: h(f).blockSettings.displayCondition,
|
|
1429
|
-
open:
|
|
1430
|
-
onToggle: r[11] ||= (e) =>
|
|
1429
|
+
open: K.has("condition"),
|
|
1430
|
+
onToggle: r[11] ||= (e) => me("condition")
|
|
1431
1431
|
}, {
|
|
1432
|
-
default: a(() => [h(
|
|
1432
|
+
default: a(() => [h(pe) ? (i(), p("div", Kn, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1433
1433
|
b("p", qn, x(e.block.displayCondition.label), 1),
|
|
1434
1434
|
e.block.displayCondition.description ? (i(), p("p", Jn, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1435
1435
|
b("div", Yn, [b("button", {
|
|
1436
1436
|
type: "button",
|
|
1437
1437
|
"data-testid": "display-condition-edit",
|
|
1438
|
-
class: g(h(
|
|
1439
|
-
disabled:
|
|
1440
|
-
onClick:
|
|
1438
|
+
class: g(h(F)),
|
|
1439
|
+
disabled: G.value,
|
|
1440
|
+
onClick: ve
|
|
1441
1441
|
}, x(h(f).blockSettings.editCondition), 11, Xn), b("button", {
|
|
1442
1442
|
type: "button",
|
|
1443
1443
|
"data-testid": "display-condition-remove",
|
|
1444
|
-
class: g(h(
|
|
1445
|
-
disabled:
|
|
1444
|
+
class: g(h(F)),
|
|
1445
|
+
disabled: G.value,
|
|
1446
1446
|
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1447
1447
|
}, x(h(f).blockSettings.removeCondition), 11, Zn)])
|
|
1448
1448
|
], 64)) : (i(), p("button", {
|
|
1449
1449
|
key: 1,
|
|
1450
1450
|
type: "button",
|
|
1451
1451
|
"data-testid": "display-condition-request",
|
|
1452
|
-
class: g(h(
|
|
1453
|
-
disabled:
|
|
1454
|
-
onClick:
|
|
1455
|
-
}, x(h(f).blockSettings.addCondition), 11, Qn))])) : (i(), p("div", $n, [k(
|
|
1452
|
+
class: g(h(F)),
|
|
1453
|
+
disabled: G.value,
|
|
1454
|
+
onClick: ve
|
|
1455
|
+
}, x(h(f).blockSettings.addCondition), 11, Qn))])) : (i(), p("div", $n, [k(A, {
|
|
1456
1456
|
path: "displayCondition",
|
|
1457
1457
|
label: h(f).blockSettings.displayCondition
|
|
1458
1458
|
}, {
|
|
1459
1459
|
default: a(() => [b("select", {
|
|
1460
1460
|
"data-testid": "display-condition-select",
|
|
1461
1461
|
class: g(["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)]"]),
|
|
1462
|
-
value:
|
|
1462
|
+
value: q.value || Q.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1463
1463
|
onChange: r[8] ||= (e) => {
|
|
1464
1464
|
let t = e.target.value;
|
|
1465
1465
|
if (t === "__custom__") {
|
|
1466
|
-
|
|
1466
|
+
ye();
|
|
1467
1467
|
return;
|
|
1468
1468
|
}
|
|
1469
|
-
if (
|
|
1469
|
+
if (q.value = !1, !t) {
|
|
1470
1470
|
d("update", { displayCondition: void 0 });
|
|
1471
1471
|
return;
|
|
1472
1472
|
}
|
|
1473
|
-
let n = h(
|
|
1473
|
+
let n = h(I).find((e) => e.label === t);
|
|
1474
1474
|
n && d("update", { displayCondition: n });
|
|
1475
1475
|
}
|
|
1476
1476
|
}, [
|
|
1477
1477
|
b("option", tr, x(h(f).blockSettings.noCondition), 1),
|
|
1478
|
-
(i(!0), p(D, null, c(
|
|
1478
|
+
(i(!0), p(D, null, c(xe.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1479
1479
|
key: 0,
|
|
1480
1480
|
label: String(t)
|
|
1481
1481
|
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
@@ -1485,27 +1485,27 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1485
1485
|
key: e.label,
|
|
1486
1486
|
value: e.label
|
|
1487
1487
|
}, x(e.label), 9, ir))), 128))], 64))), 128)),
|
|
1488
|
-
h(
|
|
1488
|
+
h(L) ? (i(), p("option", ar, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1489
1489
|
], 42, er)]),
|
|
1490
1490
|
_: 1
|
|
1491
|
-
}, 8, ["label"]),
|
|
1491
|
+
}, 8, ["label"]), q.value || Q.value ? (i(), p("div", or, [
|
|
1492
1492
|
b("div", null, [b("label", sr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1493
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
1493
|
+
"onUpdate:modelValue": r[9] ||= (e) => J.value = e,
|
|
1494
1494
|
rows: "2",
|
|
1495
|
-
class: g(h(
|
|
1496
|
-
}, null, 2), [[S,
|
|
1495
|
+
class: g(h(ne))
|
|
1496
|
+
}, null, 2), [[S, J.value]])]),
|
|
1497
1497
|
b("div", null, [b("label", cr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1498
|
-
"onUpdate:modelValue": r[10] ||= (e) =>
|
|
1498
|
+
"onUpdate:modelValue": r[10] ||= (e) => Y.value = e,
|
|
1499
1499
|
rows: "2",
|
|
1500
|
-
class: g(h(
|
|
1501
|
-
}, null, 2), [[S,
|
|
1500
|
+
class: g(h(ne))
|
|
1501
|
+
}, null, 2), [[S, Y.value]])]),
|
|
1502
1502
|
b("div", lr, [b("button", {
|
|
1503
1503
|
type: "button",
|
|
1504
|
-
class: g(h(
|
|
1505
|
-
disabled: !
|
|
1506
|
-
onClick:
|
|
1504
|
+
class: g(h(ee)),
|
|
1505
|
+
disabled: !J.value.trim(),
|
|
1506
|
+
onClick: be
|
|
1507
1507
|
}, x(h(f).blockSettings.applyCondition), 11, ur)])
|
|
1508
|
-
])) : e.block.displayCondition && !
|
|
1508
|
+
])) : e.block.displayCondition && !Q.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", dr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", fr, [b("pre", pr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", mr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1509
1509
|
_: 1
|
|
1510
1510
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1511
1511
|
], 2));
|
|
@@ -1518,13 +1518,13 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1518
1518
|
readOnly: { type: Boolean }
|
|
1519
1519
|
},
|
|
1520
1520
|
setup(e) {
|
|
1521
|
-
let { t } =
|
|
1521
|
+
let { t } = Z();
|
|
1522
1522
|
return (n, r) => (i(), p("span", null, [
|
|
1523
1523
|
m(x(e.label) + " ", 1),
|
|
1524
1524
|
e.readOnly ? (i(), p("span", {
|
|
1525
1525
|
key: 0,
|
|
1526
1526
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1527
|
-
}, [k(h(
|
|
1527
|
+
}, [k(h(J), {
|
|
1528
1528
|
size: 12,
|
|
1529
1529
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1530
1530
|
"aria-hidden": "true"
|
|
@@ -1547,11 +1547,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1547
1547
|
},
|
|
1548
1548
|
emits: ["update:modelValue"],
|
|
1549
1549
|
setup(e, { emit: t }) {
|
|
1550
|
-
let n = t, { t: r } =
|
|
1550
|
+
let n = t, { t: r } = Z();
|
|
1551
1551
|
return (t, o) => (i(), p("div", {
|
|
1552
1552
|
class: "tpl:mb-3.5",
|
|
1553
1553
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1554
|
-
}, [k(
|
|
1554
|
+
}, [k(P, {
|
|
1555
1555
|
"hide-label": e.hideLabel,
|
|
1556
1556
|
"control-id": e.controlId,
|
|
1557
1557
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -1561,7 +1561,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1561
1561
|
disabled: e.readOnly,
|
|
1562
1562
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1563
1563
|
}, {
|
|
1564
|
-
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(
|
|
1564
|
+
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(J), {
|
|
1565
1565
|
key: 0,
|
|
1566
1566
|
size: 12,
|
|
1567
1567
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1587,7 +1587,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1587
1587
|
setup(e) {
|
|
1588
1588
|
return (t, n) => (i(), p("div", Cr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1589
1589
|
key: 0,
|
|
1590
|
-
class: g(h(
|
|
1590
|
+
class: g(h(V))
|
|
1591
1591
|
}, [k(br, {
|
|
1592
1592
|
label: e.label,
|
|
1593
1593
|
required: e.required,
|
|
@@ -1608,14 +1608,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1608
1608
|
},
|
|
1609
1609
|
emits: ["update:modelValue"],
|
|
1610
1610
|
setup(e, { emit: t }) {
|
|
1611
|
-
let n = e, r = t, { t: o } =
|
|
1611
|
+
let n = e, r = t, { t: o } = Z(), s = l(ot, ft), c = C(() => Ye(n.field, s));
|
|
1612
1612
|
return (t, n) => (i(), v(wr, {
|
|
1613
1613
|
"hide-label": e.hideLabel,
|
|
1614
1614
|
label: e.field.label,
|
|
1615
1615
|
required: e.field.required,
|
|
1616
1616
|
"read-only": e.readOnly
|
|
1617
1617
|
}, {
|
|
1618
|
-
default: a(() => [k(
|
|
1618
|
+
default: a(() => [k(M, {
|
|
1619
1619
|
"model-value": e.modelValue,
|
|
1620
1620
|
placeholder: e.field.placeholder,
|
|
1621
1621
|
disabled: e.readOnly,
|
|
@@ -1653,7 +1653,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1653
1653
|
},
|
|
1654
1654
|
emits: ["update:modelValue"],
|
|
1655
1655
|
setup(e, { emit: t }) {
|
|
1656
|
-
let n = e, r = t, { t: o } =
|
|
1656
|
+
let n = e, r = t, { t: o } = Z(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = Je({
|
|
1657
1657
|
target: s,
|
|
1658
1658
|
blocked: () => !!n.readOnly,
|
|
1659
1659
|
apply: (e) => r("update:modelValue", e.url)
|
|
@@ -1669,14 +1669,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1669
1669
|
ref: s,
|
|
1670
1670
|
class: "tpl:relative"
|
|
1671
1671
|
}, [
|
|
1672
|
-
h(u) ? (i(), v(
|
|
1672
|
+
h(u) ? (i(), v(ze, {
|
|
1673
1673
|
key: 0,
|
|
1674
1674
|
uploading: h(l)
|
|
1675
1675
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
1676
1676
|
e.readOnly ? (i(), p("input", {
|
|
1677
1677
|
key: 1,
|
|
1678
1678
|
type: "url",
|
|
1679
|
-
class: g([h(
|
|
1679
|
+
class: g([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1680
1680
|
value: e.modelValue,
|
|
1681
1681
|
placeholder: e.field.placeholder || "https://...",
|
|
1682
1682
|
disabled: "",
|
|
@@ -1684,7 +1684,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1684
1684
|
}, null, 10, Er)) : (i(), p("input", {
|
|
1685
1685
|
key: 2,
|
|
1686
1686
|
type: "url",
|
|
1687
|
-
class: g(h(
|
|
1687
|
+
class: g(h(B)),
|
|
1688
1688
|
value: e.modelValue,
|
|
1689
1689
|
placeholder: e.field.placeholder || "https://...",
|
|
1690
1690
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
@@ -1693,7 +1693,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1693
1693
|
key: 3,
|
|
1694
1694
|
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)]",
|
|
1695
1695
|
onClick: n[1] ||= (e) => h(d)()
|
|
1696
|
-
}, [k(h(
|
|
1696
|
+
}, [k(h(de), {
|
|
1697
1697
|
size: 14,
|
|
1698
1698
|
"stroke-width": 1.5
|
|
1699
1699
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
@@ -1724,7 +1724,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1724
1724
|
},
|
|
1725
1725
|
emits: ["update:modelValue"],
|
|
1726
1726
|
setup(e, { emit: t }) {
|
|
1727
|
-
let n = t, { t: r } =
|
|
1727
|
+
let n = t, { t: r } = Z();
|
|
1728
1728
|
return (t, o) => (i(), v(wr, {
|
|
1729
1729
|
"hide-label": e.hideLabel,
|
|
1730
1730
|
label: e.field.label,
|
|
@@ -1733,7 +1733,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1733
1733
|
}, {
|
|
1734
1734
|
default: a(() => [b("input", {
|
|
1735
1735
|
type: "number",
|
|
1736
|
-
class: g([h(
|
|
1736
|
+
class: g([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1737
1737
|
value: e.modelValue,
|
|
1738
1738
|
placeholder: e.field.placeholder,
|
|
1739
1739
|
min: e.field.min,
|
|
@@ -1767,7 +1767,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1767
1767
|
},
|
|
1768
1768
|
emits: ["update:modelValue"],
|
|
1769
1769
|
setup(e, { emit: t }) {
|
|
1770
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1770
|
+
let r = e, o = t, { t: s, format: l } = Z(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
|
|
1771
1771
|
function y() {
|
|
1772
1772
|
if (!d.value || r.readOnly) return;
|
|
1773
1773
|
let e = {};
|
|
@@ -1802,7 +1802,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1802
1802
|
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)]",
|
|
1803
1803
|
title: h(s).customBlocks.fields.removeItem,
|
|
1804
1804
|
onClick: (e) => S(r)
|
|
1805
|
-
}, [k(h(
|
|
1805
|
+
}, [k(h(pe), {
|
|
1806
1806
|
size: 12,
|
|
1807
1807
|
"stroke-width": 2
|
|
1808
1808
|
})], 8, Pr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(Kr)(a.type)), {
|
|
@@ -1820,9 +1820,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1820
1820
|
d.value && !e.readOnly ? (i(), p("button", {
|
|
1821
1821
|
key: 0,
|
|
1822
1822
|
type: "button",
|
|
1823
|
-
class: g(h(
|
|
1823
|
+
class: g(h(R)),
|
|
1824
1824
|
onClick: y
|
|
1825
|
-
}, [k(h(
|
|
1825
|
+
}, [k(h(H), {
|
|
1826
1826
|
size: 14,
|
|
1827
1827
|
"stroke-width": 2
|
|
1828
1828
|
}), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
@@ -1851,7 +1851,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1851
1851
|
},
|
|
1852
1852
|
emits: ["update:modelValue"],
|
|
1853
1853
|
setup(e, { emit: t }) {
|
|
1854
|
-
let n = t, { t: r } =
|
|
1854
|
+
let n = t, { t: r } = Z();
|
|
1855
1855
|
return (t, o) => (i(), v(wr, {
|
|
1856
1856
|
"hide-label": e.hideLabel,
|
|
1857
1857
|
label: e.field.label,
|
|
@@ -1859,7 +1859,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1859
1859
|
"read-only": e.readOnly
|
|
1860
1860
|
}, {
|
|
1861
1861
|
default: a(() => [b("select", {
|
|
1862
|
-
class: g([h(
|
|
1862
|
+
class: g([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1863
1863
|
value: e.modelValue,
|
|
1864
1864
|
disabled: e.readOnly,
|
|
1865
1865
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1890,7 +1890,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1890
1890
|
},
|
|
1891
1891
|
emits: ["update:modelValue"],
|
|
1892
1892
|
setup(e, { emit: t }) {
|
|
1893
|
-
let n = t, { t: r } =
|
|
1893
|
+
let n = t, { t: r } = Z();
|
|
1894
1894
|
return (t, o) => (i(), v(wr, {
|
|
1895
1895
|
"hide-label": e.hideLabel,
|
|
1896
1896
|
label: e.field.label,
|
|
@@ -1900,12 +1900,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1900
1900
|
default: a(() => [e.readOnly ? (i(), p("input", {
|
|
1901
1901
|
key: 0,
|
|
1902
1902
|
type: "text",
|
|
1903
|
-
class: g([h(
|
|
1903
|
+
class: g([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1904
1904
|
value: e.modelValue,
|
|
1905
1905
|
placeholder: e.field.placeholder,
|
|
1906
1906
|
disabled: "",
|
|
1907
1907
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1908
|
-
}, null, 10, Vr)) : (i(), v(
|
|
1908
|
+
}, null, 10, Vr)) : (i(), v(N, {
|
|
1909
1909
|
key: 1,
|
|
1910
1910
|
"model-value": e.modelValue,
|
|
1911
1911
|
placeholder: e.field.placeholder,
|
|
@@ -1935,7 +1935,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1935
1935
|
},
|
|
1936
1936
|
emits: ["update:modelValue"],
|
|
1937
1937
|
setup(e, { emit: t }) {
|
|
1938
|
-
let n = t, { t: r } =
|
|
1938
|
+
let n = t, { t: r } = Z();
|
|
1939
1939
|
return (t, o) => (i(), v(wr, {
|
|
1940
1940
|
"hide-label": e.hideLabel,
|
|
1941
1941
|
label: e.field.label,
|
|
@@ -1950,7 +1950,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1950
1950
|
disabled: "",
|
|
1951
1951
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1952
1952
|
class: g(Wr)
|
|
1953
|
-
}, null, 8, Ur)) : (i(), v(
|
|
1953
|
+
}, null, 8, Ur)) : (i(), v(j, {
|
|
1954
1954
|
key: 1,
|
|
1955
1955
|
"model-value": e.modelValue,
|
|
1956
1956
|
placeholder: e.field.placeholder,
|
|
@@ -1999,7 +1999,7 @@ var qr = {
|
|
|
1999
1999
|
props: { block: {} },
|
|
2000
2000
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2001
2001
|
setup(e, { emit: t }) {
|
|
2002
|
-
let r = e, o = t, { t: s } =
|
|
2002
|
+
let r = e, o = t, { t: s } = Z(), u = l(at, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = Pe({
|
|
2003
2003
|
definition: d,
|
|
2004
2004
|
block: f,
|
|
2005
2005
|
onUpdate: (e, t) => {
|
|
@@ -2027,11 +2027,11 @@ var qr = {
|
|
|
2027
2027
|
type: "button",
|
|
2028
2028
|
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)]",
|
|
2029
2029
|
onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
|
|
2030
|
-
}, [k(h(
|
|
2030
|
+
}, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", ei, [k(h(oe), {
|
|
2031
2031
|
size: 14,
|
|
2032
2032
|
class: "tpl:shrink-0"
|
|
2033
2033
|
}), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
2034
|
-
(i(!0), p(D, null, c(d.value.fields, (t) => (i(), v(
|
|
2034
|
+
(i(!0), p(D, null, c(d.value.fields, (t) => (i(), v(A, {
|
|
2035
2035
|
key: t.key,
|
|
2036
2036
|
path: `fieldValues.${t.key}`,
|
|
2037
2037
|
label: t.label
|
|
@@ -2068,12 +2068,12 @@ var qr = {
|
|
|
2068
2068
|
props: { block: {} },
|
|
2069
2069
|
emits: ["update"],
|
|
2070
2070
|
setup(e, { emit: t }) {
|
|
2071
|
-
let n = t, { t: r } =
|
|
2071
|
+
let n = t, { t: r } = Z();
|
|
2072
2072
|
function o(e, t) {
|
|
2073
2073
|
n("update", { [e]: t });
|
|
2074
2074
|
}
|
|
2075
2075
|
return (t, n) => (i(), p(D, null, [
|
|
2076
|
-
k(
|
|
2076
|
+
k(A, {
|
|
2077
2077
|
label: h(r).divider.style,
|
|
2078
2078
|
class: "tpl:mb-3.5",
|
|
2079
2079
|
path: "lineStyle"
|
|
@@ -2098,30 +2098,30 @@ var qr = {
|
|
|
2098
2098
|
}, null, 8, ["options", "model-value"])]),
|
|
2099
2099
|
_: 1
|
|
2100
2100
|
}, 8, ["label"]),
|
|
2101
|
-
k(
|
|
2101
|
+
k(A, {
|
|
2102
2102
|
label: h(r).divider.color,
|
|
2103
2103
|
class: "tpl:mb-3.5",
|
|
2104
2104
|
path: "color"
|
|
2105
2105
|
}, {
|
|
2106
|
-
default: a(() => [k(
|
|
2106
|
+
default: a(() => [k(M, {
|
|
2107
2107
|
"model-value": e.block.color,
|
|
2108
2108
|
"onUpdate:modelValue": n[1] ||= (e) => o("color", e)
|
|
2109
2109
|
}, null, 8, ["model-value"])]),
|
|
2110
2110
|
_: 1
|
|
2111
2111
|
}, 8, ["label"]),
|
|
2112
|
-
k(
|
|
2112
|
+
k(A, {
|
|
2113
2113
|
label: h(r).divider.thickness,
|
|
2114
2114
|
class: "tpl:mb-3.5",
|
|
2115
2115
|
path: "thickness"
|
|
2116
2116
|
}, {
|
|
2117
2117
|
default: a(() => [b("div", ni, [b("input", {
|
|
2118
2118
|
type: "number",
|
|
2119
|
-
class: g(h(
|
|
2119
|
+
class: g(h(z)),
|
|
2120
2120
|
value: e.block.thickness,
|
|
2121
2121
|
min: "1",
|
|
2122
2122
|
max: "10",
|
|
2123
2123
|
onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
|
|
2124
|
-
}, null, 42, ri), b("span", { class: g(h(
|
|
2124
|
+
}, null, 42, ri), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
2125
2125
|
_: 1
|
|
2126
2126
|
}, 8, ["label"])
|
|
2127
2127
|
], 64));
|
|
@@ -2131,8 +2131,8 @@ var qr = {
|
|
|
2131
2131
|
props: { block: {} },
|
|
2132
2132
|
emits: ["update"],
|
|
2133
2133
|
setup(e, { emit: t }) {
|
|
2134
|
-
let n = t, { t: r } =
|
|
2135
|
-
return (t, o) => (i(), v(
|
|
2134
|
+
let n = t, { t: r } = Z();
|
|
2135
|
+
return (t, o) => (i(), v(A, {
|
|
2136
2136
|
label: h(r).html.content,
|
|
2137
2137
|
class: "tpl:mb-3.5",
|
|
2138
2138
|
path: "content"
|
|
@@ -2141,9 +2141,9 @@ var qr = {
|
|
|
2141
2141
|
value: e.block.content,
|
|
2142
2142
|
placeholder: "<div>...</div>",
|
|
2143
2143
|
rows: "10",
|
|
2144
|
-
class: g(h(
|
|
2144
|
+
class: g(h(ne)),
|
|
2145
2145
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
2146
|
-
}, null, 42, ai), b("p", oi, [k(h(
|
|
2146
|
+
}, null, 42, ai), b("p", oi, [k(h(W), {
|
|
2147
2147
|
size: 12,
|
|
2148
2148
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2149
2149
|
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -2157,7 +2157,7 @@ function ci(e) {
|
|
|
2157
2157
|
o(() => e.block().id, () => {
|
|
2158
2158
|
t.value = !1, n.value = null;
|
|
2159
2159
|
});
|
|
2160
|
-
let r = C(() =>
|
|
2160
|
+
let r = C(() => Be(e.block()) ?? e.measured()), i = C(() => {
|
|
2161
2161
|
let t = e.block().width;
|
|
2162
2162
|
return t === "full" ? e.room() : t;
|
|
2163
2163
|
}), a = C(() => {
|
|
@@ -2168,9 +2168,9 @@ function ci(e) {
|
|
|
2168
2168
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
2169
2169
|
}), l = C(() => s.value && !t.value && c.value);
|
|
2170
2170
|
function u() {
|
|
2171
|
-
if (
|
|
2171
|
+
if (Be(e.block())) return {};
|
|
2172
2172
|
let t = e.measured();
|
|
2173
|
-
return t ?
|
|
2173
|
+
return t ? Ve(t) : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
function d(r) {
|
|
2176
2176
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -2232,7 +2232,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2232
2232
|
props: { block: {} },
|
|
2233
2233
|
emits: ["update"],
|
|
2234
2234
|
setup(e, { emit: t }) {
|
|
2235
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2235
|
+
let n = e, r = t, { t: o, format: s } = Z(), c = l(Xe, he.liquid), u = l(lt, null), d = u ? pt(u) : null, f = l(et, void 0), y = E(!1), S = E(!1), { start: w } = mt(() => {
|
|
2236
2236
|
y.value = !1, S.value = !1;
|
|
2237
2237
|
}, 1e3, { immediate: !1 }), T = [
|
|
2238
2238
|
300,
|
|
@@ -2241,91 +2241,91 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2241
2241
|
], j = C(() => {
|
|
2242
2242
|
let e = n.block.width;
|
|
2243
2243
|
return e === "full" ? "full" : T.includes(e) ? String(e) : "custom";
|
|
2244
|
-
}), M = C(() => typeof n.block.height == "number" ? "custom" : "auto"),
|
|
2245
|
-
function
|
|
2244
|
+
}), M = C(() => typeof n.block.height == "number" ? "custom" : "auto"), F = C(() => n.block.fluidOnMobile === !0 ? "always" : n.block.fluidOnMobile === !1 ? "never" : "auto");
|
|
2245
|
+
function I(e, t) {
|
|
2246
2246
|
r("update", { [e]: t });
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function ee(e) {
|
|
2249
2249
|
if (e === "custom") {
|
|
2250
2250
|
let e = n.block.width;
|
|
2251
|
-
(typeof e != "number" || T.includes(e)) && r("update",
|
|
2252
|
-
} else r("update",
|
|
2251
|
+
(typeof e != "number" || T.includes(e)) && r("update", W.widthUpdates(ki));
|
|
2252
|
+
} else r("update", W.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2255
|
-
|
|
2254
|
+
function R(e) {
|
|
2255
|
+
I("height", e === "custom" ? Ai : void 0);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2258
|
-
|
|
2257
|
+
function te(e) {
|
|
2258
|
+
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function V(e) {
|
|
2261
2261
|
let t = Number(e);
|
|
2262
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2262
|
+
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2265
|
-
|
|
2264
|
+
function ne(e) {
|
|
2265
|
+
I("borderRadius", me(e) === null ? void 0 : e);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function re(e) {
|
|
2268
2268
|
let t = Number(e);
|
|
2269
|
-
!Number.isFinite(t) || t <= 0 || r("update",
|
|
2269
|
+
!Number.isFinite(t) || t <= 0 || r("update", W.widthUpdates(t));
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function ie(e) {
|
|
2272
2272
|
e !== n.block.src && r("update", {
|
|
2273
2273
|
src: e,
|
|
2274
|
-
...
|
|
2274
|
+
...Ve(null)
|
|
2275
2275
|
});
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function ae(e) {
|
|
2278
2278
|
r("update", {
|
|
2279
2279
|
src: e.url,
|
|
2280
|
-
...
|
|
2281
|
-
}), e.alt && (
|
|
2282
|
-
}
|
|
2283
|
-
let
|
|
2284
|
-
target:
|
|
2285
|
-
blocked:
|
|
2286
|
-
apply:
|
|
2287
|
-
}),
|
|
2280
|
+
...Ve(Ie(e.width, e.height))
|
|
2281
|
+
}), e.alt && (I("alt", e.alt), S.value = !0), y.value = !0, w();
|
|
2282
|
+
}
|
|
2283
|
+
let H = E(), oe = C(() => ve(n.block.src, c)), { canBrowse: se, isUploading: ce, showOverlay: le, openMediaBrowser: ue } = Je({
|
|
2284
|
+
target: H,
|
|
2285
|
+
blocked: oe,
|
|
2286
|
+
apply: ae
|
|
2287
|
+
}), fe = Fe(() => oe.value || !n.block.src || Be(n.block) ? void 0 : n.block.src), U = fn(() => fe.value), pe = C(() => d ? He(d.content.value, n.block.id, f) : null), W = ci({
|
|
2288
2288
|
block: () => n.block,
|
|
2289
|
-
room: () =>
|
|
2290
|
-
measured: () =>
|
|
2291
|
-
}), { available:
|
|
2292
|
-
function
|
|
2293
|
-
let e =
|
|
2289
|
+
room: () => pe.value,
|
|
2290
|
+
measured: () => U.value
|
|
2291
|
+
}), { available: G, locked: K, derivedHeight: q, cappedHeight: J } = W;
|
|
2292
|
+
function Y() {
|
|
2293
|
+
let e = W.setLocked(!K.value);
|
|
2294
2294
|
e && r("update", e);
|
|
2295
2295
|
}
|
|
2296
|
-
let
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2299
|
-
let t =
|
|
2296
|
+
let X = E(null);
|
|
2297
|
+
function ge(e) {
|
|
2298
|
+
X.value = e;
|
|
2299
|
+
let t = W.heightUpdates(Number(e));
|
|
2300
2300
|
t && r("update", t);
|
|
2301
2301
|
}
|
|
2302
2302
|
return (t, n) => (i(), p(D, null, [
|
|
2303
|
-
k(
|
|
2303
|
+
k(A, {
|
|
2304
2304
|
label: h(o).image.imageUrl,
|
|
2305
2305
|
class: "tpl:mb-3.5",
|
|
2306
2306
|
path: "src"
|
|
2307
2307
|
}, {
|
|
2308
2308
|
default: a(() => [b("div", {
|
|
2309
2309
|
ref_key: "dropZoneRef",
|
|
2310
|
-
ref:
|
|
2310
|
+
ref: H,
|
|
2311
2311
|
class: "tpl:relative"
|
|
2312
2312
|
}, [
|
|
2313
|
-
h(
|
|
2313
|
+
h(le) ? (i(), v(ze, {
|
|
2314
2314
|
key: 0,
|
|
2315
|
-
uploading: h(
|
|
2315
|
+
uploading: h(ce)
|
|
2316
2316
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
2317
|
-
k(
|
|
2317
|
+
k(N, {
|
|
2318
2318
|
"model-value": e.block.src,
|
|
2319
2319
|
type: "url",
|
|
2320
2320
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2321
2321
|
pulse: y.value,
|
|
2322
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2322
|
+
"onUpdate:modelValue": n[0] ||= (e) => ie(e)
|
|
2323
2323
|
}, null, 8, [
|
|
2324
2324
|
"model-value",
|
|
2325
2325
|
"placeholder",
|
|
2326
2326
|
"pulse"
|
|
2327
2327
|
]),
|
|
2328
|
-
h(
|
|
2328
|
+
h(se) ? (i(), p("button", {
|
|
2329
2329
|
key: 1,
|
|
2330
2330
|
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",
|
|
2331
2331
|
style: {
|
|
@@ -2333,15 +2333,15 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2333
2333
|
color: "var(--tpl-primary)",
|
|
2334
2334
|
"background-color": "var(--tpl-bg)"
|
|
2335
2335
|
},
|
|
2336
|
-
onClick: n[1] ||= (...e) => h(
|
|
2337
|
-
}, [k(h(
|
|
2336
|
+
onClick: n[1] ||= (...e) => h(ue) && h(ue)(...e)
|
|
2337
|
+
}, [k(h(de), {
|
|
2338
2338
|
size: 14,
|
|
2339
2339
|
"stroke-width": 1.5
|
|
2340
2340
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
2341
2341
|
], 512)]),
|
|
2342
2342
|
_: 1
|
|
2343
2343
|
}, 8, ["label"]),
|
|
2344
|
-
h(
|
|
2344
|
+
h(ve)(e.block.src, h(c)) ? (i(), v(A, {
|
|
2345
2345
|
key: 0,
|
|
2346
2346
|
class: "tpl:mb-3.5",
|
|
2347
2347
|
path: "placeholderUrl"
|
|
@@ -2349,43 +2349,43 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2349
2349
|
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", li, x(h(o).image.optional), 1)]),
|
|
2350
2350
|
default: a(() => [b("input", {
|
|
2351
2351
|
type: "url",
|
|
2352
|
-
class: g(h(
|
|
2352
|
+
class: g(h(B)),
|
|
2353
2353
|
value: e.block.placeholderUrl || "",
|
|
2354
2354
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2355
2355
|
title: h(o).image.placeholderUrlTooltip,
|
|
2356
|
-
onInput: n[2] ||= (e) =>
|
|
2356
|
+
onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
|
|
2357
2357
|
}, null, 42, ui)]),
|
|
2358
2358
|
_: 1
|
|
2359
2359
|
})) : _("", !0),
|
|
2360
|
-
k(
|
|
2360
|
+
k(A, {
|
|
2361
2361
|
label: h(o).image.altText,
|
|
2362
2362
|
class: "tpl:mb-3.5",
|
|
2363
2363
|
path: "alt"
|
|
2364
2364
|
}, {
|
|
2365
|
-
default: a(() => [k(
|
|
2365
|
+
default: a(() => [k(N, {
|
|
2366
2366
|
"model-value": e.block.alt,
|
|
2367
2367
|
type: "text",
|
|
2368
2368
|
placeholder: h(o).image.altTextPlaceholder,
|
|
2369
2369
|
pulse: S.value,
|
|
2370
2370
|
disabled: e.block.decorative === !0,
|
|
2371
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2371
|
+
"onUpdate:modelValue": n[3] ||= (e) => I("alt", e)
|
|
2372
2372
|
}, null, 8, [
|
|
2373
2373
|
"model-value",
|
|
2374
2374
|
"placeholder",
|
|
2375
2375
|
"pulse",
|
|
2376
2376
|
"disabled"
|
|
2377
|
-
]), k(
|
|
2377
|
+
]), k(A, {
|
|
2378
2378
|
path: "decorative",
|
|
2379
2379
|
label: h(o).image.decorative
|
|
2380
2380
|
}, {
|
|
2381
2381
|
label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span", di, x(h(o).image.decorativeHint), 1)])]),
|
|
2382
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
2382
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2383
2383
|
"control-id": t,
|
|
2384
2384
|
"hide-label": "",
|
|
2385
2385
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2386
2386
|
"model-value": e.block.decorative === !0,
|
|
2387
2387
|
label: h(o).image.decorative,
|
|
2388
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2388
|
+
"onUpdate:modelValue": n[4] ||= (e) => I("decorative", e)
|
|
2389
2389
|
}, null, 8, [
|
|
2390
2390
|
"control-id",
|
|
2391
2391
|
"model-value",
|
|
@@ -2395,16 +2395,16 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2395
2395
|
}, 8, ["label"])]),
|
|
2396
2396
|
_: 1
|
|
2397
2397
|
}, 8, ["label"]),
|
|
2398
|
-
k(
|
|
2398
|
+
k(A, {
|
|
2399
2399
|
label: h(o).image.width,
|
|
2400
2400
|
class: "tpl:mb-3.5",
|
|
2401
2401
|
path: "width"
|
|
2402
2402
|
}, {
|
|
2403
2403
|
default: a(() => [b("select", {
|
|
2404
|
-
class: g(h(
|
|
2404
|
+
class: g(h(B)),
|
|
2405
2405
|
"data-testid": "image-width-mode",
|
|
2406
2406
|
value: j.value,
|
|
2407
|
-
onChange: n[5] ||= (e) =>
|
|
2407
|
+
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
2408
2408
|
}, [
|
|
2409
2409
|
b("option", pi, x(h(o).image.fullWidth), 1),
|
|
2410
2410
|
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
@@ -2414,23 +2414,23 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2414
2414
|
], 42, fi), j.value === "custom" ? (i(), p("div", hi, [b("input", {
|
|
2415
2415
|
type: "number",
|
|
2416
2416
|
"data-testid": "image-width-input",
|
|
2417
|
-
class: g(h(
|
|
2417
|
+
class: g(h(z)),
|
|
2418
2418
|
value: typeof e.block.width == "number" ? e.block.width : ki,
|
|
2419
2419
|
min: "20",
|
|
2420
|
-
onInput: n[6] ||= (e) =>
|
|
2421
|
-
}, null, 42, gi), b("span", { class: g(h(
|
|
2420
|
+
onInput: n[6] ||= (e) => re(e.target.value)
|
|
2421
|
+
}, null, 42, gi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
2422
2422
|
_: 1
|
|
2423
2423
|
}, 8, ["label"]),
|
|
2424
|
-
k(
|
|
2424
|
+
k(A, {
|
|
2425
2425
|
label: h(o).image.fluidOnMobile,
|
|
2426
2426
|
class: "tpl:mb-3.5",
|
|
2427
2427
|
path: "fluidOnMobile"
|
|
2428
2428
|
}, {
|
|
2429
2429
|
default: a(() => [b("select", {
|
|
2430
|
-
class: g(h(
|
|
2430
|
+
class: g(h(B)),
|
|
2431
2431
|
"data-testid": "image-fluid-on-mobile",
|
|
2432
|
-
value:
|
|
2433
|
-
onChange: n[7] ||= (e) =>
|
|
2432
|
+
value: F.value,
|
|
2433
|
+
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2434
2434
|
}, [
|
|
2435
2435
|
b("option", vi, x(h(o).image.fluidOnMobileAuto), 1),
|
|
2436
2436
|
b("option", yi, x(h(o).image.fluidOnMobileAlways), 1),
|
|
@@ -2438,46 +2438,46 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2438
2438
|
], 42, _i)]),
|
|
2439
2439
|
_: 1
|
|
2440
2440
|
}, 8, ["label"]),
|
|
2441
|
-
k(
|
|
2441
|
+
k(A, {
|
|
2442
2442
|
class: "tpl:mb-3.5",
|
|
2443
2443
|
path: "height",
|
|
2444
2444
|
label: h(o).image.height
|
|
2445
2445
|
}, O({
|
|
2446
2446
|
default: a(() => [
|
|
2447
|
-
h(
|
|
2447
|
+
h(K) ? (i(), p(D, { key: 0 }, [b("div", xi, [b("input", {
|
|
2448
2448
|
type: "number",
|
|
2449
2449
|
"data-testid": "image-locked-height-input",
|
|
2450
|
-
class: g(h(
|
|
2451
|
-
value:
|
|
2450
|
+
class: g(h(z)),
|
|
2451
|
+
value: X.value ?? h(q) ?? "",
|
|
2452
2452
|
min: "1",
|
|
2453
|
-
onInput: n[8] ||= (e) =>
|
|
2454
|
-
onBlur: n[9] ||= (e) =>
|
|
2455
|
-
}, null, 42, Si), b("span", { class: g(h(
|
|
2456
|
-
h(
|
|
2453
|
+
onInput: n[8] ||= (e) => ge(e.target.value),
|
|
2454
|
+
onBlur: n[9] ||= (e) => X.value = null
|
|
2455
|
+
}, null, 42, Si), b("span", { class: g(h(L)) }, "px", 2)]), h(J) === null ? _("", !0) : (i(), p("p", Ci, x(h(s)(h(o).image.heightCapped, { height: h(J) })), 1))], 64)) : _("", !0),
|
|
2456
|
+
h(K) ? _("", !0) : (i(), p("select", {
|
|
2457
2457
|
key: 1,
|
|
2458
|
-
class: g(h(
|
|
2458
|
+
class: g(h(B)),
|
|
2459
2459
|
"data-testid": "image-height-mode",
|
|
2460
2460
|
value: M.value,
|
|
2461
|
-
onChange: n[10] ||= (e) =>
|
|
2461
|
+
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2462
2462
|
}, [b("option", Ti, x(h(o).image.heightAuto), 1), b("option", Ei, x(h(o).image.heightCustom), 1)], 42, wi)),
|
|
2463
|
-
!h(
|
|
2463
|
+
!h(K) && M.value === "custom" ? (i(), p("div", Di, [b("input", {
|
|
2464
2464
|
type: "number",
|
|
2465
2465
|
"data-testid": "image-height-input",
|
|
2466
|
-
class: g(h(
|
|
2466
|
+
class: g(h(z)),
|
|
2467
2467
|
value: e.block.height,
|
|
2468
2468
|
min: "20",
|
|
2469
|
-
onInput: n[11] ||= (e) =>
|
|
2470
|
-
}, null, 42, Oi), b("span", { class: g(h(
|
|
2469
|
+
onInput: n[11] ||= (e) => V(e.target.value)
|
|
2470
|
+
}, null, 42, Oi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
|
|
2471
2471
|
]),
|
|
2472
2472
|
_: 2
|
|
2473
|
-
}, [h(
|
|
2473
|
+
}, [h(G) ? {
|
|
2474
2474
|
name: "label-actions",
|
|
2475
2475
|
fn: a(() => [k(St, {
|
|
2476
|
-
linked: h(
|
|
2476
|
+
linked: h(K),
|
|
2477
2477
|
"link-label": h(o).image.lockAspectRatio,
|
|
2478
2478
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2479
2479
|
testid: "image-aspect-lock",
|
|
2480
|
-
onToggle:
|
|
2480
|
+
onToggle: Y
|
|
2481
2481
|
}, null, 8, [
|
|
2482
2482
|
"linked",
|
|
2483
2483
|
"link-label",
|
|
@@ -2490,15 +2490,15 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2490
2490
|
"model-value": e.block.borderRadius,
|
|
2491
2491
|
label: h(o).image.borderRadius,
|
|
2492
2492
|
"testid-prefix": "image",
|
|
2493
|
-
"onUpdate:modelValue":
|
|
2493
|
+
"onUpdate:modelValue": ne
|
|
2494
2494
|
}, null, 8, ["model-value", "label"]),
|
|
2495
2495
|
k(Et, {
|
|
2496
2496
|
path: "border",
|
|
2497
2497
|
"model-value": e.block.border,
|
|
2498
2498
|
"testid-prefix": "image",
|
|
2499
|
-
"onUpdate:modelValue": n[12] ||= (e) =>
|
|
2499
|
+
"onUpdate:modelValue": n[12] ||= (e) => I("border", e)
|
|
2500
2500
|
}, null, 8, ["model-value"]),
|
|
2501
|
-
k(
|
|
2501
|
+
k(A, {
|
|
2502
2502
|
label: h(o).title.align,
|
|
2503
2503
|
class: "tpl:mb-3.5",
|
|
2504
2504
|
path: "align"
|
|
@@ -2519,32 +2519,32 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2519
2519
|
}
|
|
2520
2520
|
],
|
|
2521
2521
|
"model-value": e.block.align,
|
|
2522
|
-
"onUpdate:modelValue": n[13] ||= (e) =>
|
|
2522
|
+
"onUpdate:modelValue": n[13] ||= (e) => I("align", e)
|
|
2523
2523
|
}, null, 8, ["options", "model-value"])]),
|
|
2524
2524
|
_: 1
|
|
2525
2525
|
}, 8, ["label"]),
|
|
2526
|
-
k(
|
|
2526
|
+
k(A, {
|
|
2527
2527
|
label: h(o).image.linkUrl,
|
|
2528
2528
|
class: "tpl:mb-3.5",
|
|
2529
2529
|
path: "linkUrl"
|
|
2530
2530
|
}, {
|
|
2531
|
-
default: a(() => [k(
|
|
2531
|
+
default: a(() => [k(N, {
|
|
2532
2532
|
"model-value": e.block.linkUrl || "",
|
|
2533
2533
|
type: "url",
|
|
2534
2534
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2535
|
-
"onUpdate:modelValue": n[14] ||= (e) =>
|
|
2536
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(
|
|
2535
|
+
"onUpdate:modelValue": n[14] ||= (e) => I("linkUrl", e)
|
|
2536
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(A, {
|
|
2537
2537
|
key: 0,
|
|
2538
2538
|
path: "linkOpenInNewTab",
|
|
2539
2539
|
label: h(o).image.openInNewTab
|
|
2540
2540
|
}, {
|
|
2541
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
2541
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2542
2542
|
"control-id": t,
|
|
2543
2543
|
"hide-label": "",
|
|
2544
2544
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2545
2545
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2546
2546
|
label: h(o).image.openInNewTab,
|
|
2547
|
-
"onUpdate:modelValue": n[15] ||= (e) =>
|
|
2547
|
+
"onUpdate:modelValue": n[15] ||= (e) => I("linkOpenInNewTab", e)
|
|
2548
2548
|
}, null, 8, [
|
|
2549
2549
|
"control-id",
|
|
2550
2550
|
"model-value",
|
|
@@ -2568,7 +2568,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2568
2568
|
},
|
|
2569
2569
|
emits: ["update"],
|
|
2570
2570
|
setup(e, { emit: t }) {
|
|
2571
|
-
let n = e, r = t, { t: o } =
|
|
2571
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => [
|
|
2572
2572
|
{
|
|
2573
2573
|
key: "openInNewTab",
|
|
2574
2574
|
label: o.menu.openInNewTab
|
|
@@ -2585,17 +2585,17 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2585
2585
|
{
|
|
2586
2586
|
value: "left",
|
|
2587
2587
|
label: o.title.alignLeft,
|
|
2588
|
-
icon:
|
|
2588
|
+
icon: G
|
|
2589
2589
|
},
|
|
2590
2590
|
{
|
|
2591
2591
|
value: "center",
|
|
2592
2592
|
label: o.title.alignCenter,
|
|
2593
|
-
icon:
|
|
2593
|
+
icon: X
|
|
2594
2594
|
},
|
|
2595
2595
|
{
|
|
2596
2596
|
value: "right",
|
|
2597
2597
|
label: o.title.alignRight,
|
|
2598
|
-
icon:
|
|
2598
|
+
icon: ue
|
|
2599
2599
|
}
|
|
2600
2600
|
]);
|
|
2601
2601
|
function u(e, t) {
|
|
@@ -2603,7 +2603,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2603
2603
|
}
|
|
2604
2604
|
function d() {
|
|
2605
2605
|
let e = {
|
|
2606
|
-
id:
|
|
2606
|
+
id: ge(),
|
|
2607
2607
|
text: "",
|
|
2608
2608
|
url: "",
|
|
2609
2609
|
openInNewTab: !1,
|
|
@@ -2623,36 +2623,36 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2623
2623
|
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2624
2624
|
}
|
|
2625
2625
|
return (t, n) => (i(), p(D, null, [
|
|
2626
|
-
k(
|
|
2626
|
+
k(A, { label: h(o).menu.items }, {
|
|
2627
2627
|
default: a(() => [b("div", Mi, [(i(!0), p(D, null, c(e.block.items, (t) => (i(), p("div", {
|
|
2628
2628
|
key: t.id,
|
|
2629
2629
|
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"
|
|
2630
2630
|
}, [
|
|
2631
|
-
b("div", Ni, [k(
|
|
2631
|
+
b("div", Ni, [k(A, {
|
|
2632
2632
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2633
2633
|
label: h(o).menu.text
|
|
2634
2634
|
}, {
|
|
2635
2635
|
default: a(() => [b("input", {
|
|
2636
2636
|
type: "text",
|
|
2637
|
-
class: g([h(
|
|
2637
|
+
class: g([h(B), "tpl:flex-1"]),
|
|
2638
2638
|
value: t.text,
|
|
2639
2639
|
placeholder: h(o).menu.text,
|
|
2640
2640
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2641
2641
|
}, null, 42, Pi)]),
|
|
2642
2642
|
_: 2
|
|
2643
2643
|
}, 1032, ["path", "label"]), b("button", {
|
|
2644
|
-
class: g(h(
|
|
2644
|
+
class: g(h(I)),
|
|
2645
2645
|
title: h(o).menu.removeItem,
|
|
2646
2646
|
onClick: (e) => _(t.id)
|
|
2647
|
-
}, [k(h(
|
|
2647
|
+
}, [k(h(Y), {
|
|
2648
2648
|
size: 14,
|
|
2649
2649
|
"stroke-width": 2
|
|
2650
2650
|
})], 10, Fi)]),
|
|
2651
|
-
k(
|
|
2651
|
+
k(A, {
|
|
2652
2652
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2653
2653
|
label: h(o).button.url
|
|
2654
2654
|
}, {
|
|
2655
|
-
default: a(() => [k(
|
|
2655
|
+
default: a(() => [k(N, {
|
|
2656
2656
|
"model-value": t.url,
|
|
2657
2657
|
type: "url",
|
|
2658
2658
|
placeholder: h(o).menu.urlPlaceholder,
|
|
@@ -2664,12 +2664,12 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2664
2664
|
])]),
|
|
2665
2665
|
_: 2
|
|
2666
2666
|
}, 1032, ["path", "label"]),
|
|
2667
|
-
b("div", Ii, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(
|
|
2667
|
+
b("div", Ii, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(A, {
|
|
2668
2668
|
key: e.key,
|
|
2669
2669
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2670
2670
|
label: e.label
|
|
2671
2671
|
}, {
|
|
2672
|
-
"label-actions": a(({ controlId: n }) => [k(
|
|
2672
|
+
"label-actions": a(({ controlId: n }) => [k(P, {
|
|
2673
2673
|
"control-id": n,
|
|
2674
2674
|
"hide-label": "",
|
|
2675
2675
|
"model-value": t[e.key],
|
|
@@ -2683,11 +2683,11 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2683
2683
|
])]),
|
|
2684
2684
|
_: 2
|
|
2685
2685
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2686
|
-
b("div", Li, [k(
|
|
2686
|
+
b("div", Li, [k(A, {
|
|
2687
2687
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2688
2688
|
label: h(o).menu.color
|
|
2689
2689
|
}, {
|
|
2690
|
-
default: a(() => [k(
|
|
2690
|
+
default: a(() => [k(M, {
|
|
2691
2691
|
"swatch-only": "",
|
|
2692
2692
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2693
2693
|
"onUpdate:modelValue": (e) => f(t.id, "color", e)
|
|
@@ -2695,21 +2695,21 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2695
2695
|
_: 2
|
|
2696
2696
|
}, 1032, ["path", "label"])])
|
|
2697
2697
|
]))), 128)), b("button", {
|
|
2698
|
-
class: g(h(
|
|
2698
|
+
class: g(h(R)),
|
|
2699
2699
|
onClick: d
|
|
2700
|
-
}, [k(h(
|
|
2700
|
+
}, [k(h(H), {
|
|
2701
2701
|
size: 14,
|
|
2702
2702
|
"stroke-width": 2
|
|
2703
2703
|
}), m(" " + x(h(o).menu.addItem), 1)], 2)])]),
|
|
2704
2704
|
_: 1
|
|
2705
2705
|
}, 8, ["label"]),
|
|
2706
|
-
k(
|
|
2706
|
+
k(A, {
|
|
2707
2707
|
path: "fontFamily",
|
|
2708
2708
|
label: h(o).menu.fontFamily
|
|
2709
2709
|
}, {
|
|
2710
2710
|
default: a(() => [b("select", {
|
|
2711
|
-
class: g(h(
|
|
2712
|
-
value: h(
|
|
2711
|
+
class: g(h(B)),
|
|
2712
|
+
value: h(je)(e.block.fontFamily),
|
|
2713
2713
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2714
2714
|
}, [b("option", zi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2715
2715
|
key: e.value,
|
|
@@ -2717,7 +2717,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2717
2717
|
}, x(e.label), 9, Bi))), 128))], 42, Ri)]),
|
|
2718
2718
|
_: 1
|
|
2719
2719
|
}, 8, ["label"]),
|
|
2720
|
-
k(
|
|
2720
|
+
k(A, {
|
|
2721
2721
|
path: "fontSize",
|
|
2722
2722
|
label: h(o).menu.fontSize
|
|
2723
2723
|
}, {
|
|
@@ -2730,27 +2730,27 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2730
2730
|
}, null, 8, ["model-value"])]),
|
|
2731
2731
|
_: 1
|
|
2732
2732
|
}, 8, ["label"]),
|
|
2733
|
-
k(
|
|
2733
|
+
k(A, {
|
|
2734
2734
|
path: "color",
|
|
2735
2735
|
label: h(o).menu.color
|
|
2736
2736
|
}, {
|
|
2737
|
-
default: a(() => [k(
|
|
2737
|
+
default: a(() => [k(M, {
|
|
2738
2738
|
"model-value": e.block.color ?? "",
|
|
2739
2739
|
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
2740
2740
|
}, null, 8, ["model-value"])]),
|
|
2741
2741
|
_: 1
|
|
2742
2742
|
}, 8, ["label"]),
|
|
2743
|
-
k(
|
|
2743
|
+
k(A, {
|
|
2744
2744
|
path: "linkColor",
|
|
2745
2745
|
label: h(o).menu.linkColor
|
|
2746
2746
|
}, {
|
|
2747
|
-
default: a(() => [k(
|
|
2747
|
+
default: a(() => [k(M, {
|
|
2748
2748
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2749
2749
|
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
2750
2750
|
}, null, 8, ["model-value"])]),
|
|
2751
2751
|
_: 1
|
|
2752
2752
|
}, 8, ["label"]),
|
|
2753
|
-
k(
|
|
2753
|
+
k(A, {
|
|
2754
2754
|
path: "textAlign",
|
|
2755
2755
|
label: h(o).menu.textAlign
|
|
2756
2756
|
}, {
|
|
@@ -2761,29 +2761,29 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2761
2761
|
}, null, 8, ["options", "model-value"])]),
|
|
2762
2762
|
_: 1
|
|
2763
2763
|
}, 8, ["label"]),
|
|
2764
|
-
k(
|
|
2764
|
+
k(A, {
|
|
2765
2765
|
path: "separator",
|
|
2766
2766
|
label: h(o).menu.separator
|
|
2767
2767
|
}, {
|
|
2768
2768
|
default: a(() => [b("input", {
|
|
2769
2769
|
type: "text",
|
|
2770
|
-
class: g(h(
|
|
2770
|
+
class: g(h(B)),
|
|
2771
2771
|
value: e.block.separator,
|
|
2772
2772
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2773
2773
|
}, null, 42, Vi)]),
|
|
2774
2774
|
_: 1
|
|
2775
2775
|
}, 8, ["label"]),
|
|
2776
|
-
k(
|
|
2776
|
+
k(A, {
|
|
2777
2777
|
path: "separatorColor",
|
|
2778
2778
|
label: h(o).menu.separatorColor
|
|
2779
2779
|
}, {
|
|
2780
|
-
default: a(() => [k(
|
|
2780
|
+
default: a(() => [k(M, {
|
|
2781
2781
|
"model-value": e.block.separatorColor,
|
|
2782
2782
|
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
2783
2783
|
}, null, 8, ["model-value"])]),
|
|
2784
2784
|
_: 1
|
|
2785
2785
|
}, 8, ["label"]),
|
|
2786
|
-
k(
|
|
2786
|
+
k(A, {
|
|
2787
2787
|
path: "spacing",
|
|
2788
2788
|
label: h(o).menu.spacing
|
|
2789
2789
|
}, {
|
|
@@ -2803,8 +2803,8 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2803
2803
|
props: { block: {} },
|
|
2804
2804
|
emits: ["update"],
|
|
2805
2805
|
setup(e, { emit: t }) {
|
|
2806
|
-
let n = t, { t: r } =
|
|
2807
|
-
return (t, o) => (i(), v(
|
|
2806
|
+
let n = t, { t: r } = Z();
|
|
2807
|
+
return (t, o) => (i(), v(A, {
|
|
2808
2808
|
label: h(r).paragraph.paragraphSpacing,
|
|
2809
2809
|
class: "tpl:mb-3.5",
|
|
2810
2810
|
"data-testid": "paragraph-spacing",
|
|
@@ -2812,19 +2812,19 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2812
2812
|
}, {
|
|
2813
2813
|
default: a(() => [b("div", Ui, [b("input", {
|
|
2814
2814
|
type: "number",
|
|
2815
|
-
class: g(h(
|
|
2816
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2815
|
+
class: g(h(z)),
|
|
2816
|
+
value: e.block.paragraphSpacing ?? h(ke).paragraphGap,
|
|
2817
2817
|
min: "0",
|
|
2818
2818
|
max: "64",
|
|
2819
2819
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2820
|
-
}, null, 42, Wi), b("span", { class: g(h(
|
|
2820
|
+
}, null, 42, Wi), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
2821
2821
|
_: 1
|
|
2822
2822
|
}, 8, ["label"]));
|
|
2823
2823
|
}
|
|
2824
2824
|
});
|
|
2825
2825
|
// src/utils/rebalanceColumnChildren.ts
|
|
2826
2826
|
function Ki(e, t) {
|
|
2827
|
-
let n =
|
|
2827
|
+
let n = _e(t);
|
|
2828
2828
|
if (e.length === n) return e;
|
|
2829
2829
|
if (e.length < n) {
|
|
2830
2830
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2848,7 +2848,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2848
2848
|
props: { block: {} },
|
|
2849
2849
|
emits: ["update"],
|
|
2850
2850
|
setup(e, { emit: t }) {
|
|
2851
|
-
let n = e, r = t, { t: o } =
|
|
2851
|
+
let n = e, r = t, { t: o } = Z(), s = l(et, void 0), u = l(nt, void 0), d = s !== void 0 && xe(s), f = C(() => u !== !1 || !!n.block.wrapper), m = C(() => d && !n.block.wrapper), y = C(() => d && f.value), S = C(() => Ee(n.block)?.applied === !0), w = C(() => [
|
|
2852
2852
|
{
|
|
2853
2853
|
value: "1",
|
|
2854
2854
|
label: o.section.column1
|
|
@@ -2899,7 +2899,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2899
2899
|
function O(e) {
|
|
2900
2900
|
r("update", { borderRadius: e });
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function j(e) {
|
|
2903
2903
|
e ? r("update", { wrapper: { padding: {
|
|
2904
2904
|
top: 20,
|
|
2905
2905
|
right: 20,
|
|
@@ -2907,37 +2907,37 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2907
2907
|
left: 20
|
|
2908
2908
|
} } }) : r("update", Un(n.block));
|
|
2909
2909
|
}
|
|
2910
|
-
function
|
|
2910
|
+
function N(e) {
|
|
2911
2911
|
r("update", Hn(n.block, e));
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function F(e) {
|
|
2914
2914
|
r("update", { wrapper: {
|
|
2915
2915
|
...n.block.wrapper,
|
|
2916
2916
|
...e
|
|
2917
2917
|
} });
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2920
|
-
|
|
2919
|
+
function I(e) {
|
|
2920
|
+
F({ padding: e });
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2923
|
-
|
|
2922
|
+
function L(e) {
|
|
2923
|
+
F({ borderRadius: e });
|
|
2924
2924
|
}
|
|
2925
2925
|
return (t, n) => (i(), p(D, null, [
|
|
2926
|
-
b("div", qi, [b("label", { class: g(h(
|
|
2927
|
-
class: g(h(
|
|
2926
|
+
b("div", qi, [b("label", { class: g(h(V)) }, x(h(o).section.columns), 3), b("select", {
|
|
2927
|
+
class: g(h(B)),
|
|
2928
2928
|
value: e.block.columns,
|
|
2929
2929
|
onChange: T
|
|
2930
2930
|
}, [(i(!0), p(D, null, c(w.value, (e) => (i(), p("option", {
|
|
2931
2931
|
key: e.value,
|
|
2932
2932
|
value: e.value
|
|
2933
2933
|
}, x(e.label), 9, Yi))), 128))], 42, Ji)]),
|
|
2934
|
-
e.block.columns === "1" ? _("", !0) : (i(), v(
|
|
2934
|
+
e.block.columns === "1" ? _("", !0) : (i(), v(A, {
|
|
2935
2935
|
key: 0,
|
|
2936
2936
|
class: "tpl:mb-3.5",
|
|
2937
2937
|
path: "stackOnMobile",
|
|
2938
2938
|
label: h(o).section.stackOnMobile
|
|
2939
2939
|
}, {
|
|
2940
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
2940
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2941
2941
|
"control-id": t,
|
|
2942
2942
|
"hide-label": "",
|
|
2943
2943
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2967,18 +2967,18 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2967
2967
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
|
|
2968
2968
|
}, null, 8, ["model-value"])),
|
|
2969
2969
|
f.value ? (i(), p("div", Xi, [
|
|
2970
|
-
k(
|
|
2970
|
+
k(A, {
|
|
2971
2971
|
path: "wrapper",
|
|
2972
2972
|
label: h(o).section.wrapperEnable
|
|
2973
2973
|
}, {
|
|
2974
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
2974
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2975
2975
|
"control-id": t,
|
|
2976
2976
|
"hide-label": "",
|
|
2977
2977
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2978
2978
|
"model-value": !!e.block.wrapper,
|
|
2979
2979
|
label: h(o).section.wrapperEnable,
|
|
2980
2980
|
disabled: m.value,
|
|
2981
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
2981
|
+
"onUpdate:modelValue": n[2] ||= (e) => j(e)
|
|
2982
2982
|
}, null, 8, [
|
|
2983
2983
|
"control-id",
|
|
2984
2984
|
"model-value",
|
|
@@ -2989,18 +2989,18 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2989
2989
|
}, 8, ["label"]),
|
|
2990
2990
|
y.value ? (i(), p("p", Zi, x(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2991
2991
|
e.block.wrapper ? (i(), p("div", Qi, [
|
|
2992
|
-
k(
|
|
2992
|
+
k(A, {
|
|
2993
2993
|
path: "wrapper.fullWidth",
|
|
2994
2994
|
label: h(o).blockSettings.fullWidthBackground
|
|
2995
2995
|
}, {
|
|
2996
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
2996
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2997
2997
|
"data-testid": "section-wrapper-full-width",
|
|
2998
2998
|
"control-id": t,
|
|
2999
2999
|
"hide-label": "",
|
|
3000
3000
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3001
3001
|
"model-value": e.block.wrapper.fullWidth === !0,
|
|
3002
3002
|
label: h(o).blockSettings.fullWidthBackground,
|
|
3003
|
-
"onUpdate:modelValue":
|
|
3003
|
+
"onUpdate:modelValue": N
|
|
3004
3004
|
}, null, 8, [
|
|
3005
3005
|
"control-id",
|
|
3006
3006
|
"model-value",
|
|
@@ -3008,18 +3008,18 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3008
3008
|
])]),
|
|
3009
3009
|
_: 1
|
|
3010
3010
|
}, 8, ["label"]),
|
|
3011
|
-
b("div", null, [k(
|
|
3011
|
+
b("div", null, [k(A, {
|
|
3012
3012
|
path: "wrapper.backgroundColor",
|
|
3013
3013
|
label: h(o).blockSettings.color
|
|
3014
3014
|
}, {
|
|
3015
|
-
default: a(() => [k(
|
|
3015
|
+
default: a(() => [k(M, {
|
|
3016
3016
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
3017
3017
|
"allow-transparent": "",
|
|
3018
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3018
|
+
"onUpdate:modelValue": n[3] ||= (e) => F({ backgroundColor: e })
|
|
3019
3019
|
}, null, 8, ["model-value"])]),
|
|
3020
3020
|
_: 1
|
|
3021
3021
|
}, 8, ["label"])]),
|
|
3022
|
-
k(
|
|
3022
|
+
k(A, {
|
|
3023
3023
|
path: "wrapper.backgroundImage",
|
|
3024
3024
|
label: h(o).blockSettings.backgroundImage
|
|
3025
3025
|
}, {
|
|
@@ -3027,7 +3027,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3027
3027
|
"hide-label": "",
|
|
3028
3028
|
"model-value": e.block.wrapper.backgroundImage,
|
|
3029
3029
|
"testid-prefix": "section-wrapper",
|
|
3030
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3030
|
+
"onUpdate:modelValue": n[4] ||= (e) => F({ backgroundImage: e })
|
|
3031
3031
|
}, null, 8, ["model-value"])]),
|
|
3032
3032
|
_: 1
|
|
3033
3033
|
}, 8, ["label"]),
|
|
@@ -3040,7 +3040,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3040
3040
|
bottom: 0,
|
|
3041
3041
|
left: 0
|
|
3042
3042
|
},
|
|
3043
|
-
"onUpdate:modelValue":
|
|
3043
|
+
"onUpdate:modelValue": I
|
|
3044
3044
|
}, null, 8, ["label", "model-value"]),
|
|
3045
3045
|
k(kt, {
|
|
3046
3046
|
path: "wrapper.borderRadius",
|
|
@@ -3048,7 +3048,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3048
3048
|
label: h(o).section.borderRadius,
|
|
3049
3049
|
max: 50,
|
|
3050
3050
|
"testid-prefix": "section-wrapper",
|
|
3051
|
-
"onUpdate:modelValue":
|
|
3051
|
+
"onUpdate:modelValue": L
|
|
3052
3052
|
}, null, 8, ["model-value", "label"])
|
|
3053
3053
|
])) : _("", !0)
|
|
3054
3054
|
])) : _("", !0)
|
|
@@ -3059,13 +3059,13 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3059
3059
|
props: { block: {} },
|
|
3060
3060
|
emits: ["update"],
|
|
3061
3061
|
setup(e, { emit: t }) {
|
|
3062
|
-
let n = e, r = t, { t: o } =
|
|
3062
|
+
let n = e, r = t, { t: o } = Z();
|
|
3063
3063
|
function s(e, t) {
|
|
3064
3064
|
r("update", { [e]: t });
|
|
3065
3065
|
}
|
|
3066
3066
|
function l() {
|
|
3067
3067
|
let e = {
|
|
3068
|
-
id:
|
|
3068
|
+
id: ge(),
|
|
3069
3069
|
platform: "facebook",
|
|
3070
3070
|
url: ""
|
|
3071
3071
|
};
|
|
@@ -3082,35 +3082,35 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3082
3082
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3083
3083
|
}
|
|
3084
3084
|
return (t, n) => (i(), p(D, null, [
|
|
3085
|
-
b("div", ea, [b("label", { class: g(h(
|
|
3085
|
+
b("div", ea, [b("label", { class: g(h(V)) }, x(h(o).social.icons), 3), b("div", ta, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
3086
3086
|
key: e.id,
|
|
3087
3087
|
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"
|
|
3088
|
-
}, [b("div", na, [k(
|
|
3088
|
+
}, [b("div", na, [k(A, {
|
|
3089
3089
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
3090
3090
|
label: h(o).social.icons
|
|
3091
3091
|
}, {
|
|
3092
3092
|
default: a(() => [b("select", {
|
|
3093
3093
|
"data-testid": "social-platform-select",
|
|
3094
|
-
class: g([h(
|
|
3094
|
+
class: g([h(B), "tpl:flex-1"]),
|
|
3095
3095
|
value: e.platform,
|
|
3096
3096
|
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
3097
|
-
}, [(i(!0), p(D, null, c(h(
|
|
3097
|
+
}, [(i(!0), p(D, null, c(h(Ke), (e) => (i(), p("option", {
|
|
3098
3098
|
key: e,
|
|
3099
3099
|
value: e
|
|
3100
3100
|
}, x(h(o).social.platforms[e]), 9, ia))), 128))], 42, ra)]),
|
|
3101
3101
|
_: 2
|
|
3102
3102
|
}, 1032, ["path", "label"]), b("button", {
|
|
3103
|
-
class: g(h(
|
|
3103
|
+
class: g(h(I)),
|
|
3104
3104
|
title: h(o).social.removeIcon,
|
|
3105
3105
|
onClick: (t) => d(e.id)
|
|
3106
|
-
}, [k(h(
|
|
3106
|
+
}, [k(h(Y), {
|
|
3107
3107
|
size: 14,
|
|
3108
3108
|
"stroke-width": 2
|
|
3109
|
-
})], 10, aa)]), k(
|
|
3109
|
+
})], 10, aa)]), k(A, {
|
|
3110
3110
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
3111
3111
|
label: h(o).button.url
|
|
3112
3112
|
}, {
|
|
3113
|
-
default: a(() => [k(
|
|
3113
|
+
default: a(() => [k(N, {
|
|
3114
3114
|
"model-value": e.url,
|
|
3115
3115
|
type: "url",
|
|
3116
3116
|
placeholder: h(o).social.urlPlaceholder,
|
|
@@ -3122,19 +3122,19 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3122
3122
|
])]),
|
|
3123
3123
|
_: 2
|
|
3124
3124
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
3125
|
-
class: g(h(
|
|
3125
|
+
class: g(h(R)),
|
|
3126
3126
|
onClick: l
|
|
3127
|
-
}, [k(h(
|
|
3127
|
+
}, [k(h(H), {
|
|
3128
3128
|
size: 14,
|
|
3129
3129
|
"stroke-width": 2
|
|
3130
3130
|
}), m(" " + x(h(o).social.addIcon), 1)], 2)])]),
|
|
3131
|
-
k(
|
|
3131
|
+
k(A, {
|
|
3132
3132
|
label: h(o).social.style,
|
|
3133
3133
|
class: "tpl:mb-3.5",
|
|
3134
3134
|
path: "iconStyle"
|
|
3135
3135
|
}, {
|
|
3136
3136
|
default: a(() => [b("select", {
|
|
3137
|
-
class: g(h(
|
|
3137
|
+
class: g(h(B)),
|
|
3138
3138
|
value: e.block.iconStyle,
|
|
3139
3139
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
3140
3140
|
}, [
|
|
@@ -3147,14 +3147,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3147
3147
|
], 42, oa)]),
|
|
3148
3148
|
_: 1
|
|
3149
3149
|
}, 8, ["label"]),
|
|
3150
|
-
k(
|
|
3150
|
+
k(A, {
|
|
3151
3151
|
label: h(o).social.color,
|
|
3152
3152
|
class: "tpl:mb-3.5",
|
|
3153
3153
|
path: "iconTone"
|
|
3154
3154
|
}, {
|
|
3155
3155
|
default: a(() => [b("select", {
|
|
3156
3156
|
"data-testid": "social-tone-select",
|
|
3157
|
-
class: g(h(
|
|
3157
|
+
class: g(h(B)),
|
|
3158
3158
|
value: e.block.iconTone ?? "brand",
|
|
3159
3159
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
3160
3160
|
}, [
|
|
@@ -3164,7 +3164,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3164
3164
|
], 42, pa)]),
|
|
3165
3165
|
_: 1
|
|
3166
3166
|
}, 8, ["label"]),
|
|
3167
|
-
k(
|
|
3167
|
+
k(A, {
|
|
3168
3168
|
label: h(o).social.size,
|
|
3169
3169
|
class: "tpl:mb-3.5",
|
|
3170
3170
|
path: "iconSize"
|
|
@@ -3189,22 +3189,22 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3189
3189
|
}, null, 8, ["options", "model-value"])]),
|
|
3190
3190
|
_: 1
|
|
3191
3191
|
}, 8, ["label"]),
|
|
3192
|
-
k(
|
|
3192
|
+
k(A, {
|
|
3193
3193
|
label: h(o).social.spacing,
|
|
3194
3194
|
class: "tpl:mb-3.5",
|
|
3195
3195
|
path: "spacing"
|
|
3196
3196
|
}, {
|
|
3197
3197
|
default: a(() => [b("div", _a, [b("input", {
|
|
3198
3198
|
type: "number",
|
|
3199
|
-
class: g(h(
|
|
3199
|
+
class: g(h(z)),
|
|
3200
3200
|
value: e.block.spacing,
|
|
3201
3201
|
min: "0",
|
|
3202
3202
|
max: "50",
|
|
3203
3203
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
3204
|
-
}, null, 42, va), b("span", { class: g(h(
|
|
3204
|
+
}, null, 42, va), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3205
3205
|
_: 1
|
|
3206
3206
|
}, 8, ["label"]),
|
|
3207
|
-
k(
|
|
3207
|
+
k(A, {
|
|
3208
3208
|
label: h(o).social.align,
|
|
3209
3209
|
class: "tpl:mb-3.5",
|
|
3210
3210
|
path: "align"
|
|
@@ -3214,17 +3214,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3214
3214
|
{
|
|
3215
3215
|
value: "left",
|
|
3216
3216
|
label: h(o).title.alignLeft,
|
|
3217
|
-
icon: h(
|
|
3217
|
+
icon: h(G)
|
|
3218
3218
|
},
|
|
3219
3219
|
{
|
|
3220
3220
|
value: "center",
|
|
3221
3221
|
label: h(o).title.alignCenter,
|
|
3222
|
-
icon: h(
|
|
3222
|
+
icon: h(X)
|
|
3223
3223
|
},
|
|
3224
3224
|
{
|
|
3225
3225
|
value: "right",
|
|
3226
3226
|
label: h(o).title.alignRight,
|
|
3227
|
-
icon: h(
|
|
3227
|
+
icon: h(ue)
|
|
3228
3228
|
}
|
|
3229
3229
|
],
|
|
3230
3230
|
"model-value": e.block.align,
|
|
@@ -3239,20 +3239,20 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3239
3239
|
props: { block: {} },
|
|
3240
3240
|
emits: ["update"],
|
|
3241
3241
|
setup(e, { emit: t }) {
|
|
3242
|
-
let n = t, { t: r } =
|
|
3243
|
-
return (t, o) => (i(), v(
|
|
3242
|
+
let n = t, { t: r } = Z();
|
|
3243
|
+
return (t, o) => (i(), v(A, {
|
|
3244
3244
|
label: h(r).spacer.height,
|
|
3245
3245
|
class: "tpl:mb-3.5",
|
|
3246
3246
|
path: "height"
|
|
3247
3247
|
}, {
|
|
3248
3248
|
default: a(() => [b("div", ba, [b("input", {
|
|
3249
3249
|
type: "number",
|
|
3250
|
-
class: g(h(
|
|
3250
|
+
class: g(h(z)),
|
|
3251
3251
|
value: e.block.height,
|
|
3252
3252
|
min: "10",
|
|
3253
3253
|
max: "100",
|
|
3254
3254
|
onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3255
|
-
}, null, 42, xa), b("span", { class: g(h(
|
|
3255
|
+
}, null, 42, xa), b("span", { class: g(h(L)) }, "px", 2)]), b("input", {
|
|
3256
3256
|
type: "range",
|
|
3257
3257
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3258
3258
|
value: e.block.height,
|
|
@@ -3271,15 +3271,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3271
3271
|
},
|
|
3272
3272
|
emits: ["update"],
|
|
3273
3273
|
setup(e, { emit: t }) {
|
|
3274
|
-
let n = e, r = t, { t: o } =
|
|
3274
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3275
3275
|
function l(e, t) {
|
|
3276
3276
|
r("update", { [e]: t });
|
|
3277
3277
|
}
|
|
3278
3278
|
function u() {
|
|
3279
3279
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3280
|
-
id:
|
|
3280
|
+
id: ge(),
|
|
3281
3281
|
cells: Array.from({ length: e }, () => ({
|
|
3282
|
-
id:
|
|
3282
|
+
id: ge(),
|
|
3283
3283
|
content: ""
|
|
3284
3284
|
}))
|
|
3285
3285
|
};
|
|
@@ -3292,7 +3292,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3292
3292
|
let e = n.block.rows.map((e) => ({
|
|
3293
3293
|
...e,
|
|
3294
3294
|
cells: [...e.cells, {
|
|
3295
|
-
id:
|
|
3295
|
+
id: ge(),
|
|
3296
3296
|
content: ""
|
|
3297
3297
|
}]
|
|
3298
3298
|
}));
|
|
@@ -3306,12 +3306,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3306
3306
|
r("update", { rows: t });
|
|
3307
3307
|
}
|
|
3308
3308
|
return (t, n) => (i(), p(D, null, [
|
|
3309
|
-
b("div", wa, [b("label", { class: g(h(
|
|
3309
|
+
b("div", wa, [b("label", { class: g(h(V)) }, x(h(o).table.dimensions), 3), b("div", Ta, [b("div", Ea, [b("span", Da, x(h(o).table.rows), 1), b("div", Oa, [
|
|
3310
3310
|
b("button", {
|
|
3311
3311
|
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",
|
|
3312
3312
|
disabled: e.block.rows.length <= 1,
|
|
3313
3313
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3314
|
-
}, [k(h(
|
|
3314
|
+
}, [k(h(U), {
|
|
3315
3315
|
size: 12,
|
|
3316
3316
|
"stroke-width": 2
|
|
3317
3317
|
})], 8, ka),
|
|
@@ -3319,7 +3319,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3319
3319
|
b("button", {
|
|
3320
3320
|
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)]",
|
|
3321
3321
|
onClick: u
|
|
3322
|
-
}, [k(h(
|
|
3322
|
+
}, [k(h(H), {
|
|
3323
3323
|
size: 12,
|
|
3324
3324
|
"stroke-width": 2
|
|
3325
3325
|
})])
|
|
@@ -3328,7 +3328,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3328
3328
|
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",
|
|
3329
3329
|
disabled: s.value <= 1,
|
|
3330
3330
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3331
|
-
}, [k(h(
|
|
3331
|
+
}, [k(h(U), {
|
|
3332
3332
|
size: 12,
|
|
3333
3333
|
"stroke-width": 2
|
|
3334
3334
|
})], 8, Pa),
|
|
@@ -3336,17 +3336,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3336
3336
|
b("button", {
|
|
3337
3337
|
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)]",
|
|
3338
3338
|
onClick: f
|
|
3339
|
-
}, [k(h(
|
|
3339
|
+
}, [k(h(H), {
|
|
3340
3340
|
size: 12,
|
|
3341
3341
|
"stroke-width": 2
|
|
3342
3342
|
})])
|
|
3343
3343
|
])])])]),
|
|
3344
|
-
k(
|
|
3344
|
+
k(A, {
|
|
3345
3345
|
class: "tpl:mb-3.5",
|
|
3346
3346
|
path: "hasHeaderRow",
|
|
3347
3347
|
label: h(o).table.hasHeaderRow
|
|
3348
3348
|
}, {
|
|
3349
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
3349
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
3350
3350
|
"control-id": t,
|
|
3351
3351
|
"hide-label": "",
|
|
3352
3352
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3360,15 +3360,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3360
3360
|
])]),
|
|
3361
3361
|
_: 1
|
|
3362
3362
|
}, 8, ["label"]),
|
|
3363
|
-
e.block.hasHeaderRow ? (i(), v(
|
|
3363
|
+
e.block.hasHeaderRow ? (i(), v(A, {
|
|
3364
3364
|
key: 0,
|
|
3365
3365
|
label: h(o).table.headerBackgroundColor,
|
|
3366
3366
|
class: "tpl:mb-3.5",
|
|
3367
3367
|
path: "headerBackgroundColor"
|
|
3368
3368
|
}, {
|
|
3369
|
-
default: a(() => [k(
|
|
3369
|
+
default: a(() => [k(M, {
|
|
3370
3370
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3371
|
-
"seed-color": h(
|
|
3371
|
+
"seed-color": h(te),
|
|
3372
3372
|
placeholder: h(o).table.noHeaderBg,
|
|
3373
3373
|
"onUpdate:modelValue": n[3] ||= (e) => l("headerBackgroundColor", e || null)
|
|
3374
3374
|
}, null, 8, [
|
|
@@ -3378,55 +3378,55 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3378
3378
|
])]),
|
|
3379
3379
|
_: 1
|
|
3380
3380
|
}, 8, ["label"])) : _("", !0),
|
|
3381
|
-
k(
|
|
3381
|
+
k(A, {
|
|
3382
3382
|
label: h(o).table.borderColor,
|
|
3383
3383
|
class: "tpl:mb-3.5",
|
|
3384
3384
|
path: "borderColor"
|
|
3385
3385
|
}, {
|
|
3386
|
-
default: a(() => [k(
|
|
3386
|
+
default: a(() => [k(M, {
|
|
3387
3387
|
"model-value": e.block.borderColor,
|
|
3388
3388
|
"onUpdate:modelValue": n[4] ||= (e) => l("borderColor", e)
|
|
3389
3389
|
}, null, 8, ["model-value"])]),
|
|
3390
3390
|
_: 1
|
|
3391
3391
|
}, 8, ["label"]),
|
|
3392
|
-
k(
|
|
3392
|
+
k(A, {
|
|
3393
3393
|
label: h(o).table.borderWidth,
|
|
3394
3394
|
class: "tpl:mb-3.5",
|
|
3395
3395
|
path: "borderWidth"
|
|
3396
3396
|
}, {
|
|
3397
3397
|
default: a(() => [b("div", Ia, [b("input", {
|
|
3398
3398
|
type: "number",
|
|
3399
|
-
class: g(h(
|
|
3399
|
+
class: g(h(z)),
|
|
3400
3400
|
value: e.block.borderWidth,
|
|
3401
3401
|
min: "0",
|
|
3402
3402
|
max: "10",
|
|
3403
3403
|
onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
|
|
3404
|
-
}, null, 42, La), b("span", { class: g(h(
|
|
3404
|
+
}, null, 42, La), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3405
3405
|
_: 1
|
|
3406
3406
|
}, 8, ["label"]),
|
|
3407
|
-
k(
|
|
3407
|
+
k(A, {
|
|
3408
3408
|
label: h(o).table.cellPadding,
|
|
3409
3409
|
class: "tpl:mb-3.5",
|
|
3410
3410
|
path: "cellPadding"
|
|
3411
3411
|
}, {
|
|
3412
3412
|
default: a(() => [b("div", Ra, [b("input", {
|
|
3413
3413
|
type: "number",
|
|
3414
|
-
class: g(h(
|
|
3414
|
+
class: g(h(z)),
|
|
3415
3415
|
value: e.block.cellPadding,
|
|
3416
3416
|
min: "0",
|
|
3417
3417
|
max: "30",
|
|
3418
3418
|
onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
|
|
3419
|
-
}, null, 42, za), b("span", { class: g(h(
|
|
3419
|
+
}, null, 42, za), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3420
3420
|
_: 1
|
|
3421
3421
|
}, 8, ["label"]),
|
|
3422
|
-
k(
|
|
3422
|
+
k(A, {
|
|
3423
3423
|
label: h(o).table.fontFamily,
|
|
3424
3424
|
class: "tpl:mb-3.5",
|
|
3425
3425
|
path: "fontFamily"
|
|
3426
3426
|
}, {
|
|
3427
3427
|
default: a(() => [b("select", {
|
|
3428
|
-
class: g(h(
|
|
3429
|
-
value: h(
|
|
3428
|
+
class: g(h(B)),
|
|
3429
|
+
value: h(je)(e.block.fontFamily),
|
|
3430
3430
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3431
3431
|
}, [b("option", Va, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3432
3432
|
key: e.value,
|
|
@@ -3434,33 +3434,33 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3434
3434
|
}, x(e.label), 9, Ha))), 128))], 42, Ba)]),
|
|
3435
3435
|
_: 1
|
|
3436
3436
|
}, 8, ["label"]),
|
|
3437
|
-
k(
|
|
3437
|
+
k(A, {
|
|
3438
3438
|
label: h(o).table.fontSize,
|
|
3439
3439
|
class: "tpl:mb-3.5",
|
|
3440
3440
|
path: "fontSize"
|
|
3441
3441
|
}, {
|
|
3442
3442
|
default: a(() => [b("div", Ua, [b("input", {
|
|
3443
3443
|
type: "number",
|
|
3444
|
-
class: g(h(
|
|
3444
|
+
class: g(h(z)),
|
|
3445
3445
|
value: e.block.fontSize,
|
|
3446
3446
|
min: "10",
|
|
3447
3447
|
max: "32",
|
|
3448
3448
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
3449
|
-
}, null, 42, Wa), b("span", { class: g(h(
|
|
3449
|
+
}, null, 42, Wa), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3450
3450
|
_: 1
|
|
3451
3451
|
}, 8, ["label"]),
|
|
3452
|
-
k(
|
|
3452
|
+
k(A, {
|
|
3453
3453
|
label: h(o).table.color,
|
|
3454
3454
|
class: "tpl:mb-3.5",
|
|
3455
3455
|
path: "color"
|
|
3456
3456
|
}, {
|
|
3457
|
-
default: a(() => [k(
|
|
3457
|
+
default: a(() => [k(M, {
|
|
3458
3458
|
"model-value": e.block.color ?? "",
|
|
3459
3459
|
"onUpdate:modelValue": n[9] ||= (e) => l("color", e || void 0)
|
|
3460
3460
|
}, null, 8, ["model-value"])]),
|
|
3461
3461
|
_: 1
|
|
3462
3462
|
}, 8, ["label"]),
|
|
3463
|
-
k(
|
|
3463
|
+
k(A, {
|
|
3464
3464
|
label: h(o).table.textAlign,
|
|
3465
3465
|
class: "tpl:mb-3.5",
|
|
3466
3466
|
path: "textAlign"
|
|
@@ -3470,17 +3470,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3470
3470
|
{
|
|
3471
3471
|
value: "left",
|
|
3472
3472
|
label: h(o).title.alignLeft,
|
|
3473
|
-
icon: h(
|
|
3473
|
+
icon: h(G)
|
|
3474
3474
|
},
|
|
3475
3475
|
{
|
|
3476
3476
|
value: "center",
|
|
3477
3477
|
label: h(o).title.alignCenter,
|
|
3478
|
-
icon: h(
|
|
3478
|
+
icon: h(X)
|
|
3479
3479
|
},
|
|
3480
3480
|
{
|
|
3481
3481
|
value: "right",
|
|
3482
3482
|
label: h(o).title.alignRight,
|
|
3483
|
-
icon: h(
|
|
3483
|
+
icon: h(ue)
|
|
3484
3484
|
}
|
|
3485
3485
|
],
|
|
3486
3486
|
"model-value": e.block.textAlign,
|
|
@@ -3498,18 +3498,18 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3498
3498
|
},
|
|
3499
3499
|
emits: ["update"],
|
|
3500
3500
|
setup(e, { emit: t }) {
|
|
3501
|
-
let n = t, { t: r } =
|
|
3501
|
+
let n = t, { t: r } = Z();
|
|
3502
3502
|
function o(e, t) {
|
|
3503
3503
|
n("update", { [e]: t });
|
|
3504
3504
|
}
|
|
3505
3505
|
return (t, n) => (i(), p(D, null, [
|
|
3506
|
-
k(
|
|
3506
|
+
k(A, {
|
|
3507
3507
|
label: h(r).title.level,
|
|
3508
3508
|
class: "tpl:mb-3.5",
|
|
3509
3509
|
path: "level"
|
|
3510
3510
|
}, {
|
|
3511
3511
|
default: a(() => [b("select", {
|
|
3512
|
-
class: g(h(
|
|
3512
|
+
class: g(h(B)),
|
|
3513
3513
|
value: e.block.level,
|
|
3514
3514
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3515
3515
|
}, [
|
|
@@ -3520,14 +3520,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3520
3520
|
], 42, Ka)]),
|
|
3521
3521
|
_: 1
|
|
3522
3522
|
}, 8, ["label"]),
|
|
3523
|
-
k(
|
|
3523
|
+
k(A, {
|
|
3524
3524
|
label: h(r).title.fontFamily,
|
|
3525
3525
|
class: "tpl:mb-3.5",
|
|
3526
3526
|
path: "fontFamily"
|
|
3527
3527
|
}, {
|
|
3528
3528
|
default: a(() => [b("select", {
|
|
3529
|
-
class: g(h(
|
|
3530
|
-
value: h(
|
|
3529
|
+
class: g(h(B)),
|
|
3530
|
+
value: h(je)(e.block.fontFamily),
|
|
3531
3531
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3532
3532
|
}, [b("option", Qa, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3533
3533
|
key: e.value,
|
|
@@ -3535,18 +3535,18 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3535
3535
|
}, x(e.label), 9, $a))), 128))], 42, Za)]),
|
|
3536
3536
|
_: 1
|
|
3537
3537
|
}, 8, ["label"]),
|
|
3538
|
-
k(
|
|
3538
|
+
k(A, {
|
|
3539
3539
|
label: h(r).title.color,
|
|
3540
3540
|
class: "tpl:mb-3.5",
|
|
3541
3541
|
path: "color"
|
|
3542
3542
|
}, {
|
|
3543
|
-
default: a(() => [k(
|
|
3543
|
+
default: a(() => [k(M, {
|
|
3544
3544
|
"model-value": e.block.color ?? "",
|
|
3545
3545
|
"onUpdate:modelValue": n[2] ||= (e) => o("color", e || void 0)
|
|
3546
3546
|
}, null, 8, ["model-value"])]),
|
|
3547
3547
|
_: 1
|
|
3548
3548
|
}, 8, ["label"]),
|
|
3549
|
-
k(
|
|
3549
|
+
k(A, {
|
|
3550
3550
|
label: h(r).title.align,
|
|
3551
3551
|
class: "tpl:mb-3.5",
|
|
3552
3552
|
path: "textAlign"
|
|
@@ -3556,17 +3556,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3556
3556
|
{
|
|
3557
3557
|
value: "left",
|
|
3558
3558
|
label: h(r).title.alignLeft,
|
|
3559
|
-
icon: h(
|
|
3559
|
+
icon: h(G)
|
|
3560
3560
|
},
|
|
3561
3561
|
{
|
|
3562
3562
|
value: "center",
|
|
3563
3563
|
label: h(r).title.alignCenter,
|
|
3564
|
-
icon: h(
|
|
3564
|
+
icon: h(X)
|
|
3565
3565
|
},
|
|
3566
3566
|
{
|
|
3567
3567
|
value: "right",
|
|
3568
3568
|
label: h(r).title.alignRight,
|
|
3569
|
-
icon: h(
|
|
3569
|
+
icon: h(ue)
|
|
3570
3570
|
}
|
|
3571
3571
|
],
|
|
3572
3572
|
"model-value": e.block.textAlign,
|
|
@@ -3591,63 +3591,63 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3591
3591
|
props: { block: {} },
|
|
3592
3592
|
emits: ["update"],
|
|
3593
3593
|
setup(e, { emit: t }) {
|
|
3594
|
-
let n = e, r = t, { t: o } =
|
|
3594
|
+
let n = e, r = t, { t: o } = Z(), s = l(tt, null), c = l(Xe, he.liquid), u = Re(), d = [
|
|
3595
3595
|
300,
|
|
3596
3596
|
400,
|
|
3597
3597
|
500
|
|
3598
|
-
], f = C(() => !!s), y = C(() =>
|
|
3598
|
+
], f = C(() => !!s), y = C(() => ve(n.block.url, c)), S = C(() => {
|
|
3599
3599
|
let e = n.block.width;
|
|
3600
3600
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3601
|
-
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } =
|
|
3601
|
+
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = mt(() => {
|
|
3602
3602
|
T.value = !1;
|
|
3603
3603
|
}, 1e3, { immediate: !1 });
|
|
3604
|
-
function
|
|
3604
|
+
function j(e, t) {
|
|
3605
3605
|
r("update", { [e]: t });
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function M(e) {
|
|
3608
3608
|
if (e === "custom") {
|
|
3609
3609
|
let e = n.block.width;
|
|
3610
|
-
(typeof e != "number" || d.includes(e)) &&
|
|
3611
|
-
} else
|
|
3610
|
+
(typeof e != "number" || d.includes(e)) && j("width", ho);
|
|
3611
|
+
} else j("width", e === "full" ? "full" : Number(e));
|
|
3612
3612
|
}
|
|
3613
|
-
function
|
|
3613
|
+
function F(e) {
|
|
3614
3614
|
let t = Number(e);
|
|
3615
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3615
|
+
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3616
3616
|
}
|
|
3617
|
-
function
|
|
3618
|
-
|
|
3617
|
+
function I(e) {
|
|
3618
|
+
j("height", e === "custom" ? go : void 0);
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function ee(e) {
|
|
3621
3621
|
let t = Number(e);
|
|
3622
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3622
|
+
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3623
3623
|
}
|
|
3624
|
-
async function
|
|
3624
|
+
async function R() {
|
|
3625
3625
|
let e = await s?.({ accept: ["images"] });
|
|
3626
|
-
u.alive && e && (
|
|
3626
|
+
u.alive && e && (j("thumbnailUrl", e.url), T.value = !0, O());
|
|
3627
3627
|
}
|
|
3628
3628
|
return (t, n) => (i(), p(D, null, [
|
|
3629
|
-
k(
|
|
3629
|
+
k(A, {
|
|
3630
3630
|
label: h(o).video.videoUrl,
|
|
3631
3631
|
class: "tpl:mb-3.5",
|
|
3632
3632
|
path: "url"
|
|
3633
3633
|
}, {
|
|
3634
|
-
default: a(() => [k(
|
|
3634
|
+
default: a(() => [k(N, {
|
|
3635
3635
|
"model-value": e.block.url,
|
|
3636
3636
|
type: "url",
|
|
3637
3637
|
placeholder: h(o).video.videoUrlPlaceholder,
|
|
3638
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3639
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(
|
|
3638
|
+
"onUpdate:modelValue": n[0] ||= (e) => j("url", e)
|
|
3639
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(A, {
|
|
3640
3640
|
key: 0,
|
|
3641
3641
|
path: "openInNewTab",
|
|
3642
3642
|
label: h(o).video.openInNewTab
|
|
3643
3643
|
}, {
|
|
3644
|
-
"label-actions": a(({ controlId: t }) => [k(
|
|
3644
|
+
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
3645
3645
|
"control-id": t,
|
|
3646
3646
|
"hide-label": "",
|
|
3647
3647
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
3648
3648
|
"model-value": e.block.openInNewTab ?? !1,
|
|
3649
3649
|
label: h(o).video.openInNewTab,
|
|
3650
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
3650
|
+
"onUpdate:modelValue": n[1] ||= (e) => j("openInNewTab", e)
|
|
3651
3651
|
}, null, 8, [
|
|
3652
3652
|
"control-id",
|
|
3653
3653
|
"model-value",
|
|
@@ -3657,7 +3657,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3657
3657
|
}, 8, ["label"])) : _("", !0)]),
|
|
3658
3658
|
_: 1
|
|
3659
3659
|
}, 8, ["label"]),
|
|
3660
|
-
y.value ? (i(), v(
|
|
3660
|
+
y.value ? (i(), v(A, {
|
|
3661
3661
|
key: 0,
|
|
3662
3662
|
class: "tpl:mb-3.5",
|
|
3663
3663
|
path: "placeholderUrl"
|
|
@@ -3665,25 +3665,25 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3665
3665
|
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", to, x(h(o).video.optional), 1)]),
|
|
3666
3666
|
default: a(() => [b("input", {
|
|
3667
3667
|
type: "url",
|
|
3668
|
-
class: g(h(
|
|
3668
|
+
class: g(h(B)),
|
|
3669
3669
|
value: e.block.placeholderUrl || "",
|
|
3670
3670
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3671
3671
|
title: h(o).video.placeholderUrlTooltip,
|
|
3672
|
-
onInput: n[2] ||= (e) =>
|
|
3672
|
+
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3673
3673
|
}, null, 42, no)]),
|
|
3674
3674
|
_: 1
|
|
3675
3675
|
})) : _("", !0),
|
|
3676
|
-
k(
|
|
3676
|
+
k(A, {
|
|
3677
3677
|
class: "tpl:mb-3.5",
|
|
3678
3678
|
path: "thumbnailUrl"
|
|
3679
3679
|
}, {
|
|
3680
3680
|
label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span", ro, x(h(o).video.optional), 1)]),
|
|
3681
|
-
default: a(() => [k(
|
|
3681
|
+
default: a(() => [k(N, {
|
|
3682
3682
|
"model-value": e.block.thumbnailUrl,
|
|
3683
3683
|
type: "url",
|
|
3684
3684
|
placeholder: h(o).video.thumbnailPlaceholder,
|
|
3685
3685
|
pulse: T.value,
|
|
3686
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3686
|
+
"onUpdate:modelValue": n[3] ||= (e) => j("thumbnailUrl", e)
|
|
3687
3687
|
}, null, 8, [
|
|
3688
3688
|
"model-value",
|
|
3689
3689
|
"placeholder",
|
|
@@ -3696,36 +3696,36 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3696
3696
|
color: "var(--tpl-primary)",
|
|
3697
3697
|
"background-color": "var(--tpl-bg)"
|
|
3698
3698
|
},
|
|
3699
|
-
onClick:
|
|
3700
|
-
}, [k(h(
|
|
3699
|
+
onClick: R
|
|
3700
|
+
}, [k(h(de), {
|
|
3701
3701
|
size: 14,
|
|
3702
3702
|
"stroke-width": 1.5
|
|
3703
3703
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)]),
|
|
3704
3704
|
_: 1
|
|
3705
3705
|
}),
|
|
3706
|
-
k(
|
|
3706
|
+
k(A, {
|
|
3707
3707
|
label: h(o).video.altText,
|
|
3708
3708
|
class: "tpl:mb-3.5",
|
|
3709
3709
|
path: "alt"
|
|
3710
3710
|
}, {
|
|
3711
|
-
default: a(() => [k(
|
|
3711
|
+
default: a(() => [k(N, {
|
|
3712
3712
|
"model-value": e.block.alt,
|
|
3713
3713
|
type: "text",
|
|
3714
3714
|
placeholder: h(o).video.altTextPlaceholder,
|
|
3715
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3715
|
+
"onUpdate:modelValue": n[4] ||= (e) => j("alt", e)
|
|
3716
3716
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3717
3717
|
_: 1
|
|
3718
3718
|
}, 8, ["label"]),
|
|
3719
|
-
k(
|
|
3719
|
+
k(A, {
|
|
3720
3720
|
label: h(o).video.width,
|
|
3721
3721
|
class: "tpl:mb-3.5",
|
|
3722
3722
|
path: "width"
|
|
3723
3723
|
}, {
|
|
3724
3724
|
default: a(() => [b("select", {
|
|
3725
|
-
class: g(h(
|
|
3725
|
+
class: g(h(B)),
|
|
3726
3726
|
"data-testid": "video-width-mode",
|
|
3727
3727
|
value: S.value,
|
|
3728
|
-
onChange: n[5] ||= (e) =>
|
|
3728
|
+
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3729
3729
|
}, [
|
|
3730
3730
|
b("option", ao, x(h(o).video.fullWidth), 1),
|
|
3731
3731
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
@@ -3735,34 +3735,34 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3735
3735
|
], 42, io), S.value === "custom" ? (i(), p("div", so, [b("input", {
|
|
3736
3736
|
type: "number",
|
|
3737
3737
|
"data-testid": "video-width-input",
|
|
3738
|
-
class: g(h(
|
|
3738
|
+
class: g(h(z)),
|
|
3739
3739
|
value: e.block.width,
|
|
3740
3740
|
min: "20",
|
|
3741
|
-
onInput: n[6] ||= (e) =>
|
|
3742
|
-
}, null, 42, co), b("span", { class: g(h(
|
|
3741
|
+
onInput: n[6] ||= (e) => F(e.target.value)
|
|
3742
|
+
}, null, 42, co), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
3743
3743
|
_: 1
|
|
3744
3744
|
}, 8, ["label"]),
|
|
3745
|
-
k(
|
|
3745
|
+
k(A, {
|
|
3746
3746
|
label: h(o).video.height,
|
|
3747
3747
|
class: "tpl:mb-3.5",
|
|
3748
3748
|
path: "height"
|
|
3749
3749
|
}, {
|
|
3750
3750
|
default: a(() => [b("select", {
|
|
3751
|
-
class: g(h(
|
|
3751
|
+
class: g(h(B)),
|
|
3752
3752
|
"data-testid": "video-height-mode",
|
|
3753
3753
|
value: w.value,
|
|
3754
|
-
onChange: n[7] ||= (e) =>
|
|
3754
|
+
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3755
3755
|
}, [b("option", uo, x(h(o).video.heightAuto), 1), b("option", fo, x(h(o).video.heightCustom), 1)], 42, lo), w.value === "custom" ? (i(), p("div", po, [b("input", {
|
|
3756
3756
|
type: "number",
|
|
3757
3757
|
"data-testid": "video-height-input",
|
|
3758
|
-
class: g(h(
|
|
3758
|
+
class: g(h(z)),
|
|
3759
3759
|
value: e.block.height,
|
|
3760
3760
|
min: "20",
|
|
3761
|
-
onInput: n[8] ||= (e) =>
|
|
3762
|
-
}, null, 42, mo), b("span", { class: g(h(
|
|
3761
|
+
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
3762
|
+
}, null, 42, mo), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
3763
3763
|
_: 1
|
|
3764
3764
|
}, 8, ["label"]),
|
|
3765
|
-
k(
|
|
3765
|
+
k(A, {
|
|
3766
3766
|
label: h(o).title.align,
|
|
3767
3767
|
class: "tpl:mb-3.5",
|
|
3768
3768
|
path: "align"
|
|
@@ -3783,7 +3783,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
],
|
|
3785
3785
|
"model-value": e.block.align,
|
|
3786
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
3786
|
+
"onUpdate:modelValue": n[9] ||= (e) => j("align", e)
|
|
3787
3787
|
}, null, 8, ["options", "model-value"])]),
|
|
3788
3788
|
_: 1
|
|
3789
3789
|
}, 8, ["label"])
|
|
@@ -3798,9 +3798,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3798
3798
|
"duplicate"
|
|
3799
3799
|
],
|
|
3800
3800
|
setup(e, { emit: t }) {
|
|
3801
|
-
let r = f(() => import("./CountdownToolbar-
|
|
3801
|
+
let r = f(() => import("./CountdownToolbar-CnWQEW5g.js")), a = e, o = t, { t: s } = Z(), c = dt(), u = ct(it, "Toolbar"), d = l(at, []), m = C(() => a.block.type), g = C(() => De(a.block)), y = C(() => {
|
|
3802
3802
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3803
|
-
}), S = C(() => g.value ? y.value?.name ?? a.block.customType :
|
|
3803
|
+
}), S = C(() => g.value ? y.value?.name ?? a.block.customType : Le(m.value, s)), w = C(() => Ae(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3804
3804
|
function T(e) {
|
|
3805
3805
|
c.value && o("update", e);
|
|
3806
3806
|
}
|
|
@@ -3812,11 +3812,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3812
3812
|
disabled: !h(c),
|
|
3813
3813
|
inert: !h(c),
|
|
3814
3814
|
class: "tpl:contents"
|
|
3815
|
-
}, [b("div", bo, [b("div", xo, [h(
|
|
3815
|
+
}, [b("div", bo, [b("div", xo, [h(ht)[m.value] ? (i(), v(n(h(ht)[m.value]), {
|
|
3816
3816
|
key: 0,
|
|
3817
3817
|
size: 16,
|
|
3818
3818
|
"stroke-width": 1.5
|
|
3819
|
-
})) : g.value ? (i(), v(h(
|
|
3819
|
+
})) : g.value ? (i(), v(h(se), {
|
|
3820
3820
|
key: 1,
|
|
3821
3821
|
size: 16,
|
|
3822
3822
|
"stroke-width": 1.5
|
|
@@ -3824,14 +3824,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3824
3824
|
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)]",
|
|
3825
3825
|
title: h(s).toolbar.duplicate,
|
|
3826
3826
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3827
|
-
}, [k(h(
|
|
3827
|
+
}, [k(h(ie), {
|
|
3828
3828
|
size: 14,
|
|
3829
3829
|
"stroke-width": 2
|
|
3830
3830
|
})], 8, wo), b("button", {
|
|
3831
3831
|
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)]",
|
|
3832
3832
|
title: h(s).toolbar.delete,
|
|
3833
3833
|
onClick: a[1] ||= (e) => o("delete")
|
|
3834
|
-
}, [k(h(
|
|
3834
|
+
}, [k(h(pe), {
|
|
3835
3835
|
size: 14,
|
|
3836
3836
|
"stroke-width": 2
|
|
3837
3837
|
})], 8, To)])]), b("div", Eo, [g.value ? (i(), v(ti, {
|
|
@@ -3902,7 +3902,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3902
3902
|
onUpdate: T
|
|
3903
3903
|
}, null, 8, ["block", "is-first-section"])])], 8, yo)], 8, vo));
|
|
3904
3904
|
}
|
|
3905
|
-
}), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/
|
|
3905
|
+
}), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/ Ne(Do, [["__scopeId", "data-v-206f038f"]]);
|
|
3906
3906
|
export { ko as default, bt as n, $ as r, Oo as t };
|
|
3907
3907
|
|
|
3908
|
-
//# sourceMappingURL=Toolbar-
|
|
3908
|
+
//# sourceMappingURL=Toolbar-VH07SzX7.js.map
|