@aswin.dev/editor 0.8.5 → 0.8.9

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 +8 -8
  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
@@ -2398,20 +2398,20 @@ function cr(e) {
2398
2398
  }
2399
2399
  //#endregion
2400
2400
  //#region src/keys.ts
2401
- var lr = Symbol("translations"), ur = Symbol("editor"), dr = Symbol("editorType"), fr = Symbol("popupRailTab"), pr = Symbol("history"), mr = Symbol("blockActions"), hr = Symbol("conditionPreview"), gr = Symbol("fontsManager"), _r = Symbol("themeStyles"), vr = Symbol("tplUiTheme"), yr = Symbol("blockDefaults"), br = Symbol("blockRegistry"), xr = Symbol("customBlockDefinitions"), Sr = Symbol("mergeTags"), Cr = Symbol("mergeTagSyntax"), wr = Symbol("onRequestMergeTag"), Tr = Symbol("mergeTagAutocomplete"), Er = Symbol("onRequestMedia"), Dr = Symbol("displayConditions"), Or = Symbol("allowCustomConditions"), kr = Symbol("capabilities"), Ar = Symbol("keyboardReorder"), jr = Symbol("accessibilityLint"), Mr = Symbol("authManager"), Nr = Symbol("aiConfig"), Pr = Symbol("comments"), Fr = Symbol("savedModulesHeadless"), Ir = Symbol("scoring"), Lr = Symbol("cloudTranslations");
2402
- function Rr(e, t) {
2401
+ var lr = Symbol("translations"), ur = Symbol("editor"), dr = Symbol("editorType"), fr = Symbol("popupRailTab"), pr = Symbol("editorFloatingUiTeleport"), mr = Symbol("history"), hr = Symbol("blockActions"), gr = Symbol("conditionPreview"), _r = Symbol("fontsManager"), vr = Symbol("themeStyles"), yr = Symbol("tplUiTheme"), br = Symbol("blockDefaults"), xr = Symbol("blockRegistry"), Sr = Symbol("customBlockDefinitions"), Cr = Symbol("mergeTags"), wr = Symbol("mergeTagSyntax"), Tr = Symbol("onRequestMergeTag"), Er = Symbol("mergeTagAutocomplete"), Dr = Symbol("onRequestMedia"), Or = Symbol("displayConditions"), kr = Symbol("allowCustomConditions"), Ar = Symbol("capabilities"), jr = Symbol("keyboardReorder"), Mr = Symbol("accessibilityLint"), Nr = Symbol("authManager"), Pr = Symbol("aiConfig"), Fr = Symbol("comments"), Ir = Symbol("savedModulesHeadless"), Lr = Symbol("scoring"), Rr = Symbol("cloudTranslations");
2402
+ function zr(e, t) {
2403
2403
  let n = a(e, null);
2404
2404
  if (n == null) throw Error(`${t} requires a provider for ${e.description ?? "unknown key"}. Ensure it is a descendant of Editor or CloudEditor.`);
2405
2405
  return n;
2406
2406
  }
2407
2407
  //#endregion
2408
2408
  //#region src/composables/useAccessibilityLint.ts
2409
- function zr(e) {
2409
+ function Br(e) {
2410
2410
  let t = R([]), n = R(!1), r = R(!1), i = L(null), a = e.options.disabled === !0, o = null, s = !1;
2411
2411
  a || c();
2412
2412
  async function c() {
2413
2413
  try {
2414
- let t = await import("./quality-Di1pUcCW.js").then((e) => e.t);
2414
+ let t = await import("./quality-DfKLOn8j.js").then((e) => e.t);
2415
2415
  if (s) return;
2416
2416
  i.value = t.lintAccessibility, n.value = !0, u(), o = Mn(e.content, u, {
2417
2417
  debounce: e.debounce ?? 500,
@@ -2461,12 +2461,12 @@ function K(e) {
2461
2461
  }
2462
2462
  //#endregion
2463
2463
  //#region src/utils/blockTypeLabels.ts
2464
- function Br(e, t) {
2464
+ function Vr(e, t) {
2465
2465
  return t.blocks[e] ?? e;
2466
2466
  }
2467
2467
  //#endregion
2468
2468
  //#region src/composables/useKeyboardReorder.ts
2469
- function Vr(e, t) {
2469
+ function Hr(e, t) {
2470
2470
  let n = R(null), r = R(""), i = null;
2471
2471
  function a(t) {
2472
2472
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -2493,7 +2493,7 @@ function Vr(e, t) {
2493
2493
  let r = a(n);
2494
2494
  if (!r) return "";
2495
2495
  let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
2496
- return i ? Br(i.type, t.t) : "";
2496
+ return i ? Vr(i.type, t.t) : "";
2497
2497
  }
2498
2498
  function s(t, n) {
2499
2499
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -2562,13 +2562,13 @@ function Vr(e, t) {
2562
2562
  }
2563
2563
  //#endregion
2564
2564
  //#region src/composables/useUiTheme.ts
2565
- function Hr(e) {
2565
+ function Ur(e) {
2566
2566
  let t = Gn("(prefers-color-scheme: dark)");
2567
2567
  return { resolvedTheme: F(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
2568
2568
  }
2569
2569
  //#endregion
2570
2570
  //#region src/composables/useThemeStyles.ts
2571
- var Ur = {
2571
+ var Wr = {
2572
2572
  bg: "--tpl-bg",
2573
2573
  bgElevated: "--tpl-bg-elevated",
2574
2574
  bgHover: "--tpl-bg-hover",
@@ -2592,10 +2592,10 @@ var Ur = {
2592
2592
  dangerLight: "--tpl-danger-light",
2593
2593
  canvasBg: "--tpl-canvas-bg"
2594
2594
  };
2595
- function Wr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
2595
+ function Gr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
2596
2596
  return { themeStyles: F(() => {
2597
2597
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
2598
- if (a) for (let [e, t] of Object.entries(Ur)) {
2598
+ if (a) for (let [e, t] of Object.entries(Wr)) {
2599
2599
  let n = a[e];
2600
2600
  n && (r[t] = n);
2601
2601
  }
@@ -2604,27 +2604,27 @@ function Wr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
2604
2604
  }
2605
2605
  //#endregion
2606
2606
  //#region src/utils/logger.ts
2607
- var Gr = "[Templatical]";
2608
- function Kr() {
2607
+ var Kr = "[Templatical]";
2608
+ function qr() {
2609
2609
  return typeof process < "u" && !0;
2610
2610
  }
2611
- var qr = {
2611
+ var Jr = {
2612
2612
  warn(...e) {
2613
- console.warn(Gr, ...e);
2613
+ console.warn(Kr, ...e);
2614
2614
  },
2615
2615
  error(...e) {
2616
- console.error(Gr, ...e);
2616
+ console.error(Kr, ...e);
2617
2617
  },
2618
2618
  debug(...e) {
2619
- Kr() || console.debug(Gr, ...e);
2619
+ qr() || console.debug(Kr, ...e);
2620
2620
  },
2621
2621
  info(...e) {
2622
- Kr() || console.info(Gr, ...e);
2622
+ qr() || console.info(Kr, ...e);
2623
2623
  }
2624
2624
  };
2625
2625
  //#endregion
2626
2626
  //#region src/composables/useBlockRegistry.ts
2627
- function Jr() {
2627
+ function Yr() {
2628
2628
  let e = L(/* @__PURE__ */ new Map());
2629
2629
  function t(t, n) {
2630
2630
  e.value.set(t, n), de(e);
@@ -2676,7 +2676,7 @@ function Jr() {
2676
2676
  strictFilters: !1
2677
2677
  }).parseAndRender(t.template, e.fieldValues);
2678
2678
  } catch (t) {
2679
- return qr.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
2679
+ return Jr.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
2680
2680
  }
2681
2681
  }
2682
2682
  function l(t) {
@@ -2695,7 +2695,7 @@ function Jr() {
2695
2695
  }
2696
2696
  //#endregion
2697
2697
  //#region src/utils/registerBuiltInBlocks.ts
2698
- var Yr = [
2698
+ var Xr = [
2699
2699
  {
2700
2700
  type: "section",
2701
2701
  label: "Section",
@@ -2772,8 +2772,8 @@ var Yr = [
2772
2772
  createBlock: At
2773
2773
  }
2774
2774
  ];
2775
- function Xr(e, t) {
2776
- for (let n of Yr) {
2775
+ function Zr(e, t) {
2776
+ for (let n of Xr) {
2777
2777
  let r = t[n.type];
2778
2778
  r && e.registerBuiltIn(n.type, {
2779
2779
  component: r,
@@ -2788,18 +2788,18 @@ function Xr(e, t) {
2788
2788
  }
2789
2789
  //#endregion
2790
2790
  //#region src/utils/keyboardShortcuts.ts
2791
- function Zr(e) {
2791
+ function Qr(e) {
2792
2792
  let t = e.target;
2793
2793
  return t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.tagName === "SELECT";
2794
2794
  }
2795
- function Qr(e, t) {
2795
+ function $r(e, t) {
2796
2796
  let n = e.metaKey || e.ctrlKey;
2797
2797
  if (n && e.key.toLowerCase() === "s") {
2798
2798
  e.preventDefault(), t.onSave?.();
2799
2799
  return;
2800
2800
  }
2801
2801
  if (n && e.key.toLowerCase() === "z") {
2802
- if (Zr(e)) return;
2802
+ if (Qr(e)) return;
2803
2803
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
2804
2804
  return;
2805
2805
  }
@@ -2807,11 +2807,11 @@ function Qr(e, t) {
2807
2807
  t.selectBlock(null);
2808
2808
  return;
2809
2809
  }
2810
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Zr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
2810
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Qr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
2811
2811
  }
2812
2812
  //#endregion
2813
2813
  //#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
2814
- var $r = { class: "tpl:text-center" }, ei = ["href"], ti = /* @__PURE__ */ i({
2814
+ var ei = { class: "tpl:text-center" }, ti = ["href"], ni = /* @__PURE__ */ i({
2815
2815
  __name: "ButtonBlock",
2816
2816
  props: {
2817
2817
  block: {},
@@ -2870,17 +2870,17 @@ var $r = { class: "tpl:text-center" }, ei = ["href"], ti = /* @__PURE__ */ i({
2870
2870
  }
2871
2871
  e.preventDefault();
2872
2872
  }
2873
- return (t, n) => (h(), B("div", $r, [P("a", {
2873
+ return (t, n) => (h(), B("div", ei, [P("a", {
2874
2874
  href: i.value,
2875
2875
  style: k(o.value),
2876
2876
  class: z(r.value === "none" ? "tpl:cursor-default" : "tpl:cursor-pointer"),
2877
2877
  onClick: s
2878
- }, M(e.block.text), 15, ei)]));
2878
+ }, M(e.block.text), 15, ti)]));
2879
2879
  }
2880
- }), ni = (e) => e === "", ri = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ii = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ai = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), oi = (e) => {
2881
- let t = ai(e);
2880
+ }), ri = (e) => e === "", ii = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ai = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), oi = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), si = (e) => {
2881
+ let t = oi(e);
2882
2882
  return t.charAt(0).toUpperCase() + t.slice(1);
2883
- }, si = {
2883
+ }, ci = {
2884
2884
  xmlns: "http://www.w3.org/2000/svg",
2885
2885
  width: 24,
2886
2886
  height: 24,
@@ -2890,35 +2890,35 @@ var $r = { class: "tpl:text-center" }, ei = ["href"], ti = /* @__PURE__ */ i({
2890
2890
  "stroke-width": 2,
2891
2891
  "stroke-linecap": "round",
2892
2892
  "stroke-linejoin": "round"
2893
- }, ci = Symbol("lucide-icons");
2894
- function li() {
2895
- return a(ci, {});
2893
+ }, li = Symbol("lucide-icons");
2894
+ function ui() {
2895
+ return a(li, {});
2896
2896
  }
2897
2897
  //#endregion
2898
2898
  //#region ../../node_modules/.pnpm/@lucide+vue@1.14.0_vue@3.5.33_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
2899
- var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width": r, strokeWidth: i, "stroke-width": a, size: o, color: s, ...c }, { slots: l }) => {
2900
- let { size: u, color: d, strokeWidth: f = 2, absoluteStrokeWidth: p = !1, class: m = "" } = li(), h = F(() => {
2901
- let e = ni(n) || ni(r) || n === !0 || r === !0 || p === !0, t = i || a || f || si["stroke-width"];
2902
- return e ? Number(t) * 24 / Number(o ?? u ?? si.width) : t;
2899
+ var di = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width": r, strokeWidth: i, "stroke-width": a, size: o, color: s, ...c }, { slots: l }) => {
2900
+ let { size: u, color: d, strokeWidth: f = 2, absoluteStrokeWidth: p = !1, class: m = "" } = ui(), h = F(() => {
2901
+ let e = ri(n) || ri(r) || n === !0 || r === !0 || p === !0, t = i || a || f || ci["stroke-width"];
2902
+ return e ? Number(t) * 24 / Number(o ?? u ?? ci.width) : t;
2903
2903
  });
2904
2904
  return v("svg", {
2905
- ...si,
2905
+ ...ci,
2906
2906
  ...c,
2907
- width: o ?? u ?? si.width,
2908
- height: o ?? u ?? si.height,
2909
- stroke: s ?? d ?? si.stroke,
2907
+ width: o ?? u ?? ci.width,
2908
+ height: o ?? u ?? ci.height,
2909
+ stroke: s ?? d ?? ci.stroke,
2910
2910
  "stroke-width": h.value,
2911
- class: ri("lucide", m, ...e ? [`lucide-${ii(oi(e))}-icon`, `lucide-${ii(e)}`] : ["lucide-icon"])
2911
+ class: ii("lucide", m, ...e ? [`lucide-${ai(si(e))}-icon`, `lucide-${ai(e)}`] : ["lucide-icon"])
2912
2912
  }, [...t.map((e) => v(...e)), ...l.default ? [l.default()] : []]);
2913
- }, q = (e, t) => (n, { slots: r, attrs: i }) => v(ui, {
2913
+ }, q = (e, t) => (n, { slots: r, attrs: i }) => v(di, {
2914
2914
  ...i,
2915
2915
  ...n,
2916
2916
  iconNode: t,
2917
2917
  name: e
2918
- }, r), di = q("bookmark", [["path", {
2918
+ }, r), fi = q("bookmark", [["path", {
2919
2919
  d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
2920
2920
  key: "oz39mx"
2921
- }]]), fi = q("box", [
2921
+ }]]), pi = q("box", [
2922
2922
  ["path", {
2923
2923
  d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
2924
2924
  key: "hh9hay"
@@ -2931,22 +2931,22 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
2931
2931
  d: "M12 22V12",
2932
2932
  key: "d0xqtd"
2933
2933
  }]
2934
- ]), pi = q("check", [["path", {
2934
+ ]), mi = q("check", [["path", {
2935
2935
  d: "M20 6 9 17l-5-5",
2936
2936
  key: "1gmf2c"
2937
- }]]), mi = q("chevron-down", [["path", {
2937
+ }]]), hi = q("chevron-down", [["path", {
2938
2938
  d: "m6 9 6 6 6-6",
2939
2939
  key: "qrunsl"
2940
- }]]), hi = q("chevron-left", [["path", {
2940
+ }]]), gi = q("chevron-left", [["path", {
2941
2941
  d: "m15 18-6-6 6-6",
2942
2942
  key: "1wnfg3"
2943
- }]]), gi = q("chevron-right", [["path", {
2943
+ }]]), _i = q("chevron-right", [["path", {
2944
2944
  d: "m9 18 6-6-6-6",
2945
2945
  key: "mthhwq"
2946
- }]]), _i = q("chevron-up", [["path", {
2946
+ }]]), vi = q("chevron-up", [["path", {
2947
2947
  d: "m18 15-6-6-6 6",
2948
2948
  key: "153udz"
2949
- }]]), vi = q("circle-alert", [
2949
+ }]]), yi = q("circle-alert", [
2950
2950
  ["circle", {
2951
2951
  cx: "12",
2952
2952
  cy: "12",
@@ -2967,7 +2967,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
2967
2967
  y2: "16",
2968
2968
  key: "4dfq90"
2969
2969
  }]
2970
- ]), yi = q("circle-check", [["circle", {
2970
+ ]), bi = q("circle-check", [["circle", {
2971
2971
  cx: "12",
2972
2972
  cy: "12",
2973
2973
  r: "10",
@@ -2975,7 +2975,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
2975
2975
  }], ["path", {
2976
2976
  d: "m9 12 2 2 4-4",
2977
2977
  key: "dzmm74"
2978
- }]]), bi = q("clock", [["circle", {
2978
+ }]]), xi = q("clock", [["circle", {
2979
2979
  cx: "12",
2980
2980
  cy: "12",
2981
2981
  r: "10",
@@ -2983,13 +2983,13 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
2983
2983
  }], ["path", {
2984
2984
  d: "M12 6v6l4 2",
2985
2985
  key: "mmk7yg"
2986
- }]]), xi = q("code", [["path", {
2986
+ }]]), Si = q("code", [["path", {
2987
2987
  d: "m16 18 6-6-6-6",
2988
2988
  key: "eg8j8"
2989
2989
  }], ["path", {
2990
2990
  d: "m8 6-6 6 6 6",
2991
2991
  key: "ppft3o"
2992
- }]]), Si = q("copy", [["rect", {
2992
+ }]]), Ci = q("copy", [["rect", {
2993
2993
  width: "14",
2994
2994
  height: "14",
2995
2995
  x: "8",
@@ -3000,7 +3000,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3000
3000
  }], ["path", {
3001
3001
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
3002
3002
  key: "zix9uf"
3003
- }]]), Ci = q("eye-off", [
3003
+ }]]), wi = q("eye-off", [
3004
3004
  ["path", {
3005
3005
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
3006
3006
  key: "ct8e1f"
@@ -3017,7 +3017,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3017
3017
  d: "m2 2 20 20",
3018
3018
  key: "1ooewy"
3019
3019
  }]
3020
- ]), wi = q("eye", [["path", {
3020
+ ]), Ti = q("eye", [["path", {
3021
3021
  d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
3022
3022
  key: "1nclc0"
3023
3023
  }], ["circle", {
@@ -3025,7 +3025,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3025
3025
  cy: "12",
3026
3026
  r: "3",
3027
3027
  key: "1v7zrd"
3028
- }]]), Ti = q("file-image", [
3028
+ }]]), Ei = q("file-image", [
3029
3029
  ["path", {
3030
3030
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
3031
3031
  key: "1oefj6"
@@ -3044,7 +3044,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3044
3044
  d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
3045
3045
  key: "wt3hpn"
3046
3046
  }]
3047
- ]), Ei = q("file-text", [
3047
+ ]), Di = q("file-text", [
3048
3048
  ["path", {
3049
3049
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
3050
3050
  key: "1oefj6"
@@ -3065,10 +3065,10 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3065
3065
  d: "M16 17H8",
3066
3066
  key: "z1uh3a"
3067
3067
  }]
3068
- ]), Di = q("funnel", [["path", {
3068
+ ]), Oi = q("funnel", [["path", {
3069
3069
  d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
3070
3070
  key: "sc7q7i"
3071
- }]]), Oi = q("grip-vertical", [
3071
+ }]]), ki = q("grip-vertical", [
3072
3072
  ["circle", {
3073
3073
  cx: "9",
3074
3074
  cy: "12",
@@ -3105,7 +3105,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3105
3105
  r: "1",
3106
3106
  key: "f4zoj3"
3107
3107
  }]
3108
- ]), ki = q("image-up", [
3108
+ ]), Ai = q("image-up", [
3109
3109
  ["path", {
3110
3110
  d: "M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",
3111
3111
  key: "9csbqa"
@@ -3124,7 +3124,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3124
3124
  r: "2",
3125
3125
  key: "af1f0g"
3126
3126
  }]
3127
- ]), Ai = q("image", [
3127
+ ]), ji = q("image", [
3128
3128
  ["rect", {
3129
3129
  width: "18",
3130
3130
  height: "18",
@@ -3144,7 +3144,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3144
3144
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
3145
3145
  key: "1xmnt7"
3146
3146
  }]
3147
- ]), ji = q("info", [
3147
+ ]), Mi = q("info", [
3148
3148
  ["circle", {
3149
3149
  cx: "12",
3150
3150
  cy: "12",
@@ -3159,31 +3159,31 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3159
3159
  d: "M12 8h.01",
3160
3160
  key: "e9boi3"
3161
3161
  }]
3162
- ]), Mi = q("loader-circle", [["path", {
3162
+ ]), Ni = q("loader-circle", [["path", {
3163
3163
  d: "M21 12a9 9 0 1 1-6.219-8.56",
3164
3164
  key: "13zald"
3165
- }]]), Ni = q("message-circle", [["path", {
3165
+ }]]), Pi = q("message-circle", [["path", {
3166
3166
  d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
3167
3167
  key: "1sd12s"
3168
- }]]), Pi = q("navigation", [["polygon", {
3168
+ }]]), Fi = q("navigation", [["polygon", {
3169
3169
  points: "3 11 22 2 13 21 11 13 3 11",
3170
3170
  key: "1ltx0t"
3171
- }]]), Fi = q("pencil", [["path", {
3171
+ }]]), Ii = q("pencil", [["path", {
3172
3172
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
3173
3173
  key: "1a8usu"
3174
3174
  }], ["path", {
3175
3175
  d: "m15 5 4 4",
3176
3176
  key: "1mk7zo"
3177
- }]]), Ii = q("puzzle", [["path", {
3177
+ }]]), Li = q("puzzle", [["path", {
3178
3178
  d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
3179
3179
  key: "w46dr5"
3180
- }]]), Li = q("redo-2", [["path", {
3180
+ }]]), Ri = q("redo-2", [["path", {
3181
3181
  d: "m15 14 5-5-5-5",
3182
3182
  key: "12vg1m"
3183
3183
  }], ["path", {
3184
3184
  d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
3185
3185
  key: "6uklza"
3186
- }]]), Ri = q("refresh-cw", [
3186
+ }]]), zi = q("refresh-cw", [
3187
3187
  ["path", {
3188
3188
  d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
3189
3189
  key: "v9h5vc"
@@ -3200,19 +3200,19 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3200
3200
  d: "M8 16H3v5",
3201
3201
  key: "1cv678"
3202
3202
  }]
3203
- ]), zi = q("reply", [["path", {
3203
+ ]), Bi = q("reply", [["path", {
3204
3204
  d: "M20 18v-2a4 4 0 0 0-4-4H4",
3205
3205
  key: "5vmcpk"
3206
3206
  }], ["path", {
3207
3207
  d: "m9 17-5-5 5-5",
3208
3208
  key: "nvlc11"
3209
- }]]), Bi = q("send", [["path", {
3209
+ }]]), Vi = q("send", [["path", {
3210
3210
  d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
3211
3211
  key: "1ffxy3"
3212
3212
  }], ["path", {
3213
3213
  d: "m21.854 2.147-10.94 10.939",
3214
3214
  key: "12cjpa"
3215
- }]]), Vi = q("share-2", [
3215
+ }]]), Hi = q("share-2", [
3216
3216
  ["circle", {
3217
3217
  cx: "18",
3218
3218
  cy: "5",
@@ -3245,13 +3245,13 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3245
3245
  y2: "10.49",
3246
3246
  key: "1n3mei"
3247
3247
  }]
3248
- ]), Hi = q("shield-check", [["path", {
3248
+ ]), Ui = q("shield-check", [["path", {
3249
3249
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
3250
3250
  key: "oel41y"
3251
3251
  }], ["path", {
3252
3252
  d: "m9 12 2 2 4-4",
3253
3253
  key: "dzmm74"
3254
- }]]), Ui = q("shield-x", [
3254
+ }]]), Wi = q("shield-x", [
3255
3255
  ["path", {
3256
3256
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
3257
3257
  key: "oel41y"
@@ -3264,7 +3264,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3264
3264
  d: "m9.5 9.5 5 5",
3265
3265
  key: "18nt4w"
3266
3266
  }]
3267
- ]), Wi = q("sparkles", [
3267
+ ]), Gi = q("sparkles", [
3268
3268
  ["path", {
3269
3269
  d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
3270
3270
  key: "1s2grr"
@@ -3283,7 +3283,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3283
3283
  r: "2",
3284
3284
  key: "6kqj1y"
3285
3285
  }]
3286
- ]), Gi = q("table", [
3286
+ ]), Ki = q("table", [
3287
3287
  ["path", {
3288
3288
  d: "M12 3v18",
3289
3289
  key: "108xh3"
@@ -3304,7 +3304,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3304
3304
  d: "M3 15h18",
3305
3305
  key: "5xshup"
3306
3306
  }]
3307
- ]), Ki = q("trash-2", [
3307
+ ]), qi = q("trash-2", [
3308
3308
  ["path", {
3309
3309
  d: "M10 11v6",
3310
3310
  key: "nco0om"
@@ -3325,7 +3325,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3325
3325
  d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
3326
3326
  key: "e791ji"
3327
3327
  }]
3328
- ]), qi = q("triangle-alert", [
3328
+ ]), Ji = q("triangle-alert", [
3329
3329
  ["path", {
3330
3330
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
3331
3331
  key: "wmoenq"
@@ -3338,13 +3338,13 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3338
3338
  d: "M12 17h.01",
3339
3339
  key: "p32p05"
3340
3340
  }]
3341
- ]), Ji = q("undo-2", [["path", {
3341
+ ]), Yi = q("undo-2", [["path", {
3342
3342
  d: "M9 14 4 9l5-5",
3343
3343
  key: "102s5s"
3344
3344
  }], ["path", {
3345
3345
  d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
3346
3346
  key: "f3b9sd"
3347
- }]]), Yi = q("upload", [
3347
+ }]]), Xi = q("upload", [
3348
3348
  ["path", {
3349
3349
  d: "M12 3v12",
3350
3350
  key: "1x0j5s"
@@ -3357,7 +3357,7 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3357
3357
  d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
3358
3358
  key: "ih7n3h"
3359
3359
  }]
3360
- ]), Xi = q("video", [["path", {
3360
+ ]), Zi = q("video", [["path", {
3361
3361
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
3362
3362
  key: "ftymec"
3363
3363
  }], ["rect", {
@@ -3367,20 +3367,20 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3367
3367
  height: "12",
3368
3368
  rx: "2",
3369
3369
  key: "158x01"
3370
- }]]), Zi = q("x", [["path", {
3370
+ }]]), Qi = q("x", [["path", {
3371
3371
  d: "M18 6 6 18",
3372
3372
  key: "1bl5f8"
3373
3373
  }], ["path", {
3374
3374
  d: "m6 6 12 12",
3375
3375
  key: "d8bk6v"
3376
- }]]), Qi = q("zap", [["path", {
3376
+ }]]), $i = q("zap", [["path", {
3377
3377
  d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
3378
3378
  key: "1xq2db"
3379
- }]]), $i = ["innerHTML"], ea = [
3379
+ }]]), ea = ["innerHTML"], ta = [
3380
3380
  "src",
3381
3381
  "width",
3382
3382
  "height"
3383
- ], ta = /* @__PURE__ */ i({
3383
+ ], na = /* @__PURE__ */ i({
3384
3384
  __name: "CustomBlockIcon",
3385
3385
  props: {
3386
3386
  icon: {},
@@ -3396,14 +3396,14 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3396
3396
  height: `${n.value}px`
3397
3397
  }),
3398
3398
  innerHTML: e.icon
3399
- }, null, 12, $i)) : i.value ? (h(), B("img", {
3399
+ }, null, 12, ea)) : i.value ? (h(), B("img", {
3400
3400
  key: 1,
3401
3401
  src: e.icon,
3402
3402
  width: n.value,
3403
3403
  height: n.value,
3404
3404
  class: "tpl:inline-block",
3405
3405
  alt: ""
3406
- }, null, 8, ea)) : (h(), N(D(fi), {
3406
+ }, null, 8, ta)) : (h(), N(D(pi), {
3407
3407
  key: 2,
3408
3408
  size: n.value,
3409
3409
  "stroke-width": 1.5
@@ -3413,15 +3413,15 @@ var ui = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
3413
3413
  let n = e.__vccOpts || e;
3414
3414
  for (let [e, r] of t) n[e] = r;
3415
3415
  return n;
3416
- }, na = {}, ra = { class: "tpl-loading-track" };
3417
- function ia(e, t) {
3418
- return h(), B("div", ra);
3416
+ }, ra = {}, ia = { class: "tpl-loading-track" };
3417
+ function aa(e, t) {
3418
+ return h(), B("div", ia);
3419
3419
  }
3420
- var aa = /* @__PURE__ */ J(na, [["render", ia], ["__scopeId", "data-v-1ed538ec"]]), oa = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
3421
- function sa(e, t) {
3420
+ var oa = /* @__PURE__ */ J(ra, [["render", aa], ["__scopeId", "data-v-1ed538ec"]]), sa = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
3421
+ function ca(e, t) {
3422
3422
  let n = null, r = null, i = null;
3423
3423
  function a() {
3424
- return e.value ? Array.from(e.value.querySelectorAll(oa)).filter((e) => e.offsetParent !== null) : [];
3424
+ return e.value ? Array.from(e.value.querySelectorAll(sa)).filter((e) => e.offsetParent !== null) : [];
3425
3425
  }
3426
3426
  function o(e) {
3427
3427
  if (e.key !== "Tab") return;
@@ -3451,18 +3451,18 @@ function sa(e, t) {
3451
3451
  }
3452
3452
  //#endregion
3453
3453
  //#region src/composables/useCloudI18n.ts
3454
- function ca(e, t) {
3454
+ function la(e, t) {
3455
3455
  return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
3456
3456
  }
3457
- function la(e) {
3458
- let t = e ?? a(Lr, null);
3457
+ function ua(e) {
3458
+ let t = e ?? a(Rr, null);
3459
3459
  return {
3460
3460
  t: t ? x(t) ? t.value : t : null,
3461
- format: ca
3461
+ format: la
3462
3462
  };
3463
3463
  }
3464
- function ua(e) {
3465
- let { t, format: n } = la(e);
3464
+ function da(e) {
3465
+ let { t, format: n } = ua(e);
3466
3466
  if (!t) throw Error("useCloudI18nStrict() requires a cloud translations provider. Ensure the component is a descendant of CloudEditor.");
3467
3467
  return {
3468
3468
  t,
@@ -3471,8 +3471,8 @@ function ua(e) {
3471
3471
  }
3472
3472
  //#endregion
3473
3473
  //#region src/composables/useMergeTag.ts
3474
- function da() {
3475
- let e = a(dr, "email") === "popup", t = e ? [] : a(Sr, []), n = a(Cr, It.liquid), r = e ? null : a(wr, null), i = e ? !1 : a(Tr, !0), o = R(!1);
3474
+ function fa() {
3475
+ let e = a(dr, "email") === "popup", t = e ? [] : a(Cr, []), n = a(wr, It.liquid), r = e ? null : a(Tr, null), i = e ? !1 : a(Er, !0), o = R(!1);
3476
3476
  function s(e) {
3477
3477
  return Vt(e, n);
3478
3478
  }
@@ -3501,7 +3501,7 @@ function da() {
3501
3501
  }
3502
3502
  //#endregion
3503
3503
  //#region src/composables/useEmoji.ts
3504
- function fa() {
3504
+ function pa() {
3505
3505
  let [e, t] = jn(!1), n = L([]), r = !1;
3506
3506
  g(() => {
3507
3507
  r = !0;
@@ -3527,7 +3527,7 @@ function fa() {
3527
3527
  }
3528
3528
  //#endregion
3529
3529
  //#region src/composables/useDragDrop.ts
3530
- function pa(e) {
3530
+ function ma(e) {
3531
3531
  let { onBlockMove: t, onBlockAdd: n } = e, r = R(!1), i = R(null), a = R(null);
3532
3532
  function o(e) {
3533
3533
  r.value = !0, i.value = e;
@@ -3577,7 +3577,7 @@ function pa(e) {
3577
3577
  }
3578
3578
  //#endregion
3579
3579
  //#region src/composables/useFonts.ts
3580
- var ma = [
3580
+ var ha = [
3581
3581
  {
3582
3582
  value: "Arial",
3583
3583
  label: "Arial"
@@ -3606,7 +3606,7 @@ var ma = [
3606
3606
  value: "Courier New",
3607
3607
  label: "Courier New"
3608
3608
  }
3609
- ], ha = {
3609
+ ], ga = {
3610
3610
  arial: "Arial, sans-serif",
3611
3611
  helvetica: "Helvetica, sans-serif",
3612
3612
  georgia: "Georgia, serif",
@@ -3614,14 +3614,14 @@ var ma = [
3614
3614
  verdana: "Verdana, sans-serif",
3615
3615
  "trebuchet ms": "'Trebuchet MS', sans-serif",
3616
3616
  "courier new": "'Courier New', monospace"
3617
- }, ga = "Arial, sans-serif";
3618
- function _a(e) {
3619
- let t = R(e?.customFonts ?? []), n = R(!0), r = R(!1), i = F(() => e?.defaultFallback ?? ga);
3617
+ }, _a = "Arial, sans-serif";
3618
+ function va(e) {
3619
+ let t = R(e?.customFonts ?? []), n = R(!0), r = R(!1), i = F(() => e?.defaultFallback ?? _a);
3620
3620
  function a(e) {
3621
3621
  n.value = e;
3622
3622
  }
3623
3623
  let o = F(() => {
3624
- let e = [...ma];
3624
+ let e = [...ha];
3625
3625
  if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
3626
3626
  let r = t.value.map((e) => ({
3627
3627
  value: e.name,
@@ -3634,23 +3634,23 @@ function _a(e) {
3634
3634
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
3635
3635
  }
3636
3636
  function c(e) {
3637
- return ma.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
3637
+ return ha.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
3638
3638
  }
3639
3639
  function l() {
3640
3640
  if (e?.defaultFont) {
3641
- if (!n.value && !c(e.defaultFont)) return ga;
3641
+ if (!n.value && !c(e.defaultFont)) return _a;
3642
3642
  if (s(e.defaultFont)) {
3643
3643
  let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
3644
3644
  if (t) return t.value;
3645
3645
  }
3646
3646
  }
3647
- return ga;
3647
+ return _a;
3648
3648
  }
3649
3649
  let u = F(() => l());
3650
3650
  function f(e) {
3651
3651
  if (!e) return i.value;
3652
3652
  let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
3653
- return n ? `'${n.name}', ${n.fallback ?? i.value}` : ha[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
3653
+ return n ? `'${n.name}', ${n.fallback ?? i.value}` : ga[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
3654
3654
  }
3655
3655
  let p = [];
3656
3656
  async function m() {
@@ -3666,7 +3666,7 @@ function _a(e) {
3666
3666
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
3667
3667
  });
3668
3668
  } catch (t) {
3669
- qr.warn(`Failed to load custom font "${e.name}":`, t);
3669
+ Jr.warn(`Failed to load custom font "${e.name}":`, t);
3670
3670
  }
3671
3671
  });
3672
3672
  await Promise.allSettled(e), r.value = !0;
@@ -3691,9 +3691,9 @@ function _a(e) {
3691
3691
  }
3692
3692
  //#endregion
3693
3693
  //#region src/composables/useRichTextLinkDialog.ts
3694
- function va(e) {
3694
+ function ya(e) {
3695
3695
  let t = R(!1), n = R(""), r = R(null);
3696
- sa(r, t);
3696
+ ca(r, t);
3697
3697
  function i() {
3698
3698
  n.value = e.value?.getAttributes("link").href || "", t.value = !0;
3699
3699
  }
@@ -3729,8 +3729,8 @@ function va(e) {
3729
3729
  }
3730
3730
  //#endregion
3731
3731
  //#region src/composables/useRichTextEditor.ts
3732
- function ya(e) {
3733
- let t = a(ur, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: o, syntax: s, autocomplete: c } = da(), u = a(lr, null), d = (x(u) ? u.value : u)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", f = Rt(s), p = L(null), { showLinkDialog: m, linkUrl: h, linkDialogRef: g, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: S } = va(p), { start: C, stop: w } = An(() => p.value?.commands.focus("end"), 0, { immediate: !1 }), T = L(null), E = R(!0), D = R(null), O = !1;
3732
+ function ba(e) {
3733
+ let t = a(ur, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: o, syntax: s, autocomplete: c } = fa(), u = a(lr, null), d = (x(u) ? u.value : u)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", f = Rt(s), p = L(null), { showLinkDialog: m, linkUrl: h, linkDialogRef: g, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: S } = ya(p), { start: C, stop: w } = An(() => p.value?.commands.focus("end"), 0, { immediate: !1 }), T = L(null), E = R(!0), D = R(null), O = !1;
3734
3734
  async function k() {
3735
3735
  D.value = null, E.value = !0;
3736
3736
  try {
@@ -3760,7 +3760,7 @@ function ya(e) {
3760
3760
  p.value = l, E.value = !1, C();
3761
3761
  } catch (t) {
3762
3762
  if (O) return;
3763
- qr.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), D.value = t instanceof Error ? t.message : "Failed to load editor", E.value = !1;
3763
+ Jr.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), D.value = t instanceof Error ? t.message : "Failed to load editor", E.value = !1;
3764
3764
  }
3765
3765
  }
3766
3766
  function A() {
@@ -3808,20 +3808,20 @@ function ya(e) {
3808
3808
  }
3809
3809
  //#endregion
3810
3810
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
3811
- var ba = { class: "tpl:w-full" }, xa = {
3811
+ var xa = { class: "tpl:w-full" }, Sa = {
3812
3812
  key: 0,
3813
3813
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
3814
- }, Sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ca = {
3814
+ }, Ca = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, wa = {
3815
3815
  key: 1,
3816
3816
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
3817
- }, wa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ta = {
3817
+ }, Ta = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ea = {
3818
3818
  key: 2,
3819
3819
  class: "tpl:relative"
3820
- }, Ea = ["innerHTML"], Da = {
3820
+ }, Da = ["innerHTML"], Oa = {
3821
3821
  key: 0,
3822
3822
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
3823
3823
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
3824
- }, Oa = /* @__PURE__ */ i({
3824
+ }, ka = /* @__PURE__ */ i({
3825
3825
  __name: "CustomBlock",
3826
3826
  props: {
3827
3827
  block: {},
@@ -3829,7 +3829,7 @@ var ba = { class: "tpl:w-full" }, xa = {
3829
3829
  },
3830
3830
  emits: ["fetchData"],
3831
3831
  setup(e, { emit: t }) {
3832
- let n = e, r = t, { t: i } = K(), o = a(br, null), s = R(""), c = R(!1), u = F(() => o?.getDefinition(n.block.customType)), d = F(() => !!u.value), { isFetching: f, fetch: p, needsFetch: g, hasDataSource: _ } = rn({
3832
+ let n = e, r = t, { t: i } = K(), o = a(xr, null), s = R(""), c = R(!1), u = F(() => o?.getDefinition(n.block.customType)), d = F(() => !!u.value), { isFetching: f, fetch: p, needsFetch: g, hasDataSource: _ } = rn({
3833
3833
  definition: u,
3834
3834
  block: F(() => n.block),
3835
3835
  onUpdate: (e, t) => {
@@ -3855,10 +3855,10 @@ var ba = { class: "tpl:w-full" }, xa = {
3855
3855
  v();
3856
3856
  }), l(() => n.block.fieldValues, () => {
3857
3857
  y();
3858
- }, { deep: !0 }), (e, t) => (h(), B("div", ba, [d.value ? c.value ? (h(), B("div", Ca, [V(D(qi), {
3858
+ }, { deep: !0 }), (e, t) => (h(), B("div", xa, [d.value ? c.value ? (h(), B("div", wa, [V(D(Ji), {
3859
3859
  size: 24,
3860
3860
  class: "tpl:text-[var(--tpl-danger)]"
3861
- }), P("span", wa, M(D(i).customBlocks.renderError), 1)])) : (h(), B("div", Ta, [P("div", { innerHTML: s.value }, null, 8, Ea), D(_) && D(g) ? (h(), B("div", Da, [D(f) ? (h(), N(aa, {
3861
+ }), P("span", Ta, M(D(i).customBlocks.renderError), 1)])) : (h(), B("div", Ea, [P("div", { innerHTML: s.value }, null, 8, Da), D(_) && D(g) ? (h(), B("div", Oa, [D(f) ? (h(), N(oa, {
3862
3862
  key: 1,
3863
3863
  class: "tpl:w-48"
3864
3864
  })) : (h(), B("button", {
@@ -3866,31 +3866,31 @@ var ba = { class: "tpl:w-full" }, xa = {
3866
3866
  type: "button",
3867
3867
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
3868
3868
  onClick: t[0] ||= O((...e) => D(p) && D(p)(...e), ["stop"])
3869
- }, [u.value?.icon ? (h(), N(ta, {
3869
+ }, [u.value?.icon ? (h(), N(na, {
3870
3870
  key: 0,
3871
3871
  icon: u.value.icon,
3872
3872
  size: 16
3873
- }, null, 8, ["icon"])) : C("", !0), T(" " + M(u.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : C("", !0)])) : (h(), B("div", xa, [V(D(Ii), {
3873
+ }, null, 8, ["icon"])) : C("", !0), T(" " + M(u.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : C("", !0)])) : (h(), B("div", Sa, [V(D(Li), {
3874
3874
  size: 24,
3875
3875
  class: "tpl:text-[var(--tpl-warning)]"
3876
- }), P("span", Sa, M(D(i).customBlocks.definitionNotFound), 1)]))]));
3876
+ }), P("span", Ca, M(D(i).customBlocks.definitionNotFound), 1)]))]));
3877
3877
  }
3878
- }), ka = ["aria-label"], Aa = { class: "tpl:flex tpl:items-center tpl:justify-center tpl:border-2 tpl:border-dashed tpl:border-[#a3a3a3] tpl:bg-[var(--tpl-bg)] tpl:px-4 tpl:py-3" }, ja = {
3878
+ }), Aa = ["aria-label"], ja = { class: "tpl:flex tpl:items-center tpl:justify-center tpl:border-2 tpl:border-dashed tpl:border-[#a3a3a3] tpl:bg-[var(--tpl-bg)] tpl:px-4 tpl:py-3" }, Ma = {
3879
3879
  key: 0,
3880
3880
  class: "tpl:text-center tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]"
3881
- }, Ma = {
3881
+ }, Na = {
3882
3882
  key: 1,
3883
3883
  class: "tpl:flex tpl:max-w-full tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-2"
3884
- }, Na = {
3884
+ }, Pa = {
3885
3885
  key: 0,
3886
3886
  class: "tpl:inline-block tpl:max-w-full tpl:text-center tpl:font-sans tpl:text-lg tpl:font-bold tpl:text-[var(--tpl-primary)]",
3887
3887
  role: "status",
3888
3888
  "aria-live": "polite"
3889
- }, Pa = {
3889
+ }, Fa = {
3890
3890
  key: 1,
3891
3891
  class: "tpl:inline-block tpl:break-all tpl:text-center tpl:font-sans tpl:text-lg tpl:font-bold tpl:tracking-[0.08em] tpl:text-[var(--tpl-text)]",
3892
3892
  "data-tpl-discount-display-code": ""
3893
- }, Fa = ["title", "aria-label"], Ia = { key: 0 }, La = 3e3, Ra = /* @__PURE__ */ i({
3893
+ }, Ia = ["title", "aria-label"], La = { key: 0 }, Ra = 3e3, za = /* @__PURE__ */ i({
3894
3894
  __name: "DiscountCouponBlock",
3895
3895
  props: {
3896
3896
  block: {},
@@ -3934,7 +3934,7 @@ var ba = { class: "tpl:w-full" }, xa = {
3934
3934
  if (e) try {
3935
3935
  await navigator.clipboard.writeText(e), c.value = !0, d(), u = setTimeout(() => {
3936
3936
  c.value = !1, u = null;
3937
- }, La), f();
3937
+ }, Ra), f();
3938
3938
  } catch {
3939
3939
  c.value = !1;
3940
3940
  }
@@ -3945,23 +3945,23 @@ var ba = { class: "tpl:w-full" }, xa = {
3945
3945
  class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-stretch tpl:gap-2 tpl:mx-auto tpl:max-w-xs",
3946
3946
  role: "region",
3947
3947
  "aria-label": D(n).blocks.discountCoupon
3948
- }, [P("div", Aa, [e.block.discountMode === "none" ? (h(), B("span", ja, M(D(n).discountCoupon.previewNoDiscount), 1)) : (h(), B("div", Ma, [c.value ? (h(), B("span", Na, M(s.value), 1)) : (h(), B("span", Pa, M(i.value), 1)), P("button", {
3948
+ }, [P("div", ja, [e.block.discountMode === "none" ? (h(), B("span", Ma, M(D(n).discountCoupon.previewNoDiscount), 1)) : (h(), B("div", Na, [c.value ? (h(), B("span", Pa, M(s.value), 1)) : (h(), B("span", Fa, M(i.value), 1)), P("button", {
3949
3949
  type: "button",
3950
3950
  class: "tpl:flex tpl:size-7 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)] tpl:outline-none tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2",
3951
3951
  title: D(n).discountCoupon.copyCode,
3952
3952
  "aria-label": D(n).discountCoupon.copyCode,
3953
3953
  onClick: p
3954
- }, [V(D(Si), {
3954
+ }, [V(D(Ci), {
3955
3955
  size: 14,
3956
3956
  "stroke-width": 2,
3957
3957
  "aria-hidden": "true"
3958
- })], 8, Fa)]))]), o.value ? (h(), B("div", Ia, [P("button", {
3958
+ })], 8, Ia)]))]), o.value ? (h(), B("div", La, [P("button", {
3959
3959
  type: "button",
3960
3960
  class: "tpl:w-full tpl:border-none tpl:bg-[#111111] tpl:px-4 tpl:py-3 tpl:text-center tpl:text-sm tpl:font-bold tpl:text-white tpl:outline-none tpl:transition-opacity tpl:duration-150 hover:tpl:opacity-90 focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2",
3961
3961
  onClick: p
3962
- }, M(D(n).discountCoupon.copyCode), 1)])) : C("", !0)], 8, ka));
3962
+ }, M(D(n).discountCoupon.copyCode), 1)])) : C("", !0)], 8, Aa));
3963
3963
  }
3964
- }), za = { class: "tpl:w-full" }, Ba = /* @__PURE__ */ i({
3964
+ }), Ba = { class: "tpl:w-full" }, Va = /* @__PURE__ */ i({
3965
3965
  __name: "DividerBlock",
3966
3966
  props: {
3967
3967
  block: {},
@@ -3973,18 +3973,18 @@ var ba = { class: "tpl:w-full" }, xa = {
3973
3973
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
3974
3974
  margin: t.block.width === "full" ? "0" : "0 auto"
3975
3975
  }));
3976
- return (e, t) => (h(), B("div", za, [P("hr", {
3976
+ return (e, t) => (h(), B("div", Ba, [P("hr", {
3977
3977
  class: "tpl:m-0 tpl:border-none",
3978
3978
  style: k(n.value)
3979
3979
  }, null, 4)]));
3980
3980
  }
3981
- }), Va = { class: "tpl:w-full" }, Ha = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, Ua = {
3981
+ }), Ha = { class: "tpl:w-full" }, Ua = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, Wa = {
3982
3982
  key: 0,
3983
3983
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
3984
- }, Wa = {
3984
+ }, Ga = {
3985
3985
  key: 1,
3986
3986
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
3987
- }, Ga = /* @__PURE__ */ i({
3987
+ }, Ka = /* @__PURE__ */ i({
3988
3988
  __name: "HtmlBlock",
3989
3989
  props: {
3990
3990
  block: {},
@@ -3992,18 +3992,18 @@ var ba = { class: "tpl:w-full" }, xa = {
3992
3992
  },
3993
3993
  setup(e) {
3994
3994
  let t = e, { t: n } = K(), r = F(() => t.block.content.trim().length > 0);
3995
- return (e, t) => (h(), B("div", Va, [P("div", Ha, [V(D(xi), {
3995
+ return (e, t) => (h(), B("div", Ha, [P("div", Ua, [V(D(Si), {
3996
3996
  size: 24,
3997
3997
  class: "tpl:text-[var(--tpl-text-dim)]"
3998
- }), r.value ? (h(), B("span", Ua, M(D(n).html.preview), 1)) : (h(), B("span", Wa, M(D(n).html.empty), 1))])]));
3998
+ }), r.value ? (h(), B("span", Wa, M(D(n).html.preview), 1)) : (h(), B("span", Ga, M(D(n).html.empty), 1))])]));
3999
3999
  }
4000
- }), Ka = ["href"], qa = ["src", "alt"], Ja = ["src", "alt"], Ya = {
4000
+ }), qa = ["href"], Ja = ["src", "alt"], Ya = ["src", "alt"], Xa = {
4001
4001
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4002
4002
  style: { opacity: "0.7" }
4003
- }, Xa = ["href"], Za = ["src", "alt"], Qa = ["src", "alt"], $a = {
4003
+ }, Za = ["href"], Qa = ["src", "alt"], $a = ["src", "alt"], eo = {
4004
4004
  key: 3,
4005
4005
  class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
4006
- }, eo = ["aria-label"], to = { key: 1 }, no = /* @__PURE__ */ i({
4006
+ }, to = ["aria-label"], no = { key: 1 }, ro = /* @__PURE__ */ i({
4007
4007
  __name: "ImageBlock",
4008
4008
  props: {
4009
4009
  block: {},
@@ -4011,7 +4011,7 @@ var ba = { class: "tpl:w-full" }, xa = {
4011
4011
  },
4012
4012
  emits: ["update"],
4013
4013
  setup(e, { emit: t }) {
4014
- let n = e, r = t, { t: i } = K(), { syntax: o } = da(), s = a(Er, null), c = F(() => !!s);
4014
+ let n = e, r = t, { t: i } = K(), { syntax: o } = fa(), s = a(Dr, null), c = F(() => !!s);
4015
4015
  async function l() {
4016
4016
  let e = await s?.({ accept: ["images"] });
4017
4017
  if (e) {
@@ -4041,22 +4041,22 @@ var ba = { class: "tpl:w-full" }, xa = {
4041
4041
  src: e.block.placeholderUrl,
4042
4042
  alt: e.block.alt || D(i).image.altTextPlaceholder,
4043
4043
  style: k(d.value)
4044
- }, null, 12, qa)], 8, Ka)) : (h(), B("img", {
4044
+ }, null, 12, Ja)], 8, qa)) : (h(), B("img", {
4045
4045
  key: 1,
4046
4046
  class: "tpl:border-0",
4047
4047
  src: e.block.placeholderUrl,
4048
4048
  alt: e.block.alt,
4049
4049
  style: k(d.value)
4050
- }, null, 12, Ja))], 64)) : e.block.src && f.value ? (h(), B("div", {
4050
+ }, null, 12, Ya))], 64)) : e.block.src && f.value ? (h(), B("div", {
4051
4051
  key: 1,
4052
4052
  class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
4053
4053
  style: k([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
4054
- }, [V(D(Ai), {
4054
+ }, [V(D(ji), {
4055
4055
  size: 32,
4056
4056
  "stroke-width": 1.5,
4057
4057
  class: "tpl:text-[var(--tpl-primary)]",
4058
4058
  style: { opacity: "0.5" }
4059
- }), P("span", Ya, M(e.block.src), 1)], 4)) : e.block.src ? (h(), B(j, { key: 2 }, [e.block.linkUrl ? (h(), B("a", {
4059
+ }), P("span", Xa, M(e.block.src), 1)], 4)) : e.block.src ? (h(), B(j, { key: 2 }, [e.block.linkUrl ? (h(), B("a", {
4060
4060
  key: 0,
4061
4061
  href: e.block.linkUrl,
4062
4062
  target: "_blank",
@@ -4068,30 +4068,30 @@ var ba = { class: "tpl:w-full" }, xa = {
4068
4068
  src: e.block.src,
4069
4069
  alt: e.block.alt || D(i).image.altTextPlaceholder,
4070
4070
  style: k(d.value)
4071
- }, null, 12, Za)], 8, Xa)) : (h(), B("img", {
4071
+ }, null, 12, Qa)], 8, Za)) : (h(), B("img", {
4072
4072
  key: 1,
4073
4073
  class: "tpl:border-0",
4074
4074
  src: e.block.src,
4075
4075
  alt: e.block.alt,
4076
4076
  style: k(d.value)
4077
- }, null, 12, Qa))], 64)) : (h(), B("div", $a, [c.value ? (h(), B("button", {
4077
+ }, null, 12, $a))], 64)) : (h(), B("div", eo, [c.value ? (h(), B("button", {
4078
4078
  key: 0,
4079
4079
  "aria-label": D(i).image.browseMedia,
4080
4080
  class: "tpl:flex tpl:items-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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
4081
4081
  onClick: O(l, ["stop"])
4082
- }, [V(D(Ai), {
4082
+ }, [V(D(ji), {
4083
4083
  size: 14,
4084
4084
  "stroke-width": 1.5
4085
- }), T(" " + M(D(i).image.browseMedia), 1)], 8, eo)) : (h(), B("span", to, M(D(i).image.clickToAdd), 1))]))], 4));
4085
+ }), T(" " + M(D(i).image.browseMedia), 1)], 8, to)) : (h(), B("span", no, M(D(i).image.clickToAdd), 1))]))], 4));
4086
4086
  }
4087
- }), ro = { class: "tpl-field-root tpl:w-full" }, io = ["for"], ao = [
4087
+ }), io = { class: "tpl-field-root tpl:w-full" }, ao = ["for"], oo = [
4088
4088
  "id",
4089
4089
  "type",
4090
4090
  "name",
4091
4091
  "placeholder",
4092
4092
  "value",
4093
4093
  "required"
4094
- ], oo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4094
+ ], so = /* @__PURE__ */ J(/* @__PURE__ */ i({
4095
4095
  __name: "InputBlock",
4096
4096
  props: {
4097
4097
  block: {},
@@ -4136,10 +4136,10 @@ var ba = { class: "tpl:w-full" }, xa = {
4136
4136
  ...e
4137
4137
  };
4138
4138
  }), s = F(() => t.block.inputPlaceholderColor);
4139
- return (t, n) => (h(), B("div", ro, [P("label", {
4139
+ return (t, n) => (h(), B("div", io, [P("label", {
4140
4140
  for: i.value,
4141
4141
  style: k(a.value)
4142
- }, M(e.block.label), 13, io), P("input", {
4142
+ }, M(e.block.label), 13, ao), P("input", {
4143
4143
  id: i.value,
4144
4144
  class: "tpl-field-input tpl:block tpl:max-w-full",
4145
4145
  type: e.block.inputType,
@@ -4150,12 +4150,12 @@ var ba = { class: "tpl:w-full" }, xa = {
4150
4150
  readonly: "",
4151
4151
  tabindex: "-1",
4152
4152
  style: k(o.value)
4153
- }, null, 12, ao)]));
4153
+ }, null, 12, oo)]));
4154
4154
  }
4155
- }), [["__scopeId", "data-v-18294a5e"]]), so = { class: "tpl:w-full" }, co = ["href"], lo = {
4155
+ }), [["__scopeId", "data-v-18294a5e"]]), co = { class: "tpl:w-full" }, lo = ["href"], uo = {
4156
4156
  key: 1,
4157
4157
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
4158
- }, uo = /* @__PURE__ */ i({
4158
+ }, fo = /* @__PURE__ */ i({
4159
4159
  __name: "MenuBlock",
4160
4160
  props: {
4161
4161
  block: {},
@@ -4174,7 +4174,7 @@ var ba = { class: "tpl:w-full" }, xa = {
4174
4174
  function a(e) {
4175
4175
  return e || t.block.linkColor || t.block.color;
4176
4176
  }
4177
- return (t, o) => (h(), B("div", so, [i.value ? (h(), B("div", {
4177
+ return (t, o) => (h(), B("div", co, [i.value ? (h(), B("div", {
4178
4178
  key: 0,
4179
4179
  style: k(r.value)
4180
4180
  }, [(h(!0), B(j, null, u(e.block.items, (t, n) => (h(), B(j, { key: t.id }, [P("a", {
@@ -4186,19 +4186,19 @@ var ba = { class: "tpl:w-full" }, xa = {
4186
4186
  textDecoration: t.underline ? "underline" : "none"
4187
4187
  }),
4188
4188
  onClick: o[0] ||= O(() => {}, ["prevent"])
4189
- }, M(t.text || "..."), 13, co), n < e.block.items.length - 1 ? (h(), B("span", {
4189
+ }, M(t.text || "..."), 13, lo), n < e.block.items.length - 1 ? (h(), B("span", {
4190
4190
  key: 0,
4191
4191
  style: k({
4192
4192
  color: e.block.separatorColor,
4193
4193
  padding: `0 ${e.block.spacing}px`
4194
4194
  })
4195
- }, M(e.block.separator), 5)) : C("", !0)], 64))), 128))], 4)) : (h(), B("div", lo, [V(D(Pi), { size: 16 }), P("span", null, M(D(n).menu.addLinks), 1)]))]));
4195
+ }, M(e.block.separator), 5)) : C("", !0)], 64))), 128))], 4)) : (h(), B("div", uo, [V(D(Fi), { size: 16 }), P("span", null, M(D(n).menu.addLinks), 1)]))]));
4196
4196
  }
4197
4197
  });
4198
4198
  //#endregion
4199
4199
  //#region src/composables/useEditableTextBlock.ts
4200
- function fo(e) {
4201
- let t = a(Sr, []), { syntax: n } = da(), r = F(() => qt(Ut(e(), t), n)), i = R(!1), o = R(null), { top: s, left: c } = Xn(o), l = F(() => ({
4200
+ function po(e) {
4201
+ let t = a(Cr, []), { syntax: n } = fa(), r = F(() => qt(Ut(e(), t), n)), i = R(!1), o = R(null), { top: s, left: c } = Xn(o), l = F(() => ({
4202
4202
  top: s.value - 8,
4203
4203
  left: c.value
4204
4204
  }));
@@ -4219,14 +4219,14 @@ function fo(e) {
4219
4219
  }
4220
4220
  //#endregion
4221
4221
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
4222
- var po = ["innerHTML"], mo = /* @__PURE__ */ i({
4222
+ var mo = ["innerHTML"], ho = /* @__PURE__ */ i({
4223
4223
  __name: "ParagraphBlock",
4224
4224
  props: {
4225
4225
  block: {},
4226
4226
  viewport: {}
4227
4227
  },
4228
4228
  setup(e) {
4229
- let t = e, n = _(() => import("./ParagraphEditor-BX2L35YF.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = fo(() => t.block.content);
4229
+ let t = e, n = _(() => import("./ParagraphEditor-DwmzHg6F.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = po(() => t.block.content);
4230
4230
  return (t, l) => (h(), B("div", {
4231
4231
  ref_key: "blockRef",
4232
4232
  ref: i,
@@ -4245,19 +4245,19 @@ var po = ["innerHTML"], mo = /* @__PURE__ */ i({
4245
4245
  key: 1,
4246
4246
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
4247
4247
  innerHTML: D(o)
4248
- }, null, 8, po))], 544));
4248
+ }, null, 8, mo))], 544));
4249
4249
  }
4250
4250
  });
4251
4251
  //#endregion
4252
4252
  //#region src/utils/blockComponentResolver.ts
4253
- function ho(e, t, n) {
4253
+ function go(e, t, n) {
4254
4254
  if (t) {
4255
4255
  let n = t.getComponent(e);
4256
4256
  if (n) return n;
4257
4257
  }
4258
4258
  return n[e.type] ?? null;
4259
4259
  }
4260
- function go(e) {
4260
+ function _o(e) {
4261
4261
  let { padding: t, margin: n, backgroundColor: r } = e.styles;
4262
4262
  return {
4263
4263
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
@@ -4267,20 +4267,20 @@ function go(e) {
4267
4267
  }
4268
4268
  //#endregion
4269
4269
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
4270
- var _o = ["data-block-id", "data-block-type"], vo = ["aria-label"], yo = [
4270
+ var vo = ["data-block-id", "data-block-type"], yo = ["aria-label"], bo = [
4271
4271
  "aria-label",
4272
4272
  "aria-pressed",
4273
4273
  "title"
4274
- ], bo = ["aria-label", "title"], xo = ["aria-label", "title"], So = ["aria-label", "title"], Co = {
4274
+ ], xo = ["aria-label", "title"], So = ["aria-label", "title"], Co = ["aria-label", "title"], wo = {
4275
4275
  key: 1,
4276
4276
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
4277
- }, wo = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, To = {
4277
+ }, To = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Eo = {
4278
4278
  key: 2,
4279
4279
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
4280
- }, Eo = ["aria-label", "title"], Do = {
4280
+ }, Do = ["aria-label", "title"], Oo = {
4281
4281
  key: 3,
4282
4282
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
4283
- }, Oo = ["aria-label"], ko = /* @__PURE__ */ J(/* @__PURE__ */ i({
4283
+ }, ko = ["aria-label"], Ao = /* @__PURE__ */ J(/* @__PURE__ */ i({
4284
4284
  __name: "BlockWrapper",
4285
4285
  props: {
4286
4286
  block: {},
@@ -4290,7 +4290,7 @@ var _o = ["data-block-id", "data-block-type"], vo = ["aria-label"], yo = [
4290
4290
  },
4291
4291
  emits: ["select"],
4292
4292
  setup(e, { emit: t }) {
4293
- let n = _(() => import("./BlockA11yBadge-dtyeSSvY.js")), i = e, o = t, { t: s, format: c } = K(), l = a(Ar, null), u = R(null), d = F(() => l?.liftedBlockId.value === i.block.id), f = F(() => d.value ? c(s.blockActions.dragLifted, { block: i.block.type }) : s.blockActions.drag);
4293
+ let n = _(() => import("./BlockA11yBadge-BHkh4Otq.js")), i = e, o = t, { t: s, format: c } = K(), l = a(jr, null), u = R(null), d = F(() => l?.liftedBlockId.value === i.block.id), f = F(() => d.value ? c(s.blockActions.dragLifted, { block: i.block.type }) : s.blockActions.drag);
4294
4294
  async function m() {
4295
4295
  await r(), u.value?.focus();
4296
4296
  }
@@ -4317,7 +4317,7 @@ var _o = ["data-block-id", "data-block-type"], vo = ["aria-label"], yo = [
4317
4317
  desktop: s.viewport.desktop,
4318
4318
  tablet: s.viewport.tablet,
4319
4319
  mobile: s.viewport.mobile
4320
- }[i.viewport] ?? i.viewport : ""), b = F(() => !!i.block.displayCondition), x = a(mr, null), S = a(hr, null), w = a(kr, {}), E = F(() => !!w.savedModules), A = F(() => w.comments?.getBlockCount(i.block.id) ?? 0), j = F(() => go(i.block));
4320
+ }[i.viewport] ?? i.viewport : ""), b = F(() => !!i.block.displayCondition), x = a(hr, null), S = a(gr, null), w = a(Ar, {}), E = F(() => !!w.savedModules), A = F(() => w.comments?.getBlockCount(i.block.id) ?? 0), j = F(() => _o(i.block));
4321
4321
  function N(e) {
4322
4322
  i.previewMode || (e.stopPropagation(), o("select"));
4323
4323
  }
@@ -4361,70 +4361,70 @@ var _o = ["data-block-id", "data-block-type"], vo = ["aria-label"], yo = [
4361
4361
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
4362
4362
  title: D(s).blockActions.drag,
4363
4363
  onKeydown: g
4364
- }, [V(D(Oi), {
4364
+ }, [V(D(ki), {
4365
4365
  size: 14,
4366
4366
  "stroke-width": 1.5
4367
- })], 40, yo),
4367
+ })], 40, bo),
4368
4368
  P("button", {
4369
4369
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
4370
4370
  "aria-label": D(s).blockActions.duplicate,
4371
4371
  title: D(s).blockActions.duplicate,
4372
4372
  onClick: O(te, ["stop"])
4373
- }, [V(D(Si), {
4373
+ }, [V(D(Ci), {
4374
4374
  size: 14,
4375
4375
  "stroke-width": 1.5
4376
- })], 8, bo),
4376
+ })], 8, xo),
4377
4377
  E.value ? (h(), B("button", {
4378
4378
  key: 0,
4379
4379
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
4380
4380
  "aria-label": D(s).blockActions.saveAsModule,
4381
4381
  title: D(s).blockActions.saveAsModule,
4382
4382
  onClick: O(ne, ["stop"])
4383
- }, [V(D(di), {
4383
+ }, [V(D(fi), {
4384
4384
  size: 14,
4385
4385
  "stroke-width": 1.5
4386
- })], 8, xo)) : C("", !0),
4386
+ })], 8, So)) : C("", !0),
4387
4387
  P("button", {
4388
4388
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
4389
4389
  "aria-label": D(s).blockActions.delete,
4390
4390
  title: D(s).blockActions.delete,
4391
4391
  onClick: O(ee, ["stop"])
4392
- }, [V(D(Ki), {
4392
+ }, [V(D(qi), {
4393
4393
  size: 14,
4394
4394
  "stroke-width": 1.5
4395
- })], 8, So)
4396
- ], 8, vo)) : C("", !0),
4397
- v.value ? (h(), B("div", Co, [P("span", wo, [V(D(Ci), {
4395
+ })], 8, Co)
4396
+ ], 8, yo)) : C("", !0),
4397
+ v.value ? (h(), B("div", wo, [P("span", To, [V(D(wi), {
4398
4398
  size: 12,
4399
4399
  "stroke-width": 1.5
4400
4400
  }), T(" " + M(D(c)(D(s).blockActions.hiddenOnViewport, { viewport: y.value })), 1)])])) : C("", !0),
4401
- b.value && !v.value ? (h(), B("div", To, [P("button", {
4401
+ b.value && !v.value ? (h(), B("div", Eo, [P("button", {
4402
4402
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
4403
4403
  "aria-label": D(s).blockActions.conditionToggle,
4404
4404
  title: e.block.displayCondition?.label,
4405
4405
  onClick: O(re, ["stop"])
4406
- }, [V(D(Di), {
4406
+ }, [V(D(Oi), {
4407
4407
  size: 12,
4408
4408
  "stroke-width": 2
4409
- })], 8, Eo)])) : C("", !0),
4410
- A.value > 0 && !v.value ? (h(), B("div", Do, [P("button", {
4409
+ })], 8, Do)])) : C("", !0),
4410
+ A.value > 0 && !v.value ? (h(), B("div", Oo, [P("button", {
4411
4411
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]",
4412
4412
  "aria-label": D(c)(D(s).blockActions.comments, { count: String(A.value) }),
4413
4413
  onClick: r[0] ||= O((t) => D(w).comments?.openForBlock(e.block.id), ["stop"])
4414
- }, [V(D(Ni), {
4414
+ }, [V(D(Pi), {
4415
4415
  size: 12,
4416
4416
  "stroke-width": 2.5
4417
- }), T(" " + M(A.value), 1)], 8, Oo)])) : C("", !0),
4417
+ }), T(" " + M(A.value), 1)], 8, ko)])) : C("", !0),
4418
4418
  p(t.$slots, "default", {}, void 0, !0)
4419
- ], 14, _o));
4419
+ ], 14, vo));
4420
4420
  }
4421
- }), [["__scopeId", "data-v-31bea727"]]), Ao = {
4421
+ }), [["__scopeId", "data-v-31bea727"]]), jo = {
4422
4422
  days: 0,
4423
4423
  hours: 0,
4424
4424
  minutes: 0,
4425
4425
  seconds: 0
4426
4426
  };
4427
- function jo(e) {
4427
+ function Mo(e) {
4428
4428
  let t = R(Date.now());
4429
4429
  kn(() => {
4430
4430
  t.value = Date.now();
@@ -4435,7 +4435,7 @@ function jo(e) {
4435
4435
  let n = new Date(t);
4436
4436
  return Number.isNaN(n.getTime()) ? null : n.getTime();
4437
4437
  }), r = F(() => !!e.value.targetDate), i = F(() => n.value ? t.value >= n.value : !1), a = F(() => {
4438
- if (!n.value || i.value) return Ao;
4438
+ if (!n.value || i.value) return jo;
4439
4439
  let e = n.value - t.value, r = Math.floor(e / 1e3);
4440
4440
  return {
4441
4441
  days: Math.floor(r / 86400),
@@ -4478,7 +4478,7 @@ function jo(e) {
4478
4478
  }
4479
4479
  //#endregion
4480
4480
  //#region src/components/blocks/countdown/MinimalStyle.vue?vue&type=script&setup=true&lang.ts
4481
- var Mo = { class: "tpl:text-center" }, No = /* @__PURE__ */ i({
4481
+ var No = { class: "tpl:text-center" }, Po = /* @__PURE__ */ i({
4482
4482
  __name: "MinimalStyle",
4483
4483
  props: {
4484
4484
  block: {},
@@ -4511,7 +4511,7 @@ var Mo = { class: "tpl:text-center" }, No = /* @__PURE__ */ i({
4511
4511
  key: 0,
4512
4512
  style: k(a.value),
4513
4513
  class: "tpl:self-start"
4514
- }, M(e.separator), 5)) : C("", !0), P("div", Mo, [P("div", { style: k(r.value) }, M(t.value), 5), P("div", { style: k(i.value) }, M(t.label), 5)])], 64))), 128))], 4));
4514
+ }, M(e.separator), 5)) : C("", !0), P("div", No, [P("div", { style: k(r.value) }, M(t.value), 5), P("div", { style: k(i.value) }, M(t.label), 5)])], 64))), 128))], 4));
4515
4515
  }
4516
4516
  });
4517
4517
  //#endregion
@@ -4556,7 +4556,7 @@ function X(e, t) {
4556
4556
  default: return t;
4557
4557
  }
4558
4558
  }
4559
- function Po(e, t) {
4559
+ function Fo(e, t) {
4560
4560
  if (!e) return `rgba(0,0,0,${t})`;
4561
4561
  if (e.startsWith("#")) {
4562
4562
  let n = e.slice(1), r = n.length === 3 ? n.split("").map((e) => e + e).join("") : n.slice(0, 6), i = parseInt(r.slice(0, 2), 16), a = parseInt(r.slice(2, 4), 16), o = parseInt(r.slice(4, 6), 16);
@@ -4570,10 +4570,10 @@ function Po(e, t) {
4570
4570
  }
4571
4571
  //#endregion
4572
4572
  //#region src/components/blocks/countdown/MatrixStyle.vue?vue&type=script&setup=true&lang.ts
4573
- var Fo = {
4573
+ var Io = {
4574
4574
  class: "cd-matrix__rain",
4575
4575
  "aria-hidden": "true"
4576
- }, Io = "アイウエオカキクケコサシスセソタチツテト01010101", Lo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4576
+ }, Lo = "アイウエオカキクケコサシスセソタチツテト01010101", Ro = /* @__PURE__ */ J(/* @__PURE__ */ i({
4577
4577
  __name: "MatrixStyle",
4578
4578
  props: {
4579
4579
  block: {},
@@ -4596,13 +4596,13 @@ var Fo = {
4596
4596
  return `${e * 137 % 1800}ms`;
4597
4597
  }
4598
4598
  function l(e) {
4599
- return Io[e * 7 % 28];
4599
+ return Lo[e * 7 % 28];
4600
4600
  }
4601
4601
  return (t, n) => (h(), B("div", {
4602
4602
  class: "cd-matrix",
4603
4603
  style: k(a.value)
4604
4604
  }, [
4605
- P("div", Fo, [(h(!0), B(j, null, u(D(s), (e) => (h(), B("span", {
4605
+ P("div", Io, [(h(!0), B(j, null, u(D(s), (e) => (h(), B("span", {
4606
4606
  key: e,
4607
4607
  class: "cd-matrix__col",
4608
4608
  style: k({
@@ -4636,11 +4636,11 @@ var Fo = {
4636
4636
  }, M(t.label), 5)], 4))), 128))
4637
4637
  ], 4));
4638
4638
  }
4639
- }), [["__scopeId", "data-v-4930d014"]]), Ro = { class: "cd-flip__cards" }, zo = { class: "cd-flip__half cd-flip__half--top" }, Bo = { class: "cd-flip__char" }, Vo = { class: "cd-flip__half cd-flip__half--bot" }, Ho = { class: "cd-flip__char" }, Uo = { class: "cd-flip__char" }, Wo = { class: "cd-flip__char" }, Go = {
4639
+ }), [["__scopeId", "data-v-4930d014"]]), zo = { class: "cd-flip__cards" }, Bo = { class: "cd-flip__half cd-flip__half--top" }, Vo = { class: "cd-flip__char" }, Ho = { class: "cd-flip__half cd-flip__half--bot" }, Uo = { class: "cd-flip__char" }, Wo = { class: "cd-flip__char" }, Go = { class: "cd-flip__char" }, Ko = {
4640
4640
  key: 0,
4641
4641
  class: "cd-flip__sep",
4642
4642
  "aria-hidden": "true"
4643
- }, Ko = /* @__PURE__ */ J(/* @__PURE__ */ i({
4643
+ }, qo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4644
4644
  __name: "FlipClockStyle",
4645
4645
  props: {
4646
4646
  block: {},
@@ -4716,7 +4716,7 @@ var Fo = {
4716
4716
  key: t.key,
4717
4717
  class: "cd-flip__group"
4718
4718
  }, [
4719
- P("div", Ro, [(h(!0), B(j, null, u(c(t.key, t.value), (e) => (h(), B("div", {
4719
+ P("div", zo, [(h(!0), B(j, null, u(c(t.key, t.value), (e) => (h(), B("div", {
4720
4720
  key: e.ci,
4721
4721
  class: "cd-flip__card",
4722
4722
  style: k({
@@ -4727,16 +4727,16 @@ var Fo = {
4727
4727
  fontSize: o.value.fontSize
4728
4728
  })
4729
4729
  }, [
4730
- P("div", zo, [P("span", Bo, M(e.current), 1)]),
4731
- P("div", Vo, [P("span", Ho, M(e.flipping ? e.previous : e.current), 1)]),
4730
+ P("div", Bo, [P("span", Vo, M(e.current), 1)]),
4731
+ P("div", Ho, [P("span", Uo, M(e.flipping ? e.previous : e.current), 1)]),
4732
4732
  e.flipping ? (h(), B("div", {
4733
4733
  key: `top-${e.flipKey}`,
4734
4734
  class: "cd-flip__flap cd-flip__flap--top"
4735
- }, [P("span", Uo, M(e.previous), 1)])) : C("", !0),
4735
+ }, [P("span", Wo, M(e.previous), 1)])) : C("", !0),
4736
4736
  e.flipping ? (h(), B("div", {
4737
4737
  key: `bot-${e.flipKey}`,
4738
4738
  class: "cd-flip__flap cd-flip__flap--bot"
4739
- }, [P("span", Wo, M(e.current), 1)])) : C("", !0),
4739
+ }, [P("span", Go, M(e.current), 1)])) : C("", !0),
4740
4740
  r[0] ||= P("div", {
4741
4741
  class: "cd-flip__divider",
4742
4742
  "aria-hidden": "true"
@@ -4749,10 +4749,10 @@ var Fo = {
4749
4749
  color: e.block.labelColor || "#9ca3af"
4750
4750
  })
4751
4751
  }, M(t.label), 5),
4752
- i < e.segments.length - 1 && !n.value.stack ? (h(), B("div", Go, M(e.separator), 1)) : C("", !0)
4752
+ i < e.segments.length - 1 && !n.value.stack ? (h(), B("div", Ko, M(e.separator), 1)) : C("", !0)
4753
4753
  ]))), 128))], 4));
4754
4754
  }
4755
- }), [["__scopeId", "data-v-d1a2d94a"]]), qo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4755
+ }), [["__scopeId", "data-v-d1a2d94a"]]), Jo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4756
4756
  __name: "GlassmorphismStyle",
4757
4757
  props: {
4758
4758
  block: {},
@@ -4769,7 +4769,7 @@ var Fo = {
4769
4769
  flexDirection: n.value.stack ? "column" : "row",
4770
4770
  minHeight: n.value.fullscreen ? "60vh" : void 0,
4771
4771
  "--cd-accent": i.value,
4772
- "--cd-glow": Po(i.value, .45),
4772
+ "--cd-glow": Fo(i.value, .45),
4773
4773
  "--cd-tick": `${r.value}ms`
4774
4774
  })), o = F(() => {
4775
4775
  let e = t.block.digitFontSize * n.value.digitScale;
@@ -4815,7 +4815,7 @@ var Fo = {
4815
4815
  ], 4))), 128))
4816
4816
  ], 4));
4817
4817
  }
4818
- }), [["__scopeId", "data-v-fc3c7d5b"]]), Jo = { class: "cd-neon__inner" }, Yo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4818
+ }), [["__scopeId", "data-v-fc3c7d5b"]]), Yo = { class: "cd-neon__inner" }, Xo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4819
4819
  __name: "NeonGamingStyle",
4820
4820
  props: {
4821
4821
  block: {},
@@ -4853,7 +4853,7 @@ var Fo = {
4853
4853
  borderRadius: a.value.radius,
4854
4854
  animationDelay: `${r * 200}ms`
4855
4855
  })
4856
- }, [n[0] ||= P("span", { class: "cd-neon__border" }, null, -1), P("span", Jo, [(h(), B("span", {
4856
+ }, [n[0] ||= P("span", { class: "cd-neon__border" }, null, -1), P("span", Yo, [(h(), B("span", {
4857
4857
  class: "cd-neon__digit",
4858
4858
  key: t.value,
4859
4859
  style: k({
@@ -4868,7 +4868,7 @@ var Fo = {
4868
4868
  })
4869
4869
  }, M(t.label), 5)])], 4))), 128))], 4));
4870
4870
  }
4871
- }), [["__scopeId", "data-v-bf76228f"]]), Xo = { class: "cd-led__cell" }, Zo = { class: "cd-led__panel" }, Qo = /* @__PURE__ */ J(/* @__PURE__ */ i({
4871
+ }), [["__scopeId", "data-v-bf76228f"]]), Zo = { class: "cd-led__cell" }, Qo = { class: "cd-led__panel" }, $o = /* @__PURE__ */ J(/* @__PURE__ */ i({
4872
4872
  __name: "RetroLedStyle",
4873
4873
  props: {
4874
4874
  block: {},
@@ -4898,7 +4898,7 @@ var Fo = {
4898
4898
  class: "cd-led__reflection",
4899
4899
  "aria-hidden": "true"
4900
4900
  }, null, -1),
4901
- (h(!0), B(j, null, u(e.segments, (t, r) => (h(), B(j, { key: t.key }, [P("div", Xo, [P("div", Zo, [P("span", {
4901
+ (h(!0), B(j, null, u(e.segments, (t, r) => (h(), B(j, { key: t.key }, [P("div", Zo, [P("div", Qo, [P("span", {
4902
4902
  class: "cd-led__ghost",
4903
4903
  style: k({ fontSize: a.value })
4904
4904
  }, "88", 4), P("span", {
@@ -4917,7 +4917,7 @@ var Fo = {
4917
4917
  }, M(e.separator), 5)) : C("", !0)], 64))), 128))
4918
4918
  ], 4));
4919
4919
  }
4920
- }), [["__scopeId", "data-v-5b9ba0bc"]]), $o = /* @__PURE__ */ J(/* @__PURE__ */ i({
4920
+ }), [["__scopeId", "data-v-5b9ba0bc"]]), es = /* @__PURE__ */ J(/* @__PURE__ */ i({
4921
4921
  __name: "SciFiHologramStyle",
4922
4922
  props: {
4923
4923
  block: {},
@@ -4934,7 +4934,7 @@ var Fo = {
4934
4934
  flexDirection: n.value.stack ? "column" : "row",
4935
4935
  minHeight: n.value.fullscreen ? "60vh" : void 0,
4936
4936
  "--cd-accent": i.value,
4937
- "--cd-glow": Po(i.value, .55),
4937
+ "--cd-glow": Fo(i.value, .55),
4938
4938
  "--cd-tick": `${r.value}ms`
4939
4939
  })), o = F(() => {
4940
4940
  let e = t.block.digitFontSize * n.value.digitScale;
@@ -4977,12 +4977,12 @@ var Fo = {
4977
4977
  class: "cd-holo__label",
4978
4978
  style: k({
4979
4979
  fontSize: `${e.block.labelFontSize}px`,
4980
- color: e.block.labelColor || D(Po)(i.value, .75)
4980
+ color: e.block.labelColor || D(Fo)(i.value, .75)
4981
4981
  })
4982
4982
  }, M(t.label), 5)], 4))), 128))
4983
4983
  ], 4));
4984
4984
  }
4985
- }), [["__scopeId", "data-v-a6aaf28e"]]), es = /* @__PURE__ */ J(/* @__PURE__ */ i({
4985
+ }), [["__scopeId", "data-v-a6aaf28e"]]), ts = /* @__PURE__ */ J(/* @__PURE__ */ i({
4986
4986
  __name: "LuxuryGoldStyle",
4987
4987
  props: {
4988
4988
  block: {},
@@ -5037,7 +5037,7 @@ var Fo = {
5037
5037
  }, M(t.label), 5)
5038
5038
  ], 4))), 128))], 4));
5039
5039
  }
5040
- }), [["__scopeId", "data-v-c1fb53c2"]]), ts = ["onMousemove", "onMouseleave"], ns = /* @__PURE__ */ J(/* @__PURE__ */ i({
5040
+ }), [["__scopeId", "data-v-c1fb53c2"]]), ns = ["onMousemove", "onMouseleave"], rs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5041
5041
  __name: "Floating3dStyle",
5042
5042
  props: {
5043
5043
  block: {},
@@ -5115,9 +5115,9 @@ var Fo = {
5115
5115
  color: e.block.labelColor || "#6b7280"
5116
5116
  })
5117
5117
  }, M(t.label), 5)
5118
- ], 44, ts))), 128))], 4));
5118
+ ], 44, ns))), 128))], 4));
5119
5119
  }
5120
- }), [["__scopeId", "data-v-e9fcb742"]]), rs = { class: "cd-liquid__inner" }, is = /* @__PURE__ */ J(/* @__PURE__ */ i({
5120
+ }), [["__scopeId", "data-v-e9fcb742"]]), is = { class: "cd-liquid__inner" }, as = /* @__PURE__ */ J(/* @__PURE__ */ i({
5121
5121
  __name: "LiquidMorphStyle",
5122
5122
  props: {
5123
5123
  block: {},
@@ -5155,7 +5155,7 @@ var Fo = {
5155
5155
  height: a.value.height,
5156
5156
  animationDelay: `${n * 800}ms, ${n * 120}ms`
5157
5157
  })
5158
- }, [P("span", rs, [(h(), B("span", {
5158
+ }, [P("span", is, [(h(), B("span", {
5159
5159
  class: "cd-liquid__digit",
5160
5160
  key: t.value,
5161
5161
  style: k({
@@ -5170,7 +5170,7 @@ var Fo = {
5170
5170
  })
5171
5171
  }, M(t.label), 5)])], 4))), 128))], 4));
5172
5172
  }
5173
- }), [["__scopeId", "data-v-1b7c8eae"]]), as = /* @__PURE__ */ J(/* @__PURE__ */ i({
5173
+ }), [["__scopeId", "data-v-1b7c8eae"]]), os = /* @__PURE__ */ J(/* @__PURE__ */ i({
5174
5174
  __name: "MinimalDarkSaasStyle",
5175
5175
  props: {
5176
5176
  block: {},
@@ -5222,7 +5222,7 @@ var Fo = {
5222
5222
  })
5223
5223
  }, M(t.label), 5)], 4))), 128))], 4));
5224
5224
  }
5225
- }), [["__scopeId", "data-v-8c504558"]]), os = { class: "cd-mech__panel" }, ss = /* @__PURE__ */ J(/* @__PURE__ */ i({
5225
+ }), [["__scopeId", "data-v-8c504558"]]), ss = { class: "cd-mech__panel" }, cs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5226
5226
  __name: "MechanicalCounterStyle",
5227
5227
  props: {
5228
5228
  block: {},
@@ -5257,7 +5257,7 @@ var Fo = {
5257
5257
  }, [(h(!0), B(j, null, u(e.segments, (t) => (h(), B("div", {
5258
5258
  key: t.key,
5259
5259
  class: "cd-mech__group"
5260
- }, [P("div", os, [(h(!0), B(j, null, u(t.value, (e, r) => (h(), B("div", {
5260
+ }, [P("div", ss, [(h(!0), B(j, null, u(t.value, (e, r) => (h(), B("div", {
5261
5261
  key: r,
5262
5262
  class: "cd-mech__wheel",
5263
5263
  style: k({
@@ -5280,7 +5280,7 @@ var Fo = {
5280
5280
  })
5281
5281
  }, M(t.label), 5)]))), 128))], 4));
5282
5282
  }
5283
- }), [["__scopeId", "data-v-cc93b20c"]]), cs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5283
+ }), [["__scopeId", "data-v-cc93b20c"]]), ls = /* @__PURE__ */ J(/* @__PURE__ */ i({
5284
5284
  __name: "GradientBlobStyle",
5285
5285
  props: {
5286
5286
  block: {},
@@ -5338,10 +5338,10 @@ var Fo = {
5338
5338
  }, M(t.label), 5)], 4))), 128))
5339
5339
  ], 4));
5340
5340
  }
5341
- }), [["__scopeId", "data-v-cec72f2d"]]), ls = { class: "cd-cli__body" }, us = { class: "cd-cli__unit" }, ds = {
5341
+ }), [["__scopeId", "data-v-cec72f2d"]]), us = { class: "cd-cli__body" }, ds = { class: "cd-cli__unit" }, fs = {
5342
5342
  class: "cd-cli__hidden",
5343
5343
  "aria-hidden": "true"
5344
- }, fs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5344
+ }, ps = /* @__PURE__ */ J(/* @__PURE__ */ i({
5345
5345
  __name: "TerminalCliStyle",
5346
5346
  props: {
5347
5347
  block: {},
@@ -5368,7 +5368,7 @@ var Fo = {
5368
5368
  P("span", { class: "cd-cli__dot cd-cli__dot--y" }, null, -1),
5369
5369
  P("span", { class: "cd-cli__dot cd-cli__dot--g" }, null, -1),
5370
5370
  P("span", { class: "cd-cli__title" }, "~/countdown — bash", -1)
5371
- ]], 4), P("div", ls, [
5371
+ ]], 4), P("div", us, [
5372
5372
  P("div", {
5373
5373
  class: "cd-cli__line",
5374
5374
  style: k({ fontSize: a.value })
@@ -5383,18 +5383,18 @@ var Fo = {
5383
5383
  }, [(h(), B("span", {
5384
5384
  key: e.value,
5385
5385
  class: "cd-cli__num"
5386
- }, M(e.value), 1)), P("span", us, M((e.label[0] || "").toLowerCase()), 1)], 4))), 128))], 4),
5386
+ }, M(e.value), 1)), P("span", ds, M((e.label[0] || "").toLowerCase()), 1)], 4))), 128))], 4),
5387
5387
  P("div", {
5388
5388
  class: "cd-cli__line",
5389
5389
  style: k({ fontSize: a.value })
5390
5390
  }, [...n[2] ||= [he("<span class=\"cd-cli__user\" data-v-ed661810>user@launch</span><span class=\"cd-cli__sep\" data-v-ed661810>:</span><span class=\"cd-cli__path\" data-v-ed661810>~</span><span class=\"cd-cli__sep\" data-v-ed661810>$</span><span class=\"cd-cli__caret\" data-v-ed661810>▌</span>", 5)]], 4),
5391
- P("span", ds, M(s.value), 1)
5391
+ P("span", fs, M(s.value), 1)
5392
5392
  ])], 4));
5393
5393
  }
5394
- }), [["__scopeId", "data-v-ed661810"]]), ps = {
5394
+ }), [["__scopeId", "data-v-ed661810"]]), ms = {
5395
5395
  class: "cd-galaxy__stars",
5396
5396
  "aria-hidden": "true"
5397
- }, ms = /* @__PURE__ */ J(/* @__PURE__ */ i({
5397
+ }, hs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5398
5398
  __name: "SpaceGalaxyStyle",
5399
5399
  props: {
5400
5400
  block: {},
@@ -5438,7 +5438,7 @@ var Fo = {
5438
5438
  class: "cd-galaxy__nebula",
5439
5439
  "aria-hidden": "true"
5440
5440
  }, null, -1),
5441
- P("div", ps, [(h(!0), B(j, null, u(D(o), (e) => (h(), B("span", {
5441
+ P("div", ms, [(h(!0), B(j, null, u(D(o), (e) => (h(), B("span", {
5442
5442
  key: e,
5443
5443
  class: "cd-galaxy__star",
5444
5444
  style: k(s(e))
@@ -5468,13 +5468,13 @@ var Fo = {
5468
5468
  }, M(t.label), 5)], 4))), 128))
5469
5469
  ], 4));
5470
5470
  }
5471
- }), [["__scopeId", "data-v-53cd240c"]]), hs = {
5471
+ }), [["__scopeId", "data-v-53cd240c"]]), gs = {
5472
5472
  class: "cd-anime__lines",
5473
5473
  "aria-hidden": "true"
5474
- }, gs = {
5474
+ }, _s = {
5475
5475
  class: "cd-anime__kanji",
5476
5476
  "aria-hidden": "true"
5477
- }, _s = /* @__PURE__ */ J(/* @__PURE__ */ i({
5477
+ }, vs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5478
5478
  __name: "AnimeCyberpunkStyle",
5479
5479
  props: {
5480
5480
  block: {},
@@ -5515,7 +5515,7 @@ var Fo = {
5515
5515
  return (t, n) => (h(), B("div", {
5516
5516
  class: "cd-anime",
5517
5517
  style: k(i.value)
5518
- }, [P("div", hs, [(h(), B(j, null, u(6, (e) => P("span", {
5518
+ }, [P("div", gs, [(h(), B(j, null, u(6, (e) => P("span", {
5519
5519
  key: e,
5520
5520
  style: k({ animationDelay: `${e * .4}s` })
5521
5521
  }, null, 4)), 64))]), (h(!0), B(j, null, u(e.segments, (t, r) => (h(), B("div", {
@@ -5532,7 +5532,7 @@ var Fo = {
5532
5532
  n[1] ||= P("span", { class: "cd-anime__corner cd-anime__corner--tr" }, null, -1),
5533
5533
  n[2] ||= P("span", { class: "cd-anime__corner cd-anime__corner--bl" }, null, -1),
5534
5534
  n[3] ||= P("span", { class: "cd-anime__corner cd-anime__corner--br" }, null, -1),
5535
- P("span", gs, M(s(r)), 1),
5535
+ P("span", _s, M(s(r)), 1),
5536
5536
  (h(), B("span", {
5537
5537
  class: "cd-anime__digit",
5538
5538
  key: t.value,
@@ -5550,7 +5550,7 @@ var Fo = {
5550
5550
  }, M(t.label), 5)
5551
5551
  ], 4))), 128))], 4));
5552
5552
  }
5553
- }), [["__scopeId", "data-v-53d1230f"]]), vs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5553
+ }), [["__scopeId", "data-v-53d1230f"]]), ys = /* @__PURE__ */ J(/* @__PURE__ */ i({
5554
5554
  __name: "LuxuryWeddingStyle",
5555
5555
  props: {
5556
5556
  block: {},
@@ -5610,7 +5610,7 @@ var Fo = {
5610
5610
  }, M(t.label), 5)
5611
5611
  ], 4))), 128))], 4));
5612
5612
  }
5613
- }), [["__scopeId", "data-v-52d00531"]]), ys = /* @__PURE__ */ J(/* @__PURE__ */ i({
5613
+ }), [["__scopeId", "data-v-52d00531"]]), bs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5614
5614
  __name: "KidsCartoonStyle",
5615
5615
  props: {
5616
5616
  block: {},
@@ -5674,7 +5674,7 @@ var Fo = {
5674
5674
  })
5675
5675
  }, M(t.label), 5)], 4))), 128))], 4));
5676
5676
  }
5677
- }), [["__scopeId", "data-v-3e9a85b5"]]), bs = { class: "cd-ind__panel" }, xs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5677
+ }), [["__scopeId", "data-v-3e9a85b5"]]), xs = { class: "cd-ind__panel" }, Ss = /* @__PURE__ */ J(/* @__PURE__ */ i({
5678
5678
  __name: "IndustrialTechStyle",
5679
5679
  props: {
5680
5680
  block: {},
@@ -5718,7 +5718,7 @@ var Fo = {
5718
5718
  n[1] ||= P("div", { class: "cd-ind__rivet cd-ind__rivet--tr" }, null, -1),
5719
5719
  n[2] ||= P("div", { class: "cd-ind__rivet cd-ind__rivet--bl" }, null, -1),
5720
5720
  n[3] ||= P("div", { class: "cd-ind__rivet cd-ind__rivet--br" }, null, -1),
5721
- P("div", bs, [(h(), B("span", {
5721
+ P("div", xs, [(h(), B("span", {
5722
5722
  class: "cd-ind__digit",
5723
5723
  key: t.value,
5724
5724
  style: k({
@@ -5735,104 +5735,104 @@ var Fo = {
5735
5735
  }, M(t.label), 5)
5736
5736
  ], 4))), 128))], 4));
5737
5737
  }
5738
- }), [["__scopeId", "data-v-5803219b"]]), Ss = {
5738
+ }), [["__scopeId", "data-v-5803219b"]]), Cs = {
5739
5739
  class: "cd-ai__data",
5740
5740
  "aria-hidden": "true"
5741
- }, Cs = { class: "cd-ai__inner" }, ws = [
5741
+ }, ws = { class: "cd-ai__inner" }, Ts = [
5742
5742
  {
5743
5743
  id: "minimal",
5744
5744
  label: "Minimal Modern",
5745
- component: No
5745
+ component: Po
5746
5746
  },
5747
5747
  {
5748
5748
  id: "matrix",
5749
5749
  label: "Matrix Cyberpunk",
5750
- component: Lo
5750
+ component: Ro
5751
5751
  },
5752
5752
  {
5753
5753
  id: "flip",
5754
5754
  label: "Flip Clock",
5755
- component: Ko
5755
+ component: qo
5756
5756
  },
5757
5757
  {
5758
5758
  id: "glassmorphism",
5759
5759
  label: "Glassmorphism",
5760
- component: qo
5760
+ component: Jo
5761
5761
  },
5762
5762
  {
5763
5763
  id: "neonGaming",
5764
5764
  label: "Neon Gaming",
5765
- component: Yo
5765
+ component: Xo
5766
5766
  },
5767
5767
  {
5768
5768
  id: "retroLed",
5769
5769
  label: "Retro LED",
5770
- component: Qo
5770
+ component: $o
5771
5771
  },
5772
5772
  {
5773
5773
  id: "scifiHologram",
5774
5774
  label: "Sci-Fi Hologram",
5775
- component: $o
5775
+ component: es
5776
5776
  },
5777
5777
  {
5778
5778
  id: "luxuryGold",
5779
5779
  label: "Luxury Gold",
5780
- component: es
5780
+ component: ts
5781
5781
  },
5782
5782
  {
5783
5783
  id: "floating3d",
5784
5784
  label: "3D Floating",
5785
- component: ns
5785
+ component: rs
5786
5786
  },
5787
5787
  {
5788
5788
  id: "liquidMorph",
5789
5789
  label: "Liquid Morph",
5790
- component: is
5790
+ component: as
5791
5791
  },
5792
5792
  {
5793
5793
  id: "minimalDarkSaas",
5794
5794
  label: "Minimal Dark SaaS",
5795
- component: as
5795
+ component: os
5796
5796
  },
5797
5797
  {
5798
5798
  id: "mechanicalCounter",
5799
5799
  label: "Mechanical Counter",
5800
- component: ss
5800
+ component: cs
5801
5801
  },
5802
5802
  {
5803
5803
  id: "gradientBlob",
5804
5804
  label: "Gradient Blob",
5805
- component: cs
5805
+ component: ls
5806
5806
  },
5807
5807
  {
5808
5808
  id: "terminalCli",
5809
5809
  label: "Terminal CLI",
5810
- component: fs
5810
+ component: ps
5811
5811
  },
5812
5812
  {
5813
5813
  id: "spaceGalaxy",
5814
5814
  label: "Space Galaxy",
5815
- component: ms
5815
+ component: hs
5816
5816
  },
5817
5817
  {
5818
5818
  id: "animeCyberpunk",
5819
5819
  label: "Anime Cyberpunk",
5820
- component: _s
5820
+ component: vs
5821
5821
  },
5822
5822
  {
5823
5823
  id: "luxuryWedding",
5824
5824
  label: "Luxury Wedding",
5825
- component: vs
5825
+ component: ys
5826
5826
  },
5827
5827
  {
5828
5828
  id: "kidsCartoon",
5829
5829
  label: "Kids Cartoon",
5830
- component: ys
5830
+ component: bs
5831
5831
  },
5832
5832
  {
5833
5833
  id: "industrialTech",
5834
5834
  label: "Industrial Tech",
5835
- component: xs
5835
+ component: Ss
5836
5836
  },
5837
5837
  {
5838
5838
  id: "aiFuturistic",
@@ -5854,7 +5854,7 @@ var Fo = {
5854
5854
  flexDirection: n.value.stack ? "column" : "row",
5855
5855
  minHeight: n.value.fullscreen ? "60vh" : void 0,
5856
5856
  "--cd-accent": i.value,
5857
- "--cd-glow": Po(i.value, .5),
5857
+ "--cd-glow": Fo(i.value, .5),
5858
5858
  "--cd-tick": `${r.value}ms`
5859
5859
  })), o = F(() => {
5860
5860
  let e = t.block.digitFontSize * n.value.digitScale;
@@ -5870,7 +5870,7 @@ var Fo = {
5870
5870
  style: k(a.value)
5871
5871
  }, [
5872
5872
  n[1] ||= he("<svg class=\"cd-ai__neural\" viewBox=\"0 0 400 200\" aria-hidden=\"true\" data-v-7a85152b><g stroke=\"var(--cd-accent)\" stroke-width=\"0.5\" opacity=\"0.55\" fill=\"none\" data-v-7a85152b><line x1=\"40\" y1=\"40\" x2=\"200\" y2=\"100\" data-v-7a85152b></line><line x1=\"40\" y1=\"100\" x2=\"200\" y2=\"40\" data-v-7a85152b></line><line x1=\"40\" y1=\"160\" x2=\"200\" y2=\"100\" data-v-7a85152b></line><line x1=\"200\" y1=\"40\" x2=\"360\" y2=\"100\" data-v-7a85152b></line><line x1=\"200\" y1=\"100\" x2=\"360\" y2=\"40\" data-v-7a85152b></line><line x1=\"200\" y1=\"100\" x2=\"360\" y2=\"160\" data-v-7a85152b></line></g><g fill=\"var(--cd-accent)\" data-v-7a85152b><circle cx=\"40\" cy=\"40\" r=\"3\" data-v-7a85152b></circle><circle cx=\"40\" cy=\"100\" r=\"3\" data-v-7a85152b></circle><circle cx=\"40\" cy=\"160\" r=\"3\" data-v-7a85152b></circle><circle cx=\"200\" cy=\"40\" r=\"3\" data-v-7a85152b></circle><circle cx=\"200\" cy=\"100\" r=\"3\" data-v-7a85152b></circle><circle cx=\"360\" cy=\"40\" r=\"3\" data-v-7a85152b></circle><circle cx=\"360\" cy=\"100\" r=\"3\" data-v-7a85152b></circle><circle cx=\"360\" cy=\"160\" r=\"3\" data-v-7a85152b></circle></g></svg>", 1),
5873
- P("div", Ss, [(h(!0), B(j, null, u(D(s), (e) => (h(), B("span", {
5873
+ P("div", Cs, [(h(!0), B(j, null, u(D(s), (e) => (h(), B("span", {
5874
5874
  key: e,
5875
5875
  style: k({ animationDelay: `${e * .5}s` })
5876
5876
  }, null, 4))), 128))]),
@@ -5883,7 +5883,7 @@ var Fo = {
5883
5883
  borderRadius: o.value.radius,
5884
5884
  animationDelay: `${r * 110}ms`
5885
5885
  })
5886
- }, [n[0] ||= P("span", { class: "cd-ai__halo" }, null, -1), P("span", Cs, [(h(), B("span", {
5886
+ }, [n[0] ||= P("span", { class: "cd-ai__halo" }, null, -1), P("span", ws, [(h(), B("span", {
5887
5887
  class: "cd-ai__digit",
5888
5888
  key: t.value,
5889
5889
  style: k({
@@ -5894,7 +5894,7 @@ var Fo = {
5894
5894
  class: "cd-ai__label",
5895
5895
  style: k({
5896
5896
  fontSize: `${e.block.labelFontSize}px`,
5897
- color: e.block.labelColor || D(Po)(i.value, .85)
5897
+ color: e.block.labelColor || D(Fo)(i.value, .85)
5898
5898
  })
5899
5899
  }, M(t.label), 5)])], 4))), 128))
5900
5900
  ], 4));
@@ -5902,26 +5902,26 @@ var Fo = {
5902
5902
  }), [["__scopeId", "data-v-7a85152b"]])
5903
5903
  }
5904
5904
  ].reduce((e, t) => (e[t.id] = t.component, e), {});
5905
- function Ts(e) {
5906
- return ws[e ?? "minimal"] ?? No;
5905
+ function Es(e) {
5906
+ return Ts[e ?? "minimal"] ?? Po;
5907
5907
  }
5908
5908
  //#endregion
5909
5909
  //#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
5910
- var Es = {
5910
+ var Ds = {
5911
5911
  key: 0,
5912
5912
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
5913
- }, Ds = {
5913
+ }, Os = {
5914
5914
  key: 1,
5915
5915
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
5916
- }, Os = "minimal", ks = /* @__PURE__ */ i({
5916
+ }, ks = "minimal", As = /* @__PURE__ */ i({
5917
5917
  __name: "CountdownBlock",
5918
5918
  props: {
5919
5919
  block: {},
5920
5920
  viewport: {}
5921
5921
  },
5922
5922
  setup(e) {
5923
- let t = e, { t: n } = K(), r = jo(w(t, "block")), i = F(() => Ts("minimal")), a = F(() => t.block.separator);
5924
- return (t, o) => e.block.targetDate ? D(r).isExpired.value && e.block.hideOnExpiry ? (h(), B("div", Ds, M(D(n).countdown.hidden), 1)) : D(r).isExpired.value ? (h(), B("div", {
5923
+ let t = e, { t: n } = K(), r = Mo(w(t, "block")), i = F(() => Es("minimal")), a = F(() => t.block.separator);
5924
+ return (t, o) => e.block.targetDate ? D(r).isExpired.value && e.block.hideOnExpiry ? (h(), B("div", Os, M(D(n).countdown.hidden), 1)) : D(r).isExpired.value ? (h(), B("div", {
5925
5925
  key: 2,
5926
5926
  style: k({
5927
5927
  backgroundColor: e.block.backgroundColor,
@@ -5937,28 +5937,28 @@ var Es = {
5937
5937
  viewport: e.viewport,
5938
5938
  segments: D(r).segments.value,
5939
5939
  separator: a.value,
5940
- "data-cd-theme": Os
5940
+ "data-cd-theme": ks
5941
5941
  }, null, 8, [
5942
5942
  "block",
5943
5943
  "viewport",
5944
5944
  "segments",
5945
5945
  "separator"
5946
- ])) : (h(), B("div", Es, M(D(n).countdown.setDate), 1));
5946
+ ])) : (h(), B("div", Ds, M(D(n).countdown.setDate), 1));
5947
5947
  }
5948
- }), As = /* @__PURE__ */ t({ default: () => js }), js = ks, Ms = ["id"], Ns = {
5948
+ }), js = /* @__PURE__ */ t({ default: () => Ms }), Ms = As, Ns = ["id"], Ps = {
5949
5949
  key: 0,
5950
5950
  class: "tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-6 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
5951
- }, Ps = ["for"], Fs = {
5951
+ }, Fs = ["for"], Is = {
5952
5952
  key: 0,
5953
5953
  class: "tpl:ml-1 tpl:text-[var(--tpl-danger)]"
5954
- }, Is = [
5954
+ }, Ls = [
5955
5955
  "id",
5956
5956
  "type",
5957
5957
  "name",
5958
5958
  "placeholder",
5959
5959
  "aria-label",
5960
5960
  "required"
5961
- ], Ls = ["innerHTML"], Rs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5961
+ ], Rs = ["innerHTML"], zs = /* @__PURE__ */ J(/* @__PURE__ */ i({
5962
5962
  __name: "FormBlock",
5963
5963
  props: {
5964
5964
  block: {},
@@ -6021,7 +6021,7 @@ var Es = {
6021
6021
  id: f.value,
6022
6022
  class: "tpl-form-root tpl:w-full"
6023
6023
  }, [
6024
- e.block.fields.length === 0 ? (h(), B("div", Ns, " Add a field from the Fields tab to begin. ")) : (h(), B("div", {
6024
+ e.block.fields.length === 0 ? (h(), B("div", Ps, " Add a field from the Fields tab to begin. ")) : (h(), B("div", {
6025
6025
  key: 1,
6026
6026
  class: "tpl-form-stack",
6027
6027
  style: k({
@@ -6037,7 +6037,7 @@ var Es = {
6037
6037
  for: `${e.id}-input`,
6038
6038
  class: "tpl-form-label tpl:block tpl:leading-snug",
6039
6039
  style: k(o.value)
6040
- }, [T(M(e.label.trim()), 1), e.required ? (h(), B("span", Fs, "*")) : C("", !0)], 12, Ps)) : C("", !0), P("input", {
6040
+ }, [T(M(e.label.trim()), 1), e.required ? (h(), B("span", Is, "*")) : C("", !0)], 12, Fs)) : C("", !0), P("input", {
6041
6041
  id: `${e.id}-input`,
6042
6042
  class: "tpl-form-input",
6043
6043
  type: a(e),
@@ -6049,7 +6049,7 @@ var Es = {
6049
6049
  readonly: "",
6050
6050
  tabindex: "-1",
6051
6051
  style: k(s.value)
6052
- }, null, 12, Is)]))), 128))], 4)),
6052
+ }, null, 12, Ls)]))), 128))], 4)),
6053
6053
  P("div", { style: k(p.value) }, [P("button", {
6054
6054
  type: "button",
6055
6055
  style: k(l.value),
@@ -6059,10 +6059,10 @@ var Es = {
6059
6059
  key: 2,
6060
6060
  class: "tpl:mt-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:leading-snug",
6061
6061
  innerHTML: e.block.termsContent
6062
- }, null, 8, Ls)) : C("", !0)
6063
- ], 8, Ms));
6062
+ }, null, 8, Rs)) : C("", !0)
6063
+ ], 8, Ns));
6064
6064
  }
6065
- }), [["__scopeId", "data-v-f976dfea"]]), zs = {
6065
+ }), [["__scopeId", "data-v-f976dfea"]]), Bs = {
6066
6066
  facebook: {
6067
6067
  name: "Facebook",
6068
6068
  color: "#1877F2",
@@ -6143,11 +6143,11 @@ var Es = {
6143
6143
  color: "#1769FF",
6144
6144
  path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
6145
6145
  }
6146
- }, Bs = {
6146
+ }, Vs = {
6147
6147
  small: 24,
6148
6148
  medium: 32,
6149
6149
  large: 48
6150
- }, Vs = [
6150
+ }, Hs = [
6151
6151
  "facebook",
6152
6152
  "twitter",
6153
6153
  "instagram",
@@ -6164,11 +6164,11 @@ var Es = {
6164
6164
  "github",
6165
6165
  "dribbble",
6166
6166
  "behance"
6167
- ], Hs = [
6167
+ ], Us = [
6168
6168
  "width",
6169
6169
  "height",
6170
6170
  "fill"
6171
- ], Us = ["d"], Ws = /* @__PURE__ */ i({
6171
+ ], Ws = ["d"], Gs = /* @__PURE__ */ i({
6172
6172
  __name: "SocialIconSvg",
6173
6173
  props: {
6174
6174
  platform: {},
@@ -6176,7 +6176,7 @@ var Es = {
6176
6176
  iconSize: {}
6177
6177
  },
6178
6178
  setup(e) {
6179
- let t = e, n = F(() => zs[t.platform]), r = F(() => Bs[t.iconSize]), i = F(() => {
6179
+ let t = e, n = F(() => Bs[t.platform]), r = F(() => Vs[t.iconSize]), i = F(() => {
6180
6180
  let e = {
6181
6181
  display: "inline-flex",
6182
6182
  alignItems: "center",
@@ -6220,12 +6220,12 @@ var Es = {
6220
6220
  viewBox: "0 0 24 24",
6221
6221
  fill: o.value,
6222
6222
  xmlns: "http://www.w3.org/2000/svg"
6223
- }, [P("path", { d: n.value.path }, null, 8, Us)], 8, Hs))], 4));
6223
+ }, [P("path", { d: n.value.path }, null, 8, Ws)], 8, Us))], 4));
6224
6224
  }
6225
- }), Gs = { class: "tpl:w-full" }, Ks = ["href"], qs = {
6225
+ }), Ks = { class: "tpl:w-full" }, qs = ["href"], Js = {
6226
6226
  key: 1,
6227
6227
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
6228
- }, Js = /* @__PURE__ */ i({
6228
+ }, Ys = /* @__PURE__ */ i({
6229
6229
  __name: "SocialIconsBlock",
6230
6230
  props: {
6231
6231
  block: {},
@@ -6238,7 +6238,7 @@ var Es = {
6238
6238
  gap: `${t.block.spacing}px`,
6239
6239
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
6240
6240
  })), i = F(() => t.block.icons.length > 0);
6241
- return (t, a) => (h(), B("div", Gs, [i.value ? (h(), B("div", {
6241
+ return (t, a) => (h(), B("div", Ks, [i.value ? (h(), B("div", {
6242
6242
  key: 0,
6243
6243
  style: k(r.value)
6244
6244
  }, [(h(!0), B(j, null, u(e.block.icons, (t) => (h(), B("a", {
@@ -6246,7 +6246,7 @@ var Es = {
6246
6246
  href: t.url || "#",
6247
6247
  class: "tpl:cursor-default",
6248
6248
  onClick: a[0] ||= O(() => {}, ["prevent"])
6249
- }, [V(Ws, {
6249
+ }, [V(Gs, {
6250
6250
  platform: t.platform,
6251
6251
  "icon-style": e.block.iconStyle,
6252
6252
  "icon-size": e.block.iconSize
@@ -6254,44 +6254,44 @@ var Es = {
6254
6254
  "platform",
6255
6255
  "icon-style",
6256
6256
  "icon-size"
6257
- ])], 8, Ks))), 128))], 4)) : (h(), B("div", qs, [V(D(Vi), { size: 16 }), P("span", null, M(D(n).social.addIcons), 1)]))]));
6257
+ ])], 8, qs))), 128))], 4)) : (h(), B("div", Js, [V(D(Hi), { size: 16 }), P("span", null, M(D(n).social.addIcons), 1)]))]));
6258
6258
  }
6259
- }), Ys = { class: "tpl:w-full" }, Xs = {
6259
+ }), Xs = { class: "tpl:w-full" }, Zs = {
6260
6260
  key: 0,
6261
6261
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
6262
6262
  style: {
6263
6263
  "background-color": "var(--tpl-bg-hover)",
6264
6264
  color: "var(--tpl-text-dim)"
6265
6265
  }
6266
- }, Zs = /* @__PURE__ */ i({
6266
+ }, Qs = /* @__PURE__ */ i({
6267
6267
  __name: "SpacerBlock",
6268
6268
  props: {
6269
6269
  block: {},
6270
6270
  viewport: {}
6271
6271
  },
6272
6272
  setup(e) {
6273
- let t = e, n = Rr(ur, "SpacerBlock"), r = F(() => ({
6273
+ let t = e, n = zr(ur, "SpacerBlock"), r = F(() => ({
6274
6274
  height: `${t.block.height}px`,
6275
6275
  minHeight: `${t.block.height}px`,
6276
6276
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
6277
6277
  }));
6278
- return (t, i) => (h(), B("div", Ys, [P("div", {
6278
+ return (t, i) => (h(), B("div", Xs, [P("div", {
6279
6279
  style: k(r.value),
6280
6280
  class: z(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !D(n).state.previewMode }])
6281
- }, [D(n).state.previewMode ? C("", !0) : (h(), B("span", Xs, M(e.block.height) + "px ", 1))], 6)]));
6281
+ }, [D(n).state.previewMode ? C("", !0) : (h(), B("span", Zs, M(e.block.height) + "px ", 1))], 6)]));
6282
6282
  }
6283
- }), Qs = { class: "tpl:w-full" }, $s = { key: 0 }, ec = [
6283
+ }), $s = { class: "tpl:w-full" }, ec = { key: 0 }, tc = [
6284
6284
  "aria-label",
6285
6285
  "data-placeholder",
6286
6286
  "onBlur"
6287
- ], tc = [
6287
+ ], nc = [
6288
6288
  "aria-label",
6289
6289
  "data-placeholder",
6290
6290
  "onBlur"
6291
- ], nc = {
6291
+ ], rc = {
6292
6292
  key: 1,
6293
6293
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
6294
- }, rc = /* @__PURE__ */ J(/* @__PURE__ */ i({
6294
+ }, ic = /* @__PURE__ */ J(/* @__PURE__ */ i({
6295
6295
  __name: "TableBlock",
6296
6296
  props: {
6297
6297
  block: {},
@@ -6305,7 +6305,7 @@ var Es = {
6305
6305
  updated(e, t) {
6306
6306
  t.value !== t.oldValue && e.ownerDocument.activeElement !== e && (e.textContent = t.value ?? "");
6307
6307
  }
6308
- }, n = e, { t: r } = K(), i = Rr(ur, "TableBlock"), a = F(() => n.block.rows.length > 0), o = F(() => ({
6308
+ }, n = e, { t: r } = K(), i = zr(ur, "TableBlock"), a = F(() => n.block.rows.length > 0), o = F(() => ({
6309
6309
  width: "100%",
6310
6310
  borderCollapse: "collapse",
6311
6311
  fontSize: `${n.block.fontSize}px`,
@@ -6334,11 +6334,11 @@ var Es = {
6334
6334
  } : n);
6335
6335
  i.updateBlock(n.block.id, { rows: o });
6336
6336
  }
6337
- return (e, n) => (h(), B("div", Qs, [a.value ? (h(), B("table", {
6337
+ return (e, n) => (h(), B("div", $s, [a.value ? (h(), B("table", {
6338
6338
  key: 0,
6339
6339
  style: k(o.value),
6340
6340
  class: "tpl-table-editable"
6341
- }, [d.value ? (h(), B("thead", $s, [P("tr", null, [(h(!0), B(j, null, u(d.value.cells, (e) => c((h(), B("th", {
6341
+ }, [d.value ? (h(), B("thead", ec, [P("tr", null, [(h(!0), B(j, null, u(d.value.cells, (e) => c((h(), B("th", {
6342
6342
  key: e.id,
6343
6343
  style: k(l.value),
6344
6344
  "aria-label": D(r).table.cellPlaceholder,
@@ -6347,7 +6347,7 @@ var Es = {
6347
6347
  onBlur: (t) => m(d.value.id, e.id, t),
6348
6348
  onKeydown: n[0] ||= pe(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
6349
6349
  onClick: O(p, ["stop"])
6350
- }, null, 44, ec)), [[t, e.content]])), 128))])])) : C("", !0), P("tbody", null, [(h(!0), B(j, null, u(f.value, (e) => (h(), B("tr", { key: e.id }, [(h(!0), B(j, null, u(e.cells, (i) => c((h(), B("td", {
6350
+ }, null, 44, tc)), [[t, e.content]])), 128))])])) : C("", !0), P("tbody", null, [(h(!0), B(j, null, u(f.value, (e) => (h(), B("tr", { key: e.id }, [(h(!0), B(j, null, u(e.cells, (i) => c((h(), B("td", {
6351
6351
  key: i.id,
6352
6352
  style: k(s.value),
6353
6353
  "aria-label": D(r).table.cellPlaceholder,
@@ -6356,16 +6356,16 @@ var Es = {
6356
6356
  onBlur: (t) => m(e.id, i.id, t),
6357
6357
  onKeydown: n[1] ||= pe(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
6358
6358
  onClick: O(p, ["stop"])
6359
- }, null, 44, tc)), [[t, i.content]])), 128))]))), 128))])], 4)) : (h(), B("div", nc, [V(D(Gi), { size: 16 }), P("span", null, M(D(r).table.empty), 1)]))]));
6359
+ }, null, 44, nc)), [[t, i.content]])), 128))]))), 128))])], 4)) : (h(), B("div", rc, [V(D(Ki), { size: 16 }), P("span", null, M(D(r).table.empty), 1)]))]));
6360
6360
  }
6361
- }), [["__scopeId", "data-v-f738b724"]]), ic = ["innerHTML"], ac = /* @__PURE__ */ i({
6361
+ }), [["__scopeId", "data-v-f738b724"]]), ac = ["innerHTML"], oc = /* @__PURE__ */ i({
6362
6362
  __name: "TitleBlock",
6363
6363
  props: {
6364
6364
  block: {},
6365
6365
  viewport: {}
6366
6366
  },
6367
6367
  setup(e) {
6368
- let t = e, n = _(() => import("./TitleEditor-BTtgZzci.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = fo(() => t.block.content), l = F(() => {
6368
+ let t = e, n = _(() => import("./TitleEditor-CE8r8txX.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = po(() => t.block.content), l = F(() => {
6369
6369
  let e = {
6370
6370
  fontSize: `${be[t.block.level]}px`,
6371
6371
  color: t.block.color,
@@ -6392,9 +6392,9 @@ var Es = {
6392
6392
  key: 1,
6393
6393
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
6394
6394
  innerHTML: D(o)
6395
- }, null, 8, ic))], 36));
6395
+ }, null, 8, ac))], 36));
6396
6396
  }
6397
- }), oc = /* @__PURE__ */ i({
6397
+ }), sc = /* @__PURE__ */ i({
6398
6398
  __name: "VideoPlayButton",
6399
6399
  props: { hoverEffect: {
6400
6400
  type: Boolean,
@@ -6412,7 +6412,7 @@ var Es = {
6412
6412
  });
6413
6413
  //#endregion
6414
6414
  //#region src/utils/videoThumbnail.ts
6415
- function sc(e) {
6415
+ function cc(e) {
6416
6416
  if (!e) return {
6417
6417
  platform: "unknown",
6418
6418
  videoId: null,
@@ -6444,25 +6444,25 @@ function sc(e) {
6444
6444
  thumbnailUrl: null
6445
6445
  };
6446
6446
  }
6447
- function cc(e, t) {
6448
- return t || sc(e).thumbnailUrl;
6447
+ function lc(e, t) {
6448
+ return t || cc(e).thumbnailUrl;
6449
6449
  }
6450
6450
  //#endregion
6451
6451
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
6452
- var lc = ["src", "alt"], uc = {
6452
+ var uc = ["src", "alt"], dc = {
6453
6453
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
6454
6454
  style: { opacity: "0.7" }
6455
- }, dc = ["href"], fc = ["src", "alt"], pc = ["src", "alt"], mc = {
6455
+ }, fc = ["href"], pc = ["src", "alt"], mc = ["src", "alt"], hc = {
6456
6456
  key: 3,
6457
6457
  class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
6458
- }, hc = /* @__PURE__ */ i({
6458
+ }, gc = /* @__PURE__ */ i({
6459
6459
  __name: "VideoBlock",
6460
6460
  props: {
6461
6461
  block: {},
6462
6462
  viewport: {}
6463
6463
  },
6464
6464
  setup(e) {
6465
- let t = e, { t: n } = K(), { syntax: r } = da(), i = F(() => Wt(t.block.url, r) || Wt(t.block.thumbnailUrl, r)), a = F(() => i.value ? null : cc(t.block.url, t.block.thumbnailUrl)), o = F(() => ({ textAlign: t.block.align })), s = F(() => ({
6465
+ let t = e, { t: n } = K(), { syntax: r } = fa(), i = F(() => Wt(t.block.url, r) || Wt(t.block.thumbnailUrl, r)), a = F(() => i.value ? null : lc(t.block.url, t.block.thumbnailUrl)), o = F(() => ({ textAlign: t.block.align })), s = F(() => ({
6466
6466
  maxWidth: "100%",
6467
6467
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
6468
6468
  display: "block",
@@ -6480,16 +6480,16 @@ var lc = ["src", "alt"], uc = {
6480
6480
  class: "tpl:w-full tpl:border-0",
6481
6481
  src: e.block.placeholderUrl,
6482
6482
  alt: e.block.alt
6483
- }, null, 8, lc), V(oc)], 4)) : i.value ? (h(), B("div", {
6483
+ }, null, 8, uc), V(sc)], 4)) : i.value ? (h(), B("div", {
6484
6484
  key: 1,
6485
6485
  class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
6486
6486
  style: k([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, s.value])
6487
- }, [V(D(Xi), {
6487
+ }, [V(D(Zi), {
6488
6488
  size: 36,
6489
6489
  "stroke-width": 1.5,
6490
6490
  class: "tpl:text-[var(--tpl-primary)]",
6491
6491
  style: { opacity: "0.5" }
6492
- }), P("span", uc, M(c.value), 1)], 4)) : a.value ? (h(), B(j, { key: 2 }, [e.block.url ? (h(), B("a", {
6492
+ }), P("span", dc, M(c.value), 1)], 4)) : a.value ? (h(), B(j, { key: 2 }, [e.block.url ? (h(), B("a", {
6493
6493
  key: 0,
6494
6494
  href: e.block.url,
6495
6495
  target: "_blank",
@@ -6501,7 +6501,7 @@ var lc = ["src", "alt"], uc = {
6501
6501
  class: "tpl:w-full tpl:border-0",
6502
6502
  src: a.value,
6503
6503
  alt: e.block.alt
6504
- }, null, 8, fc), V(oc, { "hover-effect": "" })], 12, dc)) : (h(), B("div", {
6504
+ }, null, 8, pc), V(sc, { "hover-effect": "" })], 12, fc)) : (h(), B("div", {
6505
6505
  key: 1,
6506
6506
  class: "tpl:relative tpl:inline-block",
6507
6507
  style: k(s.value)
@@ -6509,17 +6509,17 @@ var lc = ["src", "alt"], uc = {
6509
6509
  class: "tpl:w-full tpl:border-0",
6510
6510
  src: a.value,
6511
6511
  alt: e.block.alt
6512
- }, null, 8, pc), V(oc)], 4))], 64)) : (h(), B("div", mc, [V(D(Xi), {
6512
+ }, null, 8, mc), V(sc)], 4))], 64)) : (h(), B("div", hc, [V(D(Zi), {
6513
6513
  size: 40,
6514
6514
  "stroke-width": 1.5,
6515
6515
  class: "tpl:text-[var(--tpl-border-light)]"
6516
6516
  }), P("span", null, M(D(n).video.addVideo), 1)]))], 4));
6517
6517
  }
6518
- }), gc = /* @__PURE__ */ e(fe(), 1), _c = { class: "tpl:w-full" }, vc = { class: "tpl:flex tpl:gap-0" }, yc = {
6518
+ }), _c = /* @__PURE__ */ e(fe(), 1), vc = { class: "tpl:w-full" }, yc = { class: "tpl:flex tpl:gap-0" }, bc = {
6519
6519
  key: 0,
6520
6520
  "data-testid": "section-drop-hint",
6521
6521
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
6522
- }, bc = /* @__PURE__ */ i({
6522
+ }, xc = /* @__PURE__ */ i({
6523
6523
  __name: "SectionBlock",
6524
6524
  props: {
6525
6525
  block: {},
@@ -6527,23 +6527,23 @@ var lc = ["src", "alt"], uc = {
6527
6527
  },
6528
6528
  setup(e) {
6529
6529
  let t = {
6530
- title: ac,
6531
- paragraph: mo,
6532
- image: no,
6533
- button: ti,
6534
- input: oo,
6535
- divider: Ba,
6536
- spacer: Zs,
6537
- html: Ga,
6538
- social: Js,
6539
- menu: uo,
6540
- table: rc,
6541
- video: hc,
6542
- countdown: js,
6543
- form: Rs,
6544
- discountCoupon: Ra,
6545
- custom: Oa
6546
- }, n = e, { t: r } = K(), i = Rr(ur, "SectionBlock"), o = a(hr, null), s = a(br, null), l = F(() => {
6530
+ title: oc,
6531
+ paragraph: ho,
6532
+ image: ro,
6533
+ button: ni,
6534
+ input: so,
6535
+ divider: Va,
6536
+ spacer: Qs,
6537
+ html: Ka,
6538
+ social: Ys,
6539
+ menu: fo,
6540
+ table: ic,
6541
+ video: gc,
6542
+ countdown: Ms,
6543
+ form: zs,
6544
+ discountCoupon: za,
6545
+ custom: ka
6546
+ }, n = e, { t: r } = K(), i = zr(ur, "SectionBlock"), o = a(gr, null), s = a(xr, null), l = F(() => {
6547
6547
  switch (n.block.columns) {
6548
6548
  case "2": return ["50%", "50%"];
6549
6549
  case "3": return [
@@ -6569,7 +6569,7 @@ var lc = ["src", "alt"], uc = {
6569
6569
  r[e] = t, i.updateBlock(n.block.id, { children: r });
6570
6570
  }
6571
6571
  function m(e) {
6572
- return ho(e, s, t);
6572
+ return go(e, s, t);
6573
6573
  }
6574
6574
  function g(e, t) {
6575
6575
  e.type === "custom" && i.updateBlock(e.id, {
@@ -6577,11 +6577,11 @@ var lc = ["src", "alt"], uc = {
6577
6577
  dataSourceFetched: t.dataSourceFetched
6578
6578
  });
6579
6579
  }
6580
- return (t, n) => (h(), B("div", _c, [P("div", vc, [(h(!0), B(j, null, u(d.value, (t, n) => (h(), B("div", {
6580
+ return (t, n) => (h(), B("div", vc, [P("div", yc, [(h(!0), B(j, null, u(d.value, (t, n) => (h(), B("div", {
6581
6581
  key: n,
6582
6582
  class: z(["tpl:relative tpl:min-h-[60px] tpl:rounded", f(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
6583
6583
  style: k({ width: l.value[n] })
6584
- }, [V(D(gc.default), {
6584
+ }, [V(D(_c.default), {
6585
6585
  "model-value": f(n),
6586
6586
  group: {
6587
6587
  name: "blocks",
@@ -6595,7 +6595,7 @@ var lc = ["src", "alt"], uc = {
6595
6595
  class: "tpl:min-h-[60px]",
6596
6596
  "onUpdate:modelValue": (e) => p(n, e)
6597
6597
  }, {
6598
- item: b(({ element: t }) => [c(P("div", null, [V(ko, {
6598
+ item: b(({ element: t }) => [c(P("div", null, [V(Ao, {
6599
6599
  block: t,
6600
6600
  "is-selected": D(i).state.selectedBlockId === t.id,
6601
6601
  viewport: e.viewport,
@@ -6624,29 +6624,29 @@ var lc = ["src", "alt"], uc = {
6624
6624
  "model-value",
6625
6625
  "group",
6626
6626
  "onUpdate:modelValue"
6627
- ]), f(n).length === 0 ? (h(), B("div", yc, [P("span", null, M(D(r).section.dropHere), 1)])) : C("", !0)], 6))), 128))])]));
6628
- }
6629
- }), xc = {
6630
- section: bc,
6631
- title: ac,
6632
- paragraph: mo,
6633
- image: no,
6634
- button: ti,
6635
- input: oo,
6636
- divider: Ba,
6637
- video: hc,
6638
- social: Js,
6639
- menu: uo,
6640
- table: rc,
6641
- spacer: Zs,
6642
- html: Ga,
6643
- countdown: _(() => Promise.resolve().then(() => As)),
6644
- discountCoupon: Ra
6627
+ ]), f(n).length === 0 ? (h(), B("div", bc, [P("span", null, M(D(r).section.dropHere), 1)])) : C("", !0)], 6))), 128))])]));
6628
+ }
6629
+ }), Sc = {
6630
+ section: xc,
6631
+ title: oc,
6632
+ paragraph: ho,
6633
+ image: ro,
6634
+ button: ni,
6635
+ input: so,
6636
+ divider: Va,
6637
+ video: gc,
6638
+ social: Ys,
6639
+ menu: fo,
6640
+ table: ic,
6641
+ spacer: Qs,
6642
+ html: Ka,
6643
+ countdown: _(() => Promise.resolve().then(() => js)),
6644
+ discountCoupon: za
6645
6645
  };
6646
- function Sc(e) {
6646
+ function Cc(e) {
6647
6647
  let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = K(r);
6648
6648
  t.setUiTheme(n.uiTheme ?? "auto");
6649
- let { resolvedTheme: c } = Hr(F(() => t.state.uiTheme)), u = R(n.theme ?? {}), { themeStyles: d } = Wr({
6649
+ let { resolvedTheme: c } = Ur(F(() => t.state.uiTheme)), u = R(n.theme ?? {}), { themeStyles: d } = Gr({
6650
6650
  themeOverrides: u,
6651
6651
  resolvedTheme: c,
6652
6652
  extraStyles: e.themeExtraStyles
@@ -6670,16 +6670,16 @@ function Sc(e) {
6670
6670
  h && (g = l(f.isNavigating, (e) => {
6671
6671
  e ? h.pause() : h.resume();
6672
6672
  }));
6673
- let _ = Vr(t, {
6673
+ let _ = Hr(t, {
6674
6674
  t: a,
6675
6675
  format: o
6676
- }), v = Jr();
6677
- if (Xr(v, xc), n.customBlocks?.length) for (let e of n.customBlocks) v.registerCustom(e, Oa);
6676
+ }), v = Yr();
6677
+ if (Zr(v, Sc), n.customBlocks?.length) for (let e of n.customBlocks) v.registerCustom(e, ka);
6678
6678
  function y(e) {
6679
- for (let t of e) v.registerCustom(t, Oa);
6679
+ for (let t of e) v.registerCustom(t, ka);
6680
6680
  }
6681
6681
  function b(r) {
6682
- Qr(r, {
6682
+ $r(r, {
6683
6683
  history: f,
6684
6684
  selectBlock: (e) => t.selectBlock(e),
6685
6685
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -6688,16 +6688,16 @@ function Sc(e) {
6688
6688
  onBeforeUndo: e.keyboardOptions?.onBeforeUndo
6689
6689
  });
6690
6690
  }
6691
- G(document, "keydown", b), s(lr, r), s(ur, t), s(dr, cr(n.editorType)), s(pr, f), s(mr, p), s(hr, m), s(gr, i), s(_r, d), s(vr, c), s(yr, n.blockDefaults), s(br, v), s(xr, n.customBlocks ?? []);
6691
+ G(document, "keydown", b), s(lr, r), s(ur, t), s(dr, cr(n.editorType)), s(mr, f), s(hr, p), s(gr, m), s(_r, i), s(vr, d), s(yr, c), s(br, n.blockDefaults), s(xr, v), s(Sr, n.customBlocks ?? []);
6692
6692
  let x = zt(n.mergeTags?.syntax);
6693
- s(Sr, n.mergeTags?.tags ?? []), s(Cr, x), s(wr, n.mergeTags?.onRequest ?? null), s(Tr, n.mergeTags?.autocomplete !== !1), s(Er, n.onRequestMedia ?? null), s(Dr, n.displayConditions?.conditions ?? []), s(Or, n.displayConditions?.allowCustom ?? !1), s(kr, e.capabilities ?? {}), s(Ar, _);
6694
- let S = n.accessibility?.disabled === !0 ? null : zr({
6693
+ s(Cr, n.mergeTags?.tags ?? []), s(wr, x), s(Tr, n.mergeTags?.onRequest ?? null), s(Er, n.mergeTags?.autocomplete !== !1), s(Dr, n.onRequestMedia ?? null), s(Or, n.displayConditions?.conditions ?? []), s(kr, n.displayConditions?.allowCustom ?? !1), s(Ar, e.capabilities ?? {}), s(jr, _);
6694
+ let S = n.accessibility?.disabled === !0 ? null : Br({
6695
6695
  content: t.content,
6696
6696
  options: n.accessibility ?? {},
6697
6697
  updateBlock: t.updateBlock,
6698
6698
  updateSettings: t.updateSettings
6699
6699
  });
6700
- s(jr, S);
6700
+ s(Mr, S);
6701
6701
  function C() {
6702
6702
  g?.(), S?.destroy(), h?.destroy(), f.destroy();
6703
6703
  }
@@ -6720,7 +6720,7 @@ function Sc(e) {
6720
6720
  }
6721
6721
  //#endregion
6722
6722
  //#region ../core/src/cloud/auth.ts
6723
- var Cc = class e {
6723
+ var wc = class e {
6724
6724
  static DEFAULT_BASE_URL = "https://templatical.com";
6725
6725
  accessToken = null;
6726
6726
  expiresAt = null;
@@ -6821,8 +6821,8 @@ var Cc = class e {
6821
6821
  return a.status === 401 && (a = await i(await this.refreshToken())), a;
6822
6822
  }
6823
6823
  };
6824
- function wc(e, t) {
6825
- return e.mode === "direct" ? new Cc({
6824
+ function Tc(e, t) {
6825
+ return e.mode === "direct" ? new wc({
6826
6826
  url: `${(e.baseUrl ?? "https://templatical.com").replace(/\/$/, "")}/api/v1/auth/token`,
6827
6827
  baseUrl: e.baseUrl,
6828
6828
  requestOptions: {
@@ -6836,7 +6836,7 @@ function wc(e, t) {
6836
6836
  }
6837
6837
  },
6838
6838
  onError: t
6839
- }) : new Cc({
6839
+ }) : new wc({
6840
6840
  url: e.url,
6841
6841
  baseUrl: e.baseUrl,
6842
6842
  requestOptions: e.requestOptions,
@@ -6848,16 +6848,16 @@ function wc(e, t) {
6848
6848
  function Z(e, t) {
6849
6849
  return e.replace(/\{(\w+)\}/g, (e, n) => encodeURIComponent(t[n] ?? ""));
6850
6850
  }
6851
- var Tc = "/api/v1/projects/{project}/tenants/{tenant}", Q = `${Tc}/templates/{template}`, Ec = `${Q}/ai`, Dc = `${Tc}/media`, Oc = `${Dc}/folders`, kc = `${Tc}/saved-modules`, $ = {
6851
+ var Ec = "/api/v1/projects/{project}/tenants/{tenant}", Q = `${Ec}/templates/{template}`, Dc = `${Q}/ai`, Oc = `${Ec}/media`, kc = `${Oc}/folders`, Ac = `${Ec}/saved-modules`, $ = {
6852
6852
  health: "/api/v1/health",
6853
- "projects.config": `${Tc}/config`,
6854
- "broadcasting.auth": `${Tc}/broadcasting/auth`,
6855
- "templates.store": `${Tc}/templates`,
6853
+ "projects.config": `${Ec}/config`,
6854
+ "broadcasting.auth": `${Ec}/broadcasting/auth`,
6855
+ "templates.store": `${Ec}/templates`,
6856
6856
  "templates.show": `${Q}`,
6857
6857
  "templates.update": `${Q}`,
6858
6858
  "templates.destroy": `${Q}`,
6859
6859
  "templates.export": `${Q}/export`,
6860
- "templates.importFromBeefree": `${Tc}/templates/import/from-beefree`,
6860
+ "templates.importFromBeefree": `${Ec}/templates/import/from-beefree`,
6861
6861
  "templates.sendTestEmail": `${Q}/send-test-email`,
6862
6862
  "snapshots.index": `${Q}/snapshots`,
6863
6863
  "snapshots.store": `${Q}/snapshots`,
@@ -6868,31 +6868,31 @@ var Tc = "/api/v1/projects/{project}/tenants/{tenant}", Q = `${Tc}/templates/{te
6868
6868
  "comments.update": `${Q}/comments/{comment}`,
6869
6869
  "comments.destroy": `${Q}/comments/{comment}`,
6870
6870
  "comments.resolve": `${Q}/comments/{comment}/resolve`,
6871
- "ai.generate": `${Ec}/generate`,
6872
- "ai.conversationMessages": `${Ec}/conversation-messages`,
6873
- "ai.suggestions": `${Ec}/suggestions`,
6874
- "ai.rewriteText": `${Ec}/rewrite-text`,
6875
- "ai.score": `${Ec}/score`,
6876
- "ai.fixFinding": `${Ec}/fix-finding`,
6877
- "ai.generateFromDesign": `${Ec}/generate-from-design`,
6878
- "media.upload": `${Dc}/upload`,
6879
- "media.browse": `${Dc}/browse`,
6880
- "media.delete": `${Dc}/delete`,
6881
- "media.move": `${Dc}/move`,
6882
- "media.update": `${Dc}/{media}`,
6883
- "media.replace": `${Dc}/{media}/replace`,
6884
- "media.checkUsage": `${Dc}/check-usage`,
6885
- "media.frequentlyUsed": `${Dc}/frequently-used`,
6886
- "media.importFromUrl": `${Dc}/import-from-url`,
6887
- "folders.index": `${Oc}`,
6888
- "folders.store": `${Oc}`,
6889
- "folders.update": `${Oc}/{mediaFolder}`,
6890
- "folders.destroy": `${Oc}/{mediaFolder}`,
6891
- "savedModules.index": `${kc}`,
6892
- "savedModules.store": `${kc}`,
6893
- "savedModules.update": `${kc}/{savedModule}`,
6894
- "savedModules.destroy": `${kc}/{savedModule}`
6895
- }, Ac = class {
6871
+ "ai.generate": `${Dc}/generate`,
6872
+ "ai.conversationMessages": `${Dc}/conversation-messages`,
6873
+ "ai.suggestions": `${Dc}/suggestions`,
6874
+ "ai.rewriteText": `${Dc}/rewrite-text`,
6875
+ "ai.score": `${Dc}/score`,
6876
+ "ai.fixFinding": `${Dc}/fix-finding`,
6877
+ "ai.generateFromDesign": `${Dc}/generate-from-design`,
6878
+ "media.upload": `${Oc}/upload`,
6879
+ "media.browse": `${Oc}/browse`,
6880
+ "media.delete": `${Oc}/delete`,
6881
+ "media.move": `${Oc}/move`,
6882
+ "media.update": `${Oc}/{media}`,
6883
+ "media.replace": `${Oc}/{media}/replace`,
6884
+ "media.checkUsage": `${Oc}/check-usage`,
6885
+ "media.frequentlyUsed": `${Oc}/frequently-used`,
6886
+ "media.importFromUrl": `${Oc}/import-from-url`,
6887
+ "folders.index": `${kc}`,
6888
+ "folders.store": `${kc}`,
6889
+ "folders.update": `${kc}/{mediaFolder}`,
6890
+ "folders.destroy": `${kc}/{mediaFolder}`,
6891
+ "savedModules.index": `${Ac}`,
6892
+ "savedModules.store": `${Ac}`,
6893
+ "savedModules.update": `${Ac}/{savedModule}`,
6894
+ "savedModules.destroy": `${Ac}/{savedModule}`
6895
+ }, jc = class {
6896
6896
  constructor(e) {
6897
6897
  this.authManager = e;
6898
6898
  }
@@ -7077,14 +7077,14 @@ var Tc = "/api/v1/projects/{project}/tenants/{tenant}", Q = `${Tc}/templates/{te
7077
7077
  };
7078
7078
  //#endregion
7079
7079
  //#region ../core/src/cloud/websocket-client.ts
7080
- function jc(e) {
7080
+ function Mc(e) {
7081
7081
  return {
7082
7082
  host: e.host,
7083
7083
  port: e.port,
7084
7084
  appKey: e.app_key
7085
7085
  };
7086
7086
  }
7087
- var Mc = class {
7087
+ var Nc = class {
7088
7088
  pusher = null;
7089
7089
  authManager;
7090
7090
  config;
@@ -7151,7 +7151,7 @@ var Mc = class {
7151
7151
  };
7152
7152
  //#endregion
7153
7153
  //#region ../core/src/cloud/mcp-operation-handler.ts
7154
- function Nc(e, t) {
7154
+ function Pc(e, t) {
7155
7155
  let { operation: n, data: r } = t;
7156
7156
  switch (n) {
7157
7157
  case "add_block":
@@ -7179,8 +7179,8 @@ function Nc(e, t) {
7179
7179
  }
7180
7180
  //#endregion
7181
7181
  //#region ../core/src/cloud/editor.ts
7182
- function Pc(e) {
7183
- let t = new Ac(e.authManager), r = n({
7182
+ function Fc(e) {
7183
+ let t = new jc(e.authManager), r = n({
7184
7184
  template: null,
7185
7185
  content: Fe(Ie(e.defaultFontFamily, e.templateDefaults)),
7186
7186
  selectedBlockId: null,
@@ -7423,11 +7423,11 @@ function Pc(e) {
7423
7423
  }
7424
7424
  //#endregion
7425
7425
  //#region ../core/src/cloud/ai-chat.ts
7426
- var Fc = 0;
7427
- function Ic() {
7428
- return `msg_${Date.now()}_${++Fc}`;
7426
+ var Ic = 0;
7427
+ function Lc() {
7428
+ return `msg_${Date.now()}_${++Ic}`;
7429
7429
  }
7430
- function Lc(e) {
7430
+ function Rc(e) {
7431
7431
  let { authManager: t, getTemplateId: n, onApply: r, onError: i } = e, a = R([]), o = R(!1), s = R(!1), c = R(null), l = R(null), u = R(null), d = R(null), f = R(null), p = R(null), m = R(!1), h = R([]), g = R(!1);
7432
7432
  function _(e, t) {
7433
7433
  let n = a.value.findIndex((t) => t.id === e);
@@ -7521,14 +7521,14 @@ function Lc(e) {
7521
7521
  let v = n();
7522
7522
  if (!v) throw Error("Template must be saved before using AI generation");
7523
7523
  o.value = !0, c.value = null, l.value = null, h.value = [];
7524
- let y = Ic();
7524
+ let y = Lc();
7525
7525
  a.value = [...a.value, {
7526
7526
  id: y,
7527
7527
  role: "user",
7528
7528
  content: e,
7529
7529
  timestamp: Date.now()
7530
7530
  }];
7531
- let b = Ic();
7531
+ let b = Lc();
7532
7532
  a.value = [...a.value, {
7533
7533
  id: b,
7534
7534
  role: "assistant",
@@ -7619,7 +7619,7 @@ function Lc(e) {
7619
7619
  }
7620
7620
  //#endregion
7621
7621
  //#region ../core/src/cloud/ai-config.ts
7622
- function Rc(e) {
7622
+ function zc(e) {
7623
7623
  function t(t) {
7624
7624
  return e === !1 ? !1 : e?.[t] !== !1;
7625
7625
  }
@@ -7630,7 +7630,7 @@ function Rc(e) {
7630
7630
  }
7631
7631
  //#endregion
7632
7632
  //#region ../core/src/cloud/template-scoring.ts
7633
- function zc(e) {
7633
+ function Bc(e) {
7634
7634
  let { authManager: t, getTemplateId: n } = e, r = R(!1), i = R(null), a = R(null), o = R(null), s = R(""), c = R(null);
7635
7635
  async function l(e, o) {
7636
7636
  let s = n();
@@ -7775,7 +7775,7 @@ function zc(e) {
7775
7775
  }
7776
7776
  //#endregion
7777
7777
  //#region ../core/src/cloud/design-reference.ts
7778
- function Bc(e) {
7778
+ function Vc(e) {
7779
7779
  let { authManager: t, getTemplateId: n, onApply: r, onError: i } = e, a = R(!1), o = R(null);
7780
7780
  async function s(e) {
7781
7781
  let s = n();
@@ -7838,8 +7838,8 @@ function Bc(e) {
7838
7838
  }
7839
7839
  //#endregion
7840
7840
  //#region ../core/src/cloud/comments.ts
7841
- function Vc(e) {
7842
- let { authManager: t, getTemplateId: n, getSocketId: r, onComment: i, onError: a, hasCommentingFeature: o } = e, s = new Ac(t), c = R([]), l = R(!1), u = R(!1), d = F(() => (o?.() ?? !1) && t.userConfig !== null), f = F(() => {
7841
+ function Hc(e) {
7842
+ let { authManager: t, getTemplateId: n, getSocketId: r, onComment: i, onError: a, hasCommentingFeature: o } = e, s = new jc(t), c = R([]), l = R(!1), u = R(!1), d = F(() => (o?.() ?? !1) && t.userConfig !== null), f = F(() => {
7843
7843
  let e = 0;
7844
7844
  for (let t of c.value) e += 1 + (t.replies?.length ?? 0);
7845
7845
  return e;
@@ -8038,17 +8038,17 @@ function Vc(e) {
8038
8038
  }
8039
8039
  //#endregion
8040
8040
  //#region ../core/src/cloud/comment-listener.ts
8041
- function Hc(e) {
8041
+ function Uc(e) {
8042
8042
  let { comments: t, channel: n } = e;
8043
8043
  l(n, (e, n) => {
8044
8044
  n && n.unbind("comment-broadcast"), e && e.bind("comment-broadcast", (e) => {
8045
- Uc(t, e);
8045
+ Wc(t, e);
8046
8046
  });
8047
8047
  }), g(() => {
8048
8048
  n.value?.unbind("comment-broadcast");
8049
8049
  });
8050
8050
  }
8051
- function Uc(e, t) {
8051
+ function Wc(e, t) {
8052
8052
  switch (t.action) {
8053
8053
  case "comment_created":
8054
8054
  e.applyRemoteCreate(t.comment);
@@ -8067,7 +8067,7 @@ function Uc(e, t) {
8067
8067
  }
8068
8068
  //#endregion
8069
8069
  //#region ../core/src/cloud/collaboration.ts
8070
- var Wc = [
8070
+ var Gc = [
8071
8071
  "pusher:member_added",
8072
8072
  "pusher:member_removed",
8073
8073
  "client-block_locked",
@@ -8075,10 +8075,10 @@ var Wc = [
8075
8075
  "client-operation",
8076
8076
  "mcp-operation"
8077
8077
  ];
8078
- function Gc(e) {
8079
- for (let t of Wc) e.unbind(t);
8078
+ function Kc(e) {
8079
+ for (let t of Gc) e.unbind(t);
8080
8080
  }
8081
- var Kc = [
8081
+ var qc = [
8082
8082
  "#3b82f6",
8083
8083
  "#ef4444",
8084
8084
  "#10b981",
@@ -8090,10 +8090,10 @@ var Kc = [
8090
8090
  "#6366f1",
8091
8091
  "#14b8a6"
8092
8092
  ];
8093
- function qc(e) {
8093
+ function Jc(e) {
8094
8094
  let { authManager: t, editor: n, channel: r } = e, i = R([]), a = R(/* @__PURE__ */ new Map()), o = 0, s = !1, c = F(() => t.userConfig?.id ?? "");
8095
8095
  function u() {
8096
- let e = Kc[o % Kc.length];
8096
+ let e = qc[o % qc.length];
8097
8097
  return o++, e;
8098
8098
  }
8099
8099
  function d(e) {
@@ -8135,7 +8135,7 @@ function qc(e) {
8135
8135
  function h(e) {
8136
8136
  s = !0;
8137
8137
  try {
8138
- Nc(n, e);
8138
+ Pc(n, e);
8139
8139
  } finally {
8140
8140
  s = !1;
8141
8141
  }
@@ -8155,7 +8155,7 @@ function qc(e) {
8155
8155
  return l(() => n.state.selectedBlockId, (e, t) => {
8156
8156
  s || (t && y(t), e && v(e));
8157
8157
  }), l(r, (t, n) => {
8158
- if (n && Gc(n), !t) {
8158
+ if (n && Kc(n), !t) {
8159
8159
  i.value = [], a.value = /* @__PURE__ */ new Map(), o = 0;
8160
8160
  return;
8161
8161
  }
@@ -8187,7 +8187,7 @@ function qc(e) {
8187
8187
  h(e);
8188
8188
  });
8189
8189
  }), g(() => {
8190
- r.value && Gc(r.value);
8190
+ r.value && Kc(r.value);
8191
8191
  }), {
8192
8192
  collaborators: i,
8193
8193
  lockedBlocks: a,
@@ -8197,7 +8197,7 @@ function qc(e) {
8197
8197
  }
8198
8198
  //#endregion
8199
8199
  //#region ../core/src/cloud/collaboration-broadcast.ts
8200
- function Jc(e, t) {
8200
+ function Yc(e, t) {
8201
8201
  let n = e.addBlock, r = e.updateBlock, i = e.removeBlock, a = e.moveBlock, o = e.updateSettings, s = e.setContent;
8202
8202
  e.addBlock = (e, r, i) => {
8203
8203
  n(e, r, i), t._broadcastOperation({
@@ -8251,11 +8251,11 @@ function Jc(e, t) {
8251
8251
  }
8252
8252
  //#endregion
8253
8253
  //#region ../core/src/cloud/web-socket.ts
8254
- function Yc(e) {
8254
+ function Xc(e) {
8255
8255
  let { authManager: t, onError: n } = e, r = R(null), i = R(!1), a = null, o = null;
8256
8256
  async function s(e, s) {
8257
8257
  if (a) return;
8258
- a = new Mc({
8258
+ a = new Nc({
8259
8259
  authManager: t,
8260
8260
  config: s,
8261
8261
  onError: n
@@ -8283,8 +8283,8 @@ function Yc(e) {
8283
8283
  }
8284
8284
  //#endregion
8285
8285
  //#region ../core/src/cloud/saved-modules.ts
8286
- function Xc(e) {
8287
- let t = new Ac(e.authManager), n = R([]), r = R(!1);
8286
+ function Zc(e) {
8287
+ let t = new jc(e.authManager), n = R([]), r = R(!1);
8288
8288
  async function i(i) {
8289
8289
  r.value = !0;
8290
8290
  try {
@@ -8332,8 +8332,8 @@ function Xc(e) {
8332
8332
  }
8333
8333
  //#endregion
8334
8334
  //#region ../core/src/cloud/snapshots.ts
8335
- function Zc(e) {
8336
- let t = new Ac(e.authManager), n = R([]), r = R(!1), i = R(!1);
8335
+ function Qc(e) {
8336
+ let t = new jc(e.authManager), n = R([]), r = R(!1), i = R(!1);
8337
8337
  async function a() {
8338
8338
  r.value = !0;
8339
8339
  try {
@@ -8365,8 +8365,8 @@ function Zc(e) {
8365
8365
  }
8366
8366
  //#endregion
8367
8367
  //#region ../core/src/cloud/test-email.ts
8368
- function Qc(e) {
8369
- let { authManager: t, getTemplateId: n, save: r, exportHtml: i, onError: a, isAuthReady: o, onBeforeTestEmail: s } = e, c = new Ac(t), u = R(!1), d = R(null), f = R(null);
8368
+ function $c(e) {
8369
+ let { authManager: t, getTemplateId: n, save: r, exportHtml: i, onError: a, isAuthReady: o, onBeforeTestEmail: s } = e, c = new jc(t), u = R(!1), d = R(null), f = R(null);
8370
8370
  o && l(o, (e) => {
8371
8371
  e && (f.value = t.testEmailConfig);
8372
8372
  }, { immediate: !0 });
@@ -8402,8 +8402,8 @@ function Qc(e) {
8402
8402
  }
8403
8403
  //#endregion
8404
8404
  //#region ../core/src/cloud/export.ts
8405
- function $c(e) {
8406
- let { authManager: t, getFontsConfig: n, canUseCustomFonts: r } = e, i = new Ac(t);
8405
+ function el(e) {
8406
+ let { authManager: t, getFontsConfig: n, canUseCustomFonts: r } = e, i = new jc(t);
8407
8407
  function a() {
8408
8408
  let e = n?.();
8409
8409
  return {
@@ -8429,8 +8429,8 @@ function $c(e) {
8429
8429
  }
8430
8430
  //#endregion
8431
8431
  //#region ../core/src/cloud/plan-config.ts
8432
- function el(e) {
8433
- let { authManager: t, onError: n } = e, r = R(null), i = R(!1), a = new Ac(t), o = F(() => r.value?.features ?? null);
8432
+ function tl(e) {
8433
+ let { authManager: t, onError: n } = e, r = R(null), i = R(!1), a = new jc(t), o = F(() => r.value?.features ?? null);
8434
8434
  function s(e) {
8435
8435
  return r.value?.features[e] ?? !1;
8436
8436
  }
@@ -8456,11 +8456,11 @@ function el(e) {
8456
8456
  }
8457
8457
  //#endregion
8458
8458
  //#region ../core/src/cloud/health-check.ts
8459
- var tl = 5e3;
8460
- function nl(e) {
8459
+ var nl = 5e3;
8460
+ function rl(e) {
8461
8461
  return e.authManager ? e.authManager.resolveUrl($.health) : `${(e.baseUrl ?? "https://templatical.com").replace(/\/$/, "")}${$.health}`;
8462
8462
  }
8463
- async function rl(e, t) {
8463
+ async function il(e, t) {
8464
8464
  let n = performance.now();
8465
8465
  try {
8466
8466
  let r = t ? await t.authenticatedFetch($.health, {
@@ -8512,7 +8512,7 @@ async function rl(e, t) {
8512
8512
  };
8513
8513
  }
8514
8514
  }
8515
- async function il(e) {
8515
+ async function al(e) {
8516
8516
  if (!e?.host || !e?.app_key) return {
8517
8517
  ok: !1,
8518
8518
  error: "WebSocket configuration not available"
@@ -8528,7 +8528,7 @@ async function il(e) {
8528
8528
  ok: !1,
8529
8529
  error: "WebSocket connection timed out"
8530
8530
  });
8531
- }, tl);
8531
+ }, nl);
8532
8532
  try {
8533
8533
  n = new WebSocket(t);
8534
8534
  } catch (t) {
@@ -8548,8 +8548,8 @@ async function il(e) {
8548
8548
  };
8549
8549
  });
8550
8550
  }
8551
- async function al(e = {}) {
8552
- let t = await rl(nl(e), e.authManager), n = await il(t.wsConfig);
8551
+ async function ol(e = {}) {
8552
+ let t = await il(rl(e), e.authManager), n = await al(t.wsConfig);
8553
8553
  return {
8554
8554
  api: t.api,
8555
8555
  websocket: n,
@@ -8559,17 +8559,17 @@ async function al(e = {}) {
8559
8559
  }
8560
8560
  //#endregion
8561
8561
  //#region ../core/src/cloud/mcp-listener.ts
8562
- function ol(e) {
8562
+ function sl(e) {
8563
8563
  let { editor: t, channel: n, onOperation: r } = e;
8564
8564
  l(n, (e, n) => {
8565
8565
  n && n.unbind("mcp-operation"), e && e.bind("mcp-operation", (e) => {
8566
- Nc(t, e), r?.(e);
8566
+ Pc(t, e), r?.(e);
8567
8567
  });
8568
8568
  });
8569
8569
  }
8570
8570
  //#endregion
8571
8571
  //#region src/composables/useAliveFlag.ts
8572
- function sl() {
8572
+ function cl() {
8573
8573
  let e = { alive: !0 };
8574
8574
  return ne(() => {
8575
8575
  e.alive = !1;
@@ -8577,19 +8577,19 @@ function sl() {
8577
8577
  }
8578
8578
  //#endregion
8579
8579
  //#region src/cloud/components/AiChatSidebar.vue?vue&type=script&setup=true&lang.ts
8580
- var cl = {
8580
+ var ll = {
8581
8581
  key: 0,
8582
8582
  class: "tpl-ai-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
8583
- }, ll = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ul = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, dl = { class: "tpl:flex tpl:items-center tpl:gap-1" }, fl = ["title"], pl = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, ml = {
8583
+ }, ul = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, dl = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, fl = { class: "tpl:flex tpl:items-center tpl:gap-1" }, pl = ["title"], ml = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, hl = {
8584
8584
  key: 0,
8585
8585
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
8586
- }, hl = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, gl = {
8586
+ }, gl = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _l = {
8587
8587
  key: 1,
8588
8588
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
8589
- }, _l = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, vl = {
8589
+ }, vl = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, yl = {
8590
8590
  key: 2,
8591
8591
  class: "tpl:flex tpl:flex-col tpl:gap-4"
8592
- }, yl = {
8592
+ }, bl = {
8593
8593
  key: 0,
8594
8594
  class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm",
8595
8595
  style: {
@@ -8598,10 +8598,10 @@ var cl = {
8598
8598
  "max-width": "85%",
8599
8599
  "box-shadow": "var(--tpl-shadow)"
8600
8600
  }
8601
- }, bl = {
8601
+ }, xl = {
8602
8602
  key: 1,
8603
8603
  class: "tpl:flex tpl:flex-col tpl:gap-2"
8604
- }, xl = {
8604
+ }, Sl = {
8605
8605
  key: 1,
8606
8606
  class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
8607
8607
  style: {
@@ -8610,21 +8610,21 @@ var cl = {
8610
8610
  color: "var(--tpl-text)",
8611
8611
  "box-shadow": "var(--tpl-shadow)"
8612
8612
  }
8613
- }, Sl = {
8613
+ }, Cl = {
8614
8614
  key: 0,
8615
8615
  class: "tpl:mx-3 tpl:mb-2 tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs",
8616
8616
  style: {
8617
8617
  "background-color": "var(--tpl-danger-light)",
8618
8618
  color: "var(--tpl-danger)"
8619
8619
  }
8620
- }, Cl = {
8620
+ }, wl = {
8621
8621
  key: 1,
8622
8622
  class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
8623
8623
  style: {
8624
8624
  "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 50%,\n transparent\n )",
8625
8625
  "backdrop-filter": "blur(2px)"
8626
8626
  }
8627
- }, wl = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Tl = ["onClick"], El = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Dl = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ol = ["placeholder", "disabled"], kl = ["disabled"], Al = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, jl = /* @__PURE__ */ i({
8627
+ }, Tl = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, El = ["onClick"], Dl = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Ol = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, kl = ["placeholder", "disabled"], Al = ["disabled"], jl = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Ml = /* @__PURE__ */ i({
8628
8628
  __name: "AiChatSidebar",
8629
8629
  props: {
8630
8630
  visible: { type: Boolean },
@@ -8632,7 +8632,7 @@ var cl = {
8632
8632
  },
8633
8633
  emits: ["close"],
8634
8634
  setup(e, { emit: t }) {
8635
- let n = e, i = t, o = Rr(Lr, "AiChatSidebar"), s = Rr(ur, "AiChatSidebar"), d = Rr(Mr, "AiChatSidebar"), f = a(Sr, []), p = sl(), m = Lc({
8635
+ let n = e, i = t, o = zr(Rr, "AiChatSidebar"), s = zr(ur, "AiChatSidebar"), d = zr(Nr, "AiChatSidebar"), f = a(Cr, []), p = cl(), m = Rc({
8636
8636
  authManager: d,
8637
8637
  getTemplateId: () => s.state.template?.id ?? null,
8638
8638
  onApply: n.onApply,
@@ -8679,42 +8679,42 @@ var cl = {
8679
8679
  "leave-from-class": "tpl:translate-x-0",
8680
8680
  "leave-to-class": "tpl:translate-x-full"
8681
8681
  }, {
8682
- default: b(() => [e.visible ? (h(), B("div", cl, [
8683
- P("div", ll, [P("div", ul, [V(D(Wi), {
8682
+ default: b(() => [e.visible ? (h(), B("div", ll, [
8683
+ P("div", ul, [P("div", dl, [V(D(Gi), {
8684
8684
  size: 13,
8685
8685
  "stroke-width": 2
8686
- }), P("span", null, M(D(o).aiChat.title), 1)]), P("div", dl, [(D(m).messages.value?.length ?? 0) > 0 ? (h(), B("button", {
8686
+ }), P("span", null, M(D(o).aiChat.title), 1)]), P("div", fl, [(D(m).messages.value?.length ?? 0) > 0 ? (h(), B("button", {
8687
8687
  key: 0,
8688
8688
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
8689
8689
  title: D(o).aiChat.clear,
8690
8690
  onClick: n[0] ||= (e) => D(m).clearChat()
8691
- }, [V(D(Ki), {
8691
+ }, [V(D(qi), {
8692
8692
  size: 14,
8693
8693
  "stroke-width": 2
8694
- })], 8, fl)) : C("", !0), P("button", {
8694
+ })], 8, pl)) : C("", !0), P("button", {
8695
8695
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
8696
8696
  onClick: n[1] ||= (e) => i("close")
8697
- }, [V(D(Zi), {
8697
+ }, [V(D(Qi), {
8698
8698
  size: 14,
8699
8699
  "stroke-width": 2
8700
8700
  })])])]),
8701
- P("div", pl, [
8701
+ P("div", ml, [
8702
8702
  P("div", {
8703
8703
  ref_key: "messagesContainer",
8704
8704
  ref: _,
8705
8705
  class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
8706
- }, [D(m).isLoadingHistory.value ? (h(), B("div", ml, [V(D(Mi), {
8706
+ }, [D(m).isLoadingHistory.value ? (h(), B("div", hl, [V(D(Ni), {
8707
8707
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
8708
8708
  size: 24,
8709
8709
  "stroke-width": 2
8710
- }), P("p", hl, M(D(o).aiChat.loadingHistory), 1)])) : (D(m).messages.value?.length ?? 0) === 0 ? (h(), B("div", gl, [V(D(Wi), {
8710
+ }), P("p", gl, M(D(o).aiChat.loadingHistory), 1)])) : (D(m).messages.value?.length ?? 0) === 0 ? (h(), B("div", _l, [V(D(Gi), {
8711
8711
  size: 32,
8712
8712
  "stroke-width": 1.5,
8713
8713
  class: "tpl:text-[var(--tpl-text-dim)]"
8714
- }), P("p", _l, M(D(o).aiChat.placeholder), 1)])) : (h(), B("div", vl, [(h(!0), B(j, null, u(D(m).messages.value, (e, t) => (h(), B("div", {
8714
+ }), P("p", vl, M(D(o).aiChat.placeholder), 1)])) : (h(), B("div", yl, [(h(!0), B(j, null, u(D(m).messages.value, (e, t) => (h(), B("div", {
8715
8715
  key: e.id,
8716
8716
  class: "tpl:flex tpl:flex-col tpl:gap-2"
8717
- }, [e.role === "user" ? (h(), B("div", yl, M(e.content), 1)) : (h(), B("div", bl, [!A(e.content) && D(m).isGenerating.value && t === (D(m).messages.value?.length ?? 0) - 1 ? (h(), N(aa, { key: 0 })) : (h(), B("div", xl, M(A(e.content) || D(o).aiChat.applied), 1)), e.id === D(m).lastApplyMessageId.value && !D(m).isGenerating.value ? (h(), B("button", {
8717
+ }, [e.role === "user" ? (h(), B("div", bl, M(e.content), 1)) : (h(), B("div", xl, [!A(e.content) && D(m).isGenerating.value && t === (D(m).messages.value?.length ?? 0) - 1 ? (h(), N(oa, { key: 0 })) : (h(), B("div", Sl, M(A(e.content) || D(o).aiChat.applied), 1)), e.id === D(m).lastApplyMessageId.value && !D(m).isGenerating.value ? (h(), B("button", {
8718
8718
  key: 2,
8719
8719
  class: "tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:self-start tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
8720
8720
  style: {
@@ -8723,19 +8723,19 @@ var cl = {
8723
8723
  "background-color": "transparent"
8724
8724
  },
8725
8725
  onClick: n[2] ||= (e) => D(m).toggleLastRevert()
8726
- }, [D(m).isLastChangeReverted.value ? (h(), B(j, { key: 0 }, [V(D(Li), {
8726
+ }, [D(m).isLastChangeReverted.value ? (h(), B(j, { key: 0 }, [V(D(Ri), {
8727
8727
  size: 12,
8728
8728
  "stroke-width": 2
8729
- }), T(" " + M(D(o).aiChat.reapply), 1)], 64)) : (h(), B(j, { key: 1 }, [V(D(Ji), {
8729
+ }), T(" " + M(D(o).aiChat.reapply), 1)], 64)) : (h(), B(j, { key: 1 }, [V(D(Yi), {
8730
8730
  size: 12,
8731
8731
  "stroke-width": 2
8732
8732
  }), T(" " + M(D(o).aiChat.revert), 1)], 64))])) : C("", !0)]))]))), 128))]))], 512),
8733
- D(m).error.value ? (h(), B("div", Sl, [V(D(vi), {
8733
+ D(m).error.value ? (h(), B("div", Cl, [V(D(yi), {
8734
8734
  size: 14,
8735
8735
  "stroke-width": 2,
8736
8736
  class: "tpl:mt-0.5 tpl:shrink-0"
8737
8737
  }), P("span", null, M(D(m).error.value === "ai_apply_failed" ? D(o).aiChat.applyFailed : D(o).aiChat.error), 1)])) : C("", !0),
8738
- (D(m).suggestions.value?.length ?? 0) > 0 ? (h(), B("div", Cl, [P("div", wl, [(h(!0), B(j, null, u(D(m).suggestions.value ?? [], (e, t) => (h(), B("button", {
8738
+ (D(m).suggestions.value?.length ?? 0) > 0 ? (h(), B("div", wl, [P("div", Tl, [(h(!0), B(j, null, u(D(m).suggestions.value ?? [], (e, t) => (h(), B("button", {
8739
8739
  key: t,
8740
8740
  class: z(["tpl-suggestion-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", (D(m).suggestions.value?.length ?? 0) - 1 - t < y.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
8741
8741
  style: {
@@ -8745,104 +8745,104 @@ var cl = {
8745
8745
  "box-shadow": "var(--tpl-shadow)"
8746
8746
  },
8747
8747
  onClick: (t) => ee(e)
8748
- }, M(e), 11, Tl))), 128))])])) : C("", !0)
8748
+ }, M(e), 11, El))), 128))])])) : C("", !0)
8749
8749
  ]),
8750
- P("div", El, [P("div", Dl, [c(P("textarea", {
8750
+ P("div", Dl, [P("div", Ol, [c(P("textarea", {
8751
8751
  "onUpdate:modelValue": n[3] ||= (e) => g.value = e,
8752
8752
  class: "tpl:max-h-32 tpl:min-h-[64px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
8753
8753
  placeholder: D(o).aiChat.inputPlaceholder,
8754
8754
  disabled: D(m).isGenerating.value,
8755
8755
  rows: "3",
8756
8756
  onKeydown: te
8757
- }, null, 40, Ol), [[E, g.value]]), P("button", {
8757
+ }, null, 40, kl), [[E, g.value]]), P("button", {
8758
8758
  class: "tpl-ai-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
8759
8759
  disabled: !g.value.trim() || D(m).isGenerating.value,
8760
8760
  onClick: k
8761
- }, [V(D(Bi), {
8761
+ }, [V(D(Vi), {
8762
8762
  size: 16,
8763
8763
  "stroke-width": 2
8764
- })], 8, kl)]), P("p", Al, M(D(o).aiMenu.disclaimer), 1)])
8764
+ })], 8, Al)]), P("p", jl, M(D(o).aiMenu.disclaimer), 1)])
8765
8765
  ])) : C("", !0)]),
8766
8766
  _: 1
8767
8767
  }));
8768
8768
  }
8769
- }), Ml = /* @__PURE__ */ t({ default: () => Nl }), Nl = /* @__PURE__ */ J(jl, [["__scopeId", "data-v-384b60d9"]]), Pl = 6e4, Fl = 36e5, Il = 864e5;
8770
- function Ll(e, t, n, r) {
8769
+ }), Nl = /* @__PURE__ */ t({ default: () => Pl }), Pl = /* @__PURE__ */ J(Ml, [["__scopeId", "data-v-384b60d9"]]), Fl = 6e4, Il = 36e5, Ll = 864e5;
8770
+ function Rl(e, t, n, r) {
8771
8771
  let i = new Date(e).getTime();
8772
8772
  if (Number.isNaN(i)) return null;
8773
8773
  let a = Date.now() - i;
8774
- if (a < -Pl) return null;
8775
- let o = Math.floor(a / Pl), s = Math.floor(a / Fl), c = Math.floor(a / Il);
8774
+ if (a < -Fl) return null;
8775
+ let o = Math.floor(a / Fl), s = Math.floor(a / Il), c = Math.floor(a / Ll);
8776
8776
  return o < 1 ? t.justNow : o < 60 ? n ? n(t.minutesAgo, { minutes: o }) : t.minutesAgo.replace("{minutes}", String(o)) : s < 24 ? n ? n(t.hoursAgo, { hours: s }) : t.hoursAgo.replace("{hours}", String(s)) : r !== void 0 && c >= r ? null : n ? n(t.daysAgo, { days: c }) : t.daysAgo.replace("{days}", String(c));
8777
8777
  }
8778
8778
  //#endregion
8779
8779
  //#region src/cloud/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
8780
- var Rl = {
8780
+ var zl = {
8781
8781
  key: 0,
8782
8782
  class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
8783
- }, zl = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Bl = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, Vl = {
8783
+ }, Bl = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Vl = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, Hl = {
8784
8784
  key: 0,
8785
8785
  class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]"
8786
- }, Hl = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, Ul = { class: "tpl:flex-1 tpl:overflow-y-auto" }, Wl = {
8786
+ }, Ul = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, Wl = { class: "tpl:flex-1 tpl:overflow-y-auto" }, Gl = {
8787
8787
  key: 0,
8788
8788
  class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
8789
- }, Gl = {
8789
+ }, Kl = {
8790
8790
  key: 1,
8791
8791
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
8792
- }, Kl = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ql = {
8792
+ }, ql = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Jl = {
8793
8793
  key: 2,
8794
8794
  class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
8795
- }, Jl = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Yl = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Xl = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Zl = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ql = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $l = {
8795
+ }, Yl = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, Xl = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Zl = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Ql = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $l = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, eu = {
8796
8796
  key: 0,
8797
8797
  class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
8798
- }, eu = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, tu = ["title", "onClick"], nu = ["title", "onClick"], ru = ["title", "onClick"], iu = {
8798
+ }, tu = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, nu = ["title", "onClick"], ru = ["title", "onClick"], iu = ["title", "onClick"], au = {
8799
8799
  key: 0,
8800
8800
  class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
8801
- }, au = {
8801
+ }, ou = {
8802
8802
  key: 0,
8803
8803
  class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
8804
- }, ou = ["onClick"], su = {
8804
+ }, su = ["onClick"], cu = {
8805
8805
  key: 2,
8806
8806
  class: "tpl:mt-2"
8807
- }, cu = ["onKeydown"], lu = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, uu = ["disabled", "onClick"], du = {
8807
+ }, lu = ["onKeydown"], uu = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, du = ["disabled", "onClick"], fu = {
8808
8808
  key: 3,
8809
8809
  class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
8810
- }, fu = {
8810
+ }, pu = {
8811
8811
  key: 4,
8812
8812
  class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
8813
- }, pu = { class: "tpl:flex-1" }, mu = ["onClick"], hu = {
8813
+ }, mu = { class: "tpl:flex-1" }, hu = ["onClick"], gu = {
8814
8814
  key: 5,
8815
8815
  class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
8816
- }, gu = ["title", "onClick"], _u = ["onClick"], vu = {
8816
+ }, _u = ["title", "onClick"], vu = ["onClick"], yu = {
8817
8817
  key: 0,
8818
8818
  class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
8819
- }, yu = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, bu = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, xu = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Su = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Cu = {
8819
+ }, bu = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, xu = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, Su = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Cu = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, wu = {
8820
8820
  key: 0,
8821
8821
  class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
8822
- }, wu = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Tu = ["title", "onClick"], Eu = ["title", "onClick"], Du = {
8822
+ }, Tu = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Eu = ["title", "onClick"], Du = ["title", "onClick"], Ou = {
8823
8823
  key: 0,
8824
8824
  class: "tpl:mt-1.5"
8825
- }, Ou = ["onKeydown"], ku = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Au = ["disabled", "onClick"], ju = {
8825
+ }, ku = ["onKeydown"], Au = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, ju = ["disabled", "onClick"], Mu = {
8826
8826
  key: 1,
8827
8827
  class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
8828
- }, Mu = {
8828
+ }, Nu = {
8829
8829
  key: 2,
8830
8830
  class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
8831
- }, Nu = { class: "tpl:flex-1" }, Pu = ["onClick"], Fu = {
8831
+ }, Pu = { class: "tpl:flex-1" }, Fu = ["onClick"], Iu = {
8832
8832
  key: 0,
8833
8833
  class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
8834
- }, Iu = { class: "tpl:flex tpl:items-end tpl:gap-2" }, Lu = ["placeholder", "onKeydown"], Ru = { class: "tpl:flex tpl:shrink-0 tpl:flex-col tpl:gap-1" }, zu = ["disabled", "onClick"], Bu = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Vu = {
8834
+ }, Lu = { class: "tpl:flex tpl:items-end tpl:gap-2" }, Ru = ["placeholder", "onKeydown"], zu = { class: "tpl:flex tpl:shrink-0 tpl:flex-col tpl:gap-1" }, Bu = ["disabled", "onClick"], Vu = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Hu = {
8835
8835
  key: 0,
8836
8836
  class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
8837
- }, Hu = {
8837
+ }, Uu = {
8838
8838
  key: 1,
8839
8839
  class: "tpl-comments-input-wrapper tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
8840
- }, Uu = ["placeholder", "disabled"], Wu = ["disabled"], Gu = /* @__PURE__ */ i({
8840
+ }, Wu = ["placeholder", "disabled"], Gu = ["disabled"], Ku = /* @__PURE__ */ i({
8841
8841
  __name: "CommentsSidebar",
8842
8842
  props: { visible: { type: Boolean } },
8843
8843
  emits: ["close", "filterBlock"],
8844
8844
  setup(e, { expose: t, emit: n }) {
8845
- let i = e, a = n, { format: o } = K(), { t: s } = ua(), d = Rr(ur, "CommentsSidebar"), f = Rr(Mr, "CommentsSidebar"), p = Rr(Pr, "CommentsSidebar"), m = R("unresolved"), g = R(null), _ = R(""), v = R(null), y = R(""), x = R(null), S = R(""), w = R(/* @__PURE__ */ new Set()), O = R(null), A = R(null), ee = F(() => f.userConfig?.id ?? null), te = F(() => {
8845
+ let i = e, a = n, { format: o } = K(), { t: s } = da(), d = zr(ur, "CommentsSidebar"), f = zr(Nr, "CommentsSidebar"), p = zr(Fr, "CommentsSidebar"), m = R("unresolved"), g = R(null), _ = R(""), v = R(null), y = R(""), x = R(null), S = R(""), w = R(/* @__PURE__ */ new Set()), O = R(null), A = R(null), ee = F(() => f.userConfig?.id ?? null), te = F(() => {
8846
8846
  let e = /* @__PURE__ */ new Set();
8847
8847
  for (let t of d.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
8848
8848
  return e;
@@ -8910,7 +8910,7 @@ var Rl = {
8910
8910
  return e.author_identifier === ee.value;
8911
8911
  }
8912
8912
  function ye(e) {
8913
- return Ll(e, s.snapshotHistory) ?? e;
8913
+ return Rl(e, s.snapshotHistory) ?? e;
8914
8914
  }
8915
8915
  function be(e) {
8916
8916
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), pe());
@@ -8937,22 +8937,22 @@ var Rl = {
8937
8937
  "leave-from-class": "tpl:translate-x-0",
8938
8938
  "leave-to-class": "tpl:translate-x-full"
8939
8939
  }, {
8940
- default: b(() => [e.visible ? (h(), B("div", Rl, [
8941
- P("div", zl, [P("div", Bl, [
8942
- V(D(Ni), {
8940
+ default: b(() => [e.visible ? (h(), B("div", zl, [
8941
+ P("div", Bl, [P("div", Vl, [
8942
+ V(D(Pi), {
8943
8943
  size: 13,
8944
8944
  "stroke-width": 2
8945
8945
  }),
8946
8946
  P("span", null, M(D(s).comments.title), 1),
8947
- D(p).unresolvedCount.value > 0 ? (h(), B("span", Vl, M(D(p).unresolvedCount.value), 1)) : C("", !0)
8947
+ D(p).unresolvedCount.value > 0 ? (h(), B("span", Hl, M(D(p).unresolvedCount.value), 1)) : C("", !0)
8948
8948
  ]), P("button", {
8949
8949
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
8950
8950
  onClick: n[0] ||= (e) => a("close")
8951
- }, [V(D(Zi), {
8951
+ }, [V(D(Qi), {
8952
8952
  size: 14,
8953
8953
  "stroke-width": 2
8954
8954
  })])]),
8955
- P("div", Hl, [
8955
+ P("div", Ul, [
8956
8956
  P("button", {
8957
8957
  class: z(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", m.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
8958
8958
  onClick: n[1] ||= (e) => oe("unresolved")
@@ -8967,156 +8967,156 @@ var Rl = {
8967
8967
  onClick: n[3] ||= (e) => oe("block", D(d).state.selectedBlockId ?? void 0)
8968
8968
  }, M(D(s).comments.filterBlock), 3)) : C("", !0)
8969
8969
  ]),
8970
- P("div", Ul, [D(p).isLoading.value ? (h(), B("div", Wl, [V(D(Mi), {
8970
+ P("div", Wl, [D(p).isLoading.value ? (h(), B("div", Gl, [V(D(Ni), {
8971
8971
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
8972
8972
  size: 24,
8973
8973
  "stroke-width": 2
8974
- })])) : ie.value.length === 0 ? (h(), B("div", Gl, [V(D(Ni), {
8974
+ })])) : ie.value.length === 0 ? (h(), B("div", Kl, [V(D(Pi), {
8975
8975
  size: 32,
8976
8976
  "stroke-width": 1.5,
8977
8977
  class: "tpl:text-[var(--tpl-text-dim)]"
8978
- }), P("p", Kl, M(m.value === "all" ? D(s).comments.noCommentsHint : D(s).comments.noComments), 1)])) : (h(), B("div", ql, [(h(!0), B(j, null, u(ie.value, (e) => (h(), B("div", {
8978
+ }), P("p", ql, M(m.value === "all" ? D(s).comments.noCommentsHint : D(s).comments.noComments), 1)])) : (h(), B("div", Jl, [(h(!0), B(j, null, u(ie.value, (e) => (h(), B("div", {
8979
8979
  key: e.id,
8980
8980
  class: "tpl-comment-thread"
8981
8981
  }, [
8982
- P("div", Jl, [
8983
- P("div", Yl, [P("div", Xl, [
8984
- P("span", Zl, M(ve(e) ? D(s).comments.ownedByYou : e.author_name), 1),
8985
- P("span", Ql, M(ye(e.created_at)), 1),
8986
- e.updated_at === e.created_at ? C("", !0) : (h(), B("span", $l, " (" + M(D(s).comments.edited) + ") ", 1))
8987
- ]), P("div", eu, [
8982
+ P("div", Yl, [
8983
+ P("div", Xl, [P("div", Zl, [
8984
+ P("span", Ql, M(ve(e) ? D(s).comments.ownedByYou : e.author_name), 1),
8985
+ P("span", $l, M(ye(e.created_at)), 1),
8986
+ e.updated_at === e.created_at ? C("", !0) : (h(), B("span", eu, " (" + M(D(s).comments.edited) + ") ", 1))
8987
+ ]), P("div", tu, [
8988
8988
  P("button", {
8989
8989
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
8990
8990
  title: e.resolved_at ? D(s).comments.unresolve : D(s).comments.resolve,
8991
8991
  onClick: (t) => _e(e.id)
8992
- }, [V(D(yi), {
8992
+ }, [V(D(bi), {
8993
8993
  size: 13,
8994
8994
  "stroke-width": 2,
8995
8995
  class: "tpl-resolve-icon",
8996
8996
  style: k({ color: e.resolved_at ? "var(--tpl-primary)" : void 0 })
8997
- }, null, 8, ["style"])], 8, tu),
8997
+ }, null, 8, ["style"])], 8, nu),
8998
8998
  ve(e) ? (h(), B("button", {
8999
8999
  key: 0,
9000
9000
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
9001
9001
  title: D(s).comments.edit,
9002
9002
  onClick: (t) => L(e)
9003
- }, [V(D(Fi), {
9003
+ }, [V(D(Ii), {
9004
9004
  size: 12,
9005
9005
  "stroke-width": 2
9006
- })], 8, nu)) : C("", !0),
9006
+ })], 8, ru)) : C("", !0),
9007
9007
  ve(e) ? (h(), B("button", {
9008
9008
  key: 1,
9009
9009
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
9010
9010
  title: D(s).comments.delete,
9011
9011
  onClick: (t) => de(e.id)
9012
- }, [V(D(Ki), {
9012
+ }, [V(D(qi), {
9013
9013
  size: 12,
9014
9014
  "stroke-width": 2
9015
- })], 8, ru)) : C("", !0)
9015
+ })], 8, iu)) : C("", !0)
9016
9016
  ])]),
9017
9017
  V(ae, { name: "tpl-resolve" }, {
9018
- default: b(() => [e.resolved_at ? (h(), B("div", iu, [V(D(pi), {
9018
+ default: b(() => [e.resolved_at ? (h(), B("div", au, [V(D(mi), {
9019
9019
  size: 10,
9020
9020
  "stroke-width": 2.5
9021
9021
  }), P("span", null, M(D(o)(D(s).comments.resolvedBy, { name: e.resolved_by_name ?? "" })), 1)])) : C("", !0)]),
9022
9022
  _: 2
9023
9023
  }, 1024),
9024
- e.block_id && ne(e.block_id) ? (h(), B("span", au, M(D(s).comments.missingBlock), 1)) : e.block_id ? (h(), B("button", {
9024
+ e.block_id && ne(e.block_id) ? (h(), B("span", ou, M(D(s).comments.missingBlock), 1)) : e.block_id ? (h(), B("button", {
9025
9025
  key: 1,
9026
9026
  class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
9027
9027
  onClick: (t) => D(d).selectBlock(e.block_id ?? "")
9028
- }, " Block ", 8, ou)) : C("", !0),
9029
- x.value === e.id ? (h(), B("div", su, [c(P("textarea", {
9028
+ }, " Block ", 8, su)) : C("", !0),
9029
+ x.value === e.id ? (h(), B("div", cu, [c(P("textarea", {
9030
9030
  "onUpdate:modelValue": n[4] ||= (e) => S.value = e,
9031
9031
  class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
9032
9032
  rows: "3",
9033
9033
  onKeydown: (t) => Se(t, e.id)
9034
- }, null, 40, cu), [[E, S.value]]), P("div", lu, [P("button", {
9034
+ }, null, 40, lu), [[E, S.value]]), P("div", uu, [P("button", {
9035
9035
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
9036
9036
  disabled: !S.value.trim() || D(p).isSubmitting.value,
9037
9037
  onClick: (t) => he(e.id)
9038
- }, M(D(s).comments.save), 9, uu), P("button", {
9038
+ }, M(D(s).comments.save), 9, du), P("button", {
9039
9039
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
9040
9040
  onClick: n[5] ||= (e) => ue()
9041
- }, M(D(s).comments.cancel), 1)])])) : (h(), B("p", du, M(e.body), 1)),
9042
- O.value === e.id ? (h(), B("div", fu, [
9043
- P("span", pu, M(D(s).comments.deleteConfirm), 1),
9041
+ }, M(D(s).comments.cancel), 1)])])) : (h(), B("p", fu, M(e.body), 1)),
9042
+ O.value === e.id ? (h(), B("div", pu, [
9043
+ P("span", mu, M(D(s).comments.deleteConfirm), 1),
9044
9044
  P("button", {
9045
9045
  class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
9046
9046
  onClick: (t) => ge(e.id)
9047
- }, M(D(s).comments.delete), 9, mu),
9047
+ }, M(D(s).comments.delete), 9, hu),
9048
9048
  P("button", {
9049
9049
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
9050
9050
  onClick: n[6] ||= (e) => fe()
9051
9051
  }, M(D(s).comments.cancel), 1)
9052
9052
  ])) : C("", !0),
9053
- x.value !== e.id && O.value !== e.id ? (h(), B("div", hu, [P("button", {
9053
+ x.value !== e.id && O.value !== e.id ? (h(), B("div", gu, [P("button", {
9054
9054
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
9055
9055
  title: D(s).comments.reply,
9056
9056
  onClick: (t) => ce(e.id)
9057
- }, [V(D(zi), {
9057
+ }, [V(D(Bi), {
9058
9058
  size: 13,
9059
9059
  "stroke-width": 2,
9060
9060
  class: "tpl:text-[var(--tpl-primary)]"
9061
- })], 8, gu), (e.replies?.length ?? 0) > 0 ? (h(), B("button", {
9061
+ })], 8, _u), (e.replies?.length ?? 0) > 0 ? (h(), B("button", {
9062
9062
  key: 0,
9063
9063
  class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
9064
9064
  onClick: (t) => I(e.id)
9065
- }, [w.value.has(e.id) ? (h(), N(D(_i), {
9065
+ }, [w.value.has(e.id) ? (h(), N(D(vi), {
9066
9066
  key: 0,
9067
9067
  size: 11,
9068
9068
  "stroke-width": 2
9069
- })) : (h(), N(D(mi), {
9069
+ })) : (h(), N(D(hi), {
9070
9070
  key: 1,
9071
9071
  size: 11,
9072
9072
  "stroke-width": 2
9073
- })), T(" " + M((e.replies?.length ?? 0) === 1 ? D(o)(D(s).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : D(o)(D(s).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, _u)) : C("", !0)])) : C("", !0)
9073
+ })), T(" " + M((e.replies?.length ?? 0) === 1 ? D(o)(D(s).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : D(o)(D(s).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, vu)) : C("", !0)])) : C("", !0)
9074
9074
  ]),
9075
9075
  V(ae, { name: "tpl-replies" }, {
9076
- default: b(() => [w.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (h(), B("div", vu, [(h(!0), B(j, null, u(e.replies, (t, r) => (h(), B("div", {
9076
+ default: b(() => [w.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (h(), B("div", yu, [(h(!0), B(j, null, u(e.replies, (t, r) => (h(), B("div", {
9077
9077
  key: t.id,
9078
9078
  class: z(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
9079
9079
  }, [
9080
- P("div", yu, [P("div", bu, [
9081
- P("span", xu, M(ve(t) ? D(s).comments.ownedByYou : t.author_name), 1),
9082
- P("span", Su, M(ye(t.created_at)), 1),
9083
- t.updated_at === t.created_at ? C("", !0) : (h(), B("span", Cu, " (" + M(D(s).comments.edited) + ") ", 1))
9084
- ]), P("div", wu, [ve(t) ? (h(), B("button", {
9080
+ P("div", bu, [P("div", xu, [
9081
+ P("span", Su, M(ve(t) ? D(s).comments.ownedByYou : t.author_name), 1),
9082
+ P("span", Cu, M(ye(t.created_at)), 1),
9083
+ t.updated_at === t.created_at ? C("", !0) : (h(), B("span", wu, " (" + M(D(s).comments.edited) + ") ", 1))
9084
+ ]), P("div", Tu, [ve(t) ? (h(), B("button", {
9085
9085
  key: 0,
9086
9086
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
9087
9087
  title: D(s).comments.edit,
9088
9088
  onClick: (e) => L(t)
9089
- }, [V(D(Fi), {
9089
+ }, [V(D(Ii), {
9090
9090
  size: 11,
9091
9091
  "stroke-width": 2
9092
- })], 8, Tu)) : C("", !0), ve(t) ? (h(), B("button", {
9092
+ })], 8, Eu)) : C("", !0), ve(t) ? (h(), B("button", {
9093
9093
  key: 1,
9094
9094
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
9095
9095
  title: D(s).comments.delete,
9096
9096
  onClick: (e) => de(t.id)
9097
- }, [V(D(Ki), {
9097
+ }, [V(D(qi), {
9098
9098
  size: 11,
9099
9099
  "stroke-width": 2
9100
- })], 8, Eu)) : C("", !0)])]),
9101
- x.value === t.id ? (h(), B("div", Du, [c(P("textarea", {
9100
+ })], 8, Du)) : C("", !0)])]),
9101
+ x.value === t.id ? (h(), B("div", Ou, [c(P("textarea", {
9102
9102
  "onUpdate:modelValue": n[7] ||= (e) => S.value = e,
9103
9103
  class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
9104
9104
  rows: "2",
9105
9105
  onKeydown: (e) => Se(e, t.id)
9106
- }, null, 40, Ou), [[E, S.value]]), P("div", ku, [P("button", {
9106
+ }, null, 40, ku), [[E, S.value]]), P("div", Au, [P("button", {
9107
9107
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
9108
9108
  disabled: !S.value.trim() || D(p).isSubmitting.value,
9109
9109
  onClick: (e) => he(t.id)
9110
- }, M(D(s).comments.save), 9, Au), P("button", {
9110
+ }, M(D(s).comments.save), 9, ju), P("button", {
9111
9111
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
9112
9112
  onClick: n[8] ||= (e) => ue()
9113
- }, M(D(s).comments.cancel), 1)])])) : (h(), B("p", ju, M(t.body), 1)),
9114
- O.value === t.id ? (h(), B("div", Mu, [
9115
- P("span", Nu, M(D(s).comments.deleteConfirm), 1),
9113
+ }, M(D(s).comments.cancel), 1)])])) : (h(), B("p", Mu, M(t.body), 1)),
9114
+ O.value === t.id ? (h(), B("div", Nu, [
9115
+ P("span", Pu, M(D(s).comments.deleteConfirm), 1),
9116
9116
  P("button", {
9117
9117
  class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
9118
9118
  onClick: (e) => ge(t.id)
9119
- }, M(D(s).comments.delete), 9, Pu),
9119
+ }, M(D(s).comments.delete), 9, Fu),
9120
9120
  P("button", {
9121
9121
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
9122
9122
  onClick: n[9] ||= (e) => fe()
@@ -9126,30 +9126,30 @@ var Rl = {
9126
9126
  _: 2
9127
9127
  }, 1024),
9128
9128
  V(ae, { name: "tpl-replies" }, {
9129
- default: b(() => [v.value === e.id ? (h(), B("div", Fu, [P("div", Iu, [c(P("textarea", {
9129
+ default: b(() => [v.value === e.id ? (h(), B("div", Iu, [P("div", Lu, [c(P("textarea", {
9130
9130
  "onUpdate:modelValue": n[10] ||= (e) => y.value = e,
9131
9131
  class: "tpl:flex-1 tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
9132
9132
  placeholder: D(s).comments.replyPlaceholder,
9133
9133
  rows: "2",
9134
9134
  onKeydown: (t) => xe(t, e.id)
9135
- }, null, 40, Lu), [[E, y.value]]), P("div", Ru, [P("button", {
9135
+ }, null, 40, Ru), [[E, y.value]]), P("div", zu, [P("button", {
9136
9136
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
9137
9137
  disabled: !y.value.trim() || D(p).isSubmitting.value,
9138
9138
  onClick: (t) => me(e.id)
9139
- }, [V(D(Bi), {
9139
+ }, [V(D(Vi), {
9140
9140
  size: 14,
9141
9141
  "stroke-width": 2
9142
- })], 8, zu), P("button", {
9142
+ })], 8, Bu), P("button", {
9143
9143
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
9144
9144
  onClick: n[11] ||= (e) => le()
9145
- }, [V(D(Zi), {
9145
+ }, [V(D(Qi), {
9146
9146
  size: 14,
9147
9147
  "stroke-width": 2
9148
9148
  })])])])])) : C("", !0)]),
9149
9149
  _: 2
9150
9150
  }, 1024)
9151
9151
  ]))), 128))]))]),
9152
- P("div", Bu, [re.value ? (h(), B("div", Vu, M(D(s).comments.saveTemplateFirst), 1)) : (h(), B("div", Hu, [c(P("textarea", {
9152
+ P("div", Vu, [re.value ? (h(), B("div", Hu, M(D(s).comments.saveTemplateFirst), 1)) : (h(), B("div", Uu, [c(P("textarea", {
9153
9153
  ref_key: "newCommentInput",
9154
9154
  ref: A,
9155
9155
  "onUpdate:modelValue": n[12] ||= (e) => _.value = e,
@@ -9158,46 +9158,46 @@ var Rl = {
9158
9158
  disabled: D(p).isSubmitting.value,
9159
9159
  rows: "2",
9160
9160
  onKeydown: be
9161
- }, null, 40, Uu), [[E, _.value]]), P("button", {
9161
+ }, null, 40, Wu), [[E, _.value]]), P("button", {
9162
9162
  class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
9163
9163
  disabled: !_.value.trim() || D(p).isSubmitting.value,
9164
9164
  onClick: pe
9165
- }, [D(p).isSubmitting.value ? (h(), N(D(Mi), {
9165
+ }, [D(p).isSubmitting.value ? (h(), N(D(Ni), {
9166
9166
  key: 0,
9167
9167
  class: "tpl-spinner",
9168
9168
  size: 16,
9169
9169
  "stroke-width": 2
9170
- })) : (h(), N(D(Bi), {
9170
+ })) : (h(), N(D(Vi), {
9171
9171
  key: 1,
9172
9172
  size: 16,
9173
9173
  "stroke-width": 2
9174
- }))], 8, Wu)]))])
9174
+ }))], 8, Gu)]))])
9175
9175
  ])) : C("", !0)]),
9176
9176
  _: 1
9177
9177
  }));
9178
9178
  }
9179
- }), Ku = /* @__PURE__ */ t({ default: () => qu }), qu = /* @__PURE__ */ J(Gu, [["__scopeId", "data-v-5f25dfd0"]]), Ju = {
9179
+ }), qu = /* @__PURE__ */ t({ default: () => Ju }), Ju = /* @__PURE__ */ J(Ku, [["__scopeId", "data-v-5f25dfd0"]]), Yu = {
9180
9180
  key: 0,
9181
9181
  class: "tpl-design-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
9182
- }, Yu = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Xu = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, Zu = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Qu = {
9182
+ }, Xu = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Zu = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, Qu = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, $u = {
9183
9183
  key: 0,
9184
9184
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
9185
- }, $u = { class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-center tpl:gap-3" }, ed = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, td = {
9185
+ }, ed = { class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-center tpl:gap-3" }, td = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, nd = {
9186
9186
  key: 1,
9187
9187
  class: "tpl:flex tpl:flex-col tpl:gap-4"
9188
- }, nd = { class: "tpl:flex tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, rd = {
9188
+ }, rd = { class: "tpl:flex tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, id = {
9189
9189
  key: 0,
9190
9190
  class: "tpl:flex tpl:flex-col tpl:gap-2"
9191
- }, id = { class: "tpl:relative tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ad = ["src", "alt"], od = {
9191
+ }, ad = { class: "tpl:relative tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, od = ["src", "alt"], sd = {
9192
9192
  key: 1,
9193
9193
  class: "tpl:flex tpl:h-32 tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2"
9194
- }, sd = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, cd = { class: "tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ld = { class: "tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, ud = ["accept"], dd = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, fd = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pd = ["placeholder"], md = {
9194
+ }, cd = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ld = { class: "tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ud = { class: "tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, dd = ["accept"], fd = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, pd = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, md = ["placeholder"], hd = {
9195
9195
  key: 0,
9196
9196
  class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:px-3 tpl:py-3 tpl:bg-[var(--tpl-warning-light)] tpl:border tpl:border-[var(--tpl-warning)]"
9197
- }, hd = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, gd = { class: "tpl:flex tpl:gap-2" }, _d = {
9197
+ }, gd = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, _d = { class: "tpl:flex tpl:gap-2" }, vd = {
9198
9198
  key: 1,
9199
9199
  class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
9200
- }, vd = ["disabled"], yd = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, bd = /* @__PURE__ */ i({
9200
+ }, yd = ["disabled"], bd = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, xd = /* @__PURE__ */ i({
9201
9201
  __name: "DesignReferenceSidebar",
9202
9202
  props: {
9203
9203
  visible: { type: Boolean },
@@ -9205,8 +9205,8 @@ var Rl = {
9205
9205
  },
9206
9206
  emits: ["close", "apply"],
9207
9207
  setup(e, { emit: t }) {
9208
- let n = e, r = t, { t: i } = ua(), a = Rr(ur, "DesignReferenceSidebar"), o = Bc({
9209
- authManager: Rr(Mr, "DesignReferenceSidebar"),
9208
+ let n = e, r = t, { t: i } = da(), a = zr(ur, "DesignReferenceSidebar"), o = Vc({
9209
+ authManager: zr(Nr, "DesignReferenceSidebar"),
9210
9210
  getTemplateId: () => a.state.template?.id ?? null,
9211
9211
  onApply: (e) => r("apply", e)
9212
9212
  }), s = R(null), u = R("image"), d = R(null), f = R(""), p = R(null), m = R(!1), g = R(!1), _ = F(() => o.isGenerating.value ? !1 : d.value !== null);
@@ -9277,17 +9277,17 @@ var Rl = {
9277
9277
  "leave-from-class": "tpl:translate-x-0",
9278
9278
  "leave-to-class": "tpl:translate-x-full"
9279
9279
  }, {
9280
- default: b(() => [e.visible ? (h(), B("div", Ju, [P("div", Yu, [P("div", Xu, [V(D(ki), {
9280
+ default: b(() => [e.visible ? (h(), B("div", Yu, [P("div", Xu, [P("div", Zu, [V(D(Ai), {
9281
9281
  size: 13,
9282
9282
  "stroke-width": 2
9283
9283
  }), P("span", null, M(D(i).designReference.title), 1)]), P("button", {
9284
9284
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
9285
9285
  onClick: n[0] ||= (e) => r("close")
9286
- }, [V(D(Zi), {
9286
+ }, [V(D(Qi), {
9287
9287
  size: 14,
9288
9288
  "stroke-width": 2
9289
- })])]), P("div", Zu, [D(o).isGenerating.value ? (h(), B("div", Qu, [P("div", $u, [V(aa), P("p", ed, M(D(i).designReference.generating), 1)])])) : (h(), B("div", td, [
9290
- P("div", nd, [P("button", {
9289
+ })])]), P("div", Qu, [D(o).isGenerating.value ? (h(), B("div", $u, [P("div", ed, [V(oa), P("p", td, M(D(i).designReference.generating), 1)])])) : (h(), B("div", nd, [
9290
+ P("div", rd, [P("button", {
9291
9291
  class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
9292
9292
  style: k({
9293
9293
  backgroundColor: u.value === "image" ? "var(--tpl-bg)" : "transparent",
@@ -9295,7 +9295,7 @@ var Rl = {
9295
9295
  boxShadow: u.value === "image" ? "var(--tpl-shadow)" : "none"
9296
9296
  }),
9297
9297
  onClick: n[1] ||= (e) => v("image")
9298
- }, [V(D(Ti), {
9298
+ }, [V(D(Ei), {
9299
9299
  size: 12,
9300
9300
  "stroke-width": 2
9301
9301
  }), T(" " + M(D(i).designReference.uploadImage), 1)], 4), P("button", {
@@ -9306,23 +9306,23 @@ var Rl = {
9306
9306
  boxShadow: u.value === "pdf" ? "var(--tpl-shadow)" : "none"
9307
9307
  }),
9308
9308
  onClick: n[2] ||= (e) => v("pdf")
9309
- }, [V(D(Ei), {
9309
+ }, [V(D(Di), {
9310
9310
  size: 12,
9311
9311
  "stroke-width": 2
9312
9312
  }), T(" " + M(D(i).designReference.uploadPdf), 1)], 4)]),
9313
- P("div", null, [d.value ? (h(), B("div", rd, [P("div", id, [p.value ? (h(), B("img", {
9313
+ P("div", null, [d.value ? (h(), B("div", id, [P("div", ad, [p.value ? (h(), B("img", {
9314
9314
  key: 0,
9315
9315
  src: p.value,
9316
9316
  alt: d.value.name,
9317
9317
  class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
9318
- }, null, 8, ad)) : (h(), B("div", od, [V(D(Ei), {
9318
+ }, null, 8, od)) : (h(), B("div", sd, [V(D(Di), {
9319
9319
  size: 32,
9320
9320
  "stroke-width": 1.5,
9321
9321
  class: "tpl:text-[var(--tpl-text-dim)]"
9322
- }), P("span", sd, M(d.value.name), 1)])), P("button", {
9322
+ }), P("span", cd, M(d.value.name), 1)])), P("button", {
9323
9323
  class: "tpl:absolute tpl:top-2 tpl:right-2 tpl:rounded-full tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow)]",
9324
9324
  onClick: S
9325
- }, [V(D(Zi), {
9325
+ }, [V(D(Qi), {
9326
9326
  size: 12,
9327
9327
  "stroke-width": 2
9328
9328
  })])])])) : (h(), B("div", {
@@ -9337,13 +9337,13 @@ var Rl = {
9337
9337
  onDragleave: O,
9338
9338
  onDrop: A
9339
9339
  }, [
9340
- V(D(Yi), {
9340
+ V(D(Xi), {
9341
9341
  size: 24,
9342
9342
  "stroke-width": 1.5,
9343
9343
  class: "tpl:text-[var(--tpl-text-dim)]"
9344
9344
  }),
9345
- P("span", cd, M(D(i).designReference.dropHint), 1),
9346
- P("span", ld, M(u.value === "image" ? D(i).designReference.acceptedImages : D(i).designReference.acceptedPdf), 1)
9345
+ P("span", ld, M(D(i).designReference.dropHint), 1),
9346
+ P("span", ud, M(u.value === "image" ? D(i).designReference.acceptedImages : D(i).designReference.acceptedPdf), 1)
9347
9347
  ], 36)), P("input", {
9348
9348
  ref_key: "fileInput",
9349
9349
  ref: s,
@@ -9351,14 +9351,14 @@ var Rl = {
9351
9351
  class: "tpl:hidden",
9352
9352
  accept: u.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
9353
9353
  onChange: y
9354
- }, null, 40, ud)]),
9355
- P("div", dd, [P("label", fd, M(D(i).designReference.promptLabel), 1), c(P("textarea", {
9354
+ }, null, 40, dd)]),
9355
+ P("div", fd, [P("label", pd, M(D(i).designReference.promptLabel), 1), c(P("textarea", {
9356
9356
  "onUpdate:modelValue": n[4] ||= (e) => f.value = e,
9357
9357
  class: z(["tpl:min-h-[72px] tpl:w-full tpl:resize-none tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:font-sans tpl:text-sm tpl:outline-none tpl:transition-colors tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", ["tpl-design-prompt-input"]]),
9358
9358
  placeholder: D(i).designReference.promptPlaceholder,
9359
9359
  rows: "3"
9360
- }, null, 8, pd), [[E, f.value]])]),
9361
- m.value ? (h(), B("div", md, [P("p", hd, M(D(i).designReference.replaceWarning), 1), P("div", gd, [P("button", {
9360
+ }, null, 8, md), [[E, f.value]])]),
9361
+ m.value ? (h(), B("div", hd, [P("p", gd, M(D(i).designReference.replaceWarning), 1), P("div", _d, [P("button", {
9362
9362
  class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
9363
9363
  style: { "background-color": "transparent" },
9364
9364
  onClick: ee
@@ -9366,7 +9366,7 @@ var Rl = {
9366
9366
  class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
9367
9367
  onClick: j
9368
9368
  }, M(D(i).designReference.replaceConfirm), 1)])])) : C("", !0),
9369
- D(o).error.value ? (h(), B("div", _d, [V(D(vi), {
9369
+ D(o).error.value ? (h(), B("div", vd, [V(D(yi), {
9370
9370
  size: 14,
9371
9371
  "stroke-width": 2,
9372
9372
  class: "tpl:mt-0.5 tpl:shrink-0"
@@ -9376,23 +9376,23 @@ var Rl = {
9376
9376
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
9377
9377
  disabled: !_.value,
9378
9378
  onClick: j
9379
- }, [V(D(ki), {
9379
+ }, [V(D(Ai), {
9380
9380
  size: 16,
9381
9381
  "stroke-width": 2
9382
- }), T(" " + M(D(i).designReference.generate), 1)], 8, vd)),
9383
- P("p", yd, M(D(i).aiMenu.disclaimer), 1)
9382
+ }), T(" " + M(D(i).designReference.generate), 1)], 8, yd)),
9383
+ P("p", bd, M(D(i).aiMenu.disclaimer), 1)
9384
9384
  ]))])])) : C("", !0)]),
9385
9385
  _: 1
9386
9386
  }));
9387
9387
  }
9388
- }), xd = /* @__PURE__ */ t({ default: () => Sd }), Sd = /* @__PURE__ */ J(bd, [["__scopeId", "data-v-b9358bf2"]]), Cd = ["data-tpl-theme"], wd = /* @__PURE__ */ i({
9388
+ }), Sd = /* @__PURE__ */ t({ default: () => Cd }), Cd = /* @__PURE__ */ J(xd, [["__scopeId", "data-v-b9358bf2"]]), wd = ["data-tpl-theme"], Td = /* @__PURE__ */ i({
9389
9389
  __name: "TplModal",
9390
9390
  props: { visible: { type: Boolean } },
9391
9391
  emits: ["close", "keydown"],
9392
9392
  setup(e, { emit: t }) {
9393
9393
  let n = e, r = t, i = R(null);
9394
- sa(i, F(() => n.visible));
9395
- let o = a(vr);
9394
+ ca(i, F(() => n.visible));
9395
+ let o = a(yr);
9396
9396
  function s(e) {
9397
9397
  e.key === "Escape" && r("close"), r("keydown", e);
9398
9398
  }
@@ -9418,30 +9418,30 @@ var Rl = {
9418
9418
  }, [P("div", {
9419
9419
  ref_key: "dialogRef",
9420
9420
  ref: i
9421
- }, [p(t.$slots, "default")], 512)], 40, Cd)) : C("", !0)]),
9421
+ }, [p(t.$slots, "default")], 512)], 40, wd)) : C("", !0)]),
9422
9422
  _: 3
9423
9423
  })]));
9424
9424
  }
9425
- }), Td = ["disabled", "title"], Ed = ["title"], Dd = {
9425
+ }), Ed = ["disabled", "title"], Dd = ["title"], Od = {
9426
9426
  key: 0,
9427
9427
  class: "tpl-scale-in tpl:absolute tpl:top-full tpl:left-1/2 tpl:z-50 tpl:mt-2 tpl:w-72 tpl:-translate-x-1/2 tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
9428
9428
  style: {
9429
9429
  "backdrop-filter": "blur(8px)",
9430
9430
  "-webkit-backdrop-filter": "blur(8px)"
9431
9431
  }
9432
- }, Od = { class: "tpl:border-b tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)] tpl:border-[var(--tpl-border)]" }, kd = {
9432
+ }, kd = { class: "tpl:border-b tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)] tpl:border-[var(--tpl-border)]" }, Ad = {
9433
9433
  key: 0,
9434
9434
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8"
9435
- }, Ad = {
9435
+ }, jd = {
9436
9436
  key: 1,
9437
9437
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
9438
- }, jd = {
9438
+ }, Md = {
9439
9439
  key: 2,
9440
9440
  class: "tpl:max-h-64 tpl:overflow-y-auto"
9441
- }, Md = ["disabled", "onClick"], Nd = { class: "tpl:flex tpl:flex-col tpl:gap-0.5" }, Pd = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Fd = {
9441
+ }, Nd = ["disabled", "onClick"], Pd = { class: "tpl:flex tpl:flex-col tpl:gap-0.5" }, Fd = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Id = {
9442
9442
  key: 0,
9443
9443
  class: "tpl:rounded tpl:px-1 tpl:py-0.5 tpl:text-[10px] tpl:font-normal tpl:bg-[var(--tpl-bg-active)] tpl:text-[var(--tpl-text-muted)]"
9444
- }, Id = ["disabled", "title"], Ld = /* @__PURE__ */ i({
9444
+ }, Ld = ["disabled", "title"], Rd = /* @__PURE__ */ i({
9445
9445
  __name: "SnapshotHistory",
9446
9446
  props: {
9447
9447
  snapshots: {},
@@ -9450,7 +9450,7 @@ var Rl = {
9450
9450
  },
9451
9451
  emits: ["load", "navigate"],
9452
9452
  setup(e, { emit: t }) {
9453
- let n = e, r = t, { format: i } = K(), { t: a } = ua(), o = R(!1), s = R(null), c = R(-1);
9453
+ let n = e, r = t, { format: i } = K(), { t: a } = da(), o = R(!1), s = R(null), c = R(-1);
9454
9454
  l(() => n.snapshots.length, () => {
9455
9455
  c.value = -1;
9456
9456
  });
@@ -9469,7 +9469,7 @@ var Rl = {
9469
9469
  t !== -1 && (c.value = t, r("navigate", n.snapshots[t])), o.value = !1;
9470
9470
  }
9471
9471
  function v(e) {
9472
- let t = Ll(e, a.snapshotHistory, i, 7);
9472
+ let t = Rl(e, a.snapshotHistory, i, 7);
9473
9473
  return t === null ? new Date(e).toLocaleDateString(void 0, {
9474
9474
  month: "short",
9475
9475
  day: "numeric",
@@ -9489,34 +9489,34 @@ var Rl = {
9489
9489
  disabled: !f.value,
9490
9490
  title: D(a).snapshotHistory.olderSnapshot,
9491
9491
  onClick: O(m, ["stop"])
9492
- }, [V(D(hi), {
9492
+ }, [V(D(gi), {
9493
9493
  size: 14,
9494
9494
  "stroke-width": 2
9495
- })], 8, Td),
9495
+ })], 8, Ed),
9496
9496
  P("button", {
9497
9497
  class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
9498
9498
  title: D(a).snapshotHistory.tooltip,
9499
9499
  onClick: O(g, ["stop"])
9500
- }, [V(D(bi), {
9500
+ }, [V(D(xi), {
9501
9501
  size: 16,
9502
9502
  "stroke-width": 1.5
9503
- }), V(D(mi), {
9503
+ }), V(D(hi), {
9504
9504
  class: z(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": o.value }]),
9505
9505
  size: 10,
9506
9506
  "stroke-width": 2
9507
- }, null, 8, ["class"])], 8, Ed),
9507
+ }, null, 8, ["class"])], 8, Dd),
9508
9508
  V(ae, { name: "tpl-dropdown" }, {
9509
- default: b(() => [o.value ? (h(), B("div", Dd, [P("div", Od, M(D(a).snapshotHistory.dropdownTitle), 1), e.isLoading ? (h(), B("div", kd, [V(D(Mi), {
9509
+ default: b(() => [o.value ? (h(), B("div", Od, [P("div", kd, M(D(a).snapshotHistory.dropdownTitle), 1), e.isLoading ? (h(), B("div", Ad, [V(D(Ni), {
9510
9510
  class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
9511
9511
  size: 20,
9512
9512
  "stroke-width": 2
9513
- })])) : e.snapshots.length === 0 ? (h(), B("div", Ad, M(D(a).snapshotHistory.noSnapshots), 1)) : (h(), B("div", jd, [(h(!0), B(j, null, u(e.snapshots, (t) => (h(), B("button", {
9513
+ })])) : e.snapshots.length === 0 ? (h(), B("div", jd, M(D(a).snapshotHistory.noSnapshots), 1)) : (h(), B("div", Md, [(h(!0), B(j, null, u(e.snapshots, (t) => (h(), B("button", {
9514
9514
  key: t.id,
9515
9515
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-b tpl:border-b-[var(--tpl-border-light)] tpl:border-l-2 tpl:border-l-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:duration-150 last:tpl:border-b-0 hover:tpl:border-l-[var(--tpl-primary)] hover:tpl:bg-[var(--tpl-bg-hover)]",
9516
9516
  style: { "background-color": "transparent" },
9517
9517
  disabled: e.isRestoring,
9518
9518
  onClick: (e) => _(t.id)
9519
- }, [P("div", Nd, [P("div", Pd, [P("span", null, M(v(t.created_at)), 1), t.is_autosave ? (h(), B("span", Fd, M(D(a).snapshotHistory.auto), 1)) : C("", !0)])])], 8, Md))), 128))]))])) : C("", !0)]),
9519
+ }, [P("div", Pd, [P("div", Fd, [P("span", null, M(v(t.created_at)), 1), t.is_autosave ? (h(), B("span", Id, M(D(a).snapshotHistory.auto), 1)) : C("", !0)])])], 8, Nd))), 128))]))])) : C("", !0)]),
9520
9520
  _: 1
9521
9521
  }),
9522
9522
  P("button", {
@@ -9524,74 +9524,74 @@ var Rl = {
9524
9524
  disabled: !d.value,
9525
9525
  title: D(a).snapshotHistory.newerSnapshot,
9526
9526
  onClick: O(p, ["stop"])
9527
- }, [V(D(gi), {
9527
+ }, [V(D(_i), {
9528
9528
  size: 14,
9529
9529
  "stroke-width": 2
9530
- })], 8, Id)
9530
+ })], 8, Ld)
9531
9531
  ], 512));
9532
9532
  }
9533
- }), Rd = /* @__PURE__ */ t({ default: () => zd }), zd = Ld;
9533
+ }), zd = /* @__PURE__ */ t({ default: () => Bd }), Bd = Rd;
9534
9534
  //#endregion
9535
9535
  //#region src/cloud/utils/scoringStyles.ts
9536
- function Bd(e) {
9536
+ function Vd(e) {
9537
9537
  return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
9538
9538
  }
9539
- function Vd(e) {
9539
+ function Hd(e) {
9540
9540
  return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
9541
9541
  }
9542
- function Hd(e) {
9542
+ function Ud(e) {
9543
9543
  return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
9544
9544
  }
9545
- function Ud(e) {
9545
+ function Wd(e) {
9546
9546
  return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
9547
9547
  }
9548
9548
  //#endregion
9549
9549
  //#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
9550
- var Wd = {
9550
+ var Gd = {
9551
9551
  key: 0,
9552
9552
  class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
9553
- }, Gd = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Kd = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, qd = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Jd = ["title"], Yd = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Xd = {
9553
+ }, Kd = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, qd = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, Jd = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Yd = ["title"], Xd = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Zd = {
9554
9554
  key: 0,
9555
9555
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
9556
- }, Zd = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Qd = {
9556
+ }, Qd = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, $d = {
9557
9557
  key: 1,
9558
9558
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
9559
- }, $d = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ef = {
9559
+ }, ef = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, tf = {
9560
9560
  key: 2,
9561
9561
  class: "tpl:flex tpl:flex-col tpl:gap-4"
9562
- }, tf = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, nf = {
9562
+ }, nf = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, rf = {
9563
9563
  key: 0,
9564
9564
  class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
9565
- }, rf = {
9565
+ }, af = {
9566
9566
  key: 0,
9567
9567
  class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
9568
- }, af = ["onClick"], of = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, sf = {
9568
+ }, of = ["onClick"], sf = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, cf = {
9569
9569
  key: 0,
9570
9570
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
9571
- }, cf = {
9571
+ }, lf = {
9572
9572
  key: 0,
9573
9573
  class: "tpl:border-t tpl:border-[var(--tpl-border)]"
9574
- }, lf = {
9574
+ }, uf = {
9575
9575
  key: 0,
9576
9576
  class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
9577
- }, uf = { class: "tpl:flex tpl:items-start tpl:gap-2" }, df = { class: "tpl:flex-1 tpl:min-w-0" }, ff = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, pf = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, mf = {
9577
+ }, df = { class: "tpl:flex tpl:items-start tpl:gap-2" }, ff = { class: "tpl:flex-1 tpl:min-w-0" }, pf = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, mf = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, hf = {
9578
9578
  key: 0,
9579
9579
  class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
9580
- }, hf = {
9580
+ }, gf = {
9581
9581
  key: 1,
9582
9582
  class: "tpl:mt-2 tpl:flex tpl:justify-center"
9583
- }, gf = ["disabled", "onClick"], _f = {
9583
+ }, _f = ["disabled", "onClick"], vf = {
9584
9584
  key: 0,
9585
9585
  class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
9586
- }, vf = {
9586
+ }, yf = {
9587
9587
  key: 3,
9588
9588
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
9589
- }, yf = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, bf = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, xf = /* @__PURE__ */ i({
9589
+ }, bf = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xf = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Sf = /* @__PURE__ */ i({
9590
9590
  __name: "TemplateScoringPanel",
9591
9591
  props: { visible: { type: Boolean } },
9592
9592
  emits: ["close"],
9593
9593
  setup(e, { emit: t }) {
9594
- let n = e, r = t, { t: i } = ua(), o = Rr(ur, "TemplateScoringPanel"), s = Rr(Ir, "TemplateScoringPanel"), c = a(Sr, []), d = R({
9594
+ let n = e, r = t, { t: i } = da(), o = zr(ur, "TemplateScoringPanel"), s = zr(Lr, "TemplateScoringPanel"), c = a(Cr, []), d = R({
9595
9595
  spam: !0,
9596
9596
  readability: !0,
9597
9597
  accessibility: !0,
@@ -9606,10 +9606,10 @@ var Wd = {
9606
9606
  "accessibility",
9607
9607
  "bestPractices"
9608
9608
  ], m = {
9609
- spam: Ui,
9610
- readability: wi,
9611
- accessibility: Wi,
9612
- bestPractices: Qi
9609
+ spam: Wi,
9610
+ readability: Ti,
9611
+ accessibility: Gi,
9612
+ bestPractices: $i
9613
9613
  };
9614
9614
  function g() {
9615
9615
  s.score(o.content.value, c);
@@ -9637,50 +9637,50 @@ var Wd = {
9637
9637
  "leave-from-class": "tpl:translate-x-0",
9638
9638
  "leave-to-class": "tpl:translate-x-full"
9639
9639
  }, {
9640
- default: b(() => [e.visible ? (h(), B("div", Wd, [P("div", Gd, [P("div", Kd, [V(D(Hi), {
9640
+ default: b(() => [e.visible ? (h(), B("div", Gd, [P("div", Kd, [P("div", qd, [V(D(Ui), {
9641
9641
  size: 13,
9642
9642
  "stroke-width": 2
9643
- }), P("span", null, M(D(i).scoring.title), 1)]), P("div", qd, [D(s).scoringResult.value && !D(s).isScoring.value ? (h(), B("button", {
9643
+ }), P("span", null, M(D(i).scoring.title), 1)]), P("div", Jd, [D(s).scoringResult.value && !D(s).isScoring.value ? (h(), B("button", {
9644
9644
  key: 0,
9645
9645
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
9646
9646
  title: D(i).scoring.rescore,
9647
9647
  onClick: n[0] ||= (e) => g()
9648
- }, [V(D(Ri), {
9648
+ }, [V(D(zi), {
9649
9649
  size: 14,
9650
9650
  "stroke-width": 2
9651
- })], 8, Jd)) : C("", !0), P("button", {
9651
+ })], 8, Yd)) : C("", !0), P("button", {
9652
9652
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
9653
9653
  onClick: n[1] ||= (e) => r("close")
9654
- }, [V(D(Zi), {
9654
+ }, [V(D(Qi), {
9655
9655
  size: 14,
9656
9656
  "stroke-width": 2
9657
- })])])]), P("div", Yd, [D(s).isScoring.value ? (h(), B("div", Xd, [P("p", Zd, M(D(i).scoring.scoring), 1), V(aa, { class: "tpl:w-3/4" })])) : D(s).error.value && !D(s).scoringResult.value ? (h(), B("div", Qd, [
9658
- V(D(vi), {
9657
+ })])])]), P("div", Xd, [D(s).isScoring.value ? (h(), B("div", Zd, [P("p", Qd, M(D(i).scoring.scoring), 1), V(oa, { class: "tpl:w-3/4" })])) : D(s).error.value && !D(s).scoringResult.value ? (h(), B("div", $d, [
9658
+ V(D(yi), {
9659
9659
  size: 32,
9660
9660
  "stroke-width": 1.5,
9661
9661
  class: "tpl:text-[var(--tpl-danger)]"
9662
9662
  }),
9663
- P("p", $d, M(D(i).scoring.error), 1),
9663
+ P("p", ef, M(D(i).scoring.error), 1),
9664
9664
  P("button", {
9665
9665
  class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
9666
9666
  onClick: n[2] ||= (e) => g()
9667
- }, [V(D(Ri), {
9667
+ }, [V(D(zi), {
9668
9668
  size: 12,
9669
9669
  "stroke-width": 2
9670
9670
  }), T(" " + M(D(i).scoring.rescore), 1)])
9671
- ])) : D(s).scoringResult.value ? (h(), B("div", ef, [
9671
+ ])) : D(s).scoringResult.value ? (h(), B("div", tf, [
9672
9672
  P("div", {
9673
9673
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
9674
- style: k({ backgroundColor: D(Vd)(D(s).scoringResult.value.score) })
9674
+ style: k({ backgroundColor: D(Hd)(D(s).scoringResult.value.score) })
9675
9675
  }, [
9676
9676
  P("span", {
9677
9677
  class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
9678
- style: k({ color: D(Bd)(D(s).scoringResult.value.score) })
9678
+ style: k({ color: D(Vd)(D(s).scoringResult.value.score) })
9679
9679
  }, M(D(s).scoringResult.value.score), 5),
9680
- P("span", tf, M(D(i).scoring.overallScore), 1),
9681
- v() > 0 ? (h(), B("span", nf, M(v()) + " " + M(D(i).scoring.findings), 1)) : C("", !0)
9680
+ P("span", nf, M(D(i).scoring.overallScore), 1),
9681
+ v() > 0 ? (h(), B("span", rf, M(v()) + " " + M(D(i).scoring.findings), 1)) : C("", !0)
9682
9682
  ], 4),
9683
- D(s).fixError.value ? (h(), B("div", rf, [V(D(vi), {
9683
+ D(s).fixError.value ? (h(), B("div", af, [V(D(yi), {
9684
9684
  size: 14,
9685
9685
  "stroke-width": 2,
9686
9686
  class: "tpl:mt-0.5 tpl:shrink-0"
@@ -9695,74 +9695,74 @@ var Wd = {
9695
9695
  (h(), N(ge(m[e]), {
9696
9696
  size: 14,
9697
9697
  "stroke-width": 2,
9698
- style: k({ color: D(Bd)(D(s).scoringResult.value.categories[e].score) })
9698
+ style: k({ color: D(Vd)(D(s).scoringResult.value.categories[e].score) })
9699
9699
  }, null, 8, ["style"])),
9700
- P("span", of, M(D(i).scoring.categories[e]), 1),
9700
+ P("span", sf, M(D(i).scoring.categories[e]), 1),
9701
9701
  P("span", {
9702
9702
  class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
9703
9703
  style: k({
9704
- color: D(Bd)(D(s).scoringResult.value.categories[e].score),
9705
- backgroundColor: D(Vd)(D(s).scoringResult.value.categories[e].score)
9704
+ color: D(Vd)(D(s).scoringResult.value.categories[e].score),
9705
+ backgroundColor: D(Hd)(D(s).scoringResult.value.categories[e].score)
9706
9706
  })
9707
9707
  }, M(D(s).scoringResult.value.categories[e].score), 5),
9708
- D(s).scoringResult.value.categories[e].findings.length > 0 ? (h(), B("span", sf, M(D(s).scoringResult.value.categories[e].findings.length), 1)) : C("", !0),
9709
- V(D(mi), {
9708
+ D(s).scoringResult.value.categories[e].findings.length > 0 ? (h(), B("span", cf, M(D(s).scoringResult.value.categories[e].findings.length), 1)) : C("", !0),
9709
+ V(D(hi), {
9710
9710
  size: 12,
9711
9711
  "stroke-width": 2,
9712
9712
  class: z(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", d.value[e] ? "tpl:rotate-0" : "tpl:-rotate-90"])
9713
9713
  }, null, 8, ["class"])
9714
- ], 8, af), d.value[e] ? (h(), B("div", cf, [D(s).scoringResult.value.categories[e].findings.length === 0 ? (h(), B("div", lf, M(D(i).scoring.noFindings), 1)) : C("", !0), (h(!0), B(j, null, u(D(s).scoringResult.value.categories[e].findings, (e) => (h(), B("div", {
9714
+ ], 8, of), d.value[e] ? (h(), B("div", lf, [D(s).scoringResult.value.categories[e].findings.length === 0 ? (h(), B("div", uf, M(D(i).scoring.noFindings), 1)) : C("", !0), (h(!0), B(j, null, u(D(s).scoringResult.value.categories[e].findings, (e) => (h(), B("div", {
9715
9715
  key: e.id,
9716
9716
  class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
9717
- }, [P("div", uf, [(h(), N(ge(D(e.severity === "high" ? vi : e.severity === "medium" ? qi : ji)), {
9717
+ }, [P("div", df, [(h(), N(ge(D(e.severity === "high" ? yi : e.severity === "medium" ? Ji : Mi)), {
9718
9718
  size: 13,
9719
9719
  "stroke-width": 2,
9720
9720
  class: "tpl:mt-0.5 tpl:shrink-0",
9721
- style: k({ color: D(Hd)(e.severity) })
9722
- }, null, 8, ["style"])), P("div", df, [
9723
- P("div", ff, [P("span", {
9721
+ style: k({ color: D(Ud)(e.severity) })
9722
+ }, null, 8, ["style"])), P("div", ff, [
9723
+ P("div", pf, [P("span", {
9724
9724
  class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
9725
9725
  style: k({
9726
- color: D(Hd)(e.severity),
9727
- backgroundColor: D(Ud)(e.severity)
9726
+ color: D(Ud)(e.severity),
9727
+ backgroundColor: D(Wd)(e.severity)
9728
9728
  })
9729
- }, M(D(i).scoring.severity[e.severity]), 5), P("span", pf, M(e.message), 1)]),
9730
- e.suggestion ? (h(), B("p", mf, M(e.suggestion), 1)) : C("", !0),
9731
- e.blockId ? (h(), B("div", hf, [P("button", {
9729
+ }, M(D(i).scoring.severity[e.severity]), 5), P("span", mf, M(e.message), 1)]),
9730
+ e.suggestion ? (h(), B("p", hf, M(e.suggestion), 1)) : C("", !0),
9731
+ e.blockId ? (h(), B("div", gf, [P("button", {
9732
9732
  class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
9733
9733
  style: { "background-color": "transparent" },
9734
9734
  disabled: D(s).fixingFindingId.value !== null,
9735
9735
  onClick: (t) => _(e)
9736
- }, [D(s).fixingFindingId.value === e.id ? (h(), N(D(Mi), {
9736
+ }, [D(s).fixingFindingId.value === e.id ? (h(), N(D(Ni), {
9737
9737
  key: 0,
9738
9738
  class: "tpl-spinner",
9739
9739
  size: 11,
9740
9740
  "stroke-width": 2
9741
- })) : (h(), N(D(Wi), {
9741
+ })) : (h(), N(D(Gi), {
9742
9742
  key: 1,
9743
9743
  size: 11,
9744
9744
  "stroke-width": 2
9745
- })), T(" " + M(D(s).fixingFindingId.value === e.id ? D(i).scoring.fixing : D(i).scoring.fix), 1)], 8, gf), D(s).fixError.value ? (h(), B("p", _f, M(D(s).fixError.value), 1)) : C("", !0)])) : C("", !0)
9745
+ })), T(" " + M(D(s).fixingFindingId.value === e.id ? D(i).scoring.fixing : D(i).scoring.fix), 1)], 8, _f), D(s).fixError.value ? (h(), B("p", vf, M(D(s).fixError.value), 1)) : C("", !0)])) : C("", !0)
9746
9746
  ])])]))), 128))])) : C("", !0)])), 64))
9747
- ])) : (h(), B("div", vf, [V(D(Hi), {
9747
+ ])) : (h(), B("div", yf, [V(D(Ui), {
9748
9748
  size: 32,
9749
9749
  "stroke-width": 1.5,
9750
9750
  class: "tpl:text-[var(--tpl-text-dim)]"
9751
- }), P("p", yf, M(D(i).scoring.emptyState), 1)])), P("p", bf, M(D(i).aiMenu.disclaimer), 1)])])) : C("", !0)]),
9751
+ }), P("p", bf, M(D(i).scoring.emptyState), 1)])), P("p", xf, M(D(i).aiMenu.disclaimer), 1)])])) : C("", !0)]),
9752
9752
  _: 1
9753
9753
  }));
9754
9754
  }
9755
- }), Sf = /* @__PURE__ */ t({ default: () => Cf }), Cf = /* @__PURE__ */ J(xf, [["__scopeId", "data-v-79e79258"]]), wf = ["aria-busy"], Tf = {
9755
+ }), Cf = /* @__PURE__ */ t({ default: () => wf }), wf = /* @__PURE__ */ J(Sf, [["__scopeId", "data-v-79e79258"]]), Tf = ["aria-busy"], Ef = {
9756
9756
  id: "tpl-test-email-title",
9757
9757
  class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
9758
- }, Ef = { class: "tpl:mb-3" }, Df = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Of = ["value"], kf = ["disabled"], Af = ["value"], jf = {
9758
+ }, Df = { class: "tpl:mb-3" }, Of = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, kf = ["value"], Af = ["disabled"], jf = ["value"], Mf = {
9759
9759
  key: 0,
9760
9760
  role: "alert",
9761
9761
  class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
9762
- }, Mf = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Nf = ["disabled"], Pf = ["disabled"], Ff = {
9762
+ }, Nf = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Pf = ["disabled"], Ff = ["disabled"], If = {
9763
9763
  key: 0,
9764
9764
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
9765
- }, If = { key: 1 }, Lf = /* @__PURE__ */ i({
9765
+ }, Lf = { key: 1 }, Rf = /* @__PURE__ */ i({
9766
9766
  __name: "TestEmailModal",
9767
9767
  props: {
9768
9768
  visible: { type: Boolean },
@@ -9772,7 +9772,7 @@ var Wd = {
9772
9772
  },
9773
9773
  emits: ["send", "close"],
9774
9774
  setup(e, { emit: t }) {
9775
- let n = e, r = t, { t: i } = ua(), a = R("");
9775
+ let n = e, r = t, { t: i } = da(), a = R("");
9776
9776
  l(() => n.visible, (e) => {
9777
9777
  e && (a.value = n.allowedEmails[0] ?? "");
9778
9778
  });
@@ -9785,7 +9785,7 @@ var Wd = {
9785
9785
  function d(e) {
9786
9786
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), o()), e.key === "Escape" && s();
9787
9787
  }
9788
- return (t, n) => (h(), N(wd, {
9788
+ return (t, n) => (h(), N(Td, {
9789
9789
  visible: e.visible,
9790
9790
  onClose: s,
9791
9791
  onKeydown: d
@@ -9801,14 +9801,14 @@ var Wd = {
9801
9801
  "box-shadow": "var(--tpl-shadow-xl)"
9802
9802
  }
9803
9803
  }, [
9804
- P("h3", Tf, M(D(i).testEmail.title), 1),
9805
- P("div", Ef, [P("label", Df, M(D(i).testEmail.recipientLabel), 1), e.allowedEmails.length === 1 ? (h(), B("input", {
9804
+ P("h3", Ef, M(D(i).testEmail.title), 1),
9805
+ P("div", Df, [P("label", Of, M(D(i).testEmail.recipientLabel), 1), e.allowedEmails.length === 1 ? (h(), B("input", {
9806
9806
  key: 0,
9807
9807
  type: "text",
9808
9808
  value: a.value,
9809
9809
  disabled: "",
9810
9810
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
9811
- }, null, 8, Of)) : c((h(), B("select", {
9811
+ }, null, 8, kf)) : c((h(), B("select", {
9812
9812
  key: 1,
9813
9813
  "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
9814
9814
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
@@ -9816,29 +9816,29 @@ var Wd = {
9816
9816
  }, [(h(!0), B(j, null, u(e.allowedEmails, (e) => (h(), B("option", {
9817
9817
  key: e,
9818
9818
  value: e
9819
- }, M(e), 9, Af))), 128))], 8, kf)), [[ue, a.value]])]),
9820
- e.error ? (h(), B("p", jf, M(e.error), 1)) : C("", !0),
9821
- P("div", Mf, [P("button", {
9819
+ }, M(e), 9, jf))), 128))], 8, Af)), [[ue, a.value]])]),
9820
+ e.error ? (h(), B("p", Mf, M(e.error), 1)) : C("", !0),
9821
+ P("div", Nf, [P("button", {
9822
9822
  type: "button",
9823
9823
  class: z(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": e.isSending }]),
9824
9824
  disabled: e.isSending,
9825
9825
  onClick: s
9826
- }, M(D(i).testEmail.cancel), 11, Nf), P("button", {
9826
+ }, M(D(i).testEmail.cancel), 11, Pf), P("button", {
9827
9827
  type: "button",
9828
9828
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
9829
9829
  disabled: !a.value || e.isSending,
9830
9830
  onClick: o
9831
- }, [e.isSending ? (h(), B("span", Ff, [V(D(Mi), {
9831
+ }, [e.isSending ? (h(), B("span", If, [V(D(Ni), {
9832
9832
  class: "tpl:animate-spin",
9833
9833
  size: 12,
9834
9834
  "stroke-width": 2
9835
- }), T(" " + M(D(i).testEmail.sending), 1)])) : (h(), B("span", If, M(D(i).testEmail.send), 1))], 8, Pf)])
9836
- ], 8, wf)]),
9835
+ }), T(" " + M(D(i).testEmail.sending), 1)])) : (h(), B("span", Lf, M(D(i).testEmail.send), 1))], 8, Ff)])
9836
+ ], 8, Tf)]),
9837
9837
  _: 1
9838
9838
  }, 8, ["visible"]));
9839
9839
  }
9840
- }), Rf = /* @__PURE__ */ t({ default: () => zf }), zf = Lf;
9840
+ }), zf = /* @__PURE__ */ t({ default: () => Bf }), Bf = Rf;
9841
9841
  //#endregion
9842
- export { _a as $, Me as $n, Dr as $t, bc as A, Kt as An, xi as At, As as B, qe as Bn, Br as Bt, jc as C, En as Cn, Mi as Ct, Cc as D, Yt as Dn, wi as Dt, Z as E, rn as En, ki as Et, Js as F, Nt as Fn, mi as Ft, uo as G, We as Gn, Mr as Gt, go as H, Re as Hn, jr as Ht, zs as I, kt as In, pi as It, Ga as J, Pe as Jn, kr as Jt, oo as K, Fe as Kn, yr as Kt, Vs as L, U as Ln, q as Lt, ac as M, Gt as Mn, vi as Mt, rc as N, Ft as Nn, gi as Nt, wc as O, It as On, Ci as Ot, Zs as P, Pt as Pn, hi as Pt, ya as Q, Ee as Qn, xr as Qt, Rs as R, ze as Rn, ti as Rt, Pc as S, sr as Sn, Ni as St, $ as T, An as Tn, Ai as Tt, ho as U, Ue as Un, Nr as Ut, ko as V, Be as Vn, K as Vt, mo as W, Ve as Wn, Or as Wt, Ra as X, je as Xn, Pr as Xt, Ba as Y, De as Yn, Lr as Yt, Oa as Z, we as Zn, hr as Zt, qc as _, G as _n, Bi as _t, xd as a, Er as an, Se as ar, sa as at, zc as b, nr as bn, Fi as bt, ol as c, Ir as cn, ve as cr, Zi as ct, $c as d, Rr as dn, qi as dt, ur as en, Ce as er, pa as et, Qc as f, cr as fn, Ki as ft, Jc as g, Xn as gn, Vi as gt, Yc as h, Jn as hn, Hi as ht, wd as i, Cr as in, Ne as ir, ua as it, hc as j, Ht as jn, bi as jt, Sc as k, Wt as kn, Si as kt, al as l, _r as ln, ye as lr, Yi as lt, Xc as m, qn as mn, Wi as mt, Sf as n, gr as nn, ke as nr, da as nt, Ku as o, fr as on, Oe as or, J as ot, Zc as p, zn as pn, Gi as pt, no as q, Te as qn, br as qt, Rd as r, pr as rn, Ae as rr, la as rt, Ml as s, Fr as sn, be as sr, ta as st, Rf as t, dr as tn, xe as tr, fa as tt, el as u, vr as un, _e as ur, Ji as ut, Hc as v, er as vn, Ri as vt, Ac as w, kn as wn, ji as wt, Rc as x, or as xn, Pi as xt, Vc as y, Zn as yn, Li as yt, js as z, Ge as zn, qr as zt };
9842
+ export { va as $, Ee as $n, Or as $t, xc as A, Wt as An, Si as At, js as B, Ge as Bn, Vr as Bt, Mc as C, sr as Cn, Ni as Ct, wc as D, rn as Dn, Ti as Dt, Z as E, An as En, Ai as Et, Ys as F, Pt as Fn, hi as Ft, fo as G, Ve as Gn, Nr as Gt, _o as H, Be as Hn, Mr as Ht, Bs as I, Nt as In, mi as It, Ka as J, Te as Jn, Ar as Jt, so as K, We as Kn, br as Kt, Hs as L, kt as Ln, q as Lt, oc as M, Ht as Mn, yi as Mt, ic as N, Gt as Nn, _i as Nt, Tc as O, Yt as On, wi as Ot, Qs as P, Ft as Pn, gi as Pt, ba as Q, we as Qn, Sr as Qt, zs as R, U as Rn, ni as Rt, Fc as S, or as Sn, Pi as St, $ as T, kn as Tn, ji as Tt, go as U, Re as Un, Pr as Ut, Ao as V, qe as Vn, K as Vt, ho as W, Ue as Wn, kr as Wt, za as X, De as Xn, Fr as Xt, Va as Y, Pe as Yn, Rr as Yt, ka as Z, je as Zn, gr as Zt, Jc as _, Xn as _n, Vi as _t, Sd as a, wr as an, Ne as ar, ca as at, Bc as b, Zn as bn, Ii as bt, sl as c, Ir as cn, be as cr, Qi as ct, el as d, yr as dn, _e as dr, Ji as dt, pr as en, Me as er, ma as et, $c as f, zr as fn, qi as ft, Yc as g, Jn as gn, Hi as gt, Xc as h, qn as hn, Ui as ht, Td as i, mr as in, Ae as ir, da as it, gc as j, Kt as jn, xi as jt, Cc as k, It as kn, Ci as kt, ol as l, Lr as ln, ve as lr, Xi as lt, Zc as m, zn as mn, Gi as mt, Cf as n, dr as nn, xe as nr, fa as nt, qu as o, Dr as on, Se as or, J as ot, Qc as p, cr as pn, Ki as pt, ro as q, Fe as qn, xr as qt, zd as r, _r as rn, ke as rr, ua as rt, Nl as s, fr as sn, Oe as sr, na as st, zf as t, ur as tn, Ce as tr, pa as tt, tl as u, vr as un, ye as ur, Yi as ut, Uc as v, G as vn, zi as vt, jc as w, En as wn, Mi as wt, zc as x, nr as xn, Fi as xt, Hc as y, er as yn, Ri as yt, Ms as z, ze as zn, Jr as zt };
9843
9843
 
9844
- //# sourceMappingURL=features-BZeMkHMs.js.map
9844
+ //# sourceMappingURL=features-BHTP4oRU.js.map