@aswin.dev/editor 0.8.5 → 0.8.7

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 (89) hide show
  1. package/dist/{AccessibilityPanel-COL6Wm7p.js → AccessibilityPanel-B39ct5ON.js} +2 -2
  2. package/dist/{AiChatSidebar-DAJOuHPG.js → AiChatSidebar-CYh7SPHW.js} +2 -2
  3. package/dist/{AiFeatureMenu-CKnEDzme.js → AiFeatureMenu-D9UhqJAa.js} +3 -3
  4. package/dist/{BlockA11yBadge-Qs6HtXid.js → BlockA11yBadge-Dr854uEe.js} +2 -2
  5. package/dist/{CloudEditor-BUlmUuhO.js → CloudEditor-BNEIze18.js} +281 -274
  6. package/dist/{CollaboratorBar-C6TfqpyV.js → CollaboratorBar-DZXuPSfU.js} +2 -2
  7. package/dist/{CommentsSidebar-DE6ZsM4D.js → CommentsSidebar-BVKFtxml.js} +4 -4
  8. package/dist/{CountdownBlock-Ba3T-i2X.js → CountdownBlock-CrpaDWze.js} +1 -1
  9. package/dist/{CountdownToolbar-B9IAZzeV.js → CountdownToolbar-D1tb2T_b.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-C6yDJlD8.js → DesignReferenceSidebar-_QsmFpE_.js} +44 -44
  11. package/dist/{ModuleBrowserModal-DUKuDjS-.js → ModuleBrowserModal-Bth1crh_.js} +7 -7
  12. package/dist/{ModulePreviewCanvas-C9HTjfkN.js → ModulePreviewCanvas-96pndrb9.js} +3 -3
  13. package/dist/{ParagraphEditor-CFuaZKGk.js → ParagraphEditor-C2d9O2P4.js} +123 -123
  14. package/dist/{RichTextEditorContent-CrqPQdnk.js → RichTextEditorContent-Cn0ZU41b.js} +3 -3
  15. package/dist/{SaveModuleDialog-QjgPFEDg.js → SaveModuleDialog-B1EJtMGq.js} +17 -17
  16. package/dist/{SlidingPillSelect-DfcBdJqN.js → SlidingPillSelect-Dt34f5VF.js} +1 -1
  17. package/dist/{SnapshotHistory-Dblt21_W.js → SnapshotHistory-Cd-a_xGv.js} +3 -3
  18. package/dist/{TemplateScoringPanel-CS7o62zS.js → TemplateScoringPanel-C8WixDsv.js} +77 -77
  19. package/dist/{TestEmailModal-D_y3ZksG.js → TestEmailModal-CEj_81cQ.js} +3 -3
  20. package/dist/TitleEditor-C8Qyr_U3.js +172 -0
  21. package/dist/{TplModal-DinL7DhQ.js → TplModal-B_HcUS4S.js} +2 -2
  22. package/dist/{blockTypeIcons-JjmIZ_Vx.js → blockTypeIcons-CeaSm2Xd.js} +1 -1
  23. package/dist/bundle-stats.json +6 -6
  24. package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js → AccessibilityPanel-C8vY7QIF.js} +3 -3
  25. package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js.map → AccessibilityPanel-C8vY7QIF.js.map} +1 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js → AiFeatureMenu-BaUpnF6T.js} +2 -2
  27. package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js.map → AiFeatureMenu-BaUpnF6T.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js → BlockA11yBadge-BHkh4Otq.js} +2 -2
  29. package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js.map → BlockA11yBadge-BHkh4Otq.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BBBkTBfW.js → CloudEditor-DUIjZDAS.js} +264 -257
  31. package/dist/cdn/chunks/{CloudEditor-BBBkTBfW.js.map → CloudEditor-DUIjZDAS.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js → CollaboratorBar-pyuEO5Bm.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js.map → CollaboratorBar-pyuEO5Bm.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js → CountdownToolbar-CCGHm6Gg.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js.map → CountdownToolbar-CCGHm6Gg.js.map} +1 -1
  36. package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js → ModuleBrowserModal-DKsMddYS.js} +6 -6
  37. package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js.map → ModuleBrowserModal-DKsMddYS.js.map} +1 -1
  38. package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js → ModulePreviewCanvas-E0mfCUJi.js} +2 -2
  39. package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js.map → ModulePreviewCanvas-E0mfCUJi.js.map} +1 -1
  40. package/dist/cdn/chunks/{ParagraphEditor-BX2L35YF.js → ParagraphEditor-DwmzHg6F.js} +116 -116
  41. package/dist/cdn/chunks/ParagraphEditor-DwmzHg6F.js.map +1 -0
  42. package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js → RichTextEditorContent-4-cNqB4H.js} +3 -3
  43. package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js.map → RichTextEditorContent-4-cNqB4H.js.map} +1 -1
  44. package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js → SaveModuleDialog-COm3ptOF.js} +3 -3
  45. package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js.map → SaveModuleDialog-COm3ptOF.js.map} +1 -1
  46. package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js → SlidingPillSelect-DlgRynQN.js} +2 -2
  47. package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js.map → SlidingPillSelect-DlgRynQN.js.map} +1 -1
  48. package/dist/cdn/chunks/TitleEditor-CE8r8txX.js +171 -0
  49. package/dist/cdn/chunks/TitleEditor-CE8r8txX.js.map +1 -0
  50. package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js → blockTypeIcons-BOf7hTFU.js} +3 -3
  51. package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js.map → blockTypeIcons-BOf7hTFU.js.map} +1 -1
  52. package/dist/cdn/chunks/{extensions-CdYSoz4B.js → extensions-B5e8Ov02.js} +17 -17
  53. package/dist/cdn/chunks/{extensions-CdYSoz4B.js.map → extensions-B5e8Ov02.js.map} +1 -1
  54. package/dist/cdn/chunks/{features-BZeMkHMs.js → features-BHTP4oRU.js} +734 -734
  55. package/dist/cdn/chunks/features-BHTP4oRU.js.map +1 -0
  56. package/dist/cdn/chunks/{icons-nP0Wj6Eq.js → icons-DS4IYWzG.js} +2 -2
  57. package/dist/cdn/chunks/{icons-nP0Wj6Eq.js.map → icons-DS4IYWzG.js.map} +1 -1
  58. package/dist/cdn/chunks/{media-library-54Ezt5wL.js → media-library-BLLJsLwk.js} +508 -508
  59. package/dist/cdn/chunks/{media-library-54Ezt5wL.js.map → media-library-BLLJsLwk.js.map} +1 -1
  60. package/dist/cdn/chunks/{quality-Di1pUcCW.js → quality-DfKLOn8j.js} +290 -290
  61. package/dist/cdn/chunks/{quality-Di1pUcCW.js.map → quality-DfKLOn8j.js.map} +1 -1
  62. package/dist/cdn/chunks/{renderer-C4OuJhDG.js → renderer-fG9yLafB.js} +14 -14
  63. package/dist/cdn/chunks/{renderer-C4OuJhDG.js.map → renderer-fG9yLafB.js.map} +1 -1
  64. package/dist/cdn/chunks/{src-DF5NNH7S.js → src-DsfVhQaK.js} +4 -4
  65. package/dist/cdn/chunks/{src-DF5NNH7S.js.map → src-DsfVhQaK.js.map} +1 -1
  66. package/dist/cdn/chunks/{styles-C9P3yzMF.js → styles-CPUuKOlD.js} +210 -210
  67. package/dist/cdn/chunks/{styles-C9P3yzMF.js.map → styles-CPUuKOlD.js.map} +1 -1
  68. package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js → tiptap-q69oUYhb.js} +2 -2
  69. package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js.map → tiptap-q69oUYhb.js.map} +1 -1
  70. package/dist/cdn/editor.css +1 -1
  71. package/dist/cdn/editor.js +130 -123
  72. package/dist/cdn/editor.js.map +1 -1
  73. package/dist/{extensions-CNPdJw_8.js → extensions-mwqd2u9M.js} +2 -2
  74. package/dist/index.d.ts +6 -6
  75. package/dist/keys-CqdzeWhT.js +10 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{styles-ZIYLQwFf.js → styles-BRNubGRJ.js} +287 -287
  78. package/dist/templatical-editor.js +134 -127
  79. package/dist/{useCloudI18n-DOKSZql1.js → useCloudI18n-CDhjmAgB.js} +1 -1
  80. package/dist/{useEditorCore-BHSyoxSK.js → useEditorCore-DB4A_cje.js} +22 -22
  81. package/dist/{useI18n-C2xQZ6K9.js → useI18n-DLZJ6wNn.js} +1 -1
  82. package/dist/{useMergeTag-BfVcyNSv.js → useMergeTag-D-kqWENN.js} +2 -2
  83. package/package.json +7 -7
  84. package/dist/TitleEditor-CHmL3FFR.js +0 -172
  85. package/dist/cdn/chunks/ParagraphEditor-BX2L35YF.js.map +0 -1
  86. package/dist/cdn/chunks/TitleEditor-BTtgZzci.js +0 -171
  87. package/dist/cdn/chunks/TitleEditor-BTtgZzci.js.map +0 -1
  88. package/dist/cdn/chunks/features-BZeMkHMs.js.map +0 -1
  89. package/dist/keys-CvX8D-8C.js +0 -10
@@ -1,17 +1,17 @@
1
1
  import { a as e } from "./rolldown-runtime-BZGGJVDF.js";
2
2
  import { At as t, C as n, D as r, F as i, Ft as a, I as o, M as s, N as c, Q as l, R as u, S as d, U as f, V as p, W as m, _ as h, b as g, c as _, d as v, et as y, f as b, g as x, h as S, j as C, jt as w, k as T, l as E, m as D, nt as O, p as k, st as A, t as j, u as M, v as N, x as P, z as F } from "./vue.runtime.esm-bundler-CjauPXjj.js";
3
- import { A as I, B as ee, I as te, L, N as R, P as z, R as ne, W as B, _ as re, c as ie, d as ae, f as V, i as oe, k as se, m as ce, n as le, r as ue, s as de, z as fe } from "./dist-Bcqepqv3.js";
4
- import { B as pe, F as me, I as he, M as ge, N as _e, O as ve, P as ye, R as be, S as xe, _ as Se, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, i as Ae, l as je, m as Me, n as Ne, o as Pe, r as Fe, s as Ie, u as Le, v as Re, x as ze, y as Be } from "./useEditorCore-BHSyoxSK.js";
5
- import { a as Ve, l as He, n as Ue, o as We, r as Ge, s as Ke, t as qe, u as Je } from "./dist-Djgi0A6k.js";
6
- import { A as Ye, S as Xe, _ as Ze, c as Qe, d as $e, f as H, g as et, h as tt, m as nt, o as rt, p as it, r as at, s as ot, t as st, w as ct, x as lt } from "./keys-CvX8D-8C.js";
7
- import { t as U } from "./useI18n-C2xQZ6K9.js";
3
+ import { A as I, B as L, I as ee, L as R, N as z, P as B, R as te, W as V, _ as ne, c as re, d as ie, f as H, i as ae, k as oe, m as se, n as ce, r as le, s as ue, z as de } from "./dist-Bcqepqv3.js";
4
+ import { B as fe, F as pe, I as me, M as he, N as ge, O as _e, P as ve, R as ye, S as be, _ as xe, a as Se, b as Ce, c as we, d as Te, f as Ee, g as De, h as Oe, i as ke, l as Ae, m as je, n as Me, o as Ne, r as Pe, s as Fe, u as Ie, v as Le, x as Re, y as ze } from "./useEditorCore-DB4A_cje.js";
5
+ import { a as Be, l as Ve, n as He, o as Ue, r as We, s as Ge, t as Ke, u as qe } from "./dist-Djgi0A6k.js";
6
+ import { C as Je, S as Ye, T as Xe, _ as Ze, c as Qe, d as $e, f as et, g as tt, h as nt, j as rt, o as it, p as at, r as ot, s as st, t as ct, v as lt } from "./keys-CqdzeWhT.js";
7
+ import { t as U } from "./useI18n-DLZJ6wNn.js";
8
8
  import { t as W } from "./createLucideIcon-ClREiSx3.js";
9
9
  import { t as ut } from "./accessibility-BU09xZrQ.js";
10
10
  import { n as dt, t as ft } from "./pencil-Bpimrzzw.js";
11
11
  import { t as pt } from "./chevron-down-C5oBUhT8.js";
12
12
  import { n as mt, t as ht } from "./chevron-right-BqCptpdp.js";
13
13
  import { t as gt } from "./circle-alert-ZQQc98HC.js";
14
- import { n as _t, r as vt, t as yt } from "./blockTypeIcons-JjmIZ_Vx.js";
14
+ import { n as _t, r as vt, t as yt } from "./blockTypeIcons-CeaSm2Xd.js";
15
15
  import { n as bt, t as xt } from "./refresh-cw-DwDqGUM0.js";
16
16
  import { t as St } from "./image-up-DT7gcJLN.js";
17
17
  import { t as Ct } from "./info-BSPGcsSM.js";
@@ -23,12 +23,12 @@ import { t as jt } from "./trash-2-CtK2apEH.js";
23
23
  import { t as Mt } from "./triangle-alert-KpDVNbpn.js";
24
24
  import { t as Nt } from "./x-BkaOMosX.js";
25
25
  import { t as G } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
26
- import { t as Pt } from "./useCloudI18n-DOKSZql1.js";
27
- import { t as Ft } from "./useMergeTag-BfVcyNSv.js";
28
- import { t as It } from "./CountdownBlock-Ba3T-i2X.js";
26
+ import { t as Pt } from "./useCloudI18n-CDhjmAgB.js";
27
+ import { t as Ft } from "./useMergeTag-D-kqWENN.js";
28
+ import { t as It } from "./CountdownBlock-CrpaDWze.js";
29
29
  import { t as Lt } from "./readableTextColor-C_9OpzBw.js";
30
30
  import { _ as Rt, c as zt, f as K, g as Bt, h as q, l as Vt, m as J, p as Y, t as Ht } from "./styleConstants-34eUKPOZ.js";
31
- import { a as X, i as Ut, n as Wt, r as Z, t as Gt } from "./SlidingPillSelect-DfcBdJqN.js";
31
+ import { a as X, i as Ut, n as Wt, r as Z, t as Gt } from "./SlidingPillSelect-Dt34f5VF.js";
32
32
  var Kt = W("arrow-down-from-line", [
33
33
  ["path", {
34
34
  d: "M19 3H5",
@@ -566,11 +566,11 @@ function Cn(e) {
566
566
  }
567
567
  //#endregion
568
568
  //#region src/utils/resolvePopupEmbed.ts
569
- var wn = /* @__PURE__ */ e(Fe(), 1);
569
+ var wn = /* @__PURE__ */ e(Pe(), 1);
570
570
  function Tn(e) {
571
- let t = V(), n = e.popup;
571
+ let t = H(), n = e.popup;
572
572
  return n ? {
573
- triggers: ne(t.triggers, n.triggers),
573
+ triggers: te(t.triggers, n.triggers),
574
574
  design: {
575
575
  ...t.design,
576
576
  ...n.design ?? {},
@@ -584,7 +584,7 @@ function Tn(e) {
584
584
  ...n.schedule ?? {},
585
585
  slots: n.schedule?.slots === void 0 ? t.schedule.slots : n.schedule.slots
586
586
  },
587
- frequency: L(n.frequency)
587
+ frequency: R(n.frequency)
588
588
  } : t;
589
589
  }
590
590
  //#endregion
@@ -623,29 +623,29 @@ var En = {
623
623
  ],
624
624
  setup(e, { emit: n }) {
625
625
  let i = {
626
- section: Ne,
627
- title: Ce,
628
- paragraph: ke,
629
- image: Re,
630
- button: he,
631
- input: Se,
632
- divider: we,
633
- spacer: Ie,
634
- html: Be,
635
- social: Te,
636
- menu: Oe,
637
- table: Pe,
638
- video: Ae,
626
+ section: Me,
627
+ title: Se,
628
+ paragraph: Oe,
629
+ image: Le,
630
+ button: me,
631
+ input: xe,
632
+ divider: Ce,
633
+ spacer: Fe,
634
+ html: ze,
635
+ social: we,
636
+ menu: De,
637
+ table: Ne,
638
+ video: ke,
639
639
  countdown: It,
640
- form: Ee,
641
- discountCoupon: ze,
642
- custom: xe
643
- }, o = e, s = n, { t: l } = U(), { t: d } = Pt(), _ = Ye(nt, "Canvas"), v = r($e, null), b = r(ot, null), O = r(Qe, {}), k = D(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("chat") ?? !1)), j = D(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = D({
640
+ form: Te,
641
+ discountCoupon: Re,
642
+ custom: be
643
+ }, o = e, s = n, { t: l } = U(), { t: d } = Pt(), _ = rt(nt, "Canvas"), v = r($e, null), b = r(st, null), O = r(Qe, {}), k = D(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("chat") ?? !1)), j = D(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = D({
644
644
  get: () => o.content.blocks,
645
645
  set: (e) => {
646
646
  let t = o.content, n = t.activeCanvasPageId;
647
647
  if (t.canvasPages?.length && n) {
648
- _.setContent(fe({
648
+ _.setContent(de({
649
649
  ...t,
650
650
  canvasPages: t.canvasPages.map((t) => t.id === n ? {
651
651
  ...t,
@@ -671,11 +671,11 @@ var En = {
671
671
  case "tablet": return 768;
672
672
  default: return o.content.settings.width;
673
673
  }
674
- }), I = D(() => (o.content.canvasPages ?? []).length > 0), ee = D(() => o.multiPageCanvas === !0 && I.value);
675
- function te(e) {
674
+ }), I = D(() => (o.content.canvasPages ?? []).length > 0), L = D(() => o.multiPageCanvas === !0 && I.value);
675
+ function ee(e) {
676
676
  return Number.isFinite(e) ? Math.min(1, Math.max(0, e)) : 0;
677
677
  }
678
- function L(e, t) {
678
+ function R(e, t) {
679
679
  if (!e) return e;
680
680
  let n = Math.min(1, Math.max(0, t === void 0 || !Number.isFinite(t) ? 1 : t));
681
681
  if (n === 1) return e;
@@ -684,48 +684,48 @@ var En = {
684
684
  let a = Number.parseInt(i, 16);
685
685
  return Number.isFinite(a) ? `rgba(${a >> 16 & 255}, ${a >> 8 & 255}, ${a & 255}, ${n})` : e;
686
686
  }
687
- function R(e) {
687
+ function z(e) {
688
688
  if (e === void 0 || !Number.isFinite(e)) return;
689
689
  let t = Math.min(1, Math.max(0, e));
690
690
  return t === 0 ? "none" : `0 ${Math.round(t * 12)}px ${Math.round(t * 60)}px rgba(0, 0, 0, ${Number((t * .35).toFixed(3))})`;
691
691
  }
692
- let z = D(() => o.content.settings.popup ? Tn(o.content.settings).design : null);
693
- function ne(e) {
692
+ let B = D(() => o.content.settings.popup ? Tn(o.content.settings).design : null);
693
+ function te(e) {
694
694
  return e === void 0 || !Number.isFinite(e) ? Ln : Math.min(30, Math.max(0, e));
695
695
  }
696
- let B = D(() => {
697
- let e = z.value;
696
+ let V = D(() => {
697
+ let e = B.value;
698
698
  return e?.useOverlay ? e : null;
699
- }), re = D(() => z.value?.sizePreset ?? "large"), ie = D(() => !!B.value && re.value === "fullHeight"), ae = D(() => !!B.value && re.value === "fullscreen"), V = D(() => ie.value || ae.value), oe = y(null);
699
+ }), ne = D(() => B.value?.sizePreset ?? "large"), re = D(() => !!V.value && ne.value === "fullHeight"), ie = D(() => !!V.value && ne.value === "fullscreen"), H = D(() => re.value || ie.value), ae = y(null);
700
700
  p(() => {
701
- let e = z.value;
701
+ let e = B.value;
702
702
  return e?.backgroundImage && e.backgroundImageUrl ? e.backgroundImageUrl : "";
703
703
  }, (e) => {
704
- if (oe.value = null, !e) return;
704
+ if (ae.value = null, !e) return;
705
705
  let t = new Image(), n = e;
706
706
  t.onload = () => {
707
- n === z.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (oe.value = t.naturalWidth / t.naturalHeight));
707
+ n === B.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (ae.value = t.naturalWidth / t.naturalHeight));
708
708
  }, t.onerror = () => {
709
- oe.value = null;
709
+ ae.value = null;
710
710
  }, t.src = e;
711
711
  }, { immediate: !0 });
712
- let { height: se } = Ke(), ce = D(() => Math.max(zn, se.value - Rn)), le = D(() => o.viewport === "desktop"), ue = D(() => {
712
+ let { height: oe } = Ge(), se = D(() => Math.max(zn, oe.value - Rn)), ce = D(() => o.viewport === "desktop"), le = D(() => {
713
713
  switch (o.viewport) {
714
714
  case "mobile": return 375;
715
715
  case "tablet": return 768;
716
716
  default: return 0;
717
717
  }
718
- }), de = D(() => {
718
+ }), ue = D(() => {
719
719
  switch (o.viewport) {
720
720
  case "mobile": return 600;
721
721
  case "tablet": return 600;
722
722
  default: return 600;
723
723
  }
724
- }), pe = D(() => {
724
+ }), fe = D(() => {
725
725
  let e = o.content.settings.width;
726
- return le.value ? e : Math.min(e, ue.value);
726
+ return ce.value ? e : Math.min(e, le.value);
727
727
  });
728
- function me(e) {
728
+ function pe(e) {
729
729
  switch (e) {
730
730
  case "topLeft":
731
731
  case "middleLeft":
@@ -736,10 +736,10 @@ var En = {
736
736
  default: return "tpl:justify-center";
737
737
  }
738
738
  }
739
- let ge = D(() => {
740
- let e = B.value?.popupPosition ?? "center";
741
- if (ae.value) return "tpl:items-stretch tpl:justify-center";
742
- if (ie.value) return `tpl:items-stretch ${me(e)}`;
739
+ let he = D(() => {
740
+ let e = V.value?.popupPosition ?? "center";
741
+ if (ie.value) return "tpl:items-stretch tpl:justify-center";
742
+ if (re.value) return `tpl:items-stretch ${pe(e)}`;
743
743
  switch (e) {
744
744
  case "topLeft": return "tpl:items-start tpl:justify-start";
745
745
  case "topCenter": return "tpl:items-start tpl:justify-center";
@@ -751,10 +751,10 @@ var En = {
751
751
  case "bottomRight": return "tpl:items-end tpl:justify-end";
752
752
  default: return "tpl:items-center tpl:justify-center";
753
753
  }
754
- }), _e = D(() => {
755
- let e = { width: le.value ? "100%" : `${ue.value}px` };
756
- if (V.value) {
757
- let t = ce.value;
754
+ }), ge = D(() => {
755
+ let e = { width: ce.value ? "100%" : `${le.value}px` };
756
+ if (H.value) {
757
+ let t = se.value;
758
758
  return {
759
759
  ...e,
760
760
  minHeight: `${t}px`,
@@ -763,17 +763,17 @@ var En = {
763
763
  }
764
764
  return {
765
765
  ...e,
766
- minHeight: `${de.value}px`
766
+ minHeight: `${ue.value}px`
767
767
  };
768
- }), ve = D(() => {
769
- let e = !!B.value, t = e ? `${pe.value}px` : ee.value ? "100%" : `${F.value}px`, n = B.value, r = n?.backgroundImage && n.backgroundImageUrl ? n.backgroundImageUrl : "", i = n?.backgroundImageFit ?? "cover", a = r && i === "auto" && oe.value !== null, s = a ? "100% 100%" : i === "contain" ? "contain" : "cover", c = null, l = null;
770
- if (a && e && !V.value) {
771
- let e = oe.value, t = pe.value, n = t / e;
772
- n > ce.value ? (l = ce.value, c = l * e) : (c = t, l = n);
768
+ }), _e = D(() => {
769
+ let e = !!V.value, t = e ? `${fe.value}px` : L.value ? "100%" : `${F.value}px`, n = V.value, r = n?.backgroundImage && n.backgroundImageUrl ? n.backgroundImageUrl : "", i = n?.backgroundImageFit ?? "cover", a = r && i === "auto" && ae.value !== null, s = a ? "100% 100%" : i === "contain" ? "contain" : "cover", c = null, l = null;
770
+ if (a && e && !H.value) {
771
+ let e = ae.value, t = fe.value, n = t / e;
772
+ n > se.value ? (l = se.value, c = l * e) : (c = t, l = n);
773
773
  }
774
- let u = R(o.content.settings.backgroundShadow), d = {
774
+ let u = z(o.content.settings.backgroundShadow), d = {
775
775
  width: c === null ? t : `${Math.round(c)}px`,
776
- backgroundColor: L(o.content.settings.backgroundColor, o.content.settings.backgroundOpacity),
776
+ backgroundColor: R(o.content.settings.backgroundColor, o.content.settings.backgroundOpacity),
777
777
  backgroundImage: r ? `url("${r}")` : void 0,
778
778
  backgroundSize: r ? s : void 0,
779
779
  backgroundPosition: r ? "center" : void 0,
@@ -782,19 +782,19 @@ var En = {
782
782
  filter: o.darkMode ? "invert(1) hue-rotate(180deg)" : "none",
783
783
  transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease"
784
784
  };
785
- if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e && ae.value) d.width = "100%", d.height = "100%", d.minHeight = "100%", d.maxHeight = "none", d.borderRadius = "0";
786
- else if (e && ie.value) {
787
- let e = ce.value;
788
- d.width = `${pe.value}px`, d.height = `${e}px`, d.minHeight = `${e}px`, d.maxHeight = `${e}px`, d.borderRadius = "0";
785
+ if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e && ie.value) d.width = "100%", d.height = "100%", d.minHeight = "100%", d.maxHeight = "none", d.borderRadius = "0";
786
+ else if (e && re.value) {
787
+ let e = se.value;
788
+ d.width = `${fe.value}px`, d.height = `${e}px`, d.minHeight = `${e}px`, d.maxHeight = `${e}px`, d.borderRadius = "0";
789
789
  }
790
790
  return d;
791
- }), ye = D(() => B.value ? le.value ? { width: "100%" } : { width: `${ue.value}px` } : ee.value ? { width: `${F.value}px` } : void 0), be = D(() => {
792
- let e = B.value;
791
+ }), ve = D(() => V.value ? ce.value ? { width: "100%" } : { width: `${le.value}px` } : L.value ? { width: `${F.value}px` } : void 0), ye = D(() => {
792
+ let e = V.value;
793
793
  return {
794
- backgroundColor: e?.backgroundImage && e.backgroundImageUrl ? "transparent" : L(o.content.settings.backgroundColor, o.content.settings.backgroundOpacity),
794
+ backgroundColor: e?.backgroundImage && e.backgroundImageUrl ? "transparent" : R(o.content.settings.backgroundColor, o.content.settings.backgroundOpacity),
795
795
  fontFamily: o.content.settings.fontFamily
796
796
  };
797
- }), je = D(() => {
797
+ }), Ae = D(() => {
798
798
  if (!o.content.settings.popup) return {};
799
799
  let e = Tn(o.content.settings).design.contentPadding;
800
800
  return {
@@ -803,27 +803,27 @@ var En = {
803
803
  paddingBottom: `${e.bottom}px`,
804
804
  paddingLeft: `${e.left}px`
805
805
  };
806
- }), Fe = D(() => {
807
- let e = B.value;
806
+ }), Pe = D(() => {
807
+ let e = V.value;
808
808
  return !!(e?.overlayImage && e.overlayImageUrl);
809
- }), Le = D(() => {
810
- let e = B.value;
809
+ }), Ie = D(() => {
810
+ let e = V.value;
811
811
  if (!e) return {};
812
- let t = ne(e.overlayBlur), n = t > 0 ? `blur(${t}px)` : "none";
812
+ let t = te(e.overlayBlur), n = t > 0 ? `blur(${t}px)` : "none";
813
813
  return {
814
814
  backdropFilter: n,
815
815
  WebkitBackdropFilter: n,
816
- backgroundColor: Fe.value ? "transparent" : "rgba(0, 0, 0, 0.1)"
816
+ backgroundColor: Pe.value ? "transparent" : "rgba(0, 0, 0, 0.1)"
817
817
  };
818
- }), Ve = D(() => B.value?.overlayImageUrl ?? ""), He = D(() => te(B.value?.overlayImageOpacity ?? 1)), Ue = D(() => {
819
- let e = ne(B.value?.overlayBlur), t = e > 0 ? `blur(${e}px)` : "none";
818
+ }), Be = D(() => V.value?.overlayImageUrl ?? ""), Ve = D(() => ee(V.value?.overlayImageOpacity ?? 1)), He = D(() => {
819
+ let e = te(V.value?.overlayBlur), t = e > 0 ? `blur(${e}px)` : "none";
820
820
  return {
821
- opacity: He.value,
821
+ opacity: Ve.value,
822
822
  filter: t,
823
823
  WebkitFilter: t
824
824
  };
825
825
  });
826
- function We(e, t) {
826
+ function Ue(e, t) {
827
827
  if (e === "none") return "";
828
828
  if (e === "fadeIn") return "tpl-popup-fadeIn";
829
829
  let n = e === "smooth";
@@ -839,69 +839,69 @@ var En = {
839
839
  default: return n ? "tpl-popup-smoothTop" : "tpl-popup-topToBottom";
840
840
  }
841
841
  }
842
- let Ge = D(() => {
843
- let e = B.value;
844
- return e ? We(e.displayAnimation, e.popupPosition) : "";
845
- }), qe = y(!0);
842
+ let We = D(() => {
843
+ let e = V.value;
844
+ return e ? Ue(e.displayAnimation, e.popupPosition) : "";
845
+ }), Ke = y(!0);
846
846
  p(() => {
847
- let e = B.value;
847
+ let e = V.value;
848
848
  return e ? `${e.displayAnimation}|${e.popupPosition}` : "";
849
849
  }, async () => {
850
- qe.value = !1, await T(), qe.value = !0;
850
+ Ke.value = !1, await T(), Ke.value = !0;
851
851
  });
852
- let Je = D(() => {
853
- if (!B.value) return {};
854
- let e = Ge.value;
855
- return !e || !qe.value ? { animation: "none" } : { animation: `${e} ${Bn} ${Vn} ${Hn} both` };
852
+ let qe = D(() => {
853
+ if (!V.value) return {};
854
+ let e = We.value;
855
+ return !e || !Ke.value ? { animation: "none" } : { animation: `${e} ${Bn} ${Vn} ${Hn} both` };
856
856
  });
857
- function Xe(e) {
857
+ function Je(e) {
858
858
  o.previewMode || e.target === e.currentTarget && s("select-block", null);
859
859
  }
860
- function Ze(e) {
861
- return Me(e, b, i);
860
+ function Ye(e) {
861
+ return je(e, b, i);
862
862
  }
863
- function H(e) {
863
+ function Xe(e) {
864
864
  return o.lockedBlocks?.get(e) ?? null;
865
865
  }
866
- function et(e, t) {
866
+ function Ze(e, t) {
867
867
  e.type === "custom" && _.updateBlock(e.id, {
868
868
  fieldValues: t.fieldValues,
869
869
  dataSourceFetched: t.dataSourceFetched
870
870
  });
871
871
  }
872
872
  return (n, r) => (c(), N("div", {
873
- class: t(["tpl-canvas-root tpl:box-border tpl:max-w-full", B.value ? "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" : ""]),
874
- style: w(ye.value)
873
+ class: t(["tpl-canvas-root tpl:box-border tpl:max-w-full", V.value ? "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" : ""]),
874
+ style: w(ve.value)
875
875
  }, [S("div", {
876
- class: t(B.value ? "tpl-popup-frame tpl:relative tpl:flex tpl:flex-col tpl:max-w-full tpl:overflow-hidden" : "tpl:contents"),
877
- style: w(B.value ? _e.value : void 0)
878
- }, [B.value ? (c(), N("div", En, [S("div", {
876
+ class: t(V.value ? "tpl-popup-frame tpl:relative tpl:flex tpl:flex-col tpl:max-w-full tpl:overflow-hidden" : "tpl:contents"),
877
+ style: w(V.value ? ge.value : void 0)
878
+ }, [V.value ? (c(), N("div", En, [S("div", {
879
879
  class: "tpl:absolute tpl:inset-0",
880
- style: w(Le.value)
881
- }, null, 4), Fe.value ? (c(), N("img", {
880
+ style: w(Ie.value)
881
+ }, null, 4), Pe.value ? (c(), N("img", {
882
882
  key: 0,
883
- src: Ve.value,
883
+ src: Be.value,
884
884
  alt: "",
885
885
  class: "tpl:absolute tpl:inset-0 tpl:h-full tpl:w-full tpl:object-cover",
886
- style: w(Ue.value)
887
- }, null, 12, Dn)) : h("", !0)])) : h("", !0), S("div", { class: t(B.value ? `tpl:relative tpl:z-[1] tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-1 tpl:w-full ${ge.value}` : "tpl:contents") }, [S("div", {
886
+ style: w(He.value)
887
+ }, null, 12, Dn)) : h("", !0)])) : h("", !0), S("div", { class: t(V.value ? `tpl:relative tpl:z-[1] tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-1 tpl:w-full ${he.value}` : "tpl:contents") }, [S("div", {
888
888
  "data-testid": "canvas-wrapper",
889
889
  role: "region",
890
890
  "aria-label": A(l).landmarks.canvas,
891
- class: t(["tpl-canvas-wrapper tpl:rounded-lg", V.value ? "tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-col !tpl:rounded-none" : "tpl:shrink-0"]),
892
- style: w([ve.value, Je.value])
891
+ class: t(["tpl-canvas-wrapper tpl:rounded-lg", H.value ? "tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-col !tpl:rounded-none" : "tpl:shrink-0"]),
892
+ style: w([_e.value, qe.value])
893
893
  }, [S("div", {
894
894
  class: t(["tpl-canvas tpl:rounded-lg", {
895
895
  "tpl-canvas--dark-mode": e.darkMode,
896
896
  "tpl-preview-mode": e.previewMode,
897
- "tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto": V.value,
898
- "!tpl:rounded-none": V.value
897
+ "tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto": H.value,
898
+ "!tpl:rounded-none": H.value
899
899
  }]),
900
900
  style: w({
901
- ...be.value,
902
- ...je.value
901
+ ...ye.value,
902
+ ...Ae.value
903
903
  }),
904
- onClick: Xe
904
+ onClick: Je
905
905
  }, [P(A(wn.default), {
906
906
  modelValue: M.value,
907
907
  "onUpdate:modelValue": r[2] ||= (e) => M.value = e,
@@ -916,30 +916,30 @@ var En = {
916
916
  disabled: e.previewMode,
917
917
  class: "tpl-canvas-blocks"
918
918
  }, {
919
- item: f(({ element: t }) => [m(S("div", null, [S("div", kn, [H(t.id) ? (c(), N("div", {
919
+ item: f(({ element: t }) => [m(S("div", null, [S("div", kn, [Xe(t.id) ? (c(), N("div", {
920
920
  key: 0,
921
921
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
922
922
  style: w({
923
- outline: `2px solid ${H(t.id).color}`,
923
+ outline: `2px solid ${Xe(t.id).color}`,
924
924
  outlineOffset: "-1px"
925
925
  })
926
926
  }, [S("span", {
927
927
  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:whitespace-nowrap",
928
928
  style: w({
929
- backgroundColor: H(t.id).color,
930
- color: A(Lt)(H(t.id).color)
929
+ backgroundColor: Xe(t.id).color,
930
+ color: A(Lt)(Xe(t.id).color)
931
931
  })
932
- }, [S("span", An, a(H(t.id).name.charAt(0)), 1), g(" " + a(H(t.id).name), 1)], 4)], 4)) : h("", !0), P(De, {
932
+ }, [S("span", An, a(Xe(t.id).name.charAt(0)), 1), g(" " + a(Xe(t.id).name), 1)], 4)], 4)) : h("", !0), P(Ee, {
933
933
  block: t,
934
- "is-selected": !e.previewMode && e.selectedBlockId === t.id && !H(t.id),
934
+ "is-selected": !e.previewMode && e.selectedBlockId === t.id && !Xe(t.id),
935
935
  viewport: e.viewport,
936
936
  "preview-mode": e.previewMode,
937
- onSelect: (n) => e.previewMode || H(t.id) ? void 0 : s("select-block", t.id)
937
+ onSelect: (n) => e.previewMode || Xe(t.id) ? void 0 : s("select-block", t.id)
938
938
  }, {
939
- default: f(() => [(c(), x(u(Ze(t)), {
939
+ default: f(() => [(c(), x(u(Ye(t)), {
940
940
  block: t,
941
941
  viewport: e.viewport,
942
- onFetchData: (e) => et(t, e),
942
+ onFetchData: (e) => Ze(t, e),
943
943
  onUpdate: (e) => A(_).updateBlock(t.id, e)
944
944
  }, null, 40, [
945
945
  "block",
@@ -1013,7 +1013,7 @@ var En = {
1013
1013
  multiPageCanvas: { type: Boolean }
1014
1014
  },
1015
1015
  setup(e) {
1016
- let n = e, { t: r } = U(), o = Ye(nt, "CanvasPagesNav"), s = D(() => o.content.value.canvasPages ?? []), l = D(() => o.content.value.activeCanvasPageId ?? null), u = y(null), d = y(null), f = y(null), p = y(null);
1016
+ let n = e, { t: r } = U(), o = rt(nt, "CanvasPagesNav"), s = D(() => o.content.value.canvasPages ?? []), l = D(() => o.content.value.activeCanvasPageId ?? null), u = y(null), d = y(null), f = y(null), p = y(null);
1017
1017
  function m(e, t) {
1018
1018
  let n = t.currentTarget;
1019
1019
  if (!n) return;
@@ -1040,7 +1040,7 @@ var En = {
1040
1040
  for (let n = 1; n < e.length; n += 1) T(e[n - 1].blocks) || t.add(e[n].id);
1041
1041
  return t;
1042
1042
  });
1043
- qe(u, () => {
1043
+ Ke(u, () => {
1044
1044
  d.value = null;
1045
1045
  }), C(() => {
1046
1046
  n.multiPageCanvas && o.ensureCanvasPages();
@@ -1059,7 +1059,7 @@ var En = {
1059
1059
  let n = window.prompt(r.canvas.pages.renamePrompt, t);
1060
1060
  n !== null && (o.renameCanvasPage(e, n), d.value = null);
1061
1061
  }
1062
- function ee(e) {
1062
+ function L(e) {
1063
1063
  s.value.length <= 1 || (o.removeCanvasPage(e), d.value = null);
1064
1064
  }
1065
1065
  return (n, o) => (c(), N(b, null, [O.value ? (c(), N("nav", {
@@ -1120,7 +1120,7 @@ var En = {
1120
1120
  type: "button",
1121
1121
  role: "menuitem",
1122
1122
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:text-sm tpl:text-[var(--tpl-danger)] tpl:outline-none hover:tpl:bg-[var(--tpl-bg-elevated)]",
1123
- onClick: (e) => ee(n.id)
1123
+ onClick: (e) => L(n.id)
1124
1124
  }, a(A(r).canvas.pages.delete), 9, Zn)) : h("", !0)])) : h("", !0)])], 64))), 128)), e.previewMode ? h("", !0) : (c(), N("button", {
1125
1125
  key: 0,
1126
1126
  type: "button",
@@ -1170,7 +1170,7 @@ var En = {
1170
1170
  props: { imageUrl: {} },
1171
1171
  emits: ["set-url"],
1172
1172
  setup(e, { emit: n }) {
1173
- let i = e, o = n, { t: s } = U(), l = r(Xe, null), u = D(() => l !== null), d = y(null), f = y(!1);
1173
+ let i = e, o = n, { t: s } = U(), l = r(Je, null), u = D(() => l !== null), d = y(null), f = y(!1);
1174
1174
  function p(e) {
1175
1175
  let t = e?.[0];
1176
1176
  if (!t || !t.type.startsWith("image/")) return;
@@ -1268,7 +1268,7 @@ var En = {
1268
1268
  onDrop: v(h, ["prevent"]),
1269
1269
  onClick: _
1270
1270
  }, [
1271
- P(A(ge), {
1271
+ P(A(he), {
1272
1272
  size: 28,
1273
1273
  "stroke-width": 1.5,
1274
1274
  class: "tpl:text-[var(--tpl-text-muted)]"
@@ -1350,7 +1350,7 @@ var En = {
1350
1350
  ...t,
1351
1351
  design: n
1352
1352
  } };
1353
- e.sizePreset !== void 0 && (r.width = ue[e.sizePreset]), o.updateSettings(r);
1353
+ e.sizePreset !== void 0 && (r.width = le[e.sizePreset]), o.updateSettings(r);
1354
1354
  }
1355
1355
  function g(e, t) {
1356
1356
  m({ [e]: t });
@@ -1452,13 +1452,13 @@ var En = {
1452
1452
  label: s.popupDesign.animationNone
1453
1453
  }
1454
1454
  ]);
1455
- function ee(e) {
1455
+ function L(e) {
1456
1456
  m({ displayAnimation: e.target.value });
1457
1457
  }
1458
- function te(e) {
1458
+ function ee(e) {
1459
1459
  m({ closeButtonPosition: e.target.value });
1460
1460
  }
1461
- let L = D(() => [
1461
+ let R = D(() => [
1462
1462
  "small",
1463
1463
  "medium",
1464
1464
  "large",
@@ -1476,7 +1476,7 @@ var En = {
1476
1476
  onClick: (t) => d.value = e.id
1477
1477
  }, a(e.label), 11, _r))), 128))]), d.value === "style" ? (c(), N(b, { key: 0 }, [
1478
1478
  S("p", vr, a(A(s).popupDesign.standardSize), 1),
1479
- S("div", { class: t(u.value) }, [(c(!0), N(b, null, i(L.value, (e) => (c(), N("button", {
1479
+ S("div", { class: t(u.value) }, [(c(!0), N(b, null, i(R.value, (e) => (c(), N("button", {
1480
1480
  key: e.id,
1481
1481
  type: "button",
1482
1482
  class: t(["tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-center tpl:transition-shadow hover:tpl:border-[var(--tpl-primary)]", p.value.design.sizePreset === e.id ? "tpl:ring-2 tpl:ring-[var(--tpl-text)] tpl:ring-offset-2 tpl:ring-offset-[var(--tpl-bg)]" : ""]),
@@ -1575,7 +1575,7 @@ var En = {
1575
1575
  id: "popup-display-animation",
1576
1576
  class: "tpl:w-full tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]",
1577
1577
  value: p.value.design.displayAnimation,
1578
- onChange: ee
1578
+ onChange: L
1579
1579
  }, [(c(!0), N(b, null, i(I.value, (e) => (c(), N("option", {
1580
1580
  key: e.id,
1581
1581
  value: e.id
@@ -1589,7 +1589,7 @@ var En = {
1589
1589
  id: "popup-close-button-position",
1590
1590
  class: "tpl:w-full tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]",
1591
1591
  value: p.value.design.closeButtonPosition,
1592
- onChange: te
1592
+ onChange: ee
1593
1593
  }, [S("option", ci, a(A(s).popupDesign.closingButtonPositionLeft), 1), S("option", li, a(A(s).popupDesign.closingButtonPositionRight), 1)], 40, si)])) : h("", !0),
1594
1594
  S("div", ui, [S("span", di, a(A(s).popupDesign.closingOnOverlayClick), 1), P(tr, {
1595
1595
  checked: p.value.design.closeOnOverlayClick,
@@ -1604,7 +1604,7 @@ function gi(e, t) {
1604
1604
  if (!e?.length) return !1;
1605
1605
  for (let n of e) {
1606
1606
  if (t(n)) return !0;
1607
- if (te(n)) {
1607
+ if (ee(n)) {
1608
1608
  for (let e of n.children) if (Array.isArray(e) && gi(e, t)) return !0;
1609
1609
  }
1610
1610
  }
@@ -1655,7 +1655,7 @@ function Ti(e) {
1655
1655
  if (!e?.length) return !1;
1656
1656
  for (let t of e) {
1657
1657
  if (t.type === "discountCoupon") return !0;
1658
- if (te(t)) {
1658
+ if (ee(t)) {
1659
1659
  for (let e of t.children) if (Array.isArray(e) && Ti(e)) return !0;
1660
1660
  }
1661
1661
  }
@@ -1671,7 +1671,7 @@ function Ei(e) {
1671
1671
  return Ti(e.blocks);
1672
1672
  }
1673
1673
  function Di() {
1674
- let { t: e, format: t } = U(), n = r(H, []), i = r(rt, void 0), a = r(nt, null), o = r(Qe, {}), s = r(tt, "email"), c = D(() => (o.savedModules?.moduleCount.value ?? 0) > 0), l = [
1674
+ let { t: e, format: t } = U(), n = r(et, []), i = r(it, void 0), a = r(nt, null), o = r(Qe, {}), s = r(tt, "email"), c = D(() => (o.savedModules?.moduleCount.value ?? 0) > 0), l = [
1675
1675
  "section",
1676
1676
  "image",
1677
1677
  "title",
@@ -1692,7 +1692,7 @@ function Di() {
1692
1692
  let t = s === "popup" ? Ci : wi;
1693
1693
  return l.filter((e) => !t.has(e)).map((t) => ({
1694
1694
  type: t,
1695
- label: be(t, e)
1695
+ label: ye(t, e)
1696
1696
  }));
1697
1697
  }), d = D(() => n.map((e) => ({
1698
1698
  type: `custom:${e.type}`,
@@ -1709,9 +1709,9 @@ function Di() {
1709
1709
  function _(e) {
1710
1710
  if (e.isCustom) {
1711
1711
  let t = e.type.replace("custom:", ""), r = n.find((e) => e.type === t);
1712
- if (r) return ae(r);
1712
+ if (r) return ie(r);
1713
1713
  }
1714
- return ie(e.type, i);
1714
+ return re(e.type, i);
1715
1715
  }
1716
1716
  function v(e) {
1717
1717
  if (!a || h(e)) return;
@@ -1846,7 +1846,7 @@ var Oi = ["aria-label"], ki = {
1846
1846
  key: 0,
1847
1847
  size: 20,
1848
1848
  "stroke-width": 1.5
1849
- })) : e.isCustom ? (c(), x(ve, {
1849
+ })) : e.isCustom ? (c(), x(_e, {
1850
1850
  key: 1,
1851
1851
  icon: e.icon,
1852
1852
  size: 20
@@ -1865,7 +1865,7 @@ var Oi = ["aria-label"], ki = {
1865
1865
  }), Li = ["aria-label"], Ri = ["aria-label"], zi = ["aria-current", "onClick"], Bi = { class: "tpl:max-w-[4.25rem] tpl:text-center tpl:text-[10px] tpl:font-medium tpl:leading-tight" }, Vi = ["aria-label"], Hi = /* @__PURE__ */ n({
1866
1866
  __name: "PopupLeftChrome",
1867
1867
  setup(e) {
1868
- let n = r(ct, y("blocks")), { t: o } = U(), s = D(() => [
1868
+ let n = r(Xe, y("blocks")), { t: o } = U(), s = D(() => [
1869
1869
  {
1870
1870
  id: "design",
1871
1871
  icon: dn,
@@ -1942,7 +1942,7 @@ function Wi(e) {
1942
1942
  type: "mergeTag",
1943
1943
  value: t,
1944
1944
  label: s(t)
1945
- }) : z(t, l) ? n.push({
1945
+ }) : B(t, l) ? n.push({
1946
1946
  type: "logicMergeTag",
1947
1947
  value: t,
1948
1948
  keyword: I(t, l)
@@ -2302,7 +2302,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2302
2302
  props: { settings: {} },
2303
2303
  emits: ["update"],
2304
2304
  setup(e, { emit: n }) {
2305
- let r = e, o = n, { t: s } = U(), l = Ye(et, "TemplateSettings"), u = D(() => l.fonts.value), d = D(() => u.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : l.defaultFont.value), f = [
2305
+ let r = e, o = n, { t: s } = U(), l = rt(Ze, "TemplateSettings"), u = D(() => l.fonts.value), d = D(() => u.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : l.defaultFont.value), f = [
2306
2306
  {
2307
2307
  value: 480,
2308
2308
  label: "480px"
@@ -2692,7 +2692,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2692
2692
  },
2693
2693
  emits: ["update"],
2694
2694
  setup(e, { emit: n }) {
2695
- let o = e, s = n, { t: d } = U(), v = r(it, []), C = r(at, !1), w = l(/* @__PURE__ */ new Set()), T = y(!1), E = y(""), O = y(""), k = [
2695
+ let o = e, s = n, { t: d } = U(), v = r(at, []), C = r(ot, !1), w = l(/* @__PURE__ */ new Set()), T = y(!1), E = y(""), O = y(""), k = [
2696
2696
  {
2697
2697
  key: "desktop",
2698
2698
  icon: sn,
@@ -2716,7 +2716,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2716
2716
  function I() {
2717
2717
  T.value = !0, F.value && o.block.displayCondition ? (E.value = o.block.displayCondition.before, O.value = o.block.displayCondition.after ?? "") : (E.value = "", O.value = "");
2718
2718
  }
2719
- function ee() {
2719
+ function L() {
2720
2720
  E.value.trim() && (s("update", { displayCondition: {
2721
2721
  label: d.blockSettings.customCondition,
2722
2722
  before: E.value.trim(),
@@ -2730,7 +2730,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2730
2730
  }
2731
2731
  F.value && (E.value = e.before, O.value = e.after ?? "");
2732
2732
  }, { immediate: !0 });
2733
- let te = D(() => {
2733
+ let ee = D(() => {
2734
2734
  let e = {};
2735
2735
  for (let t of v) {
2736
2736
  let n = t.group ?? "";
@@ -2738,20 +2738,20 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2738
2738
  }
2739
2739
  return e;
2740
2740
  });
2741
- function L(e, t) {
2741
+ function R(e, t) {
2742
2742
  s("update", { styles: {
2743
2743
  ...o.block.styles,
2744
2744
  [e]: t
2745
2745
  } });
2746
2746
  }
2747
- function R(e) {
2747
+ function z(e) {
2748
2748
  return o.block.visibility?.[e] !== !1;
2749
2749
  }
2750
- function z(e) {
2750
+ function B(e) {
2751
2751
  let t = {
2752
- desktop: R("desktop"),
2753
- tablet: R("tablet"),
2754
- mobile: R("mobile")
2752
+ desktop: z("desktop"),
2753
+ tablet: z("tablet"),
2754
+ mobile: z("mobile")
2755
2755
  };
2756
2756
  t[e] = !t[e], s("update", { visibility: t });
2757
2757
  }
@@ -2765,11 +2765,11 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2765
2765
  default: f(() => [P(ka, {
2766
2766
  label: A(d).blockSettings.padding,
2767
2767
  "model-value": e.block.styles.padding,
2768
- "onUpdate:modelValue": r[0] ||= (e) => L("padding", e)
2768
+ "onUpdate:modelValue": r[0] ||= (e) => R("padding", e)
2769
2769
  }, null, 8, ["label", "model-value"]), S("div", Qo, [P(ka, {
2770
2770
  label: A(d).blockSettings.margin,
2771
2771
  "model-value": e.block.styles.margin,
2772
- "onUpdate:modelValue": r[1] ||= (e) => L("margin", e)
2772
+ "onUpdate:modelValue": r[1] ||= (e) => R("margin", e)
2773
2773
  }, null, 8, ["label", "model-value"])])]),
2774
2774
  _: 1
2775
2775
  }, 8, [
@@ -2785,7 +2785,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2785
2785
  default: f(() => [S("label", { class: t(A(q)) }, a(A(d).blockSettings.color), 3), P(X, {
2786
2786
  size: "large",
2787
2787
  "model-value": e.block.styles.backgroundColor || A("#ffffff"),
2788
- "onUpdate:modelValue": r[3] ||= (e) => L("backgroundColor", e)
2788
+ "onUpdate:modelValue": r[3] ||= (e) => R("backgroundColor", e)
2789
2789
  }, null, 8, ["model-value"])]),
2790
2790
  _: 1
2791
2791
  }, 8, ["title", "open"]),
@@ -2801,8 +2801,8 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2801
2801
  S("input", {
2802
2802
  type: "checkbox",
2803
2803
  class: "tpl:accent-[var(--tpl-primary)]",
2804
- checked: R(e.key),
2805
- onChange: (t) => z(e.key)
2804
+ checked: z(e.key),
2805
+ onChange: (t) => B(e.key)
2806
2806
  }, null, 40, es),
2807
2807
  (c(), x(u(e.icon), {
2808
2808
  size: 14,
@@ -2850,7 +2850,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2850
2850
  }
2851
2851
  }, [
2852
2852
  S("option", is, a(A(d).blockSettings.noCondition), 1),
2853
- (c(!0), N(b, null, i(te.value, (e, t) => (c(), N(b, { key: t }, [t ? (c(), N("optgroup", {
2853
+ (c(!0), N(b, null, i(ee.value, (e, t) => (c(), N(b, { key: t }, [t ? (c(), N("optgroup", {
2854
2854
  key: 0,
2855
2855
  label: String(t)
2856
2856
  }, [(c(!0), N(b, null, i(e, (e) => (c(), N("option", {
@@ -2876,7 +2876,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
2876
2876
  type: "button",
2877
2877
  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",
2878
2878
  disabled: !E.value.trim(),
2879
- onClick: ee
2879
+ onClick: L
2880
2880
  }, a(A(d).blockSettings.applyCondition), 9, ps)])
2881
2881
  ])) : e.block.displayCondition && !F.value ? (c(), N(b, { key: 1 }, [e.block.displayCondition.description ? (c(), N("p", ms, a(e.block.displayCondition.description), 1)) : h("", !0), S("div", hs, [S("pre", gs, a(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (c(), N("pre", _s, a(e.block.displayCondition.after), 1)) : h("", !0)])], 64)) : h("", !0)])]),
2882
2882
  _: 1
@@ -3063,7 +3063,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3063
3063
  E.value = E.value === e ? null : e;
3064
3064
  }
3065
3065
  function M(e) {
3066
- let t = re(e);
3066
+ let t = ne(e);
3067
3067
  o("update", { fields: [...r.block.fields, t] }), E.value = t.id, O.value = !1;
3068
3068
  }
3069
3069
  function F(e) {
@@ -3075,10 +3075,10 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3075
3075
  ...t
3076
3076
  } : n) });
3077
3077
  }
3078
- function ee(e) {
3078
+ function L(e) {
3079
3079
  return C[e].icon;
3080
3080
  }
3081
- let te = [
3081
+ let ee = [
3082
3082
  {
3083
3083
  value: "next_step",
3084
3084
  label: s.form.buttonActions.nextStep
@@ -3096,7 +3096,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3096
3096
  label: s.form.buttonActions.none
3097
3097
  }
3098
3098
  ];
3099
- function L(e) {
3099
+ function R(e) {
3100
3100
  p("buttonLayout", e);
3101
3101
  }
3102
3102
  return (n, r) => (c(), N("div", null, [S("div", ys, [(c(), N(b, null, i(d, (e) => S("button", {
@@ -3129,7 +3129,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3129
3129
  type: "button",
3130
3130
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-between tpl:gap-2 tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left",
3131
3131
  onClick: (t) => j(e.id)
3132
- }, [S("span", ks, [(c(), x(u(ee(e.type)), {
3132
+ }, [S("span", ks, [(c(), x(u(L(e.type)), {
3133
3133
  size: 14,
3134
3134
  "stroke-width": 1.75
3135
3135
  })), g(" " + a(C[e.type].label), 1)]), S("span", As, [S("button", {
@@ -3238,7 +3238,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3238
3238
  class: t(A(K)),
3239
3239
  value: e.block.buttonAction,
3240
3240
  onChange: r[3] ||= (e) => p("buttonAction", e.target.value)
3241
- }, [(c(), N(b, null, i(te, (e) => S("option", {
3241
+ }, [(c(), N(b, null, i(ee, (e) => S("option", {
3242
3242
  key: e.value,
3243
3243
  value: e.value
3244
3244
  }, a(e.label), 9, oc)), 64))], 42, ac)]),
@@ -3252,7 +3252,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3252
3252
  S("div", lc, [S("label", uc, a(A(s).form.button.position), 1), S("div", dc, [S("button", {
3253
3253
  type: "button",
3254
3254
  class: t(["tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150", e.block.buttonLayout === "one_line" ? "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-muted)] hover:tpl:border-[var(--tpl-text-muted)]"]),
3255
- onClick: r[5] ||= (e) => L("one_line")
3255
+ onClick: r[5] ||= (e) => R("one_line")
3256
3256
  }, [r[12] ||= S("svg", {
3257
3257
  width: "56",
3258
3258
  height: "20",
@@ -3278,7 +3278,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3278
3278
  })], -1), g(" " + a(A(s).form.button.oneLine), 1)], 2), S("button", {
3279
3279
  type: "button",
3280
3280
  class: t(["tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150", e.block.buttonLayout === "two_lines" ? "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-muted)] hover:tpl:border-[var(--tpl-text-muted)]"]),
3281
- onClick: r[6] ||= (e) => L("two_lines")
3281
+ onClick: r[6] ||= (e) => R("two_lines")
3282
3282
  }, [r[13] ||= S("svg", {
3283
3283
  width: "56",
3284
3284
  height: "28",
@@ -3681,7 +3681,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3681
3681
  },
3682
3682
  emits: ["update:modelValue"],
3683
3683
  setup(e, { emit: n }) {
3684
- let i = n, { t: o } = U(), s = r(Xe, null), l = D(() => !!s);
3684
+ let i = n, { t: o } = U(), s = r(Je, null), l = D(() => !!s);
3685
3685
  async function u() {
3686
3686
  let e = await s?.({ accept: ["images"] });
3687
3687
  e && i("update:modelValue", e.url);
@@ -3710,7 +3710,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
3710
3710
  key: 2,
3711
3711
  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)]",
3712
3712
  onClick: r[1] ||= (e) => u()
3713
- }, [P(A(ge), {
3713
+ }, [P(A(he), {
3714
3714
  size: 14,
3715
3715
  "stroke-width": 1.5
3716
3716
  }), g(" " + a(A(o).image.browseMedia), 1)])) : h("", !0)]),
@@ -3995,7 +3995,7 @@ var Xl = {
3995
3995
  props: { block: {} },
3996
3996
  emits: ["updateFieldValues", "updateDataSourceFetched"],
3997
3997
  setup(e, { emit: t }) {
3998
- let n = e, o = t, { t: s } = U(), l = r(H, []), d = D(() => l.find((e) => e.type === n.block.customType)), { isFetching: f, fetchError: p, fetch: m, hasDataSource: _, needsFetch: v } = pe({
3998
+ let n = e, o = t, { t: s } = U(), l = r(et, []), d = D(() => l.find((e) => e.type === n.block.customType)), { isFetching: f, fetchError: p, fetch: m, hasDataSource: _, needsFetch: v } = fe({
3999
3999
  definition: d,
4000
4000
  block: D(() => n.block),
4001
4001
  onUpdate: (e, t) => {
@@ -4120,7 +4120,7 @@ var Xl = {
4120
4120
  value: "free_shipping",
4121
4121
  label: l.discountCoupon.types.freeShipping
4122
4122
  }
4123
- ], ee = [
4123
+ ], L = [
4124
4124
  {
4125
4125
  mode: "none",
4126
4126
  label: l.discountCoupon.modeNone
@@ -4133,7 +4133,7 @@ var Xl = {
4133
4133
  mode: "manual_shopify",
4134
4134
  label: l.discountCoupon.modeManual
4135
4135
  }
4136
- ], te = D(() => o.block.discountMode !== "none"), L = [
4136
+ ], ee = D(() => o.block.discountMode !== "none"), R = [
4137
4137
  {
4138
4138
  value: "none",
4139
4139
  label: l.discountCoupon.afterClickNone
@@ -4162,7 +4162,7 @@ var Xl = {
4162
4162
  class: "tpl:mb-4 tpl:flex tpl:flex-col tpl:gap-3",
4163
4163
  role: "radiogroup",
4164
4164
  "aria-label": A(l).blocks.discountCoupon
4165
- }, [(c(), N(b, null, i(ee, (n) => S("label", {
4165
+ }, [(c(), N(b, null, i(L, (n) => S("label", {
4166
4166
  key: n.mode,
4167
4167
  class: t(["tpl:flex tpl:items-start tpl:gap-2 tpl:text-sm", _(n.mode) ? "tpl:cursor-not-allowed tpl:text-[var(--tpl-text-muted)] tpl:opacity-70" : "tpl:cursor-pointer tpl:text-[var(--tpl-text)]"])
4168
4168
  }, [S("input", {
@@ -4267,7 +4267,7 @@ var Xl = {
4267
4267
  rel: "noopener noreferrer",
4268
4268
  class: "tpl:text-[var(--tpl-primary)] tpl:underline tpl:underline-offset-2"
4269
4269
  }, a(A(l).discountCoupon.manualFooterLead), 9, Cu), g(a(A(l).discountCoupon.manualFooterTail), 1)])], 64)) : h("", !0),
4270
- te.value ? (c(), N("div", wu, [
4270
+ ee.value ? (c(), N("div", wu, [
4271
4271
  S("label", { class: t([A(q), "tpl:!mb-2 tpl:!text-[10px] tpl:!font-semibold tpl:!uppercase tpl:!tracking-wide tpl:!text-[var(--tpl-text-muted)]"]) }, a(A(l).discountCoupon.confirmationTextLabel), 3),
4272
4272
  S("input", {
4273
4273
  type: "text",
@@ -4281,7 +4281,7 @@ var Xl = {
4281
4281
  class: "tpl:mt-4 tpl:flex tpl:flex-col tpl:gap-2",
4282
4282
  role: "radiogroup",
4283
4283
  "aria-label": A(l).discountCoupon.afterClickLabel
4284
- }, [S("span", { class: t([A(q), "tpl:!mb-0 tpl:!text-[10px] tpl:!font-semibold tpl:!uppercase tpl:!tracking-wide tpl:!text-[var(--tpl-text-muted)]"]) }, a(A(l).discountCoupon.afterClickLabel), 3), (c(), N(b, null, i(L, (t) => S("label", {
4284
+ }, [S("span", { class: t([A(q), "tpl:!mb-0 tpl:!text-[10px] tpl:!font-semibold tpl:!uppercase tpl:!tracking-wide tpl:!text-[var(--tpl-text-muted)]"]) }, a(A(l).discountCoupon.afterClickLabel), 3), (c(), N(b, null, i(R, (t) => S("label", {
4285
4285
  key: t.value,
4286
4286
  class: "tpl:flex tpl:cursor-pointer tpl:items-start tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]"
4287
4287
  }, [S("input", {
@@ -4373,7 +4373,7 @@ var Xl = {
4373
4373
  props: { block: {} },
4374
4374
  emits: ["update"],
4375
4375
  setup(e, { emit: n }) {
4376
- let i = n, { t: o } = U(), s = r(Xe, null), l = r(lt, oe.liquid), u = D(() => !!s), d = y(!1), f = y(!1), { start: p } = Je(() => {
4376
+ let i = n, { t: o } = U(), s = r(Je, null), l = r(Ye, ae.liquid), u = D(() => !!s), d = y(!1), f = y(!1), { start: p } = qe(() => {
4377
4377
  d.value = !1;
4378
4378
  }, 1e3, { immediate: !1 });
4379
4379
  function m(e, t) {
@@ -4406,12 +4406,12 @@ var Xl = {
4406
4406
  "background-color": "var(--tpl-bg)"
4407
4407
  },
4408
4408
  onClick: _
4409
- }, [P(A(ge), {
4409
+ }, [P(A(he), {
4410
4410
  size: 14,
4411
4411
  "stroke-width": 1.5
4412
4412
  }), g(" " + a(A(o).image.browseMedia), 1)])) : h("", !0)
4413
4413
  ]),
4414
- A(de)(e.block.src, A(l)) ? (c(), N("div", Vu, [S("label", { class: t(A(q)) }, [g(a(A(o).image.placeholderUrl) + " ", 1), r[8] ||= S("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, a("(optional)"), -1)], 2), S("input", {
4414
+ A(ue)(e.block.src, A(l)) ? (c(), N("div", Vu, [S("label", { class: t(A(q)) }, [g(a(A(o).image.placeholderUrl) + " ", 1), r[8] ||= S("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, a("(optional)"), -1)], 2), S("input", {
4415
4415
  type: "url",
4416
4416
  class: t(A(K)),
4417
4417
  value: e.block.placeholderUrl || "",
@@ -4532,7 +4532,7 @@ var Xl = {
4532
4532
  }
4533
4533
  function p() {
4534
4534
  let e = {
4535
- id: se(),
4535
+ id: oe(),
4536
4536
  text: "",
4537
4537
  url: "",
4538
4538
  openInNewTab: !1,
@@ -4721,7 +4721,7 @@ var Xl = {
4721
4721
  }
4722
4722
  function u() {
4723
4723
  let e = {
4724
- id: se(),
4724
+ id: oe(),
4725
4725
  platform: "facebook",
4726
4726
  url: ""
4727
4727
  };
@@ -4744,10 +4744,10 @@ var Xl = {
4744
4744
  class: t([A(K), "tpl:flex-1"]),
4745
4745
  value: e.platform,
4746
4746
  onChange: (t) => d(e.id, "platform", t.target.value)
4747
- }, [(c(!0), N(b, null, i(A(Le), (e) => (c(), N("option", {
4747
+ }, [(c(!0), N(b, null, i(A(Ie), (e) => (c(), N("option", {
4748
4748
  key: e,
4749
4749
  value: e
4750
- }, a(A(je)[e].name), 9, xd))), 128))], 42, bd), S("button", {
4750
+ }, a(A(Ae)[e].name), 9, xd))), 128))], 42, bd), S("button", {
4751
4751
  class: t(A(Rt)),
4752
4752
  title: A(s).social.removeIcon,
4753
4753
  onClick: (t) => f(e.id)
@@ -4888,9 +4888,9 @@ var Xl = {
4888
4888
  }
4889
4889
  function d() {
4890
4890
  let e = r.block.rows.length > 0 ? r.block.rows[0].cells.length : 3, t = {
4891
- id: se(),
4891
+ id: oe(),
4892
4892
  cells: Array.from({ length: e }, () => ({
4893
- id: se(),
4893
+ id: oe(),
4894
4894
  content: ""
4895
4895
  }))
4896
4896
  };
@@ -4903,7 +4903,7 @@ var Xl = {
4903
4903
  o("update", { rows: r.block.rows.map((e) => ({
4904
4904
  ...e,
4905
4905
  cells: [...e.cells, {
4906
- id: se(),
4906
+ id: oe(),
4907
4907
  content: ""
4908
4908
  }]
4909
4909
  })) });
@@ -5097,7 +5097,7 @@ var Xl = {
5097
5097
  props: { block: {} },
5098
5098
  emits: ["update"],
5099
5099
  setup(e, { emit: n }) {
5100
- let i = e, o = n, { t: s } = U(), l = r(Xe, null), u = r(lt, oe.liquid), d = D(() => !!l), f = D(() => de(i.block.url, u)), p = y(!1), { start: m } = Je(() => {
5100
+ let i = e, o = n, { t: s } = U(), l = r(Je, null), u = r(Ye, ae.liquid), d = D(() => !!l), f = D(() => ue(i.block.url, u)), p = y(!1), { start: m } = qe(() => {
5101
5101
  p.value = !1;
5102
5102
  }, 1e3, { immediate: !1 });
5103
5103
  function _(e, t) {
@@ -5153,7 +5153,7 @@ var Xl = {
5153
5153
  "background-color": "var(--tpl-bg)"
5154
5154
  },
5155
5155
  onClick: v
5156
- }, [P(A(ge), {
5156
+ }, [P(A(he), {
5157
5157
  size: 14,
5158
5158
  "stroke-width": 1.5
5159
5159
  }), g(" " + a(A(s).image.browseMedia), 1)])) : h("", !0)
@@ -5203,9 +5203,9 @@ var Xl = {
5203
5203
  "duplicate"
5204
5204
  ],
5205
5205
  setup(e, { emit: t }) {
5206
- let n = d(() => import("./CountdownToolbar-B9IAZzeV.js")), i = e, o = t, { t: s } = U(), l = Ye(et, "Toolbar"), f = r(H, []), p = D(() => i.block.type), m = D(() => R(i.block)), g = D(() => {
5206
+ let n = d(() => import("./CountdownToolbar-D1tb2T_b.js")), i = e, o = t, { t: s } = U(), l = rt(Ze, "Toolbar"), f = r(et, []), p = D(() => i.block.type), m = D(() => z(i.block)), g = D(() => {
5207
5207
  if (m.value) return f.find((e) => e.type === i.block.customType);
5208
- }), _ = D(() => m.value ? g.value?.name ?? i.block.customType : be(p.value, s)), v = l.fonts;
5208
+ }), _ = D(() => m.value ? g.value?.name ?? i.block.customType : ye(p.value, s)), v = l.fonts;
5209
5209
  function y(e) {
5210
5210
  o("update", e);
5211
5211
  }
@@ -5216,7 +5216,7 @@ var Xl = {
5216
5216
  key: 0,
5217
5217
  size: 16,
5218
5218
  "stroke-width": 1.5
5219
- })) : m.value ? (c(), x(A(me), {
5219
+ })) : m.value ? (c(), x(A(pe), {
5220
5220
  key: 1,
5221
5221
  size: 16,
5222
5222
  "stroke-width": 1.5
@@ -5224,7 +5224,7 @@ var Xl = {
5224
5224
  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)]",
5225
5225
  title: A(s).toolbar.duplicate,
5226
5226
  onClick: r[0] ||= (e) => o("duplicate")
5227
- }, [P(A(ye), {
5227
+ }, [P(A(ve), {
5228
5228
  size: 14,
5229
5229
  "stroke-width": 2
5230
5230
  })], 8, qf), S("button", {
@@ -5364,7 +5364,7 @@ var Xl = {
5364
5364
  "update-settings"
5365
5365
  ],
5366
5366
  setup(e, { emit: n }) {
5367
- let i = d(() => import("./AccessibilityPanel-COL6Wm7p.js")), o = e, s = n, { t: l } = U(), u = y("content"), f = r(st, null), m = D(() => f !== null), g = D(() => f?.issues.value.length ?? 0);
5367
+ let i = d(() => import("./AccessibilityPanel-B39ct5ON.js")), o = e, s = n, { t: l } = U(), u = y("content"), f = r(ct, null), m = D(() => f !== null), g = D(() => f?.issues.value.length ?? 0);
5368
5368
  function _(e) {
5369
5369
  return u.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)]";
5370
5370
  }
@@ -5462,7 +5462,7 @@ var Xl = {
5462
5462
  __name: "HistoryUndoRedo",
5463
5463
  props: { onBeforeUndo: { type: Function } },
5464
5464
  setup(e) {
5465
- let t = e, n = r(Ze, null), { t: i } = U(), a = D(() => n?.canUndo.value ?? !1), o = D(() => n?.canRedo.value ?? !1);
5465
+ let t = e, n = r(lt, null), { t: i } = U(), a = D(() => n?.canUndo.value ?? !1), o = D(() => n?.canRedo.value ?? !1);
5466
5466
  function s() {
5467
5467
  !n || !a.value || (t.onBeforeUndo?.(), n.undo());
5468
5468
  }
@@ -5591,7 +5591,7 @@ var Xl = {
5591
5591
  key: "eye",
5592
5592
  size: 18,
5593
5593
  "stroke-width": 1.5
5594
- })) : (c(), x(A(_e), {
5594
+ })) : (c(), x(A(ge), {
5595
5595
  key: "eye-off",
5596
5596
  size: 18,
5597
5597
  "stroke-width": 1.5
@@ -5734,18 +5734,18 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
5734
5734
  }
5735
5735
  },
5736
5736
  setup(e, { expose: n }) {
5737
- let r = e, { t: i, format: o } = U(), l = y(!1), u = y(0), d = y(null), m = y(""), _ = Ve(), b = O([]), E = We(document.body);
5737
+ let r = e, { t: i, format: o } = U(), l = y(!1), u = y(0), d = y(null), m = y(""), _ = Be(), b = O([]), E = Ue(document.body);
5738
5738
  p(l, (e, t, n) => {
5739
5739
  if (E.value = e, !e) return;
5740
5740
  let r = (e) => {
5741
- e.key === "Escape" && (e.preventDefault(), V(!0));
5741
+ e.key === "Escape" && (e.preventDefault(), H(!0));
5742
5742
  };
5743
5743
  document.addEventListener("keydown", r, !0), n(() => document.removeEventListener("keydown", r, !0));
5744
5744
  }, { immediate: !0 });
5745
- let M = 0, { pause: F, resume: I } = He(() => {
5746
- let e = z.value;
5745
+ let M = 0, { pause: F, resume: I } = Ve(() => {
5746
+ let e = B.value;
5747
5747
  M < e.length ? (m.value = e.slice(0, M + 1), M++) : F();
5748
- }, 25, { immediate: !1 }), ee = D(() => [
5748
+ }, 25, { immediate: !1 }), L = D(() => [
5749
5749
  {
5750
5750
  target: ".tpl-body",
5751
5751
  placement: "canvas",
@@ -5765,15 +5765,15 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
5765
5765
  text: i.tour.defaults.rightSidebar.text
5766
5766
  }
5767
5767
  ]);
5768
- function te(e) {
5768
+ function ee(e) {
5769
5769
  return e.filter((e) => document.querySelector(e.target) ? !0 : e.skipIfMissing === !1);
5770
5770
  }
5771
- let L = D(() => b.value[u.value] ?? null), R = D(() => L.value?.title ?? ""), z = D(() => L.value?.text ?? "");
5772
- function ne(e) {
5771
+ let R = D(() => b.value[u.value] ?? null), z = D(() => R.value?.title ?? ""), B = D(() => R.value?.text ?? "");
5772
+ function te(e) {
5773
5773
  return e?.placement ?? "below";
5774
5774
  }
5775
- function B() {
5776
- let e = L.value;
5775
+ function V() {
5776
+ let e = R.value;
5777
5777
  if (!e) {
5778
5778
  d.value = null;
5779
5779
  return;
@@ -5783,52 +5783,52 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
5783
5783
  d.value = null;
5784
5784
  return;
5785
5785
  }
5786
- ne(e) === "below" && t.scrollIntoView({
5786
+ te(e) === "below" && t.scrollIntoView({
5787
5787
  behavior: "instant",
5788
5788
  block: "nearest",
5789
5789
  inline: "nearest"
5790
5790
  }), d.value = t.getBoundingClientRect();
5791
5791
  }
5792
- function re() {
5792
+ function ne() {
5793
5793
  F();
5794
- let e = z.value;
5794
+ let e = B.value;
5795
5795
  if (m.value = "", _.value === "reduce") {
5796
5796
  m.value = e;
5797
5797
  return;
5798
5798
  }
5799
5799
  M = 0, I();
5800
5800
  }
5801
- function ie() {
5802
- return te(r.tourConfig.steps === void 0 ? ee.value : r.tourConfig.steps);
5801
+ function re() {
5802
+ return ee(r.tourConfig.steps === void 0 ? L.value : r.tourConfig.steps);
5803
5803
  }
5804
- function ae(e) {
5805
- let t = ie();
5804
+ function ie(e) {
5805
+ let t = re();
5806
5806
  if (b.value = t, t.length === 0) {
5807
5807
  l.value = !1;
5808
5808
  return;
5809
5809
  }
5810
5810
  u.value = Math.min(Math.max(0, e?.stepIndex ?? 0), t.length - 1), l.value = !0, T(() => {
5811
- B(), re();
5811
+ V(), ne();
5812
5812
  });
5813
5813
  }
5814
- function V(e) {
5814
+ function H(e) {
5815
5815
  F(), l.value = !1, d.value = null, e && Ip(r.tourConfig);
5816
5816
  }
5817
- function oe() {
5817
+ function ae() {
5818
5818
  u.value < b.value.length - 1 ? (u.value++, T(() => {
5819
- B(), re();
5820
- })) : V(!0);
5819
+ V(), ne();
5820
+ })) : H(!0);
5821
5821
  }
5822
- function se() {
5822
+ function oe() {
5823
5823
  return Fp(r.tourConfig);
5824
5824
  }
5825
- function ce() {
5825
+ function se() {
5826
5826
  Lp(r.tourConfig);
5827
5827
  }
5828
- let le = D(() => {
5828
+ let ce = D(() => {
5829
5829
  let e = d.value;
5830
5830
  if (!e) return {};
5831
- let t = ne(L.value);
5831
+ let t = te(R.value);
5832
5832
  return t === "canvas" ? {
5833
5833
  top: `${e.top + e.height / 3}px`,
5834
5834
  left: `${e.left + e.width / 2}px`,
@@ -5843,10 +5843,10 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
5843
5843
  top: `${e.bottom + 12}px`,
5844
5844
  left: `${Math.min(e.left, typeof window < "u" ? window.innerWidth - 320 : e.left)}px`
5845
5845
  };
5846
- }), ue = D(() => {
5846
+ }), le = D(() => {
5847
5847
  let e = d.value;
5848
5848
  if (!e) return {};
5849
- let t = ne(L.value), n = t === "canvas" || t === "sidebar" || t === "rightSidebar", r = e.width + 12, i = e.height + 12, a = e.left - 6, o = e.top - 6;
5849
+ let t = te(R.value), n = t === "canvas" || t === "sidebar" || t === "rightSidebar", r = e.width + 12, i = e.height + 12, a = e.left - 6, o = e.top - 6;
5850
5850
  return {
5851
5851
  width: `${r}px`,
5852
5852
  height: `${i}px`,
@@ -5855,51 +5855,51 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
5855
5855
  };
5856
5856
  });
5857
5857
  return C(() => {
5858
- r.tourConfig.autoStart && !Fp(r.tourConfig) && ae();
5858
+ r.tourConfig.autoStart && !Fp(r.tourConfig) && ie();
5859
5859
  }), s(() => {
5860
5860
  F(), E.value = !1;
5861
5861
  }), n({
5862
- start: ae,
5863
- dismiss: () => V(!0),
5864
- resetDismissed: ce,
5865
- isDismissed: se
5862
+ start: ie,
5863
+ dismiss: () => H(!0),
5864
+ resetDismissed: se,
5865
+ isDismissed: oe
5866
5866
  }), (n, r) => (c(), x(k, { to: "body" }, [P(j, { name: "tpl-editor-tour" }, {
5867
5867
  default: f(() => [l.value ? (c(), N("div", {
5868
5868
  key: 0,
5869
5869
  class: t(["tpl-editor-tour-overlay tpl:fixed tpl:inset-0 tpl:z-[10001]", { "tpl-editor-tour-overlay--dark": e.darkMode }]),
5870
5870
  "data-testid": "editor-tour-overlay",
5871
- onClick: r[2] ||= v((e) => V(!0), ["self"])
5871
+ onClick: r[2] ||= v((e) => H(!0), ["self"])
5872
5872
  }, [d.value ? (c(), N("div", {
5873
5873
  key: 0,
5874
5874
  "data-testid": "editor-tour-spotlight",
5875
5875
  class: "tpl-editor-tour-spotlight tpl:absolute tpl:top-0 tpl:left-0",
5876
- style: w(ue.value),
5877
- onClick: r[0] ||= (e) => V(!0)
5878
- }, null, 4)) : h("", !0), d.value && L.value ? (c(), N("div", {
5876
+ style: w(le.value),
5877
+ onClick: r[0] ||= (e) => H(!0)
5878
+ }, null, 4)) : h("", !0), d.value && R.value ? (c(), N("div", {
5879
5879
  key: 1,
5880
5880
  role: "dialog",
5881
5881
  "aria-modal": "true",
5882
- "aria-label": R.value,
5882
+ "aria-label": z.value,
5883
5883
  "data-testid": "editor-tour-tooltip",
5884
5884
  class: "tpl-editor-tour-tooltip tpl-editor-tour-tooltip-shell tpl:fixed tpl:z-[10002]",
5885
- style: w(le.value)
5885
+ style: w(ce.value)
5886
5886
  }, [S("div", zp, [
5887
5887
  S("div", Bp, a(A(o)(A(i).tour.stepCounter, {
5888
5888
  current: String(u.value + 1),
5889
5889
  total: String(b.value.length)
5890
5890
  })), 1),
5891
- S("div", Vp, a(R.value), 1),
5892
- S("div", Hp, [g(a(m.value), 1), m.value.length < z.value.length ? (c(), N("span", Up, "|")) : h("", !0)])
5891
+ S("div", Vp, a(z.value), 1),
5892
+ S("div", Hp, [g(a(m.value), 1), m.value.length < B.value.length ? (c(), N("span", Up, "|")) : h("", !0)])
5893
5893
  ]), S("div", Wp, [S("button", {
5894
5894
  type: "button",
5895
5895
  "data-testid": "editor-tour-skip",
5896
5896
  class: "tpl-editor-tour-skip",
5897
- onClick: r[1] ||= (e) => V(!0)
5897
+ onClick: r[1] ||= (e) => H(!0)
5898
5898
  }, a(A(i).tour.skip), 1), S("button", {
5899
5899
  type: "button",
5900
5900
  "data-testid": "editor-tour-next",
5901
5901
  class: "tpl-editor-tour-next",
5902
- onClick: oe
5902
+ onClick: ae
5903
5903
  }, [g(a(u.value < b.value.length - 1 ? A(i).tour.next : A(i).tour.done) + " ", 1), u.value < b.value.length - 1 ? (c(), x(A(ht), {
5904
5904
  key: 0,
5905
5905
  size: 12,
@@ -6092,7 +6092,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6092
6092
  }
6093
6093
  ]), _ = y(!1), C = y(!1);
6094
6094
  function w(e) {
6095
- return ee(d.value.triggers[e].triggerConditions);
6095
+ return L(d.value.triggers[e].triggerConditions);
6096
6096
  }
6097
6097
  function T(e, t) {
6098
6098
  p(e, { triggerConditions: {
@@ -6102,7 +6102,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6102
6102
  }
6103
6103
  function E(e, t) {
6104
6104
  t ? p(e, { triggerConditions: {
6105
- ...ce(),
6105
+ ...se(),
6106
6106
  enabled: !0,
6107
6107
  delaySeconds: 5,
6108
6108
  pageViews: 3,
@@ -6122,7 +6122,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6122
6122
  } : t.frequency.stopShowing;
6123
6123
  f({
6124
6124
  ...t,
6125
- frequency: L({
6125
+ frequency: R({
6126
6126
  showAgain: n,
6127
6127
  stopShowing: r
6128
6128
  })
@@ -6142,21 +6142,21 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6142
6142
  let t = Number(e.target.value);
6143
6143
  O({ stopShowing: { afterSeenCount: Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1 } });
6144
6144
  }
6145
- function te(e) {
6145
+ function ee(e) {
6146
6146
  O({ stopShowing: { afterClosedBehavior: e } });
6147
6147
  }
6148
- function R(e) {
6148
+ function z(e) {
6149
6149
  let t = e.target.value;
6150
6150
  (t === "minutes" || t === "hours" || t === "days") && F(t);
6151
6151
  }
6152
- function z(e) {
6152
+ function B(e) {
6153
6153
  let t = e.target.value;
6154
- (t === "never_display_again" || t === "respect_show_again") && te(t);
6154
+ (t === "never_display_again" || t === "respect_show_again") && ee(t);
6155
6155
  }
6156
- let ne = D(() => JSON.stringify({ triggers: B(d.value.triggers) }, null, 2));
6157
- async function re() {
6156
+ let te = D(() => JSON.stringify({ triggers: V(d.value.triggers) }, null, 2));
6157
+ async function ne() {
6158
6158
  try {
6159
- await navigator.clipboard.writeText(ne.value), C.value = !0, window.setTimeout(() => {
6159
+ await navigator.clipboard.writeText(te.value), C.value = !0, window.setTimeout(() => {
6160
6160
  C.value = !1;
6161
6161
  }, 2e3);
6162
6162
  } catch {
@@ -6211,7 +6211,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6211
6211
  class: "tpl:min-w-[7rem] tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-sm disabled:tpl:cursor-not-allowed disabled:tpl:opacity-50",
6212
6212
  disabled: d.value.frequency.showAgain.mode !== "interval",
6213
6213
  value: d.value.frequency.showAgain.intervalUnit,
6214
- onChange: n[4] ||= (e) => R(e)
6214
+ onChange: n[4] ||= (e) => z(e)
6215
6215
  }, [
6216
6216
  S("option", Tm, a(A(o).popupDisplayRules.frequencyIntervalUnitMinutes), 1),
6217
6217
  S("option", Em, a(A(o).popupDisplayRules.frequencyIntervalUnitHours), 1),
@@ -6255,7 +6255,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6255
6255
  class: "tpl:min-w-[12rem] tpl:max-w-full tpl:flex-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm disabled:tpl:cursor-not-allowed disabled:tpl:opacity-50",
6256
6256
  disabled: !d.value.frequency.stopShowing.afterClosedEnabled,
6257
6257
  value: d.value.frequency.stopShowing.afterClosedBehavior,
6258
- onChange: n[9] ||= (e) => z(e)
6258
+ onChange: n[9] ||= (e) => B(e)
6259
6259
  }, [S("option", Wm, a(A(o).popupDisplayRules.frequencyClosedNeverAgain), 1), S("option", Gm, a(A(o).popupDisplayRules.frequencyClosedRespectRules), 1)], 40, Um),
6260
6260
  S("button", {
6261
6261
  type: "button",
@@ -6450,13 +6450,13 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
6450
6450
  S("div", zh, [S("h2", Bh, a(A(o).popupDisplayRules.debugJsonTitle), 1), S("div", Vh, [S("button", {
6451
6451
  type: "button",
6452
6452
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]",
6453
- onClick: re
6453
+ onClick: ne
6454
6454
  }, a(C.value ? A(o).popupDisplayRules.copyJsonDone : A(o).popupDisplayRules.copyJson), 1), S("button", {
6455
6455
  type: "button",
6456
6456
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]",
6457
6457
  onClick: n[28] ||= (e) => _.value = !1
6458
6458
  }, a(A(o).popupDisplayRules.debugJsonClose), 1)])]),
6459
- S("pre", Hh, a(ne.value), 1),
6459
+ S("pre", Hh, a(te.value), 1),
6460
6460
  S("p", Uh, a(A(o).popupDisplayRules.debugJsonHint), 1)
6461
6461
  ])], 8, Lh)) : h("", !0)]))], 64));
6462
6462
  }
@@ -6488,7 +6488,7 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6488
6488
  },
6489
6489
  emits: ["update:modelValue"],
6490
6490
  setup(e, { emit: n }) {
6491
- let r = e, o = n, { t: s } = U(), l = y(!1), u = y(null), d = y(null), f = y((/* @__PURE__ */ new Date()).getFullYear()), m = y((/* @__PURE__ */ new Date()).getMonth()), { bottom: g, left: _, width: v, update: C } = Ue(u), E = D(() => ({
6491
+ let r = e, o = n, { t: s } = U(), l = y(!1), u = y(null), d = y(null), f = y((/* @__PURE__ */ new Date()).getFullYear()), m = y((/* @__PURE__ */ new Date()).getMonth()), { bottom: g, left: _, width: v, update: C } = He(u), E = D(() => ({
6492
6492
  top: `${g.value + 4}px`,
6493
6493
  left: `${_.value}px`,
6494
6494
  width: `${Math.max(v.value, 268)}px`
@@ -6536,18 +6536,18 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6536
6536
  });
6537
6537
  return n;
6538
6538
  }
6539
- let ee = D(() => {
6539
+ let L = D(() => {
6540
6540
  let e = [], t = new Date(2024, 0, 7);
6541
6541
  for (let n = 0; n < 7; n++) {
6542
6542
  let r = new Date(t);
6543
6543
  r.setDate(t.getDate() + n), e.push(new Intl.DateTimeFormat(void 0, { weekday: "short" }).format(r));
6544
6544
  }
6545
6545
  return e;
6546
- }), te = D(() => new Intl.DateTimeFormat(void 0, {
6546
+ }), ee = D(() => new Intl.DateTimeFormat(void 0, {
6547
6547
  month: "long",
6548
6548
  year: "numeric"
6549
- }).format(new Date(f.value, m.value, 1))), L = D(() => I(f.value, m.value)), R = D(() => F());
6550
- function z(e) {
6549
+ }).format(new Date(f.value, m.value, 1))), R = D(() => I(f.value, m.value)), z = D(() => F());
6550
+ function B(e) {
6551
6551
  let t = M(e);
6552
6552
  return t ? new Intl.DateTimeFormat(void 0, {
6553
6553
  year: "numeric",
@@ -6555,7 +6555,7 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6555
6555
  day: "numeric"
6556
6556
  }).format(new Date(t.y, t.m, t.d)) : e;
6557
6557
  }
6558
- function ne() {
6558
+ function te() {
6559
6559
  let e = M(r.modelValue);
6560
6560
  if (e) f.value = e.y, m.value = e.m;
6561
6561
  else {
@@ -6563,30 +6563,30 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6563
6563
  f.value = e.getFullYear(), m.value = e.getMonth();
6564
6564
  }
6565
6565
  }
6566
- function B() {
6566
+ function V() {
6567
6567
  l.value = !l.value;
6568
6568
  }
6569
6569
  p(l, async (e) => {
6570
- e && (ne(), await T(), await T(), C(), Gh(u.value, d.value));
6571
- }), qe(d, () => {
6570
+ e && (te(), await T(), await T(), C(), Gh(u.value, d.value));
6571
+ }), Ke(d, () => {
6572
6572
  l.value = !1;
6573
- }, { ignore: [u] }), Ge(window, "keydown", (e) => {
6573
+ }, { ignore: [u] }), We(window, "keydown", (e) => {
6574
6574
  e.key === "Escape" && (l.value = !1);
6575
- }), Ge(window, "scroll", () => l.value && C(), { capture: !0 }), Ge(window, "resize", () => l.value && C());
6576
- function re() {
6575
+ }), We(window, "scroll", () => l.value && C(), { capture: !0 }), We(window, "resize", () => l.value && C());
6576
+ function ne() {
6577
6577
  m.value === 0 ? (m.value = 11, f.value--) : m.value--;
6578
6578
  }
6579
- function ie() {
6579
+ function re() {
6580
6580
  m.value === 11 ? (m.value = 0, f.value++) : m.value++;
6581
6581
  }
6582
- function ae(e) {
6582
+ function ie(e) {
6583
6583
  o("update:modelValue", e), l.value = !1;
6584
6584
  }
6585
- function V() {
6585
+ function H() {
6586
6586
  o("update:modelValue", ""), l.value = !1;
6587
6587
  }
6588
- function oe() {
6589
- ae(F());
6588
+ function ae() {
6589
+ ie(F());
6590
6590
  }
6591
6591
  return (n, r) => (c(), N(b, null, [S("div", Kh, [S("button", {
6592
6592
  id: e.inputId,
@@ -6596,8 +6596,8 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6596
6596
  class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-lg tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:text-sm tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]",
6597
6597
  "aria-expanded": l.value,
6598
6598
  "aria-haspopup": "dialog",
6599
- onClick: B
6600
- }, [S("span", { class: t(e.modelValue ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)]") }, a(e.modelValue ? z(e.modelValue) : e.placeholder), 3), P(A(qt), {
6599
+ onClick: V
6600
+ }, [S("span", { class: t(e.modelValue ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)]") }, a(e.modelValue ? B(e.modelValue) : e.placeholder), 3), P(A(qt), {
6601
6601
  size: 16,
6602
6602
  "stroke-width": 1.5,
6603
6603
  class: "tpl:ml-auto tpl:shrink-0 tpl:opacity-60",
@@ -6607,7 +6607,7 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6607
6607
  type: "button",
6608
6608
  class: "tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
6609
6609
  "aria-label": e.clearLabel,
6610
- onClick: V
6610
+ onClick: H
6611
6611
  }, " × ", 8, Jh)) : h("", !0)]), (c(), x(k, { to: "body" }, [l.value ? (c(), N("div", {
6612
6612
  key: 0,
6613
6613
  ref_key: "popoverRef",
@@ -6623,43 +6623,43 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6623
6623
  type: "button",
6624
6624
  class: "tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
6625
6625
  "aria-label": A(s).popupSchedule.calendarPrevMonth,
6626
- onClick: re
6626
+ onClick: ne
6627
6627
  }, [P(A(mt), {
6628
6628
  size: 18,
6629
6629
  "stroke-width": 1.75,
6630
6630
  "aria-hidden": "true"
6631
6631
  })], 8, Zh),
6632
- S("span", Qh, a(te.value), 1),
6632
+ S("span", Qh, a(ee.value), 1),
6633
6633
  S("button", {
6634
6634
  type: "button",
6635
6635
  class: "tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
6636
6636
  "aria-label": A(s).popupSchedule.calendarNextMonth,
6637
- onClick: ie
6637
+ onClick: re
6638
6638
  }, [P(A(ht), {
6639
6639
  size: 18,
6640
6640
  "stroke-width": 1.75,
6641
6641
  "aria-hidden": "true"
6642
6642
  })], 8, $h)
6643
6643
  ]),
6644
- S("div", eg, [(c(!0), N(b, null, i(ee.value, (e, t) => (c(), N("span", {
6644
+ S("div", eg, [(c(!0), N(b, null, i(L.value, (e, t) => (c(), N("span", {
6645
6645
  key: `wd-${t}`,
6646
6646
  class: "tpl:block tpl:text-center"
6647
6647
  }, a(e), 1))), 128))]),
6648
- S("div", tg, [(c(!0), N(b, null, i(L.value, (n, r) => (c(), N("button", {
6648
+ S("div", tg, [(c(!0), N(b, null, i(R.value, (n, r) => (c(), N("button", {
6649
6649
  key: `${n.iso}-${r}`,
6650
6650
  type: "button",
6651
- class: t(["tpl:flex tpl:h-9 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-sm tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]", [n.inMonth ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)] tpl:opacity-70", e.modelValue === n.iso ? "tpl:bg-[var(--tpl-primary)] tpl:font-medium tpl:text-white hover:tpl:bg-[var(--tpl-primary)]" : n.iso === R.value ? "tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:ring-inset" : "hover:tpl:bg-[var(--tpl-bg-hover)]"]]),
6652
- onClick: (e) => ae(n.iso)
6651
+ class: t(["tpl:flex tpl:h-9 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-sm tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]", [n.inMonth ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)] tpl:opacity-70", e.modelValue === n.iso ? "tpl:bg-[var(--tpl-primary)] tpl:font-medium tpl:text-white hover:tpl:bg-[var(--tpl-primary)]" : n.iso === z.value ? "tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:ring-inset" : "hover:tpl:bg-[var(--tpl-bg-hover)]"]]),
6652
+ onClick: (e) => ie(n.iso)
6653
6653
  }, a(n.day), 11, ng))), 128))]),
6654
6654
  S("div", rg, [S("button", {
6655
6655
  type: "button",
6656
6656
  class: "tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)] tpl:underline tpl:underline-offset-2 hover:tpl:bg-[var(--tpl-bg-hover)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
6657
- onClick: oe
6657
+ onClick: ae
6658
6658
  }, a(A(s).popupSchedule.calendarToday), 1), e.modelValue ? (c(), N("button", {
6659
6659
  key: 0,
6660
6660
  type: "button",
6661
6661
  class: "tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
6662
- onClick: V
6662
+ onClick: H
6663
6663
  }, a(A(s).popupSchedule.calendarClear), 1)) : h("", !0)])
6664
6664
  ], 12, Yh)) : h("", !0)]))], 64));
6665
6665
  }
@@ -6721,10 +6721,10 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
6721
6721
  return e.includes("23:59") || e.push("23:59"), e;
6722
6722
  }), v = D(() => {
6723
6723
  let e = u.value.schedule.timeZone;
6724
- return le.some((t) => t.id === e) ? [...le] : [{
6724
+ return ce.some((t) => t.id === e) ? [...ce] : [{
6725
6725
  id: e,
6726
6726
  label: e
6727
- }, ...le];
6727
+ }, ...ce];
6728
6728
  }), y = D(() => [
6729
6729
  "everyday",
6730
6730
  "monday",