@templatical/editor 0.27.3 → 0.27.4

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 (128) hide show
  1. package/dist/{AiChatSidebar-inzMb2Vi.js → AiChatSidebar-LstHjwBU.js} +7 -7
  2. package/dist/{AiFeatureMenu-BTdgjwdx.js → AiFeatureMenu-DVQrznsN.js} +4 -4
  3. package/dist/{BlockIssueBadge-a7jENlL4.js → BlockIssueBadge-DKaFQNxW.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-CMuRmhQg.js → BlockPreviewCanvas-D9eC04OA.js} +1 -1
  5. package/dist/{CloudHeaderExtras-Bgr-Ox9M.js → CloudHeaderExtras-DX0j3CJ3.js} +2 -2
  6. package/dist/{CloudPanels-oFNlTOO5.js → CloudPanels-DCeNSwXy.js} +3 -3
  7. package/dist/{CollaboratorBar-BHja900c.js → CollaboratorBar-BZ-JCjdM.js} +2 -2
  8. package/dist/{ColorPicker-ClUa_hMj.js → ColorPicker-j0TQu5lE.js} +1 -1
  9. package/dist/{CommentsPanel-CB1-poNb.js → CommentsPanel-c5LmzlNN.js} +1 -1
  10. package/dist/{CommentsSidebar-B6mV8ft4.js → CommentsSidebar-Bm1DxFb5.js} +10 -10
  11. package/dist/{CountdownToolbar-BpnKUXN_.js → CountdownToolbar-UPdwNvVI.js} +1 -1
  12. package/dist/{DesignReferenceSidebar-BC5UxrJl.js → DesignReferenceSidebar-C8WTApc5.js} +5 -5
  13. package/dist/{IssuesPanel-BFczwZkL.js → IssuesPanel-D49aJjLS.js} +5 -5
  14. package/dist/{MergeTagModeToggle-koHNtEJe.js → MergeTagModeToggle-CVzJY9b2.js} +2 -2
  15. package/dist/{ParagraphEditor-cKosDi_l.js → ParagraphEditor-C9-jQ5zP.js} +7 -7
  16. package/dist/{RestoreVersionDialog-DpZmcFuf.js → RestoreVersionDialog-Ds6gEF5u.js} +3 -3
  17. package/dist/{RichTextEditorContent-Br3WBNOs.js → RichTextEditorContent-CO1se6ln.js} +3 -3
  18. package/dist/{SaveBlockDialog-C7mSGScN.js → SaveBlockDialog-DJIcncsU.js} +6 -6
  19. package/dist/{SavedBlocksBrowserModal-D7MYzuVP.js → SavedBlocksBrowserModal-BUhhkGEb.js} +7 -7
  20. package/dist/{SavedBlocksPanels-D5T63WyR.js → SavedBlocksPanels-DBfPz4iB.js} +1 -1
  21. package/dist/{SavedBlocksPickBar-BluJS58M.js → SavedBlocksPickBar-D9NsfzCB.js} +2 -2
  22. package/dist/{TemplateScoringPanel-C0z27t2p.js → TemplateScoringPanel-BFsUqnXR.js} +10 -10
  23. package/dist/{TestEmailModal-DoSIuHXe.js → TestEmailModal-DARwBqpV.js} +6 -6
  24. package/dist/{TestEmailPanel-3Y6uUX3Z.js → TestEmailPanel-BkgAew1S.js} +1 -1
  25. package/dist/{TitleEditor-D9IWtoH3.js → TitleEditor-BWLwZh84.js} +4 -4
  26. package/dist/{TplModal-CyBCFn5s.js → TplModal-CJLs8as_.js} +1 -1
  27. package/dist/{VersionHistoryMenu-8nd_aOnh.js → VersionHistoryMenu-CrIVG_SN.js} +10 -10
  28. package/dist/{VersionHistoryPanels-Cm7MxfrI.js → VersionHistoryPanels-s45U7XY-.js} +1 -1
  29. package/dist/{VersionPreviewBanner-B9w773jz.js → VersionPreviewBanner-BIy95B34.js} +1 -1
  30. package/dist/{blockTypeIcons-BRCuWioG.js → blockTypeIcons-BjUkQsAe.js} +2 -2
  31. package/dist/bundle-stats.json +5 -5
  32. package/dist/cdn/chunks/{AiChatSidebar-BIvQg9Q5.js → AiChatSidebar-tZqbhmuJ.js} +2 -2
  33. package/dist/cdn/chunks/{AiChatSidebar-BIvQg9Q5.js.map → AiChatSidebar-tZqbhmuJ.js.map} +1 -1
  34. package/dist/cdn/chunks/{AiFeatureMenu-BMvcmvDZ.js → AiFeatureMenu-BhtNkpIq.js} +3 -3
  35. package/dist/cdn/chunks/{AiFeatureMenu-BMvcmvDZ.js.map → AiFeatureMenu-BhtNkpIq.js.map} +1 -1
  36. package/dist/cdn/chunks/{BlockIssueBadge-Drrmjqd7.js → BlockIssueBadge-D9L8j7Db.js} +2 -2
  37. package/dist/cdn/chunks/{BlockIssueBadge-Drrmjqd7.js.map → BlockIssueBadge-D9L8j7Db.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-CuWJLv8h.js → BlockPreviewCanvas-Bt7fFzIQ.js} +2 -2
  39. package/dist/cdn/chunks/{BlockPreviewCanvas-CuWJLv8h.js.map → BlockPreviewCanvas-Bt7fFzIQ.js.map} +1 -1
  40. package/dist/cdn/chunks/{CloudHeaderExtras-Ctat5U0M.js → CloudHeaderExtras-CScGpeLl.js} +3 -3
  41. package/dist/cdn/chunks/{CloudHeaderExtras-Ctat5U0M.js.map → CloudHeaderExtras-CScGpeLl.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudPanels-YRYmXE9O.js → CloudPanels-DVtJkWsj.js} +4 -4
  43. package/dist/cdn/chunks/{CloudPanels-YRYmXE9O.js.map → CloudPanels-DVtJkWsj.js.map} +1 -1
  44. package/dist/cdn/chunks/{CollaboratorBar-DgdxBCkN.js → CollaboratorBar-BH1lM_Ta.js} +3 -3
  45. package/dist/cdn/chunks/{CollaboratorBar-DgdxBCkN.js.map → CollaboratorBar-BH1lM_Ta.js.map} +1 -1
  46. package/dist/cdn/chunks/{ColorPicker-B-we7_bC.js → ColorPicker-d4kY7WWd.js} +2 -2
  47. package/dist/cdn/chunks/{ColorPicker-B-we7_bC.js.map → ColorPicker-d4kY7WWd.js.map} +1 -1
  48. package/dist/cdn/chunks/{CommentsPanel-D7Y-74Nj.js → CommentsPanel-COhQMagD.js} +2 -2
  49. package/dist/cdn/chunks/{CommentsPanel-D7Y-74Nj.js.map → CommentsPanel-COhQMagD.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsSidebar-DxTobvYS.js → CommentsSidebar-vzLX-_h3.js} +2 -2
  51. package/dist/cdn/chunks/{CommentsSidebar-DxTobvYS.js.map → CommentsSidebar-vzLX-_h3.js.map} +1 -1
  52. package/dist/cdn/chunks/{CountdownToolbar-D8QWL-jK.js → CountdownToolbar-BRDbI1mM.js} +2 -2
  53. package/dist/cdn/chunks/{CountdownToolbar-D8QWL-jK.js.map → CountdownToolbar-BRDbI1mM.js.map} +1 -1
  54. package/dist/cdn/chunks/{DesignReferenceSidebar-D9Lm4Al0.js → DesignReferenceSidebar-npLxDRJI.js} +2 -2
  55. package/dist/cdn/chunks/{DesignReferenceSidebar-D9Lm4Al0.js.map → DesignReferenceSidebar-npLxDRJI.js.map} +1 -1
  56. package/dist/cdn/chunks/{IssuesPanel-Dz90c1C6.js → IssuesPanel-CTGlv7HF.js} +2 -2
  57. package/dist/cdn/chunks/{IssuesPanel-Dz90c1C6.js.map → IssuesPanel-CTGlv7HF.js.map} +1 -1
  58. package/dist/cdn/chunks/{MergeTagModeToggle-CfFrfYNC.js → MergeTagModeToggle-CkpKFx9N.js} +2 -2
  59. package/dist/cdn/chunks/{MergeTagModeToggle-CfFrfYNC.js.map → MergeTagModeToggle-CkpKFx9N.js.map} +1 -1
  60. package/dist/cdn/chunks/{ParagraphEditor-Be-BO5hD.js → ParagraphEditor-BgeeE0Gj.js} +5 -5
  61. package/dist/cdn/chunks/{ParagraphEditor-Be-BO5hD.js.map → ParagraphEditor-BgeeE0Gj.js.map} +1 -1
  62. package/dist/cdn/chunks/{RestoreVersionDialog-CKtz_FEz.js → RestoreVersionDialog-tfoAQAeP.js} +3 -3
  63. package/dist/cdn/chunks/{RestoreVersionDialog-CKtz_FEz.js.map → RestoreVersionDialog-tfoAQAeP.js.map} +1 -1
  64. package/dist/cdn/chunks/{RichTextEditorContent-D3eWZ793.js → RichTextEditorContent-DvLBtUcW.js} +3 -3
  65. package/dist/cdn/chunks/{RichTextEditorContent-D3eWZ793.js.map → RichTextEditorContent-DvLBtUcW.js.map} +1 -1
  66. package/dist/cdn/chunks/{SaveBlockDialog-C5nT7Fxi.js → SaveBlockDialog-D67K2lHn.js} +5 -5
  67. package/dist/cdn/chunks/{SaveBlockDialog-C5nT7Fxi.js.map → SaveBlockDialog-D67K2lHn.js.map} +1 -1
  68. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Cvyewimb.js → SavedBlocksBrowserModal-BxVR-yDt.js} +6 -6
  69. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Cvyewimb.js.map → SavedBlocksBrowserModal-BxVR-yDt.js.map} +1 -1
  70. package/dist/cdn/chunks/{SavedBlocksPanels-B7aBlxKW.js → SavedBlocksPanels-VkKCO0uY.js} +2 -2
  71. package/dist/cdn/chunks/{SavedBlocksPanels-B7aBlxKW.js.map → SavedBlocksPanels-VkKCO0uY.js.map} +1 -1
  72. package/dist/cdn/chunks/{SavedBlocksPickBar-D0opM9P9.js → SavedBlocksPickBar-BJHQDgUT.js} +3 -3
  73. package/dist/cdn/chunks/{SavedBlocksPickBar-D0opM9P9.js.map → SavedBlocksPickBar-BJHQDgUT.js.map} +1 -1
  74. package/dist/cdn/chunks/{TemplateScoringPanel-DEsNZlHe.js → TemplateScoringPanel-MvdrkgqL.js} +2 -2
  75. package/dist/cdn/chunks/{TemplateScoringPanel-DEsNZlHe.js.map → TemplateScoringPanel-MvdrkgqL.js.map} +1 -1
  76. package/dist/cdn/chunks/{TestEmailModal-BANpGbEP.js → TestEmailModal-CEBFCevy.js} +6 -6
  77. package/dist/cdn/chunks/{TestEmailModal-BANpGbEP.js.map → TestEmailModal-CEBFCevy.js.map} +1 -1
  78. package/dist/cdn/chunks/{TestEmailPanel-DItZMP3B.js → TestEmailPanel-C35nqIIl.js} +2 -2
  79. package/dist/cdn/chunks/{TestEmailPanel-DItZMP3B.js.map → TestEmailPanel-C35nqIIl.js.map} +1 -1
  80. package/dist/cdn/chunks/{TitleEditor-D_NJ4Ww8.js → TitleEditor-c2aQCyds.js} +4 -4
  81. package/dist/cdn/chunks/{TitleEditor-D_NJ4Ww8.js.map → TitleEditor-c2aQCyds.js.map} +1 -1
  82. package/dist/cdn/chunks/{TplModal-C51W8LTn.js → TplModal-DSTVZKuI.js} +2 -2
  83. package/dist/cdn/chunks/{TplModal-C51W8LTn.js.map → TplModal-DSTVZKuI.js.map} +1 -1
  84. package/dist/cdn/chunks/{VersionHistoryMenu-Cv23A0uu.js → VersionHistoryMenu-BNYSIjVj.js} +4 -4
  85. package/dist/cdn/chunks/{VersionHistoryMenu-Cv23A0uu.js.map → VersionHistoryMenu-BNYSIjVj.js.map} +1 -1
  86. package/dist/cdn/chunks/{VersionHistoryPanels-DHDN1owI.js → VersionHistoryPanels-CvWySHUE.js} +2 -2
  87. package/dist/cdn/chunks/{VersionHistoryPanels-DHDN1owI.js.map → VersionHistoryPanels-CvWySHUE.js.map} +1 -1
  88. package/dist/cdn/chunks/{VersionPreviewBanner-Dw4kFkrh.js → VersionPreviewBanner-CBVDWnhq.js} +2 -2
  89. package/dist/cdn/chunks/{VersionPreviewBanner-Dw4kFkrh.js.map → VersionPreviewBanner-CBVDWnhq.js.map} +1 -1
  90. package/dist/cdn/chunks/{blockTypeIcons-hX_W4dqo.js → blockTypeIcons-A9qFb1cR.js} +2 -2
  91. package/dist/cdn/chunks/{blockTypeIcons-hX_W4dqo.js.map → blockTypeIcons-A9qFb1cR.js.map} +1 -1
  92. package/dist/cdn/chunks/{createCloudRuntime-D75oJ9j-.js → createCloudRuntime-DYDf_-rN.js} +2 -2
  93. package/dist/cdn/chunks/{createCloudRuntime-D75oJ9j-.js.map → createCloudRuntime-DYDf_-rN.js.map} +1 -1
  94. package/dist/cdn/chunks/{icons-C36Ha5VU.js → icons-Dl5bcXmT.js} +7 -7
  95. package/dist/cdn/chunks/{icons-C36Ha5VU.js.map → icons-Dl5bcXmT.js.map} +1 -1
  96. package/dist/cdn/chunks/{src-B_pCqXyM.js → src-BAWlZu4B.js} +3 -3
  97. package/dist/cdn/chunks/{src-B_pCqXyM.js.map → src-BAWlZu4B.js.map} +1 -1
  98. package/dist/cdn/chunks/{src-CoHDh8Ua.js → src-BDUi-9js.js} +15 -15
  99. package/dist/cdn/chunks/{src-CoHDh8Ua.js.map → src-BDUi-9js.js.map} +1 -1
  100. package/dist/cdn/chunks/{useEditorCore-BtEO1qms.js → useEditorCore-D84laTMj.js} +5 -5
  101. package/dist/cdn/chunks/{useEditorCore-BtEO1qms.js.map → useEditorCore-D84laTMj.js.map} +1 -1
  102. package/dist/cdn/editor.js +638 -625
  103. package/dist/cdn/editor.js.map +1 -1
  104. package/dist/{check-DZbmkMQe.js → check-GRcTaHlZ.js} +1 -1
  105. package/dist/{chevron-down-nYScOLeZ.js → chevron-down-NUIAa2Qf.js} +1 -1
  106. package/dist/{chevron-up-CpYpDLnc.js → chevron-up-Bjf2BQtL.js} +1 -1
  107. package/dist/{circle-alert-CuuK6thq.js → circle-alert-FpQ8ykQL.js} +1 -1
  108. package/dist/{clock-DxkrtqOr.js → clock-CaOM1DC-.js} +1 -1
  109. package/dist/{createLucideIcon-L-wQXW_R.js → createLucideIcon-CAmDKr5Z.js} +2 -2
  110. package/dist/{image-up-DouZRGVt.js → image-up-CIGT4cSb.js} +1 -1
  111. package/dist/{info-puX5V6Iq.js → info-9YwKinXj.js} +1 -1
  112. package/dist/{loader-circle-DqTxB7Kr.js → loader-circle-QyURl47g.js} +1 -1
  113. package/dist/{message-circle-BZ7YpB22.js → message-circle-C9pycEzV.js} +1 -1
  114. package/dist/{pencil-DmbRhTJu.js → pencil-BvW86jVn.js} +1 -1
  115. package/dist/{refresh-cw-OK_O-cL0.js → refresh-cw-BDAUomac.js} +1 -1
  116. package/dist/{scan-line-DyaSTsJ5.js → scan-line-B5EvAPSG.js} +1 -1
  117. package/dist/{send-B-wasJJC.js → send-BAUn7DLp.js} +1 -1
  118. package/dist/{shield-check-DUIyRrTo.js → shield-check-CLGywlg0.js} +1 -1
  119. package/dist/{sparkles-DYEMATWC.js → sparkles-X6C0spo6.js} +1 -1
  120. package/dist/templatical-editor.js +131 -118
  121. package/dist/{text-align-start-CzjLeBLe.js → text-align-start-C6FXOoEj.js} +1 -1
  122. package/dist/{trash-2-C0shEPry.js → trash-2-balHkQP4.js} +1 -1
  123. package/dist/{triangle-alert-Fw0ce8oQ.js → triangle-alert-D2JBEr6k.js} +1 -1
  124. package/dist/{upload-D69C2CBx.js → upload-D70OYprI.js} +1 -1
  125. package/dist/{useEditorCore-DoKDh27o.js → useEditorCore-D7Gz7_CW.js} +9 -9
  126. package/dist/{useScrollToBlock-KA65jhQ_.js → useScrollToBlock-DcImB73T.js} +1 -1
  127. package/dist/{x-BjTlFqRv.js → x-DTUPbuwx.js} +1 -1
  128. package/package.json +9 -9
@@ -1,39 +1,39 @@
1
1
  import { B as e, E as t, F as n, H as r, I as i, K as a, M as o, N as s, P as c, Q as l, R as u, S as d, U as f, X as p, Y as m, _ as h, at as g, b as _, c as v, ct as y, f as b, g as x, h as S, j as C, k as w, l as T, lt as E, m as D, n as O, o as k, p as A, q as j, r as M, s as N, t as ee, u as P, ut as F, w as I, x as L, y as R } from "./chunks/draggable-BfpsXFg7.js";
2
- import { H as z, L as B, R as V, S as H, T as U, a as te, b as W, c as ne, d as re, h as ie, i as G, l as ae, o as oe, r as se, x as ce } from "./chunks/src-B_QJduQD.js";
3
- import { B as le, C as ue, D as de, F as fe, I as pe, L as me, N as he, O as ge, P as _e, R as ve, _ as ye, a as be, b as xe, c as Se, d as Ce, f as we, g as Te, h as Ee, i as De, j as Oe, k as ke, l as Ae, m as je, n as Me, o as Ne, p as Pe, r as Fe, s as Ie, t as Le, v as Re, w as ze, y as Be } from "./chunks/useEditorCore-BtEO1qms.js";
4
- import { _ as Ve, d as He, g as Ue } from "./chunks/dist-CYLJiSiH.js";
5
- import { a as We } from "./chunks/dist-CM8TB0VD.js";
6
- import { B as Ge, D as Ke, F as qe, H as Je, L as Ye, N as Xe, O as Ze, U as Qe, V as $e, W as et, _ as tt, c as nt, d as rt, f as it, h as at, j as ot, k as st, m as ct, n as lt, o as ut, p as dt, r as ft, s as pt, u as mt, w as ht, z as gt } from "./chunks/keys-oJdkdtPn.js";
7
- import { t as K } from "./chunks/useI18n-4sUbTM3Y.js";
8
- import { t as _t } from "./chunks/logger-ByvdoAwq.js";
9
- import { a as vt, n as yt } from "./chunks/usePopoverPosition-C1N2kaiZ.js";
10
- import { $ as bt, At as xt, D as St, E as Ct, Et as wt, F as Tt, I as Et, It as Dt, Lt as Ot, M as kt, Mt as At, N as jt, Ot as Mt, P as Nt, Q as Pt, Rt as Ft, T as It, Tt as Lt, U as Rt, Y as zt, _ as Bt, _t as Vt, b as Ht, d as Ut, dt as Wt, et as Gt, ft as Kt, g as qt, it as Jt, j as Yt, lt as Xt, m as Zt, n as Qt, nt as $t, pt as en, q as tn, rt as nn, s as rn, st as an, tt as on, w as sn, wt as cn, z as ln } from "./chunks/icons-C36Ha5VU.js";
11
- import { t as un } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { t as dn } from "./chunks/useCloudI18n-Ch-SiRjU.js";
13
- import { t as fn } from "./chunks/useMergeTag-DxjTEyin.js";
14
- import { t as pn } from "./chunks/useAliveFlag-Dtm174fG.js";
15
- import { t as mn } from "./chunks/preRenderCustomBlocks-CbA3RcAy.js";
16
- import { n as hn, t as gn } from "./chunks/emailFrameWidth-BmFCN2dp.js";
17
- import { t as _n } from "./chunks/readableTextColor-f8Kykfnh.js";
18
- import { t as vn } from "./chunks/blockTypeIcons-hX_W4dqo.js";
19
- import { t as yn } from "./chunks/useScrollToBlock-BvWAfWd8.js";
20
- import { S as bn, _ as xn, b as Sn, c as Cn, g as q, h as J, l as wn, m as Y, p as X, r as Tn, t as En, y as Dn } from "./chunks/styleConstants-9oK5kn21.js";
21
- import { t as Z } from "./chunks/ColorPicker-B-we7_bC.js";
22
- import { n as On, r as kn } from "./chunks/MergeTagSuggestion-DhllqTA3.js";
23
- import { i as Q, n as An, r as jn, t as Mn } from "./chunks/NumberWithSuffix-mm6AfIv4.js";
24
- import { n as Nn, t as Pn } from "./chunks/MergeTagModeToggle-CfFrfYNC.js";
25
- import { t as Fn } from "./chunks/formatRelativeTime-CtUU-QZ8.js";
26
- import { t as In } from "./chunks/TplModal-C51W8LTn.js";
2
+ import { H as z, L as B, R as V, S as H, T as U, a as W, b as G, c as te, d as ne, h as re, i as K, l as ie, o as ae, r as oe, x as se } from "./chunks/src-B_QJduQD.js";
3
+ import { B as ce, C as le, D as ue, F as de, I as fe, L as pe, N as me, O as he, P as ge, R as _e, _ as ve, a as ye, b as be, c as xe, d as Se, f as Ce, g as we, h as Te, i as Ee, j as De, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as Pe, s as Fe, t as Ie, v as Le, w as Re, y as ze } from "./chunks/useEditorCore-D84laTMj.js";
4
+ import { _ as Be, d as Ve, g as He } from "./chunks/dist-CYLJiSiH.js";
5
+ import { a as Ue } from "./chunks/dist-CM8TB0VD.js";
6
+ import { B as We, D as Ge, F as Ke, H as qe, L as Je, N as Ye, O as Xe, U as Ze, V as Qe, W as $e, _ as et, c as tt, d as nt, f as rt, h as it, j as at, k as ot, m as st, n as ct, o as lt, p as ut, r as dt, s as ft, u as pt, w as mt, z as ht } from "./chunks/keys-oJdkdtPn.js";
7
+ import { t as q } from "./chunks/useI18n-4sUbTM3Y.js";
8
+ import { t as gt } from "./chunks/logger-ByvdoAwq.js";
9
+ import { a as _t, n as vt } from "./chunks/usePopoverPosition-C1N2kaiZ.js";
10
+ import { $ as yt, At as bt, D as xt, E as St, Et as Ct, F as wt, I as Tt, It as Et, Lt as Dt, M as Ot, Mt as kt, N as At, Ot as jt, P as Mt, Q as Nt, Rt as Pt, T as Ft, Tt as It, U as Lt, Y as Rt, _ as zt, _t as Bt, b as Vt, d as Ht, dt as Ut, et as Wt, ft as Gt, g as Kt, it as qt, j as Jt, lt as Yt, m as Xt, n as Zt, nt as Qt, pt as $t, q as en, rt as tn, s as nn, st as rn, tt as an, w as on, wt as sn, z as cn } from "./chunks/icons-Dl5bcXmT.js";
11
+ import { t as ln } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { t as un } from "./chunks/useCloudI18n-Ch-SiRjU.js";
13
+ import { t as dn } from "./chunks/useMergeTag-DxjTEyin.js";
14
+ import { t as fn } from "./chunks/useAliveFlag-Dtm174fG.js";
15
+ import { t as pn } from "./chunks/preRenderCustomBlocks-CbA3RcAy.js";
16
+ import { n as mn, t as hn } from "./chunks/emailFrameWidth-BmFCN2dp.js";
17
+ import { t as gn } from "./chunks/readableTextColor-f8Kykfnh.js";
18
+ import { t as _n } from "./chunks/blockTypeIcons-A9qFb1cR.js";
19
+ import { t as vn } from "./chunks/useScrollToBlock-BvWAfWd8.js";
20
+ import { S as yn, _ as bn, b as xn, c as Sn, g as J, h as Y, l as Cn, m as X, p as Z, r as wn, t as Tn, y as En } from "./chunks/styleConstants-9oK5kn21.js";
21
+ import { t as Q } from "./chunks/ColorPicker-d4kY7WWd.js";
22
+ import { n as Dn, r as On } from "./chunks/MergeTagSuggestion-DhllqTA3.js";
23
+ import { i as $, n as kn, r as An, t as jn } from "./chunks/NumberWithSuffix-mm6AfIv4.js";
24
+ import { n as Mn, t as Nn } from "./chunks/MergeTagModeToggle-CkpKFx9N.js";
25
+ import { t as Pn } from "./chunks/formatRelativeTime-CtUU-QZ8.js";
26
+ import { t as Fn } from "./chunks/TplModal-DSTVZKuI.js";
27
27
  //#region src/composables/useCommentsFeature.ts
28
- function Ln(t) {
29
- let { provider: n, editor: r } = t, i = _e({
28
+ function In(t) {
29
+ let { provider: n, editor: r } = t, i = ge({
30
30
  provider: n,
31
31
  getTemplateId: () => r.state.template?.id ?? null,
32
32
  getUser: () => t.user ?? null,
33
33
  onComment: t.onComment,
34
34
  onError: t.onError
35
35
  });
36
- he({
36
+ me({
37
37
  comments: i,
38
38
  provider: n,
39
39
  getTemplateId: () => r.state.template?.id ?? null
@@ -86,8 +86,8 @@ function Ln(t) {
86
86
  }
87
87
  //#endregion
88
88
  //#region src/composables/useSavedBlocksFeature.ts
89
- function Rn(t) {
90
- let { provider: n, editor: r } = t, i = me({
89
+ function Ln(t) {
90
+ let { provider: n, editor: r } = t, i = pe({
91
91
  provider: n,
92
92
  onError: t.onError
93
93
  }), a = l(!1), o = l(!1), s = l(!1), u = l(/* @__PURE__ */ new Set()), d = b(() => s.value), f = b(() => u.value.size);
@@ -122,7 +122,7 @@ function Rn(t) {
122
122
  }
123
123
  function S(e, t) {
124
124
  for (let n = 0; n < e.content.length; n++) {
125
- let i = ce(e.content[n]), a = t === void 0 ? void 0 : t + n;
125
+ let i = se(e.content[n]), a = t === void 0 ? void 0 : t + n;
126
126
  r.addBlock(i, void 0, void 0, a);
127
127
  }
128
128
  o.value = !1;
@@ -131,7 +131,7 @@ function Rn(t) {
131
131
  i.load().catch(() => {});
132
132
  }
133
133
  let w = b(() => i.savedBlocks.value.length), T = b(() => t.isAvailable?.() ?? !0);
134
- return c(Ye, i), {
134
+ return c(Je, i), {
135
135
  headless: i,
136
136
  isPicking: d,
137
137
  pickedIds: u,
@@ -168,11 +168,11 @@ function Rn(t) {
168
168
  }
169
169
  //#endregion
170
170
  //#region src/composables/useTemplatesFeature.ts
171
- var zn = 3e3;
172
- function Bn(e) {
173
- let { provider: t, editor: n } = e, r = l("idle"), i = l(""), { start: a, stop: o } = Ve(() => {
171
+ var Rn = 3e3;
172
+ function zn(e) {
173
+ let { provider: t, editor: n } = e, r = l("idle"), i = l(""), { start: a, stop: o } = Be(() => {
174
174
  r.value = "idle";
175
- }, zn, { immediate: !1 }), s = b(() => typeof t.create == "function"), c = b(() => typeof t.save == "function"), u = b(() => e.isAvailable?.() ?? !0), d = b(() => n.state.template?.name), f = b(() => {
175
+ }, Rn, { immediate: !1 }), s = b(() => typeof t.create == "function"), c = b(() => typeof t.save == "function"), u = b(() => e.isAvailable?.() ?? !0), d = b(() => n.state.template?.name), f = b(() => {
176
176
  let e = n.state.template;
177
177
  return e?.updatedAt ? {
178
178
  iso: e.updatedAt,
@@ -244,7 +244,7 @@ function Bn(e) {
244
244
  let t = e.trim();
245
245
  t && t !== n.state.template?.name && (n.setName(t), w());
246
246
  }
247
- return e.guardUnsavedChanges !== !1 && We(window, "beforeunload", (e) => {
247
+ return e.guardUnsavedChanges !== !1 && Ue(window, "beforeunload", (e) => {
248
248
  n.state.isDirty && (e.preventDefault(), e.returnValue = "");
249
249
  }), {
250
250
  save: _,
@@ -279,15 +279,15 @@ function Bn(e) {
279
279
  }
280
280
  //#endregion
281
281
  //#region src/utils/toMjml.ts
282
- async function Vn() {
282
+ async function Bn() {
283
283
  try {
284
- return await import("./chunks/src-B_pCqXyM.js");
284
+ return await import("./chunks/src-BAWlZu4B.js");
285
285
  } catch {
286
286
  return null;
287
287
  }
288
288
  }
289
- async function Hn(e) {
290
- let t = await Vn();
289
+ async function Vn(e) {
290
+ let t = await Bn();
291
291
  if (!t) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
292
292
  let n = e.getCustomBlockStylesheet, r = e.getFonts?.();
293
293
  return t.renderToMjml(e.getContent(), {
@@ -301,8 +301,8 @@ async function Hn(e) {
301
301
  }
302
302
  //#endregion
303
303
  //#region src/composables/useTestEmailFeature.ts
304
- var Un = 1200;
305
- function Wn(e) {
304
+ var Hn = 1200;
305
+ function Un(e) {
306
306
  let { provider: t } = e, n = l(!1), r = l(!1), i = l(!1), a = l(null), o = null, s = !1;
307
307
  function c() {
308
308
  o !== null && (clearTimeout(o), o = null);
@@ -324,8 +324,8 @@ function Wn(e) {
324
324
  if (!(!t.includeMjml || !e.renderMjml)) try {
325
325
  return await e.renderMjml();
326
326
  } catch (e) {
327
- if (await Vn() === null) {
328
- s || (s = !0, _t.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
327
+ if (await Bn() === null) {
328
+ s || (s = !0, gt.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
329
329
  return;
330
330
  }
331
331
  throw e;
@@ -346,7 +346,7 @@ function Wn(e) {
346
346
  content: e.getContent(),
347
347
  ...r === void 0 ? {} : { mjml: r },
348
348
  ...s === void 0 ? {} : { allowedRecipients: s }
349
- }), i.value = !0, o = setTimeout(h, Un);
349
+ }), i.value = !0, o = setTimeout(h, Hn);
350
350
  } catch (t) {
351
351
  let n = t instanceof Error ? t : Error(String(t));
352
352
  a.value = {
@@ -376,8 +376,8 @@ function Wn(e) {
376
376
  }
377
377
  //#endregion
378
378
  //#region src/composables/useVersionHistoryFeature.ts
379
- function Gn(e) {
380
- let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = fe({
379
+ function Wn(e) {
380
+ let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = de({
381
381
  provider: t,
382
382
  getTemplateId: () => n.state.template?.id ?? null,
383
383
  onError: e.onError
@@ -403,7 +403,7 @@ function Gn(e) {
403
403
  return;
404
404
  }
405
405
  let t = await o.resolveContent(e);
406
- f || (c.value = W(n.content.value), a?.pause(), s.value = e, n.setContent(t, !1));
406
+ f || (c.value = G(n.content.value), a?.pause(), s.value = e, n.setContent(t, !1));
407
407
  }
408
408
  async function D() {
409
409
  if (s.value) {
@@ -487,7 +487,7 @@ function Gn(e) {
487
487
  }
488
488
  //#endregion
489
489
  //#region src/types/auto-save.ts
490
- function Kn(e, t) {
490
+ function Gn(e, t) {
491
491
  return e === void 0 ? { enabled: t } : typeof e == "boolean" ? { enabled: e } : {
492
492
  enabled: !0,
493
493
  debounce: e.debounce
@@ -495,7 +495,7 @@ function Kn(e, t) {
495
495
  }
496
496
  //#endregion
497
497
  //#region src/utils/resolveLintOptions.ts
498
- function qn(e) {
498
+ function Kn(e) {
499
499
  return {
500
500
  ...e.lint,
501
501
  locale: e.locale
@@ -503,20 +503,20 @@ function qn(e) {
503
503
  }
504
504
  //#endregion
505
505
  //#region src/utils/renderProvider.ts
506
- function Jn(e) {
506
+ function qn(e) {
507
507
  return {
508
508
  customFonts: e.customFonts.value,
509
509
  defaultFallback: e.defaultFallback.value
510
510
  };
511
511
  }
512
- async function Yn(e) {
513
- let t = W(e.getContent());
514
- return await mn(t, { renderCustomBlock: e.renderCustomBlock }), {
512
+ async function Jn(e) {
513
+ let t = G(e.getContent());
514
+ return await pn(t, { renderCustomBlock: e.renderCustomBlock }), {
515
515
  content: t,
516
516
  fonts: e.getFonts()
517
517
  };
518
518
  }
519
- function Xn(e) {
519
+ function Yn(e) {
520
520
  async function t() {
521
521
  let t = e.provider, n = t?.toMjml?.bind(t);
522
522
  return n ? n(await e.buildPayload()) : e.renderLocalMjml();
@@ -535,13 +535,13 @@ function Xn(e) {
535
535
  }
536
536
  //#endregion
537
537
  //#region src/utils/normalizeMergeTagMarkup.ts
538
- function Zn(e) {
538
+ function Xn(e) {
539
539
  let t = e.flags.includes("g") ? e.flags : `${e.flags}g`;
540
540
  return new RegExp(e.source, t);
541
541
  }
542
- function Qn(e, t, n) {
542
+ function Zn(e, t, n) {
543
543
  let r = [], i = (t, n, i) => {
544
- let a = Zn(t), o = a.exec(e);
544
+ let a = Xn(t), o = a.exec(e);
545
545
  for (; o !== null;) {
546
546
  let t = o.index, s = t + o[0].length;
547
547
  o[0].length === 0 ? a.lastIndex++ : r.some((e) => t < e.end && s > e.start) || r.push({
@@ -553,9 +553,9 @@ function Qn(e, t, n) {
553
553
  }), o = a.exec(e);
554
554
  }
555
555
  };
556
- return i(n.logic, "data-logic-merge-tag", (e) => te(e, n)), i(n.value, "data-merge-tag", (e) => oe(e, t)), r.sort((e, t) => e.start - t.start);
556
+ return i(n.logic, "data-logic-merge-tag", (e) => W(e, n)), i(n.value, "data-merge-tag", (e) => ae(e, t)), r.sort((e, t) => e.start - t.start);
557
557
  }
558
- function $n(e) {
558
+ function Qn(e) {
559
559
  let t = e.createTreeWalker(e.body, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT, { acceptNode(e) {
560
560
  if (e.nodeType !== 1) return NodeFilter.FILTER_ACCEPT;
561
561
  let t = e;
@@ -564,11 +564,11 @@ function $n(e) {
564
564
  for (; r !== null;) n.push(r), r = t.nextNode();
565
565
  return n;
566
566
  }
567
- function er(e, t, n) {
568
- if (!e || !G(e, n) || typeof DOMParser > "u") return e;
567
+ function $n(e, t, n) {
568
+ if (!e || !K(e, n) || typeof DOMParser > "u") return e;
569
569
  let r = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html"), i = 0;
570
- for (let e of $n(r)) {
571
- let a = e.data, o = Qn(a, t, n);
570
+ for (let e of Qn(r)) {
571
+ let a = e.data, o = Zn(a, t, n);
572
572
  if (o.length === 0) continue;
573
573
  let s = r.createDocumentFragment(), c = 0;
574
574
  for (let e of o) {
@@ -580,13 +580,13 @@ function er(e, t, n) {
580
580
  }
581
581
  return i === 0 ? e : r.body.innerHTML;
582
582
  }
583
- function tr(e, t, n) {
583
+ function er(e, t, n) {
584
584
  if (e.type === "section") {
585
585
  if (!Array.isArray(e.children)) return e;
586
586
  let r = !1, i = e.children.map((e) => {
587
587
  if (!Array.isArray(e)) return e;
588
588
  let i = !1, a = e.map((e) => {
589
- let r = tr(e, t, n);
589
+ let r = er(e, t, n);
590
590
  return r !== e && (i = !0), r;
591
591
  });
592
592
  return i ? (r = !0, a) : e;
@@ -597,16 +597,16 @@ function tr(e, t, n) {
597
597
  } : e;
598
598
  }
599
599
  if (e.type !== "title" && e.type !== "paragraph" || typeof e.content != "string") return e;
600
- let r = er(e.content, t, n);
600
+ let r = $n(e.content, t, n);
601
601
  return r === e.content ? e : {
602
602
  ...e,
603
603
  content: r
604
604
  };
605
605
  }
606
- function nr(e, t, n) {
606
+ function tr(e, t, n) {
607
607
  if (!e || !Array.isArray(e.blocks)) return e;
608
608
  let r = !1, i = e.blocks.map((e) => {
609
- let i = tr(e, t, n);
609
+ let i = er(e, t, n);
610
610
  return i !== e && (r = !0), i;
611
611
  });
612
612
  return r ? {
@@ -614,10 +614,10 @@ function nr(e, t, n) {
614
614
  blocks: i
615
615
  } : e;
616
616
  }
617
- function rr(e, t) {
618
- return nr(e, t?.tags ?? [], ie(t?.syntax));
617
+ function nr(e, t) {
618
+ return tr(e, t?.tags ?? [], re(t?.syntax));
619
619
  }
620
- function ir(e, t) {
620
+ function rr(e, t) {
621
621
  return {
622
622
  get state() {
623
623
  return e.state;
@@ -625,14 +625,14 @@ function ir(e, t) {
625
625
  get content() {
626
626
  return e.content;
627
627
  },
628
- setContent: (n, r) => e.setContent(rr(n, t), r)
628
+ setContent: (n, r) => e.setContent(nr(n, t), r)
629
629
  };
630
630
  }
631
- function ar(e, t) {
631
+ function ir(e, t) {
632
632
  return {
633
633
  ...e,
634
634
  async load(n) {
635
- let r = await e.load(n), i = rr(r.content, t);
635
+ let r = await e.load(n), i = nr(r.content, t);
636
636
  return i === r.content ? r : {
637
637
  ...r,
638
638
  content: i
@@ -642,30 +642,30 @@ function ar(e, t) {
642
642
  }
643
643
  //#endregion
644
644
  //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
645
- var or = ["aria-label"], sr = {
645
+ var ar = ["aria-label"], or = {
646
646
  key: 0,
647
647
  role: "status",
648
648
  "aria-busy": "true",
649
649
  "data-testid": "preview-resolution-loading",
650
650
  class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
651
- }, cr = { class: "tpl:sr-only" }, lr = {
651
+ }, sr = { class: "tpl:sr-only" }, cr = {
652
652
  key: 1,
653
653
  role: "status",
654
654
  "data-testid": "preview-resolution-failed",
655
655
  class: "tpl:mx-6 tpl:mt-4 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
656
- }, ur = {
656
+ }, lr = {
657
657
  key: 0,
658
658
  class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
659
- }, dr = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, fr = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, pr = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, mr = {
659
+ }, ur = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, dr = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, fr = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, pr = {
660
660
  key: 0,
661
661
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
662
- }, hr = {
662
+ }, mr = {
663
663
  key: 1,
664
664
  class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
665
- }, gr = { class: "tpl:relative" }, _r = {
665
+ }, hr = { class: "tpl:relative" }, gr = {
666
666
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
667
667
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
668
- }, vr = /*#__PURE__*/ un(/* @__PURE__ */ d({
668
+ }, _r = /*#__PURE__*/ ln(/* @__PURE__ */ d({
669
669
  __name: "Canvas",
670
670
  props: {
671
671
  viewport: {},
@@ -682,22 +682,22 @@ var or = ["aria-label"], sr = {
682
682
  ],
683
683
  setup(e, { emit: i }) {
684
684
  let a = {
685
- section: Ie,
686
- title: Se,
687
- paragraph: Pe,
688
- image: Ee,
689
- button: ge,
690
- divider: Re,
691
- spacer: De,
692
- html: ye,
693
- social: be,
694
- menu: je,
695
- table: Fe,
696
- video: Me,
697
- custom: Be
698
- }, o = e, d = i, { t: p } = K(), { t: m } = dn(), h = et(at, "Canvas"), v = t(rt, null), C = t(pt, null), w = t(nt, {}), T = t(Ze, null), O = t(qe, null);
699
- c(Qe, b(() => o.previewMode && (T?.value ?? !1) && !O?.isConfigured));
700
- let k = b(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("chat") ?? !1)), j = b(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = t(ft, null), I = b({
685
+ section: Fe,
686
+ title: xe,
687
+ paragraph: Ne,
688
+ image: Te,
689
+ button: he,
690
+ divider: Le,
691
+ spacer: Ee,
692
+ html: ve,
693
+ social: ye,
694
+ menu: Ae,
695
+ table: Pe,
696
+ video: je,
697
+ custom: ze
698
+ }, o = e, d = i, { t: p } = q(), { t: m } = un(), h = $e(it, "Canvas"), v = t(nt, null), C = t(ft, null), w = t(tt, {}), T = t(Xe, null), O = t(Ke, null);
699
+ c(Ze, b(() => o.previewMode && (T?.value ?? !1) && !O?.isConfigured));
700
+ let k = b(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("chat") ?? !1)), j = b(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = t(dt, null), I = b({
701
701
  get: () => o.content.blocks,
702
702
  set: (e) => {
703
703
  h.setContent({
@@ -705,27 +705,27 @@ var or = ["aria-label"], sr = {
705
705
  blocks: e
706
706
  });
707
707
  }
708
- }), L = b(() => hn(o.content.settings, o.viewport)), z = b(() => L.value + 192), B = b(() => Ce(o.content.settings)), V = b(() => I.value.length === 0 && !o.previewMode), H = l(0), U = b(() => V.value && H.value > 0);
709
- function te() {
708
+ }), L = b(() => mn(o.content.settings, o.viewport)), z = b(() => L.value + 192), B = b(() => Se(o.content.settings)), V = b(() => I.value.length === 0 && !o.previewMode), H = l(0), U = b(() => V.value && H.value > 0);
709
+ function W() {
710
710
  V.value && (H.value += 1);
711
711
  }
712
- function W() {
712
+ function G() {
713
713
  V.value && (H.value = Math.max(0, H.value - 1));
714
714
  }
715
- function ne() {
715
+ function te() {
716
716
  H.value = 0;
717
717
  }
718
- function re(e) {
718
+ function ne(e) {
719
719
  o.previewMode || w.savedBlocks?.isPicking.value || e.target === e.currentTarget && d("select-block", null);
720
720
  }
721
- function ie(e) {
722
- return we(e, C, a);
721
+ function re(e) {
722
+ return Ce(e, C, a);
723
723
  }
724
- function G(e) {
724
+ function K(e) {
725
725
  return o.lockedBlocks?.get(e) ?? null;
726
726
  }
727
- function ae(e) {
728
- if (o.previewMode || G(e)) return;
727
+ function ie(e) {
728
+ if (o.previewMode || K(e)) return;
729
729
  let t = w.savedBlocks;
730
730
  if (t?.isPicking.value) {
731
731
  t.togglePick(e);
@@ -733,11 +733,11 @@ var or = ["aria-label"], sr = {
733
733
  }
734
734
  d("select-block", e);
735
735
  }
736
- function oe(e) {
736
+ function ae(e) {
737
737
  return w.savedBlocks?.isPicked(e) ?? !1;
738
738
  }
739
- let se = b(() => w.savedBlocks?.isPicking.value === !0);
740
- function ce(e, t) {
739
+ let oe = b(() => w.savedBlocks?.isPicking.value === !0);
740
+ function se(e, t) {
741
741
  e.type === "custom" && h.updateBlock(e.id, {
742
742
  fieldValues: t.fieldValues,
743
743
  dataSourceFetched: t.dataSourceFetched
@@ -748,7 +748,7 @@ var or = ["aria-label"], sr = {
748
748
  style: E({
749
749
  width: `${z.value}px`,
750
750
  boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
751
- transition: g(gn)
751
+ transition: g(hn)
752
752
  })
753
753
  }, [A("div", {
754
754
  class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
@@ -764,7 +764,7 @@ var or = ["aria-label"], sr = {
764
764
  class: "tpl-canvas-wrapper tpl:relative",
765
765
  style: E({
766
766
  width: `${L.value}px`,
767
- transition: g(gn)
767
+ transition: g(hn)
768
768
  })
769
769
  }, [A("div", {
770
770
  class: y(["tpl-canvas tpl:relative tpl:rounded-lg", {
@@ -772,12 +772,12 @@ var or = ["aria-label"], sr = {
772
772
  "tpl-preview-mode": e.previewMode
773
773
  }]),
774
774
  style: E(B.value),
775
- onClick: re
776
- }, [g(O)?.isInitialResolve.value ? (s(), x("div", sr, [A("span", cr, F(g(p).previewResolution.resolving), 1), (s(), x(P, null, n(3, (e) => A("div", {
775
+ onClick: ne
776
+ }, [g(O)?.isInitialResolve.value ? (s(), x("div", or, [A("span", sr, F(g(p).previewResolution.resolving), 1), (s(), x(P, null, n(3, (e) => A("div", {
777
777
  key: e,
778
778
  "aria-hidden": "true",
779
779
  class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
780
- })), 64))])) : g(O)?.hasFailed.value ? (s(), x("p", lr, F(g(p).previewResolution.failed), 1)) : S("", !0), f(_(g(ee), {
780
+ })), 64))])) : g(O)?.hasFailed.value ? (s(), x("p", cr, F(g(p).previewResolution.failed), 1)) : S("", !0), f(_(g(ee), {
781
781
  modelValue: I.value,
782
782
  "onUpdate:modelValue": i[2] ||= (e) => I.value = e,
783
783
  group: "blocks",
@@ -796,34 +796,34 @@ var or = ["aria-label"], sr = {
796
796
  V.value && U.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
797
797
  V.value && !U.value ? "tpl:border-[var(--tpl-primary)]" : ""
798
798
  ]),
799
- onDragenter: te,
800
- onDragleave: W,
801
- onDrop: ne
799
+ onDragenter: W,
800
+ onDragleave: G,
801
+ onDrop: te
802
802
  }, {
803
- default: r(() => [V.value ? (s(), x("div", ur, [
804
- A("div", dr, [_(g(It), {
803
+ default: r(() => [V.value ? (s(), x("div", lr, [
804
+ A("div", ur, [_(g(Ft), {
805
805
  size: 48,
806
806
  "stroke-width": 1
807
807
  })]),
808
- A("p", fr, F(g(p).canvas.noBlocks), 1),
809
- A("p", pr, F(g(p).canvas.dragHint), 1),
810
- k.value && g(m) ? (s(), x("p", mr, [
808
+ A("p", dr, F(g(p).canvas.noBlocks), 1),
809
+ A("p", fr, F(g(p).canvas.dragHint), 1),
810
+ k.value && g(m) ? (s(), x("p", pr, [
811
811
  R(F(g(p).canvas.aiHintChat) + " ", 1),
812
812
  A("button", {
813
813
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
814
814
  onClick: i[0] ||= (e) => d("open-ai-chat")
815
- }, [_(g(Ct), {
815
+ }, [_(g(St), {
816
816
  size: 14,
817
817
  "stroke-width": 2
818
818
  }), R(" " + F(g(m).aiMenu.aiAssistant), 1)]),
819
819
  R(" " + F(g(p).canvas.aiHintChatSuffix), 1)
820
820
  ])) : S("", !0),
821
- j.value && g(m) ? (s(), x("p", hr, [
821
+ j.value && g(m) ? (s(), x("p", mr, [
822
822
  R(F(g(p).canvas.aiHintDesign) + " ", 1),
823
823
  A("button", {
824
824
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
825
825
  onClick: i[1] ||= (e) => d("open-design-reference")
826
- }, [_(g(en), {
826
+ }, [_(g($t), {
827
827
  size: 14,
828
828
  "stroke-width": 2
829
829
  }), R(" " + F(g(m).aiMenu.designToTemplate), 1)]),
@@ -832,31 +832,31 @@ var or = ["aria-label"], sr = {
832
832
  ])) : S("", !0), (s(!0), x(P, null, n(I.value, (t) => f((s(), x("div", {
833
833
  key: t.id,
834
834
  class: "tpl-block-item"
835
- }, [A("div", gr, [G(t.id) ? (s(), x("div", {
835
+ }, [A("div", hr, [K(t.id) ? (s(), x("div", {
836
836
  key: 0,
837
837
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
838
838
  style: E({
839
- outline: `2px solid ${G(t.id).color}`,
839
+ outline: `2px solid ${K(t.id).color}`,
840
840
  outlineOffset: "-1px"
841
841
  })
842
842
  }, [A("span", {
843
843
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
844
844
  style: E({
845
- backgroundColor: G(t.id).color,
846
- color: g(_n)(G(t.id).color)
845
+ backgroundColor: K(t.id).color,
846
+ color: g(gn)(K(t.id).color)
847
847
  })
848
- }, [A("span", _r, F(G(t.id).name.charAt(0)), 1), R(" " + F(G(t.id).name), 1)], 4)], 4)) : S("", !0), _(Ae, {
848
+ }, [A("span", gr, F(K(t.id).name.charAt(0)), 1), R(" " + F(K(t.id).name), 1)], 4)], 4)) : S("", !0), _(ke, {
849
849
  block: t,
850
- "is-selected": !e.previewMode && !se.value && e.selectedBlockId === t.id && !G(t.id),
851
- picked: oe(t.id),
850
+ "is-selected": !e.previewMode && !oe.value && e.selectedBlockId === t.id && !K(t.id),
851
+ picked: ae(t.id),
852
852
  viewport: e.viewport,
853
853
  "preview-mode": e.previewMode,
854
- onSelect: (e) => ae(t.id)
854
+ onSelect: (e) => ie(t.id)
855
855
  }, {
856
- default: r(() => [(s(), D(u(ie(t)), {
856
+ default: r(() => [(s(), D(u(re(t)), {
857
857
  block: t,
858
858
  viewport: e.viewport,
859
- onFetchData: (e) => ce(t, e),
859
+ onFetchData: (e) => se(t, e),
860
860
  onUpdate: (e) => g(h).updateBlock(t.id, e)
861
861
  }, null, 40, [
862
862
  "block",
@@ -878,12 +878,12 @@ var or = ["aria-label"], sr = {
878
878
  "modelValue",
879
879
  "disabled",
880
880
  "class"
881
- ]), [[N, !g(O)?.isInitialResolve.value]])], 6)], 12, or)], 4));
881
+ ]), [[N, !g(O)?.isInitialResolve.value]])], 6)], 12, ar)], 4));
882
882
  }
883
- }), [["__scopeId", "data-v-da730df5"]]), yr = d({
883
+ }), [["__scopeId", "data-v-da730df5"]]), vr = d({
884
884
  name: "CustomBlockStylesheets",
885
885
  setup() {
886
- let e = t(dt, null);
886
+ let e = t(ut, null);
887
887
  return () => e ? e.value.map((e, t) => I("style", {
888
888
  key: t,
889
889
  "data-tpl-custom-block-stylesheet": "",
@@ -893,7 +893,7 @@ var or = ["aria-label"], sr = {
893
893
  });
894
894
  //#endregion
895
895
  //#region src/utils/resolvePaletteBlocks.ts
896
- function br(e, t) {
896
+ function yr(e, t) {
897
897
  if (!t || t.length === 0) return {
898
898
  items: e,
899
899
  unknown: []
@@ -912,7 +912,7 @@ function br(e, t) {
912
912
  }
913
913
  //#endregion
914
914
  //#region src/utils/resolveInsertPosition.ts
915
- function xr(e) {
915
+ function br(e) {
916
916
  let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
917
917
  if (!n) return {};
918
918
  let a = r(n);
@@ -930,34 +930,44 @@ function xr(e) {
930
930
  }
931
931
  //#endregion
932
932
  //#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
933
- var Sr = ["aria-label"], Cr = {
933
+ var xr = ["aria-label"], Sr = {
934
934
  key: 0,
935
935
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
936
- }, wr = ["aria-label"], Tr = {
936
+ }, Cr = ["aria-label"], wr = {
937
937
  key: 0,
938
938
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
939
- }, Er = [
939
+ }, Tr = [
940
940
  "data-palette-type",
941
941
  "aria-label",
942
942
  "onClick",
943
943
  "onKeydown"
944
- ], Dr = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, Or = {
944
+ ], Er = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, Dr = {
945
945
  key: 0,
946
946
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
947
- }, kr = /* @__PURE__ */ d({
947
+ }, Or = /* @__PURE__ */ d({
948
948
  __name: "Sidebar",
949
949
  setup(i) {
950
- let { t: a, format: o } = K(), c = t(it, []), d = t(Xe, void 0), f = t(ut, void 0), p = t(at, null), m = yn(), h = t(nt, {}), v = b(() => h.savedBlocks?.isAvailable.value === !0), y = l(!1), C = l(!1);
951
- function w() {
952
- C.value || (y.value = !1);
953
- }
950
+ let { t: a, format: o } = q(), c = t(rt, []), d = t(Ye, void 0), f = t(lt, void 0), p = t(it, null), m = vn(), h = t(tt, {}), v = b(() => h.savedBlocks?.isAvailable.value === !0), y = l(!1), C = l(!1), w = l(null);
954
951
  function T() {
955
- C.value = !0;
952
+ try {
953
+ return w.value?.querySelector(":focus-visible") != null;
954
+ } catch {
955
+ return !1;
956
+ }
956
957
  }
957
958
  function O() {
959
+ C.value || T() || (y.value = !1);
960
+ }
961
+ function k() {
962
+ C.value = !0;
963
+ }
964
+ function j() {
965
+ C.value = !1;
966
+ }
967
+ function M() {
958
968
  C.value = !1, y.value = !1;
959
969
  }
960
- let k = [
970
+ let N = [
961
971
  "section",
962
972
  "image",
963
973
  "title",
@@ -970,34 +980,34 @@ var Sr = ["aria-label"], Cr = {
970
980
  "table",
971
981
  "spacer",
972
982
  "html"
973
- ], j = b(() => {
974
- let e = k.map((e) => ({
983
+ ], I = b(() => {
984
+ let e = N.map((e) => ({
975
985
  type: e,
976
- label: Oe(e, a)
986
+ label: De(e, a)
977
987
  }));
978
988
  return h.plan && e.splice(-1, 0, {
979
989
  type: "countdown",
980
- label: Oe("countdown", a)
990
+ label: De("countdown", a)
981
991
  }), e;
982
- }), M = b(() => c.map((e) => ({
992
+ }), L = b(() => c.map((e) => ({
983
993
  type: `custom:${e.type}`,
984
994
  label: e.name,
985
995
  isCustom: !0,
986
996
  icon: e.icon
987
- }))), N = b(() => [...j.value, ...M.value]), I = b(() => br(N.value, d)), L = b(() => I.value.items), R = /* @__PURE__ */ new Set();
988
- e(() => I.value.unknown, (e) => {
989
- for (let t of e) R.has(t) || (R.add(t), _t.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
997
+ }))), R = b(() => [...I.value, ...L.value]), z = b(() => yr(R.value, d)), B = b(() => z.value.items), V = /* @__PURE__ */ new Set();
998
+ e(() => z.value.unknown, (e) => {
999
+ for (let t of e) V.has(t) || (V.add(t), gt.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
990
1000
  }, { immediate: !0 });
991
- function z(e) {
1001
+ function W(e) {
992
1002
  if (e.isCustom) {
993
1003
  let t = e.type.replace("custom:", ""), n = c.find((e) => e.type === t);
994
1004
  if (n) return U(n);
995
1005
  }
996
1006
  return H(e.type, f);
997
1007
  }
998
- function B(e) {
1008
+ function G(e) {
999
1009
  if (!p) return;
1000
- let t = z(e), { targetSectionId: n, columnIndex: r, index: i } = xr({
1010
+ let t = W(e), { targetSectionId: n, columnIndex: r, index: i } = br({
1001
1011
  blockType: e.type,
1002
1012
  selectedBlockId: p.state.selectedBlockId,
1003
1013
  findBlockLocation: p.findBlockLocation,
@@ -1005,10 +1015,12 @@ var Sr = ["aria-label"], Cr = {
1005
1015
  });
1006
1016
  p.addBlock(t, n, r, i), p.selectBlock(t.id), m(t.id);
1007
1017
  }
1008
- function V(e, t) {
1009
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), B(t));
1018
+ function te(e, t) {
1019
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), G(t));
1010
1020
  }
1011
1021
  return (e, t) => (s(), x("aside", {
1022
+ ref_key: "railEl",
1023
+ ref: w,
1012
1024
  "aria-label": g(a).sidebarNav.palette,
1013
1025
  class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:flex tpl:flex-col tpl:overflow-hidden",
1014
1026
  style: E({
@@ -1019,59 +1031,60 @@ var Sr = ["aria-label"], Cr = {
1019
1031
  transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
1020
1032
  }),
1021
1033
  onMouseenter: t[1] ||= (e) => y.value = !0,
1022
- onMouseleave: w,
1034
+ onMouseleave: O,
1023
1035
  onFocusin: t[2] ||= (e) => y.value = !0,
1024
1036
  onFocusout: t[3] ||= (e) => y.value = !1
1025
- }, [v.value ? (s(), x("div", Cr, [A("button", {
1037
+ }, [v.value ? (s(), x("div", Sr, [A("button", {
1026
1038
  type: "button",
1027
1039
  "aria-label": g(a).sidebarNav.browseSavedBlocks,
1028
1040
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)]",
1029
1041
  style: E({ justifyContent: y.value ? "flex-start" : "center" }),
1030
1042
  onClick: t[0] ||= (e) => g(h).savedBlocks?.openBrowser()
1031
- }, [_(g(zt), {
1043
+ }, [_(g(Rt), {
1032
1044
  size: 20,
1033
1045
  "stroke-width": 1.5,
1034
1046
  class: "tpl:shrink-0"
1035
- }), y.value ? (s(), x("span", Tr, F(g(a).savedBlocks.title), 1)) : S("", !0)], 12, wr)])) : S("", !0), _(g(ee), {
1036
- "model-value": L.value,
1047
+ }), y.value ? (s(), x("span", wr, F(g(a).savedBlocks.title), 1)) : S("", !0)], 12, Cr)])) : S("", !0), _(g(ee), {
1048
+ "model-value": B.value,
1037
1049
  group: {
1038
1050
  name: "blocks",
1039
1051
  pull: "clone",
1040
1052
  put: !1
1041
1053
  },
1042
- clone: z,
1054
+ clone: W,
1043
1055
  sort: !1,
1044
1056
  animation: 150,
1045
1057
  "force-fallback": !0,
1046
1058
  class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
1047
- onChoose: T,
1048
- onEnd: O
1059
+ onChoose: k,
1060
+ onUnchoose: j,
1061
+ onEnd: M
1049
1062
  }, {
1050
- default: r(() => [(s(!0), x(P, null, n(L.value, (e) => (s(), x("button", {
1063
+ default: r(() => [(s(!0), x(P, null, n(B.value, (e) => (s(), x("button", {
1051
1064
  key: e.type,
1052
1065
  type: "button",
1053
1066
  "data-palette-type": e.type,
1054
1067
  "aria-label": g(o)(g(a).sidebarNav.insertBlock, { block: e.label }),
1055
1068
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:active:cursor-grabbing",
1056
1069
  style: E({ justifyContent: y.value ? "flex-start" : "center" }),
1057
- onClick: (t) => B(e),
1058
- onKeydown: (t) => V(t, e)
1059
- }, [A("div", Dr, [g(vn)[e.type] ? (s(), D(u(g(vn)[e.type]), {
1070
+ onClick: (t) => G(e),
1071
+ onKeydown: (t) => te(t, e)
1072
+ }, [A("div", Er, [g(_n)[e.type] ? (s(), D(u(g(_n)[e.type]), {
1060
1073
  key: 0,
1061
1074
  size: 20,
1062
1075
  "stroke-width": 1.5
1063
- })) : e.isCustom ? (s(), D(de, {
1076
+ })) : e.isCustom ? (s(), D(ue, {
1064
1077
  key: 1,
1065
1078
  icon: e.icon,
1066
1079
  size: 20
1067
- }, null, 8, ["icon"])) : S("", !0)]), y.value ? (s(), x("span", Or, F(e.label), 1)) : S("", !0)], 44, Er))), 128))]),
1080
+ }, null, 8, ["icon"])) : S("", !0)]), y.value ? (s(), x("span", Dr, F(e.label), 1)) : S("", !0)], 44, Tr))), 128))]),
1068
1081
  _: 1
1069
- }, 8, ["model-value"])], 44, Sr));
1082
+ }, 8, ["model-value"])], 44, xr));
1070
1083
  }
1071
1084
  });
1072
1085
  //#endregion
1073
1086
  //#region src/utils/mergeTagTrigger.ts
1074
- function Ar(e, t, n, r) {
1087
+ function kr(e, t, n, r) {
1075
1088
  if (!n) return null;
1076
1089
  let i = e.slice(0, t), a = i.lastIndexOf(n);
1077
1090
  if (a === -1) return null;
@@ -1084,8 +1097,8 @@ function Ar(e, t, n, r) {
1084
1097
  }
1085
1098
  //#endregion
1086
1099
  //#region src/utils/textFieldCaret.ts
1087
- var jr = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
1088
- function Mr(e, t, n) {
1100
+ var Ar = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
1101
+ function jr(e, t, n) {
1089
1102
  return {
1090
1103
  left: e,
1091
1104
  top: t,
@@ -1098,7 +1111,7 @@ function Mr(e, t, n) {
1098
1111
  toJSON: () => ({})
1099
1112
  };
1100
1113
  }
1101
- function Nr(e, t) {
1114
+ function Mr(e, t) {
1102
1115
  let n = e.ownerDocument, r = n.defaultView;
1103
1116
  if (!r) return null;
1104
1117
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -1106,7 +1119,7 @@ function Nr(e, t) {
1106
1119
  let s = o.style;
1107
1120
  s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
1108
1121
  let c = s, l = a;
1109
- for (let e of jr) c[e] = l[e];
1122
+ for (let e of Ar) c[e] = l[e];
1110
1123
  i && (s.width = "auto", s.whiteSpace = "pre");
1111
1124
  let u = e.value, d = u.slice(0, t);
1112
1125
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -1115,26 +1128,26 @@ function Nr(e, t) {
1115
1128
  let p = f.offsetTop, m = f.offsetLeft;
1116
1129
  n.body.removeChild(o);
1117
1130
  let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
1118
- if (i) return Mr(y, h.top, h.bottom);
1131
+ if (i) return jr(y, h.top, h.bottom);
1119
1132
  let b = h.top + p + g - e.scrollTop;
1120
- return Mr(y, b, b + v);
1133
+ return jr(y, b, b + v);
1121
1134
  }
1122
1135
  //#endregion
1123
1136
  //#region src/composables/useMergeTagAutocomplete.ts
1124
- var Pr = /* @__PURE__ */ new Set([
1137
+ var Nr = /* @__PURE__ */ new Set([
1125
1138
  "ArrowLeft",
1126
1139
  "ArrowRight",
1127
1140
  "Home",
1128
1141
  "End"
1129
1142
  ]);
1130
- function Fr(e) {
1131
- let { elementRef: n, modelValue: r, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, u = ae(s), d = ne(s), f = c && u !== null && o.length > 0, p = t($e, null), h = (j(p) ? p.value : p)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = yt(), _ = On(h, g), v = !1;
1143
+ function Pr(e) {
1144
+ let { elementRef: n, modelValue: r, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, u = ie(s), d = te(s), f = c && u !== null && o.length > 0, p = t(Qe, null), h = (j(p) ? p.value : p)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = vt(), _ = Dn(h, g), v = !1;
1132
1145
  a() && m(() => {
1133
1146
  v = !0, _.close();
1134
1147
  });
1135
1148
  function y(e) {
1136
1149
  let t = e.value ?? "";
1137
- return Ar(t, e.selectionStart ?? t.length, u, d);
1150
+ return kr(t, e.selectionStart ?? t.length, u, d);
1138
1151
  }
1139
1152
  function b(e, t, a) {
1140
1153
  let o = e.value ?? r(), s = o.slice(t.caret), c = d && s.startsWith(d) ? d.length : 0, u = o.slice(0, t.triggerStart), f = o.slice(t.caret + c), p = u + a.value + f, m = u.length + a.value.length;
@@ -1156,7 +1169,7 @@ function Fr(e) {
1156
1169
  _.close();
1157
1170
  return;
1158
1171
  }
1159
- let r = kn(o, t.query), i = () => Nr(e, t.triggerStart), a = (n) => b(e, t, n);
1172
+ let r = On(o, t.query), i = () => Mr(e, t.triggerStart), a = (n) => b(e, t, n);
1160
1173
  _.isOpen() ? _.update({
1161
1174
  items: r,
1162
1175
  getRect: i,
@@ -1169,7 +1182,7 @@ function Fr(e) {
1169
1182
  });
1170
1183
  }
1171
1184
  function S(e) {
1172
- return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : Pr.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
1185
+ return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : Nr.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
1173
1186
  }
1174
1187
  return {
1175
1188
  available: f,
@@ -1181,12 +1194,12 @@ function Fr(e) {
1181
1194
  }
1182
1195
  //#endregion
1183
1196
  //#region src/composables/useMergeTagField.ts
1184
- function Ir(e) {
1185
- let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: i, canRequestMergeTag: o, isRequesting: s, isMergeTagValue: c, getMergeTagLabel: u, requestMergeTag: d, syntax: f, autocomplete: p } = fn(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = ue(), v = l(!1), y = !1, x = !1;
1197
+ function Fr(e) {
1198
+ let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: i, canRequestMergeTag: o, isRequesting: s, isMergeTagValue: c, getMergeTagLabel: u, requestMergeTag: d, syntax: f, autocomplete: p } = dn(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = le(), v = l(!1), y = !1, x = !1;
1186
1199
  a() && m(() => {
1187
1200
  x = !0;
1188
1201
  });
1189
- let S = Fr({
1202
+ let S = Pr({
1190
1203
  elementRef: r,
1191
1204
  modelValue: t,
1192
1205
  emit: n,
@@ -1210,10 +1223,10 @@ function Ir(e) {
1210
1223
  type: "mergeTag",
1211
1224
  value: t,
1212
1225
  label: u(t)
1213
- }) : re(t, f) ? n.push({
1226
+ }) : ne(t, f) ? n.push({
1214
1227
  type: "logicMergeTag",
1215
1228
  value: t,
1216
- keyword: te(t, f)
1229
+ keyword: W(t, f)
1217
1230
  }) : n.push({
1218
1231
  type: "text",
1219
1232
  value: t
@@ -1308,10 +1321,10 @@ function Ir(e) {
1308
1321
  }
1309
1322
  //#endregion
1310
1323
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
1311
- var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip"], Br = {
1324
+ var Ir = ["aria-label", "onKeydown"], Lr = ["data-tooltip"], Rr = ["data-tooltip"], zr = {
1312
1325
  key: 2,
1313
1326
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
1314
- }, Vr = ["aria-label", "title"], Hr = /* @__PURE__ */ d({
1327
+ }, Br = ["aria-label", "title"], Vr = /* @__PURE__ */ d({
1315
1328
  __name: "MergeTagSegments",
1316
1329
  props: {
1317
1330
  segments: {},
@@ -1320,7 +1333,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1320
1333
  },
1321
1334
  emits: ["edit", "clear"],
1322
1335
  setup(e, { emit: t }) {
1323
- let r = t, { t: i } = K();
1336
+ let r = t, { t: i } = q();
1324
1337
  function a() {
1325
1338
  r("edit");
1326
1339
  }
@@ -1339,7 +1352,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1339
1352
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
1340
1353
  color: "var(--tpl-primary)"
1341
1354
  }
1342
- }, F(e.label), 9, Rr)) : e.type === "logicMergeTag" ? (s(), x("span", {
1355
+ }, F(e.label), 9, Lr)) : e.type === "logicMergeTag" ? (s(), x("span", {
1343
1356
  key: 1,
1344
1357
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
1345
1358
  "data-tooltip": e.value,
@@ -1348,75 +1361,75 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1348
1361
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
1349
1362
  color: "var(--tpl-primary)"
1350
1363
  }
1351
- }, F(e.keyword), 9, zr)) : (s(), x("span", Br, F(e.value), 1))], 64))), 128)), A("button", {
1364
+ }, F(e.keyword), 9, Rr)) : (s(), x("span", zr, F(e.value), 1))], 64))), 128)), A("button", {
1352
1365
  type: "button",
1353
1366
  class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
1354
1367
  "aria-label": g(i).mergeTag.remove,
1355
1368
  title: g(i).mergeTag.remove,
1356
1369
  onClick: o[0] ||= T((e) => r("clear"), ["stop"])
1357
- }, [_(g(Qt), {
1370
+ }, [_(g(Zt), {
1358
1371
  size: 12,
1359
1372
  "stroke-width": 2.5
1360
- })], 8, Vr)], 42, Lr));
1373
+ })], 8, Br)], 42, Ir));
1361
1374
  }
1362
- }), Ur = [
1375
+ }), Hr = [
1363
1376
  "aria-label",
1364
1377
  "title",
1365
1378
  "disabled"
1366
- ], Wr = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Gr = /* @__PURE__ */ d({
1379
+ ], Ur = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Wr = /* @__PURE__ */ d({
1367
1380
  __name: "MergeTagInsertButton",
1368
1381
  props: { disabled: { type: Boolean } },
1369
1382
  emits: ["insert"],
1370
1383
  setup(e) {
1371
- let { t } = K();
1384
+ let { t } = q();
1372
1385
  return (n, r) => (s(), x("button", {
1373
1386
  type: "button",
1374
- class: y([Wr, "tpl:mt-1.5"]),
1387
+ class: y([Ur, "tpl:mt-1.5"]),
1375
1388
  "aria-label": g(t).mergeTag.insert,
1376
1389
  title: g(t).mergeTag.insert,
1377
1390
  disabled: e.disabled,
1378
1391
  onMousedown: r[0] ||= T(() => {}, ["prevent"]),
1379
1392
  onClick: r[1] ||= (e) => n.$emit("insert")
1380
- }, [_(g(Nt), {
1393
+ }, [_(g(Mt), {
1381
1394
  size: 12,
1382
1395
  "stroke-width": 2
1383
- }), R(" " + F(g(t).mergeTag.insertShort), 1)], 42, Ur));
1396
+ }), R(" " + F(g(t).mergeTag.insertShort), 1)], 42, Hr));
1384
1397
  }
1385
- }), Kr = [
1398
+ }), Gr = [
1386
1399
  "aria-label",
1387
1400
  "title",
1388
1401
  "disabled"
1389
- ], qr = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Jr = /* @__PURE__ */ d({
1402
+ ], Kr = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", qr = /* @__PURE__ */ d({
1390
1403
  __name: "LogicTagInsertButton",
1391
1404
  props: { disabled: { type: Boolean } },
1392
1405
  emits: ["insert"],
1393
1406
  setup(e) {
1394
- let { t } = K();
1407
+ let { t } = q();
1395
1408
  return (n, r) => (s(), x("button", {
1396
1409
  type: "button",
1397
- class: y([qr, "tpl:mt-1.5"]),
1410
+ class: y([Kr, "tpl:mt-1.5"]),
1398
1411
  "aria-label": g(t).logicTag.insert,
1399
1412
  title: g(t).logicTag.insert,
1400
1413
  disabled: e.disabled,
1401
1414
  "data-testid": "field-insert-logic-button",
1402
1415
  onMousedown: r[0] ||= T(() => {}, ["prevent"]),
1403
1416
  onClick: r[1] ||= (e) => n.$emit("insert")
1404
- }, [_(g(Ft), {
1417
+ }, [_(g(Pt), {
1405
1418
  size: 12,
1406
1419
  "stroke-width": 2
1407
- }), R(" " + F(g(t).logicTag.insertShort), 1)], 42, Kr));
1420
+ }), R(" " + F(g(t).logicTag.insertShort), 1)], 42, Gr));
1408
1421
  }
1409
- }), Yr = { key: 0 }, Xr = {
1422
+ }), Jr = { key: 0 }, Yr = {
1410
1423
  key: 0,
1411
1424
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1412
- }, Zr = { key: 1 }, Qr = [
1425
+ }, Xr = { key: 1 }, Zr = [
1413
1426
  "value",
1414
1427
  "placeholder",
1415
1428
  "rows"
1416
- ], $r = {
1429
+ ], Qr = {
1417
1430
  key: 0,
1418
1431
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1419
- }, ei = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", ti = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", ni = /* @__PURE__ */ d({
1432
+ }, $r = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", ei = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", ti = /* @__PURE__ */ d({
1420
1433
  __name: "MergeTagTextarea",
1421
1434
  props: {
1422
1435
  modelValue: {},
@@ -1425,32 +1438,32 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1425
1438
  },
1426
1439
  emits: ["update:modelValue"],
1427
1440
  setup(e, { emit: t }) {
1428
- let n = e, r = t, i = l(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: u, canInsertLogicTag: d, isRequestingLogicTag: f, isEditing: p, startEditing: m, handleInput: h, handleKeydown: v, handleClick: b, handleBlur: C, clearValue: w, insertMergeTag: T, insertLogicTag: E } = Ir({
1441
+ let n = e, r = t, i = l(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: u, canInsertLogicTag: d, isRequestingLogicTag: f, isEditing: p, startEditing: m, handleInput: h, handleKeydown: v, handleClick: b, handleBlur: C, clearValue: w, insertMergeTag: T, insertLogicTag: E } = Fr({
1429
1442
  modelValue: () => n.modelValue,
1430
1443
  emit: (e) => r("update:modelValue", e),
1431
1444
  elementRef: i
1432
1445
  });
1433
- return (t, n) => g(o) && !g(p) ? (s(), x("div", Yr, [_(Hr, {
1446
+ return (t, n) => g(o) && !g(p) ? (s(), x("div", Jr, [_(Vr, {
1434
1447
  segments: g(a),
1435
- "display-class": ti,
1448
+ "display-class": ei,
1436
1449
  onEdit: g(m),
1437
1450
  onClear: g(w)
1438
1451
  }, null, 8, [
1439
1452
  "segments",
1440
1453
  "onEdit",
1441
1454
  "onClear"
1442
- ]), g(c) || g(d) ? (s(), x("div", Xr, [g(c) ? (s(), D(Gr, {
1455
+ ]), g(c) || g(d) ? (s(), x("div", Yr, [g(c) ? (s(), D(Wr, {
1443
1456
  key: 0,
1444
1457
  disabled: g(u),
1445
1458
  onInsert: g(T)
1446
- }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(Jr, {
1459
+ }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(qr, {
1447
1460
  key: 1,
1448
1461
  disabled: g(f),
1449
1462
  onInsert: g(E)
1450
- }, null, 8, ["disabled", "onInsert"])) : S("", !0)])) : S("", !0)])) : (s(), x("div", Zr, [A("textarea", {
1463
+ }, null, 8, ["disabled", "onInsert"])) : S("", !0)])) : S("", !0)])) : (s(), x("div", Xr, [A("textarea", {
1451
1464
  ref_key: "textareaRef",
1452
1465
  ref: i,
1453
- class: y(ei),
1466
+ class: y($r),
1454
1467
  value: e.modelValue,
1455
1468
  placeholder: e.placeholder,
1456
1469
  rows: e.rows,
@@ -1458,22 +1471,22 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1458
1471
  onKeydown: n[1] ||= (...e) => g(v) && g(v)(...e),
1459
1472
  onClick: n[2] ||= (...e) => g(b) && g(b)(...e),
1460
1473
  onBlur: n[3] ||= (...e) => g(C) && g(C)(...e)
1461
- }, null, 40, Qr), g(c) || g(d) ? (s(), x("div", $r, [g(c) ? (s(), D(Gr, {
1474
+ }, null, 40, Zr), g(c) || g(d) ? (s(), x("div", Qr, [g(c) ? (s(), D(Wr, {
1462
1475
  key: 0,
1463
1476
  disabled: g(u),
1464
1477
  onInsert: g(T)
1465
- }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(Jr, {
1478
+ }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(qr, {
1466
1479
  key: 1,
1467
1480
  disabled: g(f),
1468
1481
  onInsert: g(E)
1469
1482
  }, null, 8, ["disabled", "onInsert"])) : S("", !0)])) : S("", !0)]));
1470
1483
  }
1471
- }), ri = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ii = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, ai = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, oi = { class: "tpl:mb-3.5" }, si = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, ci = ["onClick"], li = { class: "tpl:flex tpl:items-stretch" }, ui = ["value"], di = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fi = { class: "tpl:mb-3.5" }, pi = { class: "tpl:mb-3.5" }, mi = { class: "tpl:mb-3.5" }, hi = { class: "tpl:mb-3.5" }, gi = ["value"], _i = ["value"], vi = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, yi = ["value"], bi = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, xi = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Si = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Ci = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, wi = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Ti = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Ei = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Di = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Oi = { class: "tpl:mb-1 tpl:last:mb-0" }, ki = { class: "tpl:mb-1 tpl:last:mb-0" }, Ai = { class: "tpl:mb-1 tpl:last:mb-0" }, ji = 150, Mi = /* @__PURE__ */ d({
1484
+ }), ni = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ri = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, ii = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ai = { class: "tpl:mb-3.5" }, oi = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, si = ["onClick"], ci = { class: "tpl:flex tpl:items-stretch" }, li = ["value"], ui = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, di = { class: "tpl:mb-3.5" }, fi = { class: "tpl:mb-3.5" }, pi = { class: "tpl:mb-3.5" }, mi = { class: "tpl:mb-3.5" }, hi = ["value"], gi = ["value"], _i = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, vi = ["value"], yi = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, bi = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, xi = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Si = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ci = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, wi = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Ti = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Ei = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Di = { class: "tpl:mb-1 tpl:last:mb-0" }, Oi = { class: "tpl:mb-1 tpl:last:mb-0" }, ki = { class: "tpl:mb-1 tpl:last:mb-0" }, Ai = 150, ji = /* @__PURE__ */ d({
1472
1485
  __name: "TemplateSettings",
1473
1486
  props: { settings: {} },
1474
1487
  emits: ["update"],
1475
1488
  setup(e, { emit: t }) {
1476
- let r = e, i = t, { t: a } = K(), o = et(tt, "TemplateSettings"), c = b(() => o.fonts.value), l = b(() => c.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : o.defaultFont.value), u = [
1489
+ let r = e, i = t, { t: a } = q(), o = $e(et, "TemplateSettings"), c = b(() => o.fonts.value), l = b(() => c.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : o.defaultFont.value), u = [
1477
1490
  {
1478
1491
  value: 480,
1479
1492
  label: "480px"
@@ -1491,14 +1504,14 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1491
1504
  label: "800px"
1492
1505
  }
1493
1506
  ];
1494
- return (t, r) => (s(), x("aside", ri, [A("div", ii, [
1495
- A("div", { class: y(g(wn)) }, [
1496
- A("div", ai, [_(g(sn), {
1507
+ return (t, r) => (s(), x("aside", ni, [A("div", ri, [
1508
+ A("div", { class: y(g(Cn)) }, [
1509
+ A("div", ii, [_(g(on), {
1497
1510
  class: "tpl:text-[var(--tpl-text-muted)]",
1498
1511
  size: 14,
1499
1512
  "stroke-width": 2
1500
1513
  }), A("span", null, F(g(a).templateSettings.layout), 1)]),
1501
- A("div", oi, [A("label", { class: y(g(q)) }, F(g(a).templateSettings.widthPreset), 3), A("div", si, [(s(), x(P, null, n(u, (t) => A("button", {
1514
+ A("div", ai, [A("label", { class: y(g(J)) }, F(g(a).templateSettings.widthPreset), 3), A("div", oi, [(s(), x(P, null, n(u, (t) => A("button", {
1502
1515
  key: t.value,
1503
1516
  class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
1504
1517
  style: E({
@@ -1507,101 +1520,101 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1507
1520
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
1508
1521
  }),
1509
1522
  onClick: (e) => i("update", { width: t.value })
1510
- }, F(t.label), 13, ci)), 64))])]),
1511
- A("div", null, [A("label", { class: y(g(q)) }, F(g(a).templateSettings.customWidth), 3), A("div", li, [A("input", {
1523
+ }, F(t.label), 13, si)), 64))])]),
1524
+ A("div", null, [A("label", { class: y(g(J)) }, F(g(a).templateSettings.customWidth), 3), A("div", ci, [A("input", {
1512
1525
  type: "number",
1513
- class: y(g(Y)),
1526
+ class: y(g(X)),
1514
1527
  value: e.settings.width,
1515
1528
  min: "300",
1516
1529
  max: "900",
1517
1530
  onInput: r[0] ||= (e) => i("update", { width: Number(e.target.value) })
1518
- }, null, 42, ui), A("span", { class: y(g(J)) }, "px", 2)])])
1531
+ }, null, 42, li), A("span", { class: y(g(Y)) }, "px", 2)])])
1519
1532
  ], 2),
1520
- A("div", { class: y(g(wn)) }, [
1521
- A("div", di, [_(g(xt), {
1533
+ A("div", { class: y(g(Cn)) }, [
1534
+ A("div", ui, [_(g(bt), {
1522
1535
  class: "tpl:text-[var(--tpl-text-muted)]",
1523
1536
  size: 14,
1524
1537
  "stroke-width": 2
1525
1538
  }), A("span", null, F(g(a).templateSettings.appearance), 1)]),
1526
- A("div", fi, [A("label", { class: y(g(q)) }, F(g(a).templateSettings.backgroundColor), 3), _(Z, {
1539
+ A("div", di, [A("label", { class: y(g(J)) }, F(g(a).templateSettings.backgroundColor), 3), _(Q, {
1527
1540
  "model-value": e.settings.backgroundColor,
1528
- placeholder: g(En),
1541
+ placeholder: g(Tn),
1529
1542
  "onUpdate:modelValue": r[1] ||= (e) => i("update", { backgroundColor: e })
1530
1543
  }, null, 8, ["model-value", "placeholder"])]),
1531
- A("div", pi, [A("label", { class: y(g(q)) }, F(g(a).templateSettings.textColor), 3), _(Z, {
1544
+ A("div", fi, [A("label", { class: y(g(J)) }, F(g(a).templateSettings.textColor), 3), _(Q, {
1532
1545
  "model-value": e.settings.textColor ?? "",
1533
1546
  "seed-color": "#1a1a1a",
1534
1547
  "onUpdate:modelValue": r[2] ||= (e) => i("update", { textColor: e })
1535
1548
  }, null, 8, ["model-value"])]),
1536
- A("div", mi, [A("label", { class: y(g(q)) }, F(g(a).templateSettings.linkColor), 3), _(Z, {
1549
+ A("div", pi, [A("label", { class: y(g(J)) }, F(g(a).templateSettings.linkColor), 3), _(Q, {
1537
1550
  "model-value": e.settings.linkColor ?? "",
1538
1551
  "seed-color": "#0066cc",
1539
1552
  "onUpdate:modelValue": r[3] ||= (e) => i("update", { linkColor: e || void 0 })
1540
1553
  }, null, 8, ["model-value"])]),
1541
- A("div", hi, [_(Q, {
1554
+ A("div", mi, [_($, {
1542
1555
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1543
1556
  "model-value": e.settings.linkUnderline,
1544
1557
  label: g(a).templateSettings.linkUnderline,
1545
1558
  "onUpdate:modelValue": r[4] ||= (e) => i("update", { linkUnderline: e })
1546
1559
  }, null, 8, ["model-value", "label"])]),
1547
- A("div", null, [A("label", { class: y(g(q)) }, F(g(a).templateSettings.fontFamily), 3), A("select", {
1548
- class: y(g(X)),
1560
+ A("div", null, [A("label", { class: y(g(J)) }, F(g(a).templateSettings.fontFamily), 3), A("select", {
1561
+ class: y(g(Z)),
1549
1562
  value: l.value,
1550
1563
  onChange: r[5] ||= (e) => i("update", { fontFamily: e.target.value })
1551
1564
  }, [(s(!0), x(P, null, n(c.value, (e) => (s(), x("option", {
1552
1565
  key: e.value,
1553
1566
  value: e.value
1554
- }, F(e.label), 9, _i))), 128))], 42, gi)])
1567
+ }, F(e.label), 9, gi))), 128))], 42, hi)])
1555
1568
  ], 2),
1556
- A("div", { class: y(g(wn)) }, [A("div", vi, [_(g(Vt), {
1569
+ A("div", { class: y(g(Cn)) }, [A("div", _i, [_(g(Bt), {
1557
1570
  class: "tpl:text-[var(--tpl-text-muted)]",
1558
1571
  size: 14,
1559
1572
  "stroke-width": 2
1560
1573
  }), A("span", null, F(g(a).templateSettings.language), 1)]), A("div", null, [
1561
- A("label", { class: y(g(q)) }, F(g(a).templateSettings.contentLocale), 3),
1574
+ A("label", { class: y(g(J)) }, F(g(a).templateSettings.contentLocale), 3),
1562
1575
  A("input", {
1563
1576
  type: "text",
1564
- class: y(g(X)),
1577
+ class: y(g(Z)),
1565
1578
  value: e.settings.locale ?? "",
1566
1579
  placeholder: "en",
1567
1580
  spellcheck: "false",
1568
1581
  autocapitalize: "off",
1569
1582
  autocomplete: "off",
1570
1583
  onInput: r[6] ||= (e) => i("update", { locale: e.target.value.trim() || void 0 })
1571
- }, null, 42, yi),
1572
- A("p", bi, F(g(a).templateSettings.contentLocaleHint), 1)
1584
+ }, null, 42, vi),
1585
+ A("p", yi, F(g(a).templateSettings.contentLocaleHint), 1)
1573
1586
  ])], 2),
1574
- A("div", { class: y(g(wn)) }, [A("div", xi, [_(g(cn), {
1587
+ A("div", { class: y(g(Cn)) }, [A("div", bi, [_(g(sn), {
1575
1588
  class: "tpl:text-[var(--tpl-text-muted)]",
1576
1589
  size: 14,
1577
1590
  "stroke-width": 2
1578
- }), A("span", null, F(g(a).templateSettings.preheaderText), 1)]), A("div", null, [_(ni, {
1591
+ }), A("span", null, F(g(a).templateSettings.preheaderText), 1)]), A("div", null, [_(ti, {
1579
1592
  "model-value": e.settings.preheaderText ?? "",
1580
1593
  placeholder: g(a).templateSettings.preheaderTextPlaceholder,
1581
1594
  rows: 2,
1582
1595
  "onUpdate:modelValue": r[7] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1583
- }, null, 8, ["model-value", "placeholder"]), A("div", Si, [A("span", Ci, F(g(a).templateSettings.preheaderTextHint), 1), A("span", wi, F((e.settings.preheaderText ?? "").length) + "/" + F(ji), 1)])])], 2),
1584
- A("div", Ti, [A("div", Ei, [_(g(Wt), {
1596
+ }, null, 8, ["model-value", "placeholder"]), A("div", xi, [A("span", Si, F(g(a).templateSettings.preheaderTextHint), 1), A("span", Ci, F((e.settings.preheaderText ?? "").length) + "/" + F(Ai), 1)])])], 2),
1597
+ A("div", wi, [A("div", Ti, [_(g(Ut), {
1585
1598
  size: 14,
1586
1599
  "stroke-width": 2
1587
- }), A("span", null, F(g(a).templateSettings.tips), 1)]), A("ul", Di, [
1588
- A("li", Oi, F(g(a).templateSettings.tip1), 1),
1589
- A("li", ki, F(g(a).templateSettings.tip2), 1),
1590
- A("li", Ai, F(g(a).templateSettings.tip3), 1)
1600
+ }), A("span", null, F(g(a).templateSettings.tips), 1)]), A("ul", Ei, [
1601
+ A("li", Di, F(g(a).templateSettings.tip1), 1),
1602
+ A("li", Oi, F(g(a).templateSettings.tip2), 1),
1603
+ A("li", ki, F(g(a).templateSettings.tip3), 1)
1591
1604
  ])])
1592
1605
  ])]));
1593
1606
  }
1594
- }), Ni = { key: 0 }, Pi = {
1607
+ }), Mi = { key: 0 }, Ni = {
1595
1608
  key: 0,
1596
1609
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1597
- }, Fi = { key: 1 }, Ii = [
1610
+ }, Pi = { key: 1 }, Fi = [
1598
1611
  "type",
1599
1612
  "value",
1600
1613
  "placeholder"
1601
- ], Li = {
1614
+ ], Ii = {
1602
1615
  key: 0,
1603
1616
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1604
- }, Ri = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", $ = /*#__PURE__*/ un(/* @__PURE__ */ d({
1617
+ }, Li = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", Ri = /*#__PURE__*/ ln(/* @__PURE__ */ d({
1605
1618
  __name: "MergeTagInput",
1606
1619
  props: {
1607
1620
  modelValue: {},
@@ -1614,14 +1627,14 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1614
1627
  },
1615
1628
  emits: ["update:modelValue"],
1616
1629
  setup(e, { emit: t }) {
1617
- let n = e, r = t, i = l(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: u, canInsertLogicTag: d, isRequestingLogicTag: f, isEditing: p, startEditing: m, handleInput: h, handleKeydown: v, handleClick: b, handleBlur: C, clearValue: w, insertMergeTag: T, insertLogicTag: E } = Ir({
1630
+ let n = e, r = t, i = l(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: u, canInsertLogicTag: d, isRequestingLogicTag: f, isEditing: p, startEditing: m, handleInput: h, handleKeydown: v, handleClick: b, handleBlur: C, clearValue: w, insertMergeTag: T, insertLogicTag: E } = Fr({
1618
1631
  modelValue: () => n.modelValue,
1619
1632
  emit: (e) => r("update:modelValue", e),
1620
1633
  elementRef: i
1621
1634
  });
1622
- return (t, n) => g(o) && !g(p) ? (s(), x("div", Ni, [_(Hr, {
1635
+ return (t, n) => g(o) && !g(p) ? (s(), x("div", Mi, [_(Vr, {
1623
1636
  segments: g(a),
1624
- "display-class": Ri,
1637
+ "display-class": Li,
1625
1638
  pulse: e.pulse,
1626
1639
  onEdit: g(m),
1627
1640
  onClear: g(w)
@@ -1630,30 +1643,30 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1630
1643
  "pulse",
1631
1644
  "onEdit",
1632
1645
  "onClear"
1633
- ]), g(c) || g(d) ? (s(), x("div", Pi, [g(c) ? (s(), D(Gr, {
1646
+ ]), g(c) || g(d) ? (s(), x("div", Ni, [g(c) ? (s(), D(Wr, {
1634
1647
  key: 0,
1635
1648
  disabled: g(u),
1636
1649
  onInsert: g(T)
1637
- }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(Jr, {
1650
+ }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(qr, {
1638
1651
  key: 1,
1639
1652
  disabled: g(f),
1640
1653
  onInsert: g(E)
1641
- }, null, 8, ["disabled", "onInsert"])) : S("", !0)])) : S("", !0)])) : (s(), x("div", Fi, [A("input", {
1654
+ }, null, 8, ["disabled", "onInsert"])) : S("", !0)])) : S("", !0)])) : (s(), x("div", Pi, [A("input", {
1642
1655
  ref_key: "inputRef",
1643
1656
  ref: i,
1644
1657
  type: e.type,
1645
- class: y([g(X), { "tpl-pulse-fill": e.pulse }]),
1658
+ class: y([g(Z), { "tpl-pulse-fill": e.pulse }]),
1646
1659
  value: e.modelValue,
1647
1660
  placeholder: e.placeholder,
1648
1661
  onInput: n[0] ||= (...e) => g(h) && g(h)(...e),
1649
1662
  onKeydown: n[1] ||= (...e) => g(v) && g(v)(...e),
1650
1663
  onClick: n[2] ||= (...e) => g(b) && g(b)(...e),
1651
1664
  onBlur: n[3] ||= (...e) => g(C) && g(C)(...e)
1652
- }, null, 42, Ii), g(c) || g(d) ? (s(), x("div", Li, [g(c) ? (s(), D(Gr, {
1665
+ }, null, 42, Fi), g(c) || g(d) ? (s(), x("div", Ii, [g(c) ? (s(), D(Wr, {
1653
1666
  key: 0,
1654
1667
  disabled: g(u),
1655
1668
  onInsert: g(T)
1656
- }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(Jr, {
1669
+ }, null, 8, ["disabled", "onInsert"])) : S("", !0), g(d) ? (s(), D(qr, {
1657
1670
  key: 1,
1658
1671
  disabled: g(f),
1659
1672
  onInsert: g(E)
@@ -1670,7 +1683,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1670
1683
  },
1671
1684
  emits: ["update"],
1672
1685
  setup(e, { emit: t }) {
1673
- let r = e, i = t, { t: a } = K(), o = b(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
1686
+ let r = e, i = t, { t: a } = q(), o = b(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
1674
1687
  function c(e, t) {
1675
1688
  i("update", { [e]: t });
1676
1689
  }
@@ -1690,28 +1703,28 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1690
1703
  !Number.isFinite(t) || t <= 0 || c("width", t);
1691
1704
  }
1692
1705
  return (t, r) => (s(), x(P, null, [
1693
- A("div", zi, [A("label", { class: y(g(q)) }, F(g(a).button.fontFamily), 3), A("select", {
1694
- class: y(g(X)),
1706
+ A("div", zi, [A("label", { class: y(g(J)) }, F(g(a).button.fontFamily), 3), A("select", {
1707
+ class: y(g(Z)),
1695
1708
  value: e.block.fontFamily || "",
1696
1709
  onChange: r[0] ||= (e) => c("fontFamily", e.target.value || void 0)
1697
1710
  }, [A("option", Vi, F(g(a).button.inheritFont), 1), (s(!0), x(P, null, n(e.fontFamilies, (e) => (s(), x("option", {
1698
1711
  key: e.value,
1699
1712
  value: e.value
1700
1713
  }, F(e.label), 9, Hi))), 128))], 42, Bi)]),
1701
- A("div", Ui, [A("label", { class: y(g(q)) }, F(g(a).button.text), 3), _($, {
1714
+ A("div", Ui, [A("label", { class: y(g(J)) }, F(g(a).button.text), 3), _(Ri, {
1702
1715
  "model-value": e.block.text,
1703
1716
  type: "text",
1704
1717
  "onUpdate:modelValue": r[1] ||= (e) => c("text", e)
1705
1718
  }, null, 8, ["model-value"])]),
1706
1719
  A("div", Wi, [
1707
- A("label", { class: y(g(q)) }, F(g(a).button.url), 3),
1708
- _($, {
1720
+ A("label", { class: y(g(J)) }, F(g(a).button.url), 3),
1721
+ _(Ri, {
1709
1722
  "model-value": e.block.url,
1710
1723
  type: "url",
1711
1724
  placeholder: g(a).button.urlPlaceholder,
1712
1725
  "onUpdate:modelValue": r[2] ||= (e) => c("url", e)
1713
1726
  }, null, 8, ["model-value", "placeholder"]),
1714
- e.block.url ? (s(), D(Q, {
1727
+ e.block.url ? (s(), D($, {
1715
1728
  key: 0,
1716
1729
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1717
1730
  "model-value": e.block.openInNewTab ?? !1,
@@ -1719,33 +1732,33 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1719
1732
  "onUpdate:modelValue": r[3] ||= (e) => c("openInNewTab", e)
1720
1733
  }, null, 8, ["model-value", "label"])) : S("", !0)
1721
1734
  ]),
1722
- A("div", Gi, [A("label", { class: y(g(q)) }, F(g(a).button.background), 3), _(Z, {
1735
+ A("div", Gi, [A("label", { class: y(g(J)) }, F(g(a).button.background), 3), _(Q, {
1723
1736
  "model-value": e.block.backgroundColor,
1724
1737
  "onUpdate:modelValue": r[4] ||= (e) => c("backgroundColor", e)
1725
1738
  }, null, 8, ["model-value"])]),
1726
- A("div", Ki, [A("label", { class: y(g(q)) }, F(g(a).button.textColor), 3), _(Z, {
1739
+ A("div", Ki, [A("label", { class: y(g(J)) }, F(g(a).button.textColor), 3), _(Q, {
1727
1740
  "model-value": e.block.textColor,
1728
1741
  "onUpdate:modelValue": r[5] ||= (e) => c("textColor", e)
1729
1742
  }, null, 8, ["model-value"])]),
1730
- A("div", qi, [A("div", Ji, [A("label", { class: y(g(q)) }, F(g(a).button.borderRadius), 3), A("div", Yi, [A("input", {
1743
+ A("div", qi, [A("div", Ji, [A("label", { class: y(g(J)) }, F(g(a).button.borderRadius), 3), A("div", Yi, [A("input", {
1731
1744
  type: "number",
1732
- class: y(g(Y)),
1745
+ class: y(g(X)),
1733
1746
  value: e.block.borderRadius,
1734
1747
  min: "0",
1735
1748
  max: "50",
1736
1749
  onInput: r[6] ||= (e) => c("borderRadius", Number(e.target.value))
1737
- }, null, 42, Xi), A("span", { class: y(g(J)) }, "px", 2)])]), A("div", Zi, [A("label", { class: y(g(q)) }, F(g(a).button.fontSize), 3), A("div", Qi, [A("input", {
1750
+ }, null, 42, Xi), A("span", { class: y(g(Y)) }, "px", 2)])]), A("div", Zi, [A("label", { class: y(g(J)) }, F(g(a).button.fontSize), 3), A("div", Qi, [A("input", {
1738
1751
  type: "number",
1739
- class: y(g(Y)),
1752
+ class: y(g(X)),
1740
1753
  value: e.block.fontSize,
1741
1754
  min: "10",
1742
1755
  max: "36",
1743
1756
  onInput: r[7] ||= (e) => c("fontSize", Number(e.target.value))
1744
- }, null, 42, $i), A("span", { class: y(g(J)) }, "px", 2)])])]),
1757
+ }, null, 42, $i), A("span", { class: y(g(Y)) }, "px", 2)])])]),
1745
1758
  A("div", ea, [
1746
- A("label", { class: y(g(q)) }, F(g(a).button.width), 3),
1759
+ A("label", { class: y(g(J)) }, F(g(a).button.width), 3),
1747
1760
  A("select", {
1748
- class: y(g(X)),
1761
+ class: y(g(Z)),
1749
1762
  value: o.value,
1750
1763
  onChange: r[8] ||= (e) => l(e.target.value)
1751
1764
  }, [
@@ -1755,13 +1768,13 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1755
1768
  ], 42, ta),
1756
1769
  o.value === "custom" ? (s(), x("div", aa, [A("input", {
1757
1770
  type: "number",
1758
- class: y(g(Y)),
1771
+ class: y(g(X)),
1759
1772
  value: typeof e.block.width == "number" ? e.block.width : ca,
1760
1773
  min: "20",
1761
1774
  onInput: r[9] ||= (e) => u(e.target.value)
1762
- }, null, 42, oa), A("span", { class: y(g(J)) }, "px", 2)])) : S("", !0)
1775
+ }, null, 42, oa), A("span", { class: y(g(Y)) }, "px", 2)])) : S("", !0)
1763
1776
  ]),
1764
- A("div", sa, [A("label", { class: y(g(q)) }, F(g(a).title.align), 3), _(jn, {
1777
+ A("div", sa, [A("label", { class: y(g(J)) }, F(g(a).title.align), 3), _(An, {
1765
1778
  options: [
1766
1779
  {
1767
1780
  value: "left",
@@ -1781,7 +1794,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1781
1794
  }, null, 8, ["options", "model-value"])])
1782
1795
  ], 64));
1783
1796
  }
1784
- }), ua = { class: "spacing-control" }, da = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, fa = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, pa = { class: "tpl:flex tpl:items-center" }, ma = ["aria-label"], ha = ["value", "aria-label"], ga = ["aria-label"], _a = { class: "tpl:flex tpl:items-center tpl:gap-2" }, va = { class: "tpl:flex tpl:items-center" }, ya = ["aria-label"], ba = ["value", "aria-label"], xa = ["aria-label"], Sa = ["aria-label", "title"], Ca = { class: "tpl:flex tpl:items-center" }, wa = ["aria-label"], Ta = ["value", "aria-label"], Ea = ["aria-label"], Da = { class: "tpl:flex tpl:items-center" }, Oa = ["aria-label"], ka = ["value", "aria-label"], Aa = ["aria-label"], ja = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", Ma = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Na = /*#__PURE__*/ un(/* @__PURE__ */ d({
1797
+ }), ua = { class: "spacing-control" }, da = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, fa = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, pa = { class: "tpl:flex tpl:items-center" }, ma = ["aria-label"], ha = ["value", "aria-label"], ga = ["aria-label"], _a = { class: "tpl:flex tpl:items-center tpl:gap-2" }, va = { class: "tpl:flex tpl:items-center" }, ya = ["aria-label"], ba = ["value", "aria-label"], xa = ["aria-label"], Sa = ["aria-label", "title"], Ca = { class: "tpl:flex tpl:items-center" }, wa = ["aria-label"], Ta = ["value", "aria-label"], Ea = ["aria-label"], Da = { class: "tpl:flex tpl:items-center" }, Oa = ["aria-label"], ka = ["value", "aria-label"], Aa = ["aria-label"], ja = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", Ma = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Na = /*#__PURE__*/ ln(/* @__PURE__ */ d({
1785
1798
  __name: "SpacingControl",
1786
1799
  props: {
1787
1800
  modelValue: {},
@@ -1789,7 +1802,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1789
1802
  },
1790
1803
  emits: ["update:modelValue"],
1791
1804
  setup(t, { emit: n }) {
1792
- let r = t, i = n, { t: a } = K(), o = b(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = l(o.value);
1805
+ let r = t, i = n, { t: a } = q(), o = b(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = l(o.value);
1793
1806
  e(o, (e) => {
1794
1807
  !e && c.value && (c.value = !1);
1795
1808
  });
@@ -1834,7 +1847,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1834
1847
  "aria-label": g(a).spacingControl.decreaseTop,
1835
1848
  class: y([ja, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1836
1849
  onClick: n[0] ||= (e) => u("top", -1)
1837
- }, [_(g(Gt), {
1850
+ }, [_(g(Wt), {
1838
1851
  size: 12,
1839
1852
  "stroke-width": 2
1840
1853
  })], 10, ma),
@@ -1850,7 +1863,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1850
1863
  "aria-label": g(a).spacingControl.increaseTop,
1851
1864
  class: y([ja, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1852
1865
  onClick: n[2] ||= (e) => u("top", 1)
1853
- }, [_(g(Rt), {
1866
+ }, [_(g(Lt), {
1854
1867
  size: 12,
1855
1868
  "stroke-width": 2
1856
1869
  })], 10, ga)
@@ -1861,7 +1874,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1861
1874
  "aria-label": g(a).spacingControl.decreaseLeft,
1862
1875
  class: y([ja, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1863
1876
  onClick: n[3] ||= (e) => u("left", -1)
1864
- }, [_(g(Gt), {
1877
+ }, [_(g(Wt), {
1865
1878
  size: 12,
1866
1879
  "stroke-width": 2
1867
1880
  })], 10, ya),
@@ -1877,7 +1890,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1877
1890
  "aria-label": g(a).spacingControl.increaseLeft,
1878
1891
  class: y([ja, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1879
1892
  onClick: n[5] ||= (e) => u("left", 1)
1880
- }, [_(g(Rt), {
1893
+ }, [_(g(Lt), {
1881
1894
  size: 12,
1882
1895
  "stroke-width": 2
1883
1896
  })], 10, xa)
@@ -1887,11 +1900,11 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1887
1900
  "aria-label": c.value ? g(a).spacingControl.unlock : g(a).spacingControl.lockAll,
1888
1901
  title: c.value ? g(a).spacingControl.unlock : g(a).spacingControl.lockAll,
1889
1902
  onClick: f
1890
- }, [c.value ? (s(), D(g($t), {
1903
+ }, [c.value ? (s(), D(g(Qt), {
1891
1904
  key: 0,
1892
1905
  size: 14,
1893
1906
  "stroke-width": 2
1894
- })) : (s(), D(g(nn), {
1907
+ })) : (s(), D(g(tn), {
1895
1908
  key: 1,
1896
1909
  size: 14,
1897
1910
  "stroke-width": 2
@@ -1901,7 +1914,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1901
1914
  "aria-label": g(a).spacingControl.decreaseRight,
1902
1915
  class: y([ja, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1903
1916
  onClick: n[6] ||= (e) => u("right", -1)
1904
- }, [_(g(Gt), {
1917
+ }, [_(g(Wt), {
1905
1918
  size: 12,
1906
1919
  "stroke-width": 2
1907
1920
  })], 10, wa),
@@ -1917,7 +1930,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1917
1930
  "aria-label": g(a).spacingControl.increaseRight,
1918
1931
  class: y([ja, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1919
1932
  onClick: n[8] ||= (e) => u("right", 1)
1920
- }, [_(g(Rt), {
1933
+ }, [_(g(Lt), {
1921
1934
  size: 12,
1922
1935
  "stroke-width": 2
1923
1936
  })], 10, Ea)
@@ -1928,7 +1941,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1928
1941
  "aria-label": g(a).spacingControl.decreaseBottom,
1929
1942
  class: y([ja, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1930
1943
  onClick: n[9] ||= (e) => u("bottom", -1)
1931
- }, [_(g(Gt), {
1944
+ }, [_(g(Wt), {
1932
1945
  size: 12,
1933
1946
  "stroke-width": 2
1934
1947
  })], 10, Oa),
@@ -1944,7 +1957,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1944
1957
  "aria-label": g(a).spacingControl.increaseBottom,
1945
1958
  class: y([ja, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1946
1959
  onClick: n[11] ||= (e) => u("bottom", 1)
1947
- }, [_(g(Rt), {
1960
+ }, [_(g(Lt), {
1948
1961
  size: 12,
1949
1962
  "stroke-width": 2
1950
1963
  })], 10, Aa)
@@ -1966,7 +1979,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1966
1979
  "data-testid": e.headerTestId,
1967
1980
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1968
1981
  onClick: n[0] ||= (e) => t.$emit("toggle")
1969
- }, [_(g(Dt), {
1982
+ }, [_(g(Et), {
1970
1983
  class: y(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1971
1984
  size: 12,
1972
1985
  "stroke-width": 2
@@ -1992,13 +2005,13 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
1992
2005
  },
1993
2006
  emits: ["update"],
1994
2007
  setup(i, { emit: a }) {
1995
- let o = i, c = a, { t: d } = K(), m = t(ct, []), h = t(lt, !1), v = p(/* @__PURE__ */ new Set()), C = l(!1), w = l(""), T = l(""), E = [{
2008
+ let o = i, c = a, { t: d } = q(), m = t(st, []), h = t(ct, !1), v = p(/* @__PURE__ */ new Set()), C = l(!1), w = l(""), T = l(""), E = [{
1996
2009
  key: "desktop",
1997
- icon: bt,
2010
+ icon: yt,
1998
2011
  labelKey: "showOnDesktop"
1999
2012
  }, {
2000
2013
  key: "mobile",
2001
- icon: St,
2014
+ icon: xt,
2002
2015
  labelKey: "showOnMobile"
2003
2016
  }];
2004
2017
  function O(e) {
@@ -2069,7 +2082,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2069
2082
  open: v.has("bg"),
2070
2083
  onToggle: t[3] ||= (e) => O("bg")
2071
2084
  }, {
2072
- default: r(() => [A("label", { class: y(g(q)) }, F(g(d).blockSettings.color), 3), _(Z, {
2085
+ default: r(() => [A("label", { class: y(g(J)) }, F(g(d).blockSettings.color), 3), _(Q, {
2073
2086
  "model-value": i.block.styles.backgroundColor ?? "",
2074
2087
  "onUpdate:modelValue": t[2] ||= (e) => L("backgroundColor", e)
2075
2088
  }, null, 8, ["model-value"])]),
@@ -2080,7 +2093,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2080
2093
  open: v.has("display"),
2081
2094
  onToggle: t[4] ||= (e) => O("display")
2082
2095
  }, {
2083
- default: r(() => [A("div", La, [(s(), x(P, null, n(E, (e) => _(Q, {
2096
+ default: r(() => [A("div", La, [(s(), x(P, null, n(E, (e) => _($, {
2084
2097
  key: e.key,
2085
2098
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2086
2099
  "model-value": z(e.key),
@@ -2140,12 +2153,12 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2140
2153
  A("div", null, [A("label", qa, F(g(d).blockSettings.customConditionBefore), 1), f(A("textarea", {
2141
2154
  "onUpdate:modelValue": t[6] ||= (e) => w.value = e,
2142
2155
  rows: "2",
2143
- class: y(g(xn))
2156
+ class: y(g(bn))
2144
2157
  }, null, 2), [[k, w.value]])]),
2145
2158
  A("div", null, [A("label", Ja, F(g(d).blockSettings.customConditionAfter), 1), f(A("textarea", {
2146
2159
  "onUpdate:modelValue": t[7] ||= (e) => T.value = e,
2147
2160
  rows: "2",
2148
- class: y(g(xn))
2161
+ class: y(g(bn))
2149
2162
  }, null, 2), [[k, T.value]])]),
2150
2163
  A("div", Ya, [A("button", {
2151
2164
  type: "button",
@@ -2167,11 +2180,11 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2167
2180
  },
2168
2181
  emits: ["update:modelValue"],
2169
2182
  setup(e, { emit: t }) {
2170
- let n = t, { t: i } = K();
2183
+ let n = t, { t: i } = q();
2171
2184
  return (t, a) => (s(), x("div", {
2172
2185
  class: "tpl:mb-3.5",
2173
2186
  title: e.readOnly ? g(i).customBlocks.dataSource.readOnlyTooltip : void 0
2174
- }, [_(Q, {
2187
+ }, [_($, {
2175
2188
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2176
2189
  "model-value": e.modelValue,
2177
2190
  label: e.field.label,
@@ -2179,7 +2192,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2179
2192
  disabled: e.readOnly,
2180
2193
  "onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
2181
2194
  }, {
2182
- default: r(() => [R(F(e.field.label) + " ", 1), e.readOnly ? (s(), D(g($t), {
2195
+ default: r(() => [R(F(e.field.label) + " ", 1), e.readOnly ? (s(), D(g(Qt), {
2183
2196
  key: 0,
2184
2197
  size: 12,
2185
2198
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -2200,13 +2213,13 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2200
2213
  readOnly: { type: Boolean }
2201
2214
  },
2202
2215
  setup(e) {
2203
- let { t } = K();
2204
- return (n, r) => (s(), x("div", io, [A("label", { class: y(g(q)) }, [
2216
+ let { t } = q();
2217
+ return (n, r) => (s(), x("div", io, [A("label", { class: y(g(J)) }, [
2205
2218
  R(F(e.label) + " ", 1),
2206
2219
  e.readOnly ? (s(), x("span", {
2207
2220
  key: 0,
2208
2221
  title: g(t).customBlocks.dataSource.readOnlyTooltip
2209
- }, [_(g($t), {
2222
+ }, [_(g(Qt), {
2210
2223
  size: 12,
2211
2224
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
2212
2225
  "aria-hidden": "true"
@@ -2227,13 +2240,13 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2227
2240
  },
2228
2241
  emits: ["update:modelValue"],
2229
2242
  setup(e, { emit: n }) {
2230
- let i = e, a = n, { t: o } = K(), c = t(mt, vt), l = b(() => ke(i.field, c));
2243
+ let i = e, a = n, { t: o } = q(), c = t(pt, _t), l = b(() => Oe(i.field, c));
2231
2244
  return (t, n) => (s(), D(lo, {
2232
2245
  label: e.field.label,
2233
2246
  required: e.field.required,
2234
2247
  "read-only": e.readOnly
2235
2248
  }, {
2236
- default: r(() => [_(Z, {
2249
+ default: r(() => [_(Q, {
2237
2250
  "model-value": e.modelValue,
2238
2251
  placeholder: e.field.placeholder,
2239
2252
  disabled: e.readOnly,
@@ -2273,7 +2286,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2273
2286
  },
2274
2287
  emits: ["update:modelValue"],
2275
2288
  setup(e, { emit: n }) {
2276
- let i = e, a = n, { t: o } = K(), c = t(ot, null), u = pn(), d = b(() => !!c);
2289
+ let i = e, a = n, { t: o } = q(), c = t(at, null), u = fn(), d = b(() => !!c);
2277
2290
  async function f() {
2278
2291
  let e = await c?.({ accept: ["images"] });
2279
2292
  u.alive && e && a("update:modelValue", e.url);
@@ -2294,7 +2307,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2294
2307
  }
2295
2308
  }
2296
2309
  }
2297
- let { isOver: C } = Te({
2310
+ let { isOver: C } = we({
2298
2311
  target: p,
2299
2312
  enabled: h,
2300
2313
  onFiles: v
@@ -2309,18 +2322,18 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2309
2322
  ref: p,
2310
2323
  class: "tpl:relative"
2311
2324
  }, [
2312
- h.value && (g(C) || m.value) ? (s(), x("div", fo, [m.value ? (s(), x(P, { key: 0 }, [_(g(Jt), {
2325
+ h.value && (g(C) || m.value) ? (s(), x("div", fo, [m.value ? (s(), x(P, { key: 0 }, [_(g(qt), {
2313
2326
  class: "tpl-spinner",
2314
2327
  size: 18,
2315
2328
  "stroke-width": 2
2316
- }), R(" " + F(g(o).image.uploading), 1)], 64)) : (s(), x(P, { key: 1 }, [_(g(rn), {
2329
+ }), R(" " + F(g(o).image.uploading), 1)], 64)) : (s(), x(P, { key: 1 }, [_(g(nn), {
2317
2330
  size: 18,
2318
2331
  "stroke-width": 1.5
2319
2332
  }), R(" " + F(g(o).image.dropToUpload), 1)], 64))])) : S("", !0),
2320
2333
  e.readOnly ? (s(), x("input", {
2321
2334
  key: 1,
2322
2335
  type: "url",
2323
- class: y([g(X), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2336
+ class: y([g(Z), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2324
2337
  value: e.modelValue,
2325
2338
  placeholder: e.field.placeholder || "https://...",
2326
2339
  disabled: "",
@@ -2328,7 +2341,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2328
2341
  }, null, 10, po)) : (s(), x("input", {
2329
2342
  key: 2,
2330
2343
  type: "url",
2331
- class: y(g(X)),
2344
+ class: y(g(Z)),
2332
2345
  value: e.modelValue,
2333
2346
  placeholder: e.field.placeholder || "https://...",
2334
2347
  onInput: n[0] ||= (e) => a("update:modelValue", e.target.value)
@@ -2337,7 +2350,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2337
2350
  key: 3,
2338
2351
  class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
2339
2352
  onClick: n[1] ||= (e) => f()
2340
- }, [_(g(Kt), {
2353
+ }, [_(g(Gt), {
2341
2354
  size: 14,
2342
2355
  "stroke-width": 1.5
2343
2356
  }), R(" " + F(g(o).image.browseMedia), 1)])) : S("", !0)
@@ -2366,7 +2379,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2366
2379
  },
2367
2380
  emits: ["update:modelValue"],
2368
2381
  setup(e, { emit: t }) {
2369
- let n = t, { t: i } = K();
2382
+ let n = t, { t: i } = q();
2370
2383
  return (t, a) => (s(), D(lo, {
2371
2384
  label: e.field.label,
2372
2385
  required: e.field.required,
@@ -2374,7 +2387,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2374
2387
  }, {
2375
2388
  default: r(() => [A("input", {
2376
2389
  type: "number",
2377
- class: y([g(X), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2390
+ class: y([g(Z), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2378
2391
  value: e.modelValue,
2379
2392
  placeholder: e.field.placeholder,
2380
2393
  min: e.field.min,
@@ -2406,7 +2419,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2406
2419
  },
2407
2420
  emits: ["update:modelValue"],
2408
2421
  setup(e, { emit: t }) {
2409
- let i = e, a = t, { t: o, format: c } = K(), l = b(() => i.modelValue || []), d = b(() => !i.field.maxItems || l.value.length < i.field.maxItems), f = b(() => !i.field.minItems || l.value.length > i.field.minItems);
2422
+ let i = e, a = t, { t: o, format: c } = q(), l = b(() => i.modelValue || []), d = b(() => !i.field.maxItems || l.value.length < i.field.maxItems), f = b(() => !i.field.minItems || l.value.length > i.field.minItems);
2410
2423
  function p() {
2411
2424
  if (!d.value || i.readOnly) return;
2412
2425
  let e = {};
@@ -2440,7 +2453,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2440
2453
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
2441
2454
  title: g(o).customBlocks.fields.removeItem,
2442
2455
  onClick: (e) => m(r)
2443
- }, [_(g(Ut), {
2456
+ }, [_(g(Ht), {
2444
2457
  size: 12,
2445
2458
  "stroke-width": 2
2446
2459
  })], 8, xo)) : S("", !0)]), (s(!0), x(P, null, n(e.field.fields, (n) => (s(), D(u(g(No)(n.type)), {
@@ -2458,9 +2471,9 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2458
2471
  d.value && !e.readOnly ? (s(), x("button", {
2459
2472
  key: 0,
2460
2473
  type: "button",
2461
- class: y(g(Cn)),
2474
+ class: y(g(Sn)),
2462
2475
  onClick: p
2463
- }, [_(g(Rt), {
2476
+ }, [_(g(Lt), {
2464
2477
  size: 14,
2465
2478
  "stroke-width": 2
2466
2479
  }), R(" " + F(g(o).customBlocks.fields.addItem), 1)], 2)) : S("", !0),
@@ -2487,14 +2500,14 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2487
2500
  },
2488
2501
  emits: ["update:modelValue"],
2489
2502
  setup(e, { emit: t }) {
2490
- let i = t, { t: a } = K();
2503
+ let i = t, { t: a } = q();
2491
2504
  return (t, o) => (s(), D(lo, {
2492
2505
  label: e.field.label,
2493
2506
  required: e.field.required,
2494
2507
  "read-only": e.readOnly
2495
2508
  }, {
2496
2509
  default: r(() => [A("select", {
2497
- class: y([g(X), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2510
+ class: y([g(Z), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2498
2511
  value: e.modelValue,
2499
2512
  disabled: e.readOnly,
2500
2513
  title: e.readOnly ? g(a).customBlocks.dataSource.readOnlyTooltip : void 0,
@@ -2523,7 +2536,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2523
2536
  },
2524
2537
  emits: ["update:modelValue"],
2525
2538
  setup(e, { emit: t }) {
2526
- let n = t, { t: i } = K();
2539
+ let n = t, { t: i } = q();
2527
2540
  return (t, a) => (s(), D(lo, {
2528
2541
  label: e.field.label,
2529
2542
  required: e.field.required,
@@ -2532,12 +2545,12 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2532
2545
  default: r(() => [e.readOnly ? (s(), x("input", {
2533
2546
  key: 0,
2534
2547
  type: "text",
2535
- class: y([g(X), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2548
+ class: y([g(Z), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2536
2549
  value: e.modelValue,
2537
2550
  placeholder: e.field.placeholder,
2538
2551
  disabled: "",
2539
2552
  title: g(i).customBlocks.dataSource.readOnlyTooltip
2540
- }, null, 10, Oo)) : (s(), D($, {
2553
+ }, null, 10, Oo)) : (s(), D(Ri, {
2541
2554
  key: 1,
2542
2555
  "model-value": e.modelValue,
2543
2556
  placeholder: e.field.placeholder,
@@ -2565,7 +2578,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2565
2578
  },
2566
2579
  emits: ["update:modelValue"],
2567
2580
  setup(e, { emit: t }) {
2568
- let n = t, { t: i } = K();
2581
+ let n = t, { t: i } = q();
2569
2582
  return (t, a) => (s(), D(lo, {
2570
2583
  label: e.field.label,
2571
2584
  required: e.field.required,
@@ -2579,7 +2592,7 @@ var Lr = ["aria-label", "onKeydown"], Rr = ["data-tooltip"], zr = ["data-tooltip
2579
2592
  disabled: "",
2580
2593
  title: g(i).customBlocks.dataSource.readOnlyTooltip,
2581
2594
  class: y(jo)
2582
- }, null, 8, Ao)) : (s(), D(ni, {
2595
+ }, null, 8, Ao)) : (s(), D(ti, {
2583
2596
  key: 1,
2584
2597
  "model-value": e.modelValue,
2585
2598
  placeholder: e.field.placeholder,
@@ -2628,7 +2641,7 @@ var Po = {
2628
2641
  props: { block: {} },
2629
2642
  emits: ["updateFieldValues", "updateDataSourceFetched"],
2630
2643
  setup(e, { emit: r }) {
2631
- let i = e, a = r, { t: o } = K(), c = t(it, []), l = b(() => c.find((e) => e.type === i.block.customType)), d = b(() => i.block), { isFetching: f, fetchError: p, fetch: m, hasDataSource: h, needsFetch: v } = ve({
2644
+ let i = e, a = r, { t: o } = q(), c = t(rt, []), l = b(() => c.find((e) => e.type === i.block.customType)), d = b(() => i.block), { isFetching: f, fetchError: p, fetch: m, hasDataSource: h, needsFetch: v } = _e({
2632
2645
  definition: l,
2633
2646
  block: d,
2634
2647
  onUpdate: (e, t) => {
@@ -2656,7 +2669,7 @@ var Po = {
2656
2669
  type: "button",
2657
2670
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
2658
2671
  onClick: r[1] ||= (...e) => g(m) && g(m)(...e)
2659
- }, [_(g(ln), { size: 12 }), R(" " + F(g(o).customBlocks.dataSource.changeButton), 1)]))])), g(p) ? (s(), x("p", Vo, [_(g(At), {
2672
+ }, [_(g(cn), { size: 12 }), R(" " + F(g(o).customBlocks.dataSource.changeButton), 1)]))])), g(p) ? (s(), x("p", Vo, [_(g(kt), {
2660
2673
  size: 14,
2661
2674
  class: "tpl:shrink-0"
2662
2675
  }), R(" " + F(g(o).customBlocks.dataSource.fetchError), 1)])) : S("", !0)])) : S("", !0),
@@ -2679,12 +2692,12 @@ var Po = {
2679
2692
  props: { block: {} },
2680
2693
  emits: ["update"],
2681
2694
  setup(e, { emit: t }) {
2682
- let n = t, { t: r } = K();
2695
+ let n = t, { t: r } = q();
2683
2696
  function i(e, t) {
2684
2697
  n("update", { [e]: t });
2685
2698
  }
2686
2699
  return (t, n) => (s(), x(P, null, [
2687
- A("div", Uo, [A("label", { class: y(g(q)) }, F(g(r).divider.style), 3), _(jn, {
2700
+ A("div", Uo, [A("label", { class: y(g(J)) }, F(g(r).divider.style), 3), _(An, {
2688
2701
  options: [
2689
2702
  {
2690
2703
  value: "solid",
@@ -2702,18 +2715,18 @@ var Po = {
2702
2715
  "model-value": e.block.lineStyle,
2703
2716
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2704
2717
  }, null, 8, ["options", "model-value"])]),
2705
- A("div", Wo, [A("label", { class: y(g(q)) }, F(g(r).divider.color), 3), _(Z, {
2718
+ A("div", Wo, [A("label", { class: y(g(J)) }, F(g(r).divider.color), 3), _(Q, {
2706
2719
  "model-value": e.block.color,
2707
2720
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2708
2721
  }, null, 8, ["model-value"])]),
2709
- A("div", Go, [A("label", { class: y(g(q)) }, F(g(r).divider.thickness), 3), A("div", Ko, [A("input", {
2722
+ A("div", Go, [A("label", { class: y(g(J)) }, F(g(r).divider.thickness), 3), A("div", Ko, [A("input", {
2710
2723
  type: "number",
2711
- class: y(g(Y)),
2724
+ class: y(g(X)),
2712
2725
  value: e.block.thickness,
2713
2726
  min: "1",
2714
2727
  max: "10",
2715
2728
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2716
- }, null, 42, qo), A("span", { class: y(g(J)) }, "px", 2)])])
2729
+ }, null, 42, qo), A("span", { class: y(g(Y)) }, "px", 2)])])
2717
2730
  ], 64));
2718
2731
  }
2719
2732
  }), Yo = { class: "tpl:mb-3.5" }, Xo = ["value"], Zo = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Qo = /* @__PURE__ */ d({
@@ -2721,17 +2734,17 @@ var Po = {
2721
2734
  props: { block: {} },
2722
2735
  emits: ["update"],
2723
2736
  setup(e, { emit: t }) {
2724
- let n = t, { t: r } = K();
2737
+ let n = t, { t: r } = q();
2725
2738
  return (t, i) => (s(), x("div", Yo, [
2726
- A("label", { class: y(g(q)) }, F(g(r).html.content), 3),
2739
+ A("label", { class: y(g(J)) }, F(g(r).html.content), 3),
2727
2740
  A("textarea", {
2728
2741
  value: e.block.content,
2729
2742
  placeholder: "<div>...</div>",
2730
2743
  rows: "10",
2731
- class: y(g(xn)),
2744
+ class: y(g(bn)),
2732
2745
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2733
2746
  }, null, 42, Xo),
2734
- A("p", Zo, [_(g(Wt), {
2747
+ A("p", Zo, [_(g(Ut), {
2735
2748
  size: 12,
2736
2749
  class: "tpl:mt-0.5 tpl:shrink-0"
2737
2750
  }), R(" " + F(g(r).html.sanitizationHint), 1)])
@@ -2756,7 +2769,7 @@ var Po = {
2756
2769
  props: { block: {} },
2757
2770
  emits: ["update"],
2758
2771
  setup(e, { emit: n }) {
2759
- let i = e, a = n, { t: o } = K(), c = t(ot, null), u = t(st, se.liquid), d = pn(), f = b(() => !!c), p = l(!1), m = l(!1), { start: h } = Ve(() => {
2772
+ let i = e, a = n, { t: o } = q(), c = t(at, null), u = t(ot, oe.liquid), d = fn(), f = b(() => !!c), p = l(!1), m = l(!1), { start: h } = Be(() => {
2760
2773
  p.value = !1;
2761
2774
  }, 1e3, { immediate: !1 }), v = [
2762
2775
  300,
@@ -2785,7 +2798,7 @@ var Po = {
2785
2798
  let e = await c?.({ accept: ["images"] });
2786
2799
  d.alive && e && (w("src", e.url), e.alt && (w("alt", e.alt), m.value = !0), p.value = !0, h());
2787
2800
  }
2788
- let k = l(), j = l(!1), M = b(() => G(i.block.src, u)), N = b(() => f.value && !j.value && !M.value);
2801
+ let k = l(), j = l(!1), M = b(() => K(i.block.src, u)), N = b(() => f.value && !j.value && !M.value);
2789
2802
  async function ee(e) {
2790
2803
  if (c) {
2791
2804
  j.value = !0;
@@ -2801,26 +2814,26 @@ var Po = {
2801
2814
  }
2802
2815
  }
2803
2816
  }
2804
- let { isOver: I } = Te({
2817
+ let { isOver: I } = we({
2805
2818
  target: k,
2806
2819
  enabled: N,
2807
2820
  onFiles: ee
2808
2821
  });
2809
2822
  return (t, n) => (s(), x(P, null, [
2810
- A("div", $o, [A("label", { class: y(g(q)) }, F(g(o).image.imageUrl), 3), A("div", {
2823
+ A("div", $o, [A("label", { class: y(g(J)) }, F(g(o).image.imageUrl), 3), A("div", {
2811
2824
  ref_key: "dropZoneRef",
2812
2825
  ref: k,
2813
2826
  class: "tpl:relative"
2814
2827
  }, [
2815
- N.value && (g(I) || j.value) ? (s(), x("div", es, [j.value ? (s(), x(P, { key: 0 }, [_(g(Jt), {
2828
+ N.value && (g(I) || j.value) ? (s(), x("div", es, [j.value ? (s(), x(P, { key: 0 }, [_(g(qt), {
2816
2829
  class: "tpl-spinner",
2817
2830
  size: 18,
2818
2831
  "stroke-width": 2
2819
- }), R(" " + F(g(o).image.uploading), 1)], 64)) : (s(), x(P, { key: 1 }, [_(g(rn), {
2832
+ }), R(" " + F(g(o).image.uploading), 1)], 64)) : (s(), x(P, { key: 1 }, [_(g(nn), {
2820
2833
  size: 18,
2821
2834
  "stroke-width": 1.5
2822
2835
  }), R(" " + F(g(o).image.dropToUpload), 1)], 64))])) : S("", !0),
2823
- _($, {
2836
+ _(Ri, {
2824
2837
  "model-value": e.block.src,
2825
2838
  type: "url",
2826
2839
  placeholder: g(o).image.imageUrlPlaceholder,
@@ -2840,22 +2853,22 @@ var Po = {
2840
2853
  "background-color": "var(--tpl-bg)"
2841
2854
  },
2842
2855
  onClick: O
2843
- }, [_(g(Kt), {
2856
+ }, [_(g(Gt), {
2844
2857
  size: 14,
2845
2858
  "stroke-width": 1.5
2846
2859
  }), R(" " + F(g(o).image.browseMedia), 1)])) : S("", !0)
2847
2860
  ], 512)]),
2848
- g(G)(e.block.src, g(u)) ? (s(), x("div", ts, [A("label", { class: y(g(q)) }, [R(F(g(o).image.placeholderUrl) + " ", 1), A("span", ns, F(g(o).image.optional), 1)], 2), A("input", {
2861
+ g(K)(e.block.src, g(u)) ? (s(), x("div", ts, [A("label", { class: y(g(J)) }, [R(F(g(o).image.placeholderUrl) + " ", 1), A("span", ns, F(g(o).image.optional), 1)], 2), A("input", {
2849
2862
  type: "url",
2850
- class: y(g(X)),
2863
+ class: y(g(Z)),
2851
2864
  value: e.block.placeholderUrl || "",
2852
2865
  placeholder: g(o).image.placeholderUrlPlaceholder,
2853
2866
  title: g(o).image.placeholderUrlTooltip,
2854
2867
  onInput: n[1] ||= (e) => w("placeholderUrl", e.target.value)
2855
2868
  }, null, 42, rs)])) : S("", !0),
2856
2869
  A("div", is, [
2857
- A("label", { class: y(g(q)) }, F(g(o).image.altText), 3),
2858
- _($, {
2870
+ A("label", { class: y(g(J)) }, F(g(o).image.altText), 3),
2871
+ _(Ri, {
2859
2872
  "model-value": e.block.alt,
2860
2873
  type: "text",
2861
2874
  placeholder: g(o).image.altTextPlaceholder,
@@ -2868,7 +2881,7 @@ var Po = {
2868
2881
  "pulse",
2869
2882
  "disabled"
2870
2883
  ]),
2871
- _(Q, {
2884
+ _($, {
2872
2885
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2873
2886
  "model-value": e.block.decorative === !0,
2874
2887
  label: g(o).image.decorative,
@@ -2879,9 +2892,9 @@ var Po = {
2879
2892
  }, 8, ["model-value", "label"])
2880
2893
  ]),
2881
2894
  A("div", os, [
2882
- A("label", { class: y(g(q)) }, F(g(o).image.width), 3),
2895
+ A("label", { class: y(g(J)) }, F(g(o).image.width), 3),
2883
2896
  A("select", {
2884
- class: y(g(X)),
2897
+ class: y(g(Z)),
2885
2898
  value: C.value,
2886
2899
  onChange: n[4] ||= (e) => T(e.target.value)
2887
2900
  }, [
@@ -2893,13 +2906,13 @@ var Po = {
2893
2906
  ], 42, ss),
2894
2907
  C.value === "custom" ? (s(), x("div", us, [A("input", {
2895
2908
  type: "number",
2896
- class: y(g(Y)),
2909
+ class: y(g(X)),
2897
2910
  value: typeof e.block.width == "number" ? e.block.width : ms,
2898
2911
  min: "20",
2899
2912
  onInput: n[5] ||= (e) => E(e.target.value)
2900
- }, null, 42, ds), A("span", { class: y(g(J)) }, "px", 2)])) : S("", !0)
2913
+ }, null, 42, ds), A("span", { class: y(g(Y)) }, "px", 2)])) : S("", !0)
2901
2914
  ]),
2902
- A("div", fs, [A("label", { class: y(g(q)) }, F(g(o).title.align), 3), _(jn, {
2915
+ A("div", fs, [A("label", { class: y(g(J)) }, F(g(o).title.align), 3), _(An, {
2903
2916
  options: [
2904
2917
  {
2905
2918
  value: "left",
@@ -2918,14 +2931,14 @@ var Po = {
2918
2931
  "onUpdate:modelValue": n[6] ||= (e) => w("align", e)
2919
2932
  }, null, 8, ["options", "model-value"])]),
2920
2933
  A("div", ps, [
2921
- A("label", { class: y(g(q)) }, F(g(o).image.linkUrl), 3),
2922
- _($, {
2934
+ A("label", { class: y(g(J)) }, F(g(o).image.linkUrl), 3),
2935
+ _(Ri, {
2923
2936
  "model-value": e.block.linkUrl || "",
2924
2937
  type: "url",
2925
2938
  placeholder: g(o).image.imageUrlPlaceholder,
2926
2939
  "onUpdate:modelValue": n[7] ||= (e) => w("linkUrl", e)
2927
2940
  }, null, 8, ["model-value", "placeholder"]),
2928
- e.block.linkUrl ? (s(), D(Q, {
2941
+ e.block.linkUrl ? (s(), D($, {
2929
2942
  key: 0,
2930
2943
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2931
2944
  "model-value": e.block.linkOpenInNewTab ?? !1,
@@ -2947,7 +2960,7 @@ var Po = {
2947
2960
  },
2948
2961
  emits: ["update"],
2949
2962
  setup(e, { emit: t }) {
2950
- let i = e, a = t, { t: o } = K(), c = b(() => [
2963
+ let i = e, a = t, { t: o } = q(), c = b(() => [
2951
2964
  {
2952
2965
  key: "openInNewTab",
2953
2966
  label: o.menu.openInNewTab
@@ -2964,17 +2977,17 @@ var Po = {
2964
2977
  {
2965
2978
  value: "left",
2966
2979
  label: o.title.alignLeft,
2967
- icon: Zt
2980
+ icon: Xt
2968
2981
  },
2969
2982
  {
2970
2983
  value: "center",
2971
2984
  label: o.title.alignCenter,
2972
- icon: Bt
2985
+ icon: zt
2973
2986
  },
2974
2987
  {
2975
2988
  value: "right",
2976
2989
  label: o.title.alignRight,
2977
- icon: qt
2990
+ icon: Kt
2978
2991
  }
2979
2992
  ]);
2980
2993
  function u(e, t) {
@@ -3002,26 +3015,26 @@ var Po = {
3002
3015
  a("update", { items: i.block.items.filter((t) => t.id !== e) });
3003
3016
  }
3004
3017
  return (t, i) => (s(), x(P, null, [
3005
- _(An, { label: g(o).menu.items }, {
3018
+ _(kn, { label: g(o).menu.items }, {
3006
3019
  default: r(() => [A("div", gs, [(s(!0), x(P, null, n(e.block.items, (t) => (s(), x("div", {
3007
3020
  key: t.id,
3008
3021
  class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
3009
3022
  }, [
3010
3023
  A("div", _s, [A("input", {
3011
3024
  type: "text",
3012
- class: y([g(X), "tpl:flex-1"]),
3025
+ class: y([g(Z), "tpl:flex-1"]),
3013
3026
  value: t.text,
3014
3027
  placeholder: g(o).menu.text,
3015
3028
  onInput: (e) => f(t.id, "text", e.target.value)
3016
3029
  }, null, 42, vs), A("button", {
3017
- class: y(g(Sn)),
3030
+ class: y(g(xn)),
3018
3031
  title: g(o).menu.removeItem,
3019
3032
  onClick: (e) => p(t.id)
3020
- }, [_(g(Qt), {
3033
+ }, [_(g(Zt), {
3021
3034
  size: 14,
3022
3035
  "stroke-width": 2
3023
3036
  })], 10, ys)]),
3024
- _($, {
3037
+ _(Ri, {
3025
3038
  "model-value": t.url,
3026
3039
  type: "url",
3027
3040
  placeholder: g(o).menu.urlPlaceholder,
@@ -3031,7 +3044,7 @@ var Po = {
3031
3044
  "placeholder",
3032
3045
  "onUpdate:modelValue"
3033
3046
  ]),
3034
- A("div", bs, [(s(!0), x(P, null, n(c.value, (e) => (s(), D(Q, {
3047
+ A("div", bs, [(s(!0), x(P, null, n(c.value, (e) => (s(), D($, {
3035
3048
  key: e.key,
3036
3049
  "model-value": t[e.key],
3037
3050
  label: e.label,
@@ -3041,23 +3054,23 @@ var Po = {
3041
3054
  "label",
3042
3055
  "onUpdate:modelValue"
3043
3056
  ]))), 128))]),
3044
- A("div", xs, [A("label", { class: y([g(q), "tpl:!mb-0"]) }, F(g(o).menu.color), 3), _(Z, {
3057
+ A("div", xs, [A("label", { class: y([g(J), "tpl:!mb-0"]) }, F(g(o).menu.color), 3), _(Q, {
3045
3058
  "swatch-only": "",
3046
3059
  "model-value": t.color || e.block.linkColor || e.block.color || "",
3047
3060
  "onUpdate:modelValue": (e) => f(t.id, "color", e)
3048
3061
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
3049
3062
  ]))), 128)), A("button", {
3050
- class: y(g(Cn)),
3063
+ class: y(g(Sn)),
3051
3064
  onClick: d
3052
- }, [_(g(Rt), {
3065
+ }, [_(g(Lt), {
3053
3066
  size: 14,
3054
3067
  "stroke-width": 2
3055
3068
  }), R(" " + F(g(o).menu.addItem), 1)], 2)])]),
3056
3069
  _: 1
3057
3070
  }, 8, ["label"]),
3058
- _(An, { label: g(o).menu.fontFamily }, {
3071
+ _(kn, { label: g(o).menu.fontFamily }, {
3059
3072
  default: r(() => [A("select", {
3060
- class: y(g(X)),
3073
+ class: y(g(Z)),
3061
3074
  value: e.block.fontFamily || "",
3062
3075
  onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
3063
3076
  }, [A("option", Cs, F(g(o).title.inheritFont), 1), (s(!0), x(P, null, n(e.fontFamilies, (e) => (s(), x("option", {
@@ -3066,8 +3079,8 @@ var Po = {
3066
3079
  }, F(e.label), 9, ws))), 128))], 42, Ss)]),
3067
3080
  _: 1
3068
3081
  }, 8, ["label"]),
3069
- _(An, { label: g(o).menu.fontSize }, {
3070
- default: r(() => [_(Mn, {
3082
+ _(kn, { label: g(o).menu.fontSize }, {
3083
+ default: r(() => [_(jn, {
3071
3084
  "model-value": e.block.fontSize,
3072
3085
  min: 8,
3073
3086
  max: 48,
@@ -3076,46 +3089,46 @@ var Po = {
3076
3089
  }, null, 8, ["model-value"])]),
3077
3090
  _: 1
3078
3091
  }, 8, ["label"]),
3079
- _(An, { label: g(o).menu.color }, {
3080
- default: r(() => [_(Z, {
3092
+ _(kn, { label: g(o).menu.color }, {
3093
+ default: r(() => [_(Q, {
3081
3094
  "model-value": e.block.color ?? "",
3082
3095
  "onUpdate:modelValue": i[2] ||= (e) => u("color", e || void 0)
3083
3096
  }, null, 8, ["model-value"])]),
3084
3097
  _: 1
3085
3098
  }, 8, ["label"]),
3086
- _(An, { label: g(o).menu.linkColor }, {
3087
- default: r(() => [_(Z, {
3099
+ _(kn, { label: g(o).menu.linkColor }, {
3100
+ default: r(() => [_(Q, {
3088
3101
  "model-value": e.block.linkColor || e.block.color || "",
3089
3102
  "onUpdate:modelValue": i[3] ||= (e) => u("linkColor", e || void 0)
3090
3103
  }, null, 8, ["model-value"])]),
3091
3104
  _: 1
3092
3105
  }, 8, ["label"]),
3093
- _(An, { label: g(o).menu.textAlign }, {
3094
- default: r(() => [_(jn, {
3106
+ _(kn, { label: g(o).menu.textAlign }, {
3107
+ default: r(() => [_(An, {
3095
3108
  options: l.value,
3096
3109
  "model-value": e.block.textAlign,
3097
3110
  "onUpdate:modelValue": i[4] ||= (e) => u("textAlign", e)
3098
3111
  }, null, 8, ["options", "model-value"])]),
3099
3112
  _: 1
3100
3113
  }, 8, ["label"]),
3101
- _(An, { label: g(o).menu.separator }, {
3114
+ _(kn, { label: g(o).menu.separator }, {
3102
3115
  default: r(() => [A("input", {
3103
3116
  type: "text",
3104
- class: y(g(X)),
3117
+ class: y(g(Z)),
3105
3118
  value: e.block.separator,
3106
3119
  onInput: i[5] ||= (e) => u("separator", e.target.value)
3107
3120
  }, null, 42, Ts)]),
3108
3121
  _: 1
3109
3122
  }, 8, ["label"]),
3110
- _(An, { label: g(o).menu.separatorColor }, {
3111
- default: r(() => [_(Z, {
3123
+ _(kn, { label: g(o).menu.separatorColor }, {
3124
+ default: r(() => [_(Q, {
3112
3125
  "model-value": e.block.separatorColor,
3113
3126
  "onUpdate:modelValue": i[6] ||= (e) => u("separatorColor", e)
3114
3127
  }, null, 8, ["model-value"])]),
3115
3128
  _: 1
3116
3129
  }, 8, ["label"]),
3117
- _(An, { label: g(o).menu.spacing }, {
3118
- default: r(() => [_(Mn, {
3130
+ _(kn, { label: g(o).menu.spacing }, {
3131
+ default: r(() => [_(jn, {
3119
3132
  "model-value": e.block.spacing,
3120
3133
  min: 0,
3121
3134
  max: 50,
@@ -3155,7 +3168,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3155
3168
  props: { block: {} },
3156
3169
  emits: ["update"],
3157
3170
  setup(e, { emit: t }) {
3158
- let r = e, i = t, { t: a } = K(), o = b(() => [
3171
+ let r = e, i = t, { t: a } = q(), o = b(() => [
3159
3172
  {
3160
3173
  value: "1",
3161
3174
  label: a.section.column1
@@ -3212,35 +3225,35 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3212
3225
  f({ borderRadius: Number(e.target.value) });
3213
3226
  }
3214
3227
  return (t, r) => (s(), x(P, null, [
3215
- A("div", ks, [A("label", { class: y(g(q)) }, F(g(a).section.columns), 3), A("select", {
3216
- class: y(g(X)),
3228
+ A("div", ks, [A("label", { class: y(g(J)) }, F(g(a).section.columns), 3), A("select", {
3229
+ class: y(g(Z)),
3217
3230
  value: e.block.columns,
3218
3231
  onChange: c
3219
3232
  }, [(s(!0), x(P, null, n(o.value, (e) => (s(), x("option", {
3220
3233
  key: e.value,
3221
3234
  value: e.value
3222
3235
  }, F(e.label), 9, js))), 128))], 42, As)]),
3223
- e.block.columns === "1" ? S("", !0) : (s(), x("div", Ms, [_(Q, {
3236
+ e.block.columns === "1" ? S("", !0) : (s(), x("div", Ms, [_($, {
3224
3237
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
3225
3238
  "model-value": e.block.stackOnMobile !== !1,
3226
3239
  label: g(a).section.stackOnMobile,
3227
3240
  "onUpdate:modelValue": r[0] ||= (e) => l(e)
3228
3241
  }, null, 8, ["model-value", "label"])])),
3229
- A("div", Ns, [A("label", { class: y(g(q)) }, F(g(a).section.borderRadius), 3), A("div", Ps, [A("input", {
3242
+ A("div", Ns, [A("label", { class: y(g(J)) }, F(g(a).section.borderRadius), 3), A("div", Ps, [A("input", {
3230
3243
  type: "number",
3231
- class: y(g(Y)),
3244
+ class: y(g(X)),
3232
3245
  value: e.block.borderRadius ?? 0,
3233
3246
  min: "0",
3234
3247
  max: "50",
3235
3248
  onInput: u
3236
- }, null, 42, Fs), A("span", { class: y(g(J)) }, "px", 2)])]),
3237
- A("div", Is, [_(Q, {
3249
+ }, null, 42, Fs), A("span", { class: y(g(Y)) }, "px", 2)])]),
3250
+ A("div", Is, [_($, {
3238
3251
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
3239
3252
  "model-value": !!e.block.wrapper,
3240
3253
  label: g(a).section.wrapperEnable,
3241
3254
  "onUpdate:modelValue": r[1] ||= (e) => d(e)
3242
3255
  }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), x("div", Ls, [
3243
- A("div", null, [A("label", { class: y(g(q)) }, F(g(a).blockSettings.color), 3), _(Z, {
3256
+ A("div", null, [A("label", { class: y(g(J)) }, F(g(a).blockSettings.color), 3), _(Q, {
3244
3257
  "model-value": e.block.wrapper.backgroundColor ?? "",
3245
3258
  "onUpdate:modelValue": r[2] ||= (e) => f({ backgroundColor: e })
3246
3259
  }, null, 8, ["model-value"])]),
@@ -3254,14 +3267,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3254
3267
  },
3255
3268
  "onUpdate:modelValue": p
3256
3269
  }, null, 8, ["label", "model-value"]),
3257
- A("div", null, [A("label", { class: y(g(q)) }, F(g(a).section.borderRadius), 3), A("div", Rs, [A("input", {
3270
+ A("div", null, [A("label", { class: y(g(J)) }, F(g(a).section.borderRadius), 3), A("div", Rs, [A("input", {
3258
3271
  type: "number",
3259
- class: y(g(Y)),
3272
+ class: y(g(X)),
3260
3273
  value: e.block.wrapper.borderRadius ?? 0,
3261
3274
  min: "0",
3262
3275
  max: "50",
3263
3276
  onInput: m
3264
- }, null, 42, zs), A("span", { class: y(g(J)) }, "px", 2)])])
3277
+ }, null, 42, zs), A("span", { class: y(g(Y)) }, "px", 2)])])
3265
3278
  ])) : S("", !0)])
3266
3279
  ], 64));
3267
3280
  }
@@ -3270,7 +3283,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3270
3283
  props: { block: {} },
3271
3284
  emits: ["update"],
3272
3285
  setup(e, { emit: t }) {
3273
- let r = e, i = t, { t: a } = K();
3286
+ let r = e, i = t, { t: a } = q();
3274
3287
  function o(e, t) {
3275
3288
  i("update", { [e]: t });
3276
3289
  }
@@ -3293,25 +3306,25 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3293
3306
  i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
3294
3307
  }
3295
3308
  return (t, r) => (s(), x(P, null, [
3296
- A("div", Vs, [A("label", { class: y(g(q)) }, F(g(a).social.icons), 3), A("div", Hs, [(s(!0), x(P, null, n(e.block.icons, (e) => (s(), x("div", {
3309
+ A("div", Vs, [A("label", { class: y(g(J)) }, F(g(a).social.icons), 3), A("div", Hs, [(s(!0), x(P, null, n(e.block.icons, (e) => (s(), x("div", {
3297
3310
  key: e.id,
3298
3311
  class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
3299
3312
  }, [A("div", Us, [A("select", {
3300
3313
  "data-testid": "social-platform-select",
3301
- class: y([g(X), "tpl:flex-1"]),
3314
+ class: y([g(Z), "tpl:flex-1"]),
3302
3315
  value: e.platform,
3303
3316
  onChange: (t) => l(e.id, "platform", t.target.value)
3304
- }, [(s(!0), x(P, null, n(g(Ne), (e) => (s(), x("option", {
3317
+ }, [(s(!0), x(P, null, n(g(Me), (e) => (s(), x("option", {
3305
3318
  key: e,
3306
3319
  value: e
3307
3320
  }, F(g(a).social.platforms[e]), 9, Gs))), 128))], 42, Ws), A("button", {
3308
- class: y(g(Sn)),
3321
+ class: y(g(xn)),
3309
3322
  title: g(a).social.removeIcon,
3310
3323
  onClick: (t) => u(e.id)
3311
- }, [_(g(Qt), {
3324
+ }, [_(g(Zt), {
3312
3325
  size: 14,
3313
3326
  "stroke-width": 2
3314
- })], 10, Ks)]), _($, {
3327
+ })], 10, Ks)]), _(Ri, {
3315
3328
  "model-value": e.url,
3316
3329
  type: "url",
3317
3330
  placeholder: g(a).social.urlPlaceholder,
@@ -3321,14 +3334,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3321
3334
  "placeholder",
3322
3335
  "onUpdate:modelValue"
3323
3336
  ])]))), 128)), A("button", {
3324
- class: y(g(Cn)),
3337
+ class: y(g(Sn)),
3325
3338
  onClick: c
3326
- }, [_(g(Rt), {
3339
+ }, [_(g(Lt), {
3327
3340
  size: 14,
3328
3341
  "stroke-width": 2
3329
3342
  }), R(" " + F(g(a).social.addIcon), 1)], 2)])]),
3330
- A("div", qs, [A("label", { class: y(g(q)) }, F(g(a).social.style), 3), A("select", {
3331
- class: y(g(X)),
3343
+ A("div", qs, [A("label", { class: y(g(J)) }, F(g(a).social.style), 3), A("select", {
3344
+ class: y(g(Z)),
3332
3345
  value: e.block.iconStyle,
3333
3346
  onChange: r[0] ||= (e) => o("iconStyle", e.target.value)
3334
3347
  }, [
@@ -3338,7 +3351,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3338
3351
  A("option", Qs, F(g(a).social.styleSquare), 1),
3339
3352
  A("option", $s, F(g(a).social.styleCircle), 1)
3340
3353
  ], 42, Js)]),
3341
- A("div", ec, [A("label", { class: y(g(q)) }, F(g(a).social.size), 3), _(jn, {
3354
+ A("div", ec, [A("label", { class: y(g(J)) }, F(g(a).social.size), 3), _(An, {
3342
3355
  options: [
3343
3356
  {
3344
3357
  value: "small",
@@ -3356,30 +3369,30 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3356
3369
  "model-value": e.block.iconSize,
3357
3370
  "onUpdate:modelValue": r[1] ||= (e) => o("iconSize", e)
3358
3371
  }, null, 8, ["options", "model-value"])]),
3359
- A("div", tc, [A("label", { class: y(g(q)) }, F(g(a).social.spacing), 3), A("div", nc, [A("input", {
3372
+ A("div", tc, [A("label", { class: y(g(J)) }, F(g(a).social.spacing), 3), A("div", nc, [A("input", {
3360
3373
  type: "number",
3361
- class: y(g(Y)),
3374
+ class: y(g(X)),
3362
3375
  value: e.block.spacing,
3363
3376
  min: "0",
3364
3377
  max: "50",
3365
3378
  onInput: r[2] ||= (e) => o("spacing", Number(e.target.value))
3366
- }, null, 42, rc), A("span", { class: y(g(J)) }, "px", 2)])]),
3367
- A("div", ic, [A("label", { class: y(g(q)) }, F(g(a).social.align), 3), _(jn, {
3379
+ }, null, 42, rc), A("span", { class: y(g(Y)) }, "px", 2)])]),
3380
+ A("div", ic, [A("label", { class: y(g(J)) }, F(g(a).social.align), 3), _(An, {
3368
3381
  options: [
3369
3382
  {
3370
3383
  value: "left",
3371
3384
  label: g(a).title.alignLeft,
3372
- icon: g(Zt)
3385
+ icon: g(Xt)
3373
3386
  },
3374
3387
  {
3375
3388
  value: "center",
3376
3389
  label: g(a).title.alignCenter,
3377
- icon: g(Bt)
3390
+ icon: g(zt)
3378
3391
  },
3379
3392
  {
3380
3393
  value: "right",
3381
3394
  label: g(a).title.alignRight,
3382
- icon: g(qt)
3395
+ icon: g(Kt)
3383
3396
  }
3384
3397
  ],
3385
3398
  "model-value": e.block.align,
@@ -3392,17 +3405,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3392
3405
  props: { block: {} },
3393
3406
  emits: ["update"],
3394
3407
  setup(e, { emit: t }) {
3395
- let n = t, { t: r } = K();
3408
+ let n = t, { t: r } = q();
3396
3409
  return (t, i) => (s(), x("div", oc, [
3397
- A("label", { class: y(g(q)) }, F(g(r).spacer.height), 3),
3410
+ A("label", { class: y(g(J)) }, F(g(r).spacer.height), 3),
3398
3411
  A("div", sc, [A("input", {
3399
3412
  type: "number",
3400
- class: y(g(Y)),
3413
+ class: y(g(X)),
3401
3414
  value: e.block.height,
3402
3415
  min: "10",
3403
3416
  max: "100",
3404
3417
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
3405
- }, null, 42, cc), A("span", { class: y(g(J)) }, "px", 2)]),
3418
+ }, null, 42, cc), A("span", { class: y(g(Y)) }, "px", 2)]),
3406
3419
  A("input", {
3407
3420
  type: "range",
3408
3421
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -3424,7 +3437,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3424
3437
  },
3425
3438
  emits: ["update"],
3426
3439
  setup(e, { emit: t }) {
3427
- let r = e, i = t, { t: a } = K(), o = b(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
3440
+ let r = e, i = t, { t: a } = q(), o = b(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
3428
3441
  function c(e, t) {
3429
3442
  i("update", { [e]: t });
3430
3443
  }
@@ -3459,12 +3472,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3459
3472
  i("update", { rows: t });
3460
3473
  }
3461
3474
  return (t, r) => (s(), x(P, null, [
3462
- A("div", dc, [A("label", { class: y(g(q)) }, F(g(a).table.dimensions), 3), A("div", fc, [A("div", pc, [A("span", mc, F(g(a).table.rows), 1), A("div", hc, [
3475
+ A("div", dc, [A("label", { class: y(g(J)) }, F(g(a).table.dimensions), 3), A("div", fc, [A("div", pc, [A("span", mc, F(g(a).table.rows), 1), A("div", hc, [
3463
3476
  A("button", {
3464
3477
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
3465
3478
  disabled: e.block.rows.length <= 1,
3466
3479
  onClick: r[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
3467
- }, [_(g(Gt), {
3480
+ }, [_(g(Wt), {
3468
3481
  size: 12,
3469
3482
  "stroke-width": 2
3470
3483
  })], 8, gc),
@@ -3472,7 +3485,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3472
3485
  A("button", {
3473
3486
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
3474
3487
  onClick: l
3475
- }, [_(g(Rt), {
3488
+ }, [_(g(Lt), {
3476
3489
  size: 12,
3477
3490
  "stroke-width": 2
3478
3491
  })])
@@ -3481,7 +3494,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3481
3494
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
3482
3495
  disabled: o.value <= 1,
3483
3496
  onClick: r[1] ||= (e) => f(o.value - 1)
3484
- }, [_(g(Gt), {
3497
+ }, [_(g(Wt), {
3485
3498
  size: 12,
3486
3499
  "stroke-width": 2
3487
3500
  })], 8, xc),
@@ -3489,20 +3502,20 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3489
3502
  A("button", {
3490
3503
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)]",
3491
3504
  onClick: d
3492
- }, [_(g(Rt), {
3505
+ }, [_(g(Lt), {
3493
3506
  size: 12,
3494
3507
  "stroke-width": 2
3495
3508
  })])
3496
3509
  ])])])]),
3497
- A("div", Cc, [_(Q, {
3510
+ A("div", Cc, [_($, {
3498
3511
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
3499
3512
  "model-value": e.block.hasHeaderRow,
3500
3513
  label: g(a).table.hasHeaderRow,
3501
3514
  "onUpdate:modelValue": r[2] ||= (e) => c("hasHeaderRow", e)
3502
3515
  }, null, 8, ["model-value", "label"])]),
3503
- e.block.hasHeaderRow ? (s(), x("div", wc, [A("label", { class: y(g(q)) }, F(g(a).table.headerBackgroundColor), 3), _(Z, {
3516
+ e.block.hasHeaderRow ? (s(), x("div", wc, [A("label", { class: y(g(J)) }, F(g(a).table.headerBackgroundColor), 3), _(Q, {
3504
3517
  "model-value": e.block.headerBackgroundColor ?? "",
3505
- "seed-color": g(Tn),
3518
+ "seed-color": g(wn),
3506
3519
  placeholder: g(a).table.noHeaderBg,
3507
3520
  "onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
3508
3521
  }, null, 8, [
@@ -3510,62 +3523,62 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3510
3523
  "seed-color",
3511
3524
  "placeholder"
3512
3525
  ])])) : S("", !0),
3513
- A("div", Tc, [A("label", { class: y(g(q)) }, F(g(a).table.borderColor), 3), _(Z, {
3526
+ A("div", Tc, [A("label", { class: y(g(J)) }, F(g(a).table.borderColor), 3), _(Q, {
3514
3527
  "model-value": e.block.borderColor,
3515
3528
  "onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
3516
3529
  }, null, 8, ["model-value"])]),
3517
- A("div", Ec, [A("label", { class: y(g(q)) }, F(g(a).table.borderWidth), 3), A("div", Dc, [A("input", {
3530
+ A("div", Ec, [A("label", { class: y(g(J)) }, F(g(a).table.borderWidth), 3), A("div", Dc, [A("input", {
3518
3531
  type: "number",
3519
- class: y(g(Y)),
3532
+ class: y(g(X)),
3520
3533
  value: e.block.borderWidth,
3521
3534
  min: "0",
3522
3535
  max: "10",
3523
3536
  onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
3524
- }, null, 42, Oc), A("span", { class: y(g(J)) }, "px", 2)])]),
3525
- A("div", kc, [A("label", { class: y(g(q)) }, F(g(a).table.cellPadding), 3), A("div", Ac, [A("input", {
3537
+ }, null, 42, Oc), A("span", { class: y(g(Y)) }, "px", 2)])]),
3538
+ A("div", kc, [A("label", { class: y(g(J)) }, F(g(a).table.cellPadding), 3), A("div", Ac, [A("input", {
3526
3539
  type: "number",
3527
- class: y(g(Y)),
3540
+ class: y(g(X)),
3528
3541
  value: e.block.cellPadding,
3529
3542
  min: "0",
3530
3543
  max: "30",
3531
3544
  onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
3532
- }, null, 42, jc), A("span", { class: y(g(J)) }, "px", 2)])]),
3533
- A("div", Mc, [A("label", { class: y(g(q)) }, F(g(a).table.fontFamily), 3), A("select", {
3534
- class: y(g(X)),
3545
+ }, null, 42, jc), A("span", { class: y(g(Y)) }, "px", 2)])]),
3546
+ A("div", Mc, [A("label", { class: y(g(J)) }, F(g(a).table.fontFamily), 3), A("select", {
3547
+ class: y(g(Z)),
3535
3548
  value: e.block.fontFamily || "",
3536
3549
  onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
3537
3550
  }, [A("option", Pc, F(g(a).title.inheritFont), 1), (s(!0), x(P, null, n(e.fontFamilies, (e) => (s(), x("option", {
3538
3551
  key: e.value,
3539
3552
  value: e.value
3540
3553
  }, F(e.label), 9, Fc))), 128))], 42, Nc)]),
3541
- A("div", Ic, [A("label", { class: y(g(q)) }, F(g(a).table.fontSize), 3), A("div", Lc, [A("input", {
3554
+ A("div", Ic, [A("label", { class: y(g(J)) }, F(g(a).table.fontSize), 3), A("div", Lc, [A("input", {
3542
3555
  type: "number",
3543
- class: y(g(Y)),
3556
+ class: y(g(X)),
3544
3557
  value: e.block.fontSize,
3545
3558
  min: "10",
3546
3559
  max: "32",
3547
3560
  onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
3548
- }, null, 42, Rc), A("span", { class: y(g(J)) }, "px", 2)])]),
3549
- A("div", zc, [A("label", { class: y(g(q)) }, F(g(a).table.color), 3), _(Z, {
3561
+ }, null, 42, Rc), A("span", { class: y(g(Y)) }, "px", 2)])]),
3562
+ A("div", zc, [A("label", { class: y(g(J)) }, F(g(a).table.color), 3), _(Q, {
3550
3563
  "model-value": e.block.color ?? "",
3551
3564
  "onUpdate:modelValue": r[9] ||= (e) => c("color", e || void 0)
3552
3565
  }, null, 8, ["model-value"])]),
3553
- A("div", Bc, [A("label", { class: y(g(q)) }, F(g(a).table.textAlign), 3), _(jn, {
3566
+ A("div", Bc, [A("label", { class: y(g(J)) }, F(g(a).table.textAlign), 3), _(An, {
3554
3567
  options: [
3555
3568
  {
3556
3569
  value: "left",
3557
3570
  label: g(a).title.alignLeft,
3558
- icon: g(Zt)
3571
+ icon: g(Xt)
3559
3572
  },
3560
3573
  {
3561
3574
  value: "center",
3562
3575
  label: g(a).title.alignCenter,
3563
- icon: g(Bt)
3576
+ icon: g(zt)
3564
3577
  },
3565
3578
  {
3566
3579
  value: "right",
3567
3580
  label: g(a).title.alignRight,
3568
- icon: g(qt)
3581
+ icon: g(Kt)
3569
3582
  }
3570
3583
  ],
3571
3584
  "model-value": e.block.textAlign,
@@ -3581,13 +3594,13 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3581
3594
  },
3582
3595
  emits: ["update"],
3583
3596
  setup(e, { emit: t }) {
3584
- let r = t, { t: i } = K();
3597
+ let r = t, { t: i } = q();
3585
3598
  function a(e, t) {
3586
3599
  r("update", { [e]: t });
3587
3600
  }
3588
3601
  return (t, r) => (s(), x(P, null, [
3589
- A("div", Hc, [A("label", { class: y(g(q)) }, F(g(i).title.level), 3), A("select", {
3590
- class: y(g(X)),
3602
+ A("div", Hc, [A("label", { class: y(g(J)) }, F(g(i).title.level), 3), A("select", {
3603
+ class: y(g(Z)),
3591
3604
  value: e.block.level,
3592
3605
  onChange: r[0] ||= (e) => a("level", Number(e.target.value))
3593
3606
  }, [
@@ -3596,34 +3609,34 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3596
3609
  A("option", Kc, F(g(i).title.heading3), 1),
3597
3610
  A("option", qc, F(g(i).title.heading4), 1)
3598
3611
  ], 42, Uc)]),
3599
- A("div", Jc, [A("label", { class: y(g(q)) }, F(g(i).title.fontFamily), 3), A("select", {
3600
- class: y(g(X)),
3612
+ A("div", Jc, [A("label", { class: y(g(J)) }, F(g(i).title.fontFamily), 3), A("select", {
3613
+ class: y(g(Z)),
3601
3614
  value: e.block.fontFamily || "",
3602
3615
  onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
3603
3616
  }, [A("option", Xc, F(g(i).title.inheritFont), 1), (s(!0), x(P, null, n(e.fontFamilies, (e) => (s(), x("option", {
3604
3617
  key: e.value,
3605
3618
  value: e.value
3606
3619
  }, F(e.label), 9, Zc))), 128))], 42, Yc)]),
3607
- A("div", Qc, [A("label", { class: y(g(q)) }, F(g(i).title.color), 3), _(Z, {
3620
+ A("div", Qc, [A("label", { class: y(g(J)) }, F(g(i).title.color), 3), _(Q, {
3608
3621
  "model-value": e.block.color ?? "",
3609
3622
  "onUpdate:modelValue": r[2] ||= (e) => a("color", e || void 0)
3610
3623
  }, null, 8, ["model-value"])]),
3611
- A("div", $c, [A("label", { class: y(g(q)) }, F(g(i).title.align), 3), _(jn, {
3624
+ A("div", $c, [A("label", { class: y(g(J)) }, F(g(i).title.align), 3), _(An, {
3612
3625
  options: [
3613
3626
  {
3614
3627
  value: "left",
3615
3628
  label: g(i).title.alignLeft,
3616
- icon: g(Zt)
3629
+ icon: g(Xt)
3617
3630
  },
3618
3631
  {
3619
3632
  value: "center",
3620
3633
  label: g(i).title.alignCenter,
3621
- icon: g(Bt)
3634
+ icon: g(zt)
3622
3635
  },
3623
3636
  {
3624
3637
  value: "right",
3625
3638
  label: g(i).title.alignRight,
3626
- icon: g(qt)
3639
+ icon: g(Kt)
3627
3640
  }
3628
3641
  ],
3629
3642
  "model-value": e.block.textAlign,
@@ -3643,7 +3656,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3643
3656
  props: { block: {} },
3644
3657
  emits: ["update"],
3645
3658
  setup(e, { emit: n }) {
3646
- let r = e, i = n, { t: a } = K(), o = t(ot, null), c = t(st, se.liquid), u = pn(), d = b(() => !!o), f = b(() => G(r.block.url, c)), p = l(!1), { start: m } = Ve(() => {
3659
+ let r = e, i = n, { t: a } = q(), o = t(at, null), c = t(ot, oe.liquid), u = fn(), d = b(() => !!o), f = b(() => K(r.block.url, c)), p = l(!1), { start: m } = Be(() => {
3647
3660
  p.value = !1;
3648
3661
  }, 1e3, { immediate: !1 });
3649
3662
  function h(e, t) {
@@ -3655,14 +3668,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3655
3668
  }
3656
3669
  return (t, n) => (s(), x(P, null, [
3657
3670
  A("div", tl, [
3658
- A("label", { class: y(g(q)) }, F(g(a).video.videoUrl), 3),
3659
- _($, {
3671
+ A("label", { class: y(g(J)) }, F(g(a).video.videoUrl), 3),
3672
+ _(Ri, {
3660
3673
  "model-value": e.block.url,
3661
3674
  type: "url",
3662
3675
  placeholder: g(a).video.videoUrlPlaceholder,
3663
3676
  "onUpdate:modelValue": n[0] ||= (e) => h("url", e)
3664
3677
  }, null, 8, ["model-value", "placeholder"]),
3665
- e.block.url ? (s(), D(Q, {
3678
+ e.block.url ? (s(), D($, {
3666
3679
  key: 0,
3667
3680
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
3668
3681
  "model-value": e.block.openInNewTab ?? !1,
@@ -3670,17 +3683,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3670
3683
  "onUpdate:modelValue": n[1] ||= (e) => h("openInNewTab", e)
3671
3684
  }, null, 8, ["model-value", "label"])) : S("", !0)
3672
3685
  ]),
3673
- f.value ? (s(), x("div", nl, [A("label", { class: y(g(q)) }, [R(F(g(a).video.placeholderUrl) + " ", 1), A("span", rl, F(g(a).video.optional), 1)], 2), A("input", {
3686
+ f.value ? (s(), x("div", nl, [A("label", { class: y(g(J)) }, [R(F(g(a).video.placeholderUrl) + " ", 1), A("span", rl, F(g(a).video.optional), 1)], 2), A("input", {
3674
3687
  type: "url",
3675
- class: y(g(X)),
3688
+ class: y(g(Z)),
3676
3689
  value: e.block.placeholderUrl || "",
3677
3690
  placeholder: g(a).video.placeholderUrlPlaceholder,
3678
3691
  title: g(a).video.placeholderUrlTooltip,
3679
3692
  onInput: n[2] ||= (e) => h("placeholderUrl", e.target.value)
3680
3693
  }, null, 42, il)])) : S("", !0),
3681
3694
  A("div", al, [
3682
- A("label", { class: y(g(q)) }, [R(F(g(a).video.customThumbnail) + " ", 1), A("span", ol, F(g(a).video.optional), 1)], 2),
3683
- _($, {
3695
+ A("label", { class: y(g(J)) }, [R(F(g(a).video.customThumbnail) + " ", 1), A("span", ol, F(g(a).video.optional), 1)], 2),
3696
+ _(Ri, {
3684
3697
  "model-value": e.block.thumbnailUrl,
3685
3698
  type: "url",
3686
3699
  placeholder: g(a).video.thumbnailPlaceholder,
@@ -3700,19 +3713,19 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3700
3713
  "background-color": "var(--tpl-bg)"
3701
3714
  },
3702
3715
  onClick: v
3703
- }, [_(g(Kt), {
3716
+ }, [_(g(Gt), {
3704
3717
  size: 14,
3705
3718
  "stroke-width": 1.5
3706
3719
  }), R(" " + F(g(a).image.browseMedia), 1)])) : S("", !0)
3707
3720
  ]),
3708
- A("div", sl, [A("label", { class: y(g(q)) }, F(g(a).video.altText), 3), _($, {
3721
+ A("div", sl, [A("label", { class: y(g(J)) }, F(g(a).video.altText), 3), _(Ri, {
3709
3722
  "model-value": e.block.alt,
3710
3723
  type: "text",
3711
3724
  placeholder: g(a).video.altTextPlaceholder,
3712
3725
  "onUpdate:modelValue": n[4] ||= (e) => h("alt", e)
3713
3726
  }, null, 8, ["model-value", "placeholder"])]),
3714
- A("div", cl, [A("label", { class: y(g(q)) }, F(g(a).video.width), 3), A("select", {
3715
- class: y(g(X)),
3727
+ A("div", cl, [A("label", { class: y(g(J)) }, F(g(a).video.width), 3), A("select", {
3728
+ class: y(g(Z)),
3716
3729
  value: e.block.width,
3717
3730
  onChange: n[5] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
3718
3731
  }, [
@@ -3721,7 +3734,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3721
3734
  n[8] ||= A("option", { value: "400" }, "400px", -1),
3722
3735
  n[9] ||= A("option", { value: "500" }, "500px", -1)
3723
3736
  ], 42, ll)]),
3724
- A("div", dl, [A("label", { class: y(g(q)) }, F(g(a).title.align), 3), _(jn, {
3737
+ A("div", dl, [A("label", { class: y(g(J)) }, F(g(a).title.align), 3), _(An, {
3725
3738
  options: [
3726
3739
  {
3727
3740
  value: "left",
@@ -3741,7 +3754,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3741
3754
  }, null, 8, ["options", "model-value"])])
3742
3755
  ], 64));
3743
3756
  }
3744
- }), pl = ["aria-label"], ml = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, hl = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, gl = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _l = { class: "tpl:flex tpl:gap-1" }, vl = ["title"], yl = ["title"], bl = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, xl = /*#__PURE__*/ un(/* @__PURE__ */ d({
3757
+ }), pl = ["aria-label"], ml = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, hl = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, gl = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _l = { class: "tpl:flex tpl:gap-1" }, vl = ["title"], yl = ["title"], bl = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, xl = /*#__PURE__*/ ln(/* @__PURE__ */ d({
3745
3758
  __name: "Toolbar",
3746
3759
  props: { block: {} },
3747
3760
  emits: [
@@ -3750,20 +3763,20 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3750
3763
  "duplicate"
3751
3764
  ],
3752
3765
  setup(e, { emit: n }) {
3753
- let r = L(() => import("./chunks/CountdownToolbar-D8QWL-jK.js")), i = e, a = n, { t: o } = K(), c = et(tt, "Toolbar"), l = t(it, []), d = b(() => i.block.type), f = b(() => z(i.block)), p = b(() => {
3766
+ let r = L(() => import("./chunks/CountdownToolbar-BRDbI1mM.js")), i = e, a = n, { t: o } = q(), c = $e(et, "Toolbar"), l = t(rt, []), d = b(() => i.block.type), f = b(() => z(i.block)), p = b(() => {
3754
3767
  if (f.value) return l.find((e) => e.type === i.block.customType);
3755
- }), m = b(() => f.value ? p.value?.name ?? i.block.customType : Oe(d.value, o)), h = c.fonts;
3768
+ }), m = b(() => f.value ? p.value?.name ?? i.block.customType : De(d.value, o)), h = c.fonts;
3756
3769
  function v(e) {
3757
3770
  a("update", e);
3758
3771
  }
3759
3772
  return (t, n) => (s(), x("aside", {
3760
3773
  "aria-label": g(o).landmarks.blockToolbar,
3761
3774
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3762
- }, [A("div", ml, [A("div", hl, [g(vn)[d.value] ? (s(), D(u(g(vn)[d.value]), {
3775
+ }, [A("div", ml, [A("div", hl, [g(_n)[d.value] ? (s(), D(u(g(_n)[d.value]), {
3763
3776
  key: 0,
3764
3777
  size: 16,
3765
3778
  "stroke-width": 1.5
3766
- })) : f.value ? (s(), D(g(Mt), {
3779
+ })) : f.value ? (s(), D(g(jt), {
3767
3780
  key: 1,
3768
3781
  size: 16,
3769
3782
  "stroke-width": 1.5
@@ -3771,14 +3784,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3771
3784
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
3772
3785
  title: g(o).toolbar.duplicate,
3773
3786
  onClick: n[0] ||= (e) => a("duplicate")
3774
- }, [_(g(wt), {
3787
+ }, [_(g(Ct), {
3775
3788
  size: 14,
3776
3789
  "stroke-width": 2
3777
3790
  })], 8, vl), A("button", {
3778
3791
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
3779
3792
  title: g(o).toolbar.delete,
3780
3793
  onClick: n[1] ||= (e) => a("delete")
3781
- }, [_(g(Ut), {
3794
+ }, [_(g(Ht), {
3782
3795
  size: 14,
3783
3796
  "stroke-width": 2
3784
3797
  })], 8, yl)])]), A("div", bl, [f.value ? (s(), D(Ho, {
@@ -3898,7 +3911,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3898
3911
  "update-settings"
3899
3912
  ],
3900
3913
  setup(n, { emit: r }) {
3901
- let i = L(() => import("./chunks/IssuesPanel-Dz90c1C6.js")), a = n, o = r, { t: c } = K(), u = l("content"), d = t(gt, null), f = b(() => d !== null), p = b(() => d?.issues.value.length ?? 0);
3914
+ let i = L(() => import("./chunks/IssuesPanel-CTGlv7HF.js")), a = n, o = r, { t: c } = q(), u = l("content"), d = t(ht, null), f = b(() => d !== null), p = b(() => d?.issues.value.length ?? 0);
3902
3915
  function m(e) {
3903
3916
  return u.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
3904
3917
  }
@@ -3925,7 +3938,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3925
3938
  class: y(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", m("content")]),
3926
3939
  style: E(h("content")),
3927
3940
  onClick: t[0] ||= (e) => u.value = "content"
3928
- }, [_(g(tn), {
3941
+ }, [_(g(en), {
3929
3942
  size: 14,
3930
3943
  "stroke-width": 2
3931
3944
  }), u.value === "content" ? (s(), x("span", Tl, F(g(c).sidebar.content), 1)) : S("", !0)], 14, wl),
@@ -3939,7 +3952,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3939
3952
  class: y(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", m("settings")]),
3940
3953
  style: E(h("settings")),
3941
3954
  onClick: t[1] ||= (e) => u.value = "settings"
3942
- }, [_(g(Yt), {
3955
+ }, [_(g(Jt), {
3943
3956
  size: 14,
3944
3957
  "stroke-width": 1.5
3945
3958
  }), u.value === "settings" ? (s(), x("span", Dl, F(g(c).sidebar.settings), 1)) : S("", !0)], 14, El),
@@ -3955,7 +3968,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3955
3968
  style: E(h("issues")),
3956
3969
  onClick: t[2] ||= (e) => u.value = "issues"
3957
3970
  }, [
3958
- _(g(an), {
3971
+ _(g(rn), {
3959
3972
  size: 14,
3960
3973
  "stroke-width": 1.5
3961
3974
  }),
@@ -3970,14 +3983,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3970
3983
  onDelete: t[4] ||= (e) => o("delete-block"),
3971
3984
  onDuplicate: t[5] ||= (e) => o("duplicate-block")
3972
3985
  }, null, 8, ["block"])) : (s(), x("div", Ml, [
3973
- A("div", Nl, [_(g(Xt), {
3986
+ A("div", Nl, [_(g(Yt), {
3974
3987
  size: 40,
3975
3988
  "stroke-width": 1.5
3976
3989
  })]),
3977
3990
  A("h3", Pl, F(g(c).sidebar.noSelection), 1),
3978
3991
  A("p", Fl, F(g(c).sidebar.noSelectionHint), 1)
3979
3992
  ]))])) : S("", !0),
3980
- u.value === "settings" ? (s(), x("div", Il, [_(Mi, {
3993
+ u.value === "settings" ? (s(), x("div", Il, [_(ji, {
3981
3994
  settings: n.settings,
3982
3995
  onUpdate: t[6] ||= (e) => o("update-settings", e)
3983
3996
  }, null, 8, ["settings"])])) : S("", !0),
@@ -3992,9 +4005,9 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
3992
4005
  }, Bl = { class: "tpl:text-[var(--tpl-text-dim)]" }, Vl = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Hl = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Ul = /* @__PURE__ */ d({
3993
4006
  __name: "SmallScreenNotice",
3994
4007
  setup(e) {
3995
- let { t } = K();
4008
+ let { t } = q();
3996
4009
  return (e, n) => (s(), x("div", zl, [
3997
- A("div", Bl, [_(g(bt), {
4010
+ A("div", Bl, [_(g(yt), {
3998
4011
  size: 48,
3999
4012
  "stroke-width": 1.5
4000
4013
  })]),
@@ -4019,7 +4032,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4019
4032
  __name: "EditorFooter",
4020
4033
  props: { positionClass: {} },
4021
4034
  setup(e) {
4022
- let { t } = K();
4035
+ let { t } = q();
4023
4036
  return (n, r) => (s(), x("footer", { class: y(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div", Wl, [
4024
4037
  A("span", null, F(g(t).footer.poweredBy), 1),
4025
4038
  r[0] ||= A("a", {
@@ -4042,12 +4055,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4042
4055
  "aria-label",
4043
4056
  "title",
4044
4057
  "aria-pressed"
4045
- ], Jl = /*#__PURE__*/ un(/* @__PURE__ */ d({
4058
+ ], Jl = /*#__PURE__*/ ln(/* @__PURE__ */ d({
4046
4059
  __name: "DarkModeToggle",
4047
4060
  props: { darkMode: { type: Boolean } },
4048
4061
  emits: ["change"],
4049
4062
  setup(e, { emit: t }) {
4050
- let n = t, { t: i } = K();
4063
+ let n = t, { t: i } = q();
4051
4064
  return (t, a) => (s(), x("button", {
4052
4065
  class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all",
4053
4066
  style: E({
@@ -4065,11 +4078,11 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4065
4078
  "leave-to-class": "tpl-icon-leave-to",
4066
4079
  mode: "out-in"
4067
4080
  }, {
4068
- default: r(() => [e.darkMode ? (s(), D(g(Pt), {
4081
+ default: r(() => [e.darkMode ? (s(), D(g(Nt), {
4069
4082
  key: "moon",
4070
4083
  size: 18,
4071
4084
  "stroke-width": 1.5
4072
- })) : (s(), D(g(Ht), {
4085
+ })) : (s(), D(g(Vt), {
4073
4086
  key: "sun",
4074
4087
  size: 18,
4075
4088
  "stroke-width": 1.5
@@ -4081,12 +4094,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4081
4094
  "aria-label",
4082
4095
  "title",
4083
4096
  "aria-pressed"
4084
- ], Xl = /*#__PURE__*/ un(/* @__PURE__ */ d({
4097
+ ], Xl = /*#__PURE__*/ ln(/* @__PURE__ */ d({
4085
4098
  __name: "PreviewToggle",
4086
4099
  props: { previewMode: { type: Boolean } },
4087
4100
  emits: ["change"],
4088
4101
  setup(e, { emit: t }) {
4089
- let n = t, { t: i } = K();
4102
+ let n = t, { t: i } = q();
4090
4103
  return (t, a) => (s(), x("button", {
4091
4104
  class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all",
4092
4105
  style: E({
@@ -4104,11 +4117,11 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4104
4117
  "leave-to-class": "tpl-icon-leave-to",
4105
4118
  mode: "out-in"
4106
4119
  }, {
4107
- default: r(() => [e.previewMode ? (s(), D(g(cn), {
4120
+ default: r(() => [e.previewMode ? (s(), D(g(sn), {
4108
4121
  key: "eye",
4109
4122
  size: 18,
4110
4123
  "stroke-width": 1.5
4111
- })) : (s(), D(g(Lt), {
4124
+ })) : (s(), D(g(It), {
4112
4125
  key: "eye-off",
4113
4126
  size: 18,
4114
4127
  "stroke-width": 1.5
@@ -4124,7 +4137,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4124
4137
  },
4125
4138
  emits: ["commit"],
4126
4139
  setup(e, { emit: t }) {
4127
- let n = e, r = t, { t: i } = K(), a = l(!1), o = l(""), c = l(null);
4140
+ let n = e, r = t, { t: i } = q(), a = l(!1), o = l(""), c = l(null);
4128
4141
  async function u() {
4129
4142
  n.editable && (o.value = n.name ?? "", a.value = !0, await w(), c.value?.focus(), c.value?.select());
4130
4143
  }
@@ -4145,7 +4158,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4145
4158
  type: "text",
4146
4159
  "data-testid": "template-name-input",
4147
4160
  "aria-label": g(i).header.templateName,
4148
- class: y([g(X), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
4161
+ class: y([g(Z), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
4149
4162
  onKeydown: [v(T(d, ["prevent"]), ["enter"]), v(T(p, ["prevent"]), ["esc"])],
4150
4163
  onBlur: d
4151
4164
  }, null, 42, Zl)), [[k, o.value]]) : e.editable ? (s(), x("button", {
@@ -4169,12 +4182,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4169
4182
  kind: {}
4170
4183
  },
4171
4184
  setup(e) {
4172
- let t = e, { t: n, format: r } = K(), i = l(0);
4173
- Ue(() => {
4185
+ let t = e, { t: n, format: r } = q(), i = l(0);
4186
+ He(() => {
4174
4187
  i.value += 1;
4175
4188
  }, 6e4);
4176
4189
  let a = b(() => {
4177
- let e = Fn(t.iso, n.time, r);
4190
+ let e = Pn(t.iso, n.time, r);
4178
4191
  if (e === null) return "";
4179
4192
  let i = e === n.time.justNow;
4180
4193
  return t.kind === "updatedAt" ? i ? n.header.updatedJustNow : r(n.header.updatedAt, { time: e }) : i ? n.header.createdJustNow : r(n.header.createdAt, { time: e });
@@ -4207,17 +4220,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4207
4220
  isDirty: { type: Boolean }
4208
4221
  },
4209
4222
  setup(e) {
4210
- let { t } = K();
4223
+ let { t } = q();
4211
4224
  return (n, r) => e.status === "error" ? (s(), x("div", {
4212
4225
  key: 0,
4213
4226
  "aria-live": "assertive",
4214
4227
  "data-testid": "save-status-error",
4215
4228
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
4216
4229
  "data-tooltip": e.errorMessage
4217
- }, [_(g(At), {
4230
+ }, [_(g(kt), {
4218
4231
  size: 12,
4219
4232
  "stroke-width": 2.5
4220
- }), R(" " + F(g(t).header.saveFailed), 1)], 8, nu)) : e.status === "saved" ? (s(), x("div", ru, [_(g(Ot), {
4233
+ }), R(" " + F(g(t).header.saveFailed), 1)], 8, nu)) : e.status === "saved" ? (s(), x("div", ru, [_(g(Dt), {
4221
4234
  size: 12,
4222
4235
  "stroke-width": 2.5
4223
4236
  }), R(" " + F(g(t).header.saved), 1)])) : e.isDirty ? (s(), x("div", iu, [r[0] ||= A("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), R(" " + F(g(t).header.unsaved), 1)])) : S("", !0);
@@ -4241,7 +4254,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4241
4254
  comments: {}
4242
4255
  },
4243
4256
  setup(e) {
4244
- let t = L(() => import("./chunks/VersionHistoryMenu-Cv23A0uu.js"));
4257
+ let t = L(() => import("./chunks/VersionHistoryMenu-BNYSIjVj.js"));
4245
4258
  return (n, r) => (s(), x("header", ou, [
4246
4259
  A("div", su, [e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (s(), x("div", {
4247
4260
  key: 0,
@@ -4261,7 +4274,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4261
4274
  kind: e.templates.timestamp.value.kind
4262
4275
  }, null, 8, ["iso", "kind"])) : S("", !0)], 2)) : S("", !0), i(n.$slots, "left-extras")]),
4263
4276
  A("div", cu, [
4264
- _(Nn, {
4277
+ _(Mn, {
4265
4278
  viewport: e.editor.state.viewport,
4266
4279
  onChange: e.editor.setViewport
4267
4280
  }, null, 8, ["viewport", "onChange"]),
@@ -4273,7 +4286,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4273
4286
  "preview-mode": e.editor.state.previewMode,
4274
4287
  onChange: e.editor.setPreviewMode
4275
4288
  }, null, 8, ["preview-mode", "onChange"]),
4276
- e.editor.state.previewMode && !e.core.previewResolution.supersedesSamples.value ? (s(), D(Pn, {
4289
+ e.editor.state.previewMode && !e.core.previewResolution.supersedesSamples.value ? (s(), D(Nn, {
4277
4290
  key: 0,
4278
4291
  "sample-mode": e.core.mergeTagSampleMode.value,
4279
4292
  onChange: r[0] ||= (t) => e.core.mergeTagSampleMode.value = t
@@ -4311,14 +4324,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4311
4324
  "data-testid": "comments-trigger",
4312
4325
  "aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
4313
4326
  "aria-expanded": e.comments.isOpen.value,
4314
- class: y(g(bn)),
4327
+ class: y(g(yn)),
4315
4328
  style: E(e.comments.isOpen.value ? {
4316
4329
  backgroundColor: "var(--tpl-primary-light)",
4317
4330
  borderColor: "var(--tpl-primary-light)"
4318
4331
  } : void 0),
4319
4332
  onClick: r[3] ||= (t) => e.comments.toggle()
4320
4333
  }, [
4321
- _(g(on), {
4334
+ _(g(an), {
4322
4335
  size: 16,
4323
4336
  "stroke-width": 2
4324
4337
  }),
@@ -4333,14 +4346,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4333
4346
  "aria-label": e.core.t.testEmail.title,
4334
4347
  title: e.core.t.testEmail.title,
4335
4348
  disabled: e.testEmail.isSending.value,
4336
- class: y(g(bn)),
4349
+ class: y(g(yn)),
4337
4350
  onClick: r[4] ||= (t) => e.testEmail.open()
4338
- }, [e.testEmail.isSending.value ? (s(), D(g(Jt), {
4351
+ }, [e.testEmail.isSending.value ? (s(), D(g(qt), {
4339
4352
  key: 1,
4340
4353
  class: "tpl-spinner",
4341
4354
  size: 16,
4342
4355
  "stroke-width": 2
4343
- })) : (s(), D(g(kt), {
4356
+ })) : (s(), D(g(Ot), {
4344
4357
  key: 0,
4345
4358
  size: 16,
4346
4359
  "stroke-width": 2
@@ -4349,17 +4362,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4349
4362
  key: 3,
4350
4363
  type: "button",
4351
4364
  "data-testid": "template-save",
4352
- class: y(g(e.editor.state.isDirty && e.templates.hasTemplate.value ? Dn : bn)),
4365
+ class: y(g(e.editor.state.isDirty && e.templates.hasTemplate.value ? En : yn)),
4353
4366
  style: E(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
4354
4367
  disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
4355
4368
  title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
4356
4369
  onClick: r[5] ||= (t) => e.templates.requestSave()
4357
- }, [e.templates.isSaving.value ? (s(), D(g(Jt), {
4370
+ }, [e.templates.isSaving.value ? (s(), D(g(qt), {
4358
4371
  key: 1,
4359
4372
  class: "tpl-spinner",
4360
4373
  size: 16,
4361
4374
  "stroke-width": 2
4362
- })) : (s(), D(g(Tt), {
4375
+ })) : (s(), D(g(wt), {
4363
4376
  key: 0,
4364
4377
  size: 16,
4365
4378
  "stroke-width": 2
@@ -4408,7 +4421,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4408
4421
  }, Nu = "tpl-merge-tag-picker-list", Pu = /* @__PURE__ */ d({
4409
4422
  __name: "MergeTagPickerModal",
4410
4423
  setup(i) {
4411
- let a = et(Ke, "MergeTagPickerModal"), { t: o, format: c } = K(), u = t(Ge, null), d = t(Je, null), p = l(""), m = He(p, 200), h = l(null), C = b(() => m.value.trim().length > 0), O = l(0), j = b(() => a.tags.value.some((e) => !!e.group)), M = l(/* @__PURE__ */ new Set());
4424
+ let a = $e(Ge, "MergeTagPickerModal"), { t: o, format: c } = q(), u = t(We, null), d = t(qe, null), p = l(""), m = Ve(p, 200), h = l(null), C = b(() => m.value.trim().length > 0), O = l(0), j = b(() => a.tags.value.some((e) => !!e.group)), M = l(/* @__PURE__ */ new Set());
4412
4425
  function N(e) {
4413
4426
  return M.value.has(e);
4414
4427
  }
@@ -4474,19 +4487,19 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4474
4487
  function H(e) {
4475
4488
  if (z.value.length === 0) return;
4476
4489
  let t = O.value + e;
4477
- O.value = Math.max(0, Math.min(z.value.length - 1, t)), ne();
4490
+ O.value = Math.max(0, Math.min(z.value.length - 1, t)), te();
4478
4491
  }
4479
- let U = l(null), te = l({});
4480
- function W(e, t) {
4481
- te.value[e] = t ?? null;
4492
+ let U = l(null), W = l({});
4493
+ function G(e, t) {
4494
+ W.value[e] = t ?? null;
4482
4495
  }
4483
- function ne() {
4496
+ function te() {
4484
4497
  w(() => {
4485
4498
  let e = U.value;
4486
4499
  e && e.querySelector(`[data-merge-tag-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
4487
4500
  });
4488
4501
  }
4489
- function re(e) {
4502
+ function ne(e) {
4490
4503
  if (M.value.has(e)) {
4491
4504
  let t = new Set(M.value);
4492
4505
  t.delete(e), M.value = t;
@@ -4508,7 +4521,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4508
4521
  });
4509
4522
  });
4510
4523
  }
4511
- function ie(e) {
4524
+ function re(e) {
4512
4525
  if (e.key === "ArrowDown") e.preventDefault(), H(1);
4513
4526
  else if (e.key === "ArrowUp") e.preventDefault(), H(-1);
4514
4527
  else if (e.key === "Enter") {
@@ -4517,17 +4530,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4517
4530
  t && B(t);
4518
4531
  }
4519
4532
  }
4520
- function G() {
4533
+ function K() {
4521
4534
  if (z.value.length !== 0) return `${Nu}-opt-${O.value}`;
4522
4535
  }
4523
- function ae(e) {
4536
+ function ie(e) {
4524
4537
  return `${Nu}-opt-${e}`;
4525
4538
  }
4526
- let oe = b(() => a.tags.value.length === 0), se = b(() => !oe.value && I.value.length === 0), ce = b(() => j.value && L.value.length > 1 && !C.value);
4527
- return (e, t) => (s(), D(In, {
4539
+ let ae = b(() => a.tags.value.length === 0), oe = b(() => !ae.value && I.value.length === 0), se = b(() => j.value && L.value.length > 1 && !C.value);
4540
+ return (e, t) => (s(), D(Fn, {
4528
4541
  visible: g(a).isOpen.value,
4529
4542
  onClose: V,
4530
- onKeydown: ie
4543
+ onKeydown: re
4531
4544
  }, {
4532
4545
  default: r(() => [A("div", {
4533
4546
  role: "dialog",
@@ -4547,11 +4560,11 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4547
4560
  "aria-label": g(o).mergeTag.picker.close,
4548
4561
  "data-testid": "merge-tag-picker-close",
4549
4562
  onClick: V
4550
- }, [_(g(Qt), {
4563
+ }, [_(g(Zt), {
4551
4564
  size: 16,
4552
4565
  "stroke-width": 2
4553
4566
  })], 8, vu)]),
4554
- A("div", yu, [_(g(jt), {
4567
+ A("div", yu, [_(g(At), {
4555
4568
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
4556
4569
  size: 14,
4557
4570
  "stroke-width": 2
@@ -4565,17 +4578,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4565
4578
  placeholder: g(o).mergeTag.picker.searchPlaceholder,
4566
4579
  "aria-label": g(o).mergeTag.picker.searchAriaLabel,
4567
4580
  "aria-controls": Nu,
4568
- "aria-activedescendant": G(),
4581
+ "aria-activedescendant": K(),
4569
4582
  "data-testid": "merge-tag-picker-search",
4570
4583
  onKeydown: t[1] ||= v(T(() => {}, ["prevent"]), ["enter"])
4571
4584
  }, null, 40, bu), [[k, p.value]])]),
4572
- ce.value ? (s(), x("div", xu, [(s(!0), x(P, null, n(L.value, (e) => (s(), x("button", {
4585
+ se.value ? (s(), x("div", xu, [(s(!0), x(P, null, n(L.value, (e) => (s(), x("button", {
4573
4586
  key: e,
4574
4587
  type: "button",
4575
4588
  class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
4576
4589
  "data-testid": "merge-tag-picker-group-pill",
4577
4590
  "data-group-name": e,
4578
- onClick: (t) => re(e)
4591
+ onClick: (t) => ne(e)
4579
4592
  }, F(e), 9, Su))), 128))])) : S("", !0),
4580
4593
  A("div", {
4581
4594
  id: Nu,
@@ -4585,10 +4598,10 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4585
4598
  role: "listbox",
4586
4599
  "aria-label": g(o).mergeTag.picker.title,
4587
4600
  "data-testid": "merge-tag-picker-list"
4588
- }, [oe.value ? (s(), x("div", wu, F(g(o).mergeTag.picker.empty), 1)) : se.value ? (s(), x("div", Tu, F(g(o).mergeTag.picker.noResults), 1)) : (s(!0), x(P, { key: 2 }, n(R.value, (e, t) => (s(), x(P, { key: t }, [e.kind === "header" ? (s(), x("button", {
4601
+ }, [ae.value ? (s(), x("div", wu, F(g(o).mergeTag.picker.empty), 1)) : oe.value ? (s(), x("div", Tu, F(g(o).mergeTag.picker.noResults), 1)) : (s(!0), x(P, { key: 2 }, n(R.value, (e, t) => (s(), x(P, { key: t }, [e.kind === "header" ? (s(), x("button", {
4589
4602
  key: 0,
4590
4603
  ref_for: !0,
4591
- ref: (t) => W(e.group, t),
4604
+ ref: (t) => G(e.group, t),
4592
4605
  type: "button",
4593
4606
  "aria-expanded": !N(e.group),
4594
4607
  "aria-controls": Nu,
@@ -4598,7 +4611,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4598
4611
  "data-group-collapsed": N(e.group) ? "true" : "false",
4599
4612
  onClick: (t) => ee(e.group)
4600
4613
  }, [
4601
- _(g(Dt), {
4614
+ _(g(Et), {
4602
4615
  size: 12,
4603
4616
  "stroke-width": 2,
4604
4617
  class: y(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
@@ -4607,7 +4620,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4607
4620
  A("span", Du, " (" + F(g(c)(g(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
4608
4621
  ], 8, Eu)) : (s(), x("button", {
4609
4622
  key: 1,
4610
- id: ae(e.index),
4623
+ id: ie(e.index),
4611
4624
  type: "button",
4612
4625
  role: "option",
4613
4626
  "aria-selected": e.index === O.value,
@@ -4636,7 +4649,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4636
4649
  syntax: {}
4637
4650
  },
4638
4651
  setup(e) {
4639
- let t = e, n = b(() => re(t.value, t.syntax)), r = b(() => te(t.value, t.syntax));
4652
+ let t = e, n = b(() => ne(t.value, t.syntax)), r = b(() => W(t.value, t.syntax));
4640
4653
  return (e, t) => n.value ? (s(), x("span", {
4641
4654
  key: 0,
4642
4655
  class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
@@ -4681,7 +4694,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4681
4694
  }, ed = "tpl-logic-picker-list", td = /* @__PURE__ */ d({
4682
4695
  __name: "LogicTagPickerModal",
4683
4696
  setup(i) {
4684
- let a = et(ht, "LogicTagPickerModal"), { t: o } = K(), c = t(st, se.liquid), u = t(Ge, null), d = t(Je, null), p = l(""), m = He(p, 200), h = l(null), C = b(() => m.value.trim().length > 0), O = l(0);
4697
+ let a = $e(mt, "LogicTagPickerModal"), { t: o } = q(), c = t(ot, oe.liquid), u = t(We, null), d = t(qe, null), p = l(""), m = Ve(p, 200), h = l(null), C = b(() => m.value.trim().length > 0), O = l(0);
4685
4698
  function j(e) {
4686
4699
  let t = m.value.trim().toLowerCase();
4687
4700
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -4746,33 +4759,33 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4746
4759
  function U(e) {
4747
4760
  a.resolve(e);
4748
4761
  }
4749
- function te() {
4762
+ function W() {
4750
4763
  a.resolve(null);
4751
4764
  }
4752
- function W(e) {
4765
+ function G(e) {
4753
4766
  z.value.length !== 0 && (O.value = Math.max(0, Math.min(z.value.length - 1, O.value + e)), w(() => {
4754
4767
  H.value?.querySelector(`[data-logic-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
4755
4768
  }));
4756
4769
  }
4757
- function ne(e) {
4758
- if (e.key === "ArrowDown") e.preventDefault(), W(1);
4759
- else if (e.key === "ArrowUp") e.preventDefault(), W(-1);
4770
+ function te(e) {
4771
+ if (e.key === "ArrowDown") e.preventDefault(), G(1);
4772
+ else if (e.key === "ArrowUp") e.preventDefault(), G(-1);
4760
4773
  else if (e.key === "Enter") {
4761
4774
  e.preventDefault();
4762
4775
  let t = z.value[O.value];
4763
4776
  t && U(t);
4764
4777
  }
4765
4778
  }
4766
- function re(e) {
4779
+ function ne(e) {
4767
4780
  return `${ed}-opt-${e}`;
4768
4781
  }
4769
- function ie() {
4782
+ function re() {
4770
4783
  return z.value.length === 0 ? void 0 : `${ed}-opt-${O.value}`;
4771
4784
  }
4772
- return (e, t) => (s(), D(In, {
4785
+ return (e, t) => (s(), D(Fn, {
4773
4786
  visible: g(a).isOpen.value,
4774
- onClose: te,
4775
- onKeydown: ne
4787
+ onClose: W,
4788
+ onKeydown: te
4776
4789
  }, {
4777
4790
  default: r(() => [A("div", {
4778
4791
  role: "dialog",
@@ -4791,12 +4804,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4791
4804
  class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
4792
4805
  "aria-label": g(o).logicTag.picker.close,
4793
4806
  "data-testid": "logic-picker-close",
4794
- onClick: te
4795
- }, [_(g(Qt), {
4807
+ onClick: W
4808
+ }, [_(g(Zt), {
4796
4809
  size: 16,
4797
4810
  "stroke-width": 2
4798
4811
  })], 8, Bu)]),
4799
- A("div", Vu, [_(g(jt), {
4812
+ A("div", Vu, [_(g(At), {
4800
4813
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
4801
4814
  size: 14,
4802
4815
  "stroke-width": 2
@@ -4810,7 +4823,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4810
4823
  placeholder: g(o).logicTag.picker.searchPlaceholder,
4811
4824
  "aria-label": g(o).logicTag.picker.searchAriaLabel,
4812
4825
  "aria-controls": ed,
4813
- "aria-activedescendant": ie(),
4826
+ "aria-activedescendant": re(),
4814
4827
  "data-testid": "logic-picker-search",
4815
4828
  onKeydown: t[1] ||= v(T(() => {}, ["prevent"]), ["enter"])
4816
4829
  }, null, 40, Hu), [[k, p.value]])]),
@@ -4829,7 +4842,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4829
4842
  "data-group-name": e.label
4830
4843
  }, F(e.label), 9, Ku)) : (s(), x("button", {
4831
4844
  key: 1,
4832
- id: re(e.index),
4845
+ id: ne(e.index),
4833
4846
  type: "button",
4834
4847
  role: "option",
4835
4848
  "aria-selected": e.index === O.value,
@@ -4862,7 +4875,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4862
4875
  _: 1
4863
4876
  }, 8, ["visible"]));
4864
4877
  }
4865
- }), nd = ["data-tpl-theme"], rd = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, id = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, ad = ["aria-label"], od = /*#__PURE__*/ un(/* @__PURE__ */ d({
4878
+ }), nd = ["data-tpl-theme"], rd = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, id = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, ad = ["aria-label"], od = /*#__PURE__*/ ln(/* @__PURE__ */ d({
4866
4879
  __name: "Editor",
4867
4880
  props: {
4868
4881
  config: {},
@@ -4872,32 +4885,32 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4872
4885
  cloud: {}
4873
4886
  },
4874
4887
  setup(t, { expose: n }) {
4875
- let i = t, a = i.config.templates ? ar(i.config.templates, i.config.mergeTags) : void 0, c = le({
4888
+ let i = t, a = i.config.templates ? ir(i.config.templates, i.config.mergeTags) : void 0, c = ce({
4876
4889
  content: i.config.content,
4877
4890
  defaultFontFamily: i.config.fonts?.defaultFont,
4878
4891
  templateDefaults: i.config.templateDefaults,
4879
4892
  templates: a,
4880
4893
  onError: i.config.onError,
4881
4894
  lockedBlocks: i.cloud?.lockedBlocks
4882
- }), u = i.cloud ? i.cloud.attach({ editor: c }) : null, d = a ? Bn({
4895
+ }), u = i.cloud ? i.cloud.attach({ editor: c }) : null, d = a ? zn({
4883
4896
  provider: a,
4884
4897
  editor: c,
4885
4898
  guardUnsavedChanges: i.config.unsavedChangesGuard,
4886
4899
  getSaveGate: i.cloud ? () => i.cloud.getSaveGate() : void 0
4887
4900
  }) : null;
4888
4901
  i.config.onDirtyChange && e(() => c.state.isDirty, (e) => i.config.onDirtyChange(e));
4889
- let p = l(null), m = i.config.savedBlocks ? Rn({
4902
+ let p = l(null), m = i.config.savedBlocks ? Ln({
4890
4903
  provider: i.config.savedBlocks,
4891
4904
  editor: c,
4892
4905
  onError: i.config.onError,
4893
4906
  isAvailable: i.cloud ? () => i.cloud.isSavedBlocksAvailable() : void 0
4894
- }) : null, v = L(() => import("./chunks/SavedBlocksPanels-B7aBlxKW.js")), w = i.config.testEmail ? Wn({
4907
+ }) : null, v = L(() => import("./chunks/SavedBlocksPanels-VkKCO0uY.js")), w = i.config.testEmail ? Un({
4895
4908
  provider: i.config.testEmail,
4896
4909
  getContent: () => c.content.value,
4897
- renderMjml: ne,
4910
+ renderMjml: te,
4898
4911
  onError: i.config.onError,
4899
4912
  isAvailable: i.cloud ? () => i.cloud.isTestEmailAvailable() : void 0
4900
- }) : null, k = L(() => import("./chunks/TestEmailPanel-DItZMP3B.js")), j = i.config.comments ? Ln({
4913
+ }) : null, k = L(() => import("./chunks/TestEmailPanel-C35nqIIl.js")), j = i.config.comments ? In({
4901
4914
  provider: i.config.comments,
4902
4915
  editor: c,
4903
4916
  user: i.config.user,
@@ -4906,8 +4919,8 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4906
4919
  onError: i.config.onError,
4907
4920
  isAvailable: i.cloud ? () => i.cloud.isCommentsAvailable() : void 0,
4908
4921
  isBlockSaved: i.cloud ? (e) => i.cloud.isBlockSaved(e) : void 0
4909
- }) : null, M = L(() => import("./chunks/CommentsPanel-D7Y-74Nj.js")), ee = L(() => import("./chunks/CloudPanels-YRYmXE9O.js")), P = L(() => import("./chunks/CloudHeaderExtras-Ctat5U0M.js")), I = L(() => import("./chunks/VersionHistoryPanels-DHDN1owI.js")), z = Kn(i.config.autoSave, !1), B = z.enabled && d !== null;
4910
- z.enabled && d === null && _t.warn("config.autoSave is on but no `templates` provider is configured — there is nothing to save to. Pass `templates` to enable it, or use `onChange` to persist the content yourself.");
4922
+ }) : null, M = L(() => import("./chunks/CommentsPanel-COhQMagD.js")), ee = L(() => import("./chunks/CloudPanels-DVtJkWsj.js")), P = L(() => import("./chunks/CloudHeaderExtras-CScGpeLl.js")), I = L(() => import("./chunks/VersionHistoryPanels-CvWySHUE.js")), z = Gn(i.config.autoSave, !1), B = z.enabled && d !== null;
4923
+ z.enabled && d === null && gt.warn("config.autoSave is on but no `templates` provider is configured — there is nothing to save to. Pass `templates` to enable it, or use `onChange` to persist the content yourself.");
4911
4924
  let V = i.config.onChange || B ? {
4912
4925
  onChange: () => {
4913
4926
  i.config.onChange?.(JSON.parse(JSON.stringify(c.state.content))), B && d.requestAutoSave();
@@ -4918,7 +4931,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4918
4931
  ...d ? { templates: d.capability } : {},
4919
4932
  ...w ? { testEmail: w.capability } : {},
4920
4933
  ...j ? { comments: j.capability } : {}
4921
- }, U = Le({
4934
+ }, U = Ie({
4922
4935
  editor: c,
4923
4936
  containerEl: p,
4924
4937
  config: {
@@ -4936,7 +4949,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4936
4949
  onRequestMedia: i.cloud?.onRequestMedia ?? i.config.onRequestMedia,
4937
4950
  resolvePreview: i.config.resolvePreview,
4938
4951
  resolveImageUrl: i.config.resolveImageUrl,
4939
- lint: qn(i.config)
4952
+ lint: Kn(i.config)
4940
4953
  },
4941
4954
  translations: i.translations,
4942
4955
  fontsManager: i.fontsManager,
@@ -4945,12 +4958,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4945
4958
  editorRoot: i.shadowRoot,
4946
4959
  historyOptions: i.cloud ? { isRemoteOperation: () => i.cloud.isRemoteOperation() } : void 0,
4947
4960
  keyboardOptions: i.cloud ? { onBeforeUndo: () => i.cloud.onBeforeUndo() } : void 0
4948
- }), te = i.cloud && u ? i.cloud.ready({
4961
+ }), W = i.cloud && u ? i.cloud.ready({
4949
4962
  core: U,
4950
4963
  capabilities: H
4951
- }) : null, W = i.config.versionHistory ? Gn({
4964
+ }) : null, G = i.config.versionHistory ? Wn({
4952
4965
  provider: i.config.versionHistory,
4953
- editor: ir(c, i.config.mergeTags),
4966
+ editor: rr(c, i.config.mergeTags),
4954
4967
  history: U.history,
4955
4968
  conditionPreview: U.conditionPreview,
4956
4969
  autoSave: U.autoSave,
@@ -4960,34 +4973,34 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4960
4973
  } : null,
4961
4974
  onError: i.config.onError
4962
4975
  }) : null;
4963
- W && (H.versionHistory = W.capability);
4964
- function ne() {
4965
- return Hn({
4976
+ G && (H.versionHistory = G.capability);
4977
+ function te() {
4978
+ return Vn({
4966
4979
  getContent: () => c.content.value,
4967
4980
  renderCustomBlock: U.registry.renderCustomBlock,
4968
4981
  getCustomBlockStylesheet: (e) => U.registry.getDefinition(e)?.stylesheet,
4969
- getFonts: () => Jn(i.fontsManager)
4982
+ getFonts: () => qn(i.fontsManager)
4970
4983
  });
4971
4984
  }
4972
- let re = b(() => j?.isOpen.value === !0 || u?.panelState.rightPanelOpen.value === !0), ie = b(() => c.state.previewMode ? "tpl:left-0 tpl:right-0" : re.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]");
4973
- function G(e) {
4985
+ let ne = b(() => j?.isOpen.value === !0 || u?.panelState.rightPanelOpen.value === !0), re = b(() => c.state.previewMode ? "tpl:left-0 tpl:right-0" : ne.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]");
4986
+ function K(e) {
4974
4987
  u && (e === "ai-chat" ? u.panelState.aiChatOpen.value = !0 : u.panelState.designReferenceOpen.value = !0);
4975
4988
  }
4976
- let { showNotice: ae } = xe(() => i.config.smallScreenNotice);
4989
+ let { showNotice: ie } = be(() => i.config.smallScreenNotice);
4977
4990
  C(async () => {
4978
4991
  await i.fontsManager.loadCustomFonts();
4979
4992
  }), o(() => {
4980
4993
  i.fontsManager.cleanupFontLinks(), i.cloud?.destroy(), U.destroy();
4981
4994
  });
4982
- let oe = d ?? c;
4995
+ let ae = d ?? c;
4983
4996
  return n({
4984
4997
  getContent: () => c.content.value,
4985
4998
  setContent: (e) => c.setContent(e),
4986
4999
  setTheme: (e) => c.setUiTheme(e),
4987
5000
  isDirty: () => c.state.isDirty,
4988
- create: oe.create,
4989
- load: oe.load,
4990
- save: oe.save,
5001
+ create: ae.create,
5002
+ load: ae.load,
5003
+ save: ae.save,
4991
5004
  renderCustomBlock: U.registry.renderCustomBlock,
4992
5005
  getCustomBlockStylesheet: (e) => U.registry.getDefinition(e)?.stylesheet
4993
5006
  }), (e, n) => (s(), x("div", {
@@ -4999,14 +5012,14 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
4999
5012
  onDragover: n[7] ||= T(() => {}, ["prevent"]),
5000
5013
  onDrop: n[8] ||= T(() => {}, ["prevent"])
5001
5014
  }, [
5002
- _(yr),
5015
+ _(vr),
5003
5016
  _(mu, {
5004
5017
  editor: g(c),
5005
5018
  core: g(U),
5006
5019
  templates: g(d),
5007
5020
  "show-template-name": t.config.templateNameField !== !1,
5008
5021
  "test-email": g(w),
5009
- "version-history": g(W),
5022
+ "version-history": g(G),
5010
5023
  comments: g(j)
5011
5024
  }, h({ _: 2 }, [
5012
5025
  g(u) ? {
@@ -5042,9 +5055,9 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5042
5055
  "version-history",
5043
5056
  "comments"
5044
5057
  ]),
5045
- f(_(kr, null, null, 512), [[N, !g(c).state.previewMode]]),
5058
+ f(_(Or, null, null, 512), [[N, !g(c).state.previewMode]]),
5046
5059
  A("div", {
5047
- class: y(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", [ie.value, g(W)?.isPreviewing.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
5060
+ class: y(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", [re.value, g(G)?.isPreviewing.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
5048
5061
  style: { transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)" }
5049
5062
  }, [A("div", rd, [_(O, { name: "tpl-restore-btn" }, {
5050
5063
  default: r(() => [g(U).conditionPreview.hasHiddenBlocks.value && g(U).appliesConditionFilter.value ? (s(), x("button", {
@@ -5053,12 +5066,12 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5053
5066
  style: { "backdrop-filter": "blur(8px)" },
5054
5067
  "data-testid": "restore-hidden-blocks",
5055
5068
  onClick: n[0] ||= (e) => g(U).conditionPreview.reset()
5056
- }, [_(g(Et), {
5069
+ }, [_(g(Tt), {
5057
5070
  size: 13,
5058
5071
  "stroke-width": 2
5059
5072
  }), R(" " + F(g(U).t.blockSettings.restoreHiddenBlocks), 1)])) : S("", !0)]),
5060
5073
  _: 1
5061
- })]), A("main", id, [_(vr, {
5074
+ })]), A("main", id, [_(_r, {
5062
5075
  viewport: g(c).state.viewport,
5063
5076
  content: g(U).previewResolution.content.value,
5064
5077
  "selected-block-id": g(c).state.selectedBlockId,
@@ -5066,8 +5079,8 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5066
5079
  "preview-mode": g(c).state.previewMode,
5067
5080
  "locked-blocks": g(u)?.collaboration?.lockedBlocks.value,
5068
5081
  onSelectBlock: g(c).selectBlock,
5069
- onOpenAiChat: n[1] ||= (e) => G("ai-chat"),
5070
- onOpenDesignReference: n[2] ||= (e) => G("design-reference")
5082
+ onOpenAiChat: n[1] ||= (e) => K("ai-chat"),
5083
+ onOpenDesignReference: n[2] ||= (e) => K("design-reference")
5071
5084
  }, null, 8, [
5072
5085
  "viewport",
5073
5086
  "content",
@@ -5079,7 +5092,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5079
5092
  ])])], 2),
5080
5093
  t.config.branding === !1 ? S("", !0) : (s(), D(Kl, {
5081
5094
  key: 0,
5082
- "position-class": [ie.value]
5095
+ "position-class": [re.value]
5083
5096
  }, null, 8, ["position-class"])),
5084
5097
  A("div", {
5085
5098
  class: "tpl-sr-only",
@@ -5091,7 +5104,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5091
5104
  f(_(Rl, {
5092
5105
  "selected-block": g(c).selectedBlock.value,
5093
5106
  settings: g(c).content.value.settings,
5094
- "shifted-left": re.value,
5107
+ "shifted-left": ne.value,
5095
5108
  onUpdateBlock: n[3] ||= (e) => g(c).updateBlock(g(c).state.selectedBlockId, e),
5096
5109
  onDeleteBlock: n[4] ||= () => {
5097
5110
  g(c).state.selectedBlockId && g(U).blockActions.deleteBlock(g(c).state.selectedBlockId);
@@ -5123,17 +5136,17 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5123
5136
  key: 3,
5124
5137
  feature: g(j)
5125
5138
  }, null, 8, ["feature"])) : S("", !0),
5126
- g(W)?.isAvailable.value ? (s(), D(g(I), {
5139
+ g(G)?.isAvailable.value ? (s(), D(g(I), {
5127
5140
  key: 4,
5128
- feature: g(W)
5141
+ feature: g(G)
5129
5142
  }, null, 8, ["feature"])) : S("", !0),
5130
- t.cloud && g(u) && g(te) ? (s(), D(g(ee), {
5143
+ t.cloud && g(u) && g(W) ? (s(), D(g(ee), {
5131
5144
  key: 5,
5132
5145
  editor: g(c),
5133
5146
  core: g(U),
5134
5147
  runtime: t.cloud,
5135
5148
  cloud: g(u),
5136
- ready: g(te),
5149
+ ready: g(W),
5137
5150
  locale: t.config.locale
5138
5151
  }, null, 8, [
5139
5152
  "editor",
@@ -5143,7 +5156,7 @@ var ks = { class: "tpl:mb-3.5" }, As = ["value"], js = ["value"], Ms = {
5143
5156
  "ready",
5144
5157
  "locale"
5145
5158
  ])) : S("", !0),
5146
- g(ae) ? (s(), D(Ul, { key: 6 })) : S("", !0)
5159
+ g(ie) ? (s(), D(Ul, { key: 6 })) : S("", !0)
5147
5160
  ], 46, nd));
5148
5161
  }
5149
5162
  }), [["__scopeId", "data-v-9b8b235c"]]), sd = /* #__PURE__ */ Object.assign({
@@ -5238,10 +5251,10 @@ async function jd(e) {
5238
5251
  async function Md(e, t) {
5239
5252
  let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
5240
5253
  if (!n) throw Error(`[Templatical] Container element not found: ${e.container}`);
5241
- let r = await _d(e.locale ?? "en"), i = ze(e.fonts);
5254
+ let r = await _d(e.locale ?? "en"), i = Re(e.fonts);
5242
5255
  Ad(n);
5243
5256
  let a = Dd(n, e.shadowDom ?? !0), o = l(null);
5244
- e.content &&= rr(e.content, e.mergeTags);
5257
+ e.content &&= nr(e.content, e.mergeTags);
5245
5258
  let s = M({ setup() {
5246
5259
  return () => I(od, {
5247
5260
  config: e,
@@ -5259,10 +5272,10 @@ async function Md(e, t) {
5259
5272
  }), kd = n;
5260
5273
  let c = {
5261
5274
  getContent() {
5262
- return W(o.value ? o.value.getContent() : e.content ?? V());
5275
+ return G(o.value ? o.value.getContent() : e.content ?? V());
5263
5276
  },
5264
5277
  setContent(t) {
5265
- let n = rr(t, e.mergeTags);
5278
+ let n = nr(t, e.mergeTags);
5266
5279
  o.value && o.value.setContent(n), e.content = n;
5267
5280
  },
5268
5281
  setTheme(e) {
@@ -5272,7 +5285,7 @@ async function Md(e, t) {
5272
5285
  create(t) {
5273
5286
  return o.value ? o.value.create(t?.content ? {
5274
5287
  ...t,
5275
- content: rr(t.content, e.mergeTags)
5288
+ content: nr(t.content, e.mergeTags)
5276
5289
  } : t) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
5277
5290
  },
5278
5291
  load(e) {
@@ -5292,24 +5305,24 @@ async function Md(e, t) {
5292
5305
  },
5293
5306
  toMjml: () => u.toMjml(),
5294
5307
  toHtml: () => u.toHtml()
5295
- }, u = Xn({
5308
+ }, u = Yn({
5296
5309
  provider: e.render,
5297
- buildPayload: () => Yn({
5310
+ buildPayload: () => Jn({
5298
5311
  getContent: () => c.getContent(),
5299
5312
  renderCustomBlock: (e) => c.renderCustomBlock(e),
5300
- getFonts: () => Jn(i)
5313
+ getFonts: () => qn(i)
5301
5314
  }),
5302
- renderLocalMjml: () => Hn({
5315
+ renderLocalMjml: () => Vn({
5303
5316
  getContent: () => c.getContent(),
5304
5317
  renderCustomBlock: (e) => c.renderCustomBlock(e),
5305
5318
  getCustomBlockStylesheet: (e) => c.getCustomBlockStylesheet(e),
5306
- getFonts: () => Jn(i)
5319
+ getFonts: () => qn(i)
5307
5320
  })
5308
5321
  });
5309
5322
  return c;
5310
5323
  }
5311
5324
  async function Nd(e) {
5312
- let [{ bootstrapCloud: t }, n] = await Promise.all([import("./chunks/createCloudRuntime-D75oJ9j-.js"), vd(e.locale ?? "en")]), { runtime: r, providers: i, user: a } = await t({
5325
+ let [{ bootstrapCloud: t }, n] = await Promise.all([import("./chunks/createCloudRuntime-DYDf_-rN.js"), vd(e.locale ?? "en")]), { runtime: r, providers: i, user: a } = await t({
5313
5326
  config: e,
5314
5327
  cloudTranslations: n
5315
5328
  });
@@ -5354,6 +5367,6 @@ function Pd() {
5354
5367
  kd && Ad(kd);
5355
5368
  }
5356
5369
  //#endregion
5357
- export { pe as createLocalStorageSavedBlocksProvider, md as getBaseLocale, Sd as getSupportedCloudLocales, xd as getSupportedLocales, jd as init, Nd as initCloud, bd as isCloudLocaleSupported, yd as isLocaleSupported, Pd as unmount, ze as useFonts };
5370
+ export { fe as createLocalStorageSavedBlocksProvider, md as getBaseLocale, Sd as getSupportedCloudLocales, xd as getSupportedLocales, jd as init, Nd as initCloud, bd as isCloudLocaleSupported, yd as isLocaleSupported, Pd as unmount, Re as useFonts };
5358
5371
 
5359
5372
  //# sourceMappingURL=editor.js.map