@templatical/editor 0.0.2 → 0.0.3

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.
Files changed (59) hide show
  1. package/dist/{AiChatSidebar-XBj5Rw2l.js → AiChatSidebar-busJk9hm.js} +1 -1
  2. package/dist/{AiFeatureMenu-my1mZ9DL.js → AiFeatureMenu-DLGv_-pj.js} +3 -3
  3. package/dist/{CloudEditor-BVjgKwq3.js → CloudEditor-BDnHd6Um.js} +176 -197
  4. package/dist/{CollaboratorBar-BZq_Gv38.js → CollaboratorBar-Dv3l52vC.js} +2 -2
  5. package/dist/{CommentsSidebar-D9oxqO6l.js → CommentsSidebar-4tjp0VU5.js} +2 -2
  6. package/dist/{DesignReferenceSidebar-CyHq4SWt.js → DesignReferenceSidebar-CmwXvltV.js} +55 -54
  7. package/dist/{ModuleBrowserModal-Cus2Hdwl.js → ModuleBrowserModal-lrk3Fr0H.js} +6 -6
  8. package/dist/{ModulePreviewCanvas-DaByXKY_.js → ModulePreviewCanvas-BcBJLnwL.js} +3 -3
  9. package/dist/ParagraphEditor-DH8cSC6m.js +625 -0
  10. package/dist/{RichTextEditorContent-BRpjJ6SV.js → RichTextEditorContent-CQqodi7p.js} +3 -3
  11. package/dist/{SaveModuleDialog-BIZBQrd8.js → SaveModuleDialog-Bmzi72td.js} +4 -4
  12. package/dist/{SnapshotHistory-Ds1-QNbx.js → SnapshotHistory-AEgi9Xsn.js} +2 -2
  13. package/dist/{TemplateScoringPanel-C8XSk_Ys.js → TemplateScoringPanel-CTgMtc0-.js} +2 -2
  14. package/dist/{TestEmailModal-CCVfaFgV.js → TestEmailModal-Dpq1is9S.js} +3 -3
  15. package/dist/{TitleEditor-V4qaEULF.js → TitleEditor-CLcDdcWI.js} +7 -7
  16. package/dist/{TplModal-LT3FXlgs.js → TplModal-CGzRjR96.js} +2 -2
  17. package/dist/{blockTypeIcons-BujoY5Dl.js → blockTypeIcons-BpPTqcok.js} +1 -1
  18. package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js +3 -0
  19. package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js.map +1 -0
  20. package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js +2 -0
  21. package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js.map +1 -0
  22. package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js +3 -0
  23. package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js.map +1 -0
  24. package/dist/cdn/chunks/{extensions-BfjbWqOx.js → extensions-ea_ewKUl.js} +2 -2
  25. package/dist/cdn/chunks/{extensions-BfjbWqOx.js.map → extensions-ea_ewKUl.js.map} +1 -1
  26. package/dist/cdn/chunks/styleConstants-CNejCb-L.js +2 -0
  27. package/dist/cdn/chunks/{styleConstants-UTJ94gco.js.map → styleConstants-CNejCb-L.js.map} +1 -1
  28. package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js +2 -0
  29. package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js.map +1 -0
  30. package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js +2 -0
  31. package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js.map +1 -0
  32. package/dist/cdn/editor.js +1 -1
  33. package/dist/cdn/editor.js.map +1 -1
  34. package/dist/{dist-DNjZKe2Z.js → dist-DmpMJbmZ.js} +1 -1
  35. package/dist/{extensions-BA4NshZQ.js → extensions-CKM99njP.js} +3 -3
  36. package/dist/{i18n-ikyi28RU.js → i18n-CJsFtdbZ.js} +1 -1
  37. package/dist/keys-Dwa2PmdD.js +10 -0
  38. package/dist/{styleConstants-CgtFM9hQ.js → styleConstants-D4SOZGBV.js} +53 -2
  39. package/dist/{styles-hQgJKM4i.js → styles-DSw1VNU3.js} +592 -592
  40. package/dist/templatical-editor.css +1 -1
  41. package/dist/templatical-editor.js +5 -5
  42. package/dist/templatical-editor.umd.cjs +59 -59
  43. package/dist/{useEditorCore-DVp5qmtC.js → useEditorCore-Cc4RCwWq.js} +907 -903
  44. package/dist/{useI18n-DzH4KXDk.js → useI18n-DUirdXEX.js} +2 -2
  45. package/dist/{useMergeTag-D9zQVE-e.js → useMergeTag-DVnlvPYJ.js} +2 -2
  46. package/package.json +2 -2
  47. package/dist/ParagraphEditor-BSyk5B6S.js +0 -670
  48. package/dist/cdn/chunks/ParagraphEditor-BkJQO-ZW.js +0 -3
  49. package/dist/cdn/chunks/ParagraphEditor-BkJQO-ZW.js.map +0 -1
  50. package/dist/cdn/chunks/RichTextEditorContent-UGQorJm_.js +0 -2
  51. package/dist/cdn/chunks/RichTextEditorContent-UGQorJm_.js.map +0 -1
  52. package/dist/cdn/chunks/TitleEditor-CC3Adjai.js +0 -3
  53. package/dist/cdn/chunks/TitleEditor-CC3Adjai.js.map +0 -1
  54. package/dist/cdn/chunks/styleConstants-UTJ94gco.js +0 -2
  55. package/dist/cdn/chunks/useEditorCore-DRhPKq_z.js +0 -2
  56. package/dist/cdn/chunks/useEditorCore-DRhPKq_z.js.map +0 -1
  57. package/dist/cdn/chunks/useMergeTag-CBSlcqnk.js +0 -2
  58. package/dist/cdn/chunks/useMergeTag-CBSlcqnk.js.map +0 -1
  59. package/dist/keys-8B5MFafK.js +0 -4
@@ -1,28 +1,28 @@
1
- import { A as e, I as t, M as n, N as r, P as i, T as a, _ as o, a as s, c, d as l, g as u, h as d, i as f, j as p, k as m, l as h, m as ee, n as te, o as ne, p as re, r as ie, s as ae, u as oe, v as se, y as ce } from "./useEditorCore-DVp5qmtC.js";
1
+ import { A as e, I as t, M as n, N as r, P as i, T as a, _ as o, a as s, c, d as l, g as u, h as d, i as f, j as p, k as m, l as h, m as ee, n as te, o as ne, p as re, r as ie, s as ae, u as oe, v as se, y as ce } from "./useEditorCore-Cc4RCwWq.js";
2
2
  import { s as le, t as ue } from "./dist-CG-vEqSU.js";
3
- import { _ as de, a as fe, d as pe, f as me, g as he, l as ge, n as _e, o as ve, p as ye, s as be, u as g } from "./keys-8B5MFafK.js";
4
- import { t as _ } from "./useI18n-DzH4KXDk.js";
3
+ import { _ as de, a as fe, d as pe, f as me, g as he, l as ge, n as _e, o as ve, p as ye, s as be, u as g, w as xe } from "./keys-Dwa2PmdD.js";
4
+ import { t as _ } from "./useI18n-DUirdXEX.js";
5
5
  import { n as v, t as y } from "./_plugin-vue_export-helper-B1-bu7yR.js";
6
- import { t as xe } from "./chevron-down-DJLW2Q9Z.js";
7
- import { t as Se } from "./circle-alert-E2vYPs5r.js";
8
- import { n as Ce, r as b, t as we } from "./blockTypeIcons-BujoY5Dl.js";
9
- import { n as Te, r as Ee, t as De } from "./refresh-cw-Bb4PEeW1.js";
10
- import { t as Oe } from "./image-up-X4xIq4ea.js";
11
- import { t as ke } from "./scan-line-7lZPfOdm.js";
12
- import { t as Ae } from "./sparkles-KhBCGlqB.js";
13
- import { a as je, c as x, d as S, f as Me, i as Ne, l as C, m as Pe, o as Fe, p as Ie, t as Le, u as w } from "./styleConstants-CgtFM9hQ.js";
14
- import { t as Re } from "./trash-2-OwjZ-guZ.js";
15
- import { t as ze } from "./x-CGlq2XQe.js";
16
- import { t as Be } from "./useMergeTag-D9zQVE-e.js";
17
- import { Fragment as T, Transition as Ve, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createStaticVNode as He, createTextVNode as j, createVNode as M, defineComponent as N, inject as P, nextTick as Ue, normalizeClass as F, normalizeStyle as I, openBlock as L, reactive as We, ref as R, renderList as z, renderSlot as Ge, resolveDynamicComponent as B, toDisplayString as V, unref as H, vModelText as Ke, vShow as U, watch as qe, withCtx as W, withDirectives as G, withKeys as K, withModifiers as Je } from "vue";
18
- import { useDataSourceFetch as Ye } from "@templatical/core";
19
- import { SYNTAX_PRESETS as Xe, containsMergeTag as Ze, createBlock as Qe, createCustomBlock as $e, generateId as et, getLogicMergeTagKeyword as tt, isCustomBlock as nt, isLogicMergeTagValue as rt } from "@templatical/types";
20
- var it = v("circle", [["circle", {
6
+ import { t as Se } from "./chevron-down-DJLW2Q9Z.js";
7
+ import { t as Ce } from "./circle-alert-E2vYPs5r.js";
8
+ import { n as we, r as b, t as Te } from "./blockTypeIcons-BpPTqcok.js";
9
+ import { n as Ee, r as De, t as Oe } from "./refresh-cw-Bb4PEeW1.js";
10
+ import { t as ke } from "./image-up-X4xIq4ea.js";
11
+ import { t as Ae } from "./scan-line-7lZPfOdm.js";
12
+ import { t as je } from "./sparkles-KhBCGlqB.js";
13
+ import { _ as Me, c as Ne, d as x, f as S, g as Pe, h as Fe, i as Ie, l as Le, m as C, p as w, t as Re } from "./styleConstants-D4SOZGBV.js";
14
+ import { t as ze } from "./trash-2-OwjZ-guZ.js";
15
+ import { t as Be } from "./x-CGlq2XQe.js";
16
+ import { t as Ve } from "./useMergeTag-DVnlvPYJ.js";
17
+ import { Fragment as T, Transition as He, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createStaticVNode as Ue, createTextVNode as j, createVNode as M, defineComponent as N, inject as P, nextTick as We, normalizeClass as F, normalizeStyle as I, openBlock as L, reactive as Ge, ref as R, renderList as z, renderSlot as Ke, resolveDynamicComponent as B, toDisplayString as V, unref as H, vModelText as qe, vShow as U, watch as Je, withCtx as W, withDirectives as G, withKeys as K, withModifiers as Ye } from "vue";
18
+ import { useDataSourceFetch as Xe } from "@templatical/core";
19
+ import { SYNTAX_PRESETS as Ze, containsMergeTag as Qe, createBlock as $e, createCustomBlock as et, generateId as tt, getLogicMergeTagKeyword as nt, isCustomBlock as rt, isLogicMergeTagValue as it } from "@templatical/types";
20
+ var at = v("circle", [["circle", {
21
21
  cx: "12",
22
22
  cy: "12",
23
23
  r: "10",
24
24
  key: "1mglay"
25
- }]]), at = v("layout-template", [
25
+ }]]), ot = v("layout-template", [
26
26
  ["rect", {
27
27
  width: "18",
28
28
  height: "7",
@@ -47,7 +47,7 @@ var it = v("circle", [["circle", {
47
47
  rx: "1",
48
48
  key: "q5h2i8"
49
49
  }]
50
- ]), ot = v("lock-open", [["rect", {
50
+ ]), st = v("lock-open", [["rect", {
51
51
  width: "18",
52
52
  height: "11",
53
53
  x: "3",
@@ -58,7 +58,7 @@ var it = v("circle", [["circle", {
58
58
  }], ["path", {
59
59
  d: "M7 11V7a5 5 0 0 1 9.9-1",
60
60
  key: "1mm8w8"
61
- }]]), st = v("lock", [["rect", {
61
+ }]]), ct = v("lock", [["rect", {
62
62
  width: "18",
63
63
  height: "11",
64
64
  x: "3",
@@ -69,7 +69,7 @@ var it = v("circle", [["circle", {
69
69
  }], ["path", {
70
70
  d: "M7 11V7a5 5 0 0 1 10 0v4",
71
71
  key: "fwvmzm"
72
- }]]), ct = v("monitor", [
72
+ }]]), lt = v("monitor", [
73
73
  ["rect", {
74
74
  width: "20",
75
75
  height: "14",
@@ -92,10 +92,10 @@ var it = v("circle", [["circle", {
92
92
  y2: "21",
93
93
  key: "vw1qmm"
94
94
  }]
95
- ]), lt = v("moon", [["path", {
95
+ ]), ut = v("moon", [["path", {
96
96
  d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
97
97
  key: "kfwtm"
98
- }]]), ut = v("panel-top", [["rect", {
98
+ }]]), dt = v("panel-top", [["rect", {
99
99
  width: "18",
100
100
  height: "18",
101
101
  x: "3",
@@ -111,13 +111,13 @@ var it = v("circle", [["circle", {
111
111
  }], ["path", {
112
112
  d: "M12 5v14",
113
113
  key: "s699le"
114
- }]]), dt = v("rotate-ccw", [["path", {
114
+ }]]), ft = v("rotate-ccw", [["path", {
115
115
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
116
116
  key: "1357e3"
117
117
  }], ["path", {
118
118
  d: "M3 3v5h5",
119
119
  key: "1xhq8a"
120
- }]]), ft = v("settings", [["path", {
120
+ }]]), pt = v("settings", [["path", {
121
121
  d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
122
122
  key: "1i5ecw"
123
123
  }], ["circle", {
@@ -125,7 +125,7 @@ var it = v("circle", [["circle", {
125
125
  cy: "12",
126
126
  r: "3",
127
127
  key: "1v7zrd"
128
- }]]), pt = v("smartphone", [["rect", {
128
+ }]]), mt = v("smartphone", [["rect", {
129
129
  width: "14",
130
130
  height: "20",
131
131
  x: "5",
@@ -136,7 +136,7 @@ var it = v("circle", [["circle", {
136
136
  }], ["path", {
137
137
  d: "M12 18h.01",
138
138
  key: "mhygvu"
139
- }]]), mt = v("square-plus", [
139
+ }]]), ht = v("square-plus", [
140
140
  ["rect", {
141
141
  width: "18",
142
142
  height: "18",
@@ -153,14 +153,14 @@ var it = v("circle", [["circle", {
153
153
  d: "M12 8v8",
154
154
  key: "napkw2"
155
155
  }]
156
- ]), ht = v("square", [["rect", {
156
+ ]), gt = v("square", [["rect", {
157
157
  width: "18",
158
158
  height: "18",
159
159
  x: "3",
160
160
  y: "3",
161
161
  rx: "2",
162
162
  key: "afitv7"
163
- }]]), gt = v("sun", [
163
+ }]]), _t = v("sun", [
164
164
  ["circle", {
165
165
  cx: "12",
166
166
  cy: "12",
@@ -199,7 +199,7 @@ var it = v("circle", [["circle", {
199
199
  d: "m19.07 4.93-1.41 1.41",
200
200
  key: "1shlcs"
201
201
  }]
202
- ]), _t = v("tablet", [["rect", {
202
+ ]), vt = v("tablet", [["rect", {
203
203
  width: "16",
204
204
  height: "20",
205
205
  x: "4",
@@ -213,19 +213,19 @@ var it = v("circle", [["circle", {
213
213
  y1: "18",
214
214
  y2: "18",
215
215
  key: "1dp563"
216
- }]]), vt = /* @__PURE__ */ t(h(), 1), yt = { class: "tpl:relative" }, bt = {
216
+ }]]), yt = /* @__PURE__ */ t(h(), 1), bt = { class: "tpl:relative" }, xt = {
217
217
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
218
218
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
219
- }, xt = {
219
+ }, St = {
220
220
  key: 0,
221
221
  class: "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)]"
222
- }, St = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Ct = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, wt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Tt = {
222
+ }, Ct = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, wt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Tt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Et = {
223
223
  key: 0,
224
224
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
225
- }, Et = {
225
+ }, Dt = {
226
226
  key: 1,
227
227
  class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
228
- }, Dt = /* @__PURE__ */ y(/* @__PURE__ */ N({
228
+ }, Ot = /* @__PURE__ */ y(/* @__PURE__ */ N({
229
229
  __name: "Canvas",
230
230
  props: {
231
231
  viewport: {},
@@ -256,7 +256,7 @@ var it = v("circle", [["circle", {
256
256
  video: te,
257
257
  countdown: r,
258
258
  custom: ce
259
- }, a = e, p = t, { t: m } = _(), h = P(me), ne = P(ge), ae = P(ve, null), le = P(be, {}), ue = E(() => (le.plan?.hasFeature("ai_generation") ?? !1) && (le.ai?.isFeatureEnabled("chat") ?? !1)), de = E(() => (le.plan?.hasFeature("ai_generation") ?? !1) && (le.ai?.isFeatureEnabled("designToTemplate") ?? !1)), fe = E({
259
+ }, a = e, p = t, { t: m } = _(), h = xe(me, "Canvas"), ne = P(ge, null), ae = P(ve, null), le = P(be, {}), ue = E(() => (le.plan?.hasFeature("ai_generation") ?? !1) && (le.ai?.isFeatureEnabled("chat") ?? !1)), de = E(() => (le.plan?.hasFeature("ai_generation") ?? !1) && (le.ai?.isFeatureEnabled("designToTemplate") ?? !1)), fe = E({
260
260
  get: () => a.content.blocks,
261
261
  set: (e) => {
262
262
  h.setContent({
@@ -305,7 +305,7 @@ var it = v("circle", [["circle", {
305
305
  }]),
306
306
  style: I(he.value),
307
307
  onClick: _e
308
- }, [M(H(vt.default), {
308
+ }, [M(H(yt.default), {
309
309
  modelValue: fe.value,
310
310
  "onUpdate:modelValue": n[2] ||= (e) => fe.value = e,
311
311
  group: "blocks",
@@ -319,7 +319,7 @@ var it = v("circle", [["circle", {
319
319
  disabled: e.previewMode,
320
320
  class: "tpl-canvas-blocks"
321
321
  }, {
322
- item: W(({ element: t }) => [G(A("div", null, [A("div", yt, [g(t.id) ? (L(), k("div", {
322
+ item: W(({ element: t }) => [G(A("div", null, [A("div", bt, [g(t.id) ? (L(), k("div", {
323
323
  key: 0,
324
324
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
325
325
  style: I({
@@ -329,7 +329,7 @@ var it = v("circle", [["circle", {
329
329
  }, [A("span", {
330
330
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:text-white tpl:whitespace-nowrap",
331
331
  style: I({ backgroundColor: g(t.id).color })
332
- }, [A("span", bt, V(g(t.id).name.charAt(0)), 1), j(" " + V(g(t.id).name), 1)], 4)], 4)) : O("", !0), M(l, {
332
+ }, [A("span", xt, V(g(t.id).name.charAt(0)), 1), j(" " + V(g(t.id).name), 1)], 4)], 4)) : O("", !0), M(l, {
333
333
  block: t,
334
334
  "is-selected": !e.previewMode && e.selectedBlockId === t.id && !g(t.id),
335
335
  viewport: e.viewport,
@@ -355,30 +355,30 @@ var it = v("circle", [["circle", {
355
355
  "preview-mode",
356
356
  "onSelect"
357
357
  ])])], 512), [[U, !H(ne)?.isHidden(t.id)]])]),
358
- footer: W(() => [fe.value.length === 0 && !e.previewMode ? (L(), k("div", xt, [
359
- A("div", St, [M(H(mt), {
358
+ footer: W(() => [fe.value.length === 0 && !e.previewMode ? (L(), k("div", St, [
359
+ A("div", Ct, [M(H(ht), {
360
360
  size: 48,
361
361
  "stroke-width": 1
362
362
  })]),
363
- A("p", Ct, V(H(m).canvas.noBlocks), 1),
364
- A("p", wt, V(H(m).canvas.dragHint), 1),
365
- ue.value ? (L(), k("p", Tt, [
363
+ A("p", wt, V(H(m).canvas.noBlocks), 1),
364
+ A("p", Tt, V(H(m).canvas.dragHint), 1),
365
+ ue.value ? (L(), k("p", Et, [
366
366
  j(V(H(m).canvas.aiHintChat) + " ", 1),
367
367
  A("button", {
368
368
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
369
369
  onClick: n[0] ||= (e) => p("open-ai-chat")
370
- }, [M(H(Ae), {
370
+ }, [M(H(je), {
371
371
  size: 14,
372
372
  "stroke-width": 2
373
373
  }), j(" " + V(H(m).aiMenu.aiAssistant), 1)]),
374
374
  j(" " + V(H(m).canvas.aiHintChatSuffix), 1)
375
375
  ])) : O("", !0),
376
- de.value ? (L(), k("p", Et, [
376
+ de.value ? (L(), k("p", Dt, [
377
377
  j(V(H(m).canvas.aiHintDesign) + " ", 1),
378
378
  A("button", {
379
379
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
380
380
  onClick: n[1] ||= (e) => p("open-design-reference")
381
- }, [M(H(Oe), {
381
+ }, [M(H(ke), {
382
382
  size: 14,
383
383
  "stroke-width": 2
384
384
  }), j(" " + V(H(m).aiMenu.designToTemplate), 1)]),
@@ -388,27 +388,27 @@ var it = v("circle", [["circle", {
388
388
  _: 1
389
389
  }, 8, ["modelValue", "disabled"])], 6)], 4));
390
390
  }
391
- }), [["__scopeId", "data-v-21b7d2a8"]]);
391
+ }), [["__scopeId", "data-v-d5f65819"]]);
392
392
  //#endregion
393
393
  //#region src/utils/blockTypeLabels.ts
394
- function Ot(e, t) {
394
+ function kt(e, t) {
395
395
  return t.blocks[e] ?? e;
396
396
  }
397
397
  //#endregion
398
398
  //#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
399
- var kt = ["aria-expanded", "aria-label"], At = {
399
+ var At = ["aria-expanded", "aria-label"], jt = {
400
400
  key: 0,
401
401
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
402
- }, jt = ["aria-label"], Mt = {
402
+ }, Mt = ["aria-label"], Nt = {
403
403
  key: 0,
404
404
  class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
405
- }, Nt = {
405
+ }, Pt = {
406
406
  key: 1,
407
407
  class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]"
408
- }, Pt = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, Ft = {
408
+ }, Ft = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, It = {
409
409
  key: 0,
410
410
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
411
- }, It = /* @__PURE__ */ N({
411
+ }, Lt = /* @__PURE__ */ N({
412
412
  __name: "Sidebar",
413
413
  setup(e) {
414
414
  let { t } = _(), n = P(g, []), r = P(fe, void 0), i = P(be, {}), o = E(() => (i.savedModules?.moduleCount.value ?? 0) > 0), s = R(!1), c = [
@@ -427,11 +427,11 @@ var kt = ["aria-expanded", "aria-label"], At = {
427
427
  ], l = E(() => {
428
428
  let e = c.map((e) => ({
429
429
  type: e,
430
- label: Ot(e, t)
430
+ label: kt(e, t)
431
431
  }));
432
432
  return i.plan && e.splice(-1, 0, {
433
433
  type: "countdown",
434
- label: Ot("countdown", t)
434
+ label: kt("countdown", t)
435
435
  }), e;
436
436
  }), u = E(() => n.map((e) => ({
437
437
  type: `custom:${e.type}`,
@@ -442,9 +442,9 @@ var kt = ["aria-expanded", "aria-label"], At = {
442
442
  function f(e) {
443
443
  if (e.isCustom) {
444
444
  let t = e.type.replace("custom:", ""), r = n.find((e) => e.type === t);
445
- if (r) return $e(r);
445
+ if (r) return et(r);
446
446
  }
447
- return Qe(e.type, r);
447
+ return $e(e.type, r);
448
448
  }
449
449
  return (e, n) => (L(), k("aside", {
450
450
  "aria-expanded": s.value,
@@ -461,21 +461,21 @@ var kt = ["aria-expanded", "aria-label"], At = {
461
461
  onMouseleave: n[2] ||= (e) => s.value = !1,
462
462
  onFocusin: n[3] ||= (e) => s.value = !0,
463
463
  onFocusout: n[4] ||= (e) => s.value = !1
464
- }, [o.value ? (L(), k("div", At, [A("button", {
464
+ }, [o.value ? (L(), k("div", jt, [A("button", {
465
465
  type: "button",
466
466
  "aria-label": H(t).sidebarNav.browseModules,
467
467
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
468
468
  style: I({ justifyContent: s.value ? "flex-start" : "center" }),
469
469
  onClick: n[0] ||= (e) => H(i).savedModules?.openBrowser()
470
470
  }, [
471
- M(H(Ce), {
471
+ M(H(we), {
472
472
  size: 20,
473
473
  "stroke-width": 1.5,
474
474
  class: "tpl:shrink-0"
475
475
  }),
476
- s.value ? (L(), k("span", Mt, V(H(t).modules.title), 1)) : O("", !0),
477
- s.value ? (L(), k("span", Nt, V(H(i).savedModules?.moduleCount.value ?? 0), 1)) : O("", !0)
478
- ], 12, jt)])) : O("", !0), M(H(vt.default), {
476
+ s.value ? (L(), k("span", Nt, V(H(t).modules.title), 1)) : O("", !0),
477
+ s.value ? (L(), k("span", Pt, V(H(i).savedModules?.moduleCount.value ?? 0), 1)) : O("", !0)
478
+ ], 12, Mt)])) : O("", !0), M(H(yt.default), {
479
479
  list: d.value,
480
480
  group: {
481
481
  name: "blocks",
@@ -492,7 +492,7 @@ var kt = ["aria-expanded", "aria-label"], At = {
492
492
  item: W(({ element: e }) => [A("div", {
493
493
  class: "tpl:flex tpl:h-10 tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
494
494
  style: I({ justifyContent: s.value ? "flex-start" : "center" })
495
- }, [A("div", Pt, [H(we)[e.type] ? (L(), D(B(H(we)[e.type]), {
495
+ }, [A("div", Ft, [H(Te)[e.type] ? (L(), D(B(H(Te)[e.type]), {
496
496
  key: 0,
497
497
  size: 20,
498
498
  "stroke-width": 1.5
@@ -500,13 +500,13 @@ var kt = ["aria-expanded", "aria-label"], At = {
500
500
  key: 1,
501
501
  icon: e.icon,
502
502
  size: 20
503
- }, null, 8, ["icon"])) : O("", !0)]), s.value ? (L(), k("span", Ft, V(e.label), 1)) : O("", !0)], 4)]),
503
+ }, null, 8, ["icon"])) : O("", !0)]), s.value ? (L(), k("span", It, V(e.label), 1)) : O("", !0)], 4)]),
504
504
  _: 1
505
- }, 8, ["list"])], 44, kt));
505
+ }, 8, ["list"])], 44, At));
506
506
  }
507
- }), Lt = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, J = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
507
+ }), Rt = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, J = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
508
508
  360 / (Math.PI * 2);
509
- var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
509
+ var zt = (e) => qt(Bt(e)), Bt = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
510
510
  r: parseInt(e[0] + e[0], 16),
511
511
  g: parseInt(e[1] + e[1], 16),
512
512
  b: parseInt(e[2] + e[2], 16),
@@ -516,7 +516,7 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
516
516
  g: parseInt(e.substring(2, 4), 16),
517
517
  b: parseInt(e.substring(4, 6), 16),
518
518
  a: e.length === 8 ? J(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
519
- }), Bt = (e) => Gt(Ut(e)), Vt = ({ h: e, s: t, v: n, a: r }) => {
519
+ }), Vt = (e) => Kt(Wt(e)), Ht = ({ h: e, s: t, v: n, a: r }) => {
520
520
  let i = (200 - t) * n / 100;
521
521
  return {
522
522
  h: J(e),
@@ -524,10 +524,10 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
524
524
  l: J(i / 2),
525
525
  a: J(r, 2)
526
526
  };
527
- }, Ht = (e) => {
528
- let { h: t, s: n, l: r } = Vt(e);
527
+ }, Ut = (e) => {
528
+ let { h: t, s: n, l: r } = Ht(e);
529
529
  return `hsl(${t}, ${n}%, ${r}%)`;
530
- }, Ut = ({ h: e, s: t, v: n, a: r }) => {
530
+ }, Wt = ({ h: e, s: t, v: n, a: r }) => {
531
531
  e = e / 360 * 6, t /= 100, n /= 100;
532
532
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
533
533
  return {
@@ -557,13 +557,13 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
557
557
  ][c] * 255),
558
558
  a: J(r, 2)
559
559
  };
560
- }, Wt = (e) => {
560
+ }, Gt = (e) => {
561
561
  let t = e.toString(16);
562
562
  return t.length < 2 ? "0" + t : t;
563
- }, Gt = ({ r: e, g: t, b: n, a: r }) => {
564
- let i = r < 1 ? Wt(J(r * 255)) : "";
565
- return "#" + Wt(e) + Wt(t) + Wt(n) + i;
566
563
  }, Kt = ({ r: e, g: t, b: n, a: r }) => {
564
+ let i = r < 1 ? Gt(J(r * 255)) : "";
565
+ return "#" + Gt(e) + Gt(t) + Gt(n) + i;
566
+ }, qt = ({ r: e, g: t, b: n, a: r }) => {
567
567
  let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
568
568
  return {
569
569
  h: J(60 * (o < 0 ? o + 6 : o)),
@@ -571,58 +571,58 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
571
571
  v: J(i / 255 * 100),
572
572
  a: r
573
573
  };
574
- }, qt = (e, t) => {
574
+ }, Jt = (e, t) => {
575
575
  if (e === t) return !0;
576
576
  for (let n in e) if (e[n] !== t[n]) return !1;
577
577
  return !0;
578
- }, Jt = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : qt(zt(e), zt(t)), Yt = {}, Xt = (e) => {
579
- let t = Yt[e];
580
- return t || (t = document.createElement("template"), t.innerHTML = e, Yt[e] = t), t;
581
- }, Zt = (e, t, n) => {
578
+ }, Yt = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : Jt(Bt(e), Bt(t)), Xt = {}, Zt = (e) => {
579
+ let t = Xt[e];
580
+ return t || (t = document.createElement("template"), t.innerHTML = e, Xt[e] = t), t;
581
+ }, Qt = (e, t, n) => {
582
582
  e.dispatchEvent(new CustomEvent(t, {
583
583
  bubbles: !0,
584
584
  detail: n
585
585
  }));
586
- }, Qt = !1, $t = (e) => "touches" in e, en = (e) => Qt && !$t(e) ? !1 : (Qt ||= $t(e), !0), tn = (e, t) => {
587
- let n = $t(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
588
- Zt(e.el, "move", e.getMove({
589
- x: Lt((n.pageX - (r.left + window.pageXOffset)) / r.width),
590
- y: Lt((n.pageY - (r.top + window.pageYOffset)) / r.height)
586
+ }, $t = !1, en = (e) => "touches" in e, tn = (e) => $t && !en(e) ? !1 : ($t ||= en(e), !0), nn = (e, t) => {
587
+ let n = en(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
588
+ Qt(e.el, "move", e.getMove({
589
+ x: Rt((n.pageX - (r.left + window.pageXOffset)) / r.width),
590
+ y: Rt((n.pageY - (r.top + window.pageYOffset)) / r.height)
591
591
  }));
592
- }, nn = (e, t) => {
592
+ }, rn = (e, t) => {
593
593
  let n = t.keyCode;
594
- n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), Zt(e.el, "move", e.getMove({
594
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), Qt(e.el, "move", e.getMove({
595
595
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
596
596
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
597
597
  }, !0)));
598
- }, rn = class {
598
+ }, an = class {
599
599
  constructor(e, t, n, r) {
600
- let i = Xt(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
600
+ let i = Zt(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
601
601
  e.appendChild(i.content.cloneNode(!0));
602
602
  let a = e.querySelector(`[part=${t}]`);
603
603
  a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
604
604
  }
605
605
  set dragging(e) {
606
606
  let t = e ? document.addEventListener : document.removeEventListener;
607
- t(Qt ? "touchmove" : "mousemove", this), t(Qt ? "touchend" : "mouseup", this);
607
+ t($t ? "touchmove" : "mousemove", this), t($t ? "touchend" : "mouseup", this);
608
608
  }
609
609
  handleEvent(e) {
610
610
  switch (e.type) {
611
611
  case "mousedown":
612
612
  case "touchstart":
613
- if (e.preventDefault(), !en(e) || !Qt && e.button != 0) return;
614
- this.el.focus(), tn(this, e), this.dragging = !0;
613
+ if (e.preventDefault(), !tn(e) || !$t && e.button != 0) return;
614
+ this.el.focus(), nn(this, e), this.dragging = !0;
615
615
  break;
616
616
  case "mousemove":
617
617
  case "touchmove":
618
- e.preventDefault(), tn(this, e);
618
+ e.preventDefault(), nn(this, e);
619
619
  break;
620
620
  case "mouseup":
621
621
  case "touchend":
622
622
  this.dragging = !1;
623
623
  break;
624
624
  case "keydown":
625
- nn(this, e);
625
+ rn(this, e);
626
626
  break;
627
627
  }
628
628
  }
@@ -631,14 +631,14 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
631
631
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
632
632
  });
633
633
  }
634
- }, an = class extends rn {
634
+ }, on = class extends an {
635
635
  constructor(e) {
636
636
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
637
637
  }
638
638
  update({ h: e }) {
639
639
  this.h = e, this.style([{
640
640
  left: `${e / 360 * 100}%`,
641
- color: Ht({
641
+ color: Ut({
642
642
  h: e,
643
643
  s: 100,
644
644
  v: 100,
@@ -647,9 +647,9 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
647
647
  }]), this.el.setAttribute("aria-valuenow", `${J(e)}`);
648
648
  }
649
649
  getMove(e, t) {
650
- return { h: t ? Lt(this.h + e.x * 360, 0, 360) : 360 * e.x };
650
+ return { h: t ? Rt(this.h + e.x * 360, 0, 360) : 360 * e.x };
651
651
  }
652
- }, on = class extends rn {
652
+ }, sn = class extends an {
653
653
  constructor(e) {
654
654
  super(e, "saturation", "aria-label=\"Color\"", !0);
655
655
  }
@@ -657,8 +657,8 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
657
657
  this.hsva = e, this.style([{
658
658
  top: `${100 - e.v}%`,
659
659
  left: `${e.s}%`,
660
- color: Ht(e)
661
- }, { "background-color": Ht({
660
+ color: Ut(e)
661
+ }, { "background-color": Ut({
662
662
  h: e.h,
663
663
  s: 100,
664
664
  v: 100,
@@ -667,37 +667,37 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
667
667
  }
668
668
  getMove(e, t) {
669
669
  return {
670
- s: t ? Lt(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
671
- v: t ? Lt(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
670
+ s: t ? Rt(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
671
+ v: t ? Rt(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
672
672
  };
673
673
  }
674
- }, sn = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", cn = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", ln = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", un = Symbol("same"), dn = Symbol("color"), fn = Symbol("hsva"), pn = Symbol("update"), mn = Symbol("parts"), hn = Symbol("css"), gn = Symbol("sliders"), _n = class extends HTMLElement {
674
+ }, cn = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", ln = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", un = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", dn = Symbol("same"), fn = Symbol("color"), pn = Symbol("hsva"), mn = Symbol("update"), hn = Symbol("parts"), gn = Symbol("css"), _n = Symbol("sliders"), vn = class extends HTMLElement {
675
675
  static get observedAttributes() {
676
676
  return ["color"];
677
677
  }
678
- get [hn]() {
678
+ get [gn]() {
679
679
  return [
680
- sn,
681
680
  cn,
682
- ln
681
+ ln,
682
+ un
683
683
  ];
684
684
  }
685
- get [gn]() {
686
- return [on, an];
685
+ get [_n]() {
686
+ return [sn, on];
687
687
  }
688
688
  get color() {
689
- return this[dn];
689
+ return this[fn];
690
690
  }
691
691
  set color(e) {
692
- if (!this[un](e)) {
692
+ if (!this[dn](e)) {
693
693
  let t = this.colorModel.toHsva(e);
694
- this[pn](t), this[dn] = e;
694
+ this[mn](t), this[fn] = e;
695
695
  }
696
696
  }
697
697
  constructor() {
698
698
  super();
699
- let e = Xt(`<style>${this[hn].join("")}</style>`), t = this.attachShadow({ mode: "open" });
700
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[mn] = this[gn].map((e) => new e(t));
699
+ let e = Zt(`<style>${this[gn].join("")}</style>`), t = this.attachShadow({ mode: "open" });
700
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[hn] = this[_n].map((e) => new e(t));
701
701
  }
702
702
  connectedCallback() {
703
703
  if (this.hasOwnProperty("color")) {
@@ -707,56 +707,56 @@ var Rt = (e) => Kt(zt(e)), zt = (e) => (e[0] === "#" && (e = e.substring(1)), e.
707
707
  }
708
708
  attributeChangedCallback(e, t, n) {
709
709
  let r = this.colorModel.fromAttr(n);
710
- this[un](r) || (this.color = r);
710
+ this[dn](r) || (this.color = r);
711
711
  }
712
712
  handleEvent(e) {
713
- let t = this[fn], n = {
713
+ let t = this[pn], n = {
714
714
  ...t,
715
715
  ...e.detail
716
716
  };
717
- this[pn](n);
717
+ this[mn](n);
718
718
  let r;
719
- !qt(n, t) && !this[un](r = this.colorModel.fromHsva(n)) && (this[dn] = r, Zt(this, "color-changed", { value: r }));
719
+ !Jt(n, t) && !this[dn](r = this.colorModel.fromHsva(n)) && (this[fn] = r, Qt(this, "color-changed", { value: r }));
720
720
  }
721
- [un](e) {
721
+ [dn](e) {
722
722
  return this.color && this.colorModel.equal(e, this.color);
723
723
  }
724
- [pn](e) {
725
- this[fn] = e, this[mn].forEach((t) => t.update(e));
724
+ [mn](e) {
725
+ this[pn] = e, this[hn].forEach((t) => t.update(e));
726
726
  }
727
- }, vn = {
727
+ }, yn = {
728
728
  defaultColor: "#000",
729
- toHsva: Rt,
730
- fromHsva: ({ h: e, s: t, v: n }) => Bt({
729
+ toHsva: zt,
730
+ fromHsva: ({ h: e, s: t, v: n }) => Vt({
731
731
  h: e,
732
732
  s: t,
733
733
  v: n,
734
734
  a: 1
735
735
  }),
736
- equal: Jt,
736
+ equal: Yt,
737
737
  fromAttr: (e) => e
738
- }, yn = class extends _n {
738
+ }, bn = class extends vn {
739
739
  get colorModel() {
740
- return vn;
740
+ return yn;
741
741
  }
742
- }, bn = class extends yn {};
743
- customElements.define("hex-color-picker", bn);
742
+ }, xn = class extends bn {};
743
+ customElements.define("hex-color-picker", xn);
744
744
  //#endregion
745
745
  //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
746
- var xn = [
746
+ var Sn = [
747
747
  "disabled",
748
748
  "aria-label",
749
749
  "aria-expanded"
750
- ], Sn = [
750
+ ], Cn = [
751
751
  "value",
752
752
  "placeholder",
753
753
  "disabled",
754
754
  "aria-label"
755
- ], Cn = ["color", "aria-label"], Y = /* @__PURE__ */ N({
755
+ ], wn = ["color", "aria-label"], Y = /* @__PURE__ */ N({
756
756
  __name: "ColorPicker",
757
757
  props: {
758
758
  modelValue: {},
759
- placeholder: { default: Ne },
759
+ placeholder: { default: Ie },
760
760
  size: { default: "default" },
761
761
  swatchOnly: {
762
762
  type: Boolean,
@@ -801,18 +801,18 @@ var xn = [
801
801
  }, [A("span", {
802
802
  class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
803
803
  style: I({ backgroundColor: c.value })
804
- }, null, 4)], 10, xn),
804
+ }, null, 4)], 10, Sn),
805
805
  e.swatchOnly ? O("", !0) : (L(), k("input", {
806
806
  key: 0,
807
807
  type: "text",
808
- class: F(H(Fe)),
808
+ class: F(H(Le)),
809
809
  value: e.modelValue,
810
810
  placeholder: e.placeholder,
811
811
  disabled: e.disabled,
812
812
  "aria-label": H(i).colorPicker.hexValue,
813
813
  onInput: u
814
- }, null, 42, Sn)),
815
- M(Ve, {
814
+ }, null, 42, Cn)),
815
+ M(He, {
816
816
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
817
817
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
818
818
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -830,7 +830,7 @@ var xn = [
830
830
  "aria-label": H(i).colorPicker.pickColor,
831
831
  onColorChanged: l,
832
832
  onKeydown: n[1] ||= K((e) => a.value = !1, ["escape"])
833
- }, null, 40, Cn)], 512)) : O("", !0)]),
833
+ }, null, 40, wn)], 512)) : O("", !0)]),
834
834
  _: 1
835
835
  })
836
836
  ], 2));
@@ -838,8 +838,8 @@ var xn = [
838
838
  });
839
839
  //#endregion
840
840
  //#region src/composables/useMergeTagField.ts
841
- function wn(e) {
842
- let { modelValue: t, emit: n, elementRef: r } = e, { isEnabled: i, isRequesting: a, isMergeTagValue: o, getMergeTagLabel: s, requestMergeTag: c, syntax: l } = Be(), u = R(!1), d = !1, f = E(() => {
841
+ function Tn(e) {
842
+ let { modelValue: t, emit: n, elementRef: r } = e, { isEnabled: i, isRequesting: a, isMergeTagValue: o, getMergeTagLabel: s, requestMergeTag: c, syntax: l } = Ve(), u = R(!1), d = !1, f = E(() => {
843
843
  let e = t();
844
844
  if (!e) return [];
845
845
  let n = [], r = `(${l.value.source}|${l.logic.source})`, i = new RegExp(r, "g"), a = 0, c;
@@ -853,10 +853,10 @@ function wn(e) {
853
853
  type: "mergeTag",
854
854
  value: t,
855
855
  label: s(t)
856
- }) : rt(t, l) ? n.push({
856
+ }) : it(t, l) ? n.push({
857
857
  type: "logicMergeTag",
858
858
  value: t,
859
- keyword: tt(t, l)
859
+ keyword: nt(t, l)
860
860
  }) : n.push({
861
861
  type: "text",
862
862
  value: t
@@ -868,7 +868,7 @@ function wn(e) {
868
868
  }), n;
869
869
  }), p = E(() => f.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
870
870
  function m() {
871
- u.value = !0, Ue(() => {
871
+ u.value = !0, We(() => {
872
872
  r.value?.focus();
873
873
  let e = t()?.length || 0;
874
874
  r.value?.setSelectionRange(e, e);
@@ -889,7 +889,7 @@ function wn(e) {
889
889
  let i = await c();
890
890
  if (d = !1, i) {
891
891
  let a = t().slice(0, e), o = t().slice(e);
892
- n(a + i.value + o), u.value = !0, Ue(() => {
892
+ n(a + i.value + o), u.value = !0, We(() => {
893
893
  let t = e + i.value.length;
894
894
  r.value?.focus(), r.value?.setSelectionRange(t, t);
895
895
  });
@@ -910,22 +910,22 @@ function wn(e) {
910
910
  }
911
911
  //#endregion
912
912
  //#region src/components/MergeTagTextarea.vue?vue&type=script&setup=true&lang.ts
913
- var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-tooltip"], kn = {
913
+ var En = { key: 0 }, Dn = ["aria-label"], On = ["data-tooltip"], kn = ["data-tooltip"], An = {
914
914
  key: 2,
915
915
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
916
- }, An = ["aria-label", "title"], jn = [
916
+ }, jn = ["aria-label", "title"], Mn = [
917
917
  "aria-label",
918
918
  "title",
919
919
  "disabled"
920
- ], Mn = { key: 1 }, Nn = [
920
+ ], Nn = { key: 1 }, Pn = [
921
921
  "value",
922
922
  "placeholder",
923
923
  "rows"
924
- ], Pn = [
924
+ ], Fn = [
925
925
  "aria-label",
926
926
  "title",
927
927
  "disabled"
928
- ], Fn = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", In = "tpl:flex tpl:w-full tpl:min-h-[5rem] tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", Ln = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Rn = /* @__PURE__ */ N({
928
+ ], In = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Ln = "tpl:flex tpl:w-full tpl:min-h-[5rem] tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", Rn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", zn = /* @__PURE__ */ N({
929
929
  __name: "MergeTagTextarea",
930
930
  props: {
931
931
  modelValue: {},
@@ -934,18 +934,18 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
934
934
  },
935
935
  emits: ["update:modelValue"],
936
936
  setup(e, { emit: t }) {
937
- let n = e, r = t, { t: i } = _(), a = R(null), { segments: o, hasMergeTags: s, mergeTagEnabled: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: f, handleInput: p, clearValue: m, insertMergeTag: h } = wn({
937
+ let n = e, r = t, { t: i } = _(), a = R(null), { segments: o, hasMergeTags: s, mergeTagEnabled: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: f, handleInput: p, clearValue: m, insertMergeTag: h } = Tn({
938
938
  modelValue: () => n.modelValue,
939
939
  emit: (e) => r("update:modelValue", e),
940
940
  elementRef: a
941
941
  });
942
- return (t, n) => H(s) && !H(u) ? (L(), k("div", Tn, [A("div", {
942
+ return (t, n) => H(s) && !H(u) ? (L(), k("div", En, [A("div", {
943
943
  role: "button",
944
944
  tabindex: "0",
945
945
  "aria-label": H(i).mergeTag.clickToEdit,
946
- class: F(In),
946
+ class: F(Ln),
947
947
  onClick: n[1] ||= (...e) => H(d) && H(d)(...e),
948
- onKeydown: [n[2] ||= K((...e) => H(d) && H(d)(...e), ["enter"]), n[3] ||= K(Je((...e) => H(d) && H(d)(...e), ["prevent"]), ["space"])]
948
+ onKeydown: [n[2] ||= K((...e) => H(d) && H(d)(...e), ["enter"]), n[3] ||= K(Ye((...e) => H(d) && H(d)(...e), ["prevent"]), ["space"])]
949
949
  }, [(L(!0), k(T, null, z(H(o), (e, t) => (L(), k(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" ? (L(), k("span", {
950
950
  key: 0,
951
951
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium",
@@ -954,7 +954,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
954
954
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
955
955
  color: "var(--tpl-primary)"
956
956
  }
957
- }, V(e.label), 9, Dn)) : e.type === "logicMergeTag" ? (L(), k("span", {
957
+ }, V(e.label), 9, On)) : e.type === "logicMergeTag" ? (L(), k("span", {
958
958
  key: 1,
959
959
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
960
960
  "data-tooltip": e.value,
@@ -963,55 +963,55 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
963
963
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
964
964
  color: "var(--tpl-primary)"
965
965
  }
966
- }, V(e.keyword), 9, On)) : (L(), k("span", kn, V(e.value), 1))], 64))), 128)), A("button", {
966
+ }, V(e.keyword), 9, kn)) : (L(), k("span", An, V(e.value), 1))], 64))), 128)), A("button", {
967
967
  type: "button",
968
968
  class: "tpl:ml-auto tpl:flex tpl:size-4 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
969
969
  "aria-label": H(i).mergeTag.remove,
970
970
  title: H(i).mergeTag.remove,
971
- onClick: n[0] ||= Je((...e) => H(m) && H(m)(...e), ["stop"])
972
- }, [M(H(ze), {
971
+ onClick: n[0] ||= Ye((...e) => H(m) && H(m)(...e), ["stop"])
972
+ }, [M(H(Be), {
973
973
  size: 10,
974
974
  "stroke-width": 3
975
- })], 8, An)], 40, En), H(c) ? (L(), k("button", {
975
+ })], 8, jn)], 40, Dn), H(c) ? (L(), k("button", {
976
976
  key: 0,
977
977
  type: "button",
978
- class: F([Ln, "tpl:mt-1.5"]),
978
+ class: F([Rn, "tpl:mt-1.5"]),
979
979
  "aria-label": H(i).mergeTag.insert,
980
980
  title: H(i).mergeTag.insert,
981
981
  disabled: H(l),
982
982
  onClick: n[4] ||= (...e) => H(h) && H(h)(...e)
983
- }, [M(H(ke), {
983
+ }, [M(H(Ae), {
984
984
  size: 12,
985
985
  "stroke-width": 2
986
- }), j(" " + V(H(i).mergeTag.insert), 1)], 8, jn)) : O("", !0)])) : (L(), k("div", Mn, [A("textarea", {
986
+ }), j(" " + V(H(i).mergeTag.insert), 1)], 8, Mn)) : O("", !0)])) : (L(), k("div", Nn, [A("textarea", {
987
987
  ref_key: "textareaRef",
988
988
  ref: a,
989
- class: F(Fn),
989
+ class: F(In),
990
990
  value: e.modelValue,
991
991
  placeholder: e.placeholder,
992
992
  rows: e.rows,
993
993
  onInput: n[5] ||= (...e) => H(p) && H(p)(...e),
994
994
  onBlur: n[6] ||= (...e) => H(f) && H(f)(...e),
995
995
  onKeydown: n[7] ||= K((...e) => H(f) && H(f)(...e), ["escape"])
996
- }, null, 40, Nn), H(c) ? (L(), k("button", {
996
+ }, null, 40, Pn), H(c) ? (L(), k("button", {
997
997
  key: 0,
998
998
  type: "button",
999
- class: F([Ln, "tpl:mt-1.5"]),
999
+ class: F([Rn, "tpl:mt-1.5"]),
1000
1000
  "aria-label": H(i).mergeTag.insert,
1001
1001
  title: H(i).mergeTag.insert,
1002
1002
  disabled: H(l),
1003
1003
  onClick: n[8] ||= (...e) => H(h) && H(h)(...e)
1004
- }, [M(H(ke), {
1004
+ }, [M(H(Ae), {
1005
1005
  size: 12,
1006
1006
  "stroke-width": 2
1007
- }), j(" " + V(H(i).mergeTag.insert), 1)], 8, Pn)) : O("", !0)]));
1007
+ }), j(" " + V(H(i).mergeTag.insert), 1)], 8, Fn)) : O("", !0)]));
1008
1008
  }
1009
- }), zn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Bn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Vn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Hn = { class: "tpl:mb-3.5" }, Un = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Wn = ["onClick"], Gn = { class: "tpl:flex tpl:items-stretch" }, Kn = ["value"], qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jn = { class: "tpl:mb-3.5" }, Yn = ["value"], Xn = ["value"], Zn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Qn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, $n = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, er = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, tr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, nr = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, rr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ir = { class: "tpl:mb-1 tpl:last:mb-0" }, ar = { class: "tpl:mb-1 tpl:last:mb-0" }, or = { class: "tpl:mb-1 tpl:last:mb-0" }, sr = 150, cr = /* @__PURE__ */ N({
1009
+ }), Bn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Vn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Hn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Un = { class: "tpl:mb-3.5" }, Wn = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Gn = ["onClick"], Kn = { class: "tpl:flex tpl:items-stretch" }, qn = ["value"], Jn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Yn = { class: "tpl:mb-3.5" }, Xn = ["value"], Zn = ["value"], Qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $n = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, er = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, tr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, nr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, rr = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, ir = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ar = { class: "tpl:mb-1 tpl:last:mb-0" }, or = { class: "tpl:mb-1 tpl:last:mb-0" }, sr = { class: "tpl:mb-1 tpl:last:mb-0" }, cr = 150, lr = /* @__PURE__ */ N({
1010
1010
  __name: "TemplateSettings",
1011
1011
  props: { settings: {} },
1012
1012
  emits: ["update"],
1013
1013
  setup(e, { emit: t }) {
1014
- let n = e, r = t, { t: i } = _(), a = P(ye), o = E(() => a.fonts.value), s = E(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), c = [
1014
+ let n = e, r = t, { t: i } = _(), a = xe(ye, "TemplateSettings"), o = E(() => a.fonts.value), s = E(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), c = [
1015
1015
  {
1016
1016
  value: 480,
1017
1017
  label: "480px"
@@ -1029,14 +1029,14 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1029
1029
  label: "800px"
1030
1030
  }
1031
1031
  ];
1032
- return (t, n) => (L(), k("aside", zn, [A("div", Bn, [
1033
- A("div", { class: F(H(je)) }, [
1034
- A("div", Vn, [M(H(ht), {
1032
+ return (t, n) => (L(), k("aside", Bn, [A("div", Vn, [
1033
+ A("div", { class: F(H(Ne)) }, [
1034
+ A("div", Hn, [M(H(gt), {
1035
1035
  class: "tpl:text-[var(--tpl-text-muted)]",
1036
1036
  size: 14,
1037
1037
  "stroke-width": 2
1038
1038
  }), A("span", null, V(H(i).templateSettings.layout), 1)]),
1039
- A("div", Hn, [A("label", { class: F(H(S)) }, V(H(i).templateSettings.widthPreset), 3), A("div", Un, [(L(), k(T, null, z(c, (t) => A("button", {
1039
+ A("div", Un, [A("label", { class: F(H(C)) }, V(H(i).templateSettings.widthPreset), 3), A("div", Wn, [(L(), k(T, null, z(c, (t) => A("button", {
1040
1040
  key: t.value,
1041
1041
  class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
1042
1042
  style: I({
@@ -1045,72 +1045,72 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1045
1045
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
1046
1046
  }),
1047
1047
  onClick: (e) => r("update", { width: t.value })
1048
- }, V(t.label), 13, Wn)), 64))])]),
1049
- A("div", null, [A("label", { class: F(H(S)) }, V(H(i).templateSettings.customWidth), 3), A("div", Gn, [A("input", {
1048
+ }, V(t.label), 13, Gn)), 64))])]),
1049
+ A("div", null, [A("label", { class: F(H(C)) }, V(H(i).templateSettings.customWidth), 3), A("div", Kn, [A("input", {
1050
1050
  type: "number",
1051
- class: F(H(C)),
1051
+ class: F(H(S)),
1052
1052
  value: e.settings.width,
1053
1053
  min: "300",
1054
1054
  max: "900",
1055
1055
  onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
1056
- }, null, 42, Kn), A("span", { class: F(H(w)) }, "px", 2)])])
1056
+ }, null, 42, qn), A("span", { class: F(H(w)) }, "px", 2)])])
1057
1057
  ], 2),
1058
- A("div", { class: F(H(je)) }, [
1059
- A("div", qn, [M(H(it), {
1058
+ A("div", { class: F(H(Ne)) }, [
1059
+ A("div", Jn, [M(H(at), {
1060
1060
  class: "tpl:text-[var(--tpl-text-muted)]",
1061
1061
  size: 14,
1062
1062
  "stroke-width": 2
1063
1063
  }), A("span", null, V(H(i).templateSettings.appearance), 1)]),
1064
- A("div", Jn, [A("label", { class: F(H(S)) }, V(H(i).templateSettings.backgroundColor), 3), M(Y, {
1064
+ A("div", Yn, [A("label", { class: F(H(C)) }, V(H(i).templateSettings.backgroundColor), 3), M(Y, {
1065
1065
  "model-value": e.settings.backgroundColor,
1066
- placeholder: H(Le),
1066
+ placeholder: H(Re),
1067
1067
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
1068
1068
  }, null, 8, ["model-value", "placeholder"])]),
1069
- A("div", null, [A("label", { class: F(H(S)) }, V(H(i).templateSettings.fontFamily), 3), A("select", {
1069
+ A("div", null, [A("label", { class: F(H(C)) }, V(H(i).templateSettings.fontFamily), 3), A("select", {
1070
1070
  class: F(H(x)),
1071
1071
  value: s.value,
1072
1072
  onChange: n[2] ||= (e) => r("update", { fontFamily: e.target.value })
1073
1073
  }, [(L(!0), k(T, null, z(o.value, (e) => (L(), k("option", {
1074
1074
  key: e.value,
1075
1075
  value: e.value
1076
- }, V(e.label), 9, Xn))), 128))], 42, Yn)])
1076
+ }, V(e.label), 9, Zn))), 128))], 42, Xn)])
1077
1077
  ], 2),
1078
- A("div", { class: F(H(je)) }, [A("div", Zn, [M(H(Ee), {
1078
+ A("div", { class: F(H(Ne)) }, [A("div", Qn, [M(H(De), {
1079
1079
  class: "tpl:text-[var(--tpl-text-muted)]",
1080
1080
  size: 14,
1081
1081
  "stroke-width": 2
1082
- }), A("span", null, V(H(i).templateSettings.preheaderText), 1)]), A("div", null, [M(Rn, {
1082
+ }), A("span", null, V(H(i).templateSettings.preheaderText), 1)]), A("div", null, [M(zn, {
1083
1083
  "model-value": e.settings.preheaderText ?? "",
1084
1084
  placeholder: H(i).templateSettings.preheaderTextPlaceholder,
1085
1085
  rows: 2,
1086
1086
  "onUpdate:modelValue": n[3] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1087
- }, null, 8, ["model-value", "placeholder"]), A("div", Qn, [A("span", $n, V(H(i).templateSettings.preheaderTextHint), 1), A("span", er, V((e.settings.preheaderText ?? "").length) + "/" + V(sr), 1)])])], 2),
1088
- A("div", tr, [A("div", nr, [M(H(Te), {
1087
+ }, null, 8, ["model-value", "placeholder"]), A("div", $n, [A("span", er, V(H(i).templateSettings.preheaderTextHint), 1), A("span", tr, V((e.settings.preheaderText ?? "").length) + "/" + V(cr), 1)])])], 2),
1088
+ A("div", nr, [A("div", rr, [M(H(Ee), {
1089
1089
  size: 14,
1090
1090
  "stroke-width": 2
1091
- }), A("span", null, V(H(i).templateSettings.tips), 1)]), A("ul", rr, [
1092
- A("li", ir, V(H(i).templateSettings.tip1), 1),
1093
- A("li", ar, V(H(i).templateSettings.tip2), 1),
1094
- A("li", or, V(H(i).templateSettings.tip3), 1)
1091
+ }), A("span", null, V(H(i).templateSettings.tips), 1)]), A("ul", ir, [
1092
+ A("li", ar, V(H(i).templateSettings.tip1), 1),
1093
+ A("li", or, V(H(i).templateSettings.tip2), 1),
1094
+ A("li", sr, V(H(i).templateSettings.tip3), 1)
1095
1095
  ])])
1096
1096
  ])]));
1097
1097
  }
1098
- }), lr = { key: 0 }, ur = ["aria-label"], dr = ["data-tooltip"], fr = ["data-tooltip"], pr = {
1098
+ }), ur = { key: 0 }, dr = ["aria-label"], fr = ["data-tooltip"], pr = ["data-tooltip"], mr = {
1099
1099
  key: 2,
1100
1100
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
1101
- }, mr = ["aria-label", "title"], hr = [
1101
+ }, hr = ["aria-label", "title"], gr = [
1102
1102
  "aria-label",
1103
1103
  "title",
1104
1104
  "disabled"
1105
- ], gr = { key: 1 }, _r = [
1105
+ ], _r = { key: 1 }, vr = [
1106
1106
  "type",
1107
1107
  "value",
1108
1108
  "placeholder"
1109
- ], vr = [
1109
+ ], yr = [
1110
1110
  "aria-label",
1111
1111
  "title",
1112
1112
  "disabled"
1113
- ], yr = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", br = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", X = /* @__PURE__ */ y(/* @__PURE__ */ N({
1113
+ ], br = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", xr = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", X = /* @__PURE__ */ y(/* @__PURE__ */ N({
1114
1114
  __name: "MergeTagInput",
1115
1115
  props: {
1116
1116
  modelValue: {},
@@ -1123,18 +1123,18 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1123
1123
  },
1124
1124
  emits: ["update:modelValue"],
1125
1125
  setup(e, { emit: t }) {
1126
- let n = e, r = t, { t: i } = _(), a = R(null), { segments: o, hasMergeTags: s, mergeTagEnabled: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: f, handleInput: p, clearValue: m, insertMergeTag: h } = wn({
1126
+ let n = e, r = t, { t: i } = _(), a = R(null), { segments: o, hasMergeTags: s, mergeTagEnabled: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: f, handleInput: p, clearValue: m, insertMergeTag: h } = Tn({
1127
1127
  modelValue: () => n.modelValue,
1128
1128
  emit: (e) => r("update:modelValue", e),
1129
1129
  elementRef: a
1130
1130
  });
1131
- return (t, n) => H(s) && !H(u) ? (L(), k("div", lr, [A("div", {
1131
+ return (t, n) => H(s) && !H(u) ? (L(), k("div", ur, [A("div", {
1132
1132
  role: "button",
1133
1133
  tabindex: "0",
1134
1134
  "aria-label": H(i).mergeTag.clickToEdit,
1135
- class: F([yr, { "tpl-pulse-fill": e.pulse }]),
1135
+ class: F([br, { "tpl-pulse-fill": e.pulse }]),
1136
1136
  onClick: n[1] ||= (...e) => H(d) && H(d)(...e),
1137
- onKeydown: [n[2] ||= K((...e) => H(d) && H(d)(...e), ["enter"]), n[3] ||= K(Je((...e) => H(d) && H(d)(...e), ["prevent"]), ["space"])]
1137
+ onKeydown: [n[2] ||= K((...e) => H(d) && H(d)(...e), ["enter"]), n[3] ||= K(Ye((...e) => H(d) && H(d)(...e), ["prevent"]), ["space"])]
1138
1138
  }, [(L(!0), k(T, null, z(H(o), (e, t) => (L(), k(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" ? (L(), k("span", {
1139
1139
  key: 0,
1140
1140
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium",
@@ -1143,7 +1143,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1143
1143
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
1144
1144
  color: "var(--tpl-primary)"
1145
1145
  }
1146
- }, V(e.label), 9, dr)) : e.type === "logicMergeTag" ? (L(), k("span", {
1146
+ }, V(e.label), 9, fr)) : e.type === "logicMergeTag" ? (L(), k("span", {
1147
1147
  key: 1,
1148
1148
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
1149
1149
  "data-tooltip": e.value,
@@ -1152,27 +1152,27 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1152
1152
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
1153
1153
  color: "var(--tpl-primary)"
1154
1154
  }
1155
- }, V(e.keyword), 9, fr)) : (L(), k("span", pr, V(e.value), 1))], 64))), 128)), A("button", {
1155
+ }, V(e.keyword), 9, pr)) : (L(), k("span", mr, V(e.value), 1))], 64))), 128)), A("button", {
1156
1156
  type: "button",
1157
1157
  class: "tpl:ml-auto tpl:flex tpl:size-4 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
1158
1158
  "aria-label": H(i).mergeTag.remove,
1159
1159
  title: H(i).mergeTag.remove,
1160
- onClick: n[0] ||= Je((...e) => H(m) && H(m)(...e), ["stop"])
1161
- }, [M(H(ze), {
1160
+ onClick: n[0] ||= Ye((...e) => H(m) && H(m)(...e), ["stop"])
1161
+ }, [M(H(Be), {
1162
1162
  size: 10,
1163
1163
  "stroke-width": 3
1164
- })], 8, mr)], 42, ur), H(c) ? (L(), k("button", {
1164
+ })], 8, hr)], 42, dr), H(c) ? (L(), k("button", {
1165
1165
  key: 0,
1166
1166
  type: "button",
1167
- class: F([br, "tpl:mt-1.5"]),
1167
+ class: F([xr, "tpl:mt-1.5"]),
1168
1168
  "aria-label": H(i).mergeTag.insert,
1169
1169
  title: H(i).mergeTag.insert,
1170
1170
  disabled: H(l),
1171
1171
  onClick: n[4] ||= (...e) => H(h) && H(h)(...e)
1172
- }, [M(H(ke), {
1172
+ }, [M(H(Ae), {
1173
1173
  size: 12,
1174
1174
  "stroke-width": 2
1175
- }), j(" " + V(H(i).mergeTag.insert), 1)], 8, hr)) : O("", !0)])) : (L(), k("div", gr, [A("input", {
1175
+ }), j(" " + V(H(i).mergeTag.insert), 1)], 8, gr)) : O("", !0)])) : (L(), k("div", _r, [A("input", {
1176
1176
  ref_key: "inputRef",
1177
1177
  ref: a,
1178
1178
  type: e.type,
@@ -1182,23 +1182,23 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1182
1182
  onInput: n[5] ||= (...e) => H(p) && H(p)(...e),
1183
1183
  onBlur: n[6] ||= (...e) => H(f) && H(f)(...e),
1184
1184
  onKeydown: n[7] ||= K((...e) => H(f) && H(f)(...e), ["escape"])
1185
- }, null, 42, _r), H(c) ? (L(), k("button", {
1185
+ }, null, 42, vr), H(c) ? (L(), k("button", {
1186
1186
  key: 0,
1187
1187
  type: "button",
1188
- class: F([br, "tpl:mt-1.5"]),
1188
+ class: F([xr, "tpl:mt-1.5"]),
1189
1189
  "aria-label": H(i).mergeTag.insert,
1190
1190
  title: H(i).mergeTag.insert,
1191
1191
  disabled: H(l),
1192
1192
  onClick: n[8] ||= (...e) => H(h) && H(h)(...e)
1193
- }, [M(H(ke), {
1193
+ }, [M(H(Ae), {
1194
1194
  size: 12,
1195
1195
  "stroke-width": 2
1196
- }), j(" " + V(H(i).mergeTag.insert), 1)], 8, vr)) : O("", !0)]));
1196
+ }), j(" " + V(H(i).mergeTag.insert), 1)], 8, yr)) : O("", !0)]));
1197
1197
  }
1198
- }), [["__scopeId", "data-v-981812d9"]]), xr = { class: "tpl:mb-3.5" }, Sr = ["value"], Cr = { value: "" }, wr = ["value"], Tr = { class: "tpl:mb-3.5" }, Er = { class: "tpl:mb-3.5" }, Dr = {
1198
+ }), [["__scopeId", "data-v-981812d9"]]), Sr = { class: "tpl:mb-3.5" }, Cr = ["value"], wr = { value: "" }, Tr = ["value"], Er = { class: "tpl:mb-3.5" }, Dr = { class: "tpl:mb-3.5" }, Or = {
1199
1199
  key: 0,
1200
1200
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
1201
- }, Or = ["checked"], kr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Ar = { class: "tpl:mb-3.5" }, jr = { class: "tpl:mb-3.5" }, Mr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Nr = { class: "tpl:mb-3.5" }, Pr = { class: "tpl:flex tpl:items-stretch" }, Fr = ["value"], Ir = { class: "tpl:mb-3.5" }, Lr = { class: "tpl:flex tpl:items-stretch" }, Rr = ["value"], zr = /* @__PURE__ */ N({
1201
+ }, kr = ["checked"], Ar = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, jr = { class: "tpl:mb-3.5" }, Mr = { class: "tpl:mb-3.5" }, Nr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Pr = { class: "tpl:mb-3.5" }, Fr = { class: "tpl:flex tpl:items-stretch" }, Ir = ["value"], Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:flex tpl:items-stretch" }, zr = ["value"], Br = /* @__PURE__ */ N({
1202
1202
  __name: "ButtonToolbar",
1203
1203
  props: {
1204
1204
  block: {},
@@ -1211,59 +1211,59 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1211
1211
  n("update", { [e]: t });
1212
1212
  }
1213
1213
  return (t, n) => (L(), k(T, null, [
1214
- A("div", xr, [A("label", { class: F(H(S)) }, V(H(r).button.fontFamily), 3), A("select", {
1214
+ A("div", Sr, [A("label", { class: F(H(C)) }, V(H(r).button.fontFamily), 3), A("select", {
1215
1215
  class: F(H(x)),
1216
1216
  value: e.block.fontFamily || "",
1217
1217
  onChange: n[0] ||= (e) => i("fontFamily", e.target.value || void 0)
1218
- }, [A("option", Cr, V(H(r).button.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
1218
+ }, [A("option", wr, V(H(r).button.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
1219
1219
  key: e.value,
1220
1220
  value: e.value
1221
- }, V(e.label), 9, wr))), 128))], 42, Sr)]),
1222
- A("div", Tr, [A("label", { class: F(H(S)) }, V(H(r).button.text), 3), M(X, {
1221
+ }, V(e.label), 9, Tr))), 128))], 42, Cr)]),
1222
+ A("div", Er, [A("label", { class: F(H(C)) }, V(H(r).button.text), 3), M(X, {
1223
1223
  "model-value": e.block.text,
1224
1224
  type: "text",
1225
1225
  "onUpdate:modelValue": n[1] ||= (e) => i("text", e)
1226
1226
  }, null, 8, ["model-value"])]),
1227
- A("div", Er, [
1228
- A("label", { class: F(H(S)) }, V(H(r).button.url), 3),
1227
+ A("div", Dr, [
1228
+ A("label", { class: F(H(C)) }, V(H(r).button.url), 3),
1229
1229
  M(X, {
1230
1230
  "model-value": e.block.url,
1231
1231
  type: "url",
1232
1232
  placeholder: H(r).button.urlPlaceholder,
1233
1233
  "onUpdate:modelValue": n[2] ||= (e) => i("url", e)
1234
1234
  }, null, 8, ["model-value", "placeholder"]),
1235
- e.block.url ? (L(), k("label", Dr, [A("input", {
1235
+ e.block.url ? (L(), k("label", Or, [A("input", {
1236
1236
  type: "checkbox",
1237
1237
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1238
1238
  checked: e.block.openInNewTab ?? !1,
1239
1239
  onChange: n[3] ||= (e) => i("openInNewTab", e.target.checked)
1240
- }, null, 40, Or), j(" " + V(H(r).button.openInNewTab), 1)])) : O("", !0)
1240
+ }, null, 40, kr), j(" " + V(H(r).button.openInNewTab), 1)])) : O("", !0)
1241
1241
  ]),
1242
- A("div", kr, [A("div", Ar, [A("label", { class: F(H(S)) }, V(H(r).button.background), 3), M(Y, {
1242
+ A("div", Ar, [A("div", jr, [A("label", { class: F(H(C)) }, V(H(r).button.background), 3), M(Y, {
1243
1243
  "model-value": e.block.backgroundColor,
1244
1244
  "onUpdate:modelValue": n[4] ||= (e) => i("backgroundColor", e)
1245
- }, null, 8, ["model-value"])]), A("div", jr, [A("label", { class: F(H(S)) }, V(H(r).button.textColor), 3), M(Y, {
1245
+ }, null, 8, ["model-value"])]), A("div", Mr, [A("label", { class: F(H(C)) }, V(H(r).button.textColor), 3), M(Y, {
1246
1246
  "model-value": e.block.textColor,
1247
1247
  "onUpdate:modelValue": n[5] ||= (e) => i("textColor", e)
1248
1248
  }, null, 8, ["model-value"])])]),
1249
- A("div", Mr, [A("div", Nr, [A("label", { class: F(H(S)) }, V(H(r).button.borderRadius), 3), A("div", Pr, [A("input", {
1249
+ A("div", Nr, [A("div", Pr, [A("label", { class: F(H(C)) }, V(H(r).button.borderRadius), 3), A("div", Fr, [A("input", {
1250
1250
  type: "number",
1251
- class: F(H(C)),
1251
+ class: F(H(S)),
1252
1252
  value: e.block.borderRadius,
1253
1253
  min: "0",
1254
1254
  max: "50",
1255
1255
  onInput: n[6] ||= (e) => i("borderRadius", Number(e.target.value))
1256
- }, null, 42, Fr), A("span", { class: F(H(w)) }, "px", 2)])]), A("div", Ir, [A("label", { class: F(H(S)) }, V(H(r).button.fontSize), 3), A("div", Lr, [A("input", {
1256
+ }, null, 42, Ir), A("span", { class: F(H(w)) }, "px", 2)])]), A("div", Lr, [A("label", { class: F(H(C)) }, V(H(r).button.fontSize), 3), A("div", Rr, [A("input", {
1257
1257
  type: "number",
1258
- class: F(H(C)),
1258
+ class: F(H(S)),
1259
1259
  value: e.block.fontSize,
1260
1260
  min: "10",
1261
1261
  max: "36",
1262
1262
  onInput: n[7] ||= (e) => i("fontSize", Number(e.target.value))
1263
- }, null, 42, Rr), A("span", { class: F(H(w)) }, "px", 2)])])])
1263
+ }, null, 42, zr), A("span", { class: F(H(w)) }, "px", 2)])])])
1264
1264
  ], 64));
1265
1265
  }
1266
- }), Br = { class: "spacing-control" }, Vr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Hr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Ur = { class: "tpl:flex tpl:items-center" }, Wr = ["aria-label"], Gr = ["value", "aria-label"], Kr = ["aria-label"], qr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Jr = { class: "tpl:flex tpl:items-center" }, Yr = ["aria-label"], Xr = ["value", "aria-label"], Zr = ["aria-label"], Qr = ["aria-label", "title"], $r = { class: "tpl:flex tpl:items-center" }, ei = ["aria-label"], ti = ["value", "aria-label"], ni = ["aria-label"], ri = { class: "tpl:flex tpl:items-center" }, ii = ["aria-label"], ai = ["value", "aria-label"], oi = ["aria-label"], Z = "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)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", si = "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] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", ci = /* @__PURE__ */ y(/* @__PURE__ */ N({
1266
+ }), Vr = { class: "spacing-control" }, Hr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ur = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Wr = { class: "tpl:flex tpl:items-center" }, Gr = ["aria-label"], Kr = ["value", "aria-label"], qr = ["aria-label"], Jr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yr = { class: "tpl:flex tpl:items-center" }, Xr = ["aria-label"], Zr = ["value", "aria-label"], Qr = ["aria-label"], $r = ["aria-label", "title"], ei = { class: "tpl:flex tpl:items-center" }, ti = ["aria-label"], ni = ["value", "aria-label"], ri = ["aria-label"], ii = { class: "tpl:flex tpl:items-center" }, ai = ["aria-label"], oi = ["value", "aria-label"], si = ["aria-label"], Z = "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)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", ci = "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] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", li = /* @__PURE__ */ y(/* @__PURE__ */ N({
1267
1267
  __name: "SpacingControl",
1268
1268
  props: {
1269
1269
  modelValue: {},
@@ -1272,7 +1272,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1272
1272
  emits: ["update:modelValue"],
1273
1273
  setup(e, { emit: t }) {
1274
1274
  let n = e, r = t, { t: i } = _(), a = E(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), o = R(a.value);
1275
- qe(a, (e) => {
1275
+ Je(a, (e) => {
1276
1276
  !e && o.value && (o.value = !1);
1277
1277
  });
1278
1278
  function s(e, t) {
@@ -1310,8 +1310,8 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1310
1310
  });
1311
1311
  }
1312
1312
  }
1313
- return (t, n) => (L(), k("div", Br, [A("label", Vr, V(e.label), 1), A("div", Hr, [
1314
- A("div", Ur, [
1313
+ return (t, n) => (L(), k("div", Vr, [A("label", Hr, V(e.label), 1), A("div", Ur, [
1314
+ A("div", Wr, [
1315
1315
  A("button", {
1316
1316
  "aria-label": H(i).spacingControl.decreaseTop,
1317
1317
  class: F([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -1319,15 +1319,15 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1319
1319
  }, [M(H(b), {
1320
1320
  size: 12,
1321
1321
  "stroke-width": 2
1322
- })], 10, Wr),
1322
+ })], 10, Gr),
1323
1323
  A("input", {
1324
1324
  type: "number",
1325
- class: F(si),
1325
+ class: F(ci),
1326
1326
  value: e.modelValue.top,
1327
1327
  "aria-label": H(i).spacingControl.top,
1328
1328
  min: "0",
1329
1329
  onInput: n[1] ||= (e) => c("top", Number(e.target.value))
1330
- }, null, 40, Gr),
1330
+ }, null, 40, Kr),
1331
1331
  A("button", {
1332
1332
  "aria-label": H(i).spacingControl.increaseTop,
1333
1333
  class: F([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -1335,10 +1335,10 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1335
1335
  }, [M(H(q), {
1336
1336
  size: 12,
1337
1337
  "stroke-width": 2
1338
- })], 10, Kr)
1338
+ })], 10, qr)
1339
1339
  ]),
1340
- A("div", qr, [
1341
- A("div", Jr, [
1340
+ A("div", Jr, [
1341
+ A("div", Yr, [
1342
1342
  A("button", {
1343
1343
  "aria-label": H(i).spacingControl.decreaseLeft,
1344
1344
  class: F([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -1346,15 +1346,15 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1346
1346
  }, [M(H(b), {
1347
1347
  size: 12,
1348
1348
  "stroke-width": 2
1349
- })], 10, Yr),
1349
+ })], 10, Xr),
1350
1350
  A("input", {
1351
1351
  type: "number",
1352
- class: F(si),
1352
+ class: F(ci),
1353
1353
  value: e.modelValue.left,
1354
1354
  "aria-label": H(i).spacingControl.left,
1355
1355
  min: "0",
1356
1356
  onInput: n[4] ||= (e) => c("left", Number(e.target.value))
1357
- }, null, 40, Xr),
1357
+ }, null, 40, Zr),
1358
1358
  A("button", {
1359
1359
  "aria-label": H(i).spacingControl.increaseLeft,
1360
1360
  class: F([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -1362,23 +1362,23 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1362
1362
  }, [M(H(q), {
1363
1363
  size: 12,
1364
1364
  "stroke-width": 2
1365
- })], 10, Zr)
1365
+ })], 10, Qr)
1366
1366
  ]),
1367
1367
  A("button", {
1368
1368
  class: F(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", o.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
1369
1369
  "aria-label": o.value ? H(i).spacingControl.unlock : H(i).spacingControl.lockAll,
1370
1370
  title: o.value ? H(i).spacingControl.unlock : H(i).spacingControl.lockAll,
1371
1371
  onClick: l
1372
- }, [o.value ? (L(), D(H(st), {
1372
+ }, [o.value ? (L(), D(H(ct), {
1373
1373
  key: 0,
1374
1374
  size: 14,
1375
1375
  "stroke-width": 2
1376
- })) : (L(), D(H(ot), {
1376
+ })) : (L(), D(H(st), {
1377
1377
  key: 1,
1378
1378
  size: 14,
1379
1379
  "stroke-width": 2
1380
- }))], 10, Qr),
1381
- A("div", $r, [
1380
+ }))], 10, $r),
1381
+ A("div", ei, [
1382
1382
  A("button", {
1383
1383
  "aria-label": H(i).spacingControl.decreaseRight,
1384
1384
  class: F([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -1386,15 +1386,15 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1386
1386
  }, [M(H(b), {
1387
1387
  size: 12,
1388
1388
  "stroke-width": 2
1389
- })], 10, ei),
1389
+ })], 10, ti),
1390
1390
  A("input", {
1391
1391
  type: "number",
1392
- class: F(si),
1392
+ class: F(ci),
1393
1393
  value: e.modelValue.right,
1394
1394
  "aria-label": H(i).spacingControl.right,
1395
1395
  min: "0",
1396
1396
  onInput: n[7] ||= (e) => c("right", Number(e.target.value))
1397
- }, null, 40, ti),
1397
+ }, null, 40, ni),
1398
1398
  A("button", {
1399
1399
  "aria-label": H(i).spacingControl.increaseRight,
1400
1400
  class: F([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -1402,10 +1402,10 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1402
1402
  }, [M(H(q), {
1403
1403
  size: 12,
1404
1404
  "stroke-width": 2
1405
- })], 10, ni)
1405
+ })], 10, ri)
1406
1406
  ])
1407
1407
  ]),
1408
- A("div", ri, [
1408
+ A("div", ii, [
1409
1409
  A("button", {
1410
1410
  "aria-label": H(i).spacingControl.decreaseBottom,
1411
1411
  class: F([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -1413,15 +1413,15 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1413
1413
  }, [M(H(b), {
1414
1414
  size: 12,
1415
1415
  "stroke-width": 2
1416
- })], 10, ii),
1416
+ })], 10, ai),
1417
1417
  A("input", {
1418
1418
  type: "number",
1419
- class: F(si),
1419
+ class: F(ci),
1420
1420
  value: e.modelValue.bottom,
1421
1421
  "aria-label": H(i).spacingControl.bottom,
1422
1422
  min: "0",
1423
1423
  onInput: n[10] ||= (e) => c("bottom", Number(e.target.value))
1424
- }, null, 40, ai),
1424
+ }, null, 40, oi),
1425
1425
  A("button", {
1426
1426
  "aria-label": H(i).spacingControl.increaseBottom,
1427
1427
  class: F([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -1429,26 +1429,26 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1429
1429
  }, [M(H(q), {
1430
1430
  size: 12,
1431
1431
  "stroke-width": 2
1432
- })], 10, oi)
1432
+ })], 10, si)
1433
1433
  ])
1434
1434
  ])]));
1435
1435
  }
1436
- }), [["__scopeId", "data-v-9a9c8a07"]]), li = { class: "tpl:mt-3" }, ui = { class: "tpl:mt-4" }, di = { class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3" }, fi = { class: "tpl:mt-3" }, pi = { class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3" }, mi = { class: "tpl:mt-3 tpl:space-y-2" }, hi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, gi = ["checked"], _i = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, vi = ["checked"], yi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, bi = ["checked"], xi = { class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3" }, Si = { class: "tpl:mt-3" }, Ci = ["value", "placeholder"], wi = {
1436
+ }), [["__scopeId", "data-v-9a9c8a07"]]), ui = { class: "tpl:mt-3" }, di = { class: "tpl:mt-4" }, fi = { class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3" }, pi = { class: "tpl:mt-3" }, mi = { class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3" }, hi = { class: "tpl:mt-3 tpl:space-y-2" }, gi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, _i = ["checked"], vi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, yi = ["checked"], bi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, xi = ["checked"], Si = { class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3" }, Ci = { class: "tpl:mt-3" }, wi = ["value", "placeholder"], Ti = {
1437
1437
  key: 0,
1438
1438
  class: "tpl:border-t tpl:border-[var(--tpl-border)] tpl:py-3"
1439
- }, Ti = { class: "tpl:mt-3 tpl:space-y-2" }, Ei = ["value"], Di = { value: "" }, Oi = ["label"], ki = ["value"], Ai = ["value"], ji = {
1439
+ }, Ei = { class: "tpl:mt-3 tpl:space-y-2" }, Di = ["value"], Oi = { value: "" }, ki = ["label"], Ai = ["value"], ji = ["value"], Mi = {
1440
1440
  key: 0,
1441
1441
  value: "__custom__"
1442
- }, Mi = {
1442
+ }, Ni = {
1443
1443
  key: 0,
1444
1444
  class: "tpl:space-y-2"
1445
- }, Ni = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Pi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Fi = { class: "tpl:flex tpl:justify-end" }, Ii = ["disabled"], Li = {
1445
+ }, Pi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Fi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ii = { class: "tpl:flex tpl:justify-end" }, Li = ["disabled"], Ri = {
1446
1446
  key: 0,
1447
1447
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1448
- }, Ri = { class: "tpl:space-y-1" }, zi = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Bi = {
1448
+ }, zi = { class: "tpl:space-y-1" }, Bi = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Vi = {
1449
1449
  key: 0,
1450
1450
  class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1451
- }, Vi = /* @__PURE__ */ N({
1451
+ }, Hi = /* @__PURE__ */ N({
1452
1452
  __name: "CommonBlockSettings",
1453
1453
  props: {
1454
1454
  block: {},
@@ -1456,7 +1456,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1456
1456
  },
1457
1457
  emits: ["update"],
1458
1458
  setup(e, { emit: t }) {
1459
- let n = e, r = t, { t: i } = _(), a = P(pe, []), o = P(_e, !1), s = We(/* @__PURE__ */ new Set());
1459
+ let n = e, r = t, { t: i } = _(), a = P(pe, []), o = P(_e, !1), s = Ge(/* @__PURE__ */ new Set());
1460
1460
  function c(e) {
1461
1461
  s.has(e) ? s.delete(e) : s.add(e);
1462
1462
  }
@@ -1471,7 +1471,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1471
1471
  after: f.value.trim()
1472
1472
  } }), u.value = !1, d.value = "", f.value = "");
1473
1473
  }
1474
- qe(() => n.block.displayCondition, (e) => {
1474
+ Je(() => n.block.displayCondition, (e) => {
1475
1475
  if (!e) {
1476
1476
  u.value = !1, d.value = "", f.value = "";
1477
1477
  return;
@@ -1497,42 +1497,42 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1497
1497
  type: "button",
1498
1498
  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)]",
1499
1499
  onClick: n[0] ||= (e) => c("spacing")
1500
- }, [M(H(xe), {
1500
+ }, [M(H(Se), {
1501
1501
  class: F(["tpl:transition-transform tpl:duration-200", s.has("spacing") ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1502
1502
  size: 12,
1503
1503
  "stroke-width": 2
1504
- }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.spacing), 1)]), G(A("div", li, [M(ci, {
1504
+ }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.spacing), 1)]), G(A("div", ui, [M(li, {
1505
1505
  label: H(i).blockSettings.padding,
1506
1506
  "model-value": e.block.styles.padding,
1507
1507
  "onUpdate:modelValue": n[1] ||= (e) => te("padding", e)
1508
- }, null, 8, ["label", "model-value"]), A("div", ui, [M(ci, {
1508
+ }, null, 8, ["label", "model-value"]), A("div", di, [M(li, {
1509
1509
  label: H(i).blockSettings.margin,
1510
1510
  "model-value": e.block.styles.margin,
1511
1511
  "onUpdate:modelValue": n[2] ||= (e) => te("margin", e)
1512
1512
  }, null, 8, ["label", "model-value"])])], 512), [[U, s.has("spacing")]])], 2),
1513
- A("div", di, [A("button", {
1513
+ A("div", fi, [A("button", {
1514
1514
  type: "button",
1515
1515
  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)]",
1516
1516
  onClick: n[3] ||= (e) => c("bg")
1517
- }, [M(H(xe), {
1517
+ }, [M(H(Se), {
1518
1518
  class: F(["tpl:transition-transform tpl:duration-200", s.has("bg") ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1519
1519
  size: 12,
1520
1520
  "stroke-width": 2
1521
- }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.background), 1)]), G(A("div", fi, [A("label", { class: F(H(S)) }, V(H(i).blockSettings.color), 3), M(Y, {
1521
+ }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.background), 1)]), G(A("div", pi, [A("label", { class: F(H(C)) }, V(H(i).blockSettings.color), 3), M(Y, {
1522
1522
  size: "large",
1523
1523
  "model-value": e.block.styles.backgroundColor || H("#ffffff"),
1524
1524
  "onUpdate:modelValue": n[4] ||= (e) => te("backgroundColor", e)
1525
1525
  }, null, 8, ["model-value"])], 512), [[U, s.has("bg")]])]),
1526
- A("div", pi, [A("button", {
1526
+ A("div", mi, [A("button", {
1527
1527
  type: "button",
1528
1528
  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)]",
1529
1529
  onClick: n[5] ||= (e) => c("display")
1530
- }, [M(H(xe), {
1530
+ }, [M(H(Se), {
1531
1531
  class: F(["tpl:transition-transform tpl:duration-200", s.has("display") ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1532
1532
  size: 12,
1533
1533
  "stroke-width": 2
1534
- }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.display), 1)]), G(A("div", mi, [
1535
- A("label", hi, [
1534
+ }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.display), 1)]), G(A("div", hi, [
1535
+ A("label", gi, [
1536
1536
  A("input", {
1537
1537
  type: "checkbox",
1538
1538
  class: "tpl:accent-[var(--tpl-primary)]",
@@ -1542,14 +1542,14 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1542
1542
  tablet: e.block.visibility?.tablet !== !1,
1543
1543
  mobile: e.block.visibility?.mobile !== !1
1544
1544
  } })
1545
- }, null, 40, gi),
1546
- M(H(ct), {
1545
+ }, null, 40, _i),
1546
+ M(H(lt), {
1547
1547
  size: 14,
1548
1548
  "stroke-width": 1.5
1549
1549
  }),
1550
1550
  j(" " + V(H(i).blockSettings.showOnDesktop), 1)
1551
1551
  ]),
1552
- A("label", _i, [
1552
+ A("label", vi, [
1553
1553
  A("input", {
1554
1554
  type: "checkbox",
1555
1555
  class: "tpl:accent-[var(--tpl-primary)]",
@@ -1559,14 +1559,14 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1559
1559
  tablet: e.block.visibility?.tablet === !1,
1560
1560
  mobile: e.block.visibility?.mobile !== !1
1561
1561
  } })
1562
- }, null, 40, vi),
1563
- M(H(_t), {
1562
+ }, null, 40, yi),
1563
+ M(H(vt), {
1564
1564
  size: 14,
1565
1565
  "stroke-width": 1.5
1566
1566
  }),
1567
1567
  j(" " + V(H(i).blockSettings.showOnTablet), 1)
1568
1568
  ]),
1569
- A("label", yi, [
1569
+ A("label", bi, [
1570
1570
  A("input", {
1571
1571
  type: "checkbox",
1572
1572
  class: "tpl:accent-[var(--tpl-primary)]",
@@ -1576,38 +1576,38 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1576
1576
  tablet: e.block.visibility?.tablet !== !1,
1577
1577
  mobile: e.block.visibility?.mobile === !1
1578
1578
  } })
1579
- }, null, 40, bi),
1580
- M(H(pt), {
1579
+ }, null, 40, xi),
1580
+ M(H(mt), {
1581
1581
  size: 14,
1582
1582
  "stroke-width": 1.5
1583
1583
  }),
1584
1584
  j(" " + V(H(i).blockSettings.showOnMobile), 1)
1585
1585
  ])
1586
1586
  ], 512), [[U, s.has("display")]])]),
1587
- A("div", xi, [A("button", {
1587
+ A("div", Si, [A("button", {
1588
1588
  type: "button",
1589
1589
  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)]",
1590
1590
  onClick: n[9] ||= (e) => c("css")
1591
- }, [M(H(xe), {
1591
+ }, [M(H(Se), {
1592
1592
  class: F(["tpl:transition-transform tpl:duration-200", s.has("css") ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1593
1593
  size: 12,
1594
1594
  "stroke-width": 2
1595
- }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.customCss), 1)]), G(A("div", Si, [A("label", { class: F(H(S)) }, V(H(i).blockSettings.css), 3), A("textarea", {
1595
+ }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.customCss), 1)]), G(A("div", Ci, [A("label", { class: F(H(C)) }, V(H(i).blockSettings.css), 3), A("textarea", {
1596
1596
  value: e.block.customCss || "",
1597
1597
  placeholder: H(i).blockSettings.cssPlaceholder,
1598
1598
  rows: "3",
1599
1599
  class: "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
1600
1600
  onInput: n[10] ||= (e) => r("update", { customCss: e.target.value })
1601
- }, null, 40, Ci)], 512), [[U, s.has("css")]])]),
1602
- l.value ? (L(), k("div", wi, [A("button", {
1601
+ }, null, 40, wi)], 512), [[U, s.has("css")]])]),
1602
+ l.value ? (L(), k("div", Ti, [A("button", {
1603
1603
  type: "button",
1604
1604
  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)]",
1605
1605
  onClick: n[11] ||= (e) => c("condition")
1606
- }, [M(H(xe), {
1606
+ }, [M(H(Se), {
1607
1607
  class: F(["tpl:transition-transform tpl:duration-200", s.has("condition") ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1608
1608
  size: 12,
1609
1609
  "stroke-width": 2
1610
- }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.displayCondition), 1)]), G(A("div", Ti, [A("select", {
1610
+ }, null, 8, ["class"]), A("span", null, V(H(i).blockSettings.displayCondition), 1)]), G(A("div", Ei, [A("select", {
1611
1611
  class: F(["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:duration-150 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)]"]),
1612
1612
  value: u.value || p.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1613
1613
  onChange: n[12] ||= (e) => {
@@ -1624,44 +1624,44 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1624
1624
  n && r("update", { displayCondition: n });
1625
1625
  }
1626
1626
  }, [
1627
- A("option", Di, V(H(i).blockSettings.noCondition), 1),
1627
+ A("option", Oi, V(H(i).blockSettings.noCondition), 1),
1628
1628
  (L(!0), k(T, null, z(ee.value, (e, t) => (L(), k(T, { key: t }, [t ? (L(), k("optgroup", {
1629
1629
  key: 0,
1630
1630
  label: String(t)
1631
1631
  }, [(L(!0), k(T, null, z(e, (e) => (L(), k("option", {
1632
1632
  key: e.label,
1633
1633
  value: e.label
1634
- }, V(e.label), 9, ki))), 128))], 8, Oi)) : (L(!0), k(T, { key: 1 }, z(e, (e) => (L(), k("option", {
1634
+ }, V(e.label), 9, Ai))), 128))], 8, ki)) : (L(!0), k(T, { key: 1 }, z(e, (e) => (L(), k("option", {
1635
1635
  key: e.label,
1636
1636
  value: e.label
1637
- }, V(e.label), 9, Ai))), 128))], 64))), 128)),
1638
- H(o) ? (L(), k("option", ji, V(H(i).blockSettings.customCondition), 1)) : O("", !0)
1639
- ], 42, Ei), u.value || p.value ? (L(), k("div", Mi, [
1640
- A("div", null, [A("label", Ni, V(H(i).blockSettings.customConditionBefore), 1), G(A("textarea", {
1637
+ }, V(e.label), 9, ji))), 128))], 64))), 128)),
1638
+ H(o) ? (L(), k("option", Mi, V(H(i).blockSettings.customCondition), 1)) : O("", !0)
1639
+ ], 42, Di), u.value || p.value ? (L(), k("div", Ni, [
1640
+ A("div", null, [A("label", Pi, V(H(i).blockSettings.customConditionBefore), 1), G(A("textarea", {
1641
1641
  "onUpdate:modelValue": n[13] ||= (e) => d.value = e,
1642
1642
  rows: "2",
1643
1643
  class: "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]"
1644
- }, null, 512), [[Ke, d.value]])]),
1645
- A("div", null, [A("label", Pi, V(H(i).blockSettings.customConditionAfter), 1), G(A("textarea", {
1644
+ }, null, 512), [[qe, d.value]])]),
1645
+ A("div", null, [A("label", Fi, V(H(i).blockSettings.customConditionAfter), 1), G(A("textarea", {
1646
1646
  "onUpdate:modelValue": n[14] ||= (e) => f.value = e,
1647
1647
  rows: "2",
1648
1648
  class: "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]"
1649
- }, null, 512), [[Ke, f.value]])]),
1650
- A("div", Fi, [A("button", {
1649
+ }, null, 512), [[qe, f.value]])]),
1650
+ A("div", Ii, [A("button", {
1651
1651
  type: "button",
1652
1652
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
1653
1653
  disabled: !d.value.trim(),
1654
1654
  onClick: h
1655
- }, V(H(i).blockSettings.applyCondition), 9, Ii)])
1656
- ])) : e.block.displayCondition && !p.value ? (L(), k(T, { key: 1 }, [e.block.displayCondition.description ? (L(), k("p", Li, V(e.block.displayCondition.description), 1)) : O("", !0), A("div", Ri, [A("pre", zi, V(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (L(), k("pre", Bi, V(e.block.displayCondition.after), 1)) : O("", !0)])], 64)) : O("", !0)], 512), [[U, s.has("condition")]])])) : O("", !0)
1655
+ }, V(H(i).blockSettings.applyCondition), 9, Li)])
1656
+ ])) : e.block.displayCondition && !p.value ? (L(), k(T, { key: 1 }, [e.block.displayCondition.description ? (L(), k("p", Ri, V(e.block.displayCondition.description), 1)) : O("", !0), A("div", zi, [A("pre", Bi, V(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (L(), k("pre", Vi, V(e.block.displayCondition.after), 1)) : O("", !0)])], 64)) : O("", !0)], 512), [[U, s.has("condition")]])])) : O("", !0)
1657
1657
  ], 2));
1658
1658
  }
1659
- }), Hi = [
1659
+ }), Ui = [
1660
1660
  "aria-checked",
1661
1661
  "aria-label",
1662
1662
  "title",
1663
1663
  "onClick"
1664
- ], Ui = { key: 1 }, Q = /* @__PURE__ */ N({
1664
+ ], Wi = { key: 1 }, Q = /* @__PURE__ */ N({
1665
1665
  __name: "SlidingPillSelect",
1666
1666
  props: {
1667
1667
  options: {},
@@ -1706,9 +1706,9 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1706
1706
  key: 0,
1707
1707
  size: 14,
1708
1708
  "stroke-width": 2
1709
- })) : (L(), k("span", Ui, V(t.label), 1))], 12, Hi))), 128))], 4));
1709
+ })) : (L(), k("span", Wi, V(t.label), 1))], 12, Ui))), 128))], 4));
1710
1710
  }
1711
- }), Wi = { class: "tpl:mb-3.5" }, Gi = ["value"], Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = { class: "tpl:mb-3.5" }, Yi = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, Xi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, Zi = ["checked"], Qi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, $i = ["checked"], ea = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, ta = ["checked"], na = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, ra = ["checked"], ia = { class: "tpl:mb-3.5" }, aa = { class: "tpl:mb-3.5" }, oa = ["value"], sa = { value: "" }, ca = ["value"], la = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, ua = { class: "tpl:mb-3.5" }, da = { class: "tpl:flex tpl:items-stretch" }, fa = ["value"], pa = { class: "tpl:mb-3.5" }, ma = { class: "tpl:flex tpl:items-stretch" }, ha = ["value"], ga = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, _a = { class: "tpl:mb-3.5" }, va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, Sa = ["value", "placeholder"], Ca = ["value", "placeholder"], wa = ["value", "placeholder"], Ta = ["value", "placeholder"], Ea = { class: "tpl:mb-3.5" }, Da = ["value", "placeholder"], Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = { class: "tpl:mb-3.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, ja = ["checked"], Ma = /* @__PURE__ */ N({
1711
+ }), Gi = { class: "tpl:mb-3.5" }, Ki = ["value"], qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = { class: "tpl:mb-3.5" }, Xi = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, Zi = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, Qi = ["checked"], $i = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, ea = ["checked"], ta = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, na = ["checked"], ra = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, ia = ["checked"], aa = { class: "tpl:mb-3.5" }, oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { value: "" }, la = ["value"], ua = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, da = { class: "tpl:mb-3.5" }, fa = { class: "tpl:flex tpl:items-stretch" }, pa = ["value"], ma = { class: "tpl:mb-3.5" }, ha = { class: "tpl:flex tpl:items-stretch" }, ga = ["value"], _a = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, Ca = ["value", "placeholder"], wa = ["value", "placeholder"], Ta = ["value", "placeholder"], Ea = ["value", "placeholder"], Da = { class: "tpl:mb-3.5" }, Oa = ["value", "placeholder"], ka = { class: "tpl:mb-3.5" }, Aa = ["value"], ja = { class: "tpl:mb-3.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, Ma = ["checked"], Na = /* @__PURE__ */ N({
1712
1712
  __name: "CountdownToolbar",
1713
1713
  props: {
1714
1714
  block: {},
@@ -1721,44 +1721,44 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1721
1721
  n("update", { [e]: t });
1722
1722
  }
1723
1723
  return (t, n) => (L(), k(T, null, [
1724
- A("div", Wi, [A("label", { class: F(H(S)) }, V(H(r).countdown.targetDate), 3), A("input", {
1724
+ A("div", Gi, [A("label", { class: F(H(C)) }, V(H(r).countdown.targetDate), 3), A("input", {
1725
1725
  type: "datetime-local",
1726
1726
  class: F(H(x)),
1727
1727
  value: e.block.targetDate,
1728
1728
  onInput: n[0] ||= (e) => i("targetDate", e.target.value)
1729
- }, null, 42, Gi)]),
1730
- A("div", Ki, [A("label", { class: F(H(S)) }, V(H(r).countdown.timezone), 3), A("select", {
1729
+ }, null, 42, Ki)]),
1730
+ A("div", qi, [A("label", { class: F(H(C)) }, V(H(r).countdown.timezone), 3), A("select", {
1731
1731
  class: F(H(x)),
1732
1732
  value: e.block.timezone,
1733
1733
  onChange: n[1] ||= (e) => i("timezone", e.target.value)
1734
- }, [...n[20] ||= [He("<option value=\"UTC\">UTC</option><option value=\"America/New_York\">America/New_York</option><option value=\"America/Chicago\">America/Chicago</option><option value=\"America/Denver\">America/Denver</option><option value=\"America/Los_Angeles\">America/Los_Angeles</option><option value=\"Europe/London\">Europe/London</option><option value=\"Europe/Berlin\">Europe/Berlin</option><option value=\"Europe/Paris\">Europe/Paris</option><option value=\"Europe/Moscow\">Europe/Moscow</option><option value=\"Asia/Dubai\">Asia/Dubai</option><option value=\"Asia/Kolkata\">Asia/Kolkata</option><option value=\"Asia/Shanghai\">Asia/Shanghai</option><option value=\"Asia/Tokyo\">Asia/Tokyo</option><option value=\"Australia/Sydney\">Australia/Sydney</option><option value=\"Pacific/Auckland\">Pacific/Auckland</option>", 15)]], 42, qi)]),
1735
- A("div", Ji, [A("label", { class: F(H(S)) }, V(H(r).countdown.display), 3), A("div", Yi, [
1736
- A("label", Xi, [A("input", {
1734
+ }, [...n[20] ||= [Ue("<option value=\"UTC\">UTC</option><option value=\"America/New_York\">America/New_York</option><option value=\"America/Chicago\">America/Chicago</option><option value=\"America/Denver\">America/Denver</option><option value=\"America/Los_Angeles\">America/Los_Angeles</option><option value=\"Europe/London\">Europe/London</option><option value=\"Europe/Berlin\">Europe/Berlin</option><option value=\"Europe/Paris\">Europe/Paris</option><option value=\"Europe/Moscow\">Europe/Moscow</option><option value=\"Asia/Dubai\">Asia/Dubai</option><option value=\"Asia/Kolkata\">Asia/Kolkata</option><option value=\"Asia/Shanghai\">Asia/Shanghai</option><option value=\"Asia/Tokyo\">Asia/Tokyo</option><option value=\"Australia/Sydney\">Australia/Sydney</option><option value=\"Pacific/Auckland\">Pacific/Auckland</option>", 15)]], 42, Ji)]),
1735
+ A("div", Yi, [A("label", { class: F(H(C)) }, V(H(r).countdown.display), 3), A("div", Xi, [
1736
+ A("label", Zi, [A("input", {
1737
1737
  type: "checkbox",
1738
1738
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1739
1739
  checked: e.block.showDays,
1740
1740
  onChange: n[2] ||= (e) => i("showDays", e.target.checked)
1741
- }, null, 40, Zi), j(" " + V(H(r).countdown.days), 1)]),
1742
- A("label", Qi, [A("input", {
1741
+ }, null, 40, Qi), j(" " + V(H(r).countdown.days), 1)]),
1742
+ A("label", $i, [A("input", {
1743
1743
  type: "checkbox",
1744
1744
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1745
1745
  checked: e.block.showHours,
1746
1746
  onChange: n[3] ||= (e) => i("showHours", e.target.checked)
1747
- }, null, 40, $i), j(" " + V(H(r).countdown.hours), 1)]),
1748
- A("label", ea, [A("input", {
1747
+ }, null, 40, ea), j(" " + V(H(r).countdown.hours), 1)]),
1748
+ A("label", ta, [A("input", {
1749
1749
  type: "checkbox",
1750
1750
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1751
1751
  checked: e.block.showMinutes,
1752
1752
  onChange: n[4] ||= (e) => i("showMinutes", e.target.checked)
1753
- }, null, 40, ta), j(" " + V(H(r).countdown.minutes), 1)]),
1754
- A("label", na, [A("input", {
1753
+ }, null, 40, na), j(" " + V(H(r).countdown.minutes), 1)]),
1754
+ A("label", ra, [A("input", {
1755
1755
  type: "checkbox",
1756
1756
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1757
1757
  checked: e.block.showSeconds,
1758
1758
  onChange: n[5] ||= (e) => i("showSeconds", e.target.checked)
1759
- }, null, 40, ra), j(" " + V(H(r).countdown.seconds), 1)])
1759
+ }, null, 40, ia), j(" " + V(H(r).countdown.seconds), 1)])
1760
1760
  ])]),
1761
- A("div", ia, [A("label", { class: F(H(S)) }, V(H(r).countdown.separator), 3), M(Q, {
1761
+ A("div", aa, [A("label", { class: F(H(C)) }, V(H(r).countdown.separator), 3), M(Q, {
1762
1762
  options: [
1763
1763
  {
1764
1764
  value: ":",
@@ -1776,100 +1776,100 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1776
1776
  "model-value": e.block.separator,
1777
1777
  "onUpdate:modelValue": n[6] ||= (e) => i("separator", e)
1778
1778
  }, null, 8, ["model-value"])]),
1779
- A("div", aa, [A("label", { class: F(H(S)) }, V(H(r).countdown.fontFamily), 3), A("select", {
1779
+ A("div", oa, [A("label", { class: F(H(C)) }, V(H(r).countdown.fontFamily), 3), A("select", {
1780
1780
  class: F(H(x)),
1781
1781
  value: e.block.fontFamily || "",
1782
1782
  onChange: n[7] ||= (e) => i("fontFamily", e.target.value || void 0)
1783
- }, [A("option", sa, V(H(r).countdown.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
1783
+ }, [A("option", ca, V(H(r).countdown.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
1784
1784
  key: e.value,
1785
1785
  value: e.value
1786
- }, V(e.label), 9, ca))), 128))], 42, oa)]),
1787
- A("div", la, [A("div", ua, [A("label", { class: F(H(S)) }, V(H(r).countdown.digitFontSize), 3), A("div", da, [A("input", {
1786
+ }, V(e.label), 9, la))), 128))], 42, sa)]),
1787
+ A("div", ua, [A("div", da, [A("label", { class: F(H(C)) }, V(H(r).countdown.digitFontSize), 3), A("div", fa, [A("input", {
1788
1788
  type: "number",
1789
- class: F(H(C)),
1789
+ class: F(H(S)),
1790
1790
  value: e.block.digitFontSize,
1791
1791
  min: "12",
1792
1792
  max: "72",
1793
1793
  onInput: n[8] ||= (e) => i("digitFontSize", Number(e.target.value))
1794
- }, null, 42, fa), A("span", { class: F(H(w)) }, "px", 2)])]), A("div", pa, [A("label", { class: F(H(S)) }, V(H(r).countdown.labelFontSize), 3), A("div", ma, [A("input", {
1794
+ }, null, 42, pa), A("span", { class: F(H(w)) }, "px", 2)])]), A("div", ma, [A("label", { class: F(H(C)) }, V(H(r).countdown.labelFontSize), 3), A("div", ha, [A("input", {
1795
1795
  type: "number",
1796
- class: F(H(C)),
1796
+ class: F(H(S)),
1797
1797
  value: e.block.labelFontSize,
1798
1798
  min: "8",
1799
1799
  max: "24",
1800
1800
  onInput: n[9] ||= (e) => i("labelFontSize", Number(e.target.value))
1801
- }, null, 42, ha), A("span", { class: F(H(w)) }, "px", 2)])])]),
1802
- A("div", ga, [A("div", _a, [A("label", { class: F(H(S)) }, V(H(r).countdown.digitColor), 3), M(Y, {
1801
+ }, null, 42, ga), A("span", { class: F(H(w)) }, "px", 2)])])]),
1802
+ A("div", _a, [A("div", va, [A("label", { class: F(H(C)) }, V(H(r).countdown.digitColor), 3), M(Y, {
1803
1803
  "model-value": e.block.digitColor,
1804
1804
  "onUpdate:modelValue": n[10] ||= (e) => i("digitColor", e)
1805
- }, null, 8, ["model-value"])]), A("div", va, [A("label", { class: F(H(S)) }, V(H(r).countdown.labelColor), 3), M(Y, {
1805
+ }, null, 8, ["model-value"])]), A("div", ya, [A("label", { class: F(H(C)) }, V(H(r).countdown.labelColor), 3), M(Y, {
1806
1806
  "model-value": e.block.labelColor,
1807
1807
  "onUpdate:modelValue": n[11] ||= (e) => i("labelColor", e)
1808
1808
  }, null, 8, ["model-value"])])]),
1809
- A("div", ya, [A("label", { class: F(H(S)) }, V(H(r).countdown.background), 3), M(Y, {
1809
+ A("div", ba, [A("label", { class: F(H(C)) }, V(H(r).countdown.background), 3), M(Y, {
1810
1810
  "model-value": e.block.backgroundColor,
1811
1811
  "onUpdate:modelValue": n[12] ||= (e) => i("backgroundColor", e)
1812
1812
  }, null, 8, ["model-value"])]),
1813
- A("div", ba, [A("label", { class: F(H(S)) }, V(H(r).countdown.labels), 3), A("div", xa, [
1813
+ A("div", xa, [A("label", { class: F(H(C)) }, V(H(r).countdown.labels), 3), A("div", Sa, [
1814
1814
  A("input", {
1815
1815
  type: "text",
1816
1816
  class: F(H(x)),
1817
1817
  value: e.block.labelDays,
1818
1818
  placeholder: H(r).countdown.days,
1819
1819
  onInput: n[13] ||= (e) => i("labelDays", e.target.value)
1820
- }, null, 42, Sa),
1820
+ }, null, 42, Ca),
1821
1821
  A("input", {
1822
1822
  type: "text",
1823
1823
  class: F(H(x)),
1824
1824
  value: e.block.labelHours,
1825
1825
  placeholder: H(r).countdown.hours,
1826
1826
  onInput: n[14] ||= (e) => i("labelHours", e.target.value)
1827
- }, null, 42, Ca),
1827
+ }, null, 42, wa),
1828
1828
  A("input", {
1829
1829
  type: "text",
1830
1830
  class: F(H(x)),
1831
1831
  value: e.block.labelMinutes,
1832
1832
  placeholder: H(r).countdown.minutes,
1833
1833
  onInput: n[15] ||= (e) => i("labelMinutes", e.target.value)
1834
- }, null, 42, wa),
1834
+ }, null, 42, Ta),
1835
1835
  A("input", {
1836
1836
  type: "text",
1837
1837
  class: F(H(x)),
1838
1838
  value: e.block.labelSeconds,
1839
1839
  placeholder: H(r).countdown.seconds,
1840
1840
  onInput: n[16] ||= (e) => i("labelSeconds", e.target.value)
1841
- }, null, 42, Ta)
1841
+ }, null, 42, Ea)
1842
1842
  ])]),
1843
- A("div", Ea, [A("label", { class: F(H(S)) }, V(H(r).countdown.expiry), 3), A("input", {
1843
+ A("div", Da, [A("label", { class: F(H(C)) }, V(H(r).countdown.expiry), 3), A("input", {
1844
1844
  type: "text",
1845
1845
  class: F(H(x)),
1846
1846
  value: e.block.expiredMessage,
1847
1847
  placeholder: H(r).countdown.expiredMessagePlaceholder,
1848
1848
  onInput: n[17] ||= (e) => i("expiredMessage", e.target.value)
1849
- }, null, 42, Da)]),
1850
- A("div", Oa, [A("label", { class: F(H(S)) }, V(H(r).countdown.expiredImageUrl), 3), A("input", {
1849
+ }, null, 42, Oa)]),
1850
+ A("div", ka, [A("label", { class: F(H(C)) }, V(H(r).countdown.expiredImageUrl), 3), A("input", {
1851
1851
  type: "url",
1852
1852
  class: F(H(x)),
1853
1853
  value: e.block.expiredImageUrl,
1854
1854
  placeholder: "https://...",
1855
1855
  onInput: n[18] ||= (e) => i("expiredImageUrl", e.target.value)
1856
- }, null, 42, ka)]),
1857
- A("label", Aa, [A("input", {
1856
+ }, null, 42, Aa)]),
1857
+ A("label", ja, [A("input", {
1858
1858
  type: "checkbox",
1859
1859
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1860
1860
  checked: e.block.hideOnExpiry,
1861
1861
  onChange: n[19] ||= (e) => i("hideOnExpiry", e.target.checked)
1862
- }, null, 40, ja), j(" " + V(H(r).countdown.hideOnExpiry), 1)])
1862
+ }, null, 40, Ma), j(" " + V(H(r).countdown.hideOnExpiry), 1)])
1863
1863
  ], 64));
1864
1864
  }
1865
- }), Na = ["title"], Pa = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Fa = {
1865
+ }), Pa = ["title"], Fa = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ia = {
1866
1866
  key: 1,
1867
1867
  class: "tpl:text-[var(--tpl-danger)]"
1868
- }, Ia = [
1868
+ }, La = [
1869
1869
  "aria-checked",
1870
1870
  "aria-label",
1871
1871
  "disabled"
1872
- ], La = /* @__PURE__ */ N({
1872
+ ], Ra = /* @__PURE__ */ N({
1873
1873
  __name: "BooleanField",
1874
1874
  props: {
1875
1875
  field: {},
@@ -1882,14 +1882,14 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1882
1882
  return (t, i) => (L(), k("div", {
1883
1883
  class: "tpl:mb-3.5",
1884
1884
  title: e.readOnly ? H(r).customBlocks.dataSource.readOnlyTooltip : void 0
1885
- }, [A("label", { class: F(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [A("span", Pa, [
1885
+ }, [A("label", { class: F(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [A("span", Fa, [
1886
1886
  j(V(e.field.label) + " ", 1),
1887
- e.readOnly ? (L(), D(H(st), {
1887
+ e.readOnly ? (L(), D(H(ct), {
1888
1888
  key: 0,
1889
1889
  size: 12,
1890
1890
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1891
1891
  })) : O("", !0),
1892
- e.field.required ? (L(), k("span", Fa, " * ")) : O("", !0)
1892
+ e.field.required ? (L(), k("span", Ia, " * ")) : O("", !0)
1893
1893
  ]), A("button", {
1894
1894
  type: "button",
1895
1895
  role: "switch",
@@ -1902,9 +1902,9 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1902
1902
  ]),
1903
1903
  disabled: e.readOnly,
1904
1904
  onClick: i[0] ||= (t) => !e.readOnly && n("update:modelValue", !e.modelValue)
1905
- }, [A("span", { class: F(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, Ia)], 2)], 8, Na));
1905
+ }, [A("span", { class: F(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, La)], 2)], 8, Pa));
1906
1906
  }
1907
- }), Ra = { class: "tpl:mb-3.5" }, za = {
1907
+ }), za = { class: "tpl:mb-3.5" }, Ba = {
1908
1908
  key: 1,
1909
1909
  class: "tpl:text-[var(--tpl-danger)]"
1910
1910
  }, $ = /* @__PURE__ */ N({
@@ -1915,17 +1915,17 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1915
1915
  readOnly: { type: Boolean }
1916
1916
  },
1917
1917
  setup(e) {
1918
- return (t, n) => (L(), k("div", Ra, [A("label", { class: F(H(S)) }, [
1918
+ return (t, n) => (L(), k("div", za, [A("label", { class: F(H(C)) }, [
1919
1919
  j(V(e.label) + " ", 1),
1920
- e.readOnly ? (L(), D(H(st), {
1920
+ e.readOnly ? (L(), D(H(ct), {
1921
1921
  key: 0,
1922
1922
  size: 12,
1923
1923
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1924
1924
  })) : O("", !0),
1925
- e.required ? (L(), k("span", za, "*")) : O("", !0)
1926
- ], 2), Ge(t.$slots, "default")]));
1925
+ e.required ? (L(), k("span", Ba, "*")) : O("", !0)
1926
+ ], 2), Ke(t.$slots, "default")]));
1927
1927
  }
1928
- }), Ba = /* @__PURE__ */ N({
1928
+ }), Va = /* @__PURE__ */ N({
1929
1929
  __name: "ColorField",
1930
1930
  props: {
1931
1931
  field: {},
@@ -1959,11 +1959,11 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1959
1959
  "read-only"
1960
1960
  ]));
1961
1961
  }
1962
- }), Va = [
1962
+ }), Ha = [
1963
1963
  "value",
1964
1964
  "placeholder",
1965
1965
  "title"
1966
- ], Ha = ["value", "placeholder"], Ua = /* @__PURE__ */ N({
1966
+ ], Ua = ["value", "placeholder"], Wa = /* @__PURE__ */ N({
1967
1967
  __name: "ImageField",
1968
1968
  props: {
1969
1969
  field: {},
@@ -1990,14 +1990,14 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
1990
1990
  placeholder: e.field.placeholder || "https://...",
1991
1991
  disabled: "",
1992
1992
  title: H(r).customBlocks.dataSource.readOnlyTooltip
1993
- }, null, 10, Va)) : (L(), k("input", {
1993
+ }, null, 10, Ha)) : (L(), k("input", {
1994
1994
  key: 1,
1995
1995
  type: "url",
1996
1996
  class: F(H(x)),
1997
1997
  value: e.modelValue,
1998
1998
  placeholder: e.field.placeholder || "https://...",
1999
1999
  onInput: i[0] ||= (e) => n("update:modelValue", e.target.value)
2000
- }, null, 42, Ha)), a.value && !e.readOnly ? (L(), k("button", {
2000
+ }, null, 42, Ua)), a.value && !e.readOnly ? (L(), k("button", {
2001
2001
  key: 2,
2002
2002
  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:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
2003
2003
  onClick: i[1] ||= (e) => o()
@@ -2012,7 +2012,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2012
2012
  "read-only"
2013
2013
  ]));
2014
2014
  }
2015
- }), Wa = [
2015
+ }), Ga = [
2016
2016
  "value",
2017
2017
  "placeholder",
2018
2018
  "min",
@@ -2020,7 +2020,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2020
2020
  "step",
2021
2021
  "disabled",
2022
2022
  "title"
2023
- ], Ga = /* @__PURE__ */ N({
2023
+ ], Ka = /* @__PURE__ */ N({
2024
2024
  __name: "NumberField",
2025
2025
  props: {
2026
2026
  field: {},
@@ -2046,7 +2046,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2046
2046
  disabled: e.readOnly,
2047
2047
  title: e.readOnly ? H(r).customBlocks.dataSource.readOnlyTooltip : void 0,
2048
2048
  onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
2049
- }, null, 42, Wa)]),
2049
+ }, null, 42, Ga)]),
2050
2050
  _: 1
2051
2051
  }, 8, [
2052
2052
  "label",
@@ -2054,10 +2054,10 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2054
2054
  "read-only"
2055
2055
  ]));
2056
2056
  }
2057
- }), Ka = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, qa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Ja = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Ya = ["title", "onClick"], Xa = {
2057
+ }), qa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ja = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Ya = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Xa = ["title", "onClick"], Za = {
2058
2058
  key: 1,
2059
2059
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2060
- }, Za = /* @__PURE__ */ N({
2060
+ }, Qa = /* @__PURE__ */ N({
2061
2061
  __name: "RepeatableField",
2062
2062
  props: {
2063
2063
  field: {},
@@ -2089,20 +2089,20 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2089
2089
  required: e.field.required,
2090
2090
  "read-only": e.readOnly
2091
2091
  }, {
2092
- default: W(() => [A("div", Ka, [
2092
+ default: W(() => [A("div", qa, [
2093
2093
  (L(!0), k(T, null, z(a.value, (t, n) => (L(), k("div", {
2094
2094
  key: `${e.field.key}-${n}`,
2095
2095
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
2096
- }, [A("div", qa, [A("span", Ja, " #" + V(n + 1), 1), s.value && !e.readOnly ? (L(), k("button", {
2096
+ }, [A("div", Ja, [A("span", Ya, " #" + V(n + 1), 1), s.value && !e.readOnly ? (L(), k("button", {
2097
2097
  key: 0,
2098
2098
  type: "button",
2099
2099
  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:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
2100
2100
  title: H(i).customBlocks.fields.removeItem,
2101
2101
  onClick: (e) => l(n)
2102
- }, [M(H(Re), {
2102
+ }, [M(H(ze), {
2103
2103
  size: 12,
2104
2104
  "stroke-width": 2
2105
- })], 8, Ya)) : O("", !0)]), (L(!0), k(T, null, z(e.field.fields, (r) => (L(), D(B(H(oo)(r.type)), {
2105
+ })], 8, Xa)) : O("", !0)]), (L(!0), k(T, null, z(e.field.fields, (r) => (L(), D(B(H(so)(r.type)), {
2106
2106
  key: r.key,
2107
2107
  field: r,
2108
2108
  "model-value": t[r.key],
@@ -2123,7 +2123,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2123
2123
  size: 14,
2124
2124
  "stroke-width": 2
2125
2125
  }), j(" " + V(H(i).customBlocks.fields.addItem), 1)])) : O("", !0),
2126
- !o.value && !e.readOnly ? (L(), k("p", Xa, V(H(i).customBlocks.fields.maxItemsReached), 1)) : O("", !0)
2126
+ !o.value && !e.readOnly ? (L(), k("p", Za, V(H(i).customBlocks.fields.maxItemsReached), 1)) : O("", !0)
2127
2127
  ])]),
2128
2128
  _: 1
2129
2129
  }, 8, [
@@ -2132,11 +2132,11 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2132
2132
  "read-only"
2133
2133
  ]));
2134
2134
  }
2135
- }), Qa = [
2135
+ }), $a = [
2136
2136
  "value",
2137
2137
  "disabled",
2138
2138
  "title"
2139
- ], $a = ["value"], eo = /* @__PURE__ */ N({
2139
+ ], eo = ["value"], to = /* @__PURE__ */ N({
2140
2140
  __name: "SelectField",
2141
2141
  props: {
2142
2142
  field: {},
@@ -2160,7 +2160,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2160
2160
  }, [(L(!0), k(T, null, z(e.field.options, (e) => (L(), k("option", {
2161
2161
  key: e.value,
2162
2162
  value: e.value
2163
- }, V(e.label), 9, $a))), 128))], 42, Qa)]),
2163
+ }, V(e.label), 9, eo))), 128))], 42, $a)]),
2164
2164
  _: 1
2165
2165
  }, 8, [
2166
2166
  "label",
@@ -2168,11 +2168,11 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2168
2168
  "read-only"
2169
2169
  ]));
2170
2170
  }
2171
- }), to = [
2171
+ }), no = [
2172
2172
  "value",
2173
2173
  "placeholder",
2174
2174
  "title"
2175
- ], no = /* @__PURE__ */ N({
2175
+ ], ro = /* @__PURE__ */ N({
2176
2176
  __name: "TextField",
2177
2177
  props: {
2178
2178
  field: {},
@@ -2195,7 +2195,7 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2195
2195
  placeholder: e.field.placeholder,
2196
2196
  disabled: "",
2197
2197
  title: H(r).customBlocks.dataSource.readOnlyTooltip
2198
- }, null, 10, to)) : (L(), D(X, {
2198
+ }, null, 10, no)) : (L(), D(X, {
2199
2199
  key: 1,
2200
2200
  "model-value": e.modelValue,
2201
2201
  placeholder: e.field.placeholder,
@@ -2208,12 +2208,12 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2208
2208
  "read-only"
2209
2209
  ]));
2210
2210
  }
2211
- }), ro = [
2211
+ }), io = [
2212
2212
  "value",
2213
2213
  "placeholder",
2214
2214
  "title"
2215
- ], io = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", ao = {
2216
- text: no,
2215
+ ], ao = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", oo = {
2216
+ text: ro,
2217
2217
  textarea: /* @__PURE__ */ N({
2218
2218
  __name: "TextareaField",
2219
2219
  props: {
@@ -2236,8 +2236,8 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2236
2236
  rows: "3",
2237
2237
  disabled: "",
2238
2238
  title: H(r).customBlocks.dataSource.readOnlyTooltip,
2239
- class: F(io)
2240
- }, null, 8, ro)) : (L(), D(Rn, {
2239
+ class: F(ao)
2240
+ }, null, 8, io)) : (L(), D(zn, {
2241
2241
  key: 1,
2242
2242
  "model-value": e.modelValue,
2243
2243
  placeholder: e.field.placeholder,
@@ -2251,42 +2251,42 @@ var Tn = { key: 0 }, En = ["aria-label"], Dn = ["data-tooltip"], On = ["data-too
2251
2251
  ]));
2252
2252
  }
2253
2253
  }),
2254
- image: Ua,
2255
- color: Ba,
2256
- number: Ga,
2257
- select: eo,
2258
- boolean: La,
2259
- repeatable: Za
2254
+ image: Wa,
2255
+ color: Va,
2256
+ number: Ka,
2257
+ select: to,
2258
+ boolean: Ra,
2259
+ repeatable: Qa
2260
2260
  };
2261
- function oo(e) {
2262
- return ao[e] ?? no;
2261
+ function so(e) {
2262
+ return oo[e] ?? ro;
2263
2263
  }
2264
2264
  //#endregion
2265
2265
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
2266
- var so = {
2266
+ var co = {
2267
2267
  key: 0,
2268
2268
  class: "tpl:p-4"
2269
- }, co = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, lo = { key: 1 }, uo = {
2269
+ }, lo = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, uo = { key: 1 }, fo = {
2270
2270
  key: 0,
2271
2271
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2272
- }, fo = {
2272
+ }, po = {
2273
2273
  key: 1,
2274
2274
  class: "tpl:mb-4"
2275
- }, po = {
2275
+ }, mo = {
2276
2276
  key: 1,
2277
2277
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2278
- }, mo = {
2278
+ }, ho = {
2279
2279
  key: 0,
2280
2280
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2281
- }, ho = {
2281
+ }, go = {
2282
2282
  key: 2,
2283
2283
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
2284
- }, go = /* @__PURE__ */ N({
2284
+ }, _o = /* @__PURE__ */ N({
2285
2285
  __name: "CustomBlockToolbar",
2286
2286
  props: { block: {} },
2287
2287
  emits: ["updateFieldValues", "updateDataSourceFetched"],
2288
2288
  setup(e, { emit: t }) {
2289
- let n = e, r = t, { t: i } = _(), a = P(g, []), o = E(() => a.find((e) => e.type === n.block.customType)), { isFetching: s, fetchError: c, fetch: l, hasDataSource: u, needsFetch: d } = Ye({
2289
+ let n = e, r = t, { t: i } = _(), a = P(g, []), o = E(() => a.find((e) => e.type === n.block.customType)), { isFetching: s, fetchError: c, fetch: l, hasDataSource: u, needsFetch: d } = Xe({
2290
2290
  definition: o,
2291
2291
  block: E(() => n.block),
2292
2292
  onUpdate: (e, t) => {
@@ -2302,23 +2302,23 @@ var so = {
2302
2302
  [e]: t
2303
2303
  });
2304
2304
  }
2305
- return (t, n) => o.value ? (L(), k("div", lo, [
2306
- o.value.description ? (L(), k("p", uo, V(o.value.description), 1)) : O("", !0),
2307
- H(u) ? (L(), k("div", fo, [H(d) && !H(s) ? (L(), k("button", {
2305
+ return (t, n) => o.value ? (L(), k("div", uo, [
2306
+ o.value.description ? (L(), k("p", fo, V(o.value.description), 1)) : O("", !0),
2307
+ H(u) ? (L(), k("div", po, [H(d) && !H(s) ? (L(), k("button", {
2308
2308
  key: 0,
2309
2309
  type: "button",
2310
2310
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:bg-[var(--tpl-primary)]",
2311
2311
  onClick: n[0] ||= (...e) => H(l) && H(l)(...e)
2312
- }, V(o.value?.dataSource?.label || H(i).customBlocks.dataSource.fetchButton), 1)) : (L(), k("div", po, [H(s) ? (L(), k("div", mo, V(H(i).customBlocks.dataSource.fetching), 1)) : (L(), k("button", {
2312
+ }, V(o.value?.dataSource?.label || H(i).customBlocks.dataSource.fetchButton), 1)) : (L(), k("div", mo, [H(s) ? (L(), k("div", ho, V(H(i).customBlocks.dataSource.fetching), 1)) : (L(), k("button", {
2313
2313
  key: 1,
2314
2314
  type: "button",
2315
2315
  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:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
2316
2316
  onClick: n[1] ||= (...e) => H(l) && H(l)(...e)
2317
- }, [M(H(De), { size: 12 }), j(" " + V(H(i).customBlocks.dataSource.changeButton), 1)]))])), H(c) ? (L(), k("p", ho, [M(H(Se), {
2317
+ }, [M(H(Oe), { size: 12 }), j(" " + V(H(i).customBlocks.dataSource.changeButton), 1)]))])), H(c) ? (L(), k("p", go, [M(H(Ce), {
2318
2318
  size: 14,
2319
2319
  class: "tpl:shrink-0"
2320
2320
  }), j(" " + V(H(i).customBlocks.dataSource.fetchError), 1)])) : O("", !0)])) : O("", !0),
2321
- (L(!0), k(T, null, z(o.value.fields, (t) => (L(), D(B(H(oo)(t.type)), {
2321
+ (L(!0), k(T, null, z(o.value.fields, (t) => (L(), D(B(H(so)(t.type)), {
2322
2322
  key: t.key,
2323
2323
  field: t,
2324
2324
  "model-value": e.block.fieldValues[t.key],
@@ -2330,9 +2330,9 @@ var so = {
2330
2330
  "read-only",
2331
2331
  "onUpdate:modelValue"
2332
2332
  ]))), 128))
2333
- ])) : (L(), k("div", so, [A("p", co, V(H(i).customBlocks.toolbar.noDefinition), 1)]));
2333
+ ])) : (L(), k("div", co, [A("p", lo, V(H(i).customBlocks.toolbar.noDefinition), 1)]));
2334
2334
  }
2335
- }), _o = { class: "tpl:mb-3.5" }, vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:mb-3.5" }, bo = { class: "tpl:flex tpl:items-stretch" }, xo = ["value"], So = /* @__PURE__ */ N({
2335
+ }), vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:mb-3.5" }, bo = { class: "tpl:mb-3.5" }, xo = { class: "tpl:flex tpl:items-stretch" }, So = ["value"], Co = /* @__PURE__ */ N({
2336
2336
  __name: "DividerToolbar",
2337
2337
  props: { block: {} },
2338
2338
  emits: ["update"],
@@ -2342,7 +2342,7 @@ var so = {
2342
2342
  n("update", { [e]: t });
2343
2343
  }
2344
2344
  return (t, n) => (L(), k(T, null, [
2345
- A("div", _o, [A("label", { class: F(H(S)) }, V(H(r).divider.style), 3), M(Q, {
2345
+ A("div", vo, [A("label", { class: F(H(C)) }, V(H(r).divider.style), 3), M(Q, {
2346
2346
  options: [
2347
2347
  {
2348
2348
  value: "solid",
@@ -2360,53 +2360,53 @@ var so = {
2360
2360
  "model-value": e.block.lineStyle,
2361
2361
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2362
2362
  }, null, 8, ["options", "model-value"])]),
2363
- A("div", vo, [A("label", { class: F(H(S)) }, V(H(r).divider.color), 3), M(Y, {
2363
+ A("div", yo, [A("label", { class: F(H(C)) }, V(H(r).divider.color), 3), M(Y, {
2364
2364
  "model-value": e.block.color,
2365
2365
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2366
2366
  }, null, 8, ["model-value"])]),
2367
- A("div", yo, [A("label", { class: F(H(S)) }, V(H(r).divider.thickness), 3), A("div", bo, [A("input", {
2367
+ A("div", bo, [A("label", { class: F(H(C)) }, V(H(r).divider.thickness), 3), A("div", xo, [A("input", {
2368
2368
  type: "number",
2369
- class: F(H(C)),
2369
+ class: F(H(S)),
2370
2370
  value: e.block.thickness,
2371
2371
  min: "1",
2372
2372
  max: "10",
2373
2373
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2374
- }, null, 42, xo), A("span", { class: F(H(w)) }, "px", 2)])])
2374
+ }, null, 42, So), A("span", { class: F(H(w)) }, "px", 2)])])
2375
2375
  ], 64));
2376
2376
  }
2377
- }), Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Eo = /* @__PURE__ */ N({
2377
+ }), wo = { class: "tpl:mb-3.5" }, To = ["value"], Eo = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Do = /* @__PURE__ */ N({
2378
2378
  __name: "HtmlToolbar",
2379
2379
  props: { block: {} },
2380
2380
  emits: ["update"],
2381
2381
  setup(e, { emit: t }) {
2382
2382
  let n = t, { t: r } = _();
2383
- return (t, i) => (L(), k("div", Co, [
2384
- A("label", { class: F(H(S)) }, V(H(r).html.content), 3),
2383
+ return (t, i) => (L(), k("div", wo, [
2384
+ A("label", { class: F(H(C)) }, V(H(r).html.content), 3),
2385
2385
  A("textarea", {
2386
2386
  value: e.block.content,
2387
2387
  placeholder: "<div>...</div>",
2388
2388
  rows: "10",
2389
2389
  class: "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
2390
2390
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2391
- }, null, 40, wo),
2392
- A("p", To, [M(H(Te), {
2391
+ }, null, 40, To),
2392
+ A("p", Eo, [M(H(Ee), {
2393
2393
  size: 12,
2394
2394
  class: "tpl:mt-0.5 tpl:shrink-0"
2395
2395
  }), j(" " + V(H(r).html.sanitizationHint), 1)])
2396
2396
  ]));
2397
2397
  }
2398
- }), Do = { class: "tpl:mb-3.5" }, Oo = {
2398
+ }), Oo = { class: "tpl:mb-3.5" }, ko = {
2399
2399
  key: 0,
2400
2400
  class: "tpl:mb-3.5"
2401
- }, ko = ["value", "placeholder"], Ao = { class: "tpl:mb-3.5" }, jo = { class: "tpl:mb-3.5" }, Mo = ["value"], No = { value: "full" }, Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:mb-3.5" }, Io = {
2401
+ }, Ao = ["value", "placeholder"], jo = { class: "tpl:mb-3.5" }, Mo = { class: "tpl:mb-3.5" }, No = ["value"], Po = { value: "full" }, Fo = { class: "tpl:mb-3.5" }, Io = { class: "tpl:mb-3.5" }, Lo = {
2402
2402
  key: 0,
2403
2403
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
2404
- }, Lo = ["checked"], Ro = /* @__PURE__ */ N({
2404
+ }, Ro = ["checked"], zo = /* @__PURE__ */ N({
2405
2405
  __name: "ImageToolbar",
2406
2406
  props: { block: {} },
2407
2407
  emits: ["update"],
2408
2408
  setup(e, { emit: t }) {
2409
- let n = t, { t: r } = _(), i = P(de, null), a = P(he, Xe.liquid), o = E(() => !!i), s = R(!1), c = R(!1), { start: l } = le(() => {
2409
+ let n = t, { t: r } = _(), i = P(de, null), a = P(he, Ze.liquid), o = E(() => !!i), s = R(!1), c = R(!1), { start: l } = le(() => {
2410
2410
  s.value = !1;
2411
2411
  }, 1e3, { immediate: !1 });
2412
2412
  function u(e, t) {
@@ -2417,8 +2417,8 @@ var so = {
2417
2417
  e && (u("src", e.url), e.alt && (u("alt", e.alt), c.value = !0), s.value = !0, l());
2418
2418
  }
2419
2419
  return (t, n) => (L(), k(T, null, [
2420
- A("div", Do, [
2421
- A("label", { class: F(H(S)) }, V(H(r).image.imageUrl), 3),
2420
+ A("div", Oo, [
2421
+ A("label", { class: F(H(C)) }, V(H(r).image.imageUrl), 3),
2422
2422
  M(X, {
2423
2423
  "model-value": e.block.src,
2424
2424
  type: "url",
@@ -2444,14 +2444,14 @@ var so = {
2444
2444
  "stroke-width": 1.5
2445
2445
  }), j(" " + V(H(r).image.browseMedia), 1)])) : O("", !0)
2446
2446
  ]),
2447
- H(Ze)(e.block.src, H(a)) ? (L(), k("div", Oo, [A("label", { class: F(H(S)) }, [j(V(H(r).image.placeholderUrl) + " ", 1), n[7] ||= A("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, V("(optional)"), -1)], 2), A("input", {
2447
+ H(Qe)(e.block.src, H(a)) ? (L(), k("div", ko, [A("label", { class: F(H(C)) }, [j(V(H(r).image.placeholderUrl) + " ", 1), n[7] ||= A("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, V("(optional)"), -1)], 2), A("input", {
2448
2448
  type: "url",
2449
2449
  class: F(H(x)),
2450
2450
  value: e.block.placeholderUrl || "",
2451
2451
  placeholder: H(r).image.placeholderUrlPlaceholder,
2452
2452
  onInput: n[1] ||= (e) => u("placeholderUrl", e.target.value)
2453
- }, null, 42, ko)])) : O("", !0),
2454
- A("div", Ao, [A("label", { class: F(H(S)) }, V(H(r).image.altText), 3), M(X, {
2453
+ }, null, 42, Ao)])) : O("", !0),
2454
+ A("div", jo, [A("label", { class: F(H(C)) }, V(H(r).image.altText), 3), M(X, {
2455
2455
  "model-value": e.block.alt,
2456
2456
  type: "text",
2457
2457
  placeholder: H(r).image.altTextPlaceholder,
@@ -2462,17 +2462,17 @@ var so = {
2462
2462
  "placeholder",
2463
2463
  "pulse"
2464
2464
  ])]),
2465
- A("div", jo, [A("label", { class: F(H(S)) }, V(H(r).image.width), 3), A("select", {
2465
+ A("div", Mo, [A("label", { class: F(H(C)) }, V(H(r).image.width), 3), A("select", {
2466
2466
  class: F(H(x)),
2467
2467
  value: e.block.width,
2468
2468
  onChange: n[3] ||= (e) => u("width", e.target.value === "full" ? "full" : Number(e.target.value))
2469
2469
  }, [
2470
- A("option", No, V(H(r).image.fullWidth), 1),
2470
+ A("option", Po, V(H(r).image.fullWidth), 1),
2471
2471
  n[8] ||= A("option", { value: "300" }, "300px", -1),
2472
2472
  n[9] ||= A("option", { value: "400" }, "400px", -1),
2473
2473
  n[10] ||= A("option", { value: "500" }, "500px", -1)
2474
- ], 42, Mo)]),
2475
- A("div", Po, [A("label", { class: F(H(S)) }, V(H(r).title.align), 3), M(Q, {
2474
+ ], 42, No)]),
2475
+ A("div", Fo, [A("label", { class: F(H(C)) }, V(H(r).title.align), 3), M(Q, {
2476
2476
  options: [
2477
2477
  {
2478
2478
  value: "left",
@@ -2490,28 +2490,28 @@ var so = {
2490
2490
  "model-value": e.block.align,
2491
2491
  "onUpdate:modelValue": n[4] ||= (e) => u("align", e)
2492
2492
  }, null, 8, ["options", "model-value"])]),
2493
- A("div", Fo, [
2494
- A("label", { class: F(H(S)) }, V(H(r).image.linkUrl), 3),
2493
+ A("div", Io, [
2494
+ A("label", { class: F(H(C)) }, V(H(r).image.linkUrl), 3),
2495
2495
  M(X, {
2496
2496
  "model-value": e.block.linkUrl || "",
2497
2497
  type: "url",
2498
2498
  placeholder: H(r).image.imageUrlPlaceholder,
2499
2499
  "onUpdate:modelValue": n[5] ||= (e) => u("linkUrl", e)
2500
2500
  }, null, 8, ["model-value", "placeholder"]),
2501
- e.block.linkUrl ? (L(), k("label", Io, [A("input", {
2501
+ e.block.linkUrl ? (L(), k("label", Lo, [A("input", {
2502
2502
  type: "checkbox",
2503
2503
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2504
2504
  checked: e.block.linkOpenInNewTab ?? !1,
2505
2505
  onChange: n[6] ||= (e) => u("linkOpenInNewTab", e.target.checked)
2506
- }, null, 40, Lo), j(" " + V(H(r).image.openInNewTab), 1)])) : O("", !0)
2506
+ }, null, 40, Ro), j(" " + V(H(r).image.openInNewTab), 1)])) : O("", !0)
2507
2507
  ])
2508
2508
  ], 64));
2509
2509
  }
2510
- }), zo = { class: "tpl:mb-3.5" }, Bo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Vo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ho = [
2510
+ }), Bo = { class: "tpl:mb-3.5" }, Vo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ho = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Uo = [
2511
2511
  "value",
2512
2512
  "placeholder",
2513
2513
  "onInput"
2514
- ], Uo = ["title", "onClick"], Wo = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Go = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1" }, Ko = ["checked", "onChange"], qo = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1" }, Jo = ["checked", "onChange"], Yo = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1" }, Xo = ["checked", "onChange"], Zo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Qo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, $o = { class: "tpl:mb-3.5" }, es = ["value"], ts = { value: "" }, ns = ["value"], rs = { class: "tpl:mb-3.5" }, is = { class: "tpl:flex tpl:items-stretch" }, as = ["value"], os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:mb-3.5" }, cs = { class: "tpl:mb-3.5" }, ls = { class: "tpl:mb-3.5" }, us = ["value"], ds = { class: "tpl:mb-3.5" }, fs = { class: "tpl:mb-3.5" }, ps = { class: "tpl:flex tpl:items-stretch" }, ms = ["value"], hs = /* @__PURE__ */ N({
2514
+ ], Wo = ["title", "onClick"], Go = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ko = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1" }, qo = ["checked", "onChange"], Jo = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1" }, Yo = ["checked", "onChange"], Xo = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1" }, Zo = ["checked", "onChange"], Qo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, $o = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, es = { class: "tpl:mb-3.5" }, ts = ["value"], ns = { value: "" }, rs = ["value"], is = { class: "tpl:mb-3.5" }, as = { class: "tpl:flex tpl:items-stretch" }, os = ["value"], ss = { class: "tpl:mb-3.5" }, cs = { class: "tpl:mb-3.5" }, ls = { class: "tpl:mb-3.5" }, us = { class: "tpl:mb-3.5" }, ds = ["value"], fs = { class: "tpl:mb-3.5" }, ps = { class: "tpl:mb-3.5" }, ms = { class: "tpl:flex tpl:items-stretch" }, hs = ["value"], gs = /* @__PURE__ */ N({
2515
2515
  __name: "MenuToolbar",
2516
2516
  props: {
2517
2517
  block: {},
@@ -2525,7 +2525,7 @@ var so = {
2525
2525
  }
2526
2526
  function o() {
2527
2527
  let e = {
2528
- id: et(),
2528
+ id: tt(),
2529
2529
  text: "",
2530
2530
  url: "",
2531
2531
  openInNewTab: !1,
@@ -2544,24 +2544,24 @@ var so = {
2544
2544
  r("update", { items: n.block.items.filter((t) => t.id !== e) });
2545
2545
  }
2546
2546
  return (t, n) => (L(), k(T, null, [
2547
- A("div", zo, [A("label", { class: F(H(S)) }, V(H(i).menu.items), 3), A("div", Bo, [(L(!0), k(T, null, z(e.block.items, (t) => (L(), k("div", {
2547
+ A("div", Bo, [A("label", { class: F(H(C)) }, V(H(i).menu.items), 3), A("div", Vo, [(L(!0), k(T, null, z(e.block.items, (t) => (L(), k("div", {
2548
2548
  key: t.id,
2549
2549
  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"
2550
2550
  }, [
2551
- A("div", Vo, [A("input", {
2551
+ A("div", Ho, [A("input", {
2552
2552
  type: "text",
2553
2553
  class: F([H(x), "tpl:flex-1"]),
2554
2554
  value: t.text,
2555
2555
  placeholder: H(i).menu.text,
2556
2556
  onInput: (e) => s(t.id, "text", e.target.value)
2557
- }, null, 42, Ho), A("button", {
2557
+ }, null, 42, Uo), A("button", {
2558
2558
  class: "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
2559
2559
  title: H(i).menu.removeItem,
2560
2560
  onClick: (e) => c(t.id)
2561
- }, [M(H(ze), {
2561
+ }, [M(H(Be), {
2562
2562
  size: 14,
2563
2563
  "stroke-width": 2
2564
- })], 8, Uo)]),
2564
+ })], 8, Wo)]),
2565
2565
  M(X, {
2566
2566
  "model-value": t.url,
2567
2567
  type: "url",
@@ -2572,27 +2572,27 @@ var so = {
2572
2572
  "placeholder",
2573
2573
  "onUpdate:modelValue"
2574
2574
  ]),
2575
- A("div", Wo, [
2576
- A("label", Go, [A("input", {
2575
+ A("div", Go, [
2576
+ A("label", Ko, [A("input", {
2577
2577
  type: "checkbox",
2578
2578
  checked: t.openInNewTab,
2579
2579
  class: "tpl:accent-[var(--tpl-primary)]",
2580
2580
  onChange: (e) => s(t.id, "openInNewTab", e.target.checked)
2581
- }, null, 40, Ko), j(" " + V(H(i).menu.openInNewTab), 1)]),
2582
- A("label", qo, [A("input", {
2581
+ }, null, 40, qo), j(" " + V(H(i).menu.openInNewTab), 1)]),
2582
+ A("label", Jo, [A("input", {
2583
2583
  type: "checkbox",
2584
2584
  checked: t.bold,
2585
2585
  class: "tpl:accent-[var(--tpl-primary)]",
2586
2586
  onChange: (e) => s(t.id, "bold", e.target.checked)
2587
- }, null, 40, Jo), j(" " + V(H(i).menu.bold), 1)]),
2588
- A("label", Yo, [A("input", {
2587
+ }, null, 40, Yo), j(" " + V(H(i).menu.bold), 1)]),
2588
+ A("label", Xo, [A("input", {
2589
2589
  type: "checkbox",
2590
2590
  checked: t.underline,
2591
2591
  class: "tpl:accent-[var(--tpl-primary)]",
2592
2592
  onChange: (e) => s(t.id, "underline", e.target.checked)
2593
- }, null, 40, Xo), j(" " + V(H(i).menu.underline), 1)])
2593
+ }, null, 40, Zo), j(" " + V(H(i).menu.underline), 1)])
2594
2594
  ]),
2595
- A("div", Zo, [A("label", Qo, V(H(i).menu.color), 1), M(Y, {
2595
+ A("div", Qo, [A("label", $o, V(H(i).menu.color), 1), M(Y, {
2596
2596
  "swatch-only": "",
2597
2597
  "model-value": t.color || e.block.linkColor || e.block.color,
2598
2598
  "onUpdate:modelValue": (e) => s(t.id, "color", e)
@@ -2604,72 +2604,72 @@ var so = {
2604
2604
  size: 14,
2605
2605
  "stroke-width": 2
2606
2606
  }), j(" " + V(H(i).menu.addItem), 1)])])]),
2607
- A("div", $o, [A("label", { class: F(H(S)) }, V(H(i).menu.fontFamily), 3), A("select", {
2607
+ A("div", es, [A("label", { class: F(H(C)) }, V(H(i).menu.fontFamily), 3), A("select", {
2608
2608
  class: F(H(x)),
2609
2609
  value: e.block.fontFamily || "",
2610
2610
  onChange: n[0] ||= (e) => a("fontFamily", e.target.value || void 0)
2611
- }, [A("option", ts, V(H(i).title.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
2611
+ }, [A("option", ns, V(H(i).title.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
2612
2612
  key: e.value,
2613
2613
  value: e.value
2614
- }, V(e.label), 9, ns))), 128))], 42, es)]),
2615
- A("div", rs, [A("label", { class: F(H(S)) }, V(H(i).menu.fontSize), 3), A("div", is, [A("input", {
2614
+ }, V(e.label), 9, rs))), 128))], 42, ts)]),
2615
+ A("div", is, [A("label", { class: F(H(C)) }, V(H(i).menu.fontSize), 3), A("div", as, [A("input", {
2616
2616
  type: "number",
2617
- class: F(H(C)),
2617
+ class: F(H(S)),
2618
2618
  value: e.block.fontSize,
2619
2619
  min: "8",
2620
2620
  max: "48",
2621
2621
  onInput: n[1] ||= (e) => a("fontSize", Number(e.target.value))
2622
- }, null, 42, as), A("span", { class: F(H(w)) }, "px", 2)])]),
2623
- A("div", os, [A("label", { class: F(H(S)) }, V(H(i).menu.color), 3), M(Y, {
2622
+ }, null, 42, os), A("span", { class: F(H(w)) }, "px", 2)])]),
2623
+ A("div", ss, [A("label", { class: F(H(C)) }, V(H(i).menu.color), 3), M(Y, {
2624
2624
  "model-value": e.block.color,
2625
2625
  "onUpdate:modelValue": n[2] ||= (e) => a("color", e)
2626
2626
  }, null, 8, ["model-value"])]),
2627
- A("div", ss, [A("label", { class: F(H(S)) }, V(H(i).menu.linkColor), 3), M(Y, {
2627
+ A("div", cs, [A("label", { class: F(H(C)) }, V(H(i).menu.linkColor), 3), M(Y, {
2628
2628
  "model-value": e.block.linkColor || e.block.color,
2629
2629
  "onUpdate:modelValue": n[3] ||= (e) => a("linkColor", e || void 0)
2630
2630
  }, null, 8, ["model-value"])]),
2631
- A("div", cs, [A("label", { class: F(H(S)) }, V(H(i).menu.textAlign), 3), M(Q, {
2631
+ A("div", ls, [A("label", { class: F(H(C)) }, V(H(i).menu.textAlign), 3), M(Q, {
2632
2632
  options: [
2633
2633
  {
2634
2634
  value: "left",
2635
2635
  label: H(i).title.alignLeft,
2636
- icon: H(Me)
2636
+ icon: H(Fe)
2637
2637
  },
2638
2638
  {
2639
2639
  value: "center",
2640
2640
  label: H(i).title.alignCenter,
2641
- icon: H(Pe)
2641
+ icon: H(Me)
2642
2642
  },
2643
2643
  {
2644
2644
  value: "right",
2645
2645
  label: H(i).title.alignRight,
2646
- icon: H(Ie)
2646
+ icon: H(Pe)
2647
2647
  }
2648
2648
  ],
2649
2649
  "model-value": e.block.textAlign,
2650
2650
  "onUpdate:modelValue": n[4] ||= (e) => a("textAlign", e)
2651
2651
  }, null, 8, ["options", "model-value"])]),
2652
- A("div", ls, [A("label", { class: F(H(S)) }, V(H(i).menu.separator), 3), A("input", {
2652
+ A("div", us, [A("label", { class: F(H(C)) }, V(H(i).menu.separator), 3), A("input", {
2653
2653
  type: "text",
2654
2654
  class: F(H(x)),
2655
2655
  value: e.block.separator,
2656
2656
  onInput: n[5] ||= (e) => a("separator", e.target.value)
2657
- }, null, 42, us)]),
2658
- A("div", ds, [A("label", { class: F(H(S)) }, V(H(i).menu.separatorColor), 3), M(Y, {
2657
+ }, null, 42, ds)]),
2658
+ A("div", fs, [A("label", { class: F(H(C)) }, V(H(i).menu.separatorColor), 3), M(Y, {
2659
2659
  "model-value": e.block.separatorColor,
2660
2660
  "onUpdate:modelValue": n[6] ||= (e) => a("separatorColor", e)
2661
2661
  }, null, 8, ["model-value"])]),
2662
- A("div", fs, [A("label", { class: F(H(S)) }, V(H(i).menu.spacing), 3), A("div", ps, [A("input", {
2662
+ A("div", ps, [A("label", { class: F(H(C)) }, V(H(i).menu.spacing), 3), A("div", ms, [A("input", {
2663
2663
  type: "number",
2664
- class: F(H(C)),
2664
+ class: F(H(S)),
2665
2665
  value: e.block.spacing,
2666
2666
  min: "0",
2667
2667
  max: "50",
2668
2668
  onInput: n[7] ||= (e) => a("spacing", Number(e.target.value))
2669
- }, null, 42, ms), A("span", { class: F(H(w)) }, "px", 2)])])
2669
+ }, null, 42, hs), A("span", { class: F(H(w)) }, "px", 2)])])
2670
2670
  ], 64));
2671
2671
  }
2672
- }), gs = { class: "tpl:mb-3.5" }, _s = ["value"], vs = ["value"], ys = /* @__PURE__ */ N({
2672
+ }), _s = { class: "tpl:mb-3.5" }, vs = ["value"], ys = ["value"], bs = /* @__PURE__ */ N({
2673
2673
  __name: "SectionToolbar",
2674
2674
  props: { block: {} },
2675
2675
  emits: ["update"],
@@ -2696,16 +2696,16 @@ var so = {
2696
2696
  label: r.section.ratio21
2697
2697
  }
2698
2698
  ]);
2699
- return (t, a) => (L(), k("div", gs, [A("label", { class: F(H(S)) }, V(H(r).section.columns), 3), A("select", {
2699
+ return (t, a) => (L(), k("div", _s, [A("label", { class: F(H(C)) }, V(H(r).section.columns), 3), A("select", {
2700
2700
  class: F(H(x)),
2701
2701
  value: e.block.columns,
2702
2702
  onChange: a[0] ||= (e) => n("update", { columns: e.target.value })
2703
2703
  }, [(L(!0), k(T, null, z(i.value, (e) => (L(), k("option", {
2704
2704
  key: e.value,
2705
2705
  value: e.value
2706
- }, V(e.label), 9, vs))), 128))], 42, _s)]));
2706
+ }, V(e.label), 9, ys))), 128))], 42, vs)]));
2707
2707
  }
2708
- }), bs = { class: "tpl:mb-3.5" }, xs = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ss = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Cs = ["value", "onChange"], ws = ["value"], Ts = ["title", "onClick"], Es = { class: "tpl:mb-3.5" }, Ds = { class: "tpl:mb-3.5" }, Os = { class: "tpl:mb-3.5" }, ks = { class: "tpl:flex tpl:items-stretch" }, As = ["value"], js = { class: "tpl:mb-3.5" }, Ms = /* @__PURE__ */ N({
2708
+ }), xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Cs = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ws = ["value", "onChange"], Ts = ["value"], Es = ["title", "onClick"], Ds = { class: "tpl:mb-3.5" }, Os = { class: "tpl:mb-3.5" }, ks = { class: "tpl:mb-3.5" }, As = { class: "tpl:flex tpl:items-stretch" }, js = ["value"], Ms = { class: "tpl:mb-3.5" }, Ns = /* @__PURE__ */ N({
2709
2709
  __name: "SocialToolbar",
2710
2710
  props: { block: {} },
2711
2711
  emits: ["update"],
@@ -2716,7 +2716,7 @@ var so = {
2716
2716
  }
2717
2717
  function o() {
2718
2718
  let e = {
2719
- id: et(),
2719
+ id: tt(),
2720
2720
  platform: "facebook",
2721
2721
  url: ""
2722
2722
  };
@@ -2732,24 +2732,24 @@ var so = {
2732
2732
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2733
2733
  }
2734
2734
  return (t, n) => (L(), k(T, null, [
2735
- A("div", bs, [A("label", { class: F(H(S)) }, V(H(i).social.icons), 3), A("div", xs, [(L(!0), k(T, null, z(e.block.icons, (e) => (L(), k("div", {
2735
+ A("div", xs, [A("label", { class: F(H(C)) }, V(H(i).social.icons), 3), A("div", Ss, [(L(!0), k(T, null, z(e.block.icons, (e) => (L(), k("div", {
2736
2736
  key: e.id,
2737
2737
  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"
2738
- }, [A("div", Ss, [A("select", {
2738
+ }, [A("div", Cs, [A("select", {
2739
2739
  class: F([H(x), "tpl:flex-1"]),
2740
2740
  value: e.platform,
2741
2741
  onChange: (t) => s(e.id, "platform", t.target.value)
2742
2742
  }, [(L(!0), k(T, null, z(H(ae), (e) => (L(), k("option", {
2743
2743
  key: e,
2744
2744
  value: e
2745
- }, V(H(ne)[e].name), 9, ws))), 128))], 42, Cs), A("button", {
2745
+ }, V(H(ne)[e].name), 9, Ts))), 128))], 42, ws), A("button", {
2746
2746
  class: "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
2747
2747
  title: H(i).social.removeIcon,
2748
2748
  onClick: (t) => c(e.id)
2749
- }, [M(H(ze), {
2749
+ }, [M(H(Be), {
2750
2750
  size: 14,
2751
2751
  "stroke-width": 2
2752
- })], 8, Ts)]), M(X, {
2752
+ })], 8, Es)]), M(X, {
2753
2753
  "model-value": e.url,
2754
2754
  type: "url",
2755
2755
  placeholder: H(i).social.urlPlaceholder,
@@ -2765,7 +2765,7 @@ var so = {
2765
2765
  size: 14,
2766
2766
  "stroke-width": 2
2767
2767
  }), j(" " + V(H(i).social.addIcon), 1)])])]),
2768
- A("div", Es, [A("label", { class: F(H(S)) }, V(H(i).social.style), 3), M(Q, {
2768
+ A("div", Ds, [A("label", { class: F(H(C)) }, V(H(i).social.style), 3), M(Q, {
2769
2769
  options: [
2770
2770
  {
2771
2771
  value: "solid",
@@ -2791,7 +2791,7 @@ var so = {
2791
2791
  "model-value": e.block.iconStyle,
2792
2792
  "onUpdate:modelValue": n[0] ||= (e) => a("iconStyle", e)
2793
2793
  }, null, 8, ["options", "model-value"])]),
2794
- A("div", Ds, [A("label", { class: F(H(S)) }, V(H(i).social.size), 3), M(Q, {
2794
+ A("div", Os, [A("label", { class: F(H(C)) }, V(H(i).social.size), 3), M(Q, {
2795
2795
  options: [
2796
2796
  {
2797
2797
  value: "small",
@@ -2809,30 +2809,30 @@ var so = {
2809
2809
  "model-value": e.block.iconSize,
2810
2810
  "onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
2811
2811
  }, null, 8, ["options", "model-value"])]),
2812
- A("div", Os, [A("label", { class: F(H(S)) }, V(H(i).social.spacing), 3), A("div", ks, [A("input", {
2812
+ A("div", ks, [A("label", { class: F(H(C)) }, V(H(i).social.spacing), 3), A("div", As, [A("input", {
2813
2813
  type: "number",
2814
- class: F(H(C)),
2814
+ class: F(H(S)),
2815
2815
  value: e.block.spacing,
2816
2816
  min: "0",
2817
2817
  max: "50",
2818
2818
  onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
2819
- }, null, 42, As), A("span", { class: F(H(w)) }, "px", 2)])]),
2820
- A("div", js, [A("label", { class: F(H(S)) }, V(H(i).social.align), 3), M(Q, {
2819
+ }, null, 42, js), A("span", { class: F(H(w)) }, "px", 2)])]),
2820
+ A("div", Ms, [A("label", { class: F(H(C)) }, V(H(i).social.align), 3), M(Q, {
2821
2821
  options: [
2822
2822
  {
2823
2823
  value: "left",
2824
2824
  label: H(i).title.alignLeft,
2825
- icon: H(Me)
2825
+ icon: H(Fe)
2826
2826
  },
2827
2827
  {
2828
2828
  value: "center",
2829
2829
  label: H(i).title.alignCenter,
2830
- icon: H(Pe)
2830
+ icon: H(Me)
2831
2831
  },
2832
2832
  {
2833
2833
  value: "right",
2834
2834
  label: H(i).title.alignRight,
2835
- icon: H(Ie)
2835
+ icon: H(Pe)
2836
2836
  }
2837
2837
  ],
2838
2838
  "model-value": e.block.align,
@@ -2840,22 +2840,22 @@ var so = {
2840
2840
  }, null, 8, ["options", "model-value"])])
2841
2841
  ], 64));
2842
2842
  }
2843
- }), Ns = { class: "tpl:mb-3.5" }, Ps = { class: "tpl:flex tpl:items-stretch" }, Fs = ["value"], Is = ["value"], Ls = /* @__PURE__ */ N({
2843
+ }), Ps = { class: "tpl:mb-3.5" }, Fs = { class: "tpl:flex tpl:items-stretch" }, Is = ["value"], Ls = ["value"], Rs = /* @__PURE__ */ N({
2844
2844
  __name: "SpacerToolbar",
2845
2845
  props: { block: {} },
2846
2846
  emits: ["update"],
2847
2847
  setup(e, { emit: t }) {
2848
2848
  let n = t, { t: r } = _();
2849
- return (t, i) => (L(), k("div", Ns, [
2850
- A("label", { class: F(H(S)) }, V(H(r).spacer.height), 3),
2851
- A("div", Ps, [A("input", {
2849
+ return (t, i) => (L(), k("div", Ps, [
2850
+ A("label", { class: F(H(C)) }, V(H(r).spacer.height), 3),
2851
+ A("div", Fs, [A("input", {
2852
2852
  type: "number",
2853
- class: F(H(C)),
2853
+ class: F(H(S)),
2854
2854
  value: e.block.height,
2855
2855
  min: "10",
2856
2856
  max: "100",
2857
2857
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2858
- }, null, 42, Fs), A("span", { class: F(H(w)) }, "px", 2)]),
2858
+ }, null, 42, Is), A("span", { class: F(H(w)) }, "px", 2)]),
2859
2859
  A("input", {
2860
2860
  type: "range",
2861
2861
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2863,13 +2863,13 @@ var so = {
2863
2863
  min: "10",
2864
2864
  max: "100",
2865
2865
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2866
- }, null, 40, Is)
2866
+ }, null, 40, Ls)
2867
2867
  ]));
2868
2868
  }
2869
- }), Rs = { class: "tpl:mb-3.5" }, zs = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Bs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Vs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Hs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Us = ["disabled"], Ws = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Gs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ks = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, qs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Js = ["disabled"], Ys = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Xs = { class: "tpl:mb-3.5" }, Zs = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qs = ["checked"], $s = {
2869
+ }), zs = { class: "tpl:mb-3.5" }, Bs = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Vs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Hs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Us = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ws = ["disabled"], Gs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ks = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, qs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Js = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ys = ["disabled"], Xs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Zs = { class: "tpl:mb-3.5" }, Qs = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, $s = ["checked"], ec = {
2870
2870
  key: 0,
2871
2871
  class: "tpl:mb-3.5"
2872
- }, ec = { class: "tpl:mb-3.5" }, tc = { class: "tpl:mb-3.5" }, nc = { class: "tpl:flex tpl:items-stretch" }, rc = ["value"], ic = { class: "tpl:mb-3.5" }, ac = { class: "tpl:flex tpl:items-stretch" }, oc = ["value"], sc = { class: "tpl:mb-3.5" }, cc = ["value"], lc = { value: "" }, uc = ["value"], dc = { class: "tpl:mb-3.5" }, fc = { class: "tpl:flex tpl:items-stretch" }, pc = ["value"], mc = { class: "tpl:mb-3.5" }, hc = { class: "tpl:mb-3.5" }, gc = /* @__PURE__ */ N({
2872
+ }, tc = { class: "tpl:mb-3.5" }, nc = { class: "tpl:mb-3.5" }, rc = { class: "tpl:flex tpl:items-stretch" }, ic = ["value"], ac = { class: "tpl:mb-3.5" }, oc = { class: "tpl:flex tpl:items-stretch" }, sc = ["value"], cc = { class: "tpl:mb-3.5" }, lc = ["value"], uc = { value: "" }, dc = ["value"], fc = { class: "tpl:mb-3.5" }, pc = { class: "tpl:flex tpl:items-stretch" }, mc = ["value"], hc = { class: "tpl:mb-3.5" }, gc = { class: "tpl:mb-3.5" }, _c = /* @__PURE__ */ N({
2873
2873
  __name: "TableToolbar",
2874
2874
  props: {
2875
2875
  block: {},
@@ -2883,9 +2883,9 @@ var so = {
2883
2883
  }
2884
2884
  function s() {
2885
2885
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2886
- id: et(),
2886
+ id: tt(),
2887
2887
  cells: Array.from({ length: e }, () => ({
2888
- id: et(),
2888
+ id: tt(),
2889
2889
  content: ""
2890
2890
  }))
2891
2891
  };
@@ -2898,7 +2898,7 @@ var so = {
2898
2898
  r("update", { rows: n.block.rows.map((e) => ({
2899
2899
  ...e,
2900
2900
  cells: [...e.cells, {
2901
- id: et(),
2901
+ id: tt(),
2902
2902
  content: ""
2903
2903
  }]
2904
2904
  })) });
@@ -2910,7 +2910,7 @@ var so = {
2910
2910
  })) });
2911
2911
  }
2912
2912
  return (t, n) => (L(), k(T, null, [
2913
- A("div", Rs, [A("label", { class: F(H(S)) }, V(H(i).table.dimensions), 3), A("div", zs, [A("div", Bs, [A("span", Vs, V(H(i).table.rows), 1), A("div", Hs, [
2913
+ A("div", zs, [A("label", { class: F(H(C)) }, V(H(i).table.dimensions), 3), A("div", Bs, [A("div", Vs, [A("span", Hs, V(H(i).table.rows), 1), A("div", Us, [
2914
2914
  A("button", {
2915
2915
  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:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
2916
2916
  disabled: e.block.rows.length <= 1,
@@ -2918,8 +2918,8 @@ var so = {
2918
2918
  }, [M(H(b), {
2919
2919
  size: 12,
2920
2920
  "stroke-width": 2
2921
- })], 8, Us),
2922
- A("span", Ws, V(e.block.rows.length), 1),
2921
+ })], 8, Ws),
2922
+ A("span", Gs, V(e.block.rows.length), 1),
2923
2923
  A("button", {
2924
2924
  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:duration-150 tpl:hover:text-[var(--tpl-primary)]",
2925
2925
  onClick: s
@@ -2927,7 +2927,7 @@ var so = {
2927
2927
  size: 12,
2928
2928
  "stroke-width": 2
2929
2929
  })])
2930
- ])]), A("div", Gs, [A("span", Ks, V(H(i).table.columns), 1), A("div", qs, [
2930
+ ])]), A("div", Ks, [A("span", qs, V(H(i).table.columns), 1), A("div", Js, [
2931
2931
  A("button", {
2932
2932
  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:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
2933
2933
  disabled: a.value <= 1,
@@ -2935,8 +2935,8 @@ var so = {
2935
2935
  }, [M(H(b), {
2936
2936
  size: 12,
2937
2937
  "stroke-width": 2
2938
- })], 8, Js),
2939
- A("span", Ys, V(a.value), 1),
2938
+ })], 8, Ys),
2939
+ A("span", Xs, V(a.value), 1),
2940
2940
  A("button", {
2941
2941
  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:duration-150 tpl:hover:text-[var(--tpl-primary)]",
2942
2942
  onClick: l
@@ -2945,73 +2945,73 @@ var so = {
2945
2945
  "stroke-width": 2
2946
2946
  })])
2947
2947
  ])])])]),
2948
- A("div", Xs, [A("label", Zs, [A("input", {
2948
+ A("div", Zs, [A("label", Qs, [A("input", {
2949
2949
  type: "checkbox",
2950
2950
  checked: e.block.hasHeaderRow,
2951
2951
  class: "tpl:accent-[var(--tpl-primary)]",
2952
2952
  onChange: n[2] ||= (e) => o("hasHeaderRow", e.target.checked)
2953
- }, null, 40, Qs), j(" " + V(H(i).table.hasHeaderRow), 1)])]),
2954
- e.block.hasHeaderRow ? (L(), k("div", $s, [A("label", { class: F(H(S)) }, V(H(i).table.headerBackgroundColor), 3), M(Y, {
2953
+ }, null, 40, $s), j(" " + V(H(i).table.hasHeaderRow), 1)])]),
2954
+ e.block.hasHeaderRow ? (L(), k("div", ec, [A("label", { class: F(H(C)) }, V(H(i).table.headerBackgroundColor), 3), M(Y, {
2955
2955
  "model-value": e.block.headerBackgroundColor || H("#f2f2f2"),
2956
2956
  placeholder: H(i).table.noHeaderBg,
2957
2957
  "onUpdate:modelValue": n[3] ||= (e) => o("headerBackgroundColor", e || null)
2958
2958
  }, null, 8, ["model-value", "placeholder"])])) : O("", !0),
2959
- A("div", ec, [A("label", { class: F(H(S)) }, V(H(i).table.borderColor), 3), M(Y, {
2959
+ A("div", tc, [A("label", { class: F(H(C)) }, V(H(i).table.borderColor), 3), M(Y, {
2960
2960
  "model-value": e.block.borderColor,
2961
2961
  "onUpdate:modelValue": n[4] ||= (e) => o("borderColor", e)
2962
2962
  }, null, 8, ["model-value"])]),
2963
- A("div", tc, [A("label", { class: F(H(S)) }, V(H(i).table.borderWidth), 3), A("div", nc, [A("input", {
2963
+ A("div", nc, [A("label", { class: F(H(C)) }, V(H(i).table.borderWidth), 3), A("div", rc, [A("input", {
2964
2964
  type: "number",
2965
- class: F(H(C)),
2965
+ class: F(H(S)),
2966
2966
  value: e.block.borderWidth,
2967
2967
  min: "0",
2968
2968
  max: "10",
2969
2969
  onInput: n[5] ||= (e) => o("borderWidth", Number(e.target.value))
2970
- }, null, 42, rc), A("span", { class: F(H(w)) }, "px", 2)])]),
2971
- A("div", ic, [A("label", { class: F(H(S)) }, V(H(i).table.cellPadding), 3), A("div", ac, [A("input", {
2970
+ }, null, 42, ic), A("span", { class: F(H(w)) }, "px", 2)])]),
2971
+ A("div", ac, [A("label", { class: F(H(C)) }, V(H(i).table.cellPadding), 3), A("div", oc, [A("input", {
2972
2972
  type: "number",
2973
- class: F(H(C)),
2973
+ class: F(H(S)),
2974
2974
  value: e.block.cellPadding,
2975
2975
  min: "0",
2976
2976
  max: "30",
2977
2977
  onInput: n[6] ||= (e) => o("cellPadding", Number(e.target.value))
2978
- }, null, 42, oc), A("span", { class: F(H(w)) }, "px", 2)])]),
2979
- A("div", sc, [A("label", { class: F(H(S)) }, V(H(i).table.fontFamily), 3), A("select", {
2978
+ }, null, 42, sc), A("span", { class: F(H(w)) }, "px", 2)])]),
2979
+ A("div", cc, [A("label", { class: F(H(C)) }, V(H(i).table.fontFamily), 3), A("select", {
2980
2980
  class: F(H(x)),
2981
2981
  value: e.block.fontFamily || "",
2982
2982
  onChange: n[7] ||= (e) => o("fontFamily", e.target.value || void 0)
2983
- }, [A("option", lc, V(H(i).title.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
2983
+ }, [A("option", uc, V(H(i).title.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
2984
2984
  key: e.value,
2985
2985
  value: e.value
2986
- }, V(e.label), 9, uc))), 128))], 42, cc)]),
2987
- A("div", dc, [A("label", { class: F(H(S)) }, V(H(i).table.fontSize), 3), A("div", fc, [A("input", {
2986
+ }, V(e.label), 9, dc))), 128))], 42, lc)]),
2987
+ A("div", fc, [A("label", { class: F(H(C)) }, V(H(i).table.fontSize), 3), A("div", pc, [A("input", {
2988
2988
  type: "number",
2989
- class: F(H(C)),
2989
+ class: F(H(S)),
2990
2990
  value: e.block.fontSize,
2991
2991
  min: "10",
2992
2992
  max: "32",
2993
2993
  onInput: n[8] ||= (e) => o("fontSize", Number(e.target.value))
2994
- }, null, 42, pc), A("span", { class: F(H(w)) }, "px", 2)])]),
2995
- A("div", mc, [A("label", { class: F(H(S)) }, V(H(i).table.color), 3), M(Y, {
2994
+ }, null, 42, mc), A("span", { class: F(H(w)) }, "px", 2)])]),
2995
+ A("div", hc, [A("label", { class: F(H(C)) }, V(H(i).table.color), 3), M(Y, {
2996
2996
  "model-value": e.block.color,
2997
2997
  "onUpdate:modelValue": n[9] ||= (e) => o("color", e)
2998
2998
  }, null, 8, ["model-value"])]),
2999
- A("div", hc, [A("label", { class: F(H(S)) }, V(H(i).table.textAlign), 3), M(Q, {
2999
+ A("div", gc, [A("label", { class: F(H(C)) }, V(H(i).table.textAlign), 3), M(Q, {
3000
3000
  options: [
3001
3001
  {
3002
3002
  value: "left",
3003
3003
  label: H(i).title.alignLeft,
3004
- icon: H(Me)
3004
+ icon: H(Fe)
3005
3005
  },
3006
3006
  {
3007
3007
  value: "center",
3008
3008
  label: H(i).title.alignCenter,
3009
- icon: H(Pe)
3009
+ icon: H(Me)
3010
3010
  },
3011
3011
  {
3012
3012
  value: "right",
3013
3013
  label: H(i).title.alignRight,
3014
- icon: H(Ie)
3014
+ icon: H(Pe)
3015
3015
  }
3016
3016
  ],
3017
3017
  "model-value": e.block.textAlign,
@@ -3019,7 +3019,7 @@ var so = {
3019
3019
  }, null, 8, ["options", "model-value"])])
3020
3020
  ], 64));
3021
3021
  }
3022
- }), _c = { class: "tpl:mb-3.5" }, vc = ["value"], yc = { value: 1 }, bc = { value: 2 }, xc = { value: 3 }, Sc = { value: 4 }, Cc = { class: "tpl:mb-3.5" }, wc = ["value"], Tc = { value: "" }, Ec = ["value"], Dc = { class: "tpl:mb-3.5" }, Oc = { class: "tpl:mb-3.5" }, kc = /* @__PURE__ */ N({
3022
+ }), vc = { class: "tpl:mb-3.5" }, yc = ["value"], bc = { value: 1 }, xc = { value: 2 }, Sc = { value: 3 }, Cc = { value: 4 }, wc = { class: "tpl:mb-3.5" }, Tc = ["value"], Ec = { value: "" }, Dc = ["value"], Oc = { class: "tpl:mb-3.5" }, kc = { class: "tpl:mb-3.5" }, Ac = /* @__PURE__ */ N({
3023
3023
  __name: "TitleToolbar",
3024
3024
  props: {
3025
3025
  block: {},
@@ -3032,44 +3032,44 @@ var so = {
3032
3032
  n("update", { [e]: t });
3033
3033
  }
3034
3034
  return (t, n) => (L(), k(T, null, [
3035
- A("div", _c, [A("label", { class: F(H(S)) }, V(H(r).title.level), 3), A("select", {
3035
+ A("div", vc, [A("label", { class: F(H(C)) }, V(H(r).title.level), 3), A("select", {
3036
3036
  class: F(H(x)),
3037
3037
  value: e.block.level,
3038
3038
  onChange: n[0] ||= (e) => i("level", Number(e.target.value))
3039
3039
  }, [
3040
- A("option", yc, V(H(r).title.heading1), 1),
3041
- A("option", bc, V(H(r).title.heading2), 1),
3042
- A("option", xc, V(H(r).title.heading3), 1),
3043
- A("option", Sc, V(H(r).title.heading4), 1)
3044
- ], 42, vc)]),
3045
- A("div", Cc, [A("label", { class: F(H(S)) }, V(H(r).title.fontFamily), 3), A("select", {
3040
+ A("option", bc, V(H(r).title.heading1), 1),
3041
+ A("option", xc, V(H(r).title.heading2), 1),
3042
+ A("option", Sc, V(H(r).title.heading3), 1),
3043
+ A("option", Cc, V(H(r).title.heading4), 1)
3044
+ ], 42, yc)]),
3045
+ A("div", wc, [A("label", { class: F(H(C)) }, V(H(r).title.fontFamily), 3), A("select", {
3046
3046
  class: F(H(x)),
3047
3047
  value: e.block.fontFamily || "",
3048
3048
  onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
3049
- }, [A("option", Tc, V(H(r).title.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
3049
+ }, [A("option", Ec, V(H(r).title.inheritFont), 1), (L(!0), k(T, null, z(e.fontFamilies, (e) => (L(), k("option", {
3050
3050
  key: e.value,
3051
3051
  value: e.value
3052
- }, V(e.label), 9, Ec))), 128))], 42, wc)]),
3053
- A("div", Dc, [A("label", { class: F(H(S)) }, V(H(r).title.color), 3), M(Y, {
3052
+ }, V(e.label), 9, Dc))), 128))], 42, Tc)]),
3053
+ A("div", Oc, [A("label", { class: F(H(C)) }, V(H(r).title.color), 3), M(Y, {
3054
3054
  "model-value": e.block.color,
3055
3055
  "onUpdate:modelValue": n[2] ||= (e) => i("color", e)
3056
3056
  }, null, 8, ["model-value"])]),
3057
- A("div", Oc, [A("label", { class: F(H(S)) }, V(H(r).title.align), 3), M(Q, {
3057
+ A("div", kc, [A("label", { class: F(H(C)) }, V(H(r).title.align), 3), M(Q, {
3058
3058
  options: [
3059
3059
  {
3060
3060
  value: "left",
3061
3061
  label: H(r).title.alignLeft,
3062
- icon: H(Me)
3062
+ icon: H(Fe)
3063
3063
  },
3064
3064
  {
3065
3065
  value: "center",
3066
3066
  label: H(r).title.alignCenter,
3067
- icon: H(Pe)
3067
+ icon: H(Me)
3068
3068
  },
3069
3069
  {
3070
3070
  value: "right",
3071
3071
  label: H(r).title.alignRight,
3072
- icon: H(Ie)
3072
+ icon: H(Pe)
3073
3073
  }
3074
3074
  ],
3075
3075
  "model-value": e.block.textAlign,
@@ -3077,7 +3077,7 @@ var so = {
3077
3077
  }, null, 8, ["options", "model-value"])])
3078
3078
  ], 64));
3079
3079
  }
3080
- }), Ac = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, jc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Mc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Nc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Pc = { class: "tpl:flex tpl:gap-1" }, Fc = ["title"], Ic = ["title"], Lc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Rc = /* @__PURE__ */ y(/* @__PURE__ */ N({
3080
+ }), jc = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Mc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Nc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Pc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fc = { class: "tpl:flex tpl:gap-1" }, Ic = ["title"], Lc = ["title"], Rc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, zc = /* @__PURE__ */ y(/* @__PURE__ */ N({
3081
3081
  __name: "Toolbar",
3082
3082
  props: { block: {} },
3083
3083
  emits: [
@@ -3086,13 +3086,13 @@ var so = {
3086
3086
  "duplicate"
3087
3087
  ],
3088
3088
  setup(e, { emit: t }) {
3089
- let r = e, i = t, { t: a } = _(), o = P(ye), s = P(g, []), c = E(() => r.block.type), l = E(() => nt(r.block)), u = E(() => {
3089
+ let r = e, i = t, { t: a } = _(), o = xe(ye, "Toolbar"), s = P(g, []), c = E(() => r.block.type), l = E(() => rt(r.block)), u = E(() => {
3090
3090
  if (l.value) return s.find((e) => e.type === r.block.customType);
3091
- }), d = E(() => l.value ? u.value?.name ?? r.block.customType : Ot(c.value, a)), f = o.fonts;
3091
+ }), d = E(() => l.value ? u.value?.name ?? r.block.customType : kt(c.value, a)), f = o.fonts;
3092
3092
  function m(e) {
3093
3093
  i("update", e);
3094
3094
  }
3095
- return (t, r) => (L(), k("aside", Ac, [A("div", jc, [A("div", Mc, [H(we)[c.value] ? (L(), D(B(H(we)[c.value]), {
3095
+ return (t, r) => (L(), k("aside", jc, [A("div", Mc, [A("div", Nc, [H(Te)[c.value] ? (L(), D(B(H(Te)[c.value]), {
3096
3096
  key: 0,
3097
3097
  size: 16,
3098
3098
  "stroke-width": 1.5
@@ -3100,99 +3100,99 @@ var so = {
3100
3100
  key: 1,
3101
3101
  size: 16,
3102
3102
  "stroke-width": 1.5
3103
- })) : O("", !0), A("h3", Nc, V(d.value), 1)]), A("div", Pc, [A("button", {
3103
+ })) : O("", !0), A("h3", Pc, V(d.value), 1)]), A("div", Fc, [A("button", {
3104
3104
  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:duration-150 tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
3105
3105
  title: H(a).toolbar.duplicate,
3106
3106
  onClick: r[0] ||= (e) => i("duplicate")
3107
3107
  }, [M(H(p), {
3108
3108
  size: 14,
3109
3109
  "stroke-width": 2
3110
- })], 8, Fc), A("button", {
3110
+ })], 8, Ic), A("button", {
3111
3111
  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:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
3112
3112
  title: H(a).toolbar.delete,
3113
3113
  onClick: r[1] ||= (e) => i("delete")
3114
- }, [M(H(Re), {
3114
+ }, [M(H(ze), {
3115
3115
  size: 14,
3116
3116
  "stroke-width": 2
3117
- })], 8, Ic)])]), A("div", Lc, [l.value ? (L(), D(go, {
3117
+ })], 8, Lc)])]), A("div", Rc, [l.value ? (L(), D(_o, {
3118
3118
  key: 0,
3119
3119
  block: e.block,
3120
3120
  onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
3121
3121
  onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
3122
- }, null, 8, ["block"])) : c.value === "section" ? (L(), D(ys, {
3122
+ }, null, 8, ["block"])) : c.value === "section" ? (L(), D(bs, {
3123
3123
  key: 1,
3124
3124
  block: e.block,
3125
3125
  onUpdate: m
3126
- }, null, 8, ["block"])) : c.value === "title" ? (L(), D(kc, {
3126
+ }, null, 8, ["block"])) : c.value === "title" ? (L(), D(Ac, {
3127
3127
  key: 2,
3128
3128
  block: e.block,
3129
3129
  "font-families": H(f),
3130
3130
  onUpdate: m
3131
- }, null, 8, ["block", "font-families"])) : c.value === "paragraph" ? (L(), k(T, { key: 3 }, [], 64)) : c.value === "image" ? (L(), D(Ro, {
3131
+ }, null, 8, ["block", "font-families"])) : c.value === "paragraph" ? (L(), k(T, { key: 3 }, [], 64)) : c.value === "image" ? (L(), D(zo, {
3132
3132
  key: 4,
3133
3133
  block: e.block,
3134
3134
  onUpdate: m
3135
- }, null, 8, ["block"])) : c.value === "button" ? (L(), D(zr, {
3135
+ }, null, 8, ["block"])) : c.value === "button" ? (L(), D(Br, {
3136
3136
  key: 5,
3137
3137
  block: e.block,
3138
3138
  "font-families": H(f),
3139
3139
  onUpdate: m
3140
- }, null, 8, ["block", "font-families"])) : c.value === "divider" ? (L(), D(So, {
3140
+ }, null, 8, ["block", "font-families"])) : c.value === "divider" ? (L(), D(Co, {
3141
3141
  key: 6,
3142
3142
  block: e.block,
3143
3143
  onUpdate: m
3144
- }, null, 8, ["block"])) : c.value === "social" ? (L(), D(Ms, {
3144
+ }, null, 8, ["block"])) : c.value === "social" ? (L(), D(Ns, {
3145
3145
  key: 7,
3146
3146
  block: e.block,
3147
3147
  onUpdate: m
3148
- }, null, 8, ["block"])) : c.value === "menu" ? (L(), D(hs, {
3148
+ }, null, 8, ["block"])) : c.value === "menu" ? (L(), D(gs, {
3149
3149
  key: 8,
3150
3150
  block: e.block,
3151
3151
  "font-families": H(f),
3152
3152
  onUpdate: m
3153
- }, null, 8, ["block", "font-families"])) : c.value === "table" ? (L(), D(gc, {
3153
+ }, null, 8, ["block", "font-families"])) : c.value === "table" ? (L(), D(_c, {
3154
3154
  key: 9,
3155
3155
  block: e.block,
3156
3156
  "font-families": H(f),
3157
3157
  onUpdate: m
3158
- }, null, 8, ["block", "font-families"])) : c.value === "spacer" ? (L(), D(Ls, {
3158
+ }, null, 8, ["block", "font-families"])) : c.value === "spacer" ? (L(), D(Rs, {
3159
3159
  key: 10,
3160
3160
  block: e.block,
3161
3161
  onUpdate: m
3162
- }, null, 8, ["block"])) : c.value === "html" ? (L(), D(Eo, {
3162
+ }, null, 8, ["block"])) : c.value === "html" ? (L(), D(Do, {
3163
3163
  key: 11,
3164
3164
  block: e.block,
3165
3165
  onUpdate: m
3166
- }, null, 8, ["block"])) : c.value === "countdown" ? (L(), D(Ma, {
3166
+ }, null, 8, ["block"])) : c.value === "countdown" ? (L(), D(Na, {
3167
3167
  key: 12,
3168
3168
  block: e.block,
3169
3169
  "font-families": H(f),
3170
3170
  onUpdate: m
3171
- }, null, 8, ["block", "font-families"])) : O("", !0), M(Vi, {
3171
+ }, null, 8, ["block", "font-families"])) : O("", !0), M(Hi, {
3172
3172
  block: e.block,
3173
3173
  "is-first-section": c.value === "paragraph",
3174
3174
  onUpdate: m
3175
3175
  }, null, 8, ["block", "is-first-section"])])]));
3176
3176
  }
3177
- }), [["__scopeId", "data-v-a685fe72"]]), zc = {
3177
+ }), [["__scopeId", "data-v-5b0a61e5"]]), Bc = {
3178
3178
  role: "tablist",
3179
3179
  class: "tpl:relative tpl:flex tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
3180
- }, Bc = ["aria-selected"], Vc = ["aria-selected"], Hc = {
3180
+ }, Vc = ["aria-selected"], Hc = ["aria-selected"], Uc = {
3181
3181
  key: 0,
3182
3182
  id: "tpl-tabpanel-content",
3183
3183
  role: "tabpanel",
3184
3184
  "aria-labelledby": "tpl-tab-content",
3185
3185
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3186
- }, Uc = {
3186
+ }, Wc = {
3187
3187
  key: 1,
3188
3188
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
3189
- }, Wc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Gc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Kc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, qc = {
3189
+ }, Gc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Kc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, qc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Jc = {
3190
3190
  key: 1,
3191
3191
  id: "tpl-tabpanel-settings",
3192
3192
  role: "tabpanel",
3193
3193
  "aria-labelledby": "tpl-tab-settings",
3194
3194
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3195
- }, Jc = /* @__PURE__ */ N({
3195
+ }, Yc = /* @__PURE__ */ N({
3196
3196
  __name: "RightSidebar",
3197
3197
  props: {
3198
3198
  selectedBlock: {},
@@ -3207,10 +3207,10 @@ var so = {
3207
3207
  ],
3208
3208
  setup(e, { emit: t }) {
3209
3209
  let n = e, r = t, { t: i } = _(), a = R("content"), o = E(() => a.value === "content" ? "tpl:translate-x-0" : "tpl:translate-x-full");
3210
- return qe(() => n.selectedBlock, (e) => {
3210
+ return Je(() => n.selectedBlock, (e) => {
3211
3211
  e && (a.value = "content");
3212
3212
  }), (t, n) => (L(), k("aside", { class: F(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"]) }, [
3213
- A("div", zc, [
3213
+ A("div", Bc, [
3214
3214
  A("div", { class: F(["tpl:absolute tpl:bottom-0 tpl:left-0 tpl:h-full tpl:w-1/2 tpl:p-1.5 tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", o.value]) }, [...n[6] ||= [A("div", { class: "tpl:h-full tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow)]" }, null, -1)]], 2),
3215
3215
  A("button", {
3216
3216
  id: "tpl-tab-content",
@@ -3219,10 +3219,10 @@ var so = {
3219
3219
  "aria-controls": "tpl-tabpanel-content",
3220
3220
  class: F(["tpl:relative tpl:z-10 tpl:flex tpl:flex-1 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:px-4 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-[120ms]", a.value === "content" ? "tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]"]),
3221
3221
  onClick: n[0] ||= (e) => a.value = "content"
3222
- }, [M(H(ut), {
3222
+ }, [M(H(dt), {
3223
3223
  size: 14,
3224
3224
  "stroke-width": 2
3225
- }), j(" " + V(H(i).sidebar.content), 1)], 10, Bc),
3225
+ }), j(" " + V(H(i).sidebar.content), 1)], 10, Vc),
3226
3226
  A("button", {
3227
3227
  id: "tpl-tab-settings",
3228
3228
  role: "tab",
@@ -3230,37 +3230,37 @@ var so = {
3230
3230
  "aria-controls": "tpl-tabpanel-settings",
3231
3231
  class: F(["tpl:relative tpl:z-10 tpl:flex tpl:flex-1 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:px-4 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-[120ms]", a.value === "settings" ? "tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]"]),
3232
3232
  onClick: n[1] ||= (e) => a.value = "settings"
3233
- }, [M(H(ft), {
3233
+ }, [M(H(pt), {
3234
3234
  size: 14,
3235
3235
  "stroke-width": 1.5
3236
- }), j(" " + V(H(i).sidebar.settings), 1)], 10, Vc)
3236
+ }), j(" " + V(H(i).sidebar.settings), 1)], 10, Hc)
3237
3237
  ]),
3238
- a.value === "content" ? (L(), k("div", Hc, [e.selectedBlock ? (L(), D(Rc, {
3238
+ a.value === "content" ? (L(), k("div", Uc, [e.selectedBlock ? (L(), D(zc, {
3239
3239
  key: 0,
3240
3240
  block: e.selectedBlock,
3241
3241
  onUpdate: n[2] ||= (e) => r("update-block", e),
3242
3242
  onDelete: n[3] ||= (e) => r("delete-block"),
3243
3243
  onDuplicate: n[4] ||= (e) => r("duplicate-block")
3244
- }, null, 8, ["block"])) : (L(), k("div", Uc, [
3245
- A("div", Wc, [M(H(at), {
3244
+ }, null, 8, ["block"])) : (L(), k("div", Wc, [
3245
+ A("div", Gc, [M(H(ot), {
3246
3246
  size: 40,
3247
3247
  "stroke-width": 1.5
3248
3248
  })]),
3249
- A("h4", Gc, V(H(i).sidebar.noSelection), 1),
3250
- A("p", Kc, V(H(i).sidebar.noSelectionHint), 1)
3249
+ A("h4", Kc, V(H(i).sidebar.noSelection), 1),
3250
+ A("p", qc, V(H(i).sidebar.noSelectionHint), 1)
3251
3251
  ]))])) : O("", !0),
3252
- a.value === "settings" ? (L(), k("div", qc, [M(cr, {
3252
+ a.value === "settings" ? (L(), k("div", Jc, [M(lr, {
3253
3253
  settings: e.settings,
3254
3254
  onUpdate: n[5] ||= (e) => r("update-settings", e)
3255
3255
  }, null, 8, ["settings"])])) : O("", !0)
3256
3256
  ], 2));
3257
3257
  }
3258
- }), Yc = [
3258
+ }), Xc = [
3259
3259
  "aria-checked",
3260
3260
  "aria-label",
3261
3261
  "title",
3262
3262
  "onClick"
3263
- ], Xc = /* @__PURE__ */ N({
3263
+ ], Zc = /* @__PURE__ */ N({
3264
3264
  __name: "ViewportToggle",
3265
3265
  props: { viewport: {} },
3266
3266
  emits: ["change"],
@@ -3309,25 +3309,25 @@ var so = {
3309
3309
  }),
3310
3310
  title: t.label,
3311
3311
  onClick: (e) => r("change", t.value)
3312
- }, [t.value === "desktop" ? (L(), D(H(ct), {
3312
+ }, [t.value === "desktop" ? (L(), D(H(lt), {
3313
3313
  key: 0,
3314
3314
  size: 18,
3315
3315
  "stroke-width": 1.5
3316
- })) : t.value === "tablet" ? (L(), D(H(_t), {
3316
+ })) : t.value === "tablet" ? (L(), D(H(vt), {
3317
3317
  key: 1,
3318
3318
  size: 18,
3319
3319
  "stroke-width": 1.5
3320
- })) : (L(), D(H(pt), {
3320
+ })) : (L(), D(H(mt), {
3321
3321
  key: 2,
3322
3322
  size: 18,
3323
3323
  "stroke-width": 1.5
3324
- })), A("span", null, V(t.label), 1)], 12, Yc))), 128))], 4));
3324
+ })), A("span", null, V(t.label), 1)], 12, Xc))), 128))], 4));
3325
3325
  }
3326
- }), Zc = [
3326
+ }), Qc = [
3327
3327
  "aria-label",
3328
3328
  "title",
3329
3329
  "aria-pressed"
3330
- ], Qc = /* @__PURE__ */ y(/* @__PURE__ */ N({
3330
+ ], $c = /* @__PURE__ */ y(/* @__PURE__ */ N({
3331
3331
  __name: "PreviewToggle",
3332
3332
  props: { previewMode: { type: Boolean } },
3333
3333
  emits: ["change"],
@@ -3343,14 +3343,14 @@ var so = {
3343
3343
  title: t.previewMode ? H(i).previewMode.disable : H(i).previewMode.enable,
3344
3344
  "aria-pressed": t.previewMode,
3345
3345
  onClick: a[0] ||= (e) => r("change", !t.previewMode)
3346
- }, [M(Ve, {
3346
+ }, [M(He, {
3347
3347
  "enter-active-class": "tpl-icon-enter-active",
3348
3348
  "leave-active-class": "tpl-icon-leave-active",
3349
3349
  "enter-from-class": "tpl-icon-enter-from",
3350
3350
  "leave-to-class": "tpl-icon-leave-to",
3351
3351
  mode: "out-in"
3352
3352
  }, {
3353
- default: W(() => [t.previewMode ? (L(), D(H(Ee), {
3353
+ default: W(() => [t.previewMode ? (L(), D(H(De), {
3354
3354
  key: "eye",
3355
3355
  size: 18,
3356
3356
  "stroke-width": 1.5
@@ -3360,13 +3360,13 @@ var so = {
3360
3360
  "stroke-width": 1.5
3361
3361
  }))]),
3362
3362
  _: 1
3363
- })], 12, Zc));
3363
+ })], 12, Qc));
3364
3364
  }
3365
- }), [["__scopeId", "data-v-af87d02a"]]), $c = [
3365
+ }), [["__scopeId", "data-v-af87d02a"]]), el = [
3366
3366
  "aria-label",
3367
3367
  "title",
3368
3368
  "aria-pressed"
3369
- ], el = /* @__PURE__ */ y(/* @__PURE__ */ N({
3369
+ ], tl = /* @__PURE__ */ y(/* @__PURE__ */ N({
3370
3370
  __name: "DarkModeToggle",
3371
3371
  props: { darkMode: { type: Boolean } },
3372
3372
  emits: ["change"],
@@ -3382,25 +3382,25 @@ var so = {
3382
3382
  title: e.darkMode ? H(r).darkMode.disable : H(r).darkMode.enable,
3383
3383
  "aria-pressed": e.darkMode,
3384
3384
  onClick: i[0] ||= (t) => n("change", !e.darkMode)
3385
- }, [M(Ve, {
3385
+ }, [M(He, {
3386
3386
  "enter-active-class": "tpl-icon-enter-active",
3387
3387
  "leave-active-class": "tpl-icon-leave-active",
3388
3388
  "enter-from-class": "tpl-icon-enter-from",
3389
3389
  "leave-to-class": "tpl-icon-leave-to",
3390
3390
  mode: "out-in"
3391
3391
  }, {
3392
- default: W(() => [e.darkMode ? (L(), D(H(lt), {
3392
+ default: W(() => [e.darkMode ? (L(), D(H(ut), {
3393
3393
  key: "moon",
3394
3394
  size: 18,
3395
3395
  "stroke-width": 1.5
3396
- })) : (L(), D(H(gt), {
3396
+ })) : (L(), D(H(_t), {
3397
3397
  key: "sun",
3398
3398
  size: 18,
3399
3399
  "stroke-width": 1.5
3400
3400
  }))]),
3401
3401
  _: 1
3402
- })], 12, $c));
3402
+ })], 12, el));
3403
3403
  }
3404
3404
  }), [["__scopeId", "data-v-f8694f76"]]);
3405
3405
  //#endregion
3406
- export { It as a, Jc as i, Qc as n, Dt as o, Xc as r, dt as s, el as t };
3406
+ export { Lt as a, Yc as i, $c as n, Ot as o, Zc as r, ft as s, tl as t };