@templatical/editor 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{AiChatSidebar-LxCHMdcj.js → AiChatSidebar-BWIzNePR.js} +2 -2
  2. package/dist/{AiFeatureMenu-Cr8pLXMj.js → AiFeatureMenu-IoLW8c6m.js} +4 -4
  3. package/dist/{BlockIssueBadge-BQ1yB1me.js → BlockIssueBadge-FbyZBJlf.js} +2 -2
  4. package/dist/{CloudEditor-qzoNS8K4.js → CloudEditor-txLsdvcR.js} +10 -10
  5. package/dist/{CollaboratorBar-BkfR0CyD.js → CollaboratorBar-CpLOFt43.js} +2 -2
  6. package/dist/{ColorPicker-DfzDyNKe.js → ColorPicker-BXCcUYsZ.js} +3 -3
  7. package/dist/{CommentsSidebar-Cl93TN96.js → CommentsSidebar-C8xFu9qy.js} +3 -3
  8. package/dist/{CountdownBlock-DbXfzwae.js → CountdownBlock-CaU40Htk.js} +1 -1
  9. package/dist/{CountdownToolbar-BqaMWRyB.js → CountdownToolbar-CBbGAxmF.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-jVrdS8wW.js → DesignReferenceSidebar-BWZgqmT-.js} +13 -14
  11. package/dist/{IssuesPanel-Bq3yXg6M.js → IssuesPanel-CBzfmzRM.js} +2 -2
  12. package/dist/{ModuleBrowserModal-XEHfEO0O.js → ModuleBrowserModal-C9qHpjaS.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-BM8XUgbc.js → ModulePreviewCanvas-xEMWMJwf.js} +2 -2
  14. package/dist/{NumberWithSuffix-9FG7mNnn.js → NumberWithSuffix-BreqtON_.js} +1 -1
  15. package/dist/{ParagraphEditor-Cs47wU1V.js → ParagraphEditor-iRJI_YbA.js} +8 -8
  16. package/dist/{RichTextEditorContent-DCzmVeyb.js → RichTextEditorContent-DkXai9qP.js} +4 -4
  17. package/dist/{SaveModuleDialog-BgOS9vCQ.js → SaveModuleDialog-DqDmk0rO.js} +6 -6
  18. package/dist/{SnapshotHistory-CLfYzwv9.js → SnapshotHistory-BVe5aCHi.js} +4 -4
  19. package/dist/{TemplateScoringPanel-CMrfa9Rd.js → TemplateScoringPanel-CRqt9-T5.js} +77 -77
  20. package/dist/{TestEmailModal-DTLfATNt.js → TestEmailModal-jpy4hnYZ.js} +3 -3
  21. package/dist/{TitleEditor-Bq9S0C8Z.js → TitleEditor-Bf6Jv2qI.js} +7 -7
  22. package/dist/{TplModal-BW0FAtYe.js → TplModal-DAtccv6o.js} +3 -3
  23. package/dist/{blockTypeIcons-CvSfLeyV.js → blockTypeIcons-CnlwyvkL.js} +1 -1
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/cdn/chunks/{AiFeatureMenu-B0zH66nO.js → AiFeatureMenu-B4oJlFQI.js} +2 -2
  26. package/dist/cdn/chunks/{AiFeatureMenu-B0zH66nO.js.map → AiFeatureMenu-B4oJlFQI.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-yD4pKsU9.js → BlockIssueBadge-C7Ts7bT7.js} +2 -2
  28. package/dist/cdn/chunks/{BlockIssueBadge-yD4pKsU9.js.map → BlockIssueBadge-C7Ts7bT7.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-Da-aSmw5.js → CloudEditor-BRO-2CcF.js} +9 -9
  30. package/dist/cdn/chunks/{CloudEditor-Da-aSmw5.js.map → CloudEditor-BRO-2CcF.js.map} +1 -1
  31. package/dist/cdn/chunks/{CollaboratorBar-DixaFis-.js → CollaboratorBar-BsWOjOCS.js} +3 -3
  32. package/dist/cdn/chunks/{CollaboratorBar-DixaFis-.js.map → CollaboratorBar-BsWOjOCS.js.map} +1 -1
  33. package/dist/cdn/chunks/{ColorPicker-O6xXCPEg.js → ColorPicker-DEtVX4gN.js} +2 -2
  34. package/dist/cdn/chunks/{ColorPicker-O6xXCPEg.js.map → ColorPicker-DEtVX4gN.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownBlock-jgBPbI1p.js → CountdownBlock-BUGxk8GI.js} +2 -2
  36. package/dist/cdn/chunks/{CountdownBlock-jgBPbI1p.js.map → CountdownBlock-BUGxk8GI.js.map} +1 -1
  37. package/dist/cdn/chunks/{CountdownToolbar-DrmZwvIH.js → CountdownToolbar-C8tWWfGw.js} +4 -4
  38. package/dist/cdn/chunks/{CountdownToolbar-DrmZwvIH.js.map → CountdownToolbar-C8tWWfGw.js.map} +1 -1
  39. package/dist/cdn/chunks/{IssuesPanel-CpyhXg9M.js → IssuesPanel-C5izyrbm.js} +3 -3
  40. package/dist/cdn/chunks/{IssuesPanel-CpyhXg9M.js.map → IssuesPanel-C5izyrbm.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModuleBrowserModal-DPQLFTti.js → ModuleBrowserModal-DySKXKFF.js} +5 -5
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DPQLFTti.js.map → ModuleBrowserModal-DySKXKFF.js.map} +1 -1
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-Csc6M0RA.js → ModulePreviewCanvas-qqEvLBp2.js} +2 -2
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Csc6M0RA.js.map → ModulePreviewCanvas-qqEvLBp2.js.map} +1 -1
  45. package/dist/cdn/chunks/{NumberWithSuffix-YmcsBmCd.js → NumberWithSuffix-DttdbXsh.js} +2 -2
  46. package/dist/cdn/chunks/{NumberWithSuffix-YmcsBmCd.js.map → NumberWithSuffix-DttdbXsh.js.map} +1 -1
  47. package/dist/cdn/chunks/{ParagraphEditor-DR5AcHB0.js → ParagraphEditor-CQJ23PXU.js} +6 -6
  48. package/dist/cdn/chunks/{ParagraphEditor-DR5AcHB0.js.map → ParagraphEditor-CQJ23PXU.js.map} +1 -1
  49. package/dist/cdn/chunks/{RichTextEditorContent-52c2EuCT.js → RichTextEditorContent-C4vxiXng.js} +3 -3
  50. package/dist/cdn/chunks/{RichTextEditorContent-52c2EuCT.js.map → RichTextEditorContent-C4vxiXng.js.map} +1 -1
  51. package/dist/cdn/chunks/{SaveModuleDialog-dpRlVrrQ.js → SaveModuleDialog-D5eddgzd.js} +2 -2
  52. package/dist/cdn/chunks/{SaveModuleDialog-dpRlVrrQ.js.map → SaveModuleDialog-D5eddgzd.js.map} +1 -1
  53. package/dist/cdn/chunks/{TitleEditor-DtQTPAg3.js → TitleEditor-5TkwDrPL.js} +5 -5
  54. package/dist/cdn/chunks/{TitleEditor-DtQTPAg3.js.map → TitleEditor-5TkwDrPL.js.map} +1 -1
  55. package/dist/cdn/chunks/{blockTypeIcons-B0ktHdUG.js → blockTypeIcons-CbmN4aSw.js} +3 -3
  56. package/dist/cdn/chunks/{blockTypeIcons-B0ktHdUG.js.map → blockTypeIcons-CbmN4aSw.js.map} +1 -1
  57. package/dist/cdn/chunks/{extensions-CiewgCtw.js → extensions-B3M4IqhZ.js} +2 -2
  58. package/dist/cdn/chunks/{extensions-CiewgCtw.js.map → extensions-B3M4IqhZ.js.map} +1 -1
  59. package/dist/cdn/chunks/{features-DLu_D-6j.js → features-HBwOEo4D.js} +748 -685
  60. package/dist/cdn/chunks/features-HBwOEo4D.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-B03IY-pm.js → icons-D4vTsN4p.js} +2 -2
  62. package/dist/cdn/chunks/{icons-B03IY-pm.js.map → icons-D4vTsN4p.js.map} +1 -1
  63. package/dist/cdn/chunks/{media-library-CYF18RNk.js → media-library-CfExuiSG.js} +3 -3
  64. package/dist/cdn/chunks/{media-library-CYF18RNk.js.map → media-library-CfExuiSG.js.map} +1 -1
  65. package/dist/cdn/chunks/{quality-LmsngN2B.js → quality-nh1R42eb.js} +2 -2
  66. package/dist/cdn/chunks/{quality-LmsngN2B.js.map → quality-nh1R42eb.js.map} +1 -1
  67. package/dist/cdn/chunks/{renderer-DAeNIQqa.js → renderer-BLvlUayY.js} +3 -3
  68. package/dist/cdn/chunks/{renderer-DAeNIQqa.js.map → renderer-BLvlUayY.js.map} +1 -1
  69. package/dist/cdn/chunks/{src-CModhUDN.js → src-Cks4RrLL.js} +4 -4
  70. package/dist/cdn/chunks/{src-CModhUDN.js.map → src-Cks4RrLL.js.map} +1 -1
  71. package/dist/cdn/chunks/{styles-hd_LBGaF.js → styles-CPCN13az.js} +9 -9
  72. package/dist/cdn/chunks/{styles-hd_LBGaF.js.map → styles-CPCN13az.js.map} +1 -1
  73. package/dist/cdn/editor.css +1 -1
  74. package/dist/cdn/editor.js +8 -7
  75. package/dist/cdn/editor.js.map +1 -1
  76. package/dist/{extensions-DhgbhfBX.js → extensions-gpFdCinj.js} +2 -2
  77. package/dist/index.d.ts +37 -0
  78. package/dist/{keys-WVNarXg8.js → keys-DAxnnmXs.js} +3 -3
  79. package/dist/style.css +1 -1
  80. package/dist/{styles-BWC0jc5-.js → styles-CJ6WmkYL.js} +137 -137
  81. package/dist/templatical-editor.js +7 -6
  82. package/dist/{upload-BKg6hDRW.js → upload-y4gxiFp5.js} +3 -2
  83. package/dist/{useCloudI18n-CIKI0hCd.js → useCloudI18n-DIn74fK2.js} +1 -1
  84. package/dist/{useEditorCore-FLMIhtv1.js → useEditorCore-LJJNXXqC.js} +794 -731
  85. package/dist/{useI18n-0EU_JVe7.js → useI18n-OaMLWqhY.js} +1 -1
  86. package/dist/{useMergeTag-C7v6MVah.js → useMergeTag-CZMgwVvr.js} +2 -2
  87. package/dist/{usePopoverPosition-BDqqnMeo.js → usePopoverPosition-QDY09q9H.js} +1 -1
  88. package/package.json +7 -7
  89. package/dist/cdn/chunks/features-DLu_D-6j.js.map +0 -1
  90. package/dist/timeouts-Bmi_yePw.js +0 -4
@@ -1,37 +1,37 @@
1
1
  import { A as e, Dt as t, Et as n, H as r, I as i, K as a, N as o, O as s, Ot as c, R as l, W as u, Y as d, _ as f, c as p, d as m, g as h, h as g, j as _, l as v, m as y, nt as b, q as x, r as S, s as C, u as w, w as T, x as E, y as D, z as O } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as k, c as A, o as j, s as M, t as N } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { C as P, D as F, E as I, O as L, k as R, o as z, r as B, s as V, u as ee, w as te } from "./dist-DoRIUsfz.js";
4
- import { C as ne, F as H, I as re, L as ie, M as ae, N as oe, O as se, P as ce, R as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, u as we, v as Te, y as Ee, z as De } from "./useEditorCore-FLMIhtv1.js";
5
- import { c as Oe, m as ke } from "./dist-DYv_Pttj.js";
6
- import { n as Ae } from "./usePopoverPosition-BDqqnMeo.js";
7
- import { A as je, E as Me, F as Ne, I as Pe, L as Fe, O as Ie, P as Le, R as Re, S as ze, T as Be, a as Ve, d as He, f as Ue, g as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, u as Xe } from "./keys-WVNarXg8.js";
8
- import { t as U } from "./useI18n-0EU_JVe7.js";
3
+ import { t as P } from "./upload-y4gxiFp5.js";
4
+ import { C as F, D as I, E as L, O as R, k as z, o as B, r as V, s as ee, u as te, w as ne } from "./dist-DoRIUsfz.js";
5
+ import { C as H, F as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, _ as de, a as fe, c as pe, f as me, g as he, h as ge, i as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De, z as Oe } from "./useEditorCore-LJJNXXqC.js";
6
+ import { c as ke, m as Ae } from "./dist-DYv_Pttj.js";
7
+ import { n as je } from "./usePopoverPosition-QDY09q9H.js";
8
+ import { C as Me, D as Ne, E as Pe, F as Fe, I as Ie, L as Le, R as Re, a as ze, d as Be, f as Ve, g as He, j as Ue, k as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, u as Xe, z as Ze } from "./keys-DAxnnmXs.js";
9
+ import { t as U } from "./useI18n-OaMLWqhY.js";
9
10
  import { t as W } from "./createLucideIcon-FSF4peHQ.js";
10
- import { n as Ze, t as Qe } from "./scan-line-IAMjPtRw.js";
11
- import { t as $e } from "./chevron-down-dClfxKrJ.js";
12
- import { t as et } from "./circle-alert-Bhzm-fNA.js";
13
- import { i as tt, n as nt, r as rt, t as it } from "./blockTypeIcons-CvSfLeyV.js";
14
- import { n as at, t as ot } from "./refresh-cw-as5Bmg4X.js";
15
- import { t as st } from "./image-up-CDEgJqwA.js";
16
- import { t as ct } from "./info-BNP8yGsK.js";
17
- import { t as lt } from "./list-checks-jepi4iYr.js";
18
- import { t as ut } from "./loader-circle-BT38qSm3.js";
19
- import { t as dt } from "./sparkles-CCwQMMMZ.js";
20
- import { n as ft, r as pt, t as mt } from "./text-align-start-BwsA6QzC.js";
21
- import { t as ht } from "./trash-2-CRBDolnR.js";
22
- import { t as gt } from "./upload-BKg6hDRW.js";
11
+ import { n as Qe, t as $e } from "./scan-line-IAMjPtRw.js";
12
+ import { t as et } from "./chevron-down-dClfxKrJ.js";
13
+ import { t as tt } from "./circle-alert-Bhzm-fNA.js";
14
+ import { i as nt, n as rt, r as it, t as at } from "./blockTypeIcons-CnlwyvkL.js";
15
+ import { n as ot, t as st } from "./refresh-cw-as5Bmg4X.js";
16
+ import { t as ct } from "./image-up-CDEgJqwA.js";
17
+ import { t as lt } from "./info-BNP8yGsK.js";
18
+ import { t as ut } from "./list-checks-jepi4iYr.js";
19
+ import { t as dt } from "./loader-circle-BT38qSm3.js";
20
+ import { t as ft } from "./sparkles-CCwQMMMZ.js";
21
+ import { n as pt, r as mt, t as ht } from "./text-align-start-BwsA6QzC.js";
22
+ import { t as gt } from "./trash-2-CRBDolnR.js";
23
23
  import { t as _t } from "./x-Ctg_250T.js";
24
24
  import { t as vt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
25
- import { t as yt } from "./useCloudI18n-CIKI0hCd.js";
26
- import { t as bt } from "./useMergeTag-C7v6MVah.js";
25
+ import { t as yt } from "./useCloudI18n-DIn74fK2.js";
26
+ import { t as bt } from "./useMergeTag-CZMgwVvr.js";
27
27
  import { t as xt } from "./useAliveFlag-C43EhZFY.js";
28
28
  import { t as St } from "./readableTextColor-f8Kykfnh.js";
29
- import { t as Ct } from "./CountdownBlock-DbXfzwae.js";
30
- import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-DfzDyNKe.js";
29
+ import { t as Ct } from "./CountdownBlock-CaU40Htk.js";
30
+ import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-BXCcUYsZ.js";
31
31
  import { n as At, r as jt } from "./MergeTagSuggestion-DCuaSOPQ.js";
32
32
  import { t as X } from "./ToggleSwitch-DUNuUPsZ.js";
33
- import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-9FG7mNnn.js";
34
- import { t as Pt } from "./TplModal-BW0FAtYe.js";
33
+ import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-BreqtON_.js";
34
+ import { t as Pt } from "./TplModal-DAtccv6o.js";
35
35
  var Ft = W("circle", [["circle", {
36
36
  cx: "12",
37
37
  cy: "12",
@@ -269,21 +269,21 @@ var Xt = ["aria-label"], Zt = {
269
269
  ],
270
270
  setup(r, { emit: i }) {
271
271
  let a = {
272
- section: Ce,
273
- title: _e,
274
- paragraph: xe,
275
- image: he,
276
- button: re,
277
- divider: Te,
278
- spacer: ge,
279
- html: ue,
280
- social: de,
281
- menu: ve,
282
- table: Se,
283
- video: ye,
272
+ section: we,
273
+ title: ve,
274
+ paragraph: Se,
275
+ image: ge,
276
+ button: ie,
277
+ divider: Ee,
278
+ spacer: _e,
279
+ html: de,
280
+ social: fe,
281
+ menu: ye,
282
+ table: Ce,
283
+ video: be,
284
284
  countdown: Ct,
285
- custom: Ee
286
- }, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x = Re(Ge, "Canvas"), T = E(Xe, null), D = E(qe, null), k = E(Ye, {}), A = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("chat") ?? !1)), M = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = C({
285
+ custom: De
286
+ }, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x = Ze(Ge, "Canvas"), T = E(Xe, null), D = E(qe, null), k = E(Ye, {}), A = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("chat") ?? !1)), M = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = C({
287
287
  get: () => u.content.blocks,
288
288
  set: (e) => {
289
289
  x.setContent({
@@ -313,12 +313,12 @@ var Xt = ["aria-label"], Zt = {
313
313
  u.previewMode || e.target === e.currentTarget && f("select-block", null);
314
314
  }
315
315
  function ne(e) {
316
- return pe(e, D, a);
316
+ return me(e, D, a);
317
317
  }
318
318
  function H(e) {
319
319
  return u.lockedBlocks?.get(e) ?? null;
320
320
  }
321
- function ie(e, t) {
321
+ function re(e, t) {
322
322
  e.type === "custom" && x.updateBlock(e.id, {
323
323
  fieldValues: t.fieldValues,
324
324
  dataSourceFetched: t.dataSourceFetched
@@ -354,7 +354,7 @@ var Xt = ["aria-label"], Zt = {
354
354
  }]),
355
355
  style: t(I.value),
356
356
  onClick: te
357
- }, [g(b(fe), {
357
+ }, [g(b(pe), {
358
358
  modelValue: N.value,
359
359
  "onUpdate:modelValue": a[2] ||= (e) => N.value = e,
360
360
  group: "blocks",
@@ -389,7 +389,7 @@ var Xt = ["aria-label"], Zt = {
389
389
  p("button", {
390
390
  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)]",
391
391
  onClick: a[0] ||= (e) => f("open-ai-chat")
392
- }, [g(b(dt), {
392
+ }, [g(b(ft), {
393
393
  size: 14,
394
394
  "stroke-width": 2
395
395
  }), y(" " + c(b(_).aiMenu.aiAssistant), 1)]),
@@ -400,7 +400,7 @@ var Xt = ["aria-label"], Zt = {
400
400
  p("button", {
401
401
  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)]",
402
402
  onClick: a[1] ||= (e) => f("open-design-reference")
403
- }, [g(b(st), {
403
+ }, [g(b(ct), {
404
404
  size: 14,
405
405
  "stroke-width": 2
406
406
  }), y(" " + c(b(_).aiMenu.designToTemplate), 1)]),
@@ -422,7 +422,7 @@ var Xt = ["aria-label"], Zt = {
422
422
  backgroundColor: H(e.id).color,
423
423
  color: b(St)(H(e.id).color)
424
424
  })
425
- }, [p("span", an, c(H(e.id).name.charAt(0)), 1), y(" " + c(H(e.id).name), 1)], 4)], 4)) : w("", !0), g(we, {
425
+ }, [p("span", an, c(H(e.id).name.charAt(0)), 1), y(" " + c(H(e.id).name), 1)], 4)], 4)) : w("", !0), g(Te, {
426
426
  block: e,
427
427
  "is-selected": !r.previewMode && r.selectedBlockId === e.id && !H(e.id),
428
428
  viewport: r.viewport,
@@ -432,7 +432,7 @@ var Xt = ["aria-label"], Zt = {
432
432
  default: l(() => [(s(), v(o(ne(e)), {
433
433
  block: e,
434
434
  viewport: r.viewport,
435
- onFetchData: (t) => ie(e, t),
435
+ onFetchData: (t) => re(e, t),
436
436
  onUpdate: (t) => b(x).updateBlock(e.id, t)
437
437
  }, null, 40, [
438
438
  "block",
@@ -458,7 +458,7 @@ var Xt = ["aria-label"], Zt = {
458
458
  }), [["__scopeId", "data-v-b440d13f"]]), cn = f({
459
459
  name: "CustomBlockStylesheets",
460
460
  setup() {
461
- let e = E(Ue, null);
461
+ let e = E(Ve, null);
462
462
  return () => e ? e.value.map((e, t) => D("style", {
463
463
  key: t,
464
464
  "data-tpl-custom-block-stylesheet": "",
@@ -507,7 +507,7 @@ var un = ["aria-label"], dn = {
507
507
  }, vn = /* @__PURE__ */ f({
508
508
  __name: "Sidebar",
509
509
  setup(n) {
510
- let { t: r, format: a } = U(), { t: u } = yt(), f = E(He, []), h = E(je, void 0), _ = E(Ve, void 0), y = E(Ge, null), x = E(Ye, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
510
+ let { t: r, format: a } = U(), { t: u } = yt(), f = E(Be, []), h = E(Ue, void 0), _ = E(ze, void 0), y = E(Ge, null), x = E(Ye, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
511
511
  function k() {
512
512
  O.value || (D.value = !1);
513
513
  }
@@ -533,11 +533,11 @@ var un = ["aria-label"], dn = {
533
533
  ], N = C(() => {
534
534
  let e = M.map((e) => ({
535
535
  type: e,
536
- label: le(e, r)
536
+ label: ue(e, r)
537
537
  }));
538
538
  return x.plan && e.splice(-1, 0, {
539
539
  type: "countdown",
540
- label: le("countdown", r)
540
+ label: ue("countdown", r)
541
541
  }), e;
542
542
  }), P = C(() => f.map((e) => ({
543
543
  type: `custom:${e.type}`,
@@ -546,21 +546,21 @@ var un = ["aria-label"], dn = {
546
546
  icon: e.icon
547
547
  }))), F = C(() => [...N.value, ...P.value]), I = C(() => ln(F.value, h)), L = C(() => I.value.items), R = /* @__PURE__ */ new Set();
548
548
  i(() => I.value.unknown, (e) => {
549
- for (let t of e) R.has(t) || (R.add(t), ie.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
549
+ for (let t of e) R.has(t) || (R.add(t), ae.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
550
550
  }, { immediate: !0 });
551
551
  function z(e) {
552
552
  if (e.isCustom) {
553
553
  let t = e.type.replace("custom:", ""), n = f.find((e) => e.type === t);
554
- if (n) return ee(n);
554
+ if (n) return te(n);
555
555
  }
556
- return V(e.type, _);
556
+ return ee(e.type, _);
557
557
  }
558
558
  function B(e) {
559
559
  if (!y) return;
560
560
  let t = z(e);
561
561
  y.addBlock(t), y.selectBlock(t.id);
562
562
  }
563
- function te(e, t) {
563
+ function V(e, t) {
564
564
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), B(t));
565
565
  }
566
566
  return (n, i) => (s(), m("aside", {
@@ -584,14 +584,14 @@ var un = ["aria-label"], dn = {
584
584
  style: t({ justifyContent: D.value ? "flex-start" : "center" }),
585
585
  onClick: i[0] ||= (e) => b(x).savedModules?.openBrowser()
586
586
  }, [
587
- g(b(rt), {
587
+ g(b(it), {
588
588
  size: 20,
589
589
  "stroke-width": 1.5,
590
590
  class: "tpl:shrink-0"
591
591
  }),
592
592
  D.value ? (s(), m("span", pn, c(b(u).modules.title), 1)) : w("", !0),
593
593
  D.value ? (s(), m("span", mn, c(b(x).savedModules?.moduleCount.value ?? 0), 1)) : w("", !0)
594
- ], 12, fn)])) : w("", !0), g(b(fe), {
594
+ ], 12, fn)])) : w("", !0), g(b(pe), {
595
595
  "model-value": L.value,
596
596
  group: {
597
597
  name: "blocks",
@@ -614,12 +614,12 @@ var un = ["aria-label"], dn = {
614
614
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab 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] 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",
615
615
  style: t({ justifyContent: D.value ? "flex-start" : "center" }),
616
616
  onClick: (t) => B(e),
617
- onKeydown: (t) => te(t, e)
618
- }, [p("div", gn, [b(it)[e.type] ? (s(), v(o(b(it)[e.type]), {
617
+ onKeydown: (t) => V(t, e)
618
+ }, [p("div", gn, [b(at)[e.type] ? (s(), v(o(b(at)[e.type]), {
619
619
  key: 0,
620
620
  size: 20,
621
621
  "stroke-width": 1.5
622
- })) : e.isCustom ? (s(), v(se, {
622
+ })) : e.isCustom ? (s(), v(ce, {
623
623
  key: 1,
624
624
  icon: e.icon,
625
625
  size: 20
@@ -687,7 +687,7 @@ var Cn = /* @__PURE__ */ new Set([
687
687
  "End"
688
688
  ]);
689
689
  function wn(e) {
690
- let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = F(s), f = I(s), p = c && d !== null && o.length > 0, m = E(Pe, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", Ae()), g = !1;
690
+ let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = I(s), f = L(s), p = c && d !== null && o.length > 0, m = E(Le, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", je()), g = !1;
691
691
  r() && a(() => {
692
692
  g = !0, h.close();
693
693
  });
@@ -741,7 +741,7 @@ function wn(e) {
741
741
  //#endregion
742
742
  //#region src/composables/useMergeTagField.ts
743
743
  function Tn(e) {
744
- let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } = bt(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = ne(), v = d(!1), y = !1, b = !1;
744
+ let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } = bt(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = H(), v = d(!1), y = !1, b = !1;
745
745
  r() && a(() => {
746
746
  b = !0;
747
747
  });
@@ -769,10 +769,10 @@ function Tn(e) {
769
769
  type: "mergeTag",
770
770
  value: t,
771
771
  label: u(t)
772
- }) : R(t, p) ? n.push({
772
+ }) : z(t, p) ? n.push({
773
773
  type: "logicMergeTag",
774
774
  value: t,
775
- keyword: te(t, p)
775
+ keyword: ne(t, p)
776
776
  }) : n.push({
777
777
  type: "text",
778
778
  value: t
@@ -936,7 +936,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
936
936
  disabled: e.disabled,
937
937
  onMousedown: i[0] ||= A(() => {}, ["prevent"]),
938
938
  onClick: i[1] ||= (e) => r.$emit("insert")
939
- }, [g(b(Qe), {
939
+ }, [g(b($e), {
940
940
  size: 12,
941
941
  "stroke-width": 2
942
942
  }), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, Mn));
@@ -960,7 +960,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
960
960
  "data-testid": "field-insert-logic-button",
961
961
  onMousedown: i[0] ||= A(() => {}, ["prevent"]),
962
962
  onClick: i[1] ||= (e) => r.$emit("insert")
963
- }, [g(b(Ze), {
963
+ }, [g(b(Qe), {
964
964
  size: 12,
965
965
  "stroke-width": 2
966
966
  }), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Fn));
@@ -1032,7 +1032,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1032
1032
  props: { settings: {} },
1033
1033
  emits: ["update"],
1034
1034
  setup(r, { emit: i }) {
1035
- let a = r, o = i, { t: l } = U(), u = Re(We, "TemplateSettings"), d = C(() => u.fonts.value), f = C(() => d.value.some((e) => e.value === a.settings.fontFamily) ? a.settings.fontFamily : u.defaultFont.value), h = [
1035
+ let a = r, o = i, { t: l } = U(), u = Ze(He, "TemplateSettings"), d = C(() => u.fonts.value), f = C(() => d.value.some((e) => e.value === a.settings.fontFamily) ? a.settings.fontFamily : u.defaultFont.value), h = [
1036
1036
  {
1037
1037
  value: 480,
1038
1038
  label: "480px"
@@ -1130,7 +1130,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1130
1130
  }, null, 42, cr),
1131
1131
  p("p", lr, c(b(l).templateSettings.contentLocaleHint), 1)
1132
1132
  ])], 2),
1133
- p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(at), {
1133
+ p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(ot), {
1134
1134
  class: "tpl:text-[var(--tpl-text-muted)]",
1135
1135
  size: 14,
1136
1136
  "stroke-width": 2
@@ -1140,7 +1140,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1140
1140
  rows: 2,
1141
1141
  "onUpdate:modelValue": a[7] ||= (e) => o("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1142
1142
  }, null, 8, ["model-value", "placeholder"]), p("div", dr, [p("span", fr, c(b(l).templateSettings.preheaderTextHint), 1), p("span", pr, c((r.settings.preheaderText ?? "").length) + "/" + c(br), 1)])])], 2),
1143
- p("div", mr, [p("div", hr, [g(b(ct), {
1143
+ p("div", mr, [p("div", hr, [g(b(lt), {
1144
1144
  size: 14,
1145
1145
  "stroke-width": 2
1146
1146
  }), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", gr, [
@@ -1375,7 +1375,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1375
1375
  "aria-label": b(o).spacingControl.decreaseTop,
1376
1376
  class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1377
1377
  onClick: r[0] ||= (e) => f("top", -1)
1378
- }, [g(b(tt), {
1378
+ }, [g(b(nt), {
1379
1379
  size: 12,
1380
1380
  "stroke-width": 2
1381
1381
  })], 10, ni),
@@ -1402,7 +1402,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1402
1402
  "aria-label": b(o).spacingControl.decreaseLeft,
1403
1403
  class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1404
1404
  onClick: r[3] ||= (e) => f("left", -1)
1405
- }, [g(b(tt), {
1405
+ }, [g(b(nt), {
1406
1406
  size: 12,
1407
1407
  "stroke-width": 2
1408
1408
  })], 10, si),
@@ -1442,7 +1442,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1442
1442
  "aria-label": b(o).spacingControl.decreaseRight,
1443
1443
  class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1444
1444
  onClick: r[6] ||= (e) => f("right", -1)
1445
- }, [g(b(tt), {
1445
+ }, [g(b(nt), {
1446
1446
  size: 12,
1447
1447
  "stroke-width": 2
1448
1448
  })], 10, fi),
@@ -1469,7 +1469,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1469
1469
  "aria-label": b(o).spacingControl.decreaseBottom,
1470
1470
  class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1471
1471
  onClick: r[9] ||= (e) => f("bottom", -1)
1472
- }, [g(b(tt), {
1472
+ }, [g(b(nt), {
1473
1473
  size: 12,
1474
1474
  "stroke-width": 2
1475
1475
  })], 10, gi),
@@ -1505,7 +1505,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1505
1505
  type: "button",
1506
1506
  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)]",
1507
1507
  onClick: r[0] ||= (e) => t.$emit("toggle")
1508
- }, [g(b($e), {
1508
+ }, [g(b(et), {
1509
1509
  class: n(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1510
1510
  size: 12,
1511
1511
  "stroke-width": 2
@@ -1801,7 +1801,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1801
1801
  },
1802
1802
  emits: ["update:modelValue"],
1803
1803
  setup(e, { emit: t }) {
1804
- let r = e, i = t, { t: a } = U(), o = E(Ie, null), u = xt(), f = C(() => !!o);
1804
+ let r = e, i = t, { t: a } = U(), o = E(We, null), u = xt(), f = C(() => !!o);
1805
1805
  async function h() {
1806
1806
  let e = await o?.({ accept: ["images"] });
1807
1807
  u.alive && e && i("update:modelValue", e.url);
@@ -1822,7 +1822,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1822
1822
  }
1823
1823
  }
1824
1824
  }
1825
- let { isOver: O } = me({
1825
+ let { isOver: O } = he({
1826
1826
  target: _,
1827
1827
  enabled: T,
1828
1828
  onFiles: D
@@ -1837,11 +1837,11 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1837
1837
  ref: _,
1838
1838
  class: "tpl:relative"
1839
1839
  }, [
1840
- T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(ut), {
1840
+ T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(dt), {
1841
1841
  class: "tpl-spinner",
1842
1842
  size: 18,
1843
1843
  "stroke-width": 2
1844
- }), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(gt), {
1844
+ }), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(P), {
1845
1845
  size: 18,
1846
1846
  "stroke-width": 1.5
1847
1847
  }), y(" " + c(b(a).image.dropToUpload), 1)], 64))])) : w("", !0),
@@ -1865,7 +1865,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1865
1865
  key: 3,
1866
1866
  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)]",
1867
1867
  onClick: r[1] ||= (e) => h()
1868
- }, [g(b(ae), {
1868
+ }, [g(b(oe), {
1869
1869
  size: 14,
1870
1870
  "stroke-width": 1.5
1871
1871
  }), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
@@ -1965,7 +1965,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1965
1965
  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)]",
1966
1966
  title: b(u).customBlocks.fields.removeItem,
1967
1967
  onClick: (e) => x(r)
1968
- }, [g(b(ht), {
1968
+ }, [g(b(gt), {
1969
1969
  size: 12,
1970
1970
  "stroke-width": 2
1971
1971
  })], 8, ia)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(ha)(e.type)), {
@@ -2152,7 +2152,7 @@ var ga = {
2152
2152
  props: { block: {} },
2153
2153
  emits: ["updateFieldValues", "updateDataSourceFetched"],
2154
2154
  setup(t, { emit: n }) {
2155
- let r = t, i = n, { t: a } = U(), l = E(He, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = De({
2155
+ let r = t, i = n, { t: a } = U(), l = E(Be, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = Oe({
2156
2156
  definition: u,
2157
2157
  block: C(() => r.block),
2158
2158
  onUpdate: (e, t) => {
@@ -2180,7 +2180,7 @@ var ga = {
2180
2180
  type: "button",
2181
2181
  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)]",
2182
2182
  onClick: r[1] ||= (...e) => b(h) && b(h)(...e)
2183
- }, [g(b(ot), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Ca, [g(b(et), {
2183
+ }, [g(b(st), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Ca, [g(b(tt), {
2184
2184
  size: 14,
2185
2185
  class: "tpl:shrink-0"
2186
2186
  }), y(" " + c(b(a).customBlocks.dataSource.fetchError), 1)])) : w("", !0)])) : w("", !0),
@@ -2255,7 +2255,7 @@ var ga = {
2255
2255
  class: n(b(Tt)),
2256
2256
  onInput: a[0] ||= (e) => r("update", { content: e.target.value })
2257
2257
  }, null, 42, Ma),
2258
- p("p", Na, [g(b(ct), {
2258
+ p("p", Na, [g(b(lt), {
2259
2259
  size: 12,
2260
2260
  class: "tpl:mt-0.5 tpl:shrink-0"
2261
2261
  }), y(" " + c(b(i).html.sanitizationHint), 1)])
@@ -2276,7 +2276,7 @@ var ga = {
2276
2276
  props: { block: {} },
2277
2277
  emits: ["update"],
2278
2278
  setup(e, { emit: t }) {
2279
- let r = e, i = t, { t: a } = U(), o = E(Ie, null), u = E(Me, B.liquid), f = xt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = ke(() => {
2279
+ let r = e, i = t, { t: a } = U(), o = E(We, null), u = E(Ne, V.liquid), f = xt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = Ae(() => {
2280
2280
  _.value = !1;
2281
2281
  }, 1e3, { immediate: !1 }), D = [
2282
2282
  300,
@@ -2305,10 +2305,10 @@ var ga = {
2305
2305
  let e = await o?.({ accept: ["images"] });
2306
2306
  f.alive && e && (k("src", e.url), e.alt && (k("alt", e.alt), x.value = !0), _.value = !0, T());
2307
2307
  }
2308
- let N = d(), P = d(!1), F = C(() => z(r.block.src, u)), I = C(() => h.value && !P.value && !F.value);
2309
- async function L(e) {
2308
+ let N = d(), F = d(!1), I = C(() => B(r.block.src, u)), L = C(() => h.value && !F.value && !I.value);
2309
+ async function R(e) {
2310
2310
  if (o) {
2311
- P.value = !0;
2311
+ F.value = !0;
2312
2312
  try {
2313
2313
  let t = await o({
2314
2314
  accept: ["images"],
@@ -2317,14 +2317,14 @@ var ga = {
2317
2317
  if (!f.alive) return;
2318
2318
  t && (k("src", t.url), t.alt && (k("alt", t.alt), x.value = !0), _.value = !0, T());
2319
2319
  } finally {
2320
- f.alive && (P.value = !1);
2320
+ f.alive && (F.value = !1);
2321
2321
  }
2322
2322
  }
2323
2323
  }
2324
- let { isOver: R } = me({
2324
+ let { isOver: z } = he({
2325
2325
  target: N,
2326
- enabled: I,
2327
- onFiles: L
2326
+ enabled: L,
2327
+ onFiles: R
2328
2328
  });
2329
2329
  return (t, r) => (s(), m(S, null, [
2330
2330
  p("div", Fa, [p("label", { class: n(b(K)) }, c(b(a).image.imageUrl), 3), p("div", {
@@ -2332,11 +2332,11 @@ var ga = {
2332
2332
  ref: N,
2333
2333
  class: "tpl:relative"
2334
2334
  }, [
2335
- I.value && (b(R) || P.value) ? (s(), m("div", Ia, [P.value ? (s(), m(S, { key: 0 }, [g(b(ut), {
2335
+ L.value && (b(z) || F.value) ? (s(), m("div", Ia, [F.value ? (s(), m(S, { key: 0 }, [g(b(dt), {
2336
2336
  class: "tpl-spinner",
2337
2337
  size: 18,
2338
2338
  "stroke-width": 2
2339
- }), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(gt), {
2339
+ }), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(P), {
2340
2340
  size: 18,
2341
2341
  "stroke-width": 1.5
2342
2342
  }), y(" " + c(b(a).image.dropToUpload), 1)], 64))])) : w("", !0),
@@ -2360,12 +2360,12 @@ var ga = {
2360
2360
  "background-color": "var(--tpl-bg)"
2361
2361
  },
2362
2362
  onClick: M
2363
- }, [g(b(ae), {
2363
+ }, [g(b(oe), {
2364
2364
  size: 14,
2365
2365
  "stroke-width": 1.5
2366
2366
  }), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
2367
2367
  ], 512)]),
2368
- b(z)(e.block.src, b(u)) ? (s(), m("div", La, [p("label", { class: n(b(K)) }, [y(c(b(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
2368
+ b(B)(e.block.src, b(u)) ? (s(), m("div", La, [p("label", { class: n(b(K)) }, [y(c(b(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
2369
2369
  type: "url",
2370
2370
  class: n(b(G)),
2371
2371
  value: e.block.placeholderUrl || "",
@@ -2483,17 +2483,17 @@ var ga = {
2483
2483
  {
2484
2484
  value: "left",
2485
2485
  label: o.title.alignLeft,
2486
- icon: mt
2486
+ icon: ht
2487
2487
  },
2488
2488
  {
2489
2489
  value: "center",
2490
2490
  label: o.title.alignCenter,
2491
- icon: pt
2491
+ icon: mt
2492
2492
  },
2493
2493
  {
2494
2494
  value: "right",
2495
2495
  label: o.title.alignRight,
2496
- icon: ft
2496
+ icon: pt
2497
2497
  }
2498
2498
  ]);
2499
2499
  function f(e, t) {
@@ -2501,7 +2501,7 @@ var ga = {
2501
2501
  }
2502
2502
  function h() {
2503
2503
  let e = {
2504
- id: P(),
2504
+ id: F(),
2505
2505
  text: "",
2506
2506
  url: "",
2507
2507
  openInNewTab: !1,
@@ -2795,7 +2795,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2795
2795
  }
2796
2796
  function u() {
2797
2797
  let e = {
2798
- id: P(),
2798
+ id: F(),
2799
2799
  platform: "facebook",
2800
2800
  url: ""
2801
2801
  };
@@ -2820,7 +2820,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2820
2820
  class: n([b(G), "tpl:flex-1"]),
2821
2821
  value: t.platform,
2822
2822
  onChange: (e) => d(t.id, "platform", e.target.value)
2823
- }, [(s(!0), m(S, null, e(b(be), (e) => (s(), m("option", {
2823
+ }, [(s(!0), m(S, null, e(b(xe), (e) => (s(), m("option", {
2824
2824
  key: e,
2825
2825
  value: e
2826
2826
  }, c(b(o).social.platforms[e]), 9, Do))), 128))], 42, Eo), p("button", {
@@ -2888,17 +2888,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2888
2888
  {
2889
2889
  value: "left",
2890
2890
  label: b(o).title.alignLeft,
2891
- icon: b(mt)
2891
+ icon: b(ht)
2892
2892
  },
2893
2893
  {
2894
2894
  value: "center",
2895
2895
  label: b(o).title.alignCenter,
2896
- icon: b(pt)
2896
+ icon: b(mt)
2897
2897
  },
2898
2898
  {
2899
2899
  value: "right",
2900
2900
  label: b(o).title.alignRight,
2901
- icon: b(ft)
2901
+ icon: b(pt)
2902
2902
  }
2903
2903
  ],
2904
2904
  "model-value": t.block.align,
@@ -2949,9 +2949,9 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2949
2949
  }
2950
2950
  function d() {
2951
2951
  let e = i.block.rows.length > 0 ? i.block.rows[0].cells.length : 3, t = {
2952
- id: P(),
2952
+ id: F(),
2953
2953
  cells: Array.from({ length: e }, () => ({
2954
- id: P(),
2954
+ id: F(),
2955
2955
  content: ""
2956
2956
  }))
2957
2957
  };
@@ -2964,7 +2964,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2964
2964
  let e = i.block.rows.map((e) => ({
2965
2965
  ...e,
2966
2966
  cells: [...e.cells, {
2967
- id: P(),
2967
+ id: F(),
2968
2968
  content: ""
2969
2969
  }]
2970
2970
  }));
@@ -2983,7 +2983,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2983
2983
  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",
2984
2984
  disabled: t.block.rows.length <= 1,
2985
2985
  onClick: i[0] ||= (e) => f(t.block.rows[t.block.rows.length - 1].id)
2986
- }, [g(b(tt), {
2986
+ }, [g(b(nt), {
2987
2987
  size: 12,
2988
2988
  "stroke-width": 2
2989
2989
  })], 8, Qo),
@@ -3000,7 +3000,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3000
3000
  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",
3001
3001
  disabled: l.value <= 1,
3002
3002
  onClick: i[1] ||= (e) => _(l.value - 1)
3003
- }, [g(b(tt), {
3003
+ }, [g(b(nt), {
3004
3004
  size: 12,
3005
3005
  "stroke-width": 2
3006
3006
  })], 8, rs),
@@ -3074,17 +3074,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3074
3074
  {
3075
3075
  value: "left",
3076
3076
  label: b(o).title.alignLeft,
3077
- icon: b(mt)
3077
+ icon: b(ht)
3078
3078
  },
3079
3079
  {
3080
3080
  value: "center",
3081
3081
  label: b(o).title.alignCenter,
3082
- icon: b(pt)
3082
+ icon: b(mt)
3083
3083
  },
3084
3084
  {
3085
3085
  value: "right",
3086
3086
  label: b(o).title.alignRight,
3087
- icon: b(ft)
3087
+ icon: b(pt)
3088
3088
  }
3089
3089
  ],
3090
3090
  "model-value": t.block.textAlign,
@@ -3132,17 +3132,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3132
3132
  {
3133
3133
  value: "left",
3134
3134
  label: b(a).title.alignLeft,
3135
- icon: b(mt)
3135
+ icon: b(ht)
3136
3136
  },
3137
3137
  {
3138
3138
  value: "center",
3139
3139
  label: b(a).title.alignCenter,
3140
- icon: b(pt)
3140
+ icon: b(mt)
3141
3141
  },
3142
3142
  {
3143
3143
  value: "right",
3144
3144
  label: b(a).title.alignRight,
3145
- icon: b(ft)
3145
+ icon: b(pt)
3146
3146
  }
3147
3147
  ],
3148
3148
  "model-value": t.block.textAlign,
@@ -3162,7 +3162,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3162
3162
  props: { block: {} },
3163
3163
  emits: ["update"],
3164
3164
  setup(e, { emit: t }) {
3165
- let r = e, i = t, { t: a } = U(), o = E(Ie, null), l = E(Me, B.liquid), u = xt(), f = C(() => !!o), h = C(() => z(r.block.url, l)), _ = d(!1), { start: x } = ke(() => {
3165
+ let r = e, i = t, { t: a } = U(), o = E(We, null), l = E(Ne, V.liquid), u = xt(), f = C(() => !!o), h = C(() => B(r.block.url, l)), _ = d(!1), { start: x } = Ae(() => {
3166
3166
  _.value = !1;
3167
3167
  }, 1e3, { immediate: !1 });
3168
3168
  function T(e, t) {
@@ -3219,7 +3219,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3219
3219
  "background-color": "var(--tpl-bg)"
3220
3220
  },
3221
3221
  onClick: D
3222
- }, [g(b(ae), {
3222
+ }, [g(b(oe), {
3223
3223
  size: 14,
3224
3224
  "stroke-width": 1.5
3225
3225
  }), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
@@ -3269,20 +3269,20 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3269
3269
  "duplicate"
3270
3270
  ],
3271
3271
  setup(e, { emit: t }) {
3272
- let n = h(() => import("./CountdownToolbar-BqaMWRyB.js")), r = e, i = t, { t: a } = U(), l = Re(We, "Toolbar"), u = E(He, []), d = C(() => r.block.type), f = C(() => L(r.block)), _ = C(() => {
3272
+ let n = h(() => import("./CountdownToolbar-CBbGAxmF.js")), r = e, i = t, { t: a } = U(), l = Ze(He, "Toolbar"), u = E(Be, []), d = C(() => r.block.type), f = C(() => R(r.block)), _ = C(() => {
3273
3273
  if (f.value) return u.find((e) => e.type === r.block.customType);
3274
- }), y = C(() => f.value ? _.value?.name ?? r.block.customType : le(d.value, a)), x = l.fonts;
3274
+ }), y = C(() => f.value ? _.value?.name ?? r.block.customType : ue(d.value, a)), x = l.fonts;
3275
3275
  function T(e) {
3276
3276
  i("update", e);
3277
3277
  }
3278
3278
  return (t, r) => (s(), m("aside", {
3279
3279
  "aria-label": b(a).landmarks.blockToolbar,
3280
3280
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3281
- }, [p("div", Xs, [p("div", Zs, [b(it)[d.value] ? (s(), v(o(b(it)[d.value]), {
3281
+ }, [p("div", Xs, [p("div", Zs, [b(at)[d.value] ? (s(), v(o(b(at)[d.value]), {
3282
3282
  key: 0,
3283
3283
  size: 16,
3284
3284
  "stroke-width": 1.5
3285
- })) : f.value ? (s(), v(b(H), {
3285
+ })) : f.value ? (s(), v(b(re), {
3286
3286
  key: 1,
3287
3287
  size: 16,
3288
3288
  "stroke-width": 1.5
@@ -3290,14 +3290,14 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3290
3290
  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)]",
3291
3291
  title: b(a).toolbar.duplicate,
3292
3292
  onClick: r[0] ||= (e) => i("duplicate")
3293
- }, [g(b(ce), {
3293
+ }, [g(b(le), {
3294
3294
  size: 14,
3295
3295
  "stroke-width": 2
3296
3296
  })], 8, ec), p("button", {
3297
3297
  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)]",
3298
3298
  title: b(a).toolbar.delete,
3299
3299
  onClick: r[1] ||= (e) => i("delete")
3300
- }, [g(b(ht), {
3300
+ }, [g(b(gt), {
3301
3301
  size: 14,
3302
3302
  "stroke-width": 2
3303
3303
  })], 8, tc)])]), p("div", nc, [f.value ? (s(), v(wa, {
@@ -3417,7 +3417,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3417
3417
  "update-settings"
3418
3418
  ],
3419
3419
  setup(e, { emit: r }) {
3420
- let a = h(() => import("./IssuesPanel-Bq3yXg6M.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Le, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
3420
+ let a = h(() => import("./IssuesPanel-CBzfmzRM.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Fe, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
3421
3421
  function S(e) {
3422
3422
  return f.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
3423
3423
  }
@@ -3474,7 +3474,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3474
3474
  style: t(T("issues")),
3475
3475
  onClick: i[2] ||= (e) => f.value = "issues"
3476
3476
  }, [
3477
- g(b(lt), {
3477
+ g(b(ut), {
3478
3478
  size: 14,
3479
3479
  "stroke-width": 1.5
3480
3480
  }),
@@ -3605,11 +3605,11 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3605
3605
  "leave-to-class": "tpl-icon-leave-to",
3606
3606
  mode: "out-in"
3607
3607
  }, {
3608
- default: l(() => [e.previewMode ? (s(), v(b(at), {
3608
+ default: l(() => [e.previewMode ? (s(), v(b(ot), {
3609
3609
  key: "eye",
3610
3610
  size: 18,
3611
3611
  "stroke-width": 1.5
3612
- })) : (s(), v(b(oe), {
3612
+ })) : (s(), v(b(se), {
3613
3613
  key: "eye-off",
3614
3614
  size: 18,
3615
3615
  "stroke-width": 1.5
@@ -3729,7 +3729,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3729
3729
  }, $c = "tpl-merge-tag-picker-list", el = /* @__PURE__ */ f({
3730
3730
  __name: "MergeTagPickerModal",
3731
3731
  setup(r) {
3732
- let a = Re(Be, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Ne, null), h = E(Fe, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
3732
+ let a = Ze(Pe, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Ie, null), h = E(Re, null), _ = d(""), y = ke(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
3733
3733
  function F(e) {
3734
3734
  return P.value.has(e);
3735
3735
  }
@@ -3872,7 +3872,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3872
3872
  size: 16,
3873
3873
  "stroke-width": 2
3874
3874
  })], 8, zc)]),
3875
- p("div", Bc, [g(b(nt), {
3875
+ p("div", Bc, [g(b(rt), {
3876
3876
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
3877
3877
  size: 14,
3878
3878
  "stroke-width": 2
@@ -3919,7 +3919,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3919
3919
  "data-group-collapsed": F(e.group) ? "true" : "false",
3920
3920
  onClick: (t) => I(e.group)
3921
3921
  }, [
3922
- g(b($e), {
3922
+ g(b(et), {
3923
3923
  size: 12,
3924
3924
  "stroke-width": 2,
3925
3925
  class: n(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
@@ -3956,7 +3956,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3956
3956
  syntax: {}
3957
3957
  },
3958
3958
  setup(e) {
3959
- let t = e, n = C(() => R(t.value, t.syntax)), r = C(() => te(t.value, t.syntax));
3959
+ let t = e, n = C(() => z(t.value, t.syntax)), r = C(() => ne(t.value, t.syntax));
3960
3960
  return (e, t) => n.value ? (s(), m("span", {
3961
3961
  key: 0,
3962
3962
  class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
@@ -4001,7 +4001,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4001
4001
  }, bl = "tpl-logic-picker-list", xl = /* @__PURE__ */ f({
4002
4002
  __name: "LogicTagPickerModal",
4003
4003
  setup(r) {
4004
- let a = Re(ze, "LogicTagPickerModal"), { t: o } = U(), u = E(Me, B.liquid), f = E(Ne, null), h = E(Fe, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
4004
+ let a = Ze(Me, "LogicTagPickerModal"), { t: o } = U(), u = E(Ne, V.liquid), f = E(Ie, null), h = E(Re, null), _ = d(""), y = ke(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
4005
4005
  function N(e) {
4006
4006
  let t = y.value.trim().toLowerCase();
4007
4007
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -4056,10 +4056,10 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4056
4056
  rows: e,
4057
4057
  items: t
4058
4058
  };
4059
- }), V = C(() => z.value.items), ee = C(() => a.tags.value.length === 0 && a.pairs.value.length === 0), te = C(() => !ee.value && V.value.length === 0);
4059
+ }), B = C(() => z.value.items), ee = C(() => a.tags.value.length === 0 && a.pairs.value.length === 0), te = C(() => !ee.value && B.value.length === 0);
4060
4060
  i(() => a.isOpen.value, (e) => {
4061
4061
  e && (_.value = "", j.value = 0, T(() => x.value?.focus()));
4062
- }), i(V, (e) => {
4062
+ }), i(B, (e) => {
4063
4063
  j.value >= e.length && (j.value = Math.max(0, e.length - 1));
4064
4064
  });
4065
4065
  let ne = d(null);
@@ -4070,7 +4070,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4070
4070
  a.resolve(null);
4071
4071
  }
4072
4072
  function ie(e) {
4073
- V.value.length !== 0 && (j.value = Math.max(0, Math.min(V.value.length - 1, j.value + e)), T(() => {
4073
+ B.value.length !== 0 && (j.value = Math.max(0, Math.min(B.value.length - 1, j.value + e)), T(() => {
4074
4074
  ne.value?.querySelector(`[data-logic-index="${j.value}"]`)?.scrollIntoView({ block: "nearest" });
4075
4075
  }));
4076
4076
  }
@@ -4079,7 +4079,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4079
4079
  else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
4080
4080
  else if (e.key === "Enter") {
4081
4081
  e.preventDefault();
4082
- let t = V.value[j.value];
4082
+ let t = B.value[j.value];
4083
4083
  t && H(t);
4084
4084
  }
4085
4085
  }
@@ -4087,7 +4087,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4087
4087
  return `${bl}-opt-${e}`;
4088
4088
  }
4089
4089
  function se() {
4090
- return V.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
4090
+ return B.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
4091
4091
  }
4092
4092
  return (r, i) => (s(), v(Pt, {
4093
4093
  visible: b(a).isOpen.value,
@@ -4116,7 +4116,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4116
4116
  size: 16,
4117
4117
  "stroke-width": 2
4118
4118
  })], 8, ol)]),
4119
- p("div", sl, [g(b(nt), {
4119
+ p("div", sl, [g(b(rt), {
4120
4120
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
4121
4121
  size: 14,
4122
4122
  "stroke-width": 2