@templatical/editor 0.18.0 → 0.19.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 (109) hide show
  1. package/dist/{AiChatSidebar-BWIzNePR.js → AiChatSidebar-DAQTFuvi.js} +3 -3
  2. package/dist/{AiFeatureMenu-IoLW8c6m.js → AiFeatureMenu-aFSO20PR.js} +4 -4
  3. package/dist/{BlockIssueBadge-FbyZBJlf.js → BlockIssueBadge-BQmq1bxn.js} +2 -2
  4. package/dist/{CloudEditor-txLsdvcR.js → CloudEditor-D0K-m1GA.js} +14 -12
  5. package/dist/{CollaboratorBar-CpLOFt43.js → CollaboratorBar-CJO3l6Dt.js} +2 -2
  6. package/dist/ColorPicker-BsgpTJqK.js +552 -0
  7. package/dist/{CommentsSidebar-C8xFu9qy.js → CommentsSidebar-BYMVucZh.js} +4 -4
  8. package/dist/{CountdownBlock-CaU40Htk.js → CountdownBlock-Bn5w7C-p.js} +1 -1
  9. package/dist/{CountdownToolbar-CBbGAxmF.js → CountdownToolbar-PJI3ffi1.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-BWZgqmT-.js → DesignReferenceSidebar-QfAV8XT9.js} +5 -5
  11. package/dist/{IssuesPanel-CBzfmzRM.js → IssuesPanel-CTjRgz8w.js} +2 -2
  12. package/dist/{ModuleBrowserModal-C9qHpjaS.js → ModuleBrowserModal-BNalLx0k.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-xEMWMJwf.js → ModulePreviewCanvas-BwObwisa.js} +2 -2
  14. package/dist/{NumberWithSuffix-BreqtON_.js → NumberWithSuffix-D3BKz66W.js} +1 -1
  15. package/dist/{ParagraphEditor-iRJI_YbA.js → ParagraphEditor-Cf75UfSo.js} +42 -42
  16. package/dist/{RichTextEditorContent-DkXai9qP.js → RichTextEditorContent-MdaLz6Q3.js} +5 -5
  17. package/dist/{SaveModuleDialog-DqDmk0rO.js → SaveModuleDialog-MTjwiF9D.js} +6 -6
  18. package/dist/{SnapshotHistory-BVe5aCHi.js → SnapshotHistory-C_Y1LzAY.js} +4 -4
  19. package/dist/{TemplateScoringPanel-CRqt9-T5.js → TemplateScoringPanel-DikuKc6i.js} +77 -77
  20. package/dist/{TestEmailModal-jpy4hnYZ.js → TestEmailModal-BW8aTtzf.js} +3 -3
  21. package/dist/{TitleEditor-Bf6Jv2qI.js → TitleEditor-CCUkbRN0.js} +7 -7
  22. package/dist/{TplModal-DAtccv6o.js → TplModal-DoOwUKlT.js} +3 -3
  23. package/dist/{blockTypeIcons-CnlwyvkL.js → blockTypeIcons-BlPKjD7M.js} +1 -1
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js → AiFeatureMenu-RwJiaPXZ.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js.map → AiFeatureMenu-RwJiaPXZ.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js → BlockIssueBadge-DM-TDKbr.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js.map → BlockIssueBadge-DM-TDKbr.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BRO-2CcF.js → CloudEditor-Dufl354p.js} +132 -130
  31. package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js → CollaboratorBar-xsU20iPl.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js.map → CollaboratorBar-xsU20iPl.js.map} +1 -1
  34. package/dist/{ColorPicker-BXCcUYsZ.js → cdn/chunks/ColorPicker-y_obnw4o.js} +234 -157
  35. package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +1 -0
  36. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js → CountdownBlock-sHsRMe1q.js} +2 -2
  37. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js.map → CountdownBlock-sHsRMe1q.js.map} +1 -1
  38. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js → CountdownToolbar-Ckc_jEi-.js} +4 -4
  39. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js.map → CountdownToolbar-Ckc_jEi-.js.map} +1 -1
  40. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js → IssuesPanel-DF5Ajuna.js} +7 -7
  41. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js.map → IssuesPanel-DF5Ajuna.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js → ModuleBrowserModal-DG4AVFjH.js} +8 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js.map → ModuleBrowserModal-DG4AVFjH.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js → ModulePreviewCanvas-Bc_PcJuc.js} +24 -24
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js.map → ModulePreviewCanvas-Bc_PcJuc.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js → NumberWithSuffix-8fOO-LC_.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js.map → NumberWithSuffix-8fOO-LC_.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js → ParagraphEditor-BkafKSju.js} +107 -107
  49. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js.map → ParagraphEditor-BkafKSju.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js → RichTextEditorContent-BthhzOZS.js} +5 -5
  51. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js.map → RichTextEditorContent-BthhzOZS.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js → SaveModuleDialog-DhsfYf2n.js} +4 -4
  53. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js.map → SaveModuleDialog-DhsfYf2n.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js → TitleEditor-DLv9cXba.js} +8 -8
  55. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js.map → TitleEditor-DLv9cXba.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js → blockTypeIcons-B0uibGX7.js} +7 -7
  57. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js.map → blockTypeIcons-B0uibGX7.js.map} +1 -1
  58. package/dist/cdn/chunks/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +3 -2
  59. package/dist/cdn/chunks/{ca-CSl--oWR.js.map → ca-DbWoy4rG.js.map} +1 -1
  60. package/dist/{de-ZaffrKDP.js → cdn/chunks/de-CgGOnerg.js} +4 -1
  61. package/dist/cdn/chunks/{de-ZaffrKDP.js.map → de-CgGOnerg.js.map} +1 -1
  62. package/dist/cdn/chunks/{en-CHuXeJDt.js → en-DrUV9xth.js} +3 -2
  63. package/dist/cdn/chunks/{en-CHuXeJDt.js.map → en-DrUV9xth.js.map} +1 -1
  64. package/dist/{es-CaC8VQjO.js → cdn/chunks/es-DwbKjU7q.js} +4 -1
  65. package/dist/cdn/chunks/{es-CaC8VQjO.js.map → es-DwbKjU7q.js.map} +1 -1
  66. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js → extensions-DLHvZ0UH.js} +19 -19
  67. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js.map → extensions-DLHvZ0UH.js.map} +1 -1
  68. package/dist/cdn/chunks/{features-HBwOEo4D.js → features-Cnfv4QAY.js} +1382 -1298
  69. package/dist/cdn/chunks/features-Cnfv4QAY.js.map +1 -0
  70. package/dist/cdn/chunks/{icons-D4vTsN4p.js → icons-DbcM69bb.js} +2 -2
  71. package/dist/cdn/chunks/{icons-D4vTsN4p.js.map → icons-DbcM69bb.js.map} +1 -1
  72. package/dist/cdn/chunks/{media-library-CfExuiSG.js → media-library-DpSMwHd4.js} +524 -524
  73. package/dist/cdn/chunks/{media-library-CfExuiSG.js.map → media-library-DpSMwHd4.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +3 -2
  75. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js.map → pt-BR-Bcc5Tjed.js.map} +1 -1
  76. package/dist/cdn/chunks/{quality-nh1R42eb.js → quality-D9QqkRcU.js} +77 -77
  77. package/dist/cdn/chunks/{quality-nh1R42eb.js.map → quality-D9QqkRcU.js.map} +1 -1
  78. package/dist/cdn/chunks/{renderer-BLvlUayY.js → renderer-BsLQZNXU.js} +14 -14
  79. package/dist/cdn/chunks/{renderer-BLvlUayY.js.map → renderer-BsLQZNXU.js.map} +1 -1
  80. package/dist/cdn/chunks/{src-Cks4RrLL.js → src-zu1ehVNN.js} +6 -6
  81. package/dist/cdn/chunks/{src-Cks4RrLL.js.map → src-zu1ehVNN.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-CPCN13az.js → styles-Dx-jXeCd.js} +184 -184
  83. package/dist/cdn/chunks/{styles-CPCN13az.js.map → styles-Dx-jXeCd.js.map} +1 -1
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +54 -52
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
  88. package/dist/{cdn/chunks/de-ZaffrKDP.js → de-CgGOnerg.js} +2 -3
  89. package/dist/{dist-DoRIUsfz.js → dist-BJbqgyPn.js} +108 -94
  90. package/dist/{en-CHuXeJDt.js → en-DrUV9xth.js} +2 -1
  91. package/dist/{cdn/chunks/es-CaC8VQjO.js → es-DwbKjU7q.js} +2 -3
  92. package/dist/{extensions-gpFdCinj.js → extensions-BCA9pyer.js} +11 -11
  93. package/dist/index.d.ts +31 -0
  94. package/dist/keys-DFaIbGR8.js +10 -0
  95. package/dist/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +2 -1
  96. package/dist/style.css +1 -1
  97. package/dist/{styles-CJ6WmkYL.js → styles-64uLkPJV.js} +47 -47
  98. package/dist/templatical-editor.js +13 -11
  99. package/dist/{useCloudI18n-DIn74fK2.js → useCloudI18n-PCDOC2kz.js} +1 -1
  100. package/dist/{useEditorCore-LJJNXXqC.js → useEditorCore-ea9OrrH3.js} +798 -755
  101. package/dist/{useI18n-OaMLWqhY.js → useI18n-BNMzZTM5.js} +1 -1
  102. package/dist/{useMergeTag-CZMgwVvr.js → useMergeTag-DfEY0eK5.js} +5 -5
  103. package/dist/{usePopoverPosition-QDY09q9H.js → usePopoverPosition-F9STHRIr.js} +33 -6
  104. package/package.json +7 -7
  105. package/dist/cdn/chunks/CloudEditor-BRO-2CcF.js.map +0 -1
  106. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js +0 -471
  107. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js.map +0 -1
  108. package/dist/cdn/chunks/features-HBwOEo4D.js.map +0 -1
  109. package/dist/keys-DAxnnmXs.js +0 -10
@@ -1,17 +1,17 @@
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
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";
4
+ import { A as F, E as I, O as L, T as R, a as z, c as B, f as V, j as ee, k as te, l as ne } from "./dist-BJbqgyPn.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-ea9OrrH3.js";
6
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";
7
+ import { n as je } from "./usePopoverPosition-F9STHRIr.js";
8
+ import { A as Me, B as Ne, D as Pe, I as Fe, L as Ie, M as Le, O as Re, R as ze, _ as Be, a as Ve, d as He, f as Ue, h as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, w as Xe, z as Ze } from "./keys-DFaIbGR8.js";
9
+ import { t as U } from "./useI18n-BNMzZTM5.js";
10
10
  import { t as W } from "./createLucideIcon-FSF4peHQ.js";
11
11
  import { n as Qe, t as $e } from "./scan-line-IAMjPtRw.js";
12
12
  import { t as et } from "./chevron-down-dClfxKrJ.js";
13
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";
14
+ import { i as nt, n as rt, r as it, t as at } from "./blockTypeIcons-BlPKjD7M.js";
15
15
  import { n as ot, t as st } from "./refresh-cw-as5Bmg4X.js";
16
16
  import { t as ct } from "./image-up-CDEgJqwA.js";
17
17
  import { t as lt } from "./info-BNP8yGsK.js";
@@ -22,16 +22,16 @@ import { n as pt, r as mt, t as ht } from "./text-align-start-BwsA6QzC.js";
22
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-DIn74fK2.js";
26
- import { t as bt } from "./useMergeTag-CZMgwVvr.js";
25
+ import { t as yt } from "./useCloudI18n-PCDOC2kz.js";
26
+ import { t as bt } from "./useMergeTag-DfEY0eK5.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-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";
29
+ import { t as Ct } from "./CountdownBlock-Bn5w7C-p.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-BsgpTJqK.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-BreqtON_.js";
34
- import { t as Pt } from "./TplModal-DAtccv6o.js";
33
+ import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-D3BKz66W.js";
34
+ import { t as Pt } from "./TplModal-DoOwUKlT.js";
35
35
  var Ft = W("circle", [["circle", {
36
36
  cx: "12",
37
37
  cy: "12",
@@ -283,7 +283,7 @@ var Xt = ["aria-label"], Zt = {
283
283
  video: be,
284
284
  countdown: Ct,
285
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({
286
+ }, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x = Ne(We, "Canvas"), T = E(He, 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({
@@ -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(Ve, null);
461
+ let e = E(Je, 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(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);
510
+ let { t: r, format: a } = U(), { t: u } = yt(), f = E(Ue, []), h = E(Le, void 0), _ = E(Ve, void 0), y = E(We, 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
  }
@@ -551,16 +551,16 @@ var un = ["aria-label"], dn = {
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 te(n);
554
+ if (n) return V(n);
555
555
  }
556
- return ee(e.type, _);
556
+ return ne(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 V(e, t) {
563
+ function ee(e, t) {
564
564
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), B(t));
565
565
  }
566
566
  return (n, i) => (s(), m("aside", {
@@ -614,7 +614,7 @@ 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) => V(t, e)
617
+ onKeydown: (t) => ee(t, e)
618
618
  }, [p("div", gn, [b(at)[e.type] ? (s(), v(o(b(at)[e.type]), {
619
619
  key: 0,
620
620
  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 = 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;
690
+ let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = te(s), f = L(s), p = c && d !== null && o.length > 0, m = E(ze, 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
  });
@@ -769,10 +769,10 @@ function Tn(e) {
769
769
  type: "mergeTag",
770
770
  value: t,
771
771
  label: u(t)
772
- }) : z(t, p) ? n.push({
772
+ }) : ee(t, p) ? n.push({
773
773
  type: "logicMergeTag",
774
774
  value: t,
775
- keyword: ne(t, p)
775
+ keyword: I(t, p)
776
776
  }) : n.push({
777
777
  type: "text",
778
778
  value: t
@@ -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 = 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 = [
1035
+ let a = r, o = i, { t: l } = U(), u = Ne(Be, "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"
@@ -1531,7 +1531,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1531
1531
  },
1532
1532
  emits: ["update"],
1533
1533
  setup(t, { emit: r }) {
1534
- let a = t, u = r, { t: f } = U(), h = E(Je, []), _ = E(Ke, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
1534
+ let a = t, u = r, { t: f } = U(), h = E(Ge, []), _ = E(Ke, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
1535
1535
  key: "desktop",
1536
1536
  icon: Bt,
1537
1537
  labelKey: "showOnDesktop"
@@ -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(We, null), u = xt(), f = C(() => !!o);
1804
+ let r = e, i = t, { t: a } = U(), o = E(Me, 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);
@@ -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(Be, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = Oe({
2155
+ let r = t, i = n, { t: a } = U(), l = E(Ue, []), 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) => {
@@ -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(We, null), u = E(Ne, V.liquid), f = xt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = Ae(() => {
2279
+ let r = e, i = t, { t: a } = U(), o = E(Me, null), u = E(Re, z.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,
@@ -2321,7 +2321,7 @@ var ga = {
2321
2321
  }
2322
2322
  }
2323
2323
  }
2324
- let { isOver: z } = he({
2324
+ let { isOver: V } = he({
2325
2325
  target: N,
2326
2326
  enabled: L,
2327
2327
  onFiles: R
@@ -2332,7 +2332,7 @@ var ga = {
2332
2332
  ref: N,
2333
2333
  class: "tpl:relative"
2334
2334
  }, [
2335
- L.value && (b(z) || F.value) ? (s(), m("div", Ia, [F.value ? (s(), m(S, { key: 0 }, [g(b(dt), {
2335
+ L.value && (b(V) || 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
@@ -2501,7 +2501,7 @@ var ga = {
2501
2501
  }
2502
2502
  function h() {
2503
2503
  let e = {
2504
- id: F(),
2504
+ id: R(),
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: F(),
2798
+ id: R(),
2799
2799
  platform: "facebook",
2800
2800
  url: ""
2801
2801
  };
@@ -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: F(),
2952
+ id: R(),
2953
2953
  cells: Array.from({ length: e }, () => ({
2954
- id: F(),
2954
+ id: R(),
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: F(),
2967
+ id: R(),
2968
2968
  content: ""
2969
2969
  }]
2970
2970
  }));
@@ -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(We, null), l = E(Ne, V.liquid), u = xt(), f = C(() => !!o), h = C(() => B(r.block.url, l)), _ = d(!1), { start: x } = Ae(() => {
3165
+ let r = e, i = t, { t: a } = U(), o = E(Me, null), l = E(Re, z.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) {
@@ -3269,7 +3269,7 @@ 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-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(() => {
3272
+ let n = h(() => import("./CountdownToolbar-PJI3ffi1.js")), r = e, i = t, { t: a } = U(), l = Ne(Be, "Toolbar"), u = E(Ue, []), d = C(() => r.block.type), f = C(() => F(r.block)), _ = C(() => {
3273
3273
  if (f.value) return u.find((e) => e.type === r.block.customType);
3274
3274
  }), y = C(() => f.value ? _.value?.name ?? r.block.customType : ue(d.value, a)), x = l.fonts;
3275
3275
  function T(e) {
@@ -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-CBzfmzRM.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Fe, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
3420
+ let a = h(() => import("./IssuesPanel-CTjRgz8w.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
  }
@@ -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 = 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());
3732
+ let a = Ne(Pe, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Ie, null), h = E(Ze, 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
  }
@@ -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(() => z(t.value, t.syntax)), r = C(() => ne(t.value, t.syntax));
3959
+ let t = e, n = C(() => ee(t.value, t.syntax)), r = C(() => I(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 = 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);
4004
+ let a = Ne(Xe, "LogicTagPickerModal"), { t: o } = U(), u = E(Re, z.liquid), f = E(Ie, null), h = E(Ze, 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);
@@ -4032,7 +4032,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4032
4032
  }
4033
4033
  return r.map((e) => [e, n.get(e)]);
4034
4034
  }
4035
- let z = C(() => {
4035
+ let B = C(() => {
4036
4036
  let e = [], t = [], n = 0, r = (r) => {
4037
4037
  r.kind === "tag" ? (e.push({
4038
4038
  kind: "tag",
@@ -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
- }), 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);
4059
+ }), V = C(() => B.value.items), ee = C(() => a.tags.value.length === 0 && a.pairs.value.length === 0), te = C(() => !ee.value && V.value.length === 0);
4060
4060
  i(() => a.isOpen.value, (e) => {
4061
4061
  e && (_.value = "", j.value = 0, T(() => x.value?.focus()));
4062
- }), i(B, (e) => {
4062
+ }), i(V, (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
- B.value.length !== 0 && (j.value = Math.max(0, Math.min(B.value.length - 1, j.value + e)), T(() => {
4073
+ V.value.length !== 0 && (j.value = Math.max(0, Math.min(V.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 = B.value[j.value];
4082
+ let t = V.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 B.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
4090
+ return V.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,
@@ -4142,7 +4142,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4142
4142
  role: "listbox",
4143
4143
  "aria-label": b(o).logicTag.picker.title,
4144
4144
  "data-testid": "logic-picker-list"
4145
- }, [ee.value ? (s(), m("div", ul, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", dl, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
4145
+ }, [ee.value ? (s(), m("div", ul, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", dl, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(B.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
4146
4146
  key: 0,
4147
4147
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
4148
4148
  "data-testid": "logic-picker-header",